/* 1Kids.uz base: reset, layout, type, components. Mobile first, needs tokens.css loaded first
   Copied by the build as is. Class names are the contract (README.md), keep them stable
   Breakpoints: 600 (sm), 768 (md), 1024 (lg), 1200 (xl), the same numbers as --bp-* in tokens.css */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 12px;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  font-synthesis: style;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (min-width: 1024px) {
  html { scroll-padding-top: calc(var(--header-h) + 16px); }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -200px; z-index: 100;
  padding: 12px 16px;
  border-radius: var(--r-m);
  background: var(--c-surface); color: var(--c-ink);
  box-shadow: var(--shadow-menu);
  font-weight: var(--fw-semibold);
}
.skip-link:focus { top: 12px; }
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.nowrap { white-space: nowrap; }

/* ---------- Icons (sprite: icons.svg) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; stroke-width: 2; }
.icon-lg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: var(--r-m);
  font-size: 0.9375rem; line-height: 1.2; font-weight: var(--fw-strong);
  text-align: center; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn > .icon { margin-left: -3px; }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { background: var(--c-primary-hover); }
.btn-secondary { background: var(--c-surface); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.btn-secondary:hover { background: var(--c-bg-soft); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: var(--z-header); background: var(--c-bg); }
.site-header-inner { display: flex; align-items: center; gap: 4px; height: var(--header-h); }
/* Logo: the site's horizontal lockup (design/logo/final/svg), the sprite symbol #logo. The blades and wordmark in brand
   colour take currentColor (--c-brand), the accent blades the inherited fill (--c-soon): the dark theme follows the
   tokens with no second file. 24 px tall on phones, 28 from 600, 32 from 1024; clear space on the right */
.logo {
  display: inline-flex; align-items: center; flex: none;
  min-height: var(--tap); margin-right: 8px;
  color: var(--c-brand);
}
.logo-svg { display: block; width: auto; height: 24px; fill: var(--c-soon); }
@media (min-width: 600px) {
  .logo-svg { height: 28px; }
}
.city {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  min-height: var(--tap); padding: 0 6px 0 12px;
  font-size: 0.9375rem; font-weight: var(--fw-semibold); white-space: nowrap;
}
.city::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 1px; background: var(--c-line-strong); }
.city > .icon { width: 18px; height: 18px; color: var(--c-ink-2); }
.header-end { display: flex; align-items: center; gap: 4px; margin-left: auto; }

/* Language menu: the site's languages as a disclosure (details + summary), works without JS; site.js closes it like
   the menu. The summary is a pill with the current language's short name (Рус, Oʻzb, Eng, Қаз; a globe from 1024),
   the panel lists the native names in selector order, each the same page in that language, the current one checked.
   Phones: a full-width panel under the header like the city menu; desktop: a dropdown under the pill, right-aligned */
.lang-menu { flex: none; }
.lang-btn {
  position: relative; display: inline-flex; align-items: center; gap: 2px;
  height: 32px; padding: 0 6px 0 10px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
  font-size: 0.8125rem; line-height: 1; font-weight: var(--fw-strong); white-space: nowrap;
  transition: box-shadow var(--dur) var(--ease);
}
.lang-btn::before { content: ""; position: absolute; inset: -6px -2px; }   /* a 44 px tall target */
.lang-btn:hover, .lang-menu[open] > .lang-btn { box-shadow: inset 0 0 0 1px var(--c-ink); }
.lang-globe { display: none; }
.lang-chevron { color: var(--c-ink-2); transition: transform var(--dur) var(--ease); }
.lang-menu[open] .lang-chevron { transform: rotate(180deg); }
.lang-menu[open]::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 200vh;
  background: var(--c-backdrop);
}
.lang-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 0 var(--pad) 12px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  box-shadow: var(--shadow-menu);
}
.lang-panel-title { padding: 14px 0 4px; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-semibold); }
.lang-link {
  position: relative; display: flex; align-items: center;
  min-height: 52px; padding-left: 28px;
  border-bottom: 1px solid var(--c-line);
  font-size: 1.0625rem; font-weight: var(--fw-semibold);
}
.lang-list > li:last-child .lang-link { border-bottom: 0; }
.lang-link > .icon { position: absolute; left: 0; top: 50%; margin-top: -8px; color: var(--c-brand); stroke-width: 2.4; }
.lang-link:hover { color: var(--c-brand); }

/* Menu: details + summary, works without JS. site.js closes it on Escape, outside click and link click */
.menu-btn {
  display: grid; place-items: center;
  width: var(--tap); height: var(--tap); margin-right: -10px;
  border-radius: var(--r-pill);
}
.menu-btn .icon { width: 24px; height: 24px; stroke-width: 2; }
.menu-btn .icon-close, .menu[open] .menu-btn .icon-open { display: none; }
.menu[open] .menu-btn .icon-close { display: block; }
.menu[open]::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 200vh;
  background: var(--c-backdrop);
}
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 4px var(--pad) 20px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  box-shadow: var(--shadow-menu);
}
.menu-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid var(--c-line);
  font-size: 1.0625rem; font-weight: var(--fw-semibold);
}
.menu-link > .icon { color: var(--c-ink-3); }
.menu-link-cta { color: var(--c-brand); border-bottom: 0; }
.site-nav { display: none; }

@media (min-width: 1024px) {
  .site-header { position: sticky; top: 0; box-shadow: 0 1px 0 var(--c-line); }
  .logo { margin-right: 12px; }
  .logo-svg { height: 32px; }
  .menu { display: none; }
  .lang-menu { position: relative; }
  .lang-menu[open]::before { display: none; }
  .lang-btn { height: 40px; padding: 0 10px 0 12px; font-size: 0.875rem; }   /* the height of .header-cta */
  .lang-globe { display: block; width: 18px; height: 18px; margin-right: 4px; color: var(--c-ink-2); }
  .lang-panel {
    left: auto; top: calc(100% + 6px);
    width: 220px; padding: 4px 16px;
    border-top: 0; border-radius: var(--r-l);
  }
  .lang-panel-title { padding-top: 10px; }
  .lang-link { min-height: 46px; font-size: 0.9375rem; }
  .site-nav { display: flex; align-items: center; gap: 2px; margin-left: 20px; }
  .site-nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: var(--tap); padding: 0 12px;
    border-radius: var(--r-pill);
    color: var(--c-ink-2);
    font-size: 0.9375rem; font-weight: var(--fw-semibold); white-space: nowrap;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .site-nav-link:hover { color: var(--c-ink); background: var(--c-bg-soft); }
  .header-end { gap: 12px; }
  .header-cta { min-height: 40px; padding: 0 14px; font-size: 0.875rem; }
}
@media (max-width: 1023.98px) {
  .header-cta { display: none; }
}
/* 1024-1199: the desktop row (lockup, city, five nav links with the blog, button, language) is full: the lockup at
   28 px, no globe on the pill, nav links a little closer, so the city label keeps its name */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .logo-svg { height: 28px; }
  .lang-globe { display: none; }
  .site-nav { margin-left: 12px; }
  .site-nav-link { padding: 0 9px; }
}

/* City menu: the header city label as a disclosure once two or more cities have pages (README block 1). Works without
   JS; site.js closes it like the menu. Phones: a full-width panel under the header; desktop: a dropdown under the label */
/* The one flexible item of the header row: a long city name ends in an ellipsis instead of pushing the row wider */
.city-menu { flex: 0 1 auto; min-width: 0; }
.city-menu > .city { display: flex; max-width: 100%; cursor: pointer; padding-right: 2px; transition: color var(--dur) var(--ease); }
.city-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.city-menu > .city:hover { color: var(--c-brand); }
.city-chevron { margin-left: 1px; color: var(--c-ink-2); transition: transform var(--dur) var(--ease); }
.city-menu[open] .city-chevron { transform: rotate(180deg); }
.city-menu[open]::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 200vh;
  background: var(--c-backdrop);
}
/* 360-399 px phones: the row is full at 360 (logo, city, language pill, menu). A few px from the gaps, the logo's
   margin and the pill, and no pin (the chevron says it is a control); under 375 the lockup is 22 px tall (its x-height
   that of the old 23 px wordmark), so Ташкент, Самарканд and Samarqand show whole at 360 */
