/* FindLocalShops app.css: mobile-first, no external requests. Docs: site/design/README.md */

/* 1. Tokens */
:root {
  --c-bg: #f6f4ef;
  --c-card: #fff;
  --c-ink: #1a2321;
  --c-mute: #56625e;
  --c-line: #e2ddd3;
  --c-line2: #c9c2b4;
  --c-brand: #0a6652;
  --c-brand2: #074a3b;
  --c-tint: #e3f1ec;
  --c-on-brand: #fff;
  --c-acc: #b9471f;
  --c-acc-tint: #fbeee7;
  --c-today: #fff6d9;
  --c-focus: #d4691b;
  --c-ad: #f0ede6;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: .8125rem;
  --fs-sm: .9063rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.125rem, 1.07rem + .25vw, 1.25rem);
  --fs-xl: clamp(1.3rem, 1.18rem + .55vw, 1.6rem);
  --fs-2xl: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --fs-3xl: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem; --s7: 3rem;

  --r: 10px;
  --r-sm: 6px;
  --r-pill: 999px;
  --sh: 0 1px 2px rgba(26, 35, 33, .06), 0 2px 8px rgba(26, 35, 33, .05);
  --sh-lg: 0 8px 28px rgba(26, 35, 33, .16);
  --max: 75rem; /* 1200px */
  --gutter: clamp(1rem, .6rem + 1.8vw, 2rem);
  --sidebar: 20rem; /* 320px: fits a 300px ad */
  --tap: 2.75rem; /* 44px */
  --tap-s: 2.75rem; /* compact targets: 44px on touch, smaller with a mouse */
}
@media (pointer: fine) { :root { --tap-s: 2.25rem; } }

/* Dark mode: override these tokens in @media (prefers-color-scheme: dark). */

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--fs-md)/1.6 var(--font); color: var(--c-ink); background: var(--c-bg); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
@media (min-width: 64em) { body { font-size: 1.0625rem; } }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--s3); font-weight: 750; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: var(--fs-2xl); letter-spacing: -.025em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p, ul, ol, dl, table, figure { margin: 0 0 var(--s4); }
ul[class], ol[class], nav ul, nav ol { list-style: none; padding: 0; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--c-brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-brand2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.skip-link { position: absolute; left: var(--s4); top: -10rem; z-index: 100; padding: var(--s3) var(--s4); background: var(--c-ink); color: var(--c-bg); border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: var(--s3); color: var(--c-bg); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 3. Layout */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.page { padding-block: var(--s4) var(--s7); }
.layout { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
.content { min-width: 0; }
.sidebar { min-width: 0; display: flex; flex-direction: column; gap: var(--s4); }
@media (min-width: 64em) {
  .layout { grid-template-columns: minmax(0, 1fr) var(--sidebar); gap: var(--s6) var(--s7); }
}
.section { margin-block: var(--s6); }
.section-title { font-size: var(--fs-lg); margin-bottom: var(--s4); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); }
.section-title small { font-size: var(--fs-sm); font-weight: 500; color: var(--c-mute); letter-spacing: 0; }

/* 4. Header & search */
.site-header { background: var(--c-card); border-bottom: 1px solid var(--c-line); }
.site-header__inner { display: grid; align-items: center; gap: var(--s3) var(--s4); grid-template-columns: 1fr auto; grid-template-areas: "logo toggle" "search search" "nav nav"; padding-block: var(--s3); }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--c-ink); min-height: var(--tap); width: max-content; }
.logo:hover { color: var(--c-ink); }
.logo__mark { width: 2rem; height: 2rem; flex: none; }
.logo__text { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
.logo__text b { color: var(--c-brand); font-weight: 800; }
.nav-toggle { grid-area: toggle; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s3); border: 1px solid var(--c-line2); border-radius: var(--r-sm); background: var(--c-card); font-size: var(--fs-sm); font-weight: 600; }
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.no-js .nav-toggle { display: none; }
.site-nav { grid-area: nav; }
.js .site-nav:not(.is-open) { display: none; }
.site-nav__list { display: flex; flex-direction: column; margin: 0; border-top: 1px solid var(--c-line); }
.site-nav__list a { display: flex; align-items: center; min-height: var(--tap); padding: var(--s2) var(--s1); color: var(--c-ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--c-line); }
.site-nav__list a:hover, .site-nav__list a[aria-current] { color: var(--c-brand); }
.site-nav__list a[aria-current] { box-shadow: inset 3px 0 0 var(--c-brand); padding-left: var(--s3); }

