/* One palette: ivory, in every color-scheme setting, with gold and saffron accents (Virya lotus brand). Text on the page color holds at
   least 4.5:1 (--text 16:1, --text-2 9:1, --muted 5.7:1). Gold and saffron are fills and rules only: as text they fall below 4.5:1 on ivory. */
:root {
  --ink: #14173A;
  --ink-2: #1E2250;
  --ivory: #FBF6EC;
  --sand: #EDE3CF;
  --saffron: #F2A93B;
  --saffron-text: #9A5B00; /* saffron, deepened to 5:1 on ivory, for words */
  --gold: #FFD36A;
  --ember-deep: #C8431F;
  --accent: linear-gradient(90deg, var(--gold), var(--saffron) 55%, var(--ember-deep));
  --bg: #FBF6EC;
  --card: #FBF6EC;         /* cards and panels sit on the page colour, edged by --line */
  --band: #F3E9D4;         /* the globe's ocean only */
  --line: #E0D2B2;
  --text: #14173A;
  --text-2: #3C405C;
  --muted: #5C6080;
  --data: #17766C;         /* teal, deepened to 5:1 on ivory */
  --data-neg: #C8431F;
  --ember: #E4572E;
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.55; }
a { color: var(--data); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--ember-deep); outline-offset: 2px; }

/* Header: the lotus, the title, the lead and the disclaimer on the page colour, a gold-to-saffron rule below. */
.top { background: var(--accent) left bottom / 100% 4px no-repeat, var(--bg); color: var(--text); padding: 28px 0 32px; }
.page { padding: 32px 0 40px; }
.title { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; font-size: clamp(1.25rem, 3.2vw, 1.9rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--text); }
.title img { flex: none; width: 34px; height: auto; }
.lead { margin: 0; max-width: 70ch; font-size: 1rem; color: var(--text-2); }
/* Disclaimer and contact, under the lead and in the footer. Links in body text take the text colour, underlined. */
.disclaimer { margin: 10px 0 0; max-width: 70ch; font-size: .85rem; color: var(--muted); }
.disclaimer a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
/* Cards: the page colour with a 1 px --line edge. */
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px; }
@media (max-width: 480px) { .card { padding: 12px 10px; } }

.stage { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  /* The map on top, the inputs below it: the left column carries the inputs, so it scrolls with the page. */
  .stage__globe { display: flex; flex-direction: column; gap: 20px; }
}
.stage__side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }

/* Globe */
#globe { width: 100%; height: 300px; }
@media (min-width: 720px) and (max-width: 899px) { #globe { height: 420px; } }
@media (min-width: 900px) { #globe { height: min(600px, 72vh); min-height: 460px; } }
.pick { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.pick label { font-size: .8rem; color: var(--muted); }
#country-search { width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
#country-name { margin: 8px 0 0; font-size: 1.1rem; font-weight: 600; }

/* Segmented controls */
.controls { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.seg-ctl { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg-ctl button { font: inherit; font-size: .88rem; color: var(--text-2); background: transparent; border: 0; border-right: 1px solid var(--line); padding: 8px 14px; min-height: 40px; cursor: pointer; }
.seg-ctl button:last-child { border-right: 0; }
.seg-ctl button[aria-pressed="true"] { background: var(--saffron); color: #14173A; font-weight: 600; }

/* Bars */
#bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding-left: 12px; }
@media (min-width: 720px) { #bars { gap: 24px; } }
#bars figure { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#bars figcaption { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
#bars .gpus { font-size: .75rem; color: var(--muted); margin-top: -4px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#bars .it { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* A number never breaks: the headline stays on one line (fitLabels shrinks it to fit), the lines under it break only at spaces. */
#bars .head { font-size: clamp(1.05rem, 4.6vw, 1.7rem); font-weight: 600; line-height: 1.2; overflow-wrap: normal; white-space: nowrap; }
#bars .usd { font-size: .8rem; color: var(--text-2); overflow-wrap: normal; }
#bars .annual { font-size: .78rem; line-height: 1.2; color: var(--muted); overflow-wrap: normal; min-height: 3.6em; }
#bars .annual.narrow { min-height: 2.4em; }
#bars .annual .short, #bars .annual.narrow .long { display: none; }
#bars .annual.narrow .short { display: inline; }
#bars .alt { font-size: .72rem; color: var(--muted); line-height: 1.35; margin: -4px 0 8px; min-height: 2.7em; }
#bars .alt:empty { display: none; }
#bars .be { font-size: .72rem; color: var(--muted); overflow-wrap: normal; line-height: 1.35; min-height: 4.1em; margin-bottom: 8px; }
/* The gutter and the bar sit at the foot of their figures, so the three line up when the text above wraps differently.
   When any bar is a loss every gutter holds two lines (revenue, loss), so the three zero baselines stay level. Inside
   .bar the plot starts 18px down: room for a profitable bar's revenue label above its line (a loss bar's labels are in
   the gutter, so that strip stays empty there). */
.gutter { margin-top: auto; display: flex; flex-direction: column; justify-content: flex-end; font-size: 12px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
#bars.has-loss .gutter { height: 34px; }
.gutter > span { display: block; white-space: nowrap; overflow: hidden; }
.gutter .g-rev { color: var(--text); }
.gutter .g-loss { color: var(--loss-text); font-weight: 600; }
.gutter .short .long, .gutter .short .nm, .gutter .bare .w { display: none; } /* "Loss ₫12,089", then "₫12,089": the value always stays */
.bar { position: relative; height: 160px; }
@media (min-width: 720px) { .bar { height: 220px; } }
.bar .stack, .bar .over { position: absolute; left: 0; right: 0; top: 18px; bottom: 0; }
.bar .stack { overflow: hidden; border-radius: 6px; }
.bar .over { pointer-events: none; }
.bar .seg { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bar .lab { display: block; max-width: 100%; padding: 0 4px; font-size: 12px; line-height: 1; font-weight: 500; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.bar .lab.short .long, .bar .lab.shorter .nm { display: none; }
.bar .lab.gone, .bar .rev-label.gone { visibility: hidden; }
.bar .grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed color-mix(in srgb, var(--muted) 50%, transparent); pointer-events: none; }
.bar .zero { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-top: 1.5px solid var(--text-2); pointer-events: none; }
/* Revenue: a 3px ivory line with a 1px navy outline, above every segment and the hatch. */
.bar .rev { position: absolute; left: 0; right: 0; height: 3px; margin-bottom: -1.5px; background: #FBF6EC; box-shadow: 0 0 0 1px #14173A; pointer-events: none; z-index: 3; }
.bar .tick { position: absolute; right: 100%; bottom: 0; margin-right: 3px; transform: translateY(50%); font-size: 12px; font-weight: 400; line-height: 1; color: var(--muted); }
/* Loss: the costs above the revenue line, hatched in the loss colour over the segments they cover. No text on it: the
   loss and revenue figures sit in the gutter above the bar. */
.bar .hatch { position: absolute; left: 0; right: 0; z-index: 1;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--loss) 75%, transparent) 0 5px, color-mix(in srgb, var(--loss) 30%, transparent) 5px 10px);
  box-shadow: inset 0 0 0 1.5px var(--loss); }
.bar .rev-label { position: absolute; left: 0; max-width: 100%; margin-bottom: 3px; padding: 0 4px; font-size: 12px; font-weight: 500; line-height: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
  #bars .annual { font-size: .7rem; }
  #bars .be { font-size: .66rem; min-height: 6.2em; }
  #bars figcaption { font-size: .7rem; letter-spacing: .03em; }
  #bars .gpus, #bars .it { font-size: .68rem; }
  .gutter { font-size: 11px; line-height: 15px; }
  #bars.has-loss .gutter { height: 32px; }
  /* Phones keep the left-over label, the gutter lines, the hatch and the revenue line; the 0 tick would touch the next bar. */
  .bar .seg:not(.seg-spread) .lab, .bar .rev-label, .bar .tick { display: none; }
}

/* Layer colours (bars and legend): each fill holds 3:1 against the page and carries a label colour of at least 4.5:1. A loss gets its own
   deep red, apart from the country-risk ember. */
:root {
  --loss: #7A1F12; --loss-text: #7A1F12; --seg-electricity: #C27D0E; --seg-capital: var(--ink-2); --seg-staff: #6A70B8; --seg-facility: #9A8250; --seg-protection: #8B7BC4; --seg-political: #A8351A;
  --on-light: #14173A; --on-dark: #FFFFFF;
  --on-capital: var(--on-dark); --on-staff: var(--on-dark); --on-facility: var(--on-light); --on-risk: var(--on-light); --on-spread: var(--on-dark); --on-loss: var(--on-dark);
}
.seg-electricity { background: var(--seg-electricity); color: var(--on-light); }
.seg-gpuCapital { background: var(--seg-capital); color: var(--on-capital); }
.seg-facility { background: var(--seg-facility); color: var(--on-facility); }
.seg-staff { background: var(--seg-staff); color: var(--on-staff); }
.seg-customerCredit { background: var(--ember); color: var(--on-risk); }
.seg-politicalRisk { background: var(--seg-political); color: var(--on-dark); }
.seg-protection { background: var(--seg-protection); color: var(--on-light); }
.seg-spread { background: var(--data); color: var(--on-spread); }
.legend .hatch-key { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--loss) 75%, transparent) 0 3px, color-mix(in srgb, var(--loss) 30%, transparent) 3px 6px); border-color: var(--loss); }
.legend .legend-rev i { height: 3px; border: 0; border-radius: 0; background: #FBF6EC; box-shadow: 0 0 0 1px #14173A; }
#legend-grid { color: var(--muted); }
#legend-grid:empty { display: none; }
.legend li[hidden] { display: none; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; font-size: .78rem; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }

/* Explanation */
#explain { margin: 0; padding-left: 1.1em; font-size: .95rem; line-height: 1.5; color: var(--text-2); max-width: 62ch; }
#explain li + li { margin-top: 6px; }
#explain strong { color: var(--text); font-weight: 600; }
/* The verdict's screen: one muted line under the verdict. */
#explain .screen { display: block; margin-top: 2px; font-size: .82rem; line-height: 1.45; color: var(--muted); }
#explain .nw { white-space: nowrap; }
#deploy-note { margin: 10px 0 0; max-width: 62ch; font-size: .82rem; line-height: 1.45; color: var(--muted); }
/* How protection is priced here: closed by default, one short paragraph per product. */
#pricing { border-top: 1px solid var(--line); padding-top: 10px; }
#pricing summary { cursor: pointer; font-weight: 500; font-size: .95rem; padding: 6px 0; }
#pricing-notes { max-width: 62ch; font-size: .88rem; line-height: 1.5; color: var(--text-2); }
#pricing-notes p { margin: 8px 0 0; }
#pricing-notes strong { color: var(--text); font-weight: 600; }
#pricing-notes .nw { white-space: nowrap; }
#pricing-notes .caveat { color: var(--muted); font-size: .82rem; }
.reading { display: flex; flex-direction: column; gap: 12px; }
#status { margin: 0; font-size: .85rem; color: var(--muted); min-height: 1.2em; }

/* Adjust inputs */
#adjust { border-top: 1px solid var(--line); padding-top: 16px; }
#adjust summary { cursor: pointer; font-weight: 500; font-size: .95rem; padding: 6px 0; }
.group { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.group legend { padding: 0; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sliders { display: grid; gap: 16px; margin-top: 10px; }
@media (min-width: 600px) { .sliders { grid-template-columns: 1fr 1fr; gap: 16px 28px; } }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: .82rem; color: var(--text-2); }
.field__head { display: flex; align-items: center; gap: 6px; min-width: 0; }
/* The info button: a small circled "i" with a 28 px hit area; its note opens under the control. */
.info { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: -4px 0; padding: 0; background: transparent; border: 0; border-radius: 50%; color: var(--muted); cursor: pointer; }
.info span { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; font: 600 11px/1 'Sora', system-ui, sans-serif; }
.info:hover, .info[aria-expanded="true"] { color: var(--text); }
.info-text { margin: 2px 0 0; font-size: .8rem; line-height: 1.45; color: var(--text-2); max-width: 46ch; }
.field input[type="range"] { width: 100%; accent-color: var(--ember-deep); }
.field output { font-size: .85rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.field--check { justify-content: center; }
.field--check label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: .88rem; color: var(--text); cursor: pointer; }
.field--check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ember-deep); }
.field select { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
/* Calculate (primary) and Reset; the pending note under them. */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
#calc { font: inherit; font-size: .88rem; font-weight: 600; color: #14173A; background: var(--saffron); border: 1px solid #C27D0E; border-radius: 10px; padding: 10px 22px; min-height: 40px; cursor: pointer; }
#calc:disabled, #reset:disabled { cursor: default; opacity: .6; }
#pending { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
#pending:empty { display: none; }
#reset { font: inherit; font-size: .88rem; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; min-height: 40px; cursor: pointer; }

/* Footer: the page colour, the gold-to-saffron rule above; the links stay underlined. */
.foot { background: var(--accent) left top / 100% 4px no-repeat, var(--bg); color: var(--text-2); padding: 22px 0 22px; }
#footer-sources { margin: 0; font-size: .78rem; line-height: 1.7; }
#footer-sources a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.foot .disclaimer { margin-top: 6px; font-size: .78rem; }

/* The annual figures' info button under the size cards; its note opens beneath it. */
.annual-about { margin: 4px 0 0; font-size: .78rem; color: var(--muted); }
#i-annual { margin: 0 0 4px; }

/* Currency legend: one muted line under the size cards. */
#currency-legend { margin: 0; font-size: .78rem; color: var(--muted); }
#currency-legend:empty { display: none; }

/* FAQ: full width above the footer, each question a closed <details> on a 1 px --line hairline. */
.faq { padding: 8px 0 40px; }
.faq h2 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 12px 0; font-size: .95rem; font-weight: 500; color: var(--text); }
.faq p { margin: 0 0 14px; max-width: 70ch; font-size: .9rem; line-height: 1.6; color: var(--text-2); }
.faq a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* Number boxes beside the sliders: the slider takes the rest of the row, the box a fixed width (at least 44 px tall to tap). */
.ctl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ctl input[type="range"] { flex: 1 1 auto; min-width: 0; }
.num { flex: none; width: 6.5rem; min-height: 44px; font: inherit; font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.num[aria-invalid="true"] { border-color: var(--loss-text); }
.num:disabled { opacity: .6; }
@media (max-width: 480px) { .num { width: 5.75rem; } }
#reset-note { margin: 0; font-size: .85rem; color: var(--text-2); }
#reset-note:empty { display: none; }
.field--keep { margin-top: 16px; }

/* Tables (pricing, year-by-year cash): scroll sideways inside their own box, never the page. */
.tbl-scroll { max-width: 100%; overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; }
.tbl-scroll:focus-visible { outline: 2px solid var(--ember-deep); outline-offset: 2px; }
.tbl-scroll table { border-collapse: collapse; width: 100%; font-size: .8rem; font-variant-numeric: tabular-nums; }
.tbl-scroll caption { caption-side: top; text-align: left; padding: 8px 10px; color: var(--muted); font-size: .78rem; }
.tbl-scroll th, .tbl-scroll td { padding: 6px 10px; text-align: right; white-space: nowrap; border-top: 1px solid var(--line); }
.tbl-scroll th:first-child, .tbl-scroll td:first-child { text-align: left; }
.tbl-scroll thead th { color: var(--text-2); font-weight: 600; }
#joint-line, #cash-note, #cash-payback { margin: 8px 0 0; max-width: 62ch; font-size: .85rem; line-height: 1.5; color: var(--text-2); }
#joint-line:empty, #cash-payback:empty { display: none; }
.cash-aside { margin: 6px 0 0; max-width: 62ch; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.cash-aside[hidden] { display: none; }
#cash { border-top: 1px solid var(--line); padding-top: 10px; }
#cash summary { cursor: pointer; font-weight: 500; font-size: .95rem; padding: 6px 0; }

/* ---- Audit round 3: project first, decision summary, cost table, scenarios ---- */
/* Phones: the project controls and the result come first; the map is collapsed below them behind a button. */
.map-toggle { display: none; font: inherit; font-size: .88rem; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
@media (max-width: 899px) {
  .stage__globe { order: 2; }
  .map-toggle { display: inline-block; }
  .stage__globe:not(.open) #globe { display: none; }
}
.stage__side .pick { margin-top: 0; }
#country-name { margin: 4px 0 0; }

/* The decision summary: four statuses, each with its own tone, never one label for all. */
.summary h2 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.sum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sum { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; }
.sum--wide { grid-column: 1 / -1; }
.sum[data-tone="pos"] { border-left-color: var(--data); }
.sum[data-tone="neg"] { border-left-color: var(--loss); }
.sum[data-tone="thin"] { border-left-color: var(--saffron); }
.sum .k { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sum .st { font-size: 1.05rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sum .val { font-size: .85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sum .hint { font-size: .75rem; line-height: 1.4; color: var(--muted); }
.sum-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
#summary-verdict { margin: 0; font-size: .9rem; font-weight: 500; }
#summary-verdict[data-tone="pos"] { color: var(--data); }
#summary-verdict[data-tone="neg"] { color: var(--loss-text); }
#summary-verdict[data-tone="thin"] { color: var(--saffron-text); }
#summary-inputs { margin: 10px 0 0; font-size: .8rem; line-height: 1.45; color: var(--text-2); overflow-wrap: break-word; }
#summary-inputs:empty { display: none; }
.seg-ctl--small button { font-size: .8rem; padding: 6px 10px; min-height: 36px; }

/* The selected size's card is outlined; the cost table highlights its column. */
#bars figure { border-radius: 8px; padding: 4px; margin: -4px; }
#bars figure.sel { box-shadow: 0 0 0 2px #C27D0E; }
#costs summary { cursor: pointer; font-weight: 500; font-size: .95rem; padding: 6px 0; }
#cost-table .sel { background: color-mix(in srgb, var(--saffron) 14%, transparent); }

/* Readable supporting text: nothing below 12 px. Phones drop the per-card break-even line (the cost table has it). */
#bars .be, #bars .alt, #bars .annual, #bars .gpus, #bars .it { font-size: max(12px, .75rem); }
@media (max-width: 480px) {
  #bars .annual, #bars .gpus, #bars .it, #bars figcaption { font-size: 12px; }
  #bars .be { display: none; }
}

/* Save, share, and compare. */
.scenario { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.scenario h2 { margin: 0; font-size: .95rem; font-weight: 600; }
.scn-row { display: flex; flex-direction: column; gap: 4px; }
.scn-row label { font-size: .82rem; color: var(--text-2); }
#scenario-name, #copy-box { width: 100%; font: inherit; font-size: .9rem; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.scn-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.scn-actions button { font: inherit; font-size: .88rem; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.scn-actions button:disabled { opacity: .6; cursor: default; }
#copy-status { margin: 0; font-size: .85rem; color: var(--text-2); }
#copy-status:empty, #version-note:empty { display: none; }
.link-btn { font: inherit; font-size: .8rem; color: var(--text); background: transparent; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; min-height: 32px; }
#cmp-table a { color: var(--text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#downside-line { margin: 8px 0 0; max-width: 62ch; font-size: .85rem; line-height: 1.5; color: var(--text); }
#downside-line:empty { display: none; }

/* Calculate stays in reach: the action bar sticks to the bottom of the screen while the inputs are open. */
#adjust[open] .actions { position: sticky; bottom: 0; z-index: 5; align-items: center; background: var(--bg); border-top: 1px solid var(--line); padding: 10px 0; margin-top: 20px; }
#adjust .actions #pending { margin: 0; }
/* The experimental humanoid module: closed by default inside the inputs. */
.exp { margin-top: 16px; border: 1px dashed var(--line); border-radius: 10px; padding: 4px 12px 12px; }
.exp > summary { cursor: pointer; font-size: .88rem; font-weight: 500; padding: 8px 0; color: var(--text-2); }

/* The PDF download form: name and email, asked at every download. */
/* The detached PDF-only sections, when the browser checks attach them, lay out as before. */
.pdf-only { display: contents; }
.range-note { margin: 4px 0 0; font-size: .8rem; color: var(--loss-text); }
.range-note:empty { display: none; }

/* The sign-in card (visitor-gate.js) defaults to gold for its eyebrow, error and focus ring; on ivory those take the deeper tones. */
body .vg-eyebrow { color: var(--saffron-text); }
body .vg-status--error { color: var(--loss-text); }
body .vg-input:focus { outline-color: var(--ember-deep); }
