/* KursBTC — the yellow "обмін валют" kiosk board Ukrainians read every day, applied to crypto.
   Board: sign yellow with black condensed figures, rows for each source, columns for buying and selling.
   Paper pages stay plain: white, one blue for links, slab-serif headings, system body text. */

@font-face { font-family: "Roboto Condensed"; src: url("/assets/fonts/roboto-cond-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("/assets/fonts/bitter-600.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --board: #ffd60a;
  --board-2: #f5c400;
  --chalk: #000000;
  --chalk-dim: #4a4100;
  --marigold: #000000;
  --ink: #1b1f24;
  --ink-2: #4b5560;
  --paper: #ffffff;
  --mist: #f2f4f7;
  --rule: #dde2e8;
  --tick: #0047bb;
  --risk: #c62828;
  --display: "Roboto Condensed", "Arial Narrow", "Bahnschrift", sans-serif;
  --head: "Bitter", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --wrap: 72rem;
  --read: 42rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.62 var(--body); }
@media (min-width: 48rem) { body { font-size: 1.0625rem; } }
img, svg { max-width: 100%; height: auto; }
a { color: var(--tick); text-underline-offset: .16em; text-decoration-thickness: .06em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.18; letter-spacing: -.005em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.6rem); margin: 2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--board); color: #000; padding: .5rem .8rem; z-index: 10; }
.skip:focus { left: .5rem; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* Masthead */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.65rem; line-height: 1; letter-spacing: -.01em; }
.brand-name span { color: var(--tick); }
.top nav { display: flex; gap: .25rem 1.1rem; flex-wrap: wrap; font-family: var(--head); font-weight: 600; font-size: .95rem; }
.top nav a { color: var(--ink); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current="page"] { border-bottom-color: var(--tick); }