@media (min-width: 48em) {
  .site-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search nav"; padding-block: var(--s3); }
  .nav-toggle, .no-js .nav-toggle { display: none; }
  .js .site-nav:not(.is-open), .site-nav { display: block; }
  .site-nav__list { flex-direction: row; gap: var(--s1); border: 0; }
  .site-nav__list a { border: 0; padding: var(--s2) var(--s3); border-radius: var(--r-sm); font-size: var(--fs-sm); }
  .site-nav__list a:hover { background: var(--c-tint); }
  .site-nav__list a[aria-current] { box-shadow: inset 0 -3px 0 var(--c-brand); padding-left: var(--s3); border-radius: 0; }
}

.search { grid-area: search; position: relative; width: 100%; max-width: 40rem; }
.search__row { display: flex; }
.search__input { flex: 1; min-width: 0; min-height: var(--tap); padding: var(--s2) var(--s4); border: 1.5px solid var(--c-line2); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--c-bg); font-size: 1rem; /* ≥16px: no iOS zoom */ }
.search__input::placeholder { color: var(--c-mute); opacity: 1; }
.search__input:focus { outline: none; border-color: var(--c-brand); background: var(--c-card); box-shadow: 0 0 0 3px var(--c-focus); }
.search__btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s4); border: 0; border-radius: 0 var(--r) var(--r) 0; background: var(--c-brand); color: var(--c-on-brand); font-weight: 650; }
.search__btn:hover { background: var(--c-brand2); }
.search__btn svg { width: 1.15rem; height: 1.15rem; }
.search__btn-text, .pagination__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 30em) { .search__btn-text, .pagination__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
.search__list { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); margin: 0; max-height: min(24rem, 70vh); overflow-y: auto; padding: var(--s1); background: var(--c-card); border: 1px solid var(--c-line2); border-radius: var(--r); box-shadow: var(--sh-lg); }
.search__list[hidden] { display: none; }
.search__option { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--tap); padding: var(--s2) var(--s3); border-radius: var(--r-sm); cursor: pointer; }
.search__option[aria-selected="true"], .search__option:hover { background: var(--c-tint); }
.search__option mark { background: none; color: inherit; font-weight: 750; }
.search__type { flex: none; font-size: var(--fs-xs); color: var(--c-mute); border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 0 var(--s2); }
.search__empty { padding: var(--s3); color: var(--c-mute); font-size: var(--fs-sm); }
.search--hero .search__input { min-height: 3.5rem; font-size: 1.0625rem; }
.search--hero .search__btn { min-height: 3.5rem; padding-inline: var(--s5); }

