/* ============================================================
   NoDCC — design system
   Art direction: “the keypad moment”. Every ATM keypad on earth
   shares one grammar — green ENTER, red CANCEL. NoDCC borrows it:
   green = pay in local currency, red = the conversion trap.
   Surfaces are receipt-paper neutrals; numbers are always mono.
   System fonts only. No webfonts, no images required to render.
   ============================================================ */

:root {
  --paper: #f1f0ea;
  --surface: #ffffff;
  --ink: #14181d;
  --ink-soft: #4c5560;
  --ink-faint: #656e7a;
  --line: #dcd9cf;
  --line-soft: #e8e6de;
  --green: #00753a;
  --green-deep: #005c2e;
  --green-tint: #e7f3ea;
  --red: #c23527;
  --red-deep: #9c2a1f;
  --red-tint: #faece9;
  --amber: #9a6a00;
  --amber-tint: #f8f0dc;
  --screen: #0f1f31;
  --screen-2: #16293f;
  --screen-text: #d9e8f7;
  --screen-dim: #8fa6bd;
  --screen-glow: #7fd1ff;
  --focus: #1461c7;
  --radius: 10px;
  --radius-lg: 16px;
  --font-ui: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --shadow-card: 0 1px 2px rgba(20, 24, 29, 0.05), 0 8px 28px rgba(20, 24, 29, 0.07);
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
}

::selection { background: var(--green); color: #fff; }

a { color: inherit; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.17rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 62ch; }

.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-soft);
  vertical-align: middle;
}
.chip--green { border-color: var(--green); color: var(--green); background: var(--green-tint); }
.chip--red { border-color: var(--red); color: var(--red); background: var(--red-tint); }
.chip--amber { border-color: var(--amber); color: var(--amber); background: var(--amber-tint); }

/* ---------- keypad keys (brand primitive) ---------- */

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.15s ease, filter 0.15s ease;
  user-select: none;
}
.key:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.key--green {
  background: var(--green); color: #fff;
  box-shadow: 0 4px 0 var(--green-deep), 0 6px 14px rgba(0, 117, 58, 0.28);
}
.key--green:hover { background: #008a45; }
.key--red {
  background: var(--surface); color: var(--red);
  border-color: var(--red);
  box-shadow: 0 4px 0 var(--red-tint);
}
.key--ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 4px 0 var(--line-soft);
}
.key:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,0.2); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 240, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 18px;
}
/* gap stays 0: the bare "DCC" text node is its own flex item, so a flex gap
   would also open a hole before ".com". Space the mark with a margin instead. */
.brand { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; font-weight: 800; font-size: 1.14rem; letter-spacing: -0.01em; }
/* The mark: an ATM keycap whose O is the enter-key ring. The literal "NO" text
   stays in the DOM (and in the a11y tree) but is hidden behind the artwork. */
.brand-key {
  display: inline-block;
  width: 29px; height: 29px;
  /* the SVG keeps ~4.7% breathing room inside its own box for favicon use,
     so the lockup margin is small to keep the optical join tight */
  margin-right: 2px;
  align-self: center;
  background: url("/favicon.svg") center / contain no-repeat;
  font-size: 0; color: transparent; line-height: 0;
  flex: none;
  transition: transform 0.08s ease;
}
.brand:hover .brand-key { transform: translateY(-1px); }
.brand:active .brand-key { transform: translateY(1px); }
.brand small { font-weight: 600; color: var(--ink-faint); font-size: 0.72rem; margin-left: 1px; }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--ink-soft); padding: 8px 11px; border-radius: 8px;
}
.site-nav a:hover { color: var(--ink); background: var(--line-soft); }
.site-nav a[aria-current="page"] { color: var(--green); }

.nav-toggle {
  display: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-weight: 700; font-size: 0.9rem;
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px;
    box-shadow: 0 18px 30px rgba(20, 24, 29, 0.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .site-nav a:last-child { border-bottom: 0; }
}

/* ---------- hero ---------- */

.hero { padding-top: 54px; padding-bottom: 10px; position: relative; }
.hero h1 { max-width: 21ch; }

/* decorative ATM keypad cluster, desktop hero only */
.hero-keys {
  position: absolute; right: 46px; top: 74px;
  display: flex; flex-direction: column; gap: 15px;
  transform: rotate(-4deg);
  pointer-events: none;
}
.hkey {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.14em; padding: 17px 22px; border-radius: 13px; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 26px;
  min-width: 212px;
}
.hkey--red { background: var(--red); box-shadow: 0 6px 0 var(--red-deep), 0 14px 26px rgba(194, 53, 39, 0.22); }
.hkey--amber { background: #c08a10; box-shadow: 0 6px 0 var(--amber), 0 14px 26px rgba(154, 106, 0, 0.2); }
.hkey--green {
  background: var(--green);
  box-shadow: 0 7px 0 var(--green-deep), 0 18px 32px rgba(0, 117, 58, 0.32);
  transform: scale(1.07);
}
@media (max-width: 1040px) { .hero-keys { display: none; } }
.hero .lede { margin: 18px 0 8px; }
.hero-fact {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint);
  margin-top: 14px;
}

/* ---------- calculator ---------- */

.calc {
  margin: 34px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 26px;
  align-items: start;
}
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.panel-title {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px; margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
}
.seg button {
  border: 0; background: transparent; padding: 11px 6px;
  font-weight: 600; font-size: 0.88rem; color: var(--ink-soft);
  border-right: 1px solid var(--line);
  min-width: 0;
}
@media (max-width: 420px) { .seg button { font-size: 0.78rem; padding: 11px 3px; } }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.field { margin-top: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 6px; }
.field .hint { font-size: 0.8rem; color: var(--ink-faint); font-weight: 400; margin-left: 4px; }

.input-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; }
.input-row > * { min-width: 0; }
@media (max-width: 420px) { .input-row { grid-template-columns: minmax(0, 1fr) 124px; } }

input[type="number"], input[type="text"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.02rem;
}
select { font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); }

.swap-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.swap-btn {
  background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--ink-soft); flex: none;
}
.swap-btn:hover { background: var(--line-soft); }

.mode-tabs { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.mode-tabs button {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 8px 14px; font-size: 0.83rem; font-weight: 600; color: var(--ink-soft);
}
.mode-tabs button[aria-pressed="true"] { background: var(--green-tint); border-color: var(--green); color: var(--green-deep); }

.slider-row { display: flex; align-items: center; gap: 14px; }
input[type="range"] { flex: 1; accent-color: var(--green); min-height: 28px; }
.slider-val {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
  min-width: 64px; text-align: right;
}
.range-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 6px; }

details.adv { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
details.adv summary {
  cursor: pointer; font-weight: 700; font-size: 0.86rem; color: var(--ink-soft);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
details.adv summary::before { content: "+"; font-family: var(--font-mono); color: var(--green); font-weight: 700; }
details.adv[open] summary::before { content: "–"; }

.preset-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.preset-row button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 7px;
  font-family: var(--font-mono); font-size: 0.76rem; padding: 4px 9px; color: var(--ink-soft);
}
.preset-row button[aria-pressed="true"] { border-color: var(--green); color: var(--green-deep); background: var(--green-tint); }

/* ---------- receipt output ---------- */

.receipt {
  background:
    repeating-linear-gradient(0deg, rgba(20, 24, 29, 0.012) 0 1px, transparent 1px 5px),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-card);
  padding: 22px 24px 30px;
  position: relative;
}

.slip-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px; margin-bottom: 18px;
}
.slip-head .slip-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; color: var(--ink);
}
.slip-head .slip-meta { font-size: 0.68rem; color: var(--ink-faint); letter-spacing: 0.08em; text-align: right; }
.receipt::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background:
    linear-gradient(-45deg, transparent 8px, var(--surface) 0) 0 0 / 16px 16px repeat-x,
    linear-gradient(45deg, transparent 8px, var(--surface) 0) 8px 0 / 16px 16px repeat-x;
  filter: drop-shadow(0 3px 2px rgba(20, 24, 29, 0.08));
}

.verdict {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 700;
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 18px;
  line-height: 1.35;
}
.verdict--save { background: var(--green-tint); color: var(--green-deep); border: 1px solid #bcd9c4; }
.verdict--warn { background: var(--amber-tint); color: var(--amber); border: 1px solid #e2cf9c; }
.verdict .big { font-size: 1.22rem; display: block; }
.verdict small { font-weight: 600; opacity: 0.85; }

.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 430px) { .duel { grid-template-columns: 1fr; } }

.duel-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; overflow-wrap: break-word; }
.duel-card.win { border-color: var(--green); background: var(--green-tint); }
.duel-card.lose { border-color: var(--red-tint); background: #fdf7f6; }
.duel-card .tag {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 6px;
}
.duel-card.win .tag { color: var(--green-deep); }
.duel-card.lose .tag { color: var(--red); }
.duel-card .amount { font-family: var(--font-mono); font-size: 1.52rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.duel-card .sub { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }

.receipt-lines { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 12px; }
.rline {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 0.88rem; padding: 5px 0; color: var(--ink-soft);
}
.rline .num { color: var(--ink); font-weight: 600; }
.rline.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; color: var(--ink); }

.rates-meta {
  margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); flex-wrap: wrap;
}
.rates-meta .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 6px; }
.rates-meta .dot.live { background: var(--green); }

