@font-face { font-family: Geist; src: url(fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

/* shadcn/ui zinc tokens */
:root {
  --background: #fff; --foreground: #09090b; --card: #fff; --primary: #18181b; --primary-foreground: #fafafa;
  --muted: #f4f4f5; --muted-foreground: #5f5f68; --accent: #f4f4f5; --border: #e4e4e7; --input: #d4d4d8; --ring: #71717a;
  --up: #15803d; --down: #b91c1c; --warn: #92400e; --warn-bg: #fef3c7; --line: #2563eb; --area: rgb(37 99 235 / .08);
  --radius: .625rem; --shadow: 0 1px 2px rgb(0 0 0 / .05); color-scheme: light;
}
.dark {
  --background: #09090b; --foreground: #fafafa; --card: #131316; --primary: #fafafa; --primary-foreground: #18181b;
  --muted: #1f1f23; --muted-foreground: #a1a1aa; --accent: #27272a; --border: #27272a; --input: #3f3f46; --ring: #a1a1aa;
  --up: #4ade80; --down: #f87171; --warn: #fcd34d; --warn-bg: #3a2a08; --line: #60a5fa; --area: rgb(96 165 250 / .1);
  --shadow: none; color-scheme: dark;
}
*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 1rem/1.6 Geist, Inter, ui-sans-serif, system-ui, sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > * { margin-block: 0 !important; }
.wp-site-blocks > main { flex: 1; }
main, main > .hero, main > .section, main > .frame, .page-wrap { margin-block: 0 !important; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -.03em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); letter-spacing: -.045em; line-height: 1.06; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); letter-spacing: -.035em; }
h3 { font-size: 1rem; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted-foreground); }
.flag { border-radius: 50%; display: block; flex: none; }
.icon { flex: none; }

