/* =====================================================================
   SHAURYA GREENSPACE — Base design system
   Editorial · data-led · restrained. Green leads; gold marks savings and
   action; panel-blue appears only on generation data.
   ===================================================================== */
:root {
  --forest: #0e3320;
  --forest-2: #123f27;
  --leaf: #3f7d35;
  --fresh: #5c963d;
  --gold: #f2a51a;
  --gold-2: #f6c84a;
  --blue: #0869a8;
  --blue-2: #145d91;
  --paper: #f7f8f5;
  --white: #ffffff;
  --ink: #17231d;
  --muted: #56655c;
  --line: rgba(14, 51, 32, 0.14);
  --line-2: rgba(14, 51, 32, 0.3);
  --gold-ink: #8a5a00;
  --blue-tint: #8cc8f0;
  --leaf-tint: #b4dc9b;
  --danger: #b3261e;

  --f-display: "Sora", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Manrope", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", "Noto Sans Devanagari", ui-monospace, Consolas, monospace;

  --gut: clamp(18px, 4.4vw, 48px);
  --maxw: 1360px;
  --hdr-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 1180px) { :root { --hdr-h: 78px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 18px);
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.62 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--forest); text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:lang(hi), [lang="hi"] { font-family: "Noto Sans Devanagari", var(--f-body); line-height: 1.35; letter-spacing: 0; }
h1[lang="hi"], h2[lang="hi"], h3[lang="hi"], .hi-h { font-family: "Noto Sans Devanagari", var(--f-display); font-weight: 700; line-height: 1.28; letter-spacing: -0.005em; }
::selection { background: var(--gold-2); color: var(--forest); }

:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }
.dark :focus-visible, .ftr-dark :focus-visible, .menu :focus-visible { outline-color: var(--gold-2); }

svg.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--gold); color: var(--forest); padding: 12px 18px; font: 600 0.85rem var(--f-mono); transition: top 0.2s; }
.skip:focus { top: 12px; }
.mult { mix-blend-mode: multiply; }