@media (max-width: 399.98px) {
  .site-header-inner { gap: 2px; }
  .logo { margin-right: 4px; }
  .city-pin { display: none; }
  .city-menu > .city { padding-left: 9px; }
  .lang-btn { padding: 0 4px 0 8px; }
}
@media (max-width: 374.98px) {
  .logo-svg { height: 22px; }
  .header-end { gap: 2px; }
  .lang-btn { padding: 0 3px 0 7px; }
}
.city-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 0 var(--pad) 12px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  box-shadow: var(--shadow-menu);
}
.city-panel-title { padding: 14px 0 4px; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-semibold); }
.city-link {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding-left: 28px;
  border-bottom: 1px solid var(--c-line);
  font-size: 1.0625rem; font-weight: var(--fw-semibold);
}
.city-list > li:last-child .city-link { border-bottom: 0; }
.city-link > .icon { position: absolute; left: 0; top: 50%; margin-top: -8px; color: var(--c-brand); stroke-width: 2.4; }
.city-link-name { flex: 1; min-width: 0; }
.city-link-count { flex: none; color: var(--c-ink-3); font-size: var(--fs-small); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.city-link:hover .city-link-name { color: var(--c-brand); }
@media (min-width: 1024px) {
  .city-menu { position: relative; }
  .city-menu[open]::before { display: none; }
  .city-panel {
    right: auto; top: calc(100% + 6px);
    width: 300px; padding: 4px 16px;
    border-top: 0; border-radius: var(--r-l);
  }
  .city-panel-title { padding-top: 10px; }
  .city-link { min-height: 46px; font-size: 0.9375rem; }
}

/* ---------- Hero: h1, answer lead, updated date ---------- */
.hero { padding-top: 6px; padding-bottom: 20px; }
.hero-title {
  max-width: 15em;
  font-size: var(--fs-display); line-height: var(--lh-display);
  font-weight: var(--fw-display); letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.hero-lead {
  max-width: 38em; margin-top: 12px;
  color: var(--c-ink-2);
  font-size: var(--fs-lead); line-height: var(--lh-lead);
  text-wrap: pretty;
}
.hero-lead b { color: var(--c-ink); font-weight: var(--fw-strong); }
.hero-meta { margin-top: 10px; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); }
@media (min-width: 1024px) {
  .hero { padding-top: 36px; padding-bottom: 28px; }
  .hero-title { max-width: 22em; }
  .hero-lead { max-width: 44em; margin-top: 14px; }
  .hero-meta { margin-top: 14px; }
}

/* ---------- Search ---------- */
.search-box {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--c-surface);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-l);
}
.search-q {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 0 16px;
  border-bottom: 1px solid var(--c-line);
  cursor: text;
}
.search-q > .icon { width: 22px; height: 22px; stroke-width: 2; }
.search-field { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.search-label {
  color: var(--c-ink-2);
  font-size: var(--fs-micro); line-height: var(--lh-micro); font-weight: var(--fw-medium);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-input {
  width: 100%; height: 26px; margin: 1px 0 0; padding: 0;
  border: 0; border-radius: 0; outline: 0;
  background: transparent; color: var(--c-ink);
  font-size: 1rem; line-height: 26px;
  text-overflow: ellipsis;
  -webkit-appearance: none; appearance: none;
}
.search-input::placeholder { color: var(--c-ink-3); opacity: 1; }
.search-input::-webkit-search-cancel-button, .search-input::-webkit-search-decoration { -webkit-appearance: none; }
.search-opt { position: relative; min-width: 0; min-height: 62px; }
.search-opt + .search-opt { border-left: 1px solid var(--c-line); }
.search-opt > .search-label { position: absolute; top: 11px; left: 16px; right: 26px; pointer-events: none; }
.search-select {
  position: absolute; inset: 0;
  width: 100%; height: 100%; margin: 0; padding: 27px 28px 9px 16px;
  border: 0; border-radius: 0;
  background: transparent; color: var(--c-ink);
  font-size: 0.875rem; line-height: 20px; font-weight: var(--fw-semibold);
  white-space: nowrap; text-overflow: ellipsis;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
.search-select:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -5px; border-radius: 12px; }
.search-select option { color: var(--c-ink); background: var(--c-surface); font-weight: var(--fw-regular); }
.search-opt > .icon { position: absolute; right: 8px; bottom: 14px; color: var(--c-ink-2); pointer-events: none; }
.search-go { grid-column: 1 / -1; min-height: 50px; margin: 0 6px 6px; padding: 0 18px; border-radius: var(--r-s); }
.search-go > .icon { stroke-width: 2.1; }
@media (min-width: 600px) {
  .search-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .search-go { grid-column: auto; align-self: center; min-height: 48px; margin: 0 7px 0 4px; }
}
.search-box:focus-within { border-color: var(--c-brand); box-shadow: 0 0 0 1px var(--c-brand); }

/* Quick links under the search */
.quick {
  display: flex; gap: 8px;
  margin: 8px calc(-1 * var(--pad)) 0; padding: 0 var(--pad);
  overflow-x: auto; scrollbar-width: none;
}
.quick::-webkit-scrollbar { display: none; }
.quick > li { flex: none; }
.chip { display: inline-flex; align-items: center; min-height: var(--tap); }
.chip-in {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
  font-size: 0.875rem; font-weight: var(--fw-medium); white-space: nowrap;
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.chip:hover .chip-in { box-shadow: inset 0 0 0 1px var(--c-ink); }
.chip:focus-visible { outline: 0; }
.chip:focus-visible .chip-in { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.chip-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c-open); }

@media (min-width: 1024px) {
  .search-box {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    box-shadow: var(--shadow-search);
  }
  .search-q { grid-column: auto; min-height: 72px; padding: 0 20px; border-bottom: 0; border-right: 1px solid var(--c-line); }
  .search-label { font-size: var(--fs-caption); line-height: var(--lh-caption); }
  .search-input { font-size: 1.0625rem; }
  .search-opt { min-height: 72px; }
  .search-opt + .search-opt { border-left: 1px solid var(--c-line); }
  .search-opt > .search-label { top: 14px; left: 20px; }
  .search-select { padding: 31px 34px 11px 20px; font-size: 0.9375rem; }
  .search-opt > .icon { right: 14px; bottom: 15px; }
  .search-go { min-height: 54px; margin: 0 8px 0 10px; padding: 0 24px 0 20px; font-size: 1rem; }
  .search-box:focus-within { box-shadow: 0 0 0 1px var(--c-brand), var(--shadow-search); }
  .quick { flex-wrap: wrap; margin: 12px 0 0; padding: 0; overflow: visible; column-gap: 10px; }
}

/* ---------- Section frame ---------- */
.section { margin-top: var(--section); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title tools" "sub sub";
  align-items: end; column-gap: 16px;
  margin-bottom: 16px;
}
.section-head:has(.section-sub) { grid-template-areas: "title title" "sub tools"; }
.section-title {
  grid-area: title;
  font-size: var(--fs-title-l); line-height: var(--lh-title-l);
  font-weight: var(--fw-display); letter-spacing: var(--ls-title);
  text-wrap: balance;
}
.section-sub { grid-area: sub; margin-top: 4px; color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); text-wrap: pretty; }
.section-tools { grid-area: tools; display: flex; align-items: center; gap: 12px; }
.more {
  display: inline-flex; align-items: center; gap: 1px;
  min-height: var(--tap); margin: -10px -6px -10px 0; padding: 0 4px 0 8px;
  border-radius: var(--r-s);
  color: var(--c-brand);
  font-size: var(--fs-small); font-weight: var(--fw-strong); white-space: nowrap;
}
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.rail-nav { display: none; gap: 8px; }
.rail-btn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-surface); color: var(--c-ink);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
  transition: box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.rail-btn::before { content: ""; position: absolute; inset: -2px; }
.rail-btn:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--c-ink); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
@media (min-width: 1024px) {
  .section-head, .section-head:has(.section-sub) { grid-template-areas: "title tools" "sub tools"; margin-bottom: 20px; }
  .section-sub { font-size: 0.9375rem; line-height: 1.375rem; }
  .more { font-size: 0.9375rem; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .js .rail-nav { display: flex; }
}

/* ---------- Rail: horizontal list with snap, bleeds to the screen edge on phones and tablets ---------- */
.rail {
  --rail-item: min(300px, calc(100vw - 2 * var(--pad) - 48px));
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--rail-item);
  gap: var(--gap);
  margin: -4px calc(-1 * var(--pad)) -10px;
  padding: 4px var(--pad) 10px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { min-width: 0; scroll-snap-align: start; }
@media (min-width: 600px) {
  .rail { --rail-item: calc((100vw - 2 * var(--pad) - 2 * var(--gap)) / 2.4); }
}
@media (min-width: 1024px) {
  .rail {
    --rail-item: calc((100% - 2 * var(--gap)) / 3);
    margin-inline: -6px; padding-inline: 6px; scroll-padding-inline: 6px;
  }
}
@media (min-width: 1200px) {
  .rail { --rail-item: calc((100% - 3 * var(--gap)) / 4); }
}
/* No JS on a mouse: show a thin scrollbar so the rail can be scrolled. With JS the arrows do it */
@media (hover: hover) and (pointer: fine) {
  html:not(.js) .rail { scrollbar-width: thin; scrollbar-color: var(--c-line-strong) transparent; padding-bottom: 16px; }
}

/* ---------- Categories ---------- */
.cats { margin-top: 16px; }
/* 96 px fits the longest names (Робототехника 99 px at 13 px semibold: 3 px into the gap at most, never split).
   Each tile is a subgrid of three rows (photo, name, count), so the counts of a row line up under the tallest name */
.cats-list { --rail-item: 96px; grid-template-rows: repeat(3, auto); gap: 0 12px; }
.cats-list > li, .cat { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.cat { border-radius: var(--r-m); }
.cat-media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-m);
  background: var(--c-sunken);
}
.cat-media > picture, .card-media > picture, .set-media > picture, .listing-media > picture, .gallery-link > picture { display: contents; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.cat-media::after, .card-media::after, .set-media::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--c-img-edge);
  pointer-events: none;
}
.cat-media.is-empty { display: grid; place-items: center; color: var(--c-ink-3); }
.cat-name {
  min-height: 32px; margin-top: 8px;
  font-size: var(--fs-caption); line-height: 1rem; font-weight: var(--fw-semibold);
  overflow-wrap: normal; hyphens: auto;   /* a word too long for the tile hyphenates where the browser can, never breaks mid-word */
}
.cat-count { margin-top: 2px; color: var(--c-ink-3); font-size: var(--fs-micro); line-height: var(--lh-micro); }
.cat:hover .cat-name { color: var(--c-brand); }
.cat:focus-visible { outline-offset: 4px; }
@supports (grid-template-rows: subgrid) {
  .cat-name { min-height: 0; }
}
@media (min-width: 1024px) {
  .cats { margin-top: 28px; }
  /* Eight per row: 107 px tiles at 1024, 140 px from 1200. 15 categories read as two even rows (8 + 7) */
  .cats-list {
    grid-auto-flow: row; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: none;
    gap: 0 12px;
    margin: 0 0 -20px; padding: 0; overflow: visible;
  }
  .cats-list > li { margin-bottom: 20px; }
  .cat-name { font-size: 0.875rem; line-height: 1.125rem; }
}

/* ---------- Place card ---------- */
.card { position: relative; display: flex; flex-direction: column; height: 100%; }
.card-media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-l);
  background: var(--c-sunken);
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus, 50% 50%);
  transition: transform 500ms var(--ease);
}
.card-noimg {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--c-ink-3);
  font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-medium);
}
.card-noimg > .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 12px; }
.card-title {
  font-size: var(--fs-title-s); line-height: var(--lh-title-s);
  font-weight: var(--fw-strong); letter-spacing: var(--ls-tight);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-l); }
.card-link:focus-visible { outline: 0; }
.card-link:focus-visible::after { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.card-meta {
  margin-top: 2px;
  color: var(--c-ink-2);
  font-size: var(--fs-small); line-height: var(--lh-small);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-rating {
  display: flex; align-items: center;
  margin-top: 2px;
  color: var(--c-ink-2);
  font-size: var(--fs-small); line-height: var(--lh-small);
  white-space: nowrap;
}
.card-rating > .icon { width: 15px; height: 15px; margin: 0 4px 1px 0; color: var(--c-star); }
.card-rating b { color: var(--c-ink); font-weight: var(--fw-strong); }
.card-reviews::before { content: "·"; margin: 0 6px 0 5px; }
/* Foot sits at the bottom so ages and prices line up across a rail. The hairline is drawn 10 px into its padding */
.card-foot {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 21px;
  background: linear-gradient(var(--c-line), var(--c-line)) 0 10px / 100% 1px no-repeat;
}
.card-age {
  display: inline-flex; align-items: center; flex: none;
  height: 26px; padding: 0 9px;
  border-radius: var(--r-xs);
  background: var(--c-bg-soft);
  font-size: var(--fs-caption); line-height: 1; font-weight: var(--fw-strong); white-space: nowrap;
}
.card-price { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; margin-left: auto; text-align: right; }
.card-price-value { font-size: 1rem; line-height: 1.25rem; font-weight: var(--fw-bold); letter-spacing: -0.005em; white-space: nowrap; }
.card-price-from { font-weight: var(--fw-medium); }
.card-price-unit {
  margin-top: 1px;
  color: var(--c-ink-2);
  font-size: var(--fs-caption); line-height: var(--lh-caption);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (hover: hover) {
  .card:hover .card-img, .set:hover .set-media img { transform: scale(1.03); }
  .card:hover .card-title, .set:hover .set-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
}

/* Status pill over the photo. No JS: hours text with a clock. site.js sets data-state and the status text */
.status, .set-count {
  position: absolute; z-index: 2; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: calc(100% - 20px); height: 28px; padding: 0 10px 0 8px;
  border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-ink);
  box-shadow: var(--shadow-pill);
  font-size: 0.78125rem; line-height: 1; font-weight: var(--fw-semibold);
  white-space: nowrap;
  pointer-events: none;
}
.status > .icon { width: 15px; height: 15px; stroke-width: 2; color: var(--c-ink-2); }
.status-text { overflow: hidden; text-overflow: ellipsis; }
.status[data-state] { padding-left: 10px; }
.status[data-state]::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-open); }
.status[data-state] > .icon { display: none; }
.status[data-state="soon"]::before { background: var(--c-soon); }
.status[data-state="closed"] { color: var(--c-ink-2); }
.status[data-state="closed"]::before { background: var(--c-closed); }
.set-count { padding: 0 10px; }

