/* Cost of Living pages (generated by scripts/build-cost-of-living.mjs). Loaded after site.css and reuses its tokens
   (--bg, --card, --lime, --forest, --amber, --ink, --muted, --line, --radius) and components (.hero, .eyebrow, .lead,
   .head, .explore, .lime-panel, .tiles/.tile/.bar, .table-wrap, .stores, .waitlist-btn). No inline styles anywhere (CSP). */

.col { overflow-x: clip; }
.col [id] { scroll-margin-top: 84px; }
.col .hero h1 { margin-top: 18px; }
.col-muted { color: var(--muted); }
.col-note { color: var(--muted); font-size: 14.5px; margin: 16px 0 0; }
.col-link { color: var(--lime); font-weight: 700; text-decoration: none; }
.col-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.col-head { margin: 0 0 22px; }
.col-head h2 { margin-bottom: 8px; }
.col-head p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Hub hero search (ARIA 1.2 combobox, js/cost-of-living.js) ---------- */
/* The suggestion list hangs below the hero, so the hero can't clip (main.col clips the glow horizontally instead). */
.col-hero { padding-bottom: 8px; overflow: visible; }
.col-hero .wrap { z-index: 5; }
.col-search { position: relative; max-width: 560px; margin: 0 auto; text-align: start; }
.col-search__icon { position: absolute; inset-inline-start: 20px; top: 50%; transform: translateY(-50%); color: var(--lime); font-size: 22px; line-height: 1; pointer-events: none; }
.col-search__input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--card);
  border: 1px solid rgba(234, 242, 230, 0.28); border-radius: 999px; padding: 17px 22px 17px 54px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
[dir="rtl"] .col-search__input { padding: 17px 54px 17px 22px; }
.col-search__input::placeholder { color: var(--muted); }
.col-search__input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198, 239, 60, 0.25); }
.col-search__input:disabled { opacity: .75; }
.col-search__list {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 15; margin: 0; padding: 6px; list-style: none;
  max-height: min(360px, 55vh); overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  scrollbar-width: thin; scrollbar-color: rgba(198, 239, 60, .45) transparent;
}
.col-search__list[hidden] { display: none; }
.col-search__list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.col-search__list li[aria-selected="true"], .col-search__list li:hover { background: var(--lime); color: var(--on-lime); }
.col-search__list li[aria-selected="true"] .col-iso, .col-search__list li:hover .col-iso { background: var(--forest); color: var(--lime); }
.col-search__list li small { display: block; color: var(--muted); font-size: 13px; }
.col-search__list li[aria-selected="true"] small, .col-search__list li:hover small { color: rgba(20, 49, 29, 0.8); }
.col-search__list li.col-empty { cursor: default; color: var(--muted); }
.col-search__list li.col-empty:hover { background: none; color: var(--muted); }
.col-search__list mark { background: none; color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Destination cards ---------- */
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.col-card {
  display: flex; flex-direction: column; gap: 16px; height: 100%; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: border-color .15s ease, transform .15s ease;
}
.col-card:hover { border-color: var(--lime); transform: translateY(-2px); }
.col-card__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.col-card__name { flex: 1; min-width: 0; }
.col-card__name b { display: block; font-size: 19px; letter-spacing: -.3px; line-height: 1.2; overflow-wrap: anywhere; }
.col-card__name span { display: block; color: var(--muted); font-size: 14px; }
.col-iso {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: rgba(221, 164, 60, 0.18); color: var(--amber); font-weight: 900; font-size: 15px; letter-spacing: .5px;
}
.col-chip { flex: none; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--lime); border: 1px solid rgba(198, 239, 60, 0.4); padding: 4px 9px; border-radius: 999px; }
.col-card__rows { margin: 0; display: grid; gap: 10px; }
.col-card__rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.col-card__rows dt { color: var(--muted); font-size: 14px; }
.col-card__rows dd { margin: 0; text-align: end; font-weight: 800; font-size: 17px; white-space: nowrap; }
.col-card__rows dd small { display: block; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.col-card__more { margin-top: auto; color: var(--lime); font-weight: 700; font-size: 14.5px; }

/* ---------- Comparison widget ---------- */
.col-compare .head { margin-bottom: 28px; }
.col-compare__pick { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; margin-bottom: 18px; }
.col-field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 6px 4px; }
.col-select {
  width: 100%; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); background-color: var(--bg);
  border: 1px solid rgba(234, 242, 230, 0.28); border-radius: 16px; padding: 13px 40px 13px 16px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