/* 5. Breadcrumb, pagination, A–Z */
.breadcrumb { font-size: var(--fs-sm); color: var(--c-mute); margin-bottom: var(--s3); }
.breadcrumb ol { padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: ""; width: .4em; height: .4em; margin: 0 .65em; border: solid var(--c-line2); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.breadcrumb a { color: var(--c-mute); display: inline-block; padding-block: .6rem; }
.breadcrumb a:hover { color: var(--c-brand); }
.breadcrumb [aria-current] { color: var(--c-ink); font-weight: 600; }

.pagination { margin-top: var(--s6); }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin: 0; }
.pagination li > a, .pagination li > span { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s3); border: 1px solid var(--c-line2); border-radius: var(--r-sm); background: var(--c-card); text-decoration: none; font-weight: 600; color: var(--c-ink); }
.pagination a:hover { border-color: var(--c-brand); color: var(--c-brand); }
.pagination [aria-current] { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.pagination .pagination__gap { border: 0; background: none; min-width: 1.5rem; padding: 0; color: var(--c-mute); }
.pagination .is-disabled { color: var(--c-line2); border-color: var(--c-line); }

.az-nav ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tap), 1fr)); gap: var(--s1); margin: 0; }
.az-nav a, .az-nav span { display: flex; align-items: center; justify-content: center; min-height: var(--tap); border-radius: var(--r-sm); background: var(--c-card); border: 1px solid var(--c-line); text-decoration: none; font-weight: 700; color: var(--c-ink); }
.az-nav a:hover { border-color: var(--c-brand); color: var(--c-brand); }
.az-nav [aria-current] { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.az-nav .az-nav__wide { grid-column: span 2; }

/* 6. Page head */
.page-head { margin-bottom: var(--s5); }
.page-head h1 { margin-bottom: var(--s2); }
.page-head__kicker { margin: 0 0 var(--s2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-acc); }
.lead { font-size: var(--fs-lg); color: var(--c-mute); max-width: 46rem; margin-bottom: var(--s3); line-height: 1.5; }
.note { font-size: var(--fs-sm); color: var(--c-mute); }
.disclaimer { font-size: var(--fs-sm); color: var(--c-mute); border-left: 3px solid var(--c-line2); padding: var(--s1) 0 var(--s1) var(--s4); margin-top: var(--s6); }

/* 7. Cards & lists */
/* shared surface */
.card, .shop-card, .tile, .side-block, .market-card, .steps li { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r); }
.card, .shop-card, .tile, .market-card { box-shadow: var(--sh); }
.card { padding: var(--s4); }
@media (min-width: 48em) { .card { padding: var(--s5); } }

.link-list { margin: 0; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--tap-s); padding: var(--s1) var(--s2); margin-inline: calc(var(--s2) * -1); border-radius: var(--r-sm); text-decoration: none; color: var(--c-ink); }
.link-list a:hover { background: var(--c-tint); color: var(--c-brand2); }
.link-list a[aria-current] { font-weight: 700; color: var(--c-brand2); background: var(--c-tint); }
.link-list--cols { columns: 13rem; column-gap: var(--s6); }
.link-list--cols li { break-inside: avoid; }
.link-list--more a { font-weight: 650; color: var(--c-brand); }

.region-grid { display: grid; gap: var(--s4); margin: 0; }
.region-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s3); padding-bottom: var(--s3); margin-bottom: var(--s2); border-bottom: 1px solid var(--c-line); }
.region-card__title { margin: 0; font-size: var(--fs-lg); }

.shop-list { display: grid; grid-auto-flow: dense; gap: var(--s3); margin: 0; }
@media (min-width: 40em) { .shop-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shop-list__ad { grid-column: 1 / -1; }
.shop-card { position: relative; height: 100%; display: flex; flex-direction: column; gap: var(--s1); padding: var(--s4); transition: border-color .15s, box-shadow .15s; }
.shop-card:hover { border-color: var(--c-brand); box-shadow: var(--sh-lg); }
.shop-card__title { font-size: var(--fs-lg); margin: 0; }
.shop-card__title a { color: var(--c-ink); text-decoration: none; }
.shop-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.shop-card__title a:focus-visible { outline: none; }
.shop-card__title a:focus-visible::after { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.shop-card__place { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-acc); }
.shop-card__addr { margin: 0; color: var(--c-mute); font-size: var(--fs-sm); }
.shop-card__foot { margin-top: auto; padding-top: var(--s2); display: flex; justify-content: flex-end; align-items: center; gap: var(--s2); font-size: var(--fs-sm); }
.shop-card__more { font-weight: 650; color: var(--c-brand); }
.shop-card__more::after { content: " →"; }

.tile-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin: 0; }
.tile { position: relative; display: flex; flex-direction: column; gap: var(--s1); height: 100%; padding: var(--s4); }
.tile:hover { border-color: var(--c-brand); }
.tile__title { margin: 0; font-size: var(--fs-lg); }
.tile__title a { color: var(--c-ink); text-decoration: none; }
.tile__title a::after { content: ""; position: absolute; inset: 0; }
.tile__text { margin: 0; color: var(--c-mute); font-size: var(--fs-sm); }
.tile__icon { width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c-tint); color: var(--c-brand); margin-bottom: var(--s2); }
.tile__icon svg { width: 1.4rem; height: 1.4rem; }