/* ---------- Collections ---------- */
.sets { --rail-item: min(280px, calc(100vw - 2 * var(--pad) - 64px)); }
.set { position: relative; display: flex; flex-direction: column; height: 100%; }
.set-media {
  position: relative; overflow: hidden;
  aspect-ratio: var(--set-ratio, 4 / 3);
  border-radius: var(--r-l);
  background: var(--c-sunken);
}
.set-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 500ms var(--ease); }
.set-title {
  margin-top: 12px;
  font-size: var(--fs-title-s); line-height: var(--lh-title-s);
  font-weight: var(--fw-strong); letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
.set-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-l); }
.set-link:focus-visible { outline: 0; }
.set-link:focus-visible::after { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.set-text {
  margin-top: 3px;
  color: var(--c-ink-2);
  font-size: var(--fs-small); line-height: var(--lh-small);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 600px) {
  .sets { --rail-item: calc((100vw - 2 * var(--pad) - 2 * var(--gap)) / 2.4); }
}
@media (min-width: 1024px) {
  /* Grid instead of a rail. 2 big + 3 for five items, 2 + 2 for four, otherwise three per row */
  .sets {
    grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 32px var(--gap);
    margin: 0; padding: 0; overflow: visible;
  }
  .sets > li { grid-column: span 2; }
  .sets > li:first-child:nth-last-child(5),
  .sets > li:first-child:nth-last-child(5) + li,
  .sets > li:first-child:nth-last-child(4),
  .sets > li:first-child:nth-last-child(4) ~ li,
  .sets > li:first-child:nth-last-child(2),
  .sets > li:first-child:nth-last-child(2) ~ li,
  .sets > li:only-child { grid-column: span 3; --set-ratio: 2 / 1; }
  .sets > li { --set-ratio: 3 / 2; }
  .set-title { margin-top: 14px; font-size: 1.1875rem; line-height: 1.5rem; }
  .set-text { font-size: 0.9375rem; line-height: 1.375rem; }
}

/* ---------- Districts ---------- */
.districts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px;
}
.district {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.9375rem; line-height: 1.25rem; font-weight: var(--fw-semibold);
}
.districts > li:nth-child(-n + 2) .district { border-top: 1px solid var(--c-line); }
.district-count { color: var(--c-ink-3); font-size: var(--fs-small); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.district:hover .district-name { color: var(--c-brand); }
@media (min-width: 600px) {
  .districts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  .districts > li:nth-child(3) .district { border-top: 1px solid var(--c-line); }
}
@media (min-width: 1024px) {
  .districts { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px; }
  .districts > li:nth-child(4) .district { border-top: 1px solid var(--c-line); }
  .district { min-height: 56px; font-size: 1rem; }
}

/* ---------- Split: heading column + content column on desktop ---------- */
.split { display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); }
  .split-head { padding-right: 32px; }
}

/* ---------- Prose (guide text) ---------- */
.prose { max-width: 42rem; color: var(--c-ink-2); font-size: var(--fs-body); line-height: 1.625rem; }
.prose p + p { margin-top: 14px; }
.prose a { color: var(--c-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--c-ink); font-weight: var(--fw-strong); }
@media (min-width: 1024px) {
  .prose { font-size: 1.0625rem; line-height: 1.75rem; }
  .prose p + p { margin-top: 16px; }
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  min-height: var(--tap); padding: 16px 0;
  font-size: 1rem; line-height: 1.5rem; font-weight: var(--fw-strong);
}
.faq-q > .icon { margin-top: 2px; color: var(--c-ink-2); transition: transform var(--dur) var(--ease); }
.faq-item[open] > .faq-q > .icon { transform: rotate(180deg); }
.faq-q:hover { color: var(--c-brand); }
.faq-a { max-width: 44rem; padding: 0 36px 20px 0; color: var(--c-ink-2); }
.faq-a p + p { margin-top: 10px; }
@media (min-width: 1024px) {
  .faq-q { padding: 20px 0; font-size: 1.125rem; line-height: 1.625rem; }
  .faq-q > .icon { margin-top: 3px; }
  .faq-a { padding-bottom: 24px; font-size: 1.0625rem; line-height: 1.75rem; }
}

/* ---------- Callout: add or fix a place ---------- */
.callout {
  display: grid; gap: 18px;
  padding: 24px 20px;
  border-radius: var(--r-l);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
}
.callout-title {
  font-size: var(--fs-title-m); line-height: var(--lh-title-m);
  font-weight: var(--fw-bold); letter-spacing: var(--ls-title);
  text-wrap: balance;
}
.callout-text { max-width: 36rem; margin-top: 6px; color: var(--c-ink-2); text-wrap: pretty; }
.callout-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.callout-note { color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.callout-note a { color: var(--c-ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
@media (max-width: 599.98px) {
  .callout-actions > .btn { flex: 1 1 100%; }
}
@media (min-width: 1024px) {
  .callout { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 48px; padding: 36px 40px; }
  .callout-title { font-size: 1.5rem; line-height: 2rem; }
  .callout-text { font-size: 1.0625rem; line-height: 1.625rem; }
  .callout-note { grid-column: 1 / -1; margin-top: -6px; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section); padding: 40px 0 28px; background: var(--c-bg-soft); }
.footer-grid { display: grid; gap: 28px; }
.site-footer .logo-svg { height: 28px; }   /* every width: the footer has the room */
.footer-about { max-width: 22rem; margin-top: 8px; color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.footer-h { margin-bottom: 2px; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-semibold); }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 20px; }
.footer-side { display: grid; gap: 20px; align-content: start; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap);
  font-size: var(--fs-small); line-height: var(--lh-small);
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a[aria-current] { font-weight: var(--fw-strong); }
.footer-links a[aria-current] > .icon { color: var(--c-brand); stroke-width: 2.4; }
.footer-legal {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--c-line-strong);
  color: var(--c-ink-2);
  font-size: var(--fs-caption); line-height: var(--lh-caption);
}
.footer-legal p + p { margin-top: 6px; }
.footer-links-2col > li { break-inside: avoid; }
@media (min-width: 1024px) {
  .site-footer { padding: 56px 0 32px; }
  .footer-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr); gap: var(--gap); }
  .footer-links { display: block; }
  .footer-links-2col { columns: 2; column-gap: var(--gap); }
  .footer-links a { display: flex; }
  .footer-legal { display: flex; justify-content: space-between; gap: 40px; margin-top: 40px; }
  .footer-legal p + p { margin-top: 0; }
}

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .search, .quick, .rail-nav, .menu, .callout-actions { display: none !important; }
  .rail { display: block; overflow: visible; }
  body { color: #000; background: #fff; }
}

/* =====================================================================================
   Phase 2: inner pages, lists and the place page. Contract: README.md, sections 15-40
   ===================================================================================== */

