/* ============================================================
   DialCode — design system v2 (Terminal / Brutalist)
   Mono for UI / headings / data; Inter sans for prose body.
   ============================================================ */

:root {
  --bg: #f5f3eb;
  --paper: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --ink-3: #6a6a6a;
  --rule: #d8d4c4;
  --accent: #facc15;
  --accent-red: #dc2626;
  --green: #16a34a;

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ----- Flags ----- */
.flag {
  display: inline-block;
  vertical-align: middle;
  border: 1px solid var(--ink);
  flex-shrink: 0;
}
.flag-xs  { width: 16px; height: 12px; }
.flag-sm  { width: 20px; height: 15px; }
.flag-md  { width: 28px; height: 21px; }
.flag-lg  { width: 40px; height: 30px; }
.flag-xl  { width: 56px; height: 42px; }
.flag-xxl { width: 96px; height: 72px; }
.flag-emoji { border: none; font-size: inherit; line-height: 1; }
.flag-emoji.flag-xs  { font-size: 14px; width: auto; height: auto; }
.flag-emoji.flag-sm  { font-size: 18px; width: auto; height: auto; }
.flag-emoji.flag-md  { font-size: 24px; width: auto; height: auto; }
.flag-emoji.flag-lg  { font-size: 36px; width: auto; height: auto; }
.flag-emoji.flag-xl  { font-size: 56px; width: auto; height: auto; }
.flag-emoji.flag-xxl { font-size: 96px; width: auto; height: auto; }

/* ----- Top bar ----- */
.topbar {
  border-bottom: 3px solid var(--ink);
  background: var(--bg);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-logo { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; }
.topbar-logo a { display: inline-block; }
.topbar-logo a:hover { background: transparent; }
.topbar-logo .br1 { color: var(--ink); }
.topbar-logo .br2 { background: var(--ink); color: var(--accent); padding: 2px 6px; }
.topbar-logo .br3 { color: var(--ink); }
.topnav { display: flex; gap: 0; flex-wrap: wrap; }
.topnav a {
  padding: 6px 14px;
  border-left: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.topnav a:first-child { border-left: none; }
.topnav a:hover { background: var(--ink); color: var(--accent); }
.topnav a.on { background: var(--accent); color: var(--ink); }
.topnav a.on:hover { background: var(--ink); color: var(--accent); }
@media (max-width: 600px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 16px; }
  .topnav a { padding: 5px 10px; font-size: 11px; }
  .topnav a:first-child { padding-left: 0; }
}

/* ----- Wrapper / page ----- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ----- Hero (home) ----- */
.hero {
  border-bottom: 3px solid var(--ink);
  padding: 56px 0 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(36px, 6.5vw, 68px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2px;
  text-transform: uppercase;
}
.hero h1 .hl { background: var(--accent); padding: 2px 12px; }
.hero h1 .hl-red { background: var(--accent-red); color: white; padding: 2px 12px; }
.hero .tag {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 18px;
  max-width: 600px;
  line-height: 1.6;
}
.hero-stats { font-size: 11px; font-weight: 700; text-align: right; line-height: 1.9; min-width: 200px; }
.hero-stats div {
  border-bottom: 1px dashed var(--ink);
  padding: 4px 4px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.hero-stats div b { font-size: 22px; font-weight: 800; color: var(--ink); }
.hero-stats div span { color: var(--ink-3); align-self: center; text-transform: uppercase; font-size: 10px; }
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding: 36px 0 28px; }
  .hero-stats { text-align: left; }
}

/* ----- Search box (large, used on home & 404) ----- */
.search {
  margin: 32px 0;
  border: 3px solid var(--ink);
  background: var(--paper);
  display: grid;
  grid-template-columns: auto 1fr auto;
  position: relative;
}
.cta-search { position: relative; }
.search-suggest {
  position: absolute;
  top: calc(100% + 3px);
  left: -3px;
  right: -3px;
  background: var(--paper);
  border: 3px solid var(--ink);
  z-index: 50;
  max-height: 360px;
  overflow-y: auto;
  font-family: var(--mono);
}
.search-suggest[hidden] { display: none; }
.search-suggest .sug {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ink-3);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.search-suggest .sug:last-child { border-bottom: none; }
.search-suggest .sug.on, .search-suggest .sug:hover { background: var(--accent); }
.search-suggest .sug img { display: block; border: 1px solid var(--ink-3); }
.search-suggest .sug-n { flex: 1; }
.search-suggest .sug-c { color: var(--ink-3); font-size: 12px; }
.search .prompt {
  padding: 18px 18px 18px 22px;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 16px;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.search input {
  border: none;
  outline: none;
  padding: 22px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.search input::placeholder { color: var(--ink-3); font-weight: 500; }
.search button {
  border: none;
  background: var(--accent);
  color: var(--ink);
  padding: 0 32px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-left: 3px solid var(--ink);
}
.search button:hover { background: var(--ink); color: var(--accent); }
.search-hints {
  padding: 12px 22px;
  border-top: 1px solid var(--ink);
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
}
.search-hints span { text-transform: uppercase; letter-spacing: 0.5px; }
.search-hints a, .search-hints kbd {
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--ink);
  font-weight: 700;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}
.search-hints a:hover, .search-hints kbd:hover { background: var(--ink); color: var(--accent); }
@media (max-width: 600px) {
  .search { grid-template-columns: 1fr; }
  .search .prompt { padding: 12px 18px; justify-content: flex-start; }
  .search input { padding: 16px 18px; font-size: 16px; }
  .search button { padding: 14px; border-left: none; border-top: 3px solid var(--ink); }
}

/* ----- Section header ----- */
.sec-h {
  margin: 56px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-h .num {
  background: var(--ink);
  color: var(--bg);
  padding: 5px 11px;
  font-weight: 800;
  font-size: 12px;
  font-family: var(--mono);
}
.sec-h .title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}
.sec-h .more {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  font-family: var(--mono);
}
.sec-h .more:hover { background: var(--ink); color: var(--accent); }
.sec-h .rule { flex: 1; height: 3px; background: var(--ink); margin: 0 6px; }
@media (max-width: 600px) {
  .sec-h .rule { display: none; }
  .sec-h { flex-wrap: wrap; gap: 8px; margin: 36px 0 14px; }
}

/* ----- Popular countries grid ----- */
.pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0;
  border: 3px solid var(--ink);
  background: var(--ink);
}
.pop-cell {
  background: var(--paper);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ink);
  margin: -1px 0 0 -1px;
}
.pop-cell:hover { background: var(--accent); }
.pop-cell .pn { font-weight: 700; font-size: 13px; line-height: 1.2; font-family: var(--mono); }
.pop-cell .pc { margin-left: auto; font-size: 12px; font-weight: 800; font-family: var(--mono); }

/* ----- Scam preview cards ----- */
.scam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.scam-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 0;
  display: block;
}
.scam-card:hover .sch { background: var(--accent-red); }
.sch {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid var(--ink);
}
.sch .scn {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  font-family: var(--mono);
}
.sch .scc {
  margin-left: auto;
  background: var(--accent-red);
  color: white;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--mono);
}
.sch .scc.med { background: #b87a14; }
.sch .scc.low { background: var(--green); }
.scb { padding: 16px 18px; }
.scb .stype {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
  letter-spacing: 1px;
  font-family: var(--mono);
}
.scb .stxt {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ----- Filter buttons ----- */
.filters {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 3px solid var(--ink);
  background: var(--ink);
  margin-bottom: 0;
}
.filter, .filter-btn {
  padding: 10px 16px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  margin: -1px 0 0 -1px;
  cursor: pointer;
  color: var(--ink-2);
}
.filter:hover, .filter-btn:hover { background: var(--accent); color: var(--ink); }
.filter.on, .filter-btn.on { background: var(--ink); color: var(--accent); }

/* ----- All countries grid (dense) ----- */
.all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0;
  border: 3px solid var(--ink);
  border-top: none;
  background: var(--ink);
}
.ac-cell {
  background: var(--paper);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--ink);
  margin: -1px 0 0 -1px;
}
.ac-cell:hover { background: var(--accent); }
.ac-cell .acc { font-size: 12px; font-weight: 800; font-family: var(--mono); }
.ac-cell .acn {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----- Bottom CTA ----- */
.cta-bottom {
  margin: 72px 0 56px;
  border: 3px solid var(--ink);
  background: var(--accent);
  padding: 44px 32px;
  text-align: center;
}
.cta-bottom h2 {
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  line-height: 0.95;
  margin-bottom: 14px;
}
.cta-bottom p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  margin: 0 auto 28px;
  max-width: 540px;
  line-height: 1.55;
}
.cta-bottom .cta-search {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 3px solid var(--ink);
  background: var(--paper);
}
.cta-bottom .cta-search input {
  border: none;
  outline: none;
  padding: 18px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  min-width: 0;
}
.cta-bottom .cta-search button {
  border: none;
  border-left: 3px solid var(--ink);
  background: var(--ink);
  color: var(--accent);
  padding: 0 28px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
}
.cta-bottom .cta-search button:hover { background: var(--accent-red); color: white; }

