/* Matches the live Range supporting-page theme at andromedaenergy.net. */
:root {
  --ink: #203e34;
  --ink2: #2d4d40;
  --lime: #d8e7b9;
  --lime-deep: #587148;
  --sun: #b68a45;
  --bg: #ffffff;
  --panel: #f5f7f1;
  --text: #203e34;
  --muted: #607067;
  --line: #dbe2d7;
  --field: #ffffff;
  --btn-bg: #203e34;
  --btn-ink: #ffffff;
  --danger: #b3261e;
  --chart-bar: #587148;
  --chart-line: #a27738;
  --chart-grid: rgba(16, 42, 41, 0.1);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

/* header: logo has white lettering, so it sits on the dark green band like the live site's footer */
.site { background: var(--ink); color: #ffffff; }
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-logo { display: block; height: 64px; width: auto; object-fit: contain; }
.links { display: flex; gap: 30px; font-size: 0.83rem; font-weight: 600; }
.links a { transition: color 0.2s; }
.links a:hover { color: var(--lime); }

.button, button {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 12px 20px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: transform 0.25s cubic-bezier(0.2, 0.75, 0.2, 1), background 0.25s;
}
button:hover:not(:disabled), .button:hover { transform: translateY(-2px); }
.button.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
button.primary, .btn.primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-color: var(--btn-bg);
  width: 100%;
  margin-top: 18px;
  padding: 16px 23px;
  display: block;
  text-align: center;
}
button:disabled { opacity: 0.6; cursor: wait; }

.hero { padding: 40px 0 8px; }
.eyebrow {
  font-size: 0.69rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.12; margin: 0; max-width: 18em; }
h1 em { font-style: italic; color: var(--lime-deep); }

h2 { font-size: 1.15rem; margin: 0 0 14px; line-height: 1.3; }
.sub { color: var(--muted); max-width: 40em; margin: 14px 0 0; }

.layout {
  display: block;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 24px;
  align-items: start;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}
form.panel { margin-bottom: 20px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.col > h3 { font-family: var(--serif); font-weight: 700; font-size: 0.95rem; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.col > label:first-of-type { margin-top: 12px; }
button.primary.go { width: auto; min-width: 260px; margin: 22px 0 0; }

label { display: block; font-weight: 700; font-size: 0.82rem; margin: 14px 0 5px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
input[type=text], input[type=number] {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
}
input[type=checkbox] { accent-color: var(--lime-deep); width: 18px; height: 18px; }
input:disabled { opacity: 0.5; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 2px; }
.site a:focus-visible, .foot a:focus-visible { outline-color: var(--lime); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint, .note { color: var(--muted); font-size: 0.82rem; margin: 6px 0 0; }
.row { margin-top: 10px; }
.map { height: 200px; margin-top: 10px; border-radius: 14px; border: 1px solid var(--line); z-index: 0; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.matches { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.matches li button { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-weight: 500; font-size: 0.88rem; }
.matches li:last-child button { border-bottom: 0; }
.matches li button:hover { background: var(--field); transform: none; }

fieldset.savings { border: 0; border-radius: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.savings legend { font-family: var(--serif); font-weight: 700; font-size: 0.95rem; padding: 0; width: 100%; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
fieldset.savings .grid2 { align-items: end; }
#assump { padding-left: 18px; margin: 12px 0 0; }

.error, .errorbox { color: var(--danger); }
.errorbox { border-color: var(--danger); }
.empty { color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-width: 0; }
.kpi .l { color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.kpi .v { font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; margin: 4px 0 2px; overflow-wrap: anywhere; }
.kpi .u { color: var(--muted); font-size: 0.8rem; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#skpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chart { position: relative; height: 260px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); }
th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
th:first-child, td:first-child { text-align: left; }
tr.total td { font-weight: 800; background: var(--field); }

/* footer mirrors the live site: dark green band, muted light text */
.foot { background: var(--ink); color: #b9c5bf; padding: 40px 0 36px; margin-top: 24px; font-size: 0.78rem; }
.foot p { margin: 4px 0; }
.foot .disclaimer { color: #ffffff; font-weight: 700; margin-top: 18px; }
.foot .copy { margin-top: 18px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--lime); }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .kpis, #skpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col:last-child { grid-column: 1 / -1; }
  .links { display: none; }
}
@media (max-width: 640px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  button.primary.go { width: 100%; }
}
@media (max-width: 420px) {
  .kpi .v { font-size: 1.15rem; }
  .brand-logo { height: 52px; }
  .nav { height: 72px; }
  th, td { padding: 6px 4px; font-size: 0.8rem; }
  .panel { padding: 16px; }
}

/* Shared site proportions and the estimator's input/result hierarchy. */
:root { color-scheme: light; }
[hidden] { display: none !important; }
body { -webkit-font-smoothing: antialiased; }
.shell, .layout { width: min(1296px, calc(100% - 100px)); }
.site { border-bottom: 1px solid #ffffff30; }
.nav { height: 83px; }
.brand-logo { width: 105px; height: 67px; filter: brightness(0) invert(1); }
.links { gap: 29px; font-size: 13px; font-weight: 400; }
.links a:hover { text-decoration: underline; text-underline-offset: 7px; }
.button.lime { background: transparent; color: white; border-color: #ffffff90; font: 400 13px/1.5 var(--serif); padding: 10px 27px; min-height: 44px; }
.button.lime:hover { background: #f5f8ed; color: var(--ink); }
.breadcrumbs { padding-top: 28px; font-size: 11px; color: var(--muted); }
.breadcrumbs span { margin: 0 10px; }
.breadcrumbs a:hover { text-decoration: underline; }
.hero { padding: 48px 0 42px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.eyebrow { color: #566e5b; font-size: 10px; font-weight: 500; letter-spacing: .13em; margin-bottom: 20px; }
.eyebrow::before { display: none; }
h1 { font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.25; letter-spacing: -.05em; text-wrap: balance; }
h1 em { color: #728060; font-style: normal; }
.sub { font-size: 14px; line-height: 1.9; margin: 0; max-width: 45ch; }
.hero-detail { padding-top: 30px; }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 11px; color: #496150; }
.feature-list span::before { content: '✓'; margin-right: 7px; }
.layout { padding-top: 0; padding-bottom: 45px; }
.panel { border-radius: 0; padding: 30px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 24px; }
.panel-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.cols { gap: 30px; }
.col { min-width: 0; }
.col > h3, fieldset.savings legend { font: 400 18px/1.5 var(--serif); padding-bottom: 12px; }
.step { font: 500 10px var(--sans); color: #587148; margin-right: 9px; vertical-align: middle; }
label { font-weight: 500; font-size: 12px; color: #496150; }
input[type=text], input[type=number] { border-radius: 0; border-color: #c6d1c1; font-size: 14px; min-height: 44px; }
input::placeholder { color: #72806f; }
label.check { font-weight: 400; min-height: 34px; }
.hint, .note { font-size: 11px; line-height: 1.8; }
button, .btn.primary { font-size: 12px; font-weight: 500; min-height: 44px; }
button.ghost { border-color: #8e9f8b; padding: 10px 15px; }
button.ghost:hover { background: #e7ecdf; }
.map, .matches { border-radius: 0; }
.form-action { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; display: flex; align-items: center; gap: 24px; }
button.primary.go { margin: 0; min-width: 220px; }
.form-action p { margin: 0; font-size: 11px; color: var(--muted); }
button.primary:hover, .btn.primary:hover { background: #2d4d40; }
.empty { background: #e7ecdf; border-color: #d4ddca; text-align: center; padding: 32px; }
.empty h2 { color: var(--ink); margin-bottom: 8px; font-size: 22px; }
.empty p { margin: 0; font-size: 13px; }
.kpi { border-radius: 0; padding: 22px 18px; background: #edf2e6; }
.kpi:first-child { background: #dce5cd; }
.kpi .v { margin-top: 12px; }
.kpi .l { font-size: 9px; line-height: 1.7; }
#out > .note { margin-bottom: 18px; }
th { background: #e7ecdf; font-weight: 500; }
th, td { padding: 13px 12px; }
.btn.primary { border-radius: 40px; width: fit-content; min-width: 230px; }
.foot { background: #162d26; color: #c3cfc4; margin-top: 0; font-size: 11px; }
.foot .disclaimer { font-weight: 400; }
.foot-top { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid #ffffff25; }
.skip-link { position: absolute; left: 20px; top: -100px; background: white; color: var(--ink); padding: 12px; z-index: 1000; }
.skip-link:focus { top: 12px; }
@media (max-width: 1100px) {
  .shell, .layout { width: calc(100% - 60px); }
  .hero { gap: 40px; }
  .cols { gap: 22px; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 22px; padding: 32px 0; }
  .hero-detail { padding: 0; }
  .sub { max-width: 58ch; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 520px) {
  .shell, .layout { width: calc(100% - 40px); }
  .nav { height: 83px; }
  .brand-logo { width: 100px; height: 63px; }
  .button.lime { font-size: 11px; padding: 10px 17px; }
  .panel { padding: 22px 18px; }
  .form-action { flex-direction: column; align-items: stretch; gap: 12px; }
  .form-action p { text-align: center; }
  .kpis, #skpis { gap: 10px; }
  .kpi { padding: 16px 12px; }
  .btn.primary { width: 100%; }
  .foot-links { gap: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.mobile-menu { display: none; position: relative; margin-left: auto; font-size: 12px; }
.mobile-menu summary { cursor: pointer; padding: 12px 4px; }
.mobile-menu nav { position: absolute; top: 44px; right: 0; width: 180px; background: var(--ink); border: 1px solid #ffffff40; padding: 12px; z-index: 1000; }
.mobile-menu nav a { display: block; padding: 10px; }
.mobile-menu summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (max-width: 900px) { .mobile-menu { display: block; } }
@media (max-width: 380px) { .nav { gap: 8px; } .button.lime { padding: 10px 12px; } .brand-logo { width: 80px; } }