/* ---------- Breadcrumbs ---------- */
.crumbs-list {
  display: flex; align-items: center;
  margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad);
  overflow-x: auto; scrollbar-width: none;
  white-space: nowrap;
}
.crumbs-list::-webkit-scrollbar { display: none; }
.crumbs-item { display: flex; align-items: center; flex: none; color: var(--c-ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.crumbs-item + .crumbs-item::before {
  content: ""; flex: none;
  width: 5px; height: 5px; margin: 0 10px 0 7px;
  border-top: 1.5px solid var(--c-ink-3); border-right: 1.5px solid var(--c-ink-3);
  transform: rotate(45deg);
}
.crumbs-link { display: inline-flex; align-items: center; min-height: var(--tap); }
.crumbs-link:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs-here { max-width: 16em; overflow: hidden; text-overflow: ellipsis; color: var(--c-ink-3); }

/* ---------- Inner page hero: smaller h1 than home ---------- */
.hero-page { padding-top: 2px; padding-bottom: 8px; }
.hero-page .hero-title { max-width: 20em; font-size: 1.75rem; line-height: 2.125rem; }
.hero-page .hero-lead { font-size: 1rem; line-height: 1.5rem; }
.hero-page .hero-lead b { white-space: nowrap; }
/* Page intro under the lead (city, category, collection, about): a step down from the lead, so the answer reads first */
.hero-text { max-width: 42rem; margin-top: 10px; color: var(--c-ink-2); font-size: 0.9375rem; line-height: 1.375rem; text-wrap: pretty; }
@media (min-width: 600px) {
  .hero-page .hero-title { font-size: 2.125rem; line-height: 2.5rem; }
  .hero-page .hero-lead { font-size: var(--fs-lead); line-height: var(--lh-lead); }
  .hero-text { font-size: var(--fs-body); line-height: 1.625rem; }
}
@media (min-width: 1024px) {
  .hero-page { padding-top: 12px; padding-bottom: 12px; }
  .hero-page .hero-title { max-width: 24em; font-size: 2.75rem; line-height: 3.25rem; }
  .hero-text { max-width: 44rem; margin-top: 12px; }
}
.hero-code { color: var(--c-brand); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-bold); letter-spacing: 0.08em; }
.hero-404 { padding-top: 32px; }
.hero-404 .hero-title { margin-top: 6px; }
@media (min-width: 1024px) { .hero-404 { padding-top: 64px; } }

/* ---------- Key facts: four tiles under the hero ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.fact { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px 13px; border-radius: var(--r-m); background: var(--c-bg-soft); }
.fact-label { color: var(--c-ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.fact-value { order: 1; margin-top: 2px; font-size: 1rem; line-height: 1.375rem; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
@media (min-width: 600px) { .fact-value { font-size: 1.0625rem; } }
.fact-note { order: 2; margin-top: 2px; color: var(--c-ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.facts-stats .fact-value { font-size: 1.375rem; line-height: 1.75rem; }
@media (min-width: 1024px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 16px; }
  .fact { padding: 16px 20px 18px; }
  .fact-value { font-size: 1.25rem; line-height: 1.625rem; }
  .facts-stats .fact-value { font-size: 1.75rem; line-height: 2.25rem; }
}
.facts-stats .fact-label { order: 2; margin-top: 2px; }
.facts-stats .fact-value { order: 1; margin-top: 0; }

/* Chips with a count: formats, related categories */
.chip-n { margin-left: 2px; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; column-gap: 8px; }
.quick-formats { margin-top: 14px; }

/* ---------- List: filters, count and sort, results, more, pager, empty state ---------- */
.list { margin-top: 32px; }
html:not(.js) .filters, html:not(.js) .sort { display: none; }
.filters-row {
  display: flex; align-items: center; gap: 8px;
  margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad);
  overflow-x: auto; scrollbar-width: none;
}
.filters-row::-webkit-scrollbar { display: none; }
.fchip { position: relative; display: inline-flex; align-items: center; flex: none; min-height: var(--tap); }
.fchip-select {
  field-sizing: content; max-width: 70vw;
  height: 36px; margin: 0; padding: 0 32px 0 14px;
  border: 0; border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-ink);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
  font-size: var(--fs-small); line-height: 36px; font-weight: var(--fw-medium);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.fchip-select:hover { box-shadow: inset 0 0 0 1px var(--c-ink); }
.fchip-select:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.fchip-select option { color: var(--c-ink); background: var(--c-surface); }
.fchip > .icon { position: absolute; right: 11px; color: var(--c-ink-2); pointer-events: none; }
.fchip.is-on .fchip-select { background: var(--c-ink); color: var(--c-bg); box-shadow: none; font-weight: var(--fw-semibold); }
.fchip.is-on > .icon { color: var(--c-bg); }
.fchip-check { cursor: pointer; }
.fchip-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fchip-box {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
  font-size: var(--fs-small); font-weight: var(--fw-medium); white-space: nowrap;
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.fchip-check:hover .fchip-box { box-shadow: inset 0 0 0 1px var(--c-ink); }
.fchip-input:focus-visible + .fchip-box { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.fchip-input:checked + .fchip-box { background: var(--c-ink); color: var(--c-bg); box-shadow: none; font-weight: var(--fw-semibold); }
.fchip-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c-open); }
.fchip-reset {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  min-height: var(--tap); padding: 0 6px;
  color: var(--c-ink-2); font-size: var(--fs-small); font-weight: var(--fw-semibold);
}
.fchip-reset:hover { color: var(--c-ink); }
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
/* A text block, not a flex row: the number and the words wrap as one line of text next to a long sort label */
.list-count { min-height: var(--tap); margin: 0; padding-block: calc((var(--tap) - var(--lh-small)) / 2); color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.list-count b { color: var(--c-ink); font-weight: var(--fw-bold); }
html:has(dialog.lightbox[open]) { overflow: hidden; }
.list.is-loading .list-count { color: var(--c-ink-3); }
.sort { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); margin-right: -4px; color: var(--c-ink-2); }
.sort-select {
  field-sizing: content;
  height: var(--tap); margin: 0; padding: 0 26px 0 0;
  border: 0; background: transparent; color: var(--c-ink);
  font-size: var(--fs-small); font-weight: var(--fw-semibold);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.sort-select:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }
.sort > .icon:last-child { position: absolute; right: 4px; pointer-events: none; }
.list-hint { margin: 0 0 4px; color: var(--c-ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.listings { display: grid; gap: 12px; margin-top: 8px; }
.listings > li { display: flex; min-width: 0; }
@media (min-width: 600px) {
  .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) {
  .list { margin-top: 40px; }
  .listings { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px var(--gap); }
  .filters-row { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
}

/* Listing: the list card. Text first, the photo is an optional thumbnail. Most places have no photo */
.listing {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto;
  grid-template-areas: "body media" "foot foot";
  column-gap: 14px;
  width: 100%; padding: 16px;
  border-radius: var(--r-l);
  background: var(--c-bg);
  box-shadow: inset 0 0 0 1px var(--c-line);
  transition: box-shadow var(--dur) var(--ease);
}
.listing:not(.has-media) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "foot"; }
.listing-body { grid-area: body; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.listing-title {
  font-size: var(--fs-title-s); line-height: var(--lh-title-s);
  font-weight: var(--fw-strong); letter-spacing: var(--ls-tight);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-l); }
.listing-link:focus-visible { outline: 0; }
.listing-link:focus-visible::after { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.listing-meta { max-width: 100%; color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-rating { display: flex; align-items: center; color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); white-space: nowrap; }
.listing-rating > .icon { width: 15px; height: 15px; margin: 0 4px 1px 0; color: var(--c-star); }
.listing-rating b { color: var(--c-ink); font-weight: var(--fw-strong); }
.listing-reviews::before { content: "·"; margin: 0 6px 0 5px; }
.listing-note { display: flex; align-items: center; gap: 6px; color: var(--c-ink); font-size: var(--fs-small); line-height: var(--lh-small); font-weight: var(--fw-semibold); }
.listing-note > .icon { color: var(--c-warn); }
.listing-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.listing-tag {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--c-brand-soft); color: var(--c-brand);
  font-size: var(--fs-micro); line-height: 1; font-weight: var(--fw-strong); white-space: nowrap;
}
.listing-media {
  grid-area: media; position: relative; overflow: hidden;
  width: 96px; aspect-ratio: 1;
  border-radius: var(--r-m);
  background: var(--c-sunken);
}
.listing-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--c-img-edge); pointer-events: none; }
.listing-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.listing-foot {
  grid-area: foot;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--c-line);
}
.listing-price { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; margin-left: auto; text-align: right; }
.listing-price-value { font-size: 1rem; line-height: 1.25rem; font-weight: var(--fw-bold); white-space: nowrap; }
.listing-price-value .card-price-from { font-weight: var(--fw-medium); }
.listing-price-unit { margin-top: 1px; color: var(--c-ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); }
@media (hover: hover) {
  .listing:hover { box-shadow: inset 0 0 0 1px var(--c-ink-3); }
  .listing:hover .listing-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
}
@media (min-width: 600px) {
  .listing-media { width: 104px; }
}

/* Status as a text line (lists, place header, hours block). site.js adds the dot and live text */
.status-inline {
  position: static; z-index: auto;
  height: auto; max-width: 100%; padding: 0;
  background: none; box-shadow: none;
  color: var(--c-ink-2);
  font-size: var(--fs-small); line-height: var(--lh-small); font-weight: var(--fw-medium);
  pointer-events: auto;
}
.status-inline { align-items: flex-start; white-space: normal; }
.status-inline > .icon { width: 15px; height: 15px; margin-top: 2.5px; }
.status-inline[data-state] { padding-left: 0; color: var(--c-ink); font-weight: var(--fw-semibold); }
.status-inline[data-state]::before { margin-top: 6px; }
.status-inline .status-text { overflow: visible; }
.status-inline[data-state="closed"] { color: var(--c-ink-2); font-weight: var(--fw-medium); }