/* ----- Country / detail page ----- */
.page { padding-top: 36px; padding-bottom: 64px; }
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { background: var(--ink); color: var(--accent); padding: 0 4px; }
.breadcrumb .sep { color: var(--ink-3); margin: 0 6px; }

/* Big country card (used on country show) */
.country-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  margin-bottom: 24px;
}
.country-card .head {
  background: var(--ink);
  color: var(--bg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 800;
  flex-wrap: wrap;
}
.country-card .head .name {
  font-family: var(--mono);
  font-size: clamp(22px, 3vw, 30px);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}
.country-card .head .code {
  margin-left: auto;
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  background: var(--accent);
  color: var(--ink);
  padding: 4px 14px;
}
.country-card .head .flag.flag-lg { width: 48px; height: 36px; }
.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}
.cell {
  padding: 14px 18px;
  border-right: 2px solid var(--ink);
}
.cell:last-child { border-right: none; }
.cell .lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
  letter-spacing: 0.6px;
}
.cell .val { font-family: var(--mono); font-size: 16px; font-weight: 700; }
.cell.risk-cell.high { background: var(--accent-red); color: white; }
.cell.risk-cell.high .lbl { color: rgba(255, 255, 255, 0.85); }
.cell.risk-cell.med { background: #b87a14; color: white; }
.cell.risk-cell.med .lbl { color: rgba(255, 255, 255, 0.85); }
.cell.risk-cell.low { background: var(--green); color: white; }
.cell.risk-cell.low .lbl { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 700px) {
  .row { grid-template-columns: 1fr 1fr; }
  .cell:nth-child(even) { border-right: none; }
}
@media (max-width: 460px) {
  .row { grid-template-columns: 1fr; }
  .cell { border-right: none; }
}

/* Timezone card — live clock + multi-city for big countries */
.tz-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  margin: 16px 0 24px;
}
.tz-head {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 3px solid var(--ink);
  font-family: var(--mono);
  flex-wrap: wrap;
}
.tz-head .tz-label {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.2px;
}
.tz-head .tz-offset {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--accent);
  color: var(--ink);
  padding: 3px 10px;
}
.tz-body {
  display: grid;
  grid-template-columns: 1fr;
}
.tz-row {
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
}
.tz-row:last-child { border-bottom: none; }
.tz-row .tz-city {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.tz-row .tz-time {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.tz-row .tz-abbr {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-3);
  letter-spacing: 0.8px;
  min-width: 36px;
  text-align: right;
}
.tz-hint {
  background: var(--bg);
  border-top: 2px solid var(--ink);
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.5;
}
.tz-hint strong { font-weight: 700; color: var(--ink); }
.tz-hint .tz-good { color: var(--green); font-weight: 700; }
.tz-hint .tz-bad { color: var(--accent-red); font-weight: 700; }
.tz-hint .tz-meh { color: #b87a14; font-weight: 700; }

/* Warning slab — high-risk advisory */
.warn {
  background: var(--accent-red);
  color: white;
  padding: 22px 24px;
  margin: 24px 0;
  border: 3px solid var(--ink);
}
.warn .wlbl {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.warn .wmsg {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}
.warn .wmsg strong { font-weight: 700; background: rgba(0,0,0,0.25); padding: 0 4px; }

/* Dial-instruction blocks */
.dial {
  background: var(--paper);
  border: 3px solid var(--ink);
  margin: 12px 0;
}
.dial .dh {
  background: var(--ink);
  color: var(--accent);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 3px solid var(--ink);
}
.dial .dh::before { content: '$ '; }
.dial .dc {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.dial .dc .plus { color: var(--accent-red); padding: 0 4px; }
.dial .dn {
  padding: 12px 20px;
  border-top: 1px dashed var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.dial .dn code {
  font-family: var(--mono);
  background: var(--bg);
  padding: 1px 6px;
  font-weight: 700;
}

/* Home "How to call" CTA — two combos + go button */
.route-cta {
  border: 3px solid var(--ink);
  background: var(--paper);
  margin: 16px 0 0;
  box-shadow: 6px 6px 0 var(--ink);
}
.route-cta-tag {
  padding: 16px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.55;
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
}
.route-cta-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 0;
  align-items: stretch;
}
.route-cta-row {
  display: flex;
  flex-direction: column;
  padding: 16px 22px;
  border-right: 1px solid var(--ink);
}
.route-cta-row label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.route-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  border-right: 1px solid var(--ink);
}
.route-cta-go {
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-left: 3px solid var(--ink);
  padding: 0 30px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  white-space: nowrap;
}
.route-cta-go:hover:not(:disabled) { background: var(--ink); color: var(--accent); }
.route-cta-go:disabled { background: var(--rule); color: var(--ink-3); cursor: not-allowed; }
@media (max-width: 760px) {
  .route-cta-form { grid-template-columns: 1fr; }
  .route-cta-row { border-right: none; border-bottom: 1px solid var(--ink); }
  .route-cta-arrow { padding: 8px; font-size: 18px; border-right: none; border-bottom: 1px solid var(--ink); }
  .route-cta-go { border-left: none; padding: 14px; }
}

/* Route filter (calling routes index) */
.route-filter {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 0;
  align-items: stretch;
  border: 3px solid var(--ink);
  background: var(--paper);
  margin: 16px 0 10px;
}
.route-filter-row {
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  border-right: 1px solid var(--ink);
}
.route-filter-row label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
/* Custom searchable combobox */
.combo { position: relative; }
.combo-flag {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 15px;
  border: 1px solid var(--ink);
  display: block;
}
.combo-flag[hidden] { display: none; }
.combo-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 28px 4px 0;
  width: 100%;
  cursor: text;
  transition: padding-left 0.1s;
}
.combo.selected .combo-input { padding-left: 28px; }
.combo-input::placeholder { color: var(--ink-3); font-weight: 500; }
.combo-clear {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid transparent;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.combo-clear:hover { color: var(--ink); border-color: var(--ink); background: var(--accent); }
.combo.open .combo-input { color: var(--ink); }
.combo-list {
  position: absolute;
  top: calc(100% + 12px);
  left: -19px;
  right: -19px;
  z-index: 60;
  background: var(--paper);
  border: 3px solid var(--ink);
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 6px 6px 0 var(--ink);
}
.combo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  color: var(--ink);
}
.combo-list li:last-child { border-bottom: none; }
.combo-list li .cn { flex: 1; }
.combo-list li .cc { color: var(--ink-3); font-size: 12px; font-weight: 800; }
.combo-list li:hover,
.combo-list li.active { background: var(--accent); color: var(--ink); }
.combo-list li:hover .cc,
.combo-list li.active .cc { color: var(--ink); }
.combo-list li.combo-empty {
  color: var(--ink-3);
  font-style: normal;
  cursor: default;
  justify-content: center;
}
.combo-list li.combo-empty:hover { background: var(--paper); }

/* Route table — From / → / To columns with aligned flags */
.tbl-routes .col-country { white-space: nowrap; }
.tbl-routes .col-arrow {
  width: 24px;
  text-align: center;
  color: var(--ink-3);
  font-weight: 800;
  padding-left: 0;
  padding-right: 0;
}
.tbl-routes .country-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.route-filter-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  border-right: 1px solid var(--ink);
}
.route-filter button {
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-left: 3px solid var(--ink);
  padding: 0 22px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.route-filter button:hover { background: var(--ink); color: var(--accent); }
.route-count {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
@media (max-width: 720px) {
  .route-filter { grid-template-columns: 1fr; }
  .route-filter-row { border-right: none; border-bottom: 1px solid var(--ink); }
  .route-filter-arrow { padding: 6px; font-size: 16px; border-right: none; border-bottom: 1px solid var(--ink); }
  .route-filter button { border-left: none; padding: 12px; }
}

/* Generic data table */
.tbl-wrap { border: 3px solid var(--ink); background: var(--paper); margin: 12px 0; overflow-x: auto; }
.ac-filter { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; border: 3px solid var(--ink); background: var(--paper); }
.ac-filter input { flex: 1; border: none; outline: none; padding: 14px 18px; font-family: var(--mono); font-size: 15px; font-weight: 600; background: transparent; color: var(--ink); }
.ac-filter input::placeholder { color: var(--ink-3); font-weight: 500; }
.ac-count { padding: 0 18px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-3); border-left: 1px solid var(--ink); align-self: stretch; display: flex; align-items: center; }
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
}
.tbl th {
  text-align: left;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 14px;
}
.tbl td {
  padding: 12px 14px;
  font-size: 13px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 600;
}
.tbl tr:hover td { background: var(--bg); }
.tbl td a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tbl td a:hover { background: var(--accent); }
.tbl td code { background: var(--bg); padding: 2px 8px; font-weight: 700; }

/* Tip / list cards (warning signs, what-to-do, etc.) */
.tip {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 0;
  margin: 12px 0;
}
.tip .th {
  background: var(--ink);
  color: var(--accent);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 3px solid var(--ink);
}
.tip .tb { padding: 18px 22px; font-family: var(--sans); }
.tip .tb p { font-size: 15px; line-height: 1.65; color: var(--ink); margin-bottom: 12px; }
.tip .tb p:last-child { margin-bottom: 0; }
.tip .tb ul, .tip .tb ol { padding-left: 22px; margin: 0; }
.tip .tb li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 8px;
}
.tip .tb li::marker { color: var(--accent-red); font-weight: 800; }