.share-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.share-row .key { flex: 1; min-width: 150px; font-size: 0.88rem; padding: 11px 14px; }

/* ---------- ATM screen illustration ---------- */

.screen-panel {
  background:
    repeating-linear-gradient(0deg, rgba(127, 209, 255, 0.025) 0 1px, transparent 1px 4px),
    var(--screen);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: var(--screen-text);
  box-shadow: inset 0 0 0 1px rgba(127, 209, 255, 0.14), var(--shadow-card);
}
.screen-panel .eyebrow { color: var(--screen-glow); }
.screen-panel h2, .screen-panel h3 { color: #fff; }
.screen-panel p { color: var(--screen-dim); }

.atm-demo {
  background: var(--screen-2);
  border: 1px solid rgba(127, 209, 255, 0.22);
  border-radius: var(--radius);
  padding: 20px;
  font-family: var(--font-mono);
  margin-top: 18px;
}
.atm-demo .q { color: var(--screen-glow); font-size: 0.86rem; margin-bottom: 14px; }
.atm-demo .q::after {
  content: "▮";
  margin-left: 6px;
  font-size: 0.8em;
  animation: nodcc-blink 1.3s steps(2) infinite;
}
@keyframes nodcc-blink { 50% { opacity: 0; } }
.atm-demo .opt {
  border: 1px solid rgba(217, 232, 247, 0.25);
  border-radius: 8px; padding: 12px 14px; margin-top: 10px;
  font-size: 0.84rem; display: flex; justify-content: space-between; gap: 10px; align-items: center;
  color: var(--screen-text);
}
.atm-demo .opt.correct { border-color: #35c56f; background: rgba(53, 197, 111, 0.12); }
.atm-demo .opt.trap { border-color: rgba(226, 100, 84, 0.6); background: rgba(226, 100, 84, 0.1); }
.atm-demo .opt .label-tag { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; flex: none; }
.atm-demo .opt.correct .label-tag { color: #52e08d; }
.atm-demo .opt.trap .label-tag { color: #ff9d8c; }

/* ---------- sections & cards ---------- */

.section { padding-top: 72px; }
.section-head { max-width: 66ch; margin-bottom: 30px; }
.section-head p { color: var(--ink-soft); margin-top: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.94rem; }
.card .mono-top {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--green);
  letter-spacing: 0.14em; font-weight: 600; display: block; margin-bottom: 10px; text-transform: uppercase;
}
a.card { text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease; display: block; }
a.card:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: 0 2px 3px rgba(20,24,29,0.05), 0 14px 34px rgba(20,24,29,0.12); }
.card .go { font-weight: 700; color: var(--green); font-size: 0.88rem; margin-top: 12px; display: inline-block; transition: transform 0.12s ease; }
a.card:hover .go { transform: translateX(4px); }

/* data table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
th {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-faint); background: var(--paper);
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.1s ease; }
tbody tr:hover { background: var(--line-soft); }
td .num { font-weight: 600; }

/* ---------- country pages ---------- */

.country-hero { padding-top: 40px; padding-bottom: 6px; }
.country-hero .codes { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.backlink { margin-bottom: 16px; }
.backlink a {
  font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.backlink a::before { content: "←"; color: var(--green); transition: transform 0.12s ease; }
.backlink a:hover { color: var(--ink); }
.backlink a:hover::before { transform: translateX(-3px); }

.phrase-label {
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--screen-glow); margin-bottom: 10px;
}

.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 26px 0; }
@media (max-width: 720px) { .fact-grid { grid-template-columns: 1fr; } }

.phrase-card {
  background: var(--screen); color: var(--screen-text);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card);
}
.phrase-card .say { font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: #fff; margin: 8px 0 4px; }
.phrase-card .roman { font-family: var(--font-mono); color: var(--screen-glow); font-size: 0.88rem; }
.phrase-card .note { color: var(--screen-dim); font-size: 0.86rem; margin-top: 12px; }

.exposure { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.exposure .meter { display: inline-flex; gap: 3px; }
.exposure .meter i { width: 16px; height: 8px; border-radius: 3px; background: var(--line); }
.exposure.high .meter i:nth-child(-n+3) { background: var(--red); }
.exposure.medium .meter i:nth-child(-n+2) { background: var(--amber); }
.exposure.low .meter i:nth-child(1) { background: var(--green); }

.country-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .country-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .country-list { grid-template-columns: 1fr; } }
.country-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; text-decoration: none; font-weight: 600; font-size: 0.94rem;
}
.country-list a:hover { border-color: var(--green); background: var(--green-tint); }

/* ---------- article / prose pages ---------- */

.prose { max-width: 720px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose strong { font-weight: 700; }
.prose .callout {
  border-left: 4px solid var(--green); background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px; font-size: 0.95rem; box-shadow: var(--shadow-card);
}
.prose .callout--warn { border-left-color: var(--red); }
.prose table { min-width: 0; }

.article-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-faint); margin: 12px 0 4px; }