/* Chevron drawn with borders: a data: URL would be blocked by img-src 'self'. */
.col-field { position: relative; min-width: 0; }
.col-field::after {
  content: ""; position: absolute; inset-inline-end: 18px; bottom: 22px; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(45deg);
}
[dir="rtl"] .col-select { padding: 13px 16px 13px 40px; }
.col-select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-color: var(--lime); }
.col-swap {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--lime); color: var(--on-lime);
  font: inherit; font-size: 22px; font-weight: 900; cursor: pointer; display: grid; place-items: center; transition: transform .2s ease;
}
.col-swap:hover { transform: rotate(180deg); }
.col-compare__table { background: rgba(14, 27, 18, 0.55); }
.col-compare__table th:not(:first-child), .col-compare__table td:not(:first-child) { width: 22%; }
.col-compare__table td small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.col-compare__table td b { font-weight: 800; }
.col-diff { display: inline-block; font-weight: 800; padding: 3px 10px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.col-diff.up { background: rgba(221, 164, 60, 0.18); color: var(--amber); }
.col-diff.down { background: rgba(198, 239, 60, 0.16); color: var(--lime); }
.col-diff.same { background: rgba(234, 242, 230, 0.08); color: var(--muted); }

/* ---------- All destinations (A–Z by region) ---------- */
.col-regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.col-region { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.col-region h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--lime); }
.col-region ul { margin: 0; padding: 0; list-style: none; }
.col-region a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.col-region li:first-child a { border-top: 0; }
.col-region a small { color: var(--muted); font-weight: 500; font-size: 14px; text-align: end; }
.col-region a:hover span { color: var(--lime); }

/* ---------- CTA + disclaimer ---------- */
.col-cta { text-align: center; }
.col-cta .stores { margin-top: 4px; }
.col-cta .store { background: var(--forest); border-color: transparent; color: var(--ink); }
.col-cta .waitlist-btn { box-shadow: 0 0 22px rgba(20, 49, 29, 0.35); }
.col-cta .waitlist-btn { background:
    linear-gradient(var(--forest), var(--forest)) padding-box,
    conic-gradient(from var(--wl-angle), var(--forest), #ffffff 12%, #2f9e6b 30%, var(--forest) 50%, #ffffff 62%, #2f9e6b 80%, var(--forest)) border-box; color: var(--lime); }
.col-cta .waitlist-btn:focus-visible { outline-color: var(--forest); }
.col-cta h2 em { color: var(--forest); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.col-disclaimer { margin: 56px 0 0; padding: 18px 22px; border: 1px dashed rgba(221, 164, 60, 0.5); border-radius: 18px; color: var(--muted); font-size: 14px; }
.col-disclaimer p { margin: 0; }
.col-disclaimer b { color: var(--amber); }

/* ---------- Destination page: banner ---------- */
.col-banner { text-align: start; padding: 28px 0 8px; }
.col-banner h1 { margin: 18px 0 14px; max-width: none; font-size: clamp(34px, 5.4vw, 60px); }
.col-banner .lead { margin: 0 0 24px; }
.col-crumbs { font-size: 14px; color: var(--muted); }
.col-crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.col-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.col-crumbs li + li::before { content: "/"; margin-inline: 10px; opacity: .6; }
.col-crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; padding-block: 8px; }
.col-crumbs a:hover { color: var(--lime); }
.col-crumbs [aria-current] { color: var(--ink); }
.col-banner__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-top: 26px; }
.col-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.col-badges li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; min-width: 0; }
.col-badges b { display: block; color: var(--lime); font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; letter-spacing: -.5px; line-height: 1.2; overflow-wrap: anywhere; }
.col-badges span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.col-badges__wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.col-badges .col-badges__wide b { font-size: 18px; flex: none; color: var(--amber); }
.col-badges .col-badges__wide span { margin: 0; }
.col-fx { background: var(--lime); color: var(--on-lime); border-radius: var(--radius); padding: 22px; }
.col-fx p { margin: 0; }
.col-fx__label { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; opacity: .8; }
.col-fx__code { font-size: 40px; font-weight: 900; letter-spacing: -1px; line-height: 1.1; margin-top: 6px !important; }
.col-fx__code span { font-size: 22px; opacity: .7; letter-spacing: 0; }
.col-fx__name { font-weight: 700; margin-bottom: 14px !important; }
.col-fx__rate { background: var(--forest); color: var(--ink); border-radius: 12px; padding: 9px 12px; font-weight: 700; font-size: 15px; margin-top: 8px !important; font-variant-numeric: tabular-nums; }
.col-fx__asof { font-size: 12.5px; margin-top: 12px !important; color: rgba(20, 49, 29, 0.8); }