/* grid/flex items may shrink below their content width — prevents any single-column grid from blowing out on phones */
main :where(div, section, article, aside, nav, header, footer, figure, form, ol, ul, dl, fieldset) { min-width: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: clamp(56px, 9vw, 128px); position: relative; }
.sec.tight { padding-block: clamp(40px, 6vw, 80px); }
.dark { background: var(--forest); color: #fff; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .muted, .dark .lead { color: rgba(255, 255, 255, 0.72); }
.white { background: var(--white); }
.grid-paper { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; background-position: -1px -1px; }

/* editorial two-column: narrow "margin" column + wide main */
.ed { display: grid; gap: 28px; }
@media (min-width: 900px) { .ed { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(32px, 5vw, 80px); } }
.ed-aside { align-self: start; }
@media (min-width: 900px) { .ed-aside.sticky { position: sticky; top: calc(var(--hdr-h) + 28px); } }

/* section heading with index + ruler */
.sh { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: clamp(24px, 4vw, 48px); }
.sh .n { color: var(--gold-ink); font-weight: 500; }
.sh::after { content: ""; flex: 1; height: 8px; background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 10px); }
.dark .sh { border-color: rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.7); }
.dark .sh .n { color: var(--gold-2); }
.dark .sh::after { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px 10px); }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 0.74rem/1.2 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.dark .eyebrow { color: var(--gold-2); }
.d1 { font-size: clamp(2.5rem, 8.4vw, 6.4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.d2 { font-size: clamp(2rem, 5.2vw, 3.7rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }
.d3 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.15; font-weight: 600; }
.d4 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.25; font-weight: 600; }
h1[lang="hi"].d1 { font-size: clamp(2.3rem, 7.6vw, 5.6rem); line-height: 1.16; }
h2[lang="hi"].d2 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); line-height: 1.2; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.label { font: 500 0.7rem/1.3 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dark .label { color: rgba(255, 255, 255, 0.62); }
.num { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.hl-gold { background: linear-gradient(transparent 62%, var(--gold-2) 62%, var(--gold-2) 92%, transparent 92%); padding: 0 0.06em; }
.prose p { max-width: 62ch; color: var(--ink); }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { background: var(--gold-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.7em; min-height: 52px; padding: 0 24px; font: 600 0.78rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; border: 1.5px solid transparent; background: none; border-radius: 0; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease); text-align: center; -webkit-tap-highlight-color: transparent; }
.btn .ic { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--forest); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-forest { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-forest:hover { background: var(--forest-2); }
.btn-line { border-color: var(--forest); color: var(--forest); }
.btn-line:hover { background: var(--forest); color: #fff; }
.dark .btn-line, .btn-line.inv { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.dark .btn-line:hover, .btn-line.inv:hover { background: #fff; color: var(--forest); border-color: #fff; }
.btn-text { min-height: 44px; padding: 0; border: 0; color: var(--forest); border-bottom: 2px solid var(--gold); }
.btn-text:hover { color: var(--leaf); }
.dark .btn-text { color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.7rem; }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 0.82rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .cta-row .btn { flex: 1 1 100%; } }

/* ---------- tags / notes ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line-2); font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: transparent; }
.tag-gold { background: rgba(242, 165, 26, 0.16); border-color: rgba(242, 165, 26, 0.55); color: var(--gold-ink); }
.dark .tag { border-color: rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.8); }
.dark .tag-gold { color: var(--gold-2); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-left: 3px solid var(--gold); background: rgba(242, 165, 26, 0.09); font-size: 0.86rem; line-height: 1.5; color: var(--ink); }
.note .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--gold-ink); }
.note.info { border-left-color: var(--blue-2); background: rgba(8, 105, 168, 0.07); }
.note.info .ic { color: var(--blue-2); }
.dark .note { color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.06); }
.dark .note .ic { color: var(--gold-2); }
.fine { font: 400 0.76rem/1.5 var(--f-body); color: var(--muted); }
.dark .fine { color: rgba(255, 255, 255, 0.6); }

/* ---------- instrument frame: hairline box with gold corner brackets ---------- */
.frame { position: relative; border: 1px solid var(--line-2); background: var(--white); }
.frame::before, .frame::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--gold); pointer-events: none; }
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.frame.dk { background: var(--forest); border-color: rgba(255, 255, 255, 0.22); color: #fff; }

/* ---------- form controls ---------- */
.seg { display: flex; border: 1px solid var(--line-2); background: var(--white); }
.seg label { flex: 1 1 0; min-width: 0; position: relative; display: flex; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 8px 8px; text-align: center; font: 600 0.84rem/1.15 var(--f-body); border-left: 1px solid var(--line); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.seg label:first-child span { border-left: 0; }
.seg span .ic { width: 20px; height: 20px; margin-bottom: 2px; }
.seg b { font-weight: 600; }
.seg small { font: 400 0.66rem/1.2 var(--f-mono); opacity: 0.7; letter-spacing: 0.02em; }
.seg input:checked + span { background: var(--forest); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.seg input:focus-visible + span { outline: 3px solid var(--blue-2); outline-offset: -3px; }
.seg input:disabled + span { opacity: 0.38; }
.seg input:disabled { cursor: not-allowed; }
.seg.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.seg.grid2 label:nth-child(3) span, .seg.grid2 label:nth-child(4) span { border-top: 1px solid var(--line); }
.seg.grid2 label:nth-child(3) span { border-left: 0; }
@media (min-width: 560px) { .seg.grid2 { display: flex; } .seg.grid2 label:nth-child(3) span, .seg.grid2 label:nth-child(4) span { border-top: 0; } .seg.grid2 label:nth-child(3) span { border-left: 1px solid var(--line); } }
.seg.wrap-seg { flex-wrap: wrap; }
.seg.stack span { align-items: flex-start; text-align: left; padding: 12px 14px; }
.dark .seg { background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.dark .seg span { border-color: rgba(255, 255, 255, 0.18); }
.dark .seg input:checked + span { background: var(--gold); color: var(--forest); box-shadow: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--white); font: 500 0.82rem/1 var(--f-mono); color: var(--forest); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"], .chip.on { background: var(--forest); color: #fff; border-color: var(--forest); box-shadow: inset 0 -3px 0 var(--gold); }
.dark .chip { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.dark .chip[aria-pressed="true"] { background: var(--gold); color: var(--forest); border-color: var(--gold); box-shadow: none; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; --pct: 50%; touch-action: pan-y; }
.range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--forest) var(--pct), rgba(14, 51, 32, 0.2) var(--pct)); }
.range::-moz-range-track { height: 4px; background: rgba(14, 51, 32, 0.2); }
.range::-moz-range-progress { height: 4px; background: var(--forest); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: var(--gold); border: 3px solid var(--forest); box-shadow: 0 2px 8px rgba(14, 51, 32, 0.3); transition: transform 0.2s; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 3px solid var(--forest); box-shadow: 0 2px 8px rgba(14, 51, 32, 0.3); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline-offset: 0; }
.dark .range::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--gold) var(--pct), rgba(255, 255, 255, 0.25) var(--pct)); }
.dark .range::-moz-range-track { background: rgba(255, 255, 255, 0.25); }
.dark .range::-moz-range-progress { background: var(--gold); }
.dark .range::-webkit-slider-thumb { border-color: #fff; }
.range-scale { display: flex; justify-content: space-between; font: 400 0.68rem var(--f-mono); color: var(--muted); margin-top: -6px; }
.dark .range-scale { color: rgba(255, 255, 255, 0.6); }

.numfield { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--forest); padding: 4px 0 2px; }
.numfield .pre { font: 600 clamp(1.4rem, 4vw, 1.8rem) var(--f-display); color: var(--leaf); }
.numfield .suf { font: 500 0.8rem var(--f-mono); color: var(--muted); white-space: nowrap; }
.numfield input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; padding: 6px 0; margin: 0; outline: 0; font: 700 clamp(1.9rem, 7vw, 2.7rem)/1.15 var(--f-display); letter-spacing: -0.03em; color: var(--forest); font-variant-numeric: tabular-nums; border-radius: 0; }
.numfield:focus-within { border-color: var(--gold); box-shadow: 0 2px 0 var(--gold); }
.numfield.sm input { font-size: clamp(1.3rem, 5vw, 1.6rem); }
.numfield.sm .pre { font-size: 1.1rem; }
.dark .numfield { border-color: rgba(255, 255, 255, 0.6); }
.dark .numfield input { color: #fff; }
.dark .numfield .pre { color: var(--gold-2); }
.dark .numfield .suf { color: rgba(255, 255, 255, 0.6); }

.field { display: block; margin-bottom: 18px; }
.field > .label, .field > label.label { display: block; margin-bottom: 8px; }
.field input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), .field select, .field textarea, .sel { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 0; background: var(--white); font: 500 1rem/1.3 var(--f-body); color: var(--ink); -webkit-appearance: none; appearance: none; }
.field select, .sel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E3320' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .sel:focus { outline: 3px solid var(--blue-2); outline-offset: 0; border-color: var(--blue-2); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fff6f5; }
.field .err { display: none; margin-top: 6px; color: var(--danger); font: 500 0.8rem/1.3 var(--f-body); }
.field [aria-invalid="true"] ~ .err, .field.bad .err { display: block; }
.field .hint { margin-top: 6px; font-size: 0.78rem; color: var(--muted); }

/* ---------- expandable rows ---------- */
.xbody { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.xbody > div { overflow: hidden; min-height: 0; }
.xrow.open > .xbody { grid-template-rows: 1fr; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(247, 248, 245, 0.94); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 12px; height: var(--hdr-h); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand-mark { height: 40px; width: auto; mix-blend-mode: multiply; animation: markIn 1s var(--ease) both; transform-origin: 50% 60%; }
@keyframes markIn { from { opacity: 0; transform: translateY(6px) scale(0.7) rotate(-14deg); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.brand-txt { display: flex; flex-direction: column; gap: 5px; line-height: 1; animation: fadeR 0.8s 0.25s var(--ease) both; }
@keyframes fadeR { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.brand-txt b { font: 700 15px/1 var(--f-display); letter-spacing: 0.16em; color: var(--forest); }
.brand-txt i { font: 500 8.5px/1 var(--f-mono); letter-spacing: 0.36em; color: var(--leaf); font-style: normal; }
@media (min-width: 1180px) { .brand-mark { height: 46px; } .brand-txt b { font-size: 17px; } .brand-txt i { font-size: 9.5px; } }
.nav { display: none; }
.hdr-cta { display: none; min-height: 46px; padding: 0 18px; white-space: nowrap; flex: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--white); font: 600 0.72rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); }
.menu-btn .ic { width: 20px; height: 20px; }
@media (min-width: 1180px) { .nav { display: block; } .hdr-cta { display: inline-flex; } .menu-btn { display: none; } }
.nav ul { display: flex; align-items: center; gap: 0; }
.nl { position: relative; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 12px clamp(7px, 0.75vw, 11px); font: 600 0.84rem/1 var(--f-body); color: var(--ink); background: none; border: 0; }
.nl .ic { width: 14px; height: 14px; transition: transform 0.25s; }
.nl::after { content: ""; position: absolute; left: clamp(7px, 0.75vw, 11px); right: clamp(7px, 0.75vw, 11px); bottom: 5px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nl:hover::after, .nl[aria-current="page"]::after, .has-sub.is-cur > .nl::after { transform: scaleX(1); }
.nl:hover { color: var(--forest); }
.has-sub { position: relative; }
.has-sub.open > .nl .ic, .has-sub:hover > .nl .ic { transform: rotate(180deg); }
.sub { position: absolute; top: 100%; left: 0; min-width: 290px; padding: 8px; background: var(--white); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -18px rgba(14, 51, 32, 0.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s; z-index: 5; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; font: 600 0.88rem/1.2 var(--f-body); color: var(--forest); border-left: 2px solid transparent; }
.sub a span { font-size: 0.74rem; font-weight: 400; color: var(--muted); }
.sub a:hover, .sub a[aria-current="page"] { background: var(--paper); border-left-color: var(--gold); }
.hdr-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.hdr-progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* full-screen menu */
.menu { position: fixed; z-index: 55; left: 0; right: 0; top: var(--hdr-h); bottom: 0; background: var(--forest); color: #fff; overflow-y: auto; overscroll-behavior: contain; opacity: 0; transform: translateY(-10px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.menu[hidden] { display: none; }
.menu.open { opacity: 1; transform: none; }
.menu-in { max-width: 720px; margin: 0 auto; padding: 8px var(--gut) 40px; }
.menu-list a { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.menu-list a i { font: 500 0.72rem var(--f-mono); color: var(--gold-2); font-style: normal; width: 26px; }
.menu-list a span { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.menu-list a b { font: 600 clamp(1.1rem, 4.6vw, 1.5rem)/1.2 var(--f-display); letter-spacing: -0.01em; }
.menu-list a em { font-style: normal; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.menu-list a .ic { color: rgba(255, 255, 255, 0.5); transition: transform 0.3s var(--ease), color 0.3s; }
.menu-list a:hover .ic, .menu-list a[aria-current="page"] .ic { color: var(--gold-2); transform: translateX(4px); }
.menu-list a[aria-current="page"] b { color: var(--gold-2); }
.menu-foot { margin-top: 28px; display: grid; gap: 12px; }
.menu-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.menu-tag { margin: 8px 0 0; text-align: center; font: 500 0.66rem var(--f-mono); letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.5); }
html.menu-open { overflow: hidden; }
html.menu-open .mcta { display: none; }

/* sticky mobile CTA */
.mcta { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: 22px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(247, 248, 245, 0.97) 55%, rgba(247, 248, 245, 0)); pointer-events: none; transition: transform 0.3s var(--ease), opacity 0.3s; }
.mcta .btn { pointer-events: auto; min-height: 56px; box-shadow: 0 10px 28px -8px rgba(14, 51, 32, 0.45); }
html.typing .mcta { transform: translateY(120%); opacity: 0; }
@media (min-width: 1180px) { .mcta { display: none; } }
@media (max-width: 1179px) { body:not([data-page="calculator"]) .ftr-dark { padding-bottom: 84px; } }

/* ---------- footer ---------- */
.ftr { background: var(--paper); color: var(--muted); margin-top: 0; border-top: 1px solid var(--line-2); }
.ftr-dark { background: var(--forest); color: rgba(255, 255, 255, 0.78); }
.ftr-top { display: grid; gap: 40px 32px; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .ftr-top { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .ftr-top { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } .ftr-brand { grid-column: auto; } }
.ftr-logo { display: block; width: min(240px, 68%); margin: 0 0 22px -6px; }
.ftr-logo img { width: 100%; height: auto; }
.ftr-brand p { max-width: 42ch; font-size: 0.92rem; color: var(--muted); }
.socs { display: flex; gap: 10px; margin-top: 18px; }
.soc { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--forest); transition: background 0.2s, color 0.2s; }
.soc:hover { background: var(--gold); color: var(--forest); border-color: var(--gold); }
.ftr-col h2 { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 18px; }
.ftr-col ul { display: grid; gap: 0; margin-bottom: 20px; }
.ftr-col a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0; font-size: 0.94rem; color: var(--forest); background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.3s var(--ease); }
.ftr-col a:not(.btn):hover { background-size: 100% 2px; }
.ftr-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 0.94rem; }
.ftr-contact .ic { margin-top: 3px; color: var(--leaf); width: 18px; height: 18px; }
.ftr-band { border-block: 1px solid rgba(255, 255, 255, 0.16); padding: clamp(20px, 3.4vw, 34px) 0; overflow: hidden; }
.ftr-tag { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font: 500 clamp(0.72rem, 2.6vw, 1.15rem)/1.5 var(--f-mono); letter-spacing: 0.24em; color: #fff; text-align: center; }
.ftr-tag i { color: var(--gold); font-style: normal; }
@media (max-width: 520px) { .ftr-tag i { display: none; } .ftr-tag { flex-direction: column; gap: 2px; } }
.ftr-legal { display: grid; gap: 14px; padding-block: 24px 36px; font-size: 0.76rem; color: rgba(255, 255, 255, 0.55); }
.ftr-legal p { margin: 0; max-width: 90ch; }
.ftr-legal div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.ftr-legal a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0; color: rgba(255, 255, 255, 0.8); }
.ftr-legal a:hover { color: var(--gold-2); }

/* ---------- page + reveal motion ---------- */
main { animation: pageIn 0.5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.2s ease both vtOut; }
::view-transition-new(root) { animation: 0.3s ease both vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-l { opacity: 0; transform: translateX(-24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .rv-l.in { opacity: 1; transform: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 300; background: var(--forest); color: #fff; padding: 13px 20px; font: 500 0.84rem/1.3 var(--f-body); border-left: 3px solid var(--gold); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease); max-width: min(92vw, 460px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1180px) { .toast { bottom: 32px; } }

/* shared data primitives */
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; }
.kv > * { padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 0.88rem; }
.kv dd { margin: 0; font: 600 0.92rem var(--f-body); text-align: right; font-variant-numeric: tabular-nums; }
.dark .kv > * { border-color: rgba(255, 255, 255, 0.14); }
.dark .kv dt { color: rgba(255, 255, 255, 0.65); }
.bar { height: 10px; background: rgba(14, 51, 32, 0.1); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--forest); transition: width 0.9s var(--ease); }
.bar.gold i { background: var(--gold); }
.bar.blue i { background: var(--blue-2); }
.bar.leaf i { background: var(--leaf); }

/* print — only the solar plan is printed (calculator page defines #plan) */
@media print {
  .hdr, .menu, .mcta, .ftr, .toast, .skip { display: none !important; }
}

/* ---------- image slot (drop a photo in, placeholder until then) ---------- */
.img-slot { position: relative; margin: 22px 0; aspect-ratio: 16 / 10; max-width: 820px; background: var(--white); border: 1px solid var(--line-2); overflow: hidden; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot-ph { display: none; }
.img-slot.empty { border-style: dashed; background: repeating-linear-gradient(45deg, rgba(14, 51, 32, 0.04) 0 10px, transparent 10px 20px), var(--white); display: grid; place-items: center; }
.img-slot.empty .img-slot-ph { display: block; padding: 16px; text-align: center; font: 500 0.72rem/1.5 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- shared chart text (all pages) ---------- */
.ch-t { font: 400 11px var(--f-mono); fill: var(--muted); }
.ch-g { stroke: var(--line); stroke-width: 1; }
.chart-box { width: 100%; min-width: 0; }

/* ---------- shared photo hero (same image + tint as the home page) ---------- */
.photo-hero { position: relative; isolation: isolate; color: #fff; background: var(--forest) url("../img/hero-solar.webp") center 72% / cover no-repeat; }
.photo-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(10, 38, 24, 0.86) 0%, rgba(10, 38, 24, 0.66) 48%, rgba(10, 38, 24, 0.3) 100%), linear-gradient(to bottom, rgba(10, 38, 24, 0.1), rgba(10, 38, 24, 0.4)); }
@media (max-width: 979px) { .photo-hero::before { background: linear-gradient(to bottom, rgba(10, 38, 24, 0.82), rgba(10, 38, 24, 0.66) 55%, rgba(10, 38, 24, 0.86)); } }
section.photo-hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
section.photo-hero .eyebrow, section.photo-hero .hi-h { color: var(--gold-2); }
section.photo-hero .lead { color: rgba(255, 255, 255, 0.88); }
section.photo-hero .fine { color: rgba(255, 255, 255, 0.72); }
section.photo-hero :focus-visible { outline-color: var(--gold-2); }