/* frame: one column with hairline rails, as on shadcn.io */
.frame { width: min(100% - 2rem, 70rem); margin-inline: auto; border-inline: 1px solid var(--border); position: relative; }
.section { border-top: 1px solid var(--border); }
.section > .frame { padding: clamp(2.25rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem); }
.section > .frame::before, .section > .frame::after { content: ""; position: absolute; top: -5.5px; width: 11px; height: 11px; background: linear-gradient(var(--ring), var(--ring)) center / 11px 1px no-repeat, linear-gradient(var(--ring), var(--ring)) center / 1px 11px no-repeat; }
.section > .frame::before { left: -6px; }
.section > .frame::after { right: -6px; }
.section.flush > .frame { padding: 0; }
.section-head { display: flex; gap: 1rem 2rem; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head > div { flex: 1 1 28rem; min-width: 0; }
.section-head .lead { margin-top: .625rem; }
.lead { color: var(--muted-foreground); font-size: clamp(1rem, 1.5vw, 1.125rem); }
.lead b { color: var(--foreground); font-weight: 500; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--background) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.wp-block-template-part:has(.site-header) { position: sticky; top: 0; z-index: 40; }
.bar { display: flex; align-items: center; gap: 1.75rem; height: 3.5rem; border-inline-color: transparent; }
.brand { display: flex; align-items: center; gap: .625rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.main-nav { display: flex; gap: 1.25rem; font-size: .875rem; }
.main-nav a, .menu nav a { text-decoration: none; color: var(--muted-foreground); }
.bar-end { margin-left: auto; display: flex; gap: .25rem; align-items: center; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + .5rem); width: 14rem; padding: .375rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(0 0 0 / .15); display: grid; }
.icon-moon { display: none; }
.dark .icon-moon { display: block; }
.dark .icon-sun { display: none; }
/* grouped menu */
.site-header.grouped .bar { gap: 1rem; position: static; }
.main-nav.grouped { gap: .125rem; }
.nav-g summary, .m-g summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .25rem; color: var(--muted-foreground); user-select: none; }
.nav-g summary::-webkit-details-marker, .m-g summary::-webkit-details-marker { display: none; }
.nav-g summary { padding: .375rem .625rem; border-radius: calc(var(--radius) - 4px); white-space: nowrap; }
.nav-g summary:hover, .nav-g[open] summary, .nav-g.on summary { color: var(--foreground); }
.nav-g[open] summary { background: var(--accent); }
.nav-g.on summary { font-weight: 500; }
.nav-g summary svg, .m-g summary > svg { width: .875rem; height: .875rem; flex: none; transition: transform .2s; opacity: .7; }
.nav-g[open] summary svg, .m-g[open] summary > svg { transform: rotate(180deg); }
.nav-p { position: absolute; left: 0; right: 0; top: 100%; background: var(--background); border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -24px rgb(0 0 0 / .28); animation: np .18s ease-out; }
.nav-p::after { content: ""; position: absolute; inset: 100% 0 auto; height: 100vh; background: rgb(9 9 11 / .28); pointer-events: none; animation: np-dim .2s; }
.dark .nav-p::after { background: rgb(0 0 0 / .55); }
@keyframes np { from { opacity: 0; transform: translateY(-6px); } }
@keyframes np-dim { from { opacity: 0; } }
.np-in { display: grid; grid-template-columns: 17rem minmax(0, 1fr); }
.np-side { padding: 1.5rem; border-right: 1px solid var(--border); background: linear-gradient(160deg, var(--muted), transparent 75%); display: flex; flex-direction: column; align-items: flex-start; }
.np-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius); background: var(--primary); color: var(--primary-foreground); }
.np-mark svg { width: 1.25rem; height: 1.25rem; }
.np-title { margin-top: .875rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.np-line { margin-top: .25rem; font-size: .875rem; line-height: 1.4; color: var(--muted-foreground); }
.np-fact { position: relative; width: 100%; margin-top: 1.25rem; padding: .75rem .875rem; display: grid; gap: .125rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); font-size: .8125rem; line-height: 1.35; font-variant-numeric: tabular-nums; transition: border-color .15s; }
.main-nav .np-fact, .main-nav .np-fact:hover { color: var(--foreground); }
.np-fact span { padding-right: 1.25rem; }
.np-fact span, .np-fact small { color: var(--muted-foreground); }
.np-fact b { font-size: 1.25rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; }
.np-fact svg { position: absolute; right: .75rem; top: .75rem; width: .875rem; height: .875rem; color: var(--muted-foreground); transition: transform .15s; }
.np-fact:hover { border-color: var(--ring); }
.np-fact:hover svg { transform: translateX(2px); }
.np-main { padding: 1.5rem; display: grid; gap: 1.25rem; align-content: start; }
.np-head { padding: 0 0 .5rem; font-size: .75rem; font-weight: 500; color: var(--muted-foreground); }
.np-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; }
.main-nav .np-links a { border: 1px solid var(--border); background: var(--card); padding: .875rem; transition: border-color .15s, background .15s; }
.main-nav .np-links a:hover { border-color: var(--ring); }
.np-links a, .m-l a, .m-g summary { display: flex; align-items: center; gap: .75rem; padding: .625rem .75rem; border-radius: var(--radius); }
.main-nav .np-links a { color: var(--foreground); }
.np-i { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: calc(var(--radius) - 2px); border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground); transition: background .15s, color .15s; }
.np-t { display: grid; gap: .0625rem; min-width: 0; line-height: 1.35; flex: 1; }
.np-t b { font-size: .9375rem; font-weight: 500; color: var(--foreground); letter-spacing: -.01em; }
.np-t small { font-size: .8125rem; color: var(--muted-foreground); }
.np-links a:hover, .np-links a[aria-current], .m-l a[aria-current] { background: var(--accent); }
.np-links a:hover .np-i, .np-links a[aria-current] .np-i, .m-l a[aria-current] .np-i, .m-g[open] > summary .np-i { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.search-pill { display: inline-flex; align-items: center; gap: .5rem; height: 2.25rem; padding: 0 .625rem 0 .75rem; border: 1px solid var(--border); border-radius: 999px; background: var(--muted); color: var(--muted-foreground); font: inherit; font-size: .875rem; cursor: pointer; transition: border-color .15s, color .15s; }
.search-pill:hover { border-color: var(--ring); color: var(--foreground); }
.search-pill kbd, .search-top kbd { font: inherit; font-size: .75rem; line-height: 1; padding: .1875rem .375rem; border: 1px solid var(--border); border-radius: .25rem; background: var(--background); }
.search-pill.wide { width: 100%; height: 2.75rem; padding: 0 1rem; border-radius: var(--radius); font-size: .9375rem; margin-bottom: .5rem; }
.menu.grouped .icon-x { display: none; }
.menu.grouped[open] .icon-x { display: block; }
.menu.grouped[open] .icon-menu { display: none; }
.menu.grouped nav { position: fixed; inset: 3.5625rem 0 auto; width: auto; max-height: calc(100dvh - 3.5625rem); overflow-y: auto; overscroll-behavior: contain; display: block; padding: 1rem 1rem 1.5rem; background: var(--background); border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: 0 24px 40px -24px rgb(0 0 0 / .4); animation: np .18s ease-out; }
.admin-bar .menu.grouped nav { top: calc(3.5625rem + var(--wp-admin--admin-bar--height, 0px)); }
.m-g { border-top: 1px solid var(--border); }
.m-g:first-of-type { border-top: 0; }
.m-g summary { padding-inline: .25rem; }
.m-l { display: grid; grid-template-columns: 1fr 1fr; gap: .375rem; padding: .25rem 0 1rem; }
.m-l .np-head { grid-column: 1 / -1; padding: .5rem .25rem 0; }
.menu.grouped .m-l a { padding: .625rem; border: 1px solid var(--border); background: var(--card); align-items: flex-start; }
.m-l .np-i { width: 1.75rem; height: 1.75rem; border: 0; background: var(--muted); }
.m-l .np-t b { font-size: .875rem; line-height: 1.3; }
.m-l .np-t small { display: none; }
@media (max-width: 1060px) { .site-header .main-nav.grouped { display: none; } .menu.grouped { display: block; } }
@media (min-width: 1061px) { .site-header .main-nav.grouped { display: flex; } .menu.grouped { display: none; } }
@media (max-width: 1240px) { .bar-end > .search-pill { padding: 0; width: 2.25rem; justify-content: center; background: none; border-color: transparent; } .bar-end > .search-pill span, .bar-end > .search-pill kbd { display: none; } .bar-end > .search-pill:hover { background: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .nav-p, .nav-p::after, .menu.grouped nav { animation: none; } .nav-g summary svg, .m-g summary > svg, .np-fact svg { transition: none; } }

/* search */
dialog.search { width: min(40rem, calc(100vw - 2rem)); max-height: min(38rem, calc(100dvh - 6rem)); margin: 4.5rem auto auto; padding: 0; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); color: var(--foreground); box-shadow: 0 30px 80px rgb(0 0 0 / .35); overflow: hidden; }
dialog.search[open] { display: flex; flex-direction: column; animation: np .16s ease-out; }
dialog.search::backdrop { background: rgb(9 9 11 / .45); backdrop-filter: blur(3px); }
.search-top { display: flex; align-items: center; gap: .625rem; padding: .625rem .625rem .625rem 1rem; border-bottom: 1px solid var(--border); }
.search-top > .icon { width: 1.125rem; height: 1.125rem; color: var(--muted-foreground); }
.search-top input, .search-top input:focus { box-shadow: none; outline: 0; }
.search-top input { flex: 1; padding: 0; min-width: 0; height: 2.75rem; border: 0; outline: 0; background: none; color: inherit; font: inherit; font-size: 1.125rem; letter-spacing: -.01em; }
.search-top input::-webkit-search-cancel-button { display: none; }
.search-hint { padding: .75rem 1rem .25rem; font-size: .8125rem; color: var(--muted-foreground); }
.search-list { overflow-y: auto; overscroll-behavior: contain; padding: .25rem .5rem .75rem; }
.search-ex { display: flex; flex-wrap: wrap; gap: .5rem; padding: .375rem .5rem .5rem; }
.search-ex .chip { font: inherit; font-size: .875rem; color: inherit; background: none; cursor: pointer; }
.ans { display: flex; align-items: center; gap: .75rem; padding: .5rem .625rem; border-radius: var(--radius); text-decoration: none; }
.ans[aria-selected="true"], .ans:hover { background: var(--accent); }
.ans-i { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: calc(var(--radius) - 3px); border: 1px solid var(--border); color: var(--muted-foreground); }
.ans-t { display: grid; min-width: 0; line-height: 1.35; }
.ans-t b { font-weight: 500; font-size: .9375rem; }
.ans-t small { font-size: .8125rem; color: var(--muted-foreground); }
.ans.big { padding: .75rem .625rem; }
.ans.big .ans-t b { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ans.big .ans-i { width: 2.5rem; height: 2.5rem; background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
@media (max-width: 520px) { dialog.search { width: calc(100vw - 1rem); margin-top: .5rem; max-height: calc(100dvh - 1rem); } }

.parts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.parts ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .875rem; }
.parts li { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; font-size: .9375rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.parts li b { font-weight: 500; }
.parts li i { grid-column: 1 / -1; height: .5rem; border-radius: 0 4px 4px 0; background: var(--line); min-width: 3px; }
.parts li i.down { background: var(--down); }
.field[hidden] { display: none; }
/* payment routes, inflation table */
.routes { display: grid; gap: .5rem; }
.route { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .875rem; border: 1px solid var(--border); border-radius: var(--radius); line-height: 1.35; font-variant-numeric: tabular-nums; }
.route.best { background: var(--muted); border-color: var(--ring); }
.route-t, .route-v { display: grid; }
.route-v { text-align: right; white-space: nowrap; }
.route small { font-size: .8125rem; color: var(--muted-foreground); }
.route.best .route-v b { font-size: 1.125rem; letter-spacing: -.02em; }
.heat td { background: color-mix(in srgb, var(--down) calc(var(--h, 0%) * .55), transparent); }
.heat th, .heat td { padding-inline: .5rem; }
.tabs.wide { display: flex; }
.tabs.wide button { flex: 1; }
.fx-pick { max-width: 20rem; margin-bottom: 1rem; }
[data-fxh] > .hint { margin-bottom: .75rem; }
.notice > p + p { margin-top: .75rem; }
.fact > span > small { display: block; font-size: .8125rem; }
.admin-bar .site-header, .admin-bar .wp-block-template-part:has(.site-header) { top: var(--wp-admin--admin-bar--height, 0); }

/* buttons, chips, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.5rem; padding: .5rem 1.125rem; border-radius: 999px; border: 1px solid transparent; font: 500 .9375rem/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; background: none; color: inherit; transition: background .15s, border-color .15s; }
.btn.primary { background: var(--primary); color: var(--primary-foreground); }
.btn.primary:hover { opacity: .9; }
.btn.outline { border-color: var(--border); background: var(--background); }
.btn.outline:hover, .btn.ghost:hover { background: var(--accent); }
.icon-btn { width: 2.5rem; padding: 0; border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; gap: .4rem; align-items: center; padding: .4375rem .8125rem; border: 1px solid var(--border); border-radius: 999px; font-size: .875rem; text-decoration: none; background: var(--background); font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--accent); }
.chip .brand-tile { height: 1.25rem; padding: .1875rem .3125rem; border-radius: .3125rem; margin-left: -.1875rem; }
.chip .brand-tile.airtel { height: 1.5rem; padding: .125rem .25rem; margin-block: -.125rem; }
.chip .icon { color: var(--muted-foreground); align-self: center; }
.chip.on { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.tabs-row { margin-bottom: 1rem; }
.badge { display: inline-block; padding: .0625rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 500; background: var(--primary); color: var(--primary-foreground); white-space: nowrap; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }

/* hero */
.hero { background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 22px 22px; }
/* glyphs.js swaps the dot grid for a canvas of currency symbols (the dots stay without JavaScript) */
.hero { position: relative; }
.hero.glyphs-on { background-image: none; }
.hero-glyphs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero > .frame { z-index: 1; }
.hero > .frame { background: linear-gradient(90deg, var(--background), color-mix(in srgb, var(--background) 82%, transparent)); }
.hero-in { padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); }
.hero-in.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.hero-text > .lead { margin-top: 1.125rem; display: grid; gap: 1rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .625rem; }
.hero-links .btn { color: inherit; }
.hero-links .btn.primary { color: var(--primary-foreground); }
.hero-links .btn.outline { color: var(--foreground); }
@media (max-width: 900px) { .hero-in.two { grid-template-columns: minmax(0, 1fr); } }
.crumbs { display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .8125rem; color: var(--muted-foreground); margin-bottom: 1.125rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--foreground); text-decoration: underline; }

/* cards and fields */
.card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.pad, .converter, .checker { padding: clamp(1rem, 3vw, 1.5rem); }
.converter, .checker, .form { display: grid; gap: 1rem; }
.field { display: grid; gap: .375rem; min-width: 0; }
.field label { font-size: .875rem; font-weight: 500; }
input, select, textarea { width: 100%; min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid var(--input); border-radius: var(--radius); background: var(--background); color: inherit; font: inherit; font-size: 1rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--ring) 40%, transparent); outline-offset: 0; border-color: var(--ring); }
::placeholder { color: var(--muted-foreground); opacity: .75; }
.amount { min-height: 3.25rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hint { font-size: .8125rem; color: var(--muted-foreground); line-height: 1.45; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-left: 2.625rem; padding-right: 1.875rem; text-overflow: ellipsis; background-image: linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%), linear-gradient(-45deg, transparent 50%, var(--muted-foreground) 50%); background-position: right 1.0625rem center, right .75rem center; background-size: 5px 5px; background-repeat: no-repeat; }
.select-wrap.plain select { padding-left: .75rem; }
.select-flag { position: absolute; left: .75rem; top: 50%; translate: 0 -50%; pointer-events: none; }
.swap-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem .625rem; align-items: end; }
.swap-row .field:last-child { grid-column: 1; }
.swap-row .icon-btn { grid-column: 2; grid-row: 1 / 3; align-self: center; min-height: 2.75rem; margin-top: 1.5rem; }
.swap-row .icon-swap { rotate: 90deg; }
.result { display: grid; gap: .125rem; padding: 1rem; background: var(--muted); border-radius: var(--radius); }
.result-in { color: var(--muted-foreground); font-size: .9375rem; }
.result-out { font-size: clamp(1.75rem, 5vw, 2.375rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result-rate { font-size: .875rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.checker-grid { display: grid; gap: .875rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); align-items: end; }
.checker-out { display: grid; gap: .375rem; padding: 1rem; background: var(--muted); border-radius: var(--radius); font-size: .9375rem; }
.kv { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.kv.strong { font-size: 1.0625rem; border-top: 1px solid var(--border); padding-top: .5rem; margin-top: .25rem; }
.source { display: flex; gap: .4375rem; font-size: .8125rem; line-height: 1.5; color: var(--muted-foreground); align-items: flex-start; }
.source .icon { width: 13px; height: 13px; margin-top: .2rem; }
.table-card + .source, .table-card + .sources, .cells + .source { margin-top: .875rem; }
.sources { display: grid; gap: .375rem; }
.hp { position: absolute; left: -9999px; }
.notice { padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; }
.notice.err { border-color: var(--down); }
.notice.ok { border-color: var(--up); }
.form .btn { justify-self: start; }

/* tiles and cells */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 1px; background: var(--border); }
.tile { background: var(--background); padding: 1.25rem clamp(1rem, 2.5vw, 1.5rem); display: grid; gap: .25rem; align-content: start; text-decoration: none; }
.tile.link:hover, .cell:hover { background: var(--accent); }
.tile-l { display: flex; gap: .5rem; align-items: center; font-size: .875rem; color: var(--muted-foreground); }
.tile-v { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile-s { font-size: .8125rem; }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); gap: 1px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cell { background: var(--background); padding: 1.125rem; display: grid; gap: .25rem; text-decoration: none; box-shadow: 0 0 0 1px var(--border); }
.cell-t { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
.cell-s { font-size: .875rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.chg { display: inline-flex; align-items: center; gap: .125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg .icon { width: 13px; height: 13px; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--muted-foreground); }

/* tables */
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { padding: .6875rem .875rem; text-align: left; border-top: 1px solid var(--border); vertical-align: middle; font-weight: 400; }
thead th { border-top: 0; background: var(--muted); color: var(--muted-foreground); font-size: .8125rem; font-weight: 500; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 55%, transparent); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td b, .bank b { font-weight: 600; }
th small, td small { color: var(--muted-foreground); font-size: .8125rem; }
.ccy { display: flex; gap: .625rem; align-items: center; text-decoration: none; }
.ccy span { display: grid; line-height: 1.3; }
.ccy:hover b { text-decoration: underline; }
.bank { display: flex; flex-wrap: wrap; gap: .125rem .5rem; align-items: center; min-width: 11rem; }
.bank small { flex-basis: 100%; line-height: 1.4; }
.tall .table-wrap { max-height: 30rem; overflow-y: auto; }
.tall thead th { position: sticky; top: 0; }
@media (max-width: 640px) { .bank { min-width: 9.5rem; } .tile { padding: 1rem; } .tile-v { font-size: 1.25rem; } th, td { padding: .5625rem .625rem; } table { font-size: .875rem; } th:first-child, td:first-child { padding-left: .875rem; } }
/* Bank tables on phones: one block per bank, figures in a labelled 2×2 grid, so "Cost to you" is never off-screen. */
@media (max-width: 640px) {
  .bank-stack table, .bank-stack tbody, .bank-stack th, .bank-stack td { display: block; }
  .bank-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .bank-stack tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem 1rem; padding: .875rem; border-top: 1px solid var(--border); }
  .bank-stack tbody tr:first-child { border-top: 0; }
  .bank-stack tbody th { grid-column: 1 / -1; display: flex; gap: .625rem; align-items: center; padding: 0; border: 0; }
  .bank-stack td, .bank-stack td.num { padding: 0; border: 0; text-align: left; }
  .bank-stack td::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--muted-foreground); }
  .bank-stack .bank { min-width: 0; }
}

/* chart */
.chart { padding: clamp(1rem, 3vw, 1.5rem); }
.chart-head { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; }
.chart-sub { font-size: .875rem; color: var(--muted-foreground); margin-top: .25rem; font-variant-numeric: tabular-nums; }
.tabs { display: inline-flex; padding: 3px; background: var(--muted); border-radius: var(--radius); }
.tabs button { min-height: 2.25rem; padding: 0 .875rem; border: 0; background: none; border-radius: calc(var(--radius) - 3px); font: 500 .875rem inherit; font-family: inherit; color: var(--muted-foreground); cursor: pointer; }
.tabs button[aria-pressed=true] { background: var(--background); color: var(--foreground); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.plot { position: relative; min-height: 300px; touch-action: pan-y; cursor: crosshair; }
.plot svg { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .plot { min-height: 220px; } }

/* world map (exchange rates) */
.wmap-stage { position: relative; overflow: hidden; border-radius: var(--radius); }
.wmap-stage canvas { display: block; width: 100%; aspect-ratio: 2.226; }
.wmap-tip { position: absolute; left: 0; top: 0; z-index: 2; display: grid; gap: .125rem; max-width: 16rem; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--popover, var(--card)); color: var(--popover-foreground, var(--foreground)); box-shadow: var(--shadow); font-size: .8125rem; pointer-events: none; font-variant-numeric: tabular-nums; }
.wmap-tip[hidden], .wmap-pick[hidden] { display: none; }
.wmap-tip b { font-weight: 600; }
.wmap-tip .chg { display: inline; }
.wmap-pick { position: absolute; left: .75rem; bottom: .75rem; z-index: 3; width: min(19rem, calc(100% - 1.5rem)); display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); box-shadow: var(--shadow); font-size: .875rem; }
.wmap-pick-h { display: flex; gap: .75rem; align-items: center; }
.wmap-pick-h img { flex: none; border-radius: 50%; }
.wmap-pick-h b { display: block; font-size: 1rem; font-weight: 600; }
.wmap-pick-h span { color: var(--muted-foreground); }
.wmap-pick p { margin: 0; color: var(--muted-foreground); }
.wmap-pick .wmap-pick-rate { color: var(--foreground); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wmap-pick-rate .muted { font-size: .875rem; font-weight: 400; }
.wmap-pick-chg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; }
.wmap-pick-chg dt { font-size: .75rem; color: var(--muted-foreground); }
.wmap-pick-chg dd { margin: 0; font-variant-numeric: tabular-nums; }
.wmap-pick .btn { width: 100%; }
.wmap-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .75rem; font-size: .8125rem; color: var(--muted-foreground); }
.wmap-scale { display: inline-flex; gap: 3px; margin: 0 -.5rem; }
.wmap-scale i, .wmap-key i { display: inline-block; width: .625rem; height: .625rem; border-radius: 50%; background: var(--muted); }
.wmap-key { display: inline-flex; align-items: center; gap: .375rem; }
.wmap-key:first-of-type { margin-left: auto; }
.wmap:not(.ready) .wmap-legend { visibility: hidden; }
@media (max-width: 600px) {
  .wmap-stage { overflow: visible; }
  .wmap-pick { position: static; width: auto; margin-top: .75rem; box-shadow: none; }
  .wmap-key:first-of-type { margin-left: 0; }
}
.grid { stroke: var(--border); }
.ax { fill: var(--muted-foreground); font-size: 12px; font-variant-numeric: tabular-nums; }
.line { fill: none; stroke: var(--line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.area { fill: var(--area); }
.bar-m { fill: var(--line); }
.bar-m.down { fill: var(--down); }
.bar-m.dim { opacity: .4; }
.base { stroke: var(--ring); }
.note-l { stroke: var(--ring); stroke-dasharray: 2 4; }
.fold { margin-top: .875rem; }
.fold summary { width: fit-content; padding: .375rem 0; font-size: .9375rem; cursor: pointer; color: var(--muted-foreground); }
.fold summary:hover { color: var(--foreground); }
.fold[open] summary { margin-bottom: .5rem; }
.dot { fill: var(--line); stroke: var(--card); stroke-width: 2; }
.dot.hollow { fill: var(--card); stroke: var(--line); }
.cross line { stroke: var(--ring); stroke-dasharray: 3 3; }
.tip { position: absolute; top: 0; padding: .375rem .625rem; background: var(--primary); color: var(--primary-foreground); border-radius: calc(var(--radius) - 2px); font-size: .8125rem; line-height: 1.35; pointer-events: none; display: grid; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tip[hidden] { display: none; }
.chart-foot { margin-top: .75rem; }

/* prose pages */
.prose, .entry-content { font-size: 1.0625rem; line-height: 1.7; }
.prose > * + *, .entry-content > * + * { margin-top: 1rem; }
.prose h2, .entry-content h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.prose h3, .entry-content h3 { margin-top: 1.5rem; font-size: 1.125rem; }
.prose p, .prose li, .entry-content p, .entry-content li { color: color-mix(in srgb, var(--foreground) 82%, var(--background)); }
.prose ul, .entry-content ul { padding-left: 1.25rem; display: grid; gap: .375rem; }
.page-wrap { padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem); }
.page-wrap h1 { margin-bottom: 1.5rem; }
.plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* footer: always dark, so the ridges have a night sky */
.site-footer { --background: #060607; border-top: 1px solid var(--border); background: var(--background); color: var(--foreground); font-size: .9375rem; }
.foot-wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; padding: clamp(2.5rem, 5vw, 4rem) clamp(.25rem, 3vw, 2.5rem) 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 2.5rem; }
.foot-brand { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.wi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand svg { flex: none; }
.foot-brand .word { width: auto; height: 1.125rem; }
.foot-brand p { color: var(--muted-foreground); font-size: 1.0625rem; line-height: 1.5; max-width: 18rem; }
.foot-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4375rem .875rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-size: .875rem; font-variant-numeric: tabular-nums; }
.foot-pill:hover { background: var(--accent); }
.foot-pill small { color: var(--muted-foreground); }
.foot-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--up); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
.foot-cols h2 { font-size: .9375rem; letter-spacing: 0; margin-bottom: .75rem; }
.brand-tiles { display: flex; gap: .625rem; margin-bottom: 1.125rem; }
.brand-tile { display: inline-flex; flex: none; align-items: center; justify-content: center; height: 2.75rem; padding: .5rem .75rem; border-radius: .625rem; background: #fff; box-shadow: 0 0 0 1px var(--border); }
.brand-tile img { display: block; width: auto; height: 100%; }
.brand-tile.airtel { height: 4.5rem; padding: .5rem; }
/* prices on the home page */
.fees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--border); gap: 1px; }
.fee { display: grid; align-content: start; padding: 1.25rem; background: var(--card); text-decoration: none; }
.fee:hover { background: var(--accent); }
.fee-l { display: flex; align-items: center; gap: .5rem; color: var(--muted-foreground); font-size: .9375rem; }
.fee-v { margin-top: .875rem; font-size: 1.75rem; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fee-d { margin-top: .25rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.4; }
@media (max-width: 820px) { .fees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .fee { padding: 1rem; } .fee-l { font-size: .8125rem; } .fee-l .icon { display: none; } .fee-v { font-size: 1.5rem; } }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.foot-cols a { display: inline-block; padding: .25rem 0; color: var(--muted-foreground); text-decoration: none; }
.foot-cols a:hover { color: var(--foreground); }
.foot-note { display: grid; gap: 1rem; border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.25rem; color: var(--muted-foreground); font-size: .8125rem; }
.foot-site { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot-site nav { display: flex; flex-wrap: wrap; gap: .375rem 1.25rem; }
.foot-site a { color: var(--foreground); text-decoration: none; }
.foot-site a:hover { text-decoration: underline; }
.foot-site p { white-space: nowrap; }
.foot-art { position: relative; height: clamp(17rem, 36vw, 31rem); overflow: hidden; cursor: crosshair; touch-action: pan-y; }
.foot-art[hidden] { display: none; }
.foot-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; mask-image: linear-gradient(transparent, #000 22%); }
.foot-art p { position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; width: max-content; max-width: calc(100% - 2rem); padding: .3125rem .875rem; border-radius: 999px; background: rgb(6 6 7 / .82); border: 1px solid var(--border); color: #d4d4d8; font-size: .8125rem; text-align: center; pointer-events: none; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* pair cards */
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: .75rem; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; padding: 1.125rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); text-decoration: none; transition: border-color .15s, background .15s; }
.pair:hover { border-color: var(--ring); background: color-mix(in srgb, var(--accent) 50%, var(--card)); }
.pair-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-bottom: .625rem; }
.pair-top .icon { color: var(--muted-foreground); transition: translate .15s; }
.pair:hover .icon-arrow { translate: 3px 0; color: var(--foreground); }
.flags { display: flex; }
.flags .flag + .flag { margin-left: -.5rem; box-shadow: 0 0 0 2px var(--card); }
.pair b { grid-column: 1 / -1; font-weight: 600; letter-spacing: -.015em; }
.pair-rate { font-size: .875rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; align-self: end; display: grid; justify-items: start; line-height: 1.45; }
.spark { align-self: end; max-width: 100%; }
.spark path { fill: none; stroke: var(--line); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.pairs-src { margin-top: .875rem; }
.after { margin-top: 1.25rem; }
@media (max-width: 520px) { .pairs { grid-template-columns: 1fr 1fr; gap: .5rem; } .pair { padding: .875rem; grid-template-columns: minmax(0, 1fr); } .spark { width: 100%; } }

/* bank logos */
.bank-logo { float: left; width: 2.25rem; height: 2.25rem; margin-right: .75rem; border-radius: .5rem; background: #fff; box-shadow: 0 0 0 1px var(--border); overflow: hidden; display: grid; place-items: center; }
.bank-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bank-logo img[src$=".svg"] { padding: 5px; }
.bank-logo.initial { background: var(--muted); color: var(--muted-foreground); font-weight: 600; }
.bank-logo + .bank { overflow: hidden; }
.badge.soft { background: var(--muted); color: var(--foreground); }
.bank-none { display: flex; align-items: center; font-weight: 500; }
.bank-none .bank-logo { float: none; flex: none; }

/* shillings into every currency */
.from { border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--card); }
.from-bar { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1rem 2rem; align-items: end; padding: clamp(1rem, 3vw, 1.5rem); border-bottom: 1px solid var(--border); }
.from-side { display: grid; gap: .625rem; }
button.chip { font: inherit; font-size: .875rem; color: inherit; cursor: pointer; min-height: 2.25rem; }
button.chip[aria-pressed=true] { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.from-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1px; }
.from-card { display: flex; align-items: center; gap: .75rem; padding: .875rem clamp(1rem, 2.5vw, 1.25rem); background: var(--card); text-decoration: none; box-shadow: 0 0 0 1px var(--border); }
.from-card[hidden] { display: none; }
.from-card:hover { background: var(--accent); }
.from-name { display: grid; line-height: 1.35; flex: 1; min-width: 0; }
.from-name b { font-weight: 500; }
.from-name small { color: var(--muted-foreground); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.from-val { display: grid; justify-items: end; line-height: 1.35; font-variant-numeric: tabular-nums; }
.from-val b { font-weight: 600; letter-spacing: -.02em; }
.from-val .chg { font-size: .8125rem; }
@media (max-width: 720px) { .from-bar { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .bank-logo { width: 1.75rem; height: 1.75rem; margin-right: .5rem; border-radius: .375rem; } .from-side .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; } .from-side .chip { flex: none; } }

.cell { align-content: start; }
@media (max-width: 520px) { .cells:has(.corridor) { grid-template-columns: 1fr 1fr; } }
.corridor .flags { margin-bottom: .5rem; }
.corridor .flags .flag + .flag { box-shadow: 0 0 0 2px var(--background); }
.chip .flag { margin-left: -.1875rem; }

@media (max-width: 520px) { .cells:has(.bank-none) { grid-template-columns: 1fr 1fr; } .cell.bank-none { padding: .75rem; font-size: .9375rem; line-height: 1.35; } }

/* amount in words */
.words-out { padding: .875rem 1rem 1rem; background: var(--muted); border-radius: var(--radius); display: grid; gap: .375rem; }
.words-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .8125rem; color: var(--muted-foreground); }
.words-out p { font-size: 1.0625rem; line-height: 1.45; font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; }
.btn.small { min-height: 2rem; padding: .25rem .75rem; font-size: .8125rem; color: var(--foreground); }
.btn:disabled { opacity: .5; cursor: default; }
.linklike { padding: .25rem 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.words-table td.num, .words-table th.num { text-align: left; white-space: normal; }

/* bank directory */
.upper { text-transform: uppercase; }
.upper::placeholder { text-transform: none; }
.iban-i { font-size: 1.125rem; letter-spacing: 0; }
code { font: 600 1em/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .01em; }
.code-v { display: inline-flex; align-items: center; gap: .625rem; }
.codes td.num, .codes th.num { text-align: left; }
.codes .ccy small { white-space: normal; }
.pb-note { display: block; color: var(--muted-foreground); font-size: .8125rem; line-height: 1.4; font-weight: 400; max-width: 30rem; }
.finder { max-width: 26rem; margin-bottom: 1rem; }
.finder .hint { min-height: 1.2em; }
.facts { gap: 0; }
.fact { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); min-height: 3.5rem; }
.fact:last-child { border-bottom: 0; }
.fact > span:first-child { color: var(--muted-foreground); font-size: .9375rem; }
.fact code { font-size: 1.125rem; }
.facts .sources { padding-top: 1rem; }
.bank-h1 { display: block; margin-bottom: .75rem; }
.bank-h1 .bank-logo { float: none; width: 3.25rem; height: 3.25rem; border-radius: .75rem; font-size: 1.5rem; letter-spacing: 0; }
.decode { display: grid; gap: .75rem; }
.verdict { display: grid; gap: .125rem; padding: .75rem 1rem; border-radius: var(--radius); background: var(--muted); font-size: .9375rem; }
/* Never a coloured left edge on a box: status is a dot beside the words. */
.verdict b::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; border-radius: 50%; background: var(--up); vertical-align: .1em; }
.verdict.bad b::before { background: var(--down); }
.verdict span { color: var(--muted-foreground); }
.parts { display: flex; flex-wrap: wrap; gap: .5rem; }
.parts div { display: grid; gap: .125rem; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.parts code { overflow-wrap: anywhere; }
.parts span { font-size: .75rem; color: var(--muted-foreground); }
.found { display: grid; gap: .375rem; }
.hit { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; }
.hit:hover { background: var(--accent); }
.hit span { display: grid; line-height: 1.35; min-width: 0; }
.hit b { font-weight: 500; }
.hit small { color: var(--muted-foreground); font-size: .8125rem; }
.instr { margin: 0; padding: 1rem; background: var(--muted); border-radius: var(--radius); font: 400 .9375rem/1.65 inherit; font-family: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.checker > .btn { justify-self: start; }
.section > .frame.slim { padding-block: 1.25rem; }
.table-card + .code-src, #swift-table + .source, #bank-table + .source, #pb-table + .source, #br-table + .source { margin-top: .875rem; }
.source + .source { margin-top: .375rem; }
.sources .source + .source { margin-top: 0; }
@media (max-width: 520px) { .bank-a { min-width: 8.5rem; } .code-v { gap: .375rem; } .code-v .btn { padding: .25rem .5rem; } .foot-cols { grid-template-columns: 1fr 1fr; } }

.ccy .bank-logo { flex: none; margin-right: 0; }
@media (max-width: 640px) {
  .stack thead { position: absolute; clip-path: inset(50%); height: 1px; overflow: hidden; }
  .stack table, .stack tbody { display: block; }
  .stack tr { display: block; padding: .875rem; border-top: 1px solid var(--border); }
  .stack tr[hidden] { display: none; }
  .stack tr:first-child { border-top: 0; }
  .stack th, .stack td { display: block; border: 0; padding: .25rem 0 !important; }
}

.after-s { margin-top: .875rem; }

/* codes taken apart */
.ana-card { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.ana-chips .bank-logo { width: 1.375rem; height: 1.375rem; margin: 0 .125rem 0 -.375rem; border-radius: 50%; float: none; font-size: .75rem; }
.ana-chips .bank-logo img[src$=".svg"] { padding: 3px; }
.panel { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); min-width: 0; }
.panel[hidden] { display: none; }
.panel h3 { font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }
.anatomy { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem clamp(.75rem, 2vw, 1.5rem); }
.seg { display: grid; gap: .5rem; align-content: start; flex: 0 1 auto; min-width: 6.5rem; max-width: max(13rem, calc(var(--n) * 2.55rem)); }
.chars { display: flex; flex-wrap: wrap; gap: .1875rem; }
.chars i { display: grid; place-items: center; width: 2.35rem; height: 2.85rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--background); font: 600 1.375rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; transition: background .15s, color .15s; }
.brace { width: min(100%, calc(var(--n) * 2.5375rem - .1875rem)); height: 3px; border-radius: 3px; background: var(--seg, var(--ring)); }
.seg-0 { --seg: #2563eb; } .seg-1 { --seg: #d97706; } .seg-2 { --seg: #059669; } .seg-3 { --seg: #9333ea; } .seg-4 { --seg: #db2777; }
.dark .seg-0 { --seg: #60a5fa; } .dark .seg-1 { --seg: #fbbf24; } .dark .seg-2 { --seg: #34d399; } .dark .seg-3 { --seg: #c084fc; } .dark .seg-4 { --seg: #f472b6; }
.seg:hover .chars i { background: var(--primary); color: var(--primary-foreground); }
.seg b { font-weight: 600; letter-spacing: -.01em; }
.seg-note { color: var(--muted-foreground); font-size: .9375rem; line-height: 1.45; max-width: 15rem; }
.ana-foot { display: flex; flex-wrap: wrap; gap: .25rem .875rem; align-items: center; color: var(--muted-foreground); font-size: .875rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.ana-foot code { color: var(--foreground); overflow-wrap: anywhere; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.flow li { position: relative; display: flex; flex-direction: column; gap: .375rem; padding: 1.125rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); }
.flow li + li::before { content: ""; position: absolute; left: -.8125rem; top: 2.1rem; width: .8125rem; height: 1px; background: var(--ring); }
.flow-n { display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: .25rem; }
.flow li > span:not(.flow-n) { color: var(--muted-foreground); font-size: .9375rem; line-height: 1.45; }
.flow em { font-style: normal; font-size: .8125rem; font-weight: 500; padding-top: .5rem; margin-top: auto; border-top: 1px solid var(--border); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.125rem; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .875rem; align-items: start; }
.steps li > div { display: grid; gap: .25rem; padding-top: .1875rem; }
.steps b { font-weight: 600; }
.steps code { font-weight: 500; overflow-wrap: anywhere; line-height: 1.6; }
.steps span { color: var(--muted-foreground); font-size: .9375rem; }
.steps .flow-n { color: var(--primary-foreground); margin: 0; }
mark { background: var(--primary); color: var(--primary-foreground); border-radius: .25rem; padding: 0 .25rem; }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow li + li::before { left: 2rem; top: -.8125rem; width: 1px; height: .8125rem; } }
@media (max-width: 520px) { .chars i { width: 1.95rem; height: 2.4rem; font-size: 1.125rem; } .brace { width: min(100%, calc(var(--n) * 2.1375rem - .1875rem)); } .seg { min-width: 5.5rem; } .ana-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; } .ana-chips .chip { flex: none; } }

/* questions */
.faq { border-bottom: 1px solid var(--border); }
.qa { border-top: 1px solid var(--border); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: 1.0625rem; font-weight: 500; line-height: 1.4; overflow-wrap: normal; }
.qa-x { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--border); background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: rotate .2s, background-color .2s; }
.qa summary:hover .qa-x { background-color: var(--accent); }
.qa[open] .qa-x { rotate: 45deg; background-color: var(--primary); color: var(--primary-foreground); }
.qa-a { padding: 0 3.5rem 1.25rem 0; color: var(--muted-foreground); line-height: 1.65; }
.qa-a b { color: var(--foreground); font-weight: 600; }
@media (max-width: 520px) { .frame { width: calc(100% - 1rem); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

td.num { white-space: nowrap; }
@media (max-width: 640px) { .hero-links { display: none; } }
@media (max-width: 480px) { .bank { min-width: 7.25rem; } th, td { padding-inline: .4375rem; } table { font-size: .8125rem; } .bank small { font-size: .75rem; } td.num:last-child, th.num:last-child { padding-right: .75rem; } }
.foot-pill { white-space: nowrap; font-size: .8125rem; gap: .4375rem; padding-inline: .75rem; }
.foot-grid { gap: 2.5rem 2rem; }
@media (min-width: 861px) { .foot-grid { grid-template-columns: minmax(16.5rem, 1fr) minmax(0, 2.4fr); } }

/* about the currencies (pair pages) */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1rem; align-items: start; }
.about { padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.about-h { display: flex; gap: .875rem; align-items: center; }
.about-h .flag { width: 2.25rem; height: 2.25rem; flex: none; }
.about-h h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; }
.about-sub { font: 500 .8125rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted-foreground); }
.about-p { color: var(--muted-foreground); line-height: 1.65; }
.about-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.about-dl .wide { grid-column: 1 / -1; }
.about-dl dt { font-size: .8125rem; color: var(--muted-foreground); }
.about-dl dd { margin: .1875rem 0 0; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.about-dl dd a { display: inline-flex; gap: .25rem; align-items: center; }
.about-dl dd .icon { width: 14px; height: 14px; }
.about-dl code { font-size: .9375rem; }
.about-k { border-top: 1px solid var(--border); padding-top: 1.25rem; display: grid; gap: 1rem; }
.about-k h4 { font-size: .875rem; font-weight: 600; margin: 0; }

:where(main, body) [id] { scroll-margin-top: 5rem; }
/* currency symbols */
.sym-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1rem; }
.sym-hero a { display: grid; justify-items: center; gap: .125rem; padding: .625rem .25rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.sym-hero a:hover { background: var(--accent); }
.sym-hero small { font-size: .75rem; font-weight: 400; color: var(--muted-foreground); }
.sym-big { font-size: 2rem; font-weight: 600; line-height: 1.1; }
.sign-art { display: inline-block; height: .9em; width: auto; vertical-align: -.08em; overflow: visible; }
.sym-new .btn { margin-top: .5rem; }
.sym-fams { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }
.sym-fam:first-child { grid-column: 1 / -1; }
.sym-fam { padding: 1.25rem; display: grid; gap: .5rem; align-content: start; }
.sym-fam h3 { margin: 0; font-size: 1.0625rem; }
.sym-fam h3 .muted { font-weight: 400; font-size: .875rem; }
.sym-fam p { margin: 0; font-size: .9375rem; color: var(--muted-foreground); }
.sym-fam ul { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .875rem; font-size: .875rem; line-height: 1.6; }
.sym-signs { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.sym-worths { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.sym-worths h3 { margin-bottom: .75rem; font-size: 1.0625rem; }
.sym-region + .sym-region { margin-top: 2rem; }
.sym-region h3 { margin-bottom: .75rem; font-size: 1.125rem; }
.sym-region h3 .muted { font-weight: 400; font-size: .875rem; }
[data-filter-group][hidden] { display: none; }
.sym-table th[scope=row] { white-space: nowrap; }
.sym-table th[scope=row] .btn { margin-left: .5rem; vertical-align: middle; }
.sym-sign { display: inline-block; min-width: 2.5rem; font-size: 1.25rem; font-weight: 600; }
.sym-sign.none { font-size: .875rem; color: var(--muted-foreground); }
.sym-note { display: block; font-size: .75rem; font-weight: 400; color: var(--muted-foreground); }
.sym-cur { display: grid; line-height: 1.35; }
.sym-table td { text-align: left; }
kbd { font: 500 .8125rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: .2rem .4rem; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; background: var(--muted); white-space: nowrap; }
.sym-new { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }
