/* ══════════════════════════════════════════════════════════════════════════
   SellPKR — styled to match the reference board: a warm off-white page, a
   dark live-rate ticker riding in the header, and exchange cards that read
   like a leaderboard rather than a spreadsheet. Green carries the "live and
   trustworthy" idea throughout; each exchange keeps its own accent colour on
   its card so six cards in a row stay tellable apart at a glance.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:      #faf9f3;
  --paper:   #ffffff;
  --raise:   #f3f1e8;
  --hair:    #e8e4d6;
  --hair-2:  #d8d3c0;

  --ink:     #14201a;
  --ink-2:   #52584f;
  --ink-3:   #8a8c7f;

  --green:   #0f8a4c;
  --green-d: #0a5c38;
  --green-l: #17b978;
  --green-t: rgba(15, 138, 76, .09);

  --coral:   #d9563e;
  --gold:    #e8a13a;

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
button, input { font-family: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tag-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; color: var(--green-d);
  margin-bottom: 6px;
}
.tag-eyebrow::before {
  content: ""; display: inline-block; width: 16px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 9px);
}

/* the flag-inspired brand mark: two bars, one solid green one white-on-hair,
   a quiet nod to Pakistan's flag without literally drawing it */
.flagbar { display: inline-flex; gap: 3px; width: 14px; height: 26px; flex: 0 0 auto; }
.flagbar i { display: block; width: 5px; height: 26px; border-radius: 2px; }
.flagbar i:first-child { background: var(--green); }
.flagbar i:last-child { background: var(--paper); border: 1px solid var(--hair-2); }

/* ── header ──────────────────────────────────────────────────────────────── */

.hd {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--hair);
  background: rgba(250, 249, 243, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 66px; }

.brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.brand img { max-height: 30px; width: auto; }
.brand .bn { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.03em; }

.ticker {
  display: none;
  align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  border-radius: 999px; padding: 7px 8px 7px 14px;
  font-family: var(--mono);
}
.ticker .tk-sym { color: var(--ink-3); font-size: 13px; }
.ticker .tk-v { font-weight: 700; font-size: 15px; }
.ticker .tk-live {
  background: var(--coral); color: #fff; font-family: var(--body);
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  border-radius: 999px; padding: 3px 8px;
}
.ticker .tk-live::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: #fff; margin-right: 4px; vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
}
.ticker .tk-label {
  font-family: var(--body); font-size: 10px; font-weight: 600;
  letter-spacing: .08em; color: rgba(255,255,255,.55); padding-right: 4px;
}
@keyframes pulse { 50% { opacity: .35; } }

.hd-nav { display: flex; align-items: center; gap: 2px; }
.hd-nav a:not(.hd-cta) {
  padding: 8px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  border-radius: var(--r-s);
}
.hd-nav a:not(.hd-cta):hover { color: var(--ink); background: var(--raise); }
.hd-nav a.on { color: var(--ink); }
.hd-cta {
  margin-left: 6px; padding: 9px 18px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 13.5px; font-weight: 700;
  transition: background .16s ease;
}
.hd-cta:hover { background: var(--green-d); }

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero { padding: 46px 0 40px; text-align: center; }
.hero.small { padding: 40px 0 28px; }
.hero h1 {
  font-size: clamp(28px, 6.4vw, 46px);
  line-height: 1.1;
  max-width: 18ch;
  margin: 0 auto 14px;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lede {
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 52ch;
  margin: 0 auto 26px;
}
.hero .lede b { color: var(--ink); }

/* ── the sell/buy calculator box, the centrepiece of the hero ───────────── */

.calcbox {
  max-width: 620px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--hair);
  border-radius: var(--r-l); padding: 10px;
  box-shadow: 0 18px 40px -20px rgba(20, 32, 26, .18);
  text-align: left;
}
.calc-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--raise); border-radius: var(--r-m); padding: 4px; margin-bottom: 10px;
}
.calc-tabs button {
  background: none; border: 0; border-radius: 8px;
  color: var(--ink-3); padding: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: all .16s ease;
}
.calc-tabs button:hover { color: var(--ink-2); }
.calc-tabs button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.calc-row { display: flex; gap: 8px; padding: 4px; }
.calc-in {
  flex: 1; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--hair-2); border-radius: var(--r-m);
  padding: 0 14px; min-width: 0;
}
.calc-ic { font-family: var(--mono); color: var(--ink-3); font-size: 15px; }
.calc-in input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--ink);
  padding: 14px 0;
}
.calc-in input::placeholder { color: var(--ink-3); font-weight: 500; }
.calc-go {
  flex: 0 0 auto; border: 0; border-radius: var(--r-m);
  background: var(--green); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 0 20px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .16s ease;
}
.calc-go:hover { background: var(--green-d); }
.calc-go span { transition: transform .16s ease; }
.calc-go:hover span { transform: translateX(2px); }
.calc-n { padding: 10px 14px 4px; font-size: 13px; color: var(--ink-2); min-height: 1.4em; }
.calc-n b { color: var(--green-d); font-weight: 700; }

/* the big instant result, the thing the eye should land on the moment a
   number goes in — matches the reference site's oversized rupee figure */
.calc-result {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  background: var(--raise); border-radius: var(--r-m);
  margin: 4px 4px 6px; padding: 18px 14px;
  animation: pop-in .18s ease;
}
.cr-flag { display: inline-flex; gap: 2px; width: 10px; height: 20px; flex: 0 0 auto; margin-right: 4px; }
.cr-flag i { display: block; width: 4px; height: 20px; border-radius: 1px; }
.cr-flag i:first-child { background: var(--green); }
.cr-flag i:last-child { background: var(--paper); border: 1px solid var(--hair-2); }
.cr-v {
  font-family: var(--display); font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 8vw, 44px); font-weight: 800; letter-spacing: -.03em;
  color: var(--green-d);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* the row of quick figures under the hero calculator */
.hstats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px;
  margin-top: 22px; font-size: 13px; color: var(--ink-3);
}
.hstats i { font-style: normal; margin-right: 5px; }
.hstats b { color: var(--ink); font-weight: 700; }
.hstats b.up   { color: var(--green-d); }
.hstats b.down { color: var(--coral); }

.wrap.narrow { max-width: 740px; }

.pg-h { padding: 44px 0 20px; border-bottom: 1px solid var(--hair); margin-bottom: 28px; }
.pg-h h1 { font-size: clamp(26px, 6vw, 36px); }

.prose { color: var(--ink-2); font-size: 15.5px; max-width: 68ch; }
.prose h2 { color: var(--ink); font-size: 19px; margin: 30px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { color: var(--ink); font-style: italic; }
.prose a { color: var(--green-d); border-bottom: 1px solid rgba(15, 138, 76, .3); }
.prose a:hover { border-bottom-color: var(--green-d); }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green); }

.upd {
  margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}

/* ── section heads ───────────────────────────────────────────────────────── */

.sec-h { margin: 46px 0 20px; }
.sec-h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-h h2 { font-size: 24px; }
.sec-h-note { font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); }
.sec-h-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; max-width: 60ch; }

/* ── exchange board ──────────────────────────────────────────────────────── */

.board { display: grid; grid-template-columns: 1fr; gap: 16px; }

.ex {
  --b: var(--green);
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--r-l);
  background: var(--paper);
  padding: 20px;
  transition: border-color .18s ease, box-shadow .22s ease, transform .22s ease;
}
/* the "3D" lift: the card rises and a soft glow tinted to its own brand
   colour appears underneath, as if it just floated up off the page */
.ex:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -20px rgba(20,32,26,.35), 0 8px 18px -10px rgba(20,32,26,.12);
  box-shadow: 0 22px 40px -20px color-mix(in srgb, var(--b) 55%, transparent), 0 8px 18px -10px rgba(20,32,26,.12);
  border-color: color-mix(in srgb, var(--b) 35%, var(--hair));
}
.ex.is-best { border-color: var(--green); border-width: 2px; padding: 19px; box-shadow: 0 16px 34px -18px rgba(15, 138, 76, .3); }
.ex.is-best:hover { box-shadow: 0 24px 42px -18px rgba(15,138,76,.45); }

.best-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  border-radius: 999px; padding: 5px 14px; white-space: nowrap;
  box-shadow: 0 4px 10px -3px rgba(15,138,76,.5);
}

/* decorative only — a quiet "expand" glyph in the corner, purely visual */
.ex-expand {
  position: absolute; top: 14px; right: 14px;
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid var(--hair-2); color: var(--ink-3);
  background: var(--paper);
}
.ex-expand svg { width: 13px; height: 13px; }

.ex-h { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 14px; }
.ex-badge {
  --b: var(--green);
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--b); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset;
}
.ex-h h3 { font-size: 18px; }
.ex-h .tag {
  font-family: var(--body); font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3);
}

.ex-price {
  --pc: var(--green);
  text-align: center; padding: 14px 10px 16px;
  background: var(--raise); border-radius: var(--r-m); margin-bottom: 14px;
}
.ex-price {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 30px; font-weight: 700; letter-spacing: -.03em;
  color: var(--pc);
}
.ex-price span { display: block; margin-top: 4px;
  font-family: var(--body); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.checking { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--ink-3); animation: check-pulse 1.6s ease-in-out infinite; }
@keyframes check-pulse { 50% { opacity: .45; } }
.offers-empty { font-size: 12.5px; color: var(--ink-3); text-align: center; padding: 10px 4px 14px; margin: 0; }

.offers { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.offers li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 4px; border-bottom: 1px solid var(--hair);
  font-size: 13px;
}
.offers li:last-child { border-bottom: 0; }
.o-n {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px;
  background: var(--hair); color: var(--ink-2);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
}
.o-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.o-p { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); white-space: nowrap; }

.ex-btns { display: flex; gap: 8px; margin-bottom: 12px; }
.btn-sell, .btn-ghost {
  flex: 1; text-align: center; padding: 12px; border-radius: var(--r-m);
  font-size: 13.5px; font-weight: 700; transition: all .16s ease;
}
.btn-sell {
  --b: var(--green);
  background: var(--b); color: #fff;
  filter: brightness(1);
}
.btn-sell:hover { filter: brightness(.88); }
.btn-ghost {
  border: 1px solid var(--hair-2); color: var(--ink-2); background: var(--paper);
}
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sell.sm, .btn-ghost.sm { flex: 0 0 auto; padding: 9px 16px; font-size: 12.5px; display: inline-block; }

.ex-foot { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }
.ex-foot .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-l); margin-right: 6px;
  box-shadow: 0 0 0 3px var(--green-t);
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .35; transform: scale(.85); } }

/* colour text automatically on cards whose brand happens to be dark on dark
   backgrounds, e.g. OKX's near-black button keeps white label text by default
   already since .btn-sell forces #fff */

/* ── individual exchange page ────────────────────────────────────────────── */

.crumb { font-size: 12.5px; color: var(--ink-3); margin: 20px 0 16px; }
.crumb a { color: var(--ink-2); border-bottom: 1px solid var(--hair-2); }
.crumb a:hover { color: var(--green-d); }

.xhero {
  --b: var(--green);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--ink) 0%, #1c2b21 100%);
  border-radius: var(--r-l); padding: 22px 26px; margin-bottom: 18px;
}
.xhero > div:first-child { display: flex; align-items: center; gap: 14px; }
.xhero h1 { color: #fff; font-size: clamp(20px, 4vw, 26px); margin-bottom: 4px; }
.tag.light { color: rgba(255,255,255,.6); }
.ex-badge.lg { width: 48px; height: 48px; flex: 0 0 48px; font-size: 19px; border-radius: 13px; }

.stat4 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r-m);
  overflow: hidden; margin-bottom: 28px;
}
.stat4 > div { background: var(--paper); padding: 14px 16px; }
.stat4 b { display: block; margin-top: 5px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 19px; font-weight: 700; }
.stat4 b.up { color: var(--green-d); }
.stat4 b.down { color: var(--coral); }

.xlayout { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; }
.xmain h2 { font-size: 19px; margin: 30px 0 12px; }
.xmain h2:first-child { margin-top: 0; }
.xmain p, .xmain li { color: var(--ink-2); font-size: 15px; }
.xmain ul { padding-left: 20px; margin: 0 0 1em; }
.xmain li { margin-bottom: .4em; }
.xmain li::marker { color: var(--green); }

.offer-box { border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--paper); padding: 18px; margin-bottom: 6px; }
.offer-box h2 { margin: 0 0 12px; }
.offer-box.empty-note p { margin: 0; }
.otbl { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.otbl td { padding: 9px 6px; border-bottom: 1px solid var(--hair); font-size: 13.5px; vertical-align: middle; }
.otbl tr:last-child td { border-bottom: 0; }
.otbl td:first-child { width: 26px; }
.otbl td:nth-child(2) b { font-size: 10.5px; letter-spacing: .04em; }
.otbl .range { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.otbl td.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.side-tag {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 700; color: #fff;
}
.side-tag.sell { background: var(--green); }
.side-tag.buy  { background: var(--ink-3); }
.btn-sell.full { display: block; text-align: center; }

.callout {
  background: var(--green-t); border: 1px solid rgba(15,138,76,.25);
  border-radius: var(--r-m); padding: 14px 18px; margin: 20px 0;
}
.callout p { margin: 0; font-size: 13.5px; color: var(--green-d); }
.callout a { color: var(--green-d); font-weight: 700; border-bottom: 1px solid rgba(15,138,76,.4); }
.callout.warn { background: #fdecea; border-color: #f6c9c2; }
.callout.warn p { color: #7a2e22; }
.callout.warn strong { color: #5c1f16; }

.xside { display: flex; flex-direction: column; gap: 16px; }
.live-card { --b: var(--green); border: 1px solid var(--hair); border-radius: var(--r-l); background: var(--paper); padding: 18px; }
.lc-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.ex-badge.sm { width: 26px; height: 26px; flex: 0 0 26px; font-size: 11px; border-radius: 7px; }
.ex-badge.xs { width: 22px; height: 22px; flex: 0 0 22px; font-size: 10px; border-radius: 6px; }
.lc-tag { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 14px; }
.lc-main { text-align: center; background: var(--raise); border-radius: var(--r-m); padding: 14px; margin-bottom: 12px; }
.lc-main b { display: block; margin-top: 4px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; color: var(--green-d); }
.lc-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid var(--hair); }
.lc-row b { font-family: var(--mono); color: var(--ink); }
.lc-row:last-of-type { border-bottom: 0; margin-bottom: 12px; }

.other-card { border: 1px solid var(--hair); border-radius: var(--r-l); background: var(--paper); padding: 16px; }
.other-card h4 { font-family: var(--body); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.other-row { display: flex; align-items: center; gap: 9px; padding: 8px 4px; border-bottom: 1px solid var(--hair); }
.other-row:last-of-type { border-bottom: 0; }
.or-n { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.or-best { font-size: 9px; font-weight: 700; background: var(--green); color: #fff; border-radius: 4px; padding: 2px 6px; }
.or-p { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; }
.other-link { display: block; margin-top: 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--green-d); }

/* ── more platforms (not live-tracked) ──────────────────────────────────── */

.more-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.more-c {
  --b: var(--green);
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--hair); border-radius: var(--r-m);
  background: var(--paper); padding: 12px 14px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .18s ease;
}
.more-c:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -18px rgba(20,32,26,.28);
  box-shadow: 0 16px 28px -18px color-mix(in srgb, var(--b) 45%, transparent);
  border-color: color-mix(in srgb, var(--b) 30%, var(--hair));
}
.ex-badge.sm { width: 32px; height: 32px; flex: 0 0 32px; font-size: 13px; border-radius: 9px; }
.more-i { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.more-i b { font-family: var(--display); font-size: 14.5px; font-weight: 700; }
.more-i .tag { font-size: 9.5px; }
.more-i .quirk {
  font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--coral);
  background: #fdecea; border-radius: 4px; padding: 2px 7px; align-self: flex-start; margin-top: 2px;
}
.more-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.more-c .btn-ghost.sm { flex: 0 0 auto; }

/* ── the plain-language explainer block ─────────────────────────────────── */

.explain { max-width: 72ch; color: var(--ink-2); font-size: 15.5px; margin: 8px 0; }
.explain h2 { color: var(--ink); font-size: 19px; margin: 30px 0 10px; }
.explain h2:first-child { margin-top: 0; }
.explain strong { color: var(--ink); font-weight: 700; }

/* ── faq accordion ───────────────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; gap: 8px; max-width: 72ch; }
.faq details {
  border: 1px solid var(--hair); border-radius: var(--r-m);
  background: var(--paper); padding: 2px 18px;
}
.faq summary {
  padding: 15px 0; cursor: pointer; list-style: none; user-select: none;
  font-weight: 700; font-size: 15px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-family: var(--mono); color: var(--green); font-size: 17px; flex: 0 0 auto; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq p { color: var(--ink-2); font-size: 14px; margin: 0 0 15px; }

/* ── the pink safety callout, straight out of the reference design ─────── */

.safety-box {
  margin: 30px 0 10px;
  background: #fdecea; border: 1px solid #f6c9c2;
  border-radius: var(--r-m); padding: 16px 20px;
}
.safety-box p { margin: 0; font-size: 13.5px; color: #7a2e22; line-height: 1.6; }
.safety-box strong { color: #5c1f16; }

/* ── table (all-rates page) ──────────────────────────────────────────────── */

.tbl-w { overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--paper); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.tbl th {
  text-align: left; padding: 12px 16px; background: var(--raise);
  font-family: var(--body); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--hair); white-space: nowrap;
}
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--hair); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tbl td.muted { color: var(--ink-3); }

/* ── exchange review list (exchanges.php) ───────────────────────────────── */

.ex-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.exc {
  --b: var(--green);
  border: 1px solid var(--hair); border-radius: var(--r-l); background: var(--paper);
  overflow: hidden; scroll-margin-top: 90px;
  transition: box-shadow .22s ease, transform .22s ease, border-color .18s ease;
}
.exc:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -20px rgba(20,32,26,.3);
  box-shadow: 0 18px 34px -20px color-mix(in srgb, var(--b) 45%, transparent);
  border-color: color-mix(in srgb, var(--b) 30%, var(--hair));
}
.exc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
         padding: 18px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); }
.ex-id { display: flex; align-items: center; gap: 12px; }
.exc-h h2 { font-size: 19px; margin-bottom: 3px; }
.exc-p { display: flex; gap: 22px; }
.exc-p > div span { display: block; margin-bottom: 3px; }
.exc-p b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 700; }
.exc-b { padding: 18px 20px; }
.exc-b p { font-size: 14px; margin: 0 0 10px; padding-left: 22px; position: relative; color: var(--ink-2); }
.exc-b p::before { position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; }
.exc-b .good::before { content: "+"; color: var(--green); }
.exc-b .bad::before  { content: "−"; color: var(--coral); }
.exc-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* ── ads ─────────────────────────────────────────────────────────────────── */