/* The rate board */
.board { background: var(--board); color: var(--chalk); padding: 1.25rem 0 1.4rem; position: relative; border-bottom: 6px solid #000; }
.board h1, .board h2 { color: var(--chalk); margin: .1rem 0 .9rem; }
.board a { color: #000; text-decoration-thickness: .12em; }
.board-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; color: var(--chalk-dim); font-size: .92rem; margin-bottom: .6rem; }
.board h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); letter-spacing: -.01em; line-height: 1.02; }
.checked { display: inline-flex; align-items: center; gap: .35rem; }
.checked svg { width: 1.05em; height: 1.05em; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; margin: 0 0 1rem; }
.quote { border-top: 1px dashed rgba(0, 0, 0, .55); padding-top: .55rem; }
.quote dt { font-family: var(--head); font-weight: 600; font-size: .95rem; color: var(--chalk-dim); }
.quote dd { margin: 0; }
.fig { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.4rem); line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums lining-nums; }
.fig small { font-size: .45em; margin-right: .18em; color: var(--chalk-dim); letter-spacing: 0; }
.quote p { margin: .35rem 0 0; font-size: .9rem; color: var(--chalk-dim); }
.refs { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 0 0 1rem; padding: .6rem 0; border-top: 1px dashed rgba(0, 0, 0, .55); border-bottom: 1px dashed rgba(0, 0, 0, .55); }
.refs div { display: flex; gap: .5rem; align-items: baseline; }
.refs span { color: var(--chalk-dim); font-size: .92rem; }
.refs strong { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; }
.refs .hl strong { background: #000; color: var(--board); padding: 0 .35rem; border-radius: 3px; }
.methods { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.methods li { border: 1px solid rgba(0, 0, 0, .4); border-radius: 999px; padding: .2rem .7rem; font-size: .88rem; color: var(--chalk); }
.methods b { font-weight: 600; }
.board-note { font-size: .86rem; color: var(--chalk-dim); margin: 0; max-width: 60ch; }
.board-fallback { color: var(--chalk-dim); }

/* Converter sits on the board */
.conv { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: end; background: #fff3b0; border: 2px solid #000; border-radius: 6px; padding: .9rem; margin: 0 0 1rem; }
.conv label { display: grid; gap: .3rem; font-family: var(--head); font-weight: 600; font-size: .9rem; color: var(--chalk-dim); }
.conv input { width: 100%; font: 700 1.6rem/1.2 var(--display); letter-spacing: .01em; color: var(--chalk); background: transparent; border: 0; border-bottom: 2px solid rgba(0, 0, 0, .6); padding: .2rem 0; font-variant-numeric: tabular-nums; }
.conv input:focus { outline: none; border-bottom-color: var(--tick); }
.conv .eq { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: #000; padding-bottom: .25rem; }
.conv-modes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--chalk-dim); }
.conv-modes label { display: inline-flex; gap: .35rem; align-items: center; font-family: var(--body); font-weight: 400; font-size: .88rem; }
.conv-modes input { width: auto; accent-color: #000; }

/* Home: what people come to do */
.home-main { padding: 2rem 0 1rem; }
.tasks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.tasks li { border-bottom: 1px solid var(--rule); }
.tasks a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1rem .2rem; text-decoration: none; color: var(--ink); }
.tasks strong { font-family: var(--head); font-weight: 600; font-size: 1.12rem; }
.tasks span { color: var(--ink-2); font-size: .95rem; grid-column: 1; }
.tasks a::after { content: ""; grid-row: 1 / span 2; grid-column: 2; align-self: center; width: .6rem; height: .6rem; border-top: 2px solid var(--tick); border-right: 2px solid var(--tick); transform: rotate(45deg); }
.tasks a:hover strong { color: var(--tick); }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .split { grid-template-columns: 1.15fr .85fr; } }

/* Guide lists */
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li { padding: .95rem 0; border-bottom: 1px solid var(--rule); }
.guide-list a { font-family: var(--head); font-weight: 600; font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.guide-list a:hover { color: var(--tick); text-decoration: underline; }
.guide-list p { margin: .25rem 0 0; color: var(--ink-2); font-size: .95rem; }
.guide-list .when { display: block; margin-top: .3rem; font-size: .82rem; color: var(--ink-2); }

/* Article */
.page-head { padding: 1.6rem 0 1.2rem; border-bottom: 1px solid var(--rule); }
.page-head .crumbs { font-size: .9rem; margin: 0 0 .4rem; color: var(--ink-2); }
.page-head .crumbs a { color: var(--ink-2); }
.intro { font-size: 1.12rem; color: var(--ink-2); max-width: var(--read); margin: 0 0 .8rem; }
.dateline { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: .88rem; color: var(--ink-2); margin: 0; }
.dateline .checked svg { color: var(--tick); }
.article-grid { display: grid; gap: 2rem; padding: 1.5rem 0 3rem; }
@media (min-width: 64rem) { .article-grid { grid-template-columns: 15rem minmax(0, var(--read)); gap: 3.5rem; } }
.toc { font-size: .93rem; }
.toc summary { font-family: var(--head); font-weight: 600; cursor: pointer; padding: .5rem 0; }
.toc ol { padding-left: 1.2rem; margin: .4rem 0 0; }
.toc li { margin: .3rem 0; }
.toc a { color: var(--ink-2); }
@media (min-width: 64rem) { .toc { position: sticky; top: 1rem; align-self: start; } }
.prose { max-width: var(--read); }
.prose h2 { scroll-margin-top: 1rem; }
.prose li { margin: .3rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.4rem; }
.prose caption { text-align: left; font-family: var(--head); font-weight: 600; padding-bottom: .4rem; }
.prose th, .prose td { text-align: left; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-family: var(--head); font-weight: 600; font-size: .9rem; }
.table-wrap { overflow-x: auto; }
.prose ol.steps { counter-reset: step; list-style: none; padding: 0; }
.prose ol.steps > li { counter-increment: step; position: relative; padding: 0 0 .9rem 2.6rem; }
.prose ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: -.05rem; width: 1.85rem; height: 1.85rem; border-radius: 4px; background: var(--board); color: #000; font: 700 1rem/1.85rem var(--display); text-align: center; }

/* Facts we checked: each line carries the date and the source */
.facts { background: var(--mist); border-radius: 10px; padding: 1rem 1.1rem .4rem; margin: 0 0 1.6rem; }
.facts h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.facts ul { list-style: none; padding: 0; margin: 0; }
.facts li { display: grid; grid-template-columns: 1.2rem 1fr; gap: .55rem; margin: 0 0 .75rem; }
.facts li svg { width: 1.2rem; height: 1.2rem; color: var(--tick); margin-top: .2rem; }
.facts small { display: block; color: var(--ink-2); font-size: .82rem; }
.callout { border-left: 4px solid #000; background: #fffbe0; padding: .8rem 1rem; margin: 1.2rem 0; }
.callout.risk { border-left-color: var(--risk); background: #fdf3f2; }
.callout p:last-child { margin-bottom: 0; }
details.faq { border-bottom: 1px solid var(--rule); padding: .7rem 0; }
details.faq summary { font-family: var(--head); font-weight: 600; cursor: pointer; }
details.faq p { margin: .5rem 0 0; }
.sources ol { font-size: .92rem; padding-left: 1.2rem; }
.related ul { list-style: none; padding: 0; }
.related li { padding: .45rem 0; border-bottom: 1px solid var(--rule); }

/* Data blocks on the rate and price pages */
.hist-fig { margin: 1rem 0; }
.hist-svg { width: 100%; height: auto; display: block; }
.hist td:first-child, .hist th:first-child { white-space: nowrap; }
.price-table td:nth-child(n+2), .price-table th:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.up { color: var(--tick); }
.down { color: var(--risk); }

/* Affiliate entry (Pakistan only, injected at the edge) */
.ref-box { border: 2px solid #000; border-radius: 12px; padding: 1.1rem 1.2rem; margin: 2rem auto; max-width: var(--read); }
.ref-box h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.ref-box p { font-size: .95rem; }
.ref-go { display: inline-grid; gap: .1rem; background: var(--board); color: #000; border: 2px solid #000; text-decoration: none; border-radius: 8px; padding: .7rem 1.1rem; font-family: var(--head); font-weight: 600; }
.ref-go small { font-family: var(--body); font-weight: 400; color: #333; font-size: .82rem; }
.ref-gos { display: flex; flex-wrap: wrap; gap: .7rem; }
.ref-go:hover { background: var(--board-2); }
.ref-fine { font-size: .84rem; color: var(--ink-2); margin: .7rem 0 0; }
.ref-strip { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: baseline; font-size: .92rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.ref-strip small { flex-basis: 100%; color: var(--ink-2); font-size: .8rem; }
.inline-cta { border-top: 3px solid var(--board); border-bottom: 1px solid var(--rule); padding: .9rem 0; margin: 1.6rem 0; }
.inline-cta strong { font-family: var(--head); font-weight: 600; display: block; margin-bottom: .3rem; }
.inline-cta small { display: block; color: var(--ink-2); font-size: .8rem; margin-top: .5rem; }
.code-card { display: grid; gap: .5rem; border: 2px dashed #000; border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem 0; }
.code-value { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: .04em; }
.code-copy { font: 600 .95rem var(--head); background: var(--mist); border: 1px solid var(--rule); border-radius: 8px; padding: .5rem .9rem; cursor: pointer; color: var(--ink); }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .7rem; justify-content: space-between; background: #000; color: #fff; padding: .55rem 1rem; font-size: .92rem; z-index: 5; }
.mobile-cta a { color: #000; background: var(--board); padding: .35rem .8rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.mobile-cta button { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
@media (min-width: 48rem) { .mobile-cta { display: none; } }
body.has-mcta { padding-bottom: 3.2rem; }
@media (min-width: 48rem) { body.has-mcta { padding-bottom: 0; } }

/* Footer */
.foot { border-top: 1px solid var(--rule); margin-top: 3rem; padding: 1.8rem 0 2.2rem; font-size: .9rem; color: var(--ink-2); }
.foot p { max-width: 70ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .8rem; }
.foot nav a { color: var(--ink-2); }

.not-found { padding: 3rem 0; }
.page-body { padding-top: 1.6rem; }
.flush { margin-top: 0; }
.more { margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .top nav, .board form, .ref-box, .ref-strip, .inline-cta, .mobile-cta { display: none !important; } }

/* The kiosk: rows are sources, columns are buying and selling, like an exchange-booth sign */
.kiosk { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.kiosk caption { text-align: left; font-family: var(--head); font-weight: 600; font-size: .95rem; padding-bottom: .4rem; }
.kiosk th, .kiosk td { border-top: 2px solid #000; padding: .55rem .4rem .45rem 0; vertical-align: baseline; text-align: right; }
.kiosk thead th { border-top: 0; font-family: var(--head); font-weight: 600; font-size: .92rem; padding-bottom: .2rem; }
.kiosk th[scope="row"], .kiosk thead th:first-child { text-align: left; }
.kiosk th[scope="row"] b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.kiosk th[scope="row"] span { font-family: var(--body); font-weight: 400; font-size: .85rem; color: var(--chalk-dim); }
.kiosk td .fig { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.4rem); }
.kiosk td small { display: block; font-size: .8rem; color: var(--chalk-dim); }
.kiosk td.one { text-align: right; }
.kiosk tr.minor td .fig { font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem); }
.kiosk tr.minor th[scope="row"] b { font-size: 1.25rem; }
.kiosk thead small { display: block; font-family: var(--body); font-weight: 400; font-size: .78rem; color: var(--chalk-dim); }
@media (max-width: 30rem) { .kiosk th[scope="row"] span { display: none; } .kiosk td .fig { font-size: 2rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
