/* RoamCompare v4 — complete component styles (2026-12-03 rehaul).
   Nothing dangling: every class emitted by tools/build.py + page.js is styled here. */
@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  button { font: inherit; cursor: pointer; }
  input, select { font: inherit; }
}

@layer base {
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: var(--fs-m); line-height: 1.55; -webkit-font-smoothing: antialiased; }
  h1, h2, h3 { font-weight: 760; letter-spacing: -.02em; line-height: 1.14; }
  a { color: var(--blue-deep); text-underline-offset: 2px; }
  a:hover { color: var(--blue); }
  :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
  ::selection { background: rgba(37, 99, 235, .18); }
  table { border-collapse: collapse; }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
}

@layer layout {
  .wrap { max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }
  .wrap-tight { max-width: 860px; }
  .section-pad { padding-block: 2.6rem; }
  .section-head { margin-bottom: 1.2rem; }
  .section-head .rule { display: flex; align-items: baseline; gap: 1rem; }
  .section-head .rule::after { content: ""; flex: 1; border-top: 1px solid var(--line); translate: 0 -4px; }
  .section-title { font-size: var(--fs-xl); }
  .section-sub { color: var(--muted); margin-top: .35rem; max-width: 64ch; }
  .crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: var(--fs-xs); color: var(--faint); padding-block: .8rem .2rem; }
  .crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
  .crumbs a:hover { color: var(--blue); text-decoration: underline; }
  .crumbs .sep { opacity: .55; }
  .back-btn { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: var(--fs-s); font-weight: 600; text-decoration: none; padding: .3rem 0; }
  .back-btn:hover { color: var(--ink); text-decoration: none; }
  .back-btn::before { content: "←"; font-weight: 700; }
}