.ad { margin: 28px 0; text-align: center; min-width: 0; overflow: hidden; }
.ad .ad-l {
  display: block; margin-bottom: 6px;
  font-size: 8.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); opacity: .6;
}
.ad > * { max-width: 100%; }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty h2 { color: var(--ink); font-size: 20px; margin-bottom: 8px; }

/* ── footer ──────────────────────────────────────────────────────────────── */

.ft {
  border-top: 1px solid var(--hair); margin-top: 60px; padding: 44px 0 26px;
  background: #101b14; color: #cfd6cf;
}
.ft .flagbar i:last-child { background: #101b14; border-color: #2a362d; }
.ft .bn { color: #fff; }
.ft-top { display: grid; grid-template-columns: 1fr; gap: 32px; }
.ft-d { font-size: 13.5px; color: #8b9689; margin: 14px 0 0; max-width: 40ch; line-height: 1.65; }
.ft-d a { color: #cfd6cf; border-bottom: 1px solid #2a362d; }
.ft-d a:hover { color: var(--green-l); }
.ft h4 { font-family: var(--body); font-size: 10.5px; font-weight: 700; letter-spacing: .13em;
         text-transform: uppercase; color: #6d786a; margin-bottom: 14px; }
.ft ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ft li a { font-size: 13.5px; color: #b7bfb2; }
.ft li a:hover { color: var(--green-l); }
.ft-bot {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  border-top: 1px solid #223027; margin-top: 36px; padding-top: 20px;
  font-size: 12px; color: #6d786a;
}

/* ── wider screens ───────────────────────────────────────────────────────── */

@media (min-width: 640px) {
  .ticker { display: inline-flex; }
  .board { grid-template-columns: 1fr 1fr; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .stat4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .ft-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 860px) {
  .xlayout { grid-template-columns: 1fr 300px; }
  .xside { position: sticky; top: 82px; }
}

@media (max-width: 639px) {
  .hd-nav a:not(.hd-cta) { display: none; }
  .calc-row { flex-direction: column; }
  .calc-go { justify-content: center; padding: 14px; }
}

@media (min-width: 980px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 28px; }
  .sec-h h2 { font-size: 26px; }
  .more-grid { grid-template-columns: 1fr 1fr 1fr; }
}

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ex-foot .dot, .ticker .tk-live::before { animation: none; }
}