/* FAQ accordion */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow-card); }
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 16px 18px; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  border-radius: var(--radius); transition: background 0.12s ease;
}
.faq-item summary:hover { background: var(--green-tint); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--green); font-weight: 700; font-size: 1.2rem; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 18px 18px; color: var(--ink-soft); font-size: 0.96rem; }
.faq-item .faq-body > * + * { margin-top: 0.8em; }

/* ---------- refusal card ---------- */

.refusal-card {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  max-width: 640px; padding: 26px 28px; position: relative;
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px var(--line), var(--shadow-card);
}
.refusal-card .rc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 18px;
}
.refusal-card .rc-title {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 0;
}
.refusal-card .rc-title .brand-key { width: 23px; height: 23px; margin-right: 1px; }
.refusal-card .rc-show {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.2em; color: var(--ink-faint); display: block; margin-bottom: 8px;
}
.refusal-card .rc-phrase { font-size: 1.45rem; font-weight: 700; line-height: 1.35; }
.refusal-card .rc-domain {
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-faint);
  letter-spacing: 0.1em; text-align: right; margin-top: 16px;
}
.refusal-card .rc-roman { font-family: var(--font-mono); color: var(--ink-soft); font-size: 0.9rem; margin-top: 6px; }
.refusal-card .rc-en { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- sibling tools ---------- */

.siblings { margin-top: 76px; border-top: 1px solid var(--line); padding: 28px 0 32px; }
.siblings-lead { color: var(--ink-soft); font-size: 0.92rem; max-width: 62ch; margin-bottom: 16px; }
.siblings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .siblings-grid { grid-template-columns: 1fr; } }