.list-more { display: flex; justify-content: center; margin-top: 24px; }
.section-more { margin-top: 20px; }
.section-more > .btn > .icon { margin: 0 -4px 0 0; }
@media (max-width: 599.98px) { .section-more > .btn { width: 100%; } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.pager-list { display: flex; align-items: center; gap: 2px; }
.pager-link {
  display: grid; place-items: center;
  min-width: var(--tap); height: var(--tap); padding: 0 6px;
  border-radius: var(--r-m);
  font-size: 0.9375rem; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums;
}
.pager-link:hover { background: var(--c-bg-soft); }
.pager-link[aria-current] { background: var(--c-ink); color: var(--c-bg); }
.pager-gap { min-width: 20px; color: var(--c-ink-3); text-align: center; }
.pager-step {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: var(--tap); min-width: var(--tap); padding: 0 8px;
  border-radius: var(--r-m);
  font-size: var(--fs-small); font-weight: var(--fw-semibold);
}
a.pager-step:hover { background: var(--c-bg-soft); }
span.pager-step { color: var(--c-ink-3); }
@media (max-width: 599.98px) {
  .pager-step > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .pager-step { justify-content: center; padding: 0; }
}
.list.is-filtered .pager { display: none; }

.empty { display: grid; justify-items: start; gap: 6px; margin-top: 8px; padding: 24px 20px; border-radius: var(--r-l); background: var(--c-bg-soft); }
.empty-title { font-size: var(--fs-title-m); line-height: var(--lh-title-m); font-weight: var(--fw-bold); letter-spacing: var(--ls-title); }
.empty-text { max-width: 36rem; color: var(--c-ink-2); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
@media (max-width: 599.98px) { .empty-actions > .btn { flex: 1 1 100%; } }
@media (min-width: 1024px) { .empty { padding: 36px 40px; } }

/* Search page: the no-JS note shows until site.js runs */
.search-nojs { margin-top: 16px; }
/* Results render after the index loads: the list keeps room for them so nothing below jumps */
.js .page-search .list { min-height: 60vh; }
.js .search-nojs { display: none; }
html:not(.js) .search-results { display: none; }
.hero-search { padding-bottom: 14px; }
.page-search .list { margin-top: 20px; }

/* ---------- Category index: groups with categories and counts ---------- */
.groups { display: grid; gap: 28px; }
.group-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-ink);
  font-size: 1.0625rem; line-height: 1.375rem; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight);
}
.group-count { flex: none; color: var(--c-ink-3); font-size: var(--fs-caption); font-weight: var(--fw-medium); }
.group-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.9375rem; line-height: 1.25rem;
}
.group-n { flex: none; color: var(--c-ink-3); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.group-link:hover .group-name { color: var(--c-brand); }
@media (min-width: 768px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 1024px) { .groups { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); } }

.section-tight { margin-top: 40px; }
@media (min-width: 1024px) { .section-tight { margin-top: 48px; } }

/* ---------- Comparison table (collection) and package table (place) ---------- */
.ptable { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.375rem; }
.ptable th, .ptable td { padding: 12px 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.ptable thead th { padding: 0 0 8px; border-bottom-color: var(--c-line-strong); color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-semibold); }
.ptable tbody th { padding-right: 16px; font-weight: var(--fw-regular); }
.ptable td { padding-left: 16px; text-align: right; font-weight: var(--fw-semibold); white-space: nowrap; }
.ptable thead th:not(:first-child) { padding-left: 16px; text-align: right; }   /* same inset as the cells under it */
.ptable a { font-weight: var(--fw-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ptable-compare td:not(.ptable-num) { text-align: left; font-weight: var(--fw-regular); color: var(--c-ink-2); white-space: normal; }
.ptable-compare thead th:nth-child(2) { text-align: left; }
@media (max-width: 599.98px) {
  .ptable-split thead, .ptable-compare thead { display: none; }
  .ptable-split tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .ptable-split th, .ptable-split td { padding: 0; border: 0; }
  .ptable-split tbody th { grid-column: 1 / -1; margin-bottom: 6px; font-weight: var(--fw-semibold); }
  .ptable-split td { text-align: left; }
  .ptable-split td::before { content: attr(data-label); display: block; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-medium); }
  .ptable-compare tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "pack pack"; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .ptable-compare th, .ptable-compare td { padding: 0; border: 0; }
  .ptable-compare tbody th { grid-area: name; }
  .ptable-compare td.ptable-num { grid-area: price; }
  .ptable-compare td:not(.ptable-num) { grid-area: pack; margin-top: 2px; font-size: var(--fs-small); line-height: var(--lh-small); }
}

/* =====================================================================================
   Place page
   ===================================================================================== */
.place { display: grid; grid-template-columns: minmax(0, 1fr); }
.place-aside { margin-top: 20px; }
@media (min-width: 1024px) {
  .place {
    grid-template-columns: minmax(0, 1fr) 360px; column-gap: 56px;
    grid-template-areas: "head aside" "gallery aside" "answer aside" "location aside" "main aside";
    grid-template-rows: auto auto auto auto 1fr;
  }
  .place > .gallery { grid-area: gallery; }
  .place-head { grid-area: head; }
  .answer { grid-area: answer; }
  .place-aside { grid-area: aside; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; margin-top: 16px; }
  .location { grid-area: location; }
  .place-main { grid-area: main; }
}
@media (min-width: 1200px) { .place { column-gap: 72px; grid-template-columns: minmax(0, 1fr) 376px; } }

/* Gallery: phones a swipe strip with a counter, desktop a mosaic by count */
.gallery { position: relative; margin: 0 calc(-1 * var(--pad)); }
.gallery-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery-list::-webkit-scrollbar { display: none; }
.gallery-item { position: relative; scroll-snap-align: start; aspect-ratio: 4 / 3; background: var(--c-sunken); }
.gallery-link { display: block; width: 100%; height: 100%; }
.gallery-link:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -4px; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.gallery-item.is-empty .gallery-link { display: grid; place-items: center; color: var(--c-ink-3); }
.gallery-count, .gallery-all {
  position: absolute; z-index: 2; right: 12px; bottom: 40px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-ink);
  box-shadow: var(--shadow-pill);
  font-size: var(--fs-caption); line-height: 1; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums;
}
.gallery-all { display: none; }
.gallery-rest { display: none; }
.gallery-credit { padding: 8px var(--pad) 0; color: var(--c-ink-3); font-size: var(--fs-micro); line-height: var(--lh-micro); }
.gallery-credit a { color: var(--c-ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
@media (min-width: 600px) {
  .gallery { margin: 8px 0 0; }
  .gallery-list { border-radius: var(--r-l); }
  .gallery-credit { padding-left: 0; padding-right: 0; }
}
@media (min-width: 1024px) {
  .gallery { margin-top: 4px; }
  .gallery-list {
    grid-auto-flow: row; grid-auto-columns: auto; gap: 6px;
    height: 420px; overflow: hidden;
    border-radius: var(--r-l);
  }
  .gallery-item { aspect-ratio: auto; min-height: 0; }
  .gallery-link { transition: filter var(--dur) var(--ease); }
  .gallery-link:hover { filter: brightness(0.93); }
  .gallery-count { display: none; }
  .gallery[data-count="1"] .gallery-list { height: auto; }
  .gallery[data-count="1"] .gallery-item { aspect-ratio: 16 / 10; }
  .gallery[data-count="2"] .gallery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 340px; }
  .gallery[data-count="3"] .gallery-list { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .gallery[data-count="3"] .gallery-item:first-child { grid-row: 1 / 3; }
  .gallery[data-count="4"] .gallery-list { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .gallery[data-count="4"] .gallery-item:first-child { grid-row: 1 / 4; }
  .gallery[data-count="5+"] .gallery-list { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .gallery[data-count="5+"] .gallery-item:first-child { grid-row: 1 / 3; }
  .gallery[data-count="5+"] .gallery-item:nth-child(n + 6) { display: none; }
  .gallery-rest {
    position: absolute; inset: 0; z-index: 1;
    display: grid; place-items: center;
    background: rgb(11 13 12 / 0.5); color: var(--c-on-viewer);
    font-size: 1.5rem; font-weight: var(--fw-bold);
    pointer-events: none;
  }
  .gallery-all { display: inline-flex; bottom: 40px; right: 14px; height: var(--tap); padding: 0 16px; font-size: var(--fs-small); }
  .gallery-all:hover { background: var(--c-bg-soft); }
}

/* Header: category and district, name, rating, live status, data date, notice */
.place-head { padding-top: 16px; }
.place-kicker { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.place-cat { position: relative; display: inline-flex; align-items: center; min-height: 32px; color: var(--c-brand); font-weight: var(--fw-semibold); }
.place-cat::before { content: ""; position: absolute; inset: -6px -4px; }
.place-cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.place-district::before { content: "·"; margin-right: 8px; color: var(--c-ink-3); }
.place-title {
  margin-top: 2px;
  font-size: 2rem; line-height: 2.375rem;
  font-weight: var(--fw-display); letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.place-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 10px; }
.place-rating { position: relative; display: inline-flex; align-items: center; min-height: 28px; color: var(--c-ink-2); font-size: 0.9375rem; line-height: 1.25rem; white-space: nowrap; }
.place-rating::before { content: ""; position: absolute; inset: -8px -4px; }
.place-rating > .icon { width: 17px; height: 17px; margin: 0 5px 2px 0; color: var(--c-star); }
.place-rating b { color: var(--c-ink); font-weight: var(--fw-bold); }
.place-reviews::before, .place-rating-src::before { content: "·"; margin: 0 6px; color: var(--c-ink-3); }
.place-rating:hover .place-reviews { text-decoration: underline; text-underline-offset: 3px; }
.place-meta .status-inline { font-size: 0.9375rem; line-height: 1.25rem; }
.place-checked { margin-top: 6px; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); }
@media (min-width: 1024px) {
  .place-head { padding-top: 12px; padding-bottom: 20px; }
  .place-title { font-size: 2.75rem; line-height: 3.25rem; }
}
.notice { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-m); background: var(--c-bg-soft); }
.notice > .icon { flex: none; margin-top: 2px; color: var(--c-brand); }
.notice-warn { background: var(--c-warn-soft); }
.notice-warn > .icon { color: var(--c-warn); }
.notice-title { font-weight: var(--fw-strong); }
.notice-text { margin-top: 2px; color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }

/* Answer box: what, ages, price, trial, where, hours. The short answer for parents, search and AI */
.answer { margin-top: 20px; padding: 2px 16px 6px; border-radius: var(--r-l); background: var(--c-bg-soft); }
.answer-title { padding: 12px 0 8px; color: var(--c-ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-semibold); }
.answer-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); column-gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.answer-row dt { color: var(--c-ink-2); font-size: var(--fs-small); line-height: 1.375rem; }
.answer-row dd { font-size: 0.9375rem; line-height: 1.375rem; }
.answer-row b { font-weight: var(--fw-bold); }
.answer-unit { color: var(--c-ink-2); }
@media (min-width: 1024px) {
  .answer { margin-top: 24px; padding: 4px 24px 8px; }
  .answer-row { grid-template-columns: 112px minmax(0, 1fr); padding: 11px 0; }
  .answer-row dd { font-size: 1rem; line-height: 1.5rem; }
  .answer-row dt { line-height: 1.5rem; }
}

/* Contacts card: call, the 1kids.uz line, messengers, every other channel */
.contact { padding: 18px 16px 6px; border-radius: var(--r-l); background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.contact-title { margin-bottom: 12px; font-size: var(--fs-title-s); line-height: var(--lh-title-s); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
.contact-call { width: 100%; font-size: 1.0625rem; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.contact-say { margin-top: 8px; color: var(--c-ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); text-align: center; }
.contact-msg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.contact-msg > .btn:only-child { grid-column: 1 / -1; }
.contact-msg > .btn { min-height: var(--tap); padding: 0 12px; }
.contact-list { margin-top: 10px; }
.contact-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px;
  border-top: 1px solid var(--c-line);
  font-size: 0.9375rem; line-height: 1.25rem;
}
.contact-row > .icon { color: var(--c-ink-2); }
.contact-row-label { flex: none; font-variant-numeric: tabular-nums; }
.contact-row-value { min-width: 0; margin-left: auto; overflow: hidden; color: var(--c-ink-2); text-overflow: ellipsis; white-space: nowrap; }
a.contact-row:hover .contact-row-label { color: var(--c-brand); }
.contact-more > summary { cursor: pointer; }
.contact-more > summary .contact-row-label { color: var(--c-brand); font-weight: var(--fw-semibold); }
.contact-more-icon { margin-left: auto; transition: transform var(--dur) var(--ease); }
.contact-more[open] .contact-more-icon { transform: rotate(180deg); }
.contact-socials { display: flex; flex-wrap: wrap; column-gap: 8px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--c-line); }
.contact-socials .chip-in { height: 32px; padding: 0 12px; }
@media (min-width: 1024px) { .contact { padding: 22px 22px 8px; } }

/* Location: district map (no third-party scripts), address, landmark, route and map links */
.location { margin-top: 36px; }
.location-body {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); grid-template-areas: "map text" "links links";
  gap: 12px 16px; align-items: start; margin-top: 12px;
}
.location-body > .map { grid-area: map; }
.location-text { grid-area: text; align-self: center; }
.location.no-map .location-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "links"; }
.location-district { color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.location-address { margin-top: 2px; font-size: 1.0625rem; line-height: 1.5rem; font-weight: var(--fw-semibold); }
.location-landmark { margin-top: 4px; color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.location-landmark > span { color: var(--c-ink-3); }
.location-links { grid-area: links; display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; }
.location-links > li:first-child { margin-right: 4px; }
.location-route { min-height: 44px; padding: 0 18px; }
.location-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: var(--c-brand); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.location-link > .icon { width: 16px; height: 16px; }
.location-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.map { margin: 0; }
.map-frame { position: relative; }
.map-svg { width: 100%; height: auto; overflow: visible; }
.map-d { fill: var(--c-bg-soft); stroke: var(--c-line-strong); stroke-width: 1px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-d.is-active { fill: var(--c-brand-soft); stroke: var(--c-brand); stroke-width: 1.5px; }
.map-pin {
  position: absolute; z-index: 1;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--c-ink-2);
  box-shadow: 0 0 0 2px var(--c-bg);
}
.map-pin.is-main { z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--c-brand); box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 9px rgb(13 90 63 / 0.16); }
.map-caption { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; color: var(--c-ink-3); font-size: var(--fs-micro); line-height: var(--lh-micro); }
.map-key { display: inline-flex; align-items: center; gap: 5px; color: var(--c-ink-2); }
.map-key-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-2); }
.map-key-dot.is-main { width: 9px; height: 9px; background: var(--c-brand); }
.map-attr { color: var(--c-ink-3); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .map-pin.is-main { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 9px rgb(92 200 150 / 0.2); }
}
@media (max-width: 599.98px) {
  .location .map-caption .map-key { display: none; }
}
@media (min-width: 600px) {
  .location-body { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "map text" "map links"; grid-template-rows: auto 1fr; gap: 14px 28px; }
  .location-text { align-self: end; }
  .location-links { align-self: start; }
  .location.no-map .location-body { grid-template-rows: auto; }
  .map-pin { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  .map-pin.is-main { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
}
@media (min-width: 1024px) {
  .location { margin-top: 40px; }
  .location-body { grid-template-columns: 260px minmax(0, 1fr); column-gap: 32px; }
  .location-address { font-size: 1.1875rem; line-height: 1.625rem; }
}

/* Place blocks in the main column */
.pblock { margin-top: 36px; }
.pblock-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.pblock-head-narrow { max-width: 480px; }
.pblock-title {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-title-m); line-height: var(--lh-title-m);
  font-weight: var(--fw-bold); letter-spacing: var(--ls-title);
}
.pblock-title > .icon { color: var(--c-brand); }
.pblock-count { color: var(--c-ink-3); font-weight: var(--fw-medium); }
.pblock-sub { margin-top: 4px; color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.pblock-src { margin-top: 12px; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.pblock-src a { color: var(--c-ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.pblock .faq-list { margin-top: 8px; }
.pblock .prose { margin-top: 10px; }
@media (min-width: 1024px) {
  .pblock { margin-top: 48px; }
  .pblock-title { font-size: 1.5rem; line-height: 2rem; }
}

/* Prices: one price large, or a list with the date and source */
.price-from { margin-top: 12px; padding: 14px 16px 16px; border-radius: var(--r-l); background: var(--c-bg-soft); }
.price-from-value { font-size: 1.75rem; line-height: 2.125rem; font-weight: var(--fw-display); letter-spacing: -0.02em; }
.price-from-value .card-price-from { font-weight: var(--fw-medium); }
.price-from-label { margin-top: 2px; color: var(--c-ink-2); }
.price-list { margin-top: 10px; border-top: 1px solid var(--c-line); }
.price-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.price-label { min-width: 0; font-size: 0.9375rem; line-height: 1.375rem; }
.price-value { display: flex; flex: none; flex-direction: column; align-items: flex-end; max-width: 48%; text-align: right; }
.price-value b { font-size: 1rem; line-height: 1.375rem; font-weight: var(--fw-bold); white-space: nowrap; }
.price-unit { color: var(--c-ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.price-more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: var(--c-brand); font-size: var(--fs-small); font-weight: var(--fw-strong); }
.price-more > summary > .icon { transition: transform var(--dur) var(--ease); }
.price-more[open] > summary > .icon { transform: rotate(180deg); }
.price-more > .price-list { margin-top: 0; border-top: 0; }

/* Trial lesson */
.trial { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: start; padding: 16px; border-radius: var(--r-l); background: var(--c-brand-soft); }
.trial-icon { color: var(--c-brand); }
.trial-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 1.0625rem; line-height: 1.5rem; font-weight: var(--fw-bold); }
.trial-text { margin-top: 2px; color: var(--c-ink-2); }
.trial-cta { grid-column: 1 / -1; min-height: var(--tap); }
.badge {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--c-brand); color: var(--c-on-primary);
  font-size: var(--fs-micro); line-height: 1; font-weight: var(--fw-strong); letter-spacing: 0.01em;
}
@media (min-width: 600px) {
  .trial { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 18px 20px; }
  .trial-cta { grid-column: auto; }
}

/* Hours: one line, or the week with today marked by site.js */
.hours-line { margin-top: 10px; font-size: 1.0625rem; line-height: 1.5rem; font-weight: var(--fw-semibold); }
.week { width: 100%; max-width: 480px; margin-top: 8px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.375rem; }
.week th, .week td { padding: 9px 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; font-weight: var(--fw-regular); }
.week td { text-align: right; font-variant-numeric: tabular-nums; }
.week-row.is-closed td { color: var(--c-ink-3); }
.week-break { display: block; color: var(--c-ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.week-row[aria-current] th, .week-row[aria-current] td { font-weight: var(--fw-bold); }
.week-today { display: inline-flex; align-items: center; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: var(--r-xs); background: var(--c-ink); color: var(--c-bg); font-size: 0.6875rem; line-height: 1; font-weight: var(--fw-bold); vertical-align: 1px; }

/* Ages: a 0 to 14+ scale for the range, then the place's own words */
.age-scale { max-width: 480px; margin-top: 16px; }
.age-track { position: relative; height: 8px; border-radius: var(--r-pill); background: var(--c-sunken); }
.age-band { position: absolute; top: 0; bottom: 0; left: var(--from); right: calc(100% - var(--to)); min-width: 8px; border-radius: var(--r-pill); background: var(--c-brand); }
.age-band.is-open { right: 0; }
.age-ticks { display: flex; justify-content: space-between; margin-top: 6px; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); font-variant-numeric: tabular-nums; }
.ages-text { margin-top: 10px; }
.age-track .age-band + .age-band { box-shadow: -2px 0 0 var(--c-bg); }
.age-groups { max-width: 480px; margin-top: 10px; border-top: 1px solid var(--c-line); }
.age-group { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--c-line); }
.age-group-range { flex: none; min-width: 84px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.age-group-name { color: var(--c-ink-2); }

/* Amenities */
.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 14px; }
.amenity { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; line-height: 1.25rem; }
.amenity > .icon { color: var(--c-ink-2); }
@media (min-width: 768px) { .amenities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Branches */
.branches { margin-top: 10px; border-top: 1px solid var(--c-line); }
.branch { padding: 12px 0 4px; border-bottom: 1px solid var(--c-line); }
.branch-name { color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.branch-address { font-weight: var(--fw-semibold); }
.branch-meta { display: flex; flex-wrap: wrap; column-gap: 8px; margin-top: 2px; color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.branch-meta > span + span::before { content: "·"; margin-right: 8px; color: var(--c-ink-3); }
.branch-actions { display: flex; flex-wrap: wrap; column-gap: 20px; }
.branch-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: var(--c-brand); font-size: var(--fs-small); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.branch-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) {
  .branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

/* Sources and check dates */
.sources { margin-top: 12px; border-top: 1px solid var(--c-line); font-size: var(--fs-small); line-height: var(--lh-small); }
.sources-row { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.sources-row dt { color: var(--c-ink-2); }
.sources-row a { text-decoration: underline; text-decoration-color: var(--c-line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sources-row a:hover { text-decoration-color: currentColor; }
.sources-date { margin-left: 8px; color: var(--c-ink-3); white-space: nowrap; }
.sources-fix { margin-top: 8px; }
.sources-fix .more { margin: 0; padding: 0; gap: 6px; }
@media (min-width: 600px) { .sources-row { grid-template-columns: 190px minmax(0, 1fr); gap: 16px; } }

/* Photo viewer: site.js fills it from the gallery. Dark in both themes, like every photo viewer */
.lightbox {
  position: fixed; inset: 0;
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--c-viewer); color: var(--c-on-viewer);
}
.lightbox::backdrop { background: var(--c-viewer); }
.lightbox-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  height: 100%;
  overflow-x: auto; overscroll-behavior: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.lightbox-list::-webkit-scrollbar { display: none; }
.lightbox-list > li { display: grid; place-items: center; min-width: 0; padding: 60px 0; scroll-snap-align: center; }
.lightbox-list img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; }
.lightbox-count { font-size: var(--fs-small); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.lightbox-btn { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; background: rgb(255 255 255 / 0.12); color: var(--c-on-viewer); }
.lightbox-btn:hover { background: rgb(255 255 255 / 0.2); }
.lightbox-btn:focus-visible { outline-color: var(--c-on-viewer); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; z-index: 2; margin-top: -22px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-btn:disabled { opacity: 0.3; cursor: default; }
@media (hover: none) { .lightbox-prev, .lightbox-next { display: none; } }

/* Block specimen page (reference only) */
.spec { margin-top: 44px; padding-top: 20px; border-top: 1px dashed var(--c-line-strong); }
.spec-title { color: var(--c-brand); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; }
.spec-note { margin-top: 2px; color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.spec-body { max-width: 784px; margin-top: 8px; }
.spec-body.spec-wide { max-width: none; }
.spec-aside { max-width: 376px; }
.spec-body > .pblock:first-child, .spec-body > .location { margin-top: 12px; }
.spec-body > .gallery { margin-top: 8px; }
.spec-body > .place-head { padding-top: 0; }
@media (min-width: 1024px) { .spec-body > .gallery { max-width: 784px; } }

@media print {
  .filters, .sort, .pager, .list-more, .lightbox, .gallery-count, .gallery-all, .contact-msg, .location-links { display: none !important; }
  .place { display: block; }
  .gallery-list { display: block; height: auto; }
}