/* Section header for inner pages (less heavy than .sec-h) */
.section { margin: 36px 0 12px; }
.section h2 {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  padding: 8px 0 8px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 14px;
}
.section h3 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 18px 0 8px;
}

/* Prose body (used inside scam pages, blog articles, static pages) */
.prose {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 720px;
}
.prose p { margin-bottom: 16px; }
.prose strong { font-weight: 700; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: var(--accent); }
.prose h2 {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ink);
}
.prose h3 {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 24px 0 8px;
}
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose code {
  font-family: var(--mono);
  background: var(--bg);
  padding: 1px 6px;
  font-size: 0.92em;
  font-weight: 700;
  border: 1px solid var(--rule);
}
.prose blockquote {
  border-left: 4px solid var(--ink);
  padding: 8px 0 8px 18px;
  margin: 16px 0;
  font-style: italic;
  color: var(--ink-2);
}

/* Risk badge — used in lists/cards */
.risk-badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 2px solid var(--ink);
}
.risk-badge.risk-low { background: var(--green); color: white; }
.risk-badge.risk-medium { background: #b87a14; color: white; }
.risk-badge.risk-high { background: var(--accent-red); color: white; }

/* Article (blog) cards */
.article-card {
  display: block;
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 0;
  margin-bottom: 14px;
}
.article-card .ac-h {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--ink);
}
.article-card .ac-h .cat {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--accent);
  color: var(--ink);
  padding: 2px 8px;
}
.article-card .ac-h .date { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: auto; }
.article-card .ac-b { padding: 18px 22px; }
.article-card .ac-b h2 {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.15;
}
.article-card .ac-b p { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.article-card:hover .ac-h { background: var(--accent-red); }
.article-card:hover .ac-b h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Result card (live JS lookup result) */
.result { max-width: 720px; margin: 16px auto 0; }
.result-card {
  display: none;
  background: var(--paper);
  border: 3px solid var(--ink);
  margin-top: 8px;
}
.result-card.show { display: block; }
.result-card .head {
  background: var(--ink);
  color: var(--bg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.result-card .head .rname {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}
.result-card .head .rcode {
  margin-left: auto;
  background: var(--accent);
  color: var(--ink);
  padding: 4px 10px;
  font-family: var(--mono);
  font-weight: 800;
}
.result-card .body { padding: 16px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-card .body .rcell .lbl { font-family: var(--mono); font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.result-card .body .rcell .val { font-family: var(--mono); font-size: 14px; font-weight: 700; }
.result-card .cta {
  border-top: 2px solid var(--ink);
  padding: 14px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.result-card .cta a { color: var(--ink); text-decoration: underline; }
.result-card .cta a:hover { background: var(--accent); }

/* ----- Footer ----- */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 36px 24px;
  border-top: 3px solid var(--ink);
  margin-top: 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.footer-copy { color: var(--ink-3); }
.footer a { color: var(--bg); padding: 0 4px; }
.footer a:hover { background: var(--accent); color: var(--ink); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* 404 helpers */
.notfound {
  text-align: center;
  padding: 80px 24px 60px;
}
.notfound .code-404 {
  font-family: var(--mono);
  font-size: clamp(96px, 18vw, 200px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -6px;
  background: var(--accent);
  display: inline-block;
  padding: 8px 28px;
  border: 4px solid var(--ink);
  margin-bottom: 18px;
}
.notfound h1 {
  font-family: var(--mono);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.notfound p {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.55;
}