/* Sidebar blocks */
.side-block { padding: var(--s4); }
.side-block__title { font-size: var(--fs-md); margin: 0 0 var(--s2); display: flex; align-items: center; gap: var(--s2); }
.side-block__title svg { width: 1.1rem; height: 1.1rem; color: var(--c-acc); flex: none; }
.side-block .link-list { font-size: var(--fs-sm); }
.side-block p:last-child, .side-block ul:last-child { margin-bottom: 0; }
details.side-block { padding: 0; }
details.side-block > summary { display: flex; align-items: center; gap: var(--s2); min-height: 3.25rem; padding: var(--s2) var(--s4); list-style: none; cursor: pointer; font-weight: 750; border-radius: var(--r); }
details.side-block > summary::-webkit-details-marker { display: none; }
details.side-block > summary::after { content: ""; margin-left: auto; width: .55em; height: .55em; flex: none; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
details.side-block[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details.side-block > summary svg { width: 1.1rem; height: 1.1rem; color: var(--c-acc); flex: none; }
details.side-block > .side-block__body { padding: 0 var(--s4) var(--s4); }
details.side-block[open] > summary { border-bottom: 1px solid var(--c-line); border-radius: var(--r) var(--r) 0 0; margin-bottom: var(--s2); }

/* Brand chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s3); }
.chip { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap-s); padding: 0 var(--s3); border: 1px solid var(--c-line2); border-radius: var(--r-pill); background: var(--c-card); color: var(--c-ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 550; line-height: 1.2; }
.chip:hover { border-color: var(--c-brand); color: var(--c-brand2); background: var(--c-tint); }
.chip-more > summary { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s4); border-radius: var(--r-pill); background: var(--c-tint); color: var(--c-brand2); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; list-style: none; }
.chip-more > summary::-webkit-details-marker { display: none; }
.chip-more > summary::after { content: "+"; font-size: 1.2em; line-height: 1; }
.chip-more[open] > summary::after { content: "−"; }
.chip-more__open, .chip-more[open] .chip-more__closed { display: none; }
.chip-more[open] .chip-more__open { display: inline; }
.chip-more[open] > summary { margin-bottom: var(--s3); }
.chip-more[open] .chip-grid { margin-bottom: 0; }

/* Brand index (A–Z pages, 300 per page) */
.brand-index { columns: 11rem; column-gap: var(--s5); margin: 0; font-size: var(--fs-sm); }
.brand-index li { break-inside: avoid; }
.brand-index a { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: var(--tap-s); padding: 0 var(--s2); margin-inline: calc(var(--s2) * -1); border-radius: var(--r-sm); color: var(--c-ink); text-decoration: none; }
.brand-index a:hover { background: var(--c-tint); }

/* Related shops */
.related { margin-top: var(--s7); }
.related .shop-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.related .shop-card { padding: var(--s3) var(--s4); }
.related .shop-card__title { font-size: var(--fs-md); }

/* 8. Shop detail */
.tag { display: inline-flex; align-items: center; padding: .1rem .6rem; border-radius: var(--r-pill); background: var(--c-acc-tint); color: var(--c-acc); font-size: var(--fs-xs); font-weight: 700; }
.shop-grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48em) { .shop-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .shop-grid > .card--wide { grid-column: 1 / -1; } }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1) var(--s4); margin: 0 0 var(--s4); }
.facts dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-mute); margin-top: var(--s3); }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0; }
.facts dd a { display: inline; padding-block: .85rem; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (min-width: 30em) {
  .facts { grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; }
  .facts dt, .facts dt:first-child { margin-top: 0; padding-top: .55rem; }
  .facts dd { padding-top: .35rem; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s5); border-radius: var(--r); border: 1.5px solid var(--c-brand); background: var(--c-card); color: var(--c-brand); font-weight: 700; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--c-tint); color: var(--c-brand2); text-decoration: none; }
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn--primary { background: var(--c-brand); color: var(--c-on-brand); }
.btn--primary:hover { background: var(--c-brand2); border-color: var(--c-brand2); color: var(--c-on-brand); }

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 0; }
.hours caption { text-align: left; font-weight: 750; font-size: var(--fs-lg); margin-bottom: var(--s2); }
.hours th, .hours td { text-align: left; padding: .55rem var(--s2); border-bottom: 1px solid var(--c-line); }
.hours th { font-weight: 600; width: 55%; }
.hours tr:last-child > * { border-bottom: 0; }
.hours .is-closed td { color: var(--c-mute); }
.hours .is-today > * { background: var(--c-today); font-weight: 750; }
.hours .is-today th::after { content: attr(data-today); margin-left: var(--s2); font-size: var(--fs-xs); font-weight: 700; color: var(--c-acc); }