.sibling {
  display: block; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.sibling:hover {
  transform: translateY(-2px); border-color: var(--green);
  box-shadow: 0 10px 24px rgba(20, 24, 29, 0.09);
}
.sibling-name { font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 6px; }
.sibling-go { color: var(--green); font-size: 0.85em; transition: transform 0.12s ease; }
.sibling:hover .sibling-go { transform: translate(2px, -2px); }
.sibling-dom {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-faint);
  letter-spacing: 0.05em; display: block; margin-top: 3px;
}
.sibling-desc { display: block; margin-top: 9px; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- footer ---------- */

.site-footer { margin-top: 76px; border-top: 1px solid var(--line); background: var(--surface); }
.siblings + .site-footer { margin-top: 0; }
.site-footer .wrap { padding-top: 38px; padding-bottom: 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--green); }
.foot-brand p { color: var(--ink-soft); font-size: 0.9rem; margin-top: 12px; max-width: 40ch; }
.foot-pf { margin-top: 14px !important; }
.foot-pf a {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--ink-faint); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.foot-pf a:hover { color: var(--ink); border-color: var(--ink-faint); }
.foot-legal {
  border-top: 1px solid var(--line-soft); margin-top: 28px; padding-top: 18px;
  font-size: 0.8rem; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ---------- utility & print ---------- */

.center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 34px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 0.9rem;
  padding: 12px 20px; border-radius: 999px; opacity: 0; transition: all 0.25s ease;
  z-index: 90; pointer-events: none; max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media print {
  .site-header, .site-footer, .siblings, .no-print { display: none !important; }
  body { background: #fff; font-size: 12.5px; }
  .refusal-card { border-color: #000; box-shadow: none; page-break-inside: avoid; margin-bottom: 14px; }
  .panel, .card { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   MOBILE REFINEMENT
   Desktop rhythm (72px sections, 24px container padding) leaves
   roughly 300px of usable text on a 390px screen and opens gaps
   that read as broken. Below 760px the scale is re-set: tighter
   containers, a shorter vertical beat, and tables that stack
   instead of clipping.
   ============================================================ */

@media (max-width: 760px) {
  body { font-size: 16px; }
  /* Gutters SCALE with the viewport (375 -> 28px, 460 -> 34px, cap 52px).
     Fixed-px gutters read as wall-to-wall as soon as the viewport grows. */
  .wrap { padding: 0 clamp(26px, 7.5vw, 52px); }

  /* Display type is the other half of the cramped feel: a 32px headline
     filling every line edge-to-edge amplifies it. Scale the type to the
     screen, not the brand book. */
  h1 { font-size: clamp(1.65rem, 6.6vw, 2.2rem); letter-spacing: -0.015em; }
  h2 { font-size: 1.32rem; }
  .lede { font-size: 1.02rem; }
  .hero h1 { max-width: none; }

  /* vertical beat: 72 -> 44, so sections read as related, not orphaned */
  .section { padding-top: 44px; }
  .section-head { margin-bottom: 20px; }
  .hero { padding-top: 34px; padding-bottom: 6px; }
  .country-hero { padding-top: 30px; padding-bottom: 4px; }
  .mt-3 { margin-top: 24px; }

  /* containers: modest padding cut from desktop's 24px, but dark surfaces
     keep 20px — tight dark panels read as cramped faster than light ones */
  .panel, .card { padding: 18px; }
  .screen-panel, .phrase-card { padding: 20px 18px; }
  .receipt { padding: 18px 18px 24px; }
  .refusal-card { padding: 20px 18px; }
  .atm-demo { padding: 14px; }
  .calc { margin: 22px 0 16px; gap: 18px; }
  .fact-grid { gap: 12px; margin: 20px 0; }

  .prose { font-size: 1rem; }
  .prose h2 { margin-top: 1.5em; }

  /* full-width stacked actions: no two-line button next to a one-line button */
  .share-row { flex-direction: column; gap: 8px; }
  .share-row .key { width: 100%; min-width: 0; }

  /* the two calculator modes wrapped into ragged pills of different widths;
     stacked full-width reads as a deliberate pair and is easier to thumb */
  .mode-tabs { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .mode-tabs button { text-align: center; padding: 10px 12px; }

  /* slip header wrapped on both sides at once; stack it instead */
  .slip-head { flex-direction: column; align-items: flex-start; gap: 3px; padding-bottom: 10px; margin-bottom: 14px; }
  .slip-head .slip-meta { text-align: left; }

  /* keep the verdict on one line: it is the single most important sentence */
  .verdict { padding: 12px 14px; gap: 10px; }
  .verdict .big { font-size: 1.04rem; }
  .verdict svg { width: 22px; height: 22px; flex: none; }

  .faq-item summary { padding: 14px 16px; }
  .faq-item .faq-body { padding: 0 16px 16px; }

  /* context tabs: one line each across the whole mobile range
     ("ATM withdrawal" was wrapping between 420 and 760) */
  .seg button { font-size: 0.79rem; padding: 11px 4px; }

  .siblings { margin-top: 48px; padding: 22px 0 24px; }
  .site-footer { margin-top: 48px; }
  .site-footer .wrap { padding-top: 28px; padding-bottom: 26px; }
  .foot-grid { gap: 22px; }
}
@media (max-width: 400px) {
  .seg button { font-size: 0.72rem; padding: 11px 2px; letter-spacing: -0.01em; }
}

/* Tables stop being tables: a 4-column grid with a prose column cannot
   survive 350px, and a clipped scroll area reads as a bug. Each row
   becomes a labelled card. Labels come from td[data-label]. */
@media (max-width: 680px) {
  .table-wrap {
    border: 0; background: transparent; box-shadow: none;
    overflow-x: visible; border-radius: 0;
  }
  .table-wrap table { min-width: 0; width: 100%; display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }

  .table-wrap tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 14px 16px;
    margin-bottom: 10px;
  }
  .table-wrap tbody tr:hover { background: var(--surface); }
  .table-wrap tr:last-child { margin-bottom: 0; }

  .table-wrap td { border-bottom: 0; padding: 5px 0; font-size: 0.92rem; }
  .table-wrap td:first-child {
    font-size: 1.02rem; padding: 0 0 10px;
    border-bottom: 1px dashed var(--line); margin-bottom: 8px;
  }
  .table-wrap td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-faint); margin-bottom: 1px;
  }
}