/* ---------- Destination page: category sections ---------- */
.col-first { padding-top: 56px; }
.col-cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 12px; overflow: hidden; }
.col-cat summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; }
.col-cat summary::-webkit-details-marker { display: none; }
.col-cat summary:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; border-radius: var(--radius); }
.col-cat summary .icon { margin: 0; flex: none; }
.col-cat__title { flex: 1; min-width: 0; }
.col-cat__title h3 { margin: 0; font-size: 19px; letter-spacing: -.3px; }
.col-cat__sum { display: block; color: var(--muted); font-size: 14px; }
.col-cat__chev { flex: none; color: var(--lime); transition: transform .15s ease; }
.col-cat[open] .col-cat__chev { transform: rotate(180deg); }
.col-cat[open] summary { border-bottom: 1px solid var(--line); }
.col-prices { font-size: 15.5px; }
.col-prices th, .col-prices td { padding: 13px 22px; }
.col-prices thead th { background: var(--bg2); }
.col tbody th { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 15.5px; color: var(--ink); background: none; }
.col-prices tbody th small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.col-prices td { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-prices td:last-child { color: var(--muted); font-weight: 600; }
.col-prices th:not(:first-child), .col-prices td:not(:first-child) { width: 20%; text-align: end; }

/* Salary tiles: bar widths as classes (no style="" under the CSP), rounded to 5 %. */
.col-salary .tile b { font-size: clamp(28px, 3.4vw, 40px); overflow-wrap: anywhere; }
.bar .pct-0 { width: 0; } .bar .pct-5 { width: 5%; } .bar .pct-10 { width: 10%; } .bar .pct-15 { width: 15%; }
.bar .pct-20 { width: 20%; } .bar .pct-25 { width: 25%; } .bar .pct-30 { width: 30%; } .bar .pct-35 { width: 35%; }
.bar .pct-40 { width: 40%; } .bar .pct-45 { width: 45%; } .bar .pct-50 { width: 50%; } .bar .pct-55 { width: 55%; }
.bar .pct-60 { width: 60%; } .bar .pct-65 { width: 65%; } .bar .pct-70 { width: 70%; } .bar .pct-75 { width: 75%; }
.bar .pct-80 { width: 80%; } .bar .pct-85 { width: 85%; } .bar .pct-90 { width: 90%; } .bar .pct-95 { width: 95%; }
.bar .pct-100 { width: 100%; background: var(--amber); }

@media (max-width: 900px) {
  .col-grid, .col-regions { grid-template-columns: repeat(2, 1fr); }
  .col-banner__grid { grid-template-columns: 1fr; }
  .col-fx { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .col-fx__label, .col-fx__code, .col-fx__name, .col-fx__asof { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .col-grid, .col-regions { grid-template-columns: 1fr; }
  .col-badges { grid-template-columns: 1fr 1fr; }
  .col-badges li:first-child { grid-column: 1 / -1; }
  .col-search__input { font-size: 16px; padding-block: 15px; }
  .col-compare__pick { grid-template-columns: 1fr; }
  .col-swap { justify-self: center; width: 42px; height: 42px; transform: rotate(90deg); }
  .col-swap:hover { transform: rotate(270deg); }
  /* Phones: each comparison row becomes a mini card (category on top, then A | B | difference with their labels). */
  .col-compare__table table, .col-compare__table tbody { display: block; }
  .col-compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .col-compare__table tr { display: grid; grid-template-columns: 1fr 1fr auto; column-gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
  .col-compare__table tr:last-child { border-bottom: 0; }
  .col-compare__table tbody th { grid-column: 1 / -1; padding: 0 0 6px; border: 0; font-size: 15px; font-weight: 700; }
  .col-compare__table td, .col-compare__table td:not(:first-child) { width: auto; padding: 0; border: 0; text-align: start; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
  .col-compare__table td[colspan] { grid-column: 1 / -1; }
  .col-compare__table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .col-compare__table td:last-child { text-align: end; }
  .col-cat summary { padding: 16px; gap: 12px; }
  .col-prices th, .col-prices td { padding: 11px 10px; font-size: 14px; }
  .col-prices th:first-child, .col-prices td:first-child { padding-inline-start: 16px; }
  .col-prices tbody th { font-size: 14px; }
  .col-fx { grid-template-columns: 1fr; }
  .col-cta .store { padding: 12px 20px; gap: 12px; }
  .col-cta .store svg { width: 30px; height: 30px; }
  .col-cta .store small { font-size: 13px; }
  .col-cta .store b { font-size: 21px; }
  .col-disclaimer { margin-top: 44px; }
}
@media (max-width: 480px) { .col [id] { scroll-margin-top: 112px; } }