.map { position: relative; display: grid; place-items: center; text-align: center; gap: var(--s2); width: 100%; aspect-ratio: 1; padding: var(--s4); border-radius: var(--r); overflow: hidden; border: 1px solid var(--c-line); background: linear-gradient(90deg, var(--c-line) 1px, transparent 1px) 0 0 / 2rem 2rem, linear-gradient(var(--c-line) 1px, transparent 1px) 0 0 / 2rem 2rem, var(--c-bg); }
@media (min-width: 48em) { .map { aspect-ratio: 16 / 9; } }
.map__inner { display: grid; justify-items: center; gap: var(--s2); max-width: 22rem; background: var(--c-card); padding: var(--s4); border-radius: var(--r); box-shadow: var(--sh); }
.map__pin { width: 2rem; height: 2rem; color: var(--c-acc); }
.map__note { margin: 0; font-size: var(--fs-xs); color: var(--c-mute); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-loaded { padding: 0; }

/* 9. Ad slots (fixed reservation = no CLS) */
.ad-slot { --ad-h: 100px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: calc(var(--ad-h) + 1.25rem); margin-block: var(--s4); background: var(--c-ad); border-radius: var(--r-sm); overflow: hidden; contain: layout; }
.ad-slot__label { position: absolute; top: 0; left: 0; padding: 0 var(--s2); line-height: 1.25rem; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-mute); }
.ad-slot__inner { width: 100%; min-height: var(--ad-h); margin-top: 1.25rem; display: flex; justify-content: center; }
.ad-slot__inner > * { max-width: 100%; }
.ad-slot--top, .ad-slot--pdp-top, .ad-slot--footer { --ad-h: 100px; }
.ad-slot--in-list, .ad-slot--pdp-bottom, .ad-slot--sidebar { --ad-h: 280px; }
.ad-slot--top { margin-block: var(--s3) 0; }
.ad-slot--in-list { margin: 0; }
.ad-slot--sidebar { margin: 0; }
@media (min-width: 48em) {
  .ad-slot--top, .ad-slot--pdp-top, .ad-slot--footer { --ad-h: 90px; }
  .ad-slot--in-list, .ad-slot--pdp-bottom { --ad-h: 250px; }
}
@media (min-width: 64em) {
  .ad-slot--sidebar { --ad-h: 600px; position: sticky; top: var(--s4); }
}