@layer components {
  /* ---------- chrome ---------- */
  .banner { background: var(--hero); color: var(--gold); font-size: var(--fs-s); font-weight: 600; text-align: center; padding: .5rem 1rem; }
  .site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .93); backdrop-filter: blur(9px); border-bottom: 1px solid var(--line); }
  .site-header .bar { display: flex; align-items: center; gap: 1.25rem; padding-block: .6rem; }
  .brand { font-weight: 780; font-size: 1.05rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
  .brand .mark { position: relative; width: 12px; height: 12px; border-radius: 4px; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  .brand .mark::after { content: ""; position: absolute; top: -2px; right: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); border: 1.5px solid #fff; }
  .demo-chip { font-size: .64rem; font-weight: 800; letter-spacing: .09em; color: var(--gold-deep); background: var(--gold-tint); border: 1px solid #fde68a; border-radius: 999px; padding: .1rem .45rem; }
  .site-header nav { display: flex; gap: 1.15rem; margin-inline: auto; }
  .site-header nav a { text-decoration: none; color: var(--muted); font-weight: 620; font-size: var(--fs-s); padding-block: .25rem; }
  .site-header nav a:hover { color: var(--ink); }
  .site-header nav a[aria-current="page"] { color: var(--blue-deep); box-shadow: inset 0 -2px 0 var(--blue); }
  .lang { display: flex; gap: 2px; padding: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
  .lang button { border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: .2rem .55rem; font-size: var(--fs-xs); font-weight: 700; }
  .lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }

  /* ---------- buttons ---------- */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: var(--r-s); padding: .6rem 1.05rem; font-weight: 650; font-size: var(--fs-s); text-decoration: none; line-height: 1.25; white-space: nowrap; transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease); }
  .btn:active { transform: scale(.98); }
  .btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
  .btn-primary:hover { background: var(--blue-deep); color: #fff; }
  .btn-light { background: #fff; color: var(--ink); }
  .btn-light:hover { background: var(--panel); color: var(--ink); }
  .btn-ghostdark { background: transparent; color: var(--hero-fog); border-color: rgba(255, 255, 255, .28); }
  .btn-ghostdark:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
  .btn-outline { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
  .btn-outline:hover { border-color: var(--ink-2); background: var(--panel); color: var(--ink); }
  .btn-sm { padding: .4rem .8rem; font-size: .8125rem; border-radius: 8px; }
  .btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

  /* card CTA (was unstyled) */
  .btn-view { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; background: var(--blue); color: #fff; border-radius: var(--r-s); padding: .5rem .95rem; font-weight: 680; font-size: .845rem; text-decoration: none; box-shadow: var(--shadow-blue); transition: background var(--speed) var(--ease), transform var(--speed) var(--ease); }
  .btn-view:hover { background: var(--blue-deep); color: #fff; }
  .btn-view:active { transform: scale(.98); }
  .btn-view::after { content: "→"; font-weight: 700; }

  /* ---------- dark HERO (home) ---------- */
  .hero { background: var(--hero); color: var(--hero-fog); position: relative; overflow: hidden; }
  .hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(148, 163, 184, .14) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(56rem 30rem at 30% 0%, #000 30%, transparent 75%);
            mask-image: radial-gradient(56rem 30rem at 30% 0%, #000 30%, transparent 75%);
    pointer-events: none;
  }
  .hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(44rem 24rem at 82% -16%, rgba(37, 99, 235, .34), transparent 62%), radial-gradient(30rem 20rem at 0% 118%, rgba(5, 150, 105, .16), transparent 60%); pointer-events: none; }
  .hgroup { position: relative; z-index: 1; padding-block: 3.8rem 2.1rem; max-width: 47rem; }
  .hero .kicker { display: inline-block; color: var(--blue-kicker); font-weight: 720; font-size: var(--fs-xs); letter-spacing: .11em; text-transform: uppercase; margin-bottom: .9rem; }
  .hero h1 { font-size: var(--fs-hero); color: #fff; margin-bottom: .8rem; font-weight: 790; }
  .hero .sub { color: var(--hero-fog); font-size: var(--fs-l); max-width: 41rem; }

  .proof { position: relative; z-index: 1; display: flex; flex-wrap: wrap; margin-block: .5rem; }
  .proof .item { flex: 1 1 10rem; border-top: 1px solid rgba(255, 255, 255, .14); padding: .95rem 1.6rem .95rem 0; margin-right: 1.6rem; }
  .proof .num { font-size: 1.55rem; font-weight: 780; color: #fff; font-variant-numeric: tabular-nums; }
  .proof .num.num-gold { color: var(--gold); }
  .proof .lbl { font-size: var(--fs-xs); color: var(--faint); letter-spacing: .05em; text-transform: uppercase; font-weight: 640; margin-top: .15rem; }

  /* wizard panel (dark, home) */
  .wizard { position: relative; z-index: 2; background: var(--hero-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-l); box-shadow: 0 24px 60px rgba(4, 8, 18, .5); padding: 1.15rem 1.25rem 1.25rem; margin-block: 1rem 3.2rem; display: grid; gap: .85rem; text-align: left; }
  .wizard-title { font-size: 1.02rem; font-weight: 720; color: #fff; }
  .fields { display: grid; gap: .8rem; grid-template-columns: repeat(3, 1fr); }
  @media (max-width: 740px) { .fields { grid-template-columns: 1fr; } }
  .fgroup label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: .35rem; }
  .fgroup label { color: rgba(203, 213, 225, .78); }
  .hero .select, .wizard .select, .darkselect {
    width: 100%; appearance: none; -webkit-appearance: none; padding: .58rem 2rem .58rem .7rem; border-radius: var(--r-s);
    background: var(--hero) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right .7rem center;
    border: 1px solid rgba(255, 255, 255, .16); color: var(--hero-fog); font-size: var(--fs-s); font-weight: 600;
  }
  .wizard .fields .fgroup:first-child .cbox-input { background: var(--hero); }
  .wizard-row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
  .wizard-note { font-size: var(--fs-xs); color: var(--faint); }

  /* ---------- searchable combobox (light + dark) ---------- */
  .cbox { position: relative; width: 100%; }
  .cbox-input { width: 100%; padding: .58rem 2rem .58rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: #fff; font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
  .cbox-input::placeholder { color: var(--faint); font-weight: 520; }
  .cbox-input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
  .cbox-list { position: absolute; z-index: 45; top: calc(100% + 4px); left: 0; right: 0; max-height: 19rem; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-2); padding: .3rem; }
  .cbox-item { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .46rem .6rem; border-radius: 7px; cursor: pointer; font-size: var(--fs-s); color: var(--ink-2); }
  .cbox-item:hover, .cbox-item.active { background: var(--blue-soft); }
  .cbox-item .cbox-label { font-weight: 600; }
  .cbox-item[aria-selected="true"] .cbox-label { font-weight: 750; }
  .cbox-item .cbox-hint { color: var(--faint); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cbox-empty { padding: .6rem; color: var(--muted); font-size: var(--fs-s); text-align: center; }
  .hero .cbox-input { background: var(--hero); border-color: rgba(255, 255, 255, .16); color: var(--hero-fog); }
  .hero .cbox-input::placeholder { color: rgba(148, 163, 184, .75); }
  .hero .cbox-list { background: var(--hero-2); border-color: rgba(255, 255, 255, .14); }
  .hero .cbox-item { color: var(--hero-fog); }
  .hero .cbox-item:hover, .hero .cbox-item.active { background: rgba(37, 99, 235, .22); color: #fff; }
  .hero .cbox-item .cbox-hint { color: var(--faint); }

  /* ---------- trust strip / strips ---------- */
  .truststrip { border-bottom: 1px solid var(--line); background: #fff; }
  .truststrip .inner { display: flex; flex-wrap: wrap; gap: .4rem 1.9rem; padding-block: .8rem; color: var(--muted); font-size: var(--fs-s); font-weight: 560; }
  .truststrip .tick { color: var(--green); font-weight: 800; margin-right: .4rem; }
  .truststrip a { color: var(--blue-deep); text-decoration: none; font-weight: 620; }
  .truststrip a:hover { text-decoration: underline; }

  /* ---------- plan cards ---------- */
  .card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-block: 1.2rem 4rem; }
  .grid-static { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-block: 1.2rem 2.6rem; }
  .card { position: relative; display: flex; flex-direction: column; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1); padding: 1.1rem 1.2rem; transition: box-shadow var(--speed) var(--ease), translate var(--speed) var(--ease), border-color var(--speed) var(--ease); }
  .card:hover { box-shadow: var(--shadow-2); translate: 0 -2px; border-color: var(--blue-border); }
  .card .top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
  .card .provider { color: var(--faint); font-size: var(--fs-xs); font-weight: 720; letter-spacing: .09em; text-transform: uppercase; }
  .card .card-title, .card h3 { font-size: 1.03rem; font-weight: 700; color: var(--ink); }
  .card .flags { font-size: .95rem; letter-spacing: .12em; }
  .card .chips { display: flex; flex-wrap: wrap; gap: .3rem; }
  .chip { font-size: var(--fs-xs); font-weight: 640; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .5rem; background: var(--panel); font-variant-numeric: tabular-nums; }
  .chip-net { color: var(--blue-deep); background: var(--blue-soft); border-color: var(--blue-border); }
  .score-pill { font-size: var(--fs-xs); font-weight: 780; border-radius: 999px; padding: .18rem .55rem; font-variant-numeric: tabular-nums; }
  .card .top .score-pill { background: var(--green-tint); color: var(--green-deep); }
  .card .top .score-pill.mid { background: var(--gold-tint); color: var(--gold-deep); }
  .card .top .score-pill.low { background: var(--red-tint); color: var(--red-text); }
  .badge-pick { position: absolute; top: -.68rem; left: .9rem; background: var(--blue); color: #fff; font-size: .66rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; border-radius: 999px; padding: .16rem .55rem; box-shadow: var(--shadow-blue); }
  .card .price-row { display: flex; align-items: baseline; gap: .55rem; margin-top: .1rem; }
  .card .price, .price { font-size: 1.62rem; font-weight: 780; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
  .card .pergb { color: var(--muted); font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
  .spark { margin-top: .15rem; padding-top: .5rem; border-top: 1px dashed var(--line); }
  .spark svg { width: 100%; height: 30px; }
  .spark-cap { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-xs); color: var(--muted); margin-top: .3rem; }
  .delta-down { color: var(--green); font-weight: 700; }
  .delta-up { color: var(--red-text); font-weight: 700; }
  .delta-flat { color: var(--muted); font-weight: 620; }
  .card .card-actions { margin-top: auto; display: flex; gap: .8rem; align-items: center; justify-content: space-between; padding-top: .45rem; border-top: 1px dashed var(--line); }
  .add-compare { display: inline-flex; gap: .4rem; align-items: center; font-size: var(--fs-xs); font-weight: 680; color: var(--muted); cursor: pointer; }
  .add-compare:hover { color: var(--blue); }
  .add-compare input { accent-color: var(--blue); width: .95rem; height: .95rem; }

  /* ---------- filters toolbar + form (light) ---------- */
  .filterbar { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-1); padding: .9rem; display: grid; gap: .75rem; margin-block: 1.1rem .4rem; grid-template-columns: 1fr; }
  @media (min-width: 760px) { .filterbar { grid-template-columns: 1.6fr 1fr 1fr 1fr auto; align-items: end; } }
  .filterbar .select { width: 100%; appearance: none; -webkit-appearance: none; padding: .55rem 2rem .55rem .7rem; border-radius: var(--r-s); background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right .7rem center; border: 1px solid var(--line-strong); color: var(--ink); font-size: var(--fs-s); font-weight: 600; }
  .filterbar .select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
  .filterbar .actions { display: flex; gap: .5rem; }
  .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-block: .3rem .6rem; }
  .result-count { color: var(--muted); font-size: var(--fs-s); font-variant-numeric: tabular-nums; font-weight: 620; }
  .editorial-note { color: var(--muted); font-size: var(--fs-xs); }
  .toolbar .editorial-note { text-align: right; }

  /* country pages: hero + in-hero filters (fixed austria-style bug) */
  .country-hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--blue-soft), #fff 90%); }
  .country-hero::before { content: ""; position: absolute; }
  .country-hero .inner { position: relative; padding-block: 1.8rem 1.7rem; }
  .country-hero h1 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); max-width: 30ch; }
  .country-hero .sub { color: var(--muted); max-width: 68ch; margin-top: .5rem; }
  .cc-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
  .cc-meta .chip { background: #fff; }
  .c-filters { margin-top: 1.1rem; max-width: 740px; display: grid; gap: .7rem; align-items: end; }
  .c-filters .fields { grid-template-columns: 2fr 1fr 1fr; }
  .c-filters .fgroup label { color: var(--muted); }
  .c-filters .select { appearance: none; -webkit-appearance: none; width: 100%; padding: .55rem 2rem .55rem .7rem; border-radius: var(--r-s); background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right .7rem center; border: 1px solid var(--line-strong); color: var(--ink); font-size: var(--fs-s); font-weight: 600; }
  .c-filters .select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }

  .statbar { display: grid; gap: .6rem 2rem; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); background: var(--hero); color: var(--hero-fog); border-radius: var(--r-m); padding: 1rem 1.3rem; margin-block: 1.2rem 1.5rem; }
  .statbar .num { font-size: 1.35rem; font-weight: 770; color: #fff; font-variant-numeric: tabular-nums; }
  .statbar .num.num-gold, .statbar .num.price { color: var(--gold); }
  .statbar .lbl { font-size: .68rem; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; margin-top: .12rem; }
  .crosslinks { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2.4rem; }
  .crosslinks .btn { padding: .42rem .8rem; font-size: .8125rem; }

  /* ---------- destination cards / country directory ---------- */
  .dest-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); margin: 1rem 0 1.6rem; }
  .dest-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: .8rem .95rem; text-decoration: none; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: .6rem; transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), translate var(--speed) var(--ease); }
  .dest-card:hover { border-color: var(--blue-border); box-shadow: var(--shadow-2); translate: 0 -2px; color: var(--ink); }
  .dest-card .where { font-weight: 680; }
  .dest-card .flag { font-size: 1.25rem; }
  .ctable-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-1); overflow: auto; margin-block: .6rem 1.4rem; }
  .ctable { width: 100%; font-size: var(--fs-s); }
  .ctable th { text-align: left; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .07em; padding: .68rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel); }
  .ctable td { padding: .62rem .8rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
  .ctable tbody tr:last-child td { border-bottom: 0; }
  .ctable tbody tr:hover td { background: var(--blue-soft); }
  .ctable .c-name { font-weight: 680; }
  .ctable .c-name a { color: var(--ink); text-decoration: none; }
  .ctable .c-name a:hover { color: var(--blue-deep); text-decoration: underline; }
  .ctable .nets { color: var(--muted); font-size: var(--fs-xs); }
  .region-block { margin-block: 1.7rem .65rem; }
  .region-block h2 { font-size: var(--fs-l); }
  .region-block .editorial-note { font-weight: 560; }

  /* ---------- networks / coverage ---------- */
  .netsec { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); margin-block: .7rem 1.4rem; }
  .netcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: .85rem 1rem; }
  .netcard .nname { font-weight: 730; font-size: var(--fs-s); }
  .netcard .qmeter { display: flex; gap: 3px; margin-block: .45rem .3rem; }
  .netcard .qbar { height: 4px; flex: 1; border-radius: 2px; background: var(--line); }
  .netcard .qbar.on { background: var(--green); }
  .netcard .nq { font-size: var(--fs-xs); color: var(--muted); }
  .netcard .note { font-size: var(--fs-xs); color: var(--muted); margin-top: .1rem; }

  /* ---------- plan DETAIL page ---------- */
  .pdetail-grid { display: grid; gap: 2.4rem; grid-template-columns: minmax(300px, 430px) 1fr; align-items: start; margin-top: 1.4rem; }
  @media (max-width: 860px) { .pdetail-grid { grid-template-columns: 1fr; } }
  .pdetail-grid .card { box-shadow: var(--shadow-2); position: sticky; top: 4.2rem; }
  @media (max-width: 860px) { .pdetail-grid .card { position: static; } }
  .factlist { width: 100%; margin-block: .6rem; }
  .factlist div { display: flex; justify-content: space-between; gap: 1rem; padding: .52rem 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-s); }
  .factlist div:last-child { border-bottom: 0; }
  .factlist span { color: var(--muted); font-weight: 600; }
  .factlist b { color: var(--ink); font-weight: 680; text-align: right; font-variant-numeric: tabular-nums; }
  .ptitle h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 30ch; }
  .ptitle .sub { color: var(--muted); margin-top: .45rem; }
  .hist-table { width: 100%; font-size: var(--fs-s); max-width: 420px; }
  .hist-table td { padding: .4rem 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
  .hist-table td:last-child { text-align: right; font-weight: 680; }
  .hist-table tr:last-child td { color: var(--green-deep); font-weight: 750; }
  .go-block { background: linear-gradient(180deg, var(--blue-soft), #fff); border: 1px solid var(--blue-border); border-radius: var(--r-l); padding: 1.5rem 1.6rem; margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
  .go-block .price { font-size: 1.8rem; font-weight: 790; }
  .go-block .btn-primary { padding: .75rem 1.4rem; font-size: 1rem; }
  .aff-note { color: var(--muted); font-size: var(--fs-xs); margin-top: .5rem; }
  .note-rows { display: grid; gap: .8rem; margin-block: .8rem; }

  /* ---------- compare tray + modal ---------- */
  .tray { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); background: var(--hero); color: #fff; border-radius: 999px; box-shadow: 0 16px 40px rgba(4, 8, 18, .5); display: flex; align-items: center; gap: .6rem; padding: .45rem .45rem .45rem 1.05rem; z-index: 40; }
  .tray[hidden] { display: none; }
  .tray .count { font-weight: 760; font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
  .tray button { border: none; border-radius: 999px; padding: .42rem .85rem; font-weight: 700; font-size: var(--fs-s); }
  .tray .clear { background: transparent; color: var(--faint); }
  .tray .clear:hover { color: #fff; }
  .tray .open { background: var(--blue); color: #fff; }
  .tray .open:disabled { opacity: .45; }
  .modal-backdrop { position: fixed; inset: 0; background: rgba(10, 15, 30, .62); z-index: 50; display: grid; place-items: center; padding: 1rem; }
  .modal-backdrop[hidden] { display: none; }
  .modal { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow-2); max-width: 780px; width: 100%; max-height: 85vh; overflow: auto; padding: 1.4rem; }
  .modal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
  .modal h3 { font-size: var(--fs-l); }
  .modal .close { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .75rem; font-weight: 700; }
  .compare-table { width: 100%; font-size: var(--fs-s); }
  .compare-table th, .compare-table td { border-bottom: 1px solid var(--line); padding: .55rem .6rem; text-align: left; vertical-align: top; }
  .compare-table th[scope="row"] { color: var(--muted); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
  .compare-table .spark svg { height: 26px; }

  /* ---------- home extras ---------- */
  .guarantee { border: 1px solid var(--line); border-left: 3px solid var(--green); background: #fff; border-radius: var(--r-m); padding: 1.05rem 1.25rem; max-width: 47rem; }
  .guarantee h3 { font-size: var(--fs-m); margin-bottom: .3rem; }
  .guarantee p { color: var(--muted); font-size: var(--fs-s); }
  .guarantee p b { color: var(--ink); }
  .wiz-results { position: relative; z-index: 1; margin-block: -2rem 2.2rem; }
  .wiz-results .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-2); padding: 1.15rem 1.25rem; }
  .wiz-results .panel h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
  .wiz-results .cards3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
  @media (max-width: 860px) { .wiz-results .cards3 { grid-template-columns: 1fr; } }
  .wiz-results .cards3 .card { box-shadow: none; }
  .hidden { display: none !important; }

  /* ---------- guides / articles / prose ---------- */
  .prose { max-width: 72ch; }
  .prose h2 { font-size: var(--fs-l); margin: 1.8rem 0 .5rem; }
  .prose p, .prose li { color: var(--ink-2); font-size: var(--fs-s); margin-block: .5rem; }
  .prose ul { padding-left: 1.2rem; }
  .formula { font-family: ui-monospace, "DejaVu Sans Mono", Menlo, monospace; font-size: var(--fs-s); background: var(--hero); color: var(--hero-fog); border-radius: var(--r-s); padding: .75rem 1rem; margin: .7rem 0; overflow-x: auto; }
  .guide-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-block: 1rem 2.4rem; }
  .guide-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; transition: box-shadow var(--speed) var(--ease), translate var(--speed) var(--ease), border-color var(--speed) var(--ease); }
  .guide-card:hover { box-shadow: var(--shadow-2); translate: 0 -2px; border-color: var(--blue-border); }
  .guide-card h3 { font-size: var(--fs-m); }
  .guide-card h3 a { color: var(--ink); text-decoration: none; }
  .guide-card h3 a:hover { color: var(--blue-deep); text-decoration: underline; }
  .guide-card p { color: var(--muted); font-size: var(--fs-s); }
  .guide-card .meta { color: var(--faint); font-size: var(--fs-xs); font-weight: 640; }
  .article { max-width: 72ch; }
  .article p { color: var(--ink-2); font-size: var(--fs-s); margin-block: .55rem; }
  .article h2 { font-size: var(--fs-l); margin: 1.6rem 0 .4rem; }

  /* ---------- footer ---------- */
  .site-footer { background: var(--hero); color: var(--faint); margin-top: 3.5rem; }
  .site-footer .cols { display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 1fr 1fr; padding-block: 2.2rem 1.4rem; }
  @media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }
  .site-footer .brand { color: #fff; }
  .site-footer h4 { color: #fff; font-size: var(--fs-xs); letter-spacing: .09em; text-transform: uppercase; margin-bottom: .5rem; }
  .site-footer a { color: var(--faint); text-decoration: none; }
  .site-footer a:hover { color: #fff; text-decoration: underline; }
  .site-footer li { list-style: none; margin-block: .28rem; font-size: var(--fs-s); }
  .site-footer .base { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: .9rem; font-size: var(--fs-xs); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
}

@layer utilities {
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
  .mt-s { margin-top: .5rem; }
  .mt-m { margin-top: 1rem; }
}

/* v4.1 polish: step cards + faq */
@layer components {
  .howstrip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .howstrip .item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem 1.2rem; }
  .howstrip .item h3 { font-size: var(--fs-m); margin-block: .3rem .2rem; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary { transition: background var(--speed) var(--ease); border-radius: 10px; }
  .faq-item[open] summary { border-bottom: 1px dashed var(--line); }
  .faq-item summary:hover { background: var(--blue-soft); }
  .faq-item[open] summary span:last-child { transform: rotate(45deg); display: inline-block; transition: transform var(--speed) var(--ease); }
}

/* v5 competitive features */
@layer components {
  .chip-stamp { color: var(--green-deep); background: var(--green-tint); border-color: #a7f3d0; }
  .ctable.matrix th .provider { font-size: .68rem; }
  .ctable.matrix td { vertical-align: middle; }
  .btn-view-sm { padding: .38rem .7rem; font-size: .78rem; }
}

/* v6: provider pages, promo chips, compare tray on country pages */
@layer components {
  .prov-link { color: var(--ink-2); text-decoration: none; font-weight: 640; }
  .prov-link:hover { color: var(--blue-deep); text-decoration: underline; }
  a.provider { letter-spacing: .08em; }
  .chip-promo { background: var(--gold-tint); border-color: #fde68a; color: var(--gold-deep); display: inline-flex; gap: .3rem; align-items: center; }
  .chip-promo b { font-weight: 800; letter-spacing: .03em; }
  .promo-copy { border: 0; background: transparent; cursor: pointer; font-size: .8em; padding: 0 .1rem; color: inherit; }
  .promo-copy:hover { color: var(--ink); }
  .promo-copy-lg { margin-left: .5rem; }
  .speedbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: .9rem 1.1rem; max-width: 420px; }
  .speedbox .snum { font-size: 1.5rem; font-weight: 780; color: var(--ink); font-variant-numeric: tabular-nums; }
  .speedbox .smuted { color: var(--muted); font-size: var(--fs-s); margin-top: .1rem; }
  .speedbox .note { color: var(--faint); font-size: var(--fs-xs); margin-top: .35rem; }
  .swlist { padding-left: 1.1rem; margin-top: .3rem; }
  .swlist li { color: var(--muted); font-size: var(--fs-s); margin-block: .25rem; }
}

/* ---- live-lane layer (added 2026-12-02: real-data identity chips, stamps, tables, mobile) ---- */
.chip-live { background: var(--green-tint); color: var(--green-deep); border: 1px solid #a7f3d0; font-weight: 700; letter-spacing: .05em; }
.chip-demo { background: #f1f5f9; color: var(--muted); border: 1px solid var(--line); }
.chip-stamp { background: var(--blue-soft); color: var(--blue-deep); border: 1px solid var(--blue-border); }
.chip-orig { background: #fffbeb; color: var(--gold-deep); border: 1px solid #fde68a; }
.card-live { border-left: 3px solid var(--green); }
.livebox { background: var(--green-tint); border: 1px solid #a7f3d0; border-radius: var(--r-m); padding: .9rem 1.1rem; margin: 1rem 0 1.2rem; color: var(--green-deep); font-size: var(--fs-s); }
.livebox a { color: var(--blue-deep); }
.table-scroll { overflow-x: auto; margin-block: .6rem; }
table.movers { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
table.movers th { text-align: left; color: var(--muted); font-weight: 600; padding: .5rem .6rem; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.movers td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
table.movers td a { color: var(--ink); }
.ctable-wrap, .hist-table, table.ctable { max-width: 100%; }
@media (max-width: 720px) {
  .grid-static { grid-template-columns: 1fr !important; gap: .7rem; }
  .statbar { flex-wrap: wrap; row-gap: .6rem; }
  body { overflow-x: clip; }
  .banner { font-size: 11px; line-height: 1.35; padding: .4rem .7rem; }
  .chips { row-gap: .3rem; }
  .card-actions { flex-wrap: wrap; gap: .4rem; }
}

/* article-farm layer (Fathom drafts): markers, sections, draft meta */
.mark-slot { background: #fffbeb; color: var(--gold-deep); border: 1px solid #fde68a; border-radius: 6px; padding: 0 .35em; font-size: .85em; white-space: nowrap; }
.mark-verify { background: var(--blue-soft); color: var(--blue-deep); border: 1px solid var(--blue-border); border-radius: 6px; padding: 0 .35em; font-size: .85em; white-space: nowrap; }
.draft-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 1rem; }
.guidesec { margin-top: 1.4rem; }
.guidesec .section-title { font-size: var(--fs-l); }

/* Fathom: article screenshot figures */
.article .shot { margin: 1.2rem 0; }
.article .shot img { border: 1px solid var(--line); border-radius: 10px; background: #eef2f7; }
.article .shot figcaption { font-size: var(--fs-s); color: var(--muted); margin-top: .45rem; }

/* v8 market notes */
@layer components {
  .eu-note { background: var(--blue-soft); border: 1px solid var(--blue-border); border-radius: 10px; padding: .55rem .9rem; font-size: var(--fs-s); color: var(--ink-2); margin-block: .35rem .2rem; max-width: 68ch; }
  .eu-note b { font-weight: 700; font-variant-numeric: tabular-nums; }
  .eu-note .editorial-note { margin-left: .3rem; }
}

/* ---- offer table (country pages, esimcomparator-style; JS = offer_table.js enhance mode) ---- */
.ot { margin: 1.2rem 0; }
.ot-picks h3, .ot-quart h3 { margin: 0 0 .5rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint, #8a8f98); }
.ot-pick { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: baseline; padding: .7rem .9rem; background: #fff;
  border: 1px solid var(--line, #e3e6ea); border-left: 3px solid var(--brand, #12563a); border-radius: 8px; margin-bottom: .5rem; }
.ot-pick b { font-size: 1.05rem; } .ot-pick-cap { color: var(--ink-faint, #8a8f98); font-size: .78rem; flex: 1; min-width: 16rem; }
.ot-filter-cap { color: var(--ink-faint, #8a8f98); font-size: .78rem; margin: .5rem 0 .1rem; }
.ot-bar { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; padding: .6rem .7rem;
  background: #fff; border: 1px solid var(--line, #e3e6ea); border-radius: 10px; margin: .8rem 0 .4rem; }
.ot-bar select, .ot-bar input { font: inherit; font-size: .82rem; padding: 2px 6px; border: 1px solid var(--line, #e3e6ea); border-radius: 6px; background: #fff; }
.ot-bar label { display: flex; gap: .25rem; align-items: center; font-size: .78rem; color: var(--ink-faint, #8a8f98); }
.ot-provs { position: relative; } .ot-provs summary { cursor: pointer; font-size: .82rem; list-style: none; }
.ot-provs[open] { position: absolute; z-index: 5; background: #fff; border: 1px solid var(--line, #e3e6ea); border-radius: 8px; padding: .4rem .6rem; }
.ot-provs[open] div { max-height: 14rem; overflow: auto; }
.ot-prov-opt { display: block; font-size: .8rem; padding: 1px 0; }
.ot-count { color: var(--ink-faint, #8a8f98); font-size: .78rem; margin: .2rem .2rem .4rem; }
.ot-tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line, #e3e6ea); border-radius: 10px; }
table.ot-table { border-collapse: collapse; width: 100%; font-size: .84rem; }
.ot-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint, #8a8f98);
  padding: .55rem .6rem; border-bottom: 1px solid var(--line, #e3e6ea); white-space: nowrap; }
.ot-row td { padding: .5rem .6rem; border-bottom: 1px solid #eef0f2; vertical-align: middle; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ot-row:hover { background: #f6f8f9; }
.ot-prov { font-weight: 600; color: inherit; text-decoration: none; } .ot-prov:hover { text-decoration: underline; }
.ot-price s { color: var(--ink-faint, #8a8f98); font-weight: 400; margin-left: .25rem; }
.ot-approx { display: block; font-size: .68rem; color: var(--ink-faint, #8a8f98); }
.ot-chip { display: inline-block; padding: 1px .45rem; border-radius: 20px; font-size: .68rem; border: 1px solid var(--line, #e3e6ea); background: #fff; }
.ot-chip.net-owned { border-color: #bfd9cc; background: #eef7f2; color: #12563a; font-weight: 600; }
.ot-chip.net-unknown { border-style: dashed; color: var(--ink-faint, #8a8f98); }
.ot-chip.ot-5g { border-color: #bfd9cc; color: #12563a; } .ot-chip.ot-4g { color: var(--ink-faint, #8a8f98); }
.ot-chip.ot-promo b { color: inherit; cursor: copy; }
.ot-unk { color: var(--ink-faint, #8a8f98); }
.ot-btn { display: inline-block; padding: 3px .6rem; border-radius: 7px; border: 1px solid var(--brand, #12563a);
  color: #fff !important; background: var(--brand, #12563a); text-decoration: none; font-size: .75rem; white-space: nowrap; }

/* ---- OT polish v2 (laws: spacing rhythm, column discipline, one badge family) ---- */
.ot-table thead th { position: sticky; top: -1px; background: #fff; z-index: 2; }
.ot-row td { vertical-align: middle; }
.ot-vendor { display: flex; align-items: center; gap: .5rem; max-width: 13rem; }
.ot-vbadge { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--brand, #12563a); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; text-transform: uppercase; }
.ot-prov { max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; }
.ot-net .ot-chip { max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-net .ot-chip.net-unknown { border-style: dashed; }
.ot-data, .ot-validity { white-space: nowrap; }
.ot-pergb { color: var(--ink-faint, #8a8f98); }
.ot-best { display: inline-block; margin-right: .3rem; padding: 0 .4rem; border-radius: 4px; font-size: .62rem;
  text-transform: uppercase; letter-spacing: .05em; background: #eef7f2; color: #12563a; border: 1px solid #bfd9cc; }
.ot-hotspot span, .ot-hotspot { font-variant-numeric: normal; }
@media (hover: none) { .ot-cta .ot-btn { padding: 9px 12px; } }
@media (max-width: 900px) { .ot-vendor { max-width: 9rem; } .ot-prov { max-width: 6.5rem; } }

/* ---- Iris Spec 02: trend cell (pill + sparkline) on country offer tables ---- */
@layer components {
  .ot-trend { min-width: 132px; }
  .trend-cell { display: flex; align-items: center; gap: .5rem; min-width: 124px; }
  .spark { display: block; }
  .spark-sm { width: 80px; height: 24px; flex: 0 0 auto; }
  .spark polyline { transition: stroke 150ms var(--ease); }
  .trend-cell[data-state="down"] .spark-line, .trend-cell[data-state="down"] .spark-dot { stroke: var(--drop); fill: var(--drop); }
  .trend-cell[data-state="up"] .spark-line, .trend-cell[data-state="up"] .spark-dot { stroke: var(--rise); fill: var(--rise); }
  .trend-cell[data-state="flat"] .spark-line, .trend-cell[data-state="flat"] .spark-dot { stroke: var(--steady); fill: var(--steady); }
  .trend-cell[data-state="new"] .spark-dot { fill: var(--ink-faint); }
  .trend-pill {
    display: inline-flex; align-items: center; gap: .2rem;
    font-size: var(--fs-xs); font-weight: 700; white-space: nowrap;
    padding: .12rem .5rem; border-radius: 999px; border: 1px solid;
    font-variant-numeric: tabular-nums;
  }
  .trend-pill.trend-down { color: #14532d; border-color: #bbf7d0; background: #f0fdf4; }
  .trend-pill.trend-up   { color: #7f1d1d; border-color: #fecaca; background: #fef2f2; }
  .trend-pill.trend-flat { color: var(--steady); border-color: var(--line); background: var(--panel); }
  .trend-pill.trend-new  { color: var(--muted); border-color: var(--line); background: transparent; font-style: italic; }
  @media (max-width: 720px) {
    .ot-trend { min-width: 0; }
    .trend-cell { min-width: 0; }
    .trend-cell .spark-sm { display: none; }
  }
}

/* ---- Iris Spec 01: hero actionable offer row (home) ---- */
@layer components {
  .hero-offer {
    position: relative; z-index: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-l);
    padding: 1rem 1.4rem;
    display: grid; gap: .6rem;
    margin-block: 1.2rem 1rem;
    backdrop-filter: blur(8px);
  }
  .hero-offer-head { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
  .hero-offer-head .kicker { color: var(--blue-kicker); font-size: var(--fs-xs); font-weight: 720; letter-spacing: .11em; text-transform: uppercase; }
  .hero-offer-head .meta { color: var(--faint); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
  .hero-offer-body { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; color: #fff; font-size: var(--fs-l); font-weight: 700; line-height: 1.2; }
  .hero-offer-body .flag { font-size: 1.4em; line-height: 1; }
  .hero-offer-body .price { color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
  .hero-offer-body .dot { color: rgba(255, 255, 255, .4); font-weight: 400; }
  .hero-offer > .btn { justify-self: start; }
  @media (max-width: 720px) {
    .hero-offer { padding: .9rem 1rem; }
    .hero-offer-body { font-size: var(--fs-m, 1rem); }
    .hero-offer > .btn { width: 100%; justify-self: stretch; }
  }
}

/* empty state for offer tables (Iris audit 5.x) — icon-less honest empty */
@layer components {
  .ot-empty td { padding: 1.6rem 1rem; text-align: center; }
  .empty-state { display: grid; gap: .6rem; justify-items: center; color: var(--muted); }
  .empty-state p { margin: 0; font-weight: 680; color: var(--ink); }
}

/* ---- Iris Spec 03: world map (2026-12-05) ---- */
@layer components {
  .map-section { padding-block: 2.6rem 1.6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .map-head { margin-bottom: .4rem; }
  .map-section .section-title { margin-bottom: .3rem; }
  .map-section .section-sub { color: var(--muted); }
  .map-controls { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-block: 1rem .9rem; }
  .map-search-label { flex: 1 1 280px; max-width: 420px; }
  .map-search-label input { width: 100%; padding: .55rem .9rem; font-size: var(--fs-s); border: 1px solid var(--line-strong, var(--line)); border-radius: var(--r-s, 8px); }
  .map-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-left: auto; }
  .legend-item { display: inline-flex; gap: .4rem; align-items: center; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
  .legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
  .legend-dot.dot-green { background: #16a34a; }
  .legend-dot.dot-amber { background: #f59e0b; }
  .legend-dot.dot-red { background: #ef4444; }
  .map-frame { margin: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: #fafaf9; background-image: radial-gradient(circle, rgba(15, 23, 42, .04) 1px, transparent 1px); background-size: 22px 22px; overflow: hidden; }
  .world-map { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; max-height: 640px; }
  .dot { cursor: pointer; transition: transform 150ms var(--ease, 150ms); transform-box: fill-box; transform-origin: center; }
  .dot-sm { r: 4; } .dot-md { r: 7; } .dot-lg { r: 10; }
  .dot-green { fill: #16a34a; } .dot-amber { fill: #f59e0b; } .dot-red { fill: #ef4444; }
  .dot:hover, .dot:focus { transform: scale(1.5); outline: none; }
  .dot:focus-visible { stroke: #fff; stroke-width: 3; }
  .dots a { cursor: pointer; }
  .world-map.dimmed .dot { opacity: .18; }
  .world-map.dimmed .dot.match { opacity: 1; }
  .map-fallback { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
  .map-fallback summary { font-weight: 700; cursor: pointer; }
  .map-fallback-list { display: grid; gap: .4rem 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: .6rem; padding: 0; list-style: none; }
  .map-fallback-list li a { display: block; padding: .4rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink-2, var(--ink)); font-size: var(--fs-s); font-weight: 600; }
  .map-fallback-list li a:hover { background: var(--blue-soft); }
  .map-data-note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--muted); }
  @media (max-width: 720px) {
    .map-frame { max-height: 380px; }
    .map-legend { margin-left: 0; }
    .map-controls { flex-direction: column; align-items: stretch; }
  }
}

/* ---- Iris Spec 04: region tabs ---- */
@layer components {
  .regions-section { padding-block: 2.4rem; }
  .region-tabs { display: flex; gap: .35rem; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; border-bottom: 1px solid var(--line); margin-block: 1.2rem 1.1rem; }
  .region-tabs button { border: 0; background: transparent; padding: .6rem .9rem; font-weight: 700; font-size: var(--fs-s); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; flex-shrink: 0; }
  .region-tabs button:hover { color: var(--ink); }
  .region-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
  .region-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 4px; }
  .region-panel[hidden] { display: none !important; }
  @media (max-width: 720px) { .region-tabs button { padding: .5rem .7rem; font-size: var(--fs-xs); } }
}

/* ---- Iris Spec 05: price-alert capture ---- */
@layer components {
  .price-alert { display: flex; gap: 1rem; align-items: flex-start; background: var(--blue-soft); border: 1px solid var(--blue); border-left-width: 3px; border-radius: var(--r-m, 12px); padding: 1rem 1.25rem; margin-block: 1.2rem 1rem; }
  .price-alert-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
  .price-alert-body { flex: 1; min-width: 0; }
  .price-alert-head { color: var(--ink); margin-bottom: .5rem; }
  .price-alert-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
  .alert-input { flex: 1 1 220px; min-width: 180px; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: var(--r-s, 8px); font-size: var(--fs-s); font-weight: 600; background: #fff; }
  .alert-input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
  .price-alert-disclaimer { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
  .price-alert-success { font-size: var(--fs-s); color: var(--drop); font-weight: 700; margin: .4rem 0 0; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  @media (max-width: 720px) { .price-alert { flex-direction: column; gap: .5rem; padding: .9rem 1rem; } }
}

/* ---- Iris 00: sticky left-rail filters on country pages (>1100px) ---- */
@media (min-width: 1100px) {
  .ot { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 1.1rem; }
  .ot-bar { grid-column: 1; position: sticky; top: 84px; display: flex; flex-direction: column; align-items: stretch; gap: .7rem; max-height: min(80vh, 720px); overflow-y: auto; }
  .ot-bar .ot-maxprice-wrap, .ot-bar > label { width: 100%; }
  .ot-picks, .ot-count, .ot-tablewrap, .editorial-note, .ot .section-head { grid-column: 2; }
  .ot .section-head { grid-row: 1; }
  .ot-bar { grid-row: 1 / span 3; }
}

/* ---- 2026-12-05 user feedback: segmented filter chips (were unstyled text) ---- */
@layer components {
  .seg { display: inline-flex; gap: .25rem; align-items: center; padding: .3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel, #fff); flex-wrap: nowrap; }
  .seg span { display: inline-flex; align-items: center; padding: .3rem .75rem; border-radius: 999px; font-size: var(--fs-s, .85rem); font-weight: 650; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background 120ms var(--ease), color 120ms var(--ease), box-shadow 120ms var(--ease); }
  .seg span:hover { color: var(--ink); background: rgba(37, 99, 235, .08); }
  .seg span.on { background: var(--blue); color: #fff; box-shadow: 0 1px 4px rgba(37, 99, 235, .35); }
  .seg span:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
  /* left-rail variant: chips stack full-width, still pill-shaped */
  @media (min-width: 1100px) {
    .ot-bar .seg { display: table; width: 100%; }
    .ot-bar .seg span { justify-content: center; flex: 1 0 100%; }
  }
  /* dest-cards in region panels / map fallback: vertical grid, chips contained */
  .dest-card { display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; align-items: center; gap: .25rem .6rem; }
  .dest-card .flag { grid-row: 1 / span 2; font-size: 1.6rem; line-height: 1.1; }
  .dest-card .where { grid-column: 2; font-weight: 720; color: var(--ink); }
  .dest-card .chip { grid-column: 1 / -1; width: fit-content; max-width: 100%; padding: .18rem .55rem; border-radius: 999px; background: var(--blue-soft); font-size: var(--fs-xs); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dest-card .chip + .chip { background: #f1f5f9; color: var(--muted); }
}

/* ---- 2026-12-05 user feedback: the trip finder is THE hero CTA — make it dominant ---- */
@layer components {
  .hero .wizard {
    max-width: 780px;
    margin-block: 1.6rem 1.2rem;
    padding: 1.5rem 1.7rem;
    background: #fff;
    border: 2px solid var(--blue);
    border-radius: var(--r-l);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
  }
  .hero .wizard .wizard-title { font-size: var(--fs-l, 1.35rem); font-weight: 800; color: var(--ink); margin-bottom: 1rem; }
  .hero .wizard .fgroup label { font-size: var(--fs-s); font-weight: 750; color: var(--ink-2, var(--ink)); text-transform: none; letter-spacing: 0; }
  .hero .wizard .select, .hero .wizard [data-cbox] { min-height: 2.9rem; }
  .hero .wizard .wizard-row { margin-top: 1.1rem; }
  .hero .wizard .btn-light { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0 1.4rem; font-size: var(--fs-m, 1.05rem); font-weight: 750; background: var(--blue); color: #fff; border: none; border-radius: 10px; box-shadow: 0 8px 22px rgba(37, 99, 235, .35); }
  .hero .wizard .btn-light:hover { background: var(--blue-deep); }
  .hero .wizard .btn-ghostdark, .hero .wizard .wizard-note { color: var(--muted); }
  .hero .proof, .hero .subtag, .hero .hero-offer { margin-top: 1.1rem; }
  @media (max-width: 720px) {
    .hero .wizard { padding: 1.1rem 1rem; }
    .hero .wizard .btn-light { width: 100%; }
  }
}

/* ---- choropleth country map (Spec 03 v2, Catalyst 2026-12-05: hover the country) ---- */
@layer components {
  .ctries path { stroke: #94a3b8; stroke-width: .5; stroke-linejoin: round; cursor: pointer; transition: fill 120ms var(--ease), opacity 120ms var(--ease); }
  .ctry-off { fill: #e2e8f0; cursor: default; }
  .ctry-green { fill: #bbf7d0; }
  .ctry-amber { fill: #fde68a; }
  .ctry-red { fill: #fecaca; }
  .ctries a { outline: none; }
  .ctries path:hover { fill: var(--blue); stroke: #1e293b; stroke-width: .9; }
  .ctries path:focus-visible { stroke: var(--ink); stroke-width: 1.2; }
  .world-map.dimmed path { opacity: .15; }
  .world-map.dimmed path.match { opacity: 1; stroke: #1e293b; stroke-width: .8; }
}
