/* Orderglint v2 — High-trust, high-conversion English FX comparison & calculator UI. */
:root {
  --bg: #f4f7f5;
  --paper: #ffffff;
  --canvas: #eaf1ed;
  --ledger: #0d211b;
  --ledger-soft: #153229;
  --ledger-border: rgba(196, 222, 212, 0.18);
  --ledger-muted: #b0cbc0;
  --ink: #0d1c18;
  --ink-soft: #283c36;
  --muted: #4b615a;
  --rule: #d5e0db;
  --rule-strong: #b4c7bf;
  --brand: #0a5f44;
  --brand-hover: #074733;
  --brand-soft: #e6f4ee;
  --brand-border: #9bcbb8;
  --accent: #0f766e;
  --good: #047857;
  --good-bg: #ecfdf5;
  --warn: #92400e;
  --warn-bg: #fef3c7;
  --danger: #991b1b;
  --danger-bg: #fee2e2;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(13, 28, 24, 0.05);
  --shadow: 0 10px 26px -10px rgba(13, 28, 24, 0.11), 0 2px 6px -1px rgba(13, 28, 24, 0.04);
  --pad: clamp(1rem, 3.2vw, 2.25rem);
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 1.35rem + 1.6vw, 2.65rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.wrap {
  max-width: 74rem;
  padding-inline: var(--pad);
  margin-inline: auto;
}
.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 90;
  background: var(--paper);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-weight: 600;
}
.skip:focus { top: 0.5rem; }

/* Header & Navigation */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.85rem;
  flex-wrap: wrap;
  padding-block: 0.45rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 1.25rem; height: 1.25rem; fill: var(--brand); flex: none; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.site-nav a:hover { background: var(--canvas); color: var(--ink); }
.site-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--canvas);
  flex-shrink: 0;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] {
  background: var(--brand);
  color: #ffffff;
}

/* Disclosure Bar */
.disclosure-bar {
  background: var(--canvas);
  border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
  padding-block: 0.45rem;
}
.disclosure-bar p { line-height: 1.45; }

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.7rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
  font: 600 0.9375rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.btn:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(10, 95, 68, 0.35);
}
.btn.outline {
  background: var(--paper);
  color: var(--brand);
  border-color: var(--brand-border);
}
.btn.outline:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-hover);
  box-shadow: none;
}
.btn.sm { min-height: 2.2rem; padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn.block { width: 100%; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  font-size: 0.775rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
}
.pill.good { background: var(--good-bg); color: var(--good); border: 1px solid #a7f3d0; }
.pill.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #fcd34d; }
.pill.danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #fca5a5; }
.pill.neutral { background: var(--canvas); color: var(--ink-soft); border: 1px solid var(--rule); }

/* Layout Sections */
main { padding-block: clamp(1.5rem, 3vw, 2.5rem) 3.5rem; }
.section { margin-top: clamp(2rem, 4vw, 3.25rem); }
.section-head { margin-bottom: 1.25rem; }
.section-head p { color: var(--muted); margin-top: 0.4rem; max-width: 48rem; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Hero & Cards */
.hero-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2.35rem);
  box-shadow: var(--shadow);
}
.hero-lead {
  font-size: clamp(1.02rem, 0.96rem + 0.25vw, 1.15rem);
  color: var(--ink-soft);
  margin-top: 0.75rem;
  max-width: 50rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}
.verdict-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-sm);
}
.verdict-card.highlight {
  border-color: var(--brand);
  background: linear-gradient(180deg, #f3fbf7 0%, #ffffff 45%);
}
.verdict-card p { font-size: 0.93rem; color: var(--ink-soft); }
.verdict-card .verdict-foot { margin-top: auto; padding-top: 0.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.1rem;
}
.card-grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}
.check-field input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.18rem;
  accent-color: var(--brand);
  flex: none;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-sm);
}
.card p { font-size: 0.94rem; color: var(--ink-soft); }
.card-foot { margin-top: auto; padding-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* Comparison Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.cmp caption {
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--canvas);
  border-bottom: 1px solid var(--rule);
}
table.cmp th, table.cmp td {
  padding: 0.85rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
table.cmp thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #fafcfb;
  white-space: normal;
  line-height: 1.3;
}
table.cmp tbody tr:last-child th,
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp tbody tr.is-best { background: #f2faf6; }
table.cmp .sub { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 400; margin-top: 0.15rem; }
table.cmp .cta-cell .btn { white-space: nowrap; }

/* Responsive stacked tables on narrow screens */
@media (max-width: 720px) {
  table.cmp.stack thead { display: none; }
  table.cmp.stack, table.cmp.stack caption, table.cmp.stack tbody, table.cmp.stack tr, table.cmp.stack th, table.cmp.stack td {
    display: block;
    width: 100%;
  }
  table.cmp.stack tr {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--rule-strong);
  }
  table.cmp.stack tbody tr:last-child { border-bottom: none; }
  table.cmp.stack th, table.cmp.stack td {
    padding: 0.3rem 0;
    border: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    text-align: right;
  }
  table.cmp.stack td.num { white-space: normal; }
  table.cmp.stack th[scope="row"] {
    font-size: 1.02rem;
    text-align: left;
    display: block;
    padding-bottom: 0.45rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px dashed var(--rule);
  }
  table.cmp.stack td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-align: left;
    flex-shrink: 0;
  }
  table.cmp.stack td.cta-cell {
    display: block;
    text-align: left;
    padding-top: 0.65rem;
  }
  table.cmp.stack td.cta-cell::before { display: none; }
}

/* Interactive Calculators */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.35rem;
  align-items: start;
}
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; }
}
.calc-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}
.preset-btn {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink-soft);
  font: 600 0.82rem/1.2 var(--font);
  cursor: pointer;
  transition: background-color 0.14s, color 0.14s, border-color 0.14s;
}
.preset-btn:hover { border-color: var(--brand); color: var(--brand); }
.preset-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (max-width: 540px) {
  .field-grid { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.32rem; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.field input[type="number"], .field select {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font: 500 0.95rem var(--font);
  color: var(--ink);
  background: #ffffff;
}
.field input[type="range"] { width: 100%; accent-color: var(--brand); cursor: pointer; }
.field small { font-size: 0.78rem; color: var(--muted); }
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
@media (max-width: 540px) { .field-pair { grid-template-columns: 1fr; } }
.acct-col {
  background: #fafcfb;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.acct-col h3 { font-size: 0.95rem; color: var(--ink); }

/* Dark Ledger Result Panel */
.ledger-card {
  background: var(--ledger);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 4.8rem;
}
@media (max-width: 860px) { .ledger-card { position: static; } }
.ledger-card h2, .ledger-card h3 { color: #ffffff; }
.ledger-kicker {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ledger-muted);
  font-weight: 600;
}
.ledger-big {
  font-size: clamp(1.65rem, 1.35rem + 1vw, 2.25rem);
  font-weight: 700;
  color: #6ee7b7;
  margin-top: 0.35rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.ledger-sub { color: var(--ledger-muted); font-size: 0.9rem; margin-top: 0.35rem; }
.ledger-list {
  margin-top: 1.1rem;
  border-top: 1px solid var(--ledger-border);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.ledger-row span:first-child { color: var(--ledger-muted); }
.ledger-row strong { color: #ffffff; font-variant-numeric: tabular-nums; text-align: right; }
.ledger-cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ledger-border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ledger-card .btn { background: #10b981; border-color: #10b981; color: #062119; }
.ledger-card .btn:hover { background: #34d399; border-color: #34d399; color: #041712; }
.ledger-card .btn.outline { background: transparent; border-color: rgba(176, 203, 192, 0.45); color: #ffffff; }
.ledger-card .btn.outline:hover { background: var(--ledger-soft); }

/* Embedded Inline Break-Even Widget */
.inline-slider {
  background: var(--ledger);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-top: 1.5rem;
}
.inline-slider h3 { color: #ffffff; margin-bottom: 0.35rem; }
.inline-slider p { color: var(--ledger-muted); font-size: 0.92rem; }
.inline-slider-ctrl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}
.inline-slider-ctrl input[type="range"] { flex: 1 1 12rem; accent-color: #34d399; }
.inline-slider-out {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ledger-border);
}
.stat-tile {
  background: var(--ledger-soft);
  border: 1px solid var(--ledger-border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
.stat-tile small { display: block; color: var(--ledger-muted); font-size: 0.78rem; }
.stat-tile strong { display: block; font-size: 1.18rem; color: #ffffff; margin-top: 0.2rem; font-variant-numeric: tabular-nums; }
.stat-tile.winner strong { color: #6ee7b7; }
.inline-slider .btn { margin-top: 1rem; background: #10b981; border-color: #10b981; color: #062119; }
.inline-slider .btn:hover { background: #34d399; border-color: #34d399; }

/* Prose & Callouts */
.prose { max-width: 56rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.35rem; }
.prose ul, .prose ol { padding-left: 1.25rem; list-style: disc; display: flex; flex-direction: column; gap: 0.45rem; }
.prose ol { list-style: decimal; }
.callout {
  background: var(--paper);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.callout.notice { border-color: var(--rule-strong); border-left-color: var(--ink-soft); background: var(--canvas); }
.callout p + p { margin-top: 0.5rem; }
.fine { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* FAQ & Sources */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
}
.faq-item summary { font-weight: 600; cursor: pointer; color: var(--ink); }
.faq-item p { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.94rem; }

.sources-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  font-size: 0.88rem;
}
.sources-box ul { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; padding-left: 1.15rem; list-style: disc; }

/* Fallback US/EU Band */
.alt-band {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.alt-band p { color: var(--ink-soft); max-width: 42rem; margin-top: 0.35rem; font-size: 0.94rem; }

/* Footer */
.foot {
  background: var(--ledger);
  color: var(--ledger-muted);
  padding-block: 2.25rem 2.5rem;
  font-size: 0.86rem;
}
.foot a { color: #d5ebe2; text-decoration: none; }
.foot a:hover { color: #ffffff; text-decoration: underline; }
.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ledger-border);
}
.foot .wordmark { color: #ffffff; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot-risk { margin-top: 1.1rem; line-height: 1.55; max-width: 62rem; }
.foot-meta { margin-top: 0.75rem; font-size: 0.8rem; opacity: 0.85; }

/* Inline SVG Data Charts */
.chart-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
}
.chart-head h3 { font-size: 1.05rem; color: var(--ink); }
.chart-head p { font-size: 0.88rem; color: var(--muted); margin-top: 0.25rem; }
.chart-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}
.chart-row { display: flex; flex-direction: column; gap: 0.3rem; }
.chart-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  font-size: 0.88rem;
}
.chart-label { color: var(--ink-soft); font-weight: 500; }
.chart-row.is-best .chart-label { color: var(--ink); font-weight: 700; }
.chart-val { color: var(--ink); font-size: 0.9rem; white-space: normal; }
.chart-row.is-best .chart-val { color: var(--brand); }
.chart-bar-svg { display: block; width: 100%; height: 11px; }
.chart-foot { margin-top: 0.9rem; padding-top: 0.65rem; border-top: 1px solid var(--rule); }

/* Shareable Calculator Link Row */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.3rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(176, 203, 192, 0.55);
  background: rgba(255, 255, 255, 0.04);
  color: #d5ebe2;
  font: 600 0.83rem/1.2 var(--font);
  cursor: pointer;
  transition: background-color 0.14s, border-color 0.14s, color 0.14s;
}
.share-btn:hover { background: var(--ledger-soft); border-color: #6ee7b7; color: #ffffff; }
.share-status {
  display: block;
  min-height: 1.15em;
  font-size: 0.78rem;
  color: #6ee7b7;
  text-align: center;
}

/* Honest Trade-Off & Related Reading Clusters */
.tradeoff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.tradeoff-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
}
.tradeoff-box.pro { border-top: 3px solid var(--brand); }
.tradeoff-box.con { border-top: 3px solid var(--warn); }
.tradeoff-box h3 { font-size: 1rem; margin-bottom: 0.55rem; }
.tradeoff-box ul { padding-left: 1.15rem; list-style: disc; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; color: var(--ink-soft); }

.related-band {
  background: var(--canvas);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
}
.related-band h2 { font-size: 1.18rem; margin-bottom: 0.85rem; }
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
}
.related-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.14s, transform 0.12s;
}
.related-link:hover { border-color: var(--brand); transform: translateY(-1px); text-decoration: none; }
.related-link strong { font-size: 0.92rem; color: var(--brand); }
.related-link span { font-size: 0.82rem; color: var(--muted); }

/* Answer-First Direct Summary Box (Google Snippet & AI Overview Structure) */
.quick-answer {
  margin-top: 1.15rem;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
}
.quick-answer-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: 0.3rem;
}
.quick-answer p { font-size: 0.95rem; color: var(--ink); line-height: 1.55; }
.quick-answer p + p { margin-top: 0.45rem; }

/* Result Card PNG Export & Free Embeddable Widget Drawer */
.calc-share-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 480px) {
  .calc-share-row { grid-template-columns: 1fr; }
}
.embed-drawer {
  margin-top: 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}
.embed-drawer summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.embed-drawer summary::-webkit-details-marker { display: none; }
.embed-drawer summary::after { content: "+"; font-size: 1.1rem; color: var(--brand); flex: none; }
.embed-drawer[open] summary::after { content: "−"; }
.embed-drawer-body { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.65rem; }
.embed-drawer-body p { font-size: 0.84rem; color: var(--muted); }
.embed-code {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink);
  font: 400 0.78rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  resize: vertical;
}
.embed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.embed-copy-status { font-size: 0.82rem; font-weight: 600; color: var(--brand); }

/* Minimal Embeddable Calculator Mode (/embed/* & /es/embed/*) */
body.embed-mode {
  background: transparent;
  min-height: 0;
  padding: 0.75rem;
}
body.embed-mode .embed-wrap {
  max-width: 68rem;
  margin: 0 auto;
}
body.embed-mode .embed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}
body.embed-mode .embed-head h1 {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
body.embed-mode .embed-head span {
  font-size: 0.78rem;
  color: var(--muted);
}
body.embed-mode .embed-foot {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
body.embed-mode .embed-foot a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
body.embed-mode .embed-foot a:hover { text-decoration: underline; }