/* 10. Footer & consent */
.site-footer { background: #13201d; color: #d5ddda; padding-block: var(--s7) var(--s5); font-size: var(--fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; gap: var(--s6); }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: #9fb3ad; margin-bottom: var(--s3); }
.site-footer .logo { color: #fff; }
.site-footer .logo__text b { color: #7fd8bd; }
.site-footer ul { margin: 0; }
.site-footer li a, .site-footer .link-btn { display: inline-flex; align-items: center; min-height: var(--tap-s); }
.site-footer__legal { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid #2c3d39; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); color: #9fb3ad; }
.site-footer :focus-visible { outline-color: #f5a25d; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.site-footer .link-btn { color: #fff; text-decoration: none; }

.consent-root:empty { display: none; }

/* 11. Special pages */
.hero { padding-block: var(--s6) var(--s5); }
.hero h1 { font-size: var(--fs-3xl); max-width: 18ch; margin-bottom: var(--s3); }
.hero h1 em { font-style: normal; color: var(--c-brand); }
.hero .lead { margin-bottom: var(--s5); }
.hero .search { max-width: 44rem; }
.hero__hints { margin: var(--s3) 0 0; font-size: var(--fs-sm); color: var(--c-mute); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.steps { counter-reset: step; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; }
.steps li { counter-increment: step; position: relative; padding: var(--s4) var(--s4) var(--s4) 3.5rem; }
.steps li::before { content: counter(step); position: absolute; left: var(--s4); top: var(--s4); width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--c-acc); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); }
.steps strong { display: block; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: var(--s6); }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s1); }
.placeholder { background: var(--c-acc-tint); color: var(--c-acc); padding: 0 .3em; border-radius: 3px; font-family: var(--font-mono); font-size: .9em; }

.results-group .link-list a small { color: var(--c-mute); font-size: var(--fs-xs); margin-left: auto; flex: none; white-space: nowrap; }
.results-group mark { background: var(--c-tint); color: inherit; font-weight: 700; }

.error-page { text-align: center; padding-block: var(--s7); max-width: 40rem; margin-inline: auto; }
.error-page__code { font-size: clamp(4rem, 2rem + 10vw, 8rem); font-weight: 850; line-height: 1; letter-spacing: -.05em; color: var(--c-brand); margin: 0 0 var(--s3); }
.error-page .search { margin: var(--s5) auto; }
.error-page .chip-grid { justify-content: center; }

.market-head { text-align: center; padding-block: var(--s7) var(--s5); }
.market-head .logo { margin-inline: auto; }
.market-head .logo__mark { width: 3rem; height: 3rem; }
.market-head .logo__text { font-size: var(--fs-2xl); }
.market-head .lead { margin-inline: auto; }
.market-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); margin: 0; }
.market-card { position: relative; display: flex; align-items: center; gap: var(--s3); padding: var(--s4); }
.market-card__flag { flex: none; width: 2.5rem; height: 1.75rem; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--c-line); }
.market-card__flag svg { display: block; width: 100%; height: 100%; }
.market-card__name { margin: 0; font-size: var(--fs-lg); }
.market-card__name a { color: var(--c-ink); text-decoration: none; }
.market-card__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.market-card__host { margin: 0; font-size: var(--fs-sm); color: var(--c-mute); }
.market-card--active { border: 2px solid var(--c-brand); }
.market-card--active:hover { box-shadow: var(--sh-lg); }
.market-card--soon { background: transparent; box-shadow: none; border-style: dashed; }
.market-card__badge { margin-left: auto; flex: none; }

/* 12. Utilities */
.mb-0 { margin-bottom: 0; }
/* 12. QA fixes (docs/09) */
@media (min-width: 48em) and (max-width: 63.99em) {
  .site-header__inner { grid-template-columns: auto 1fr; grid-template-areas: "logo nav" "search search"; }
  .site-nav { justify-self: end; }
}
.hero__hints a, .section-title small a { display: inline-flex; align-items: center; min-height: var(--tap-s); }
.region-card__title a { display: inline-block; padding-block: .75rem; }
.chip-more .chip-grid { max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.content > .search + .lead { margin-top: var(--s4); }
.card > .section:first-child { margin-top: 0; }
.card > .section:last-child { margin-bottom: 0; }
.site-footer__legal--solo { margin-top: 0; border-top: 0; padding-top: 0; }
.search__input::-webkit-search-cancel-button { filter: grayscale(1); }

@media print {
  .site-header .search, .nav-toggle, .site-nav, .ad-slot, .consent-root, .map, .sidebar { display: none !important; }
  body { background: #fff; color: #000; }
  .layout { display: block; }
}
