/* CY Industry — design system. Tokens are printed per site in <style id="cyi-tokens">. */

/* ---------- Scale & derived tokens ---------- */
:root {
  --fs-xs: .8125rem;
  --fs-sm: .9063rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: clamp(1.375rem, 1.15rem + .9vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  --fs-hero: clamp(2.6rem, 1.3rem + 5.2vw, 5.5rem);
  --gutter: 16px;
  --maxw: 1320px;
  --header-h: 72px;
  --accent-soft: color-mix(in oklab, var(--accent) 10%, var(--surface));
  --accent-line: color-mix(in oklab, var(--accent) 28%, var(--line));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
  --adminbar: 0px;
}
.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --adminbar: 46px; } }
@media (max-width: 600px) { .admin-bar { --adminbar: 0px; } }
@media (min-width: 720px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }
.site-main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--article { max-width: calc(760px + var(--gutter) * 2); }
.wrap--wide { max-width: calc(1180px + var(--gutter) * 2); }
.muted { color: var(--ink-soft); }
.icon { flex: none; }

/* Display type: the personality lives here. */
.display, .hero__title, .page-title, .section-title, .article-title, .biz-id__name, .owners__title, .net-hero__title,
.cat-index__name, .district__name, .lcard__title, .acard__title, .app-head__title, .empty__title, .area-block__title, .biz-sec__title, .review-source__num, .biz-rating__num {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--display-tracking);
}

/* ---------- Buttons & chips ---------- */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .62em 1.15em;
  border: 1.5px solid var(--b); border-radius: var(--radius-btn);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--on-accent); --b: var(--accent); }
.btn--accent:hover { background: color-mix(in oklab, var(--accent) 86%, var(--ink)); color: var(--on-accent); }
.btn--ink { background: var(--ink); color: var(--bg); --b: var(--ink); }
.btn--ink:hover { background: var(--accent); --b: var(--accent); color: var(--on-accent); }
.btn--line { background: var(--surface); color: var(--ink); --b: var(--line); }
.btn--line:hover { --b: var(--ink); color: var(--ink); }
.btn--on-accent { background: var(--on-accent); color: var(--accent); --b: var(--on-accent); }
.btn--on-accent:hover { background: var(--accent-2); color: var(--on-accent-2); --b: var(--accent-2); }
.btn--ghost-on-accent { color: var(--on-accent); --b: color-mix(in oklab, var(--on-accent) 45%, transparent); }
.btn--ghost-on-accent:hover { color: var(--on-accent); --b: var(--on-accent); }
.btn--sm { min-height: 36px; padding: .45em .9em; font-size: var(--fs-xs); }
.btn[disabled] { opacity: .6; cursor: progress; }

.chip {
  position: relative; display: inline-flex; align-items: center; gap: .4em;
  min-height: 34px; padding: .35em .85em;
  border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--surface);
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.2; text-decoration: none; color: var(--ink);
  cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.chip::before { content: ""; position: absolute; inset: -5px 0; } /* 44px hit area, 34px chip */
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chip .icon { width: 14px; height: 14px; }
.chip--active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip--active:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip--static { cursor: default; background: var(--accent-soft); border-color: transparent; color: var(--ink); text-transform: capitalize; }
.chip--service { background: var(--surface); }
.chip--spec { background: var(--accent-soft); border-color: transparent; }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 8px; }

.tag { display: inline-flex; align-items: center; gap: .35em; padding: .2em .6em; border-radius: var(--radius-btn); font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; }
.tag .icon { width: 15px; height: 15px; }
.tag--demo { background: var(--sand); color: var(--ink); }
.tag--verified { background: var(--accent-soft); color: var(--accent); }

.kicker { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); letter-spacing: .01em; }
.kicker a { text-decoration: none; }
.kicker--lg { font-size: var(--fs-sm); }

/* Stars: CSS mask, filled to the exact rating. */
.stars {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.4l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E");
  display: inline-block; flex: none; width: 5.4em; height: 1.08em; vertical-align: -.15em;
  background: linear-gradient(90deg, var(--accent-2) calc(var(--r) / 5 * 100%), color-mix(in oklab, var(--ink) 16%, transparent) 0);
  -webkit-mask: var(--star) 0 0 / 1.08em 1.08em repeat-x; mask: var(--star) 0 0 / 1.08em 1.08em repeat-x;
  font-size: 15px;
}
.stars--sm { font-size: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: var(--adminbar); z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in oklab, var(--bg) 94%, transparent); }
.header-bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.wordmark { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); flex: none; }
.wordmark:hover { color: var(--ink); }
.wordmark__logo { max-height: 44px; width: auto; }
.wordmark__text { font-size: 1.375rem; line-height: 1; white-space: nowrap; }
.wm-a { font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; }
.wm-b { font-family: var(--font-body); font-weight: 700; color: var(--accent); letter-spacing: -.01em; }
.p-calm .wm-a, .p-neutral .wm-a { font-style: italic; font-weight: 420; font-size: 1.08em; }
.p-calm .wm-b, .p-neutral .wm-b { margin-left: .06em; font-size: .78em; letter-spacing: .02em; }

.primary-nav { margin-left: auto; display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: var(--fs-sm); font-weight: 550; color: var(--ink); border-radius: var(--radius-sm); }
.nav-list a:hover { color: var(--accent); }
.nav-list .is-current > a { color: var(--accent); }
.nav-list .is-current > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: currentColor; border-radius: 2px; }
.has-mega > a { padding-right: 4px; }
.mega-toggle { display: inline-grid; place-items: center; width: 28px; height: 36px; margin-right: 4px; background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; color: var(--ink-soft); }
.mega-toggle svg { transition: transform .2s var(--ease); }
.has-mega.is-open .mega-toggle svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 8px); left: -12px; width: min(560px, 90vw); display: none; }
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.mega__inner { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 48px -20px color-mix(in oklab, var(--ink) 35%, transparent); }
.mega__title { font-family: var(--font-display); font-size: var(--fs-md); margin-bottom: 12px; }
.mega__list { list-style: none; columns: 2; column-gap: 24px; }
.mega__list a { min-height: 36px; padding: 0; font-weight: 500; }
.mega__all { display: inline-block; margin-top: 14px; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
@media (hover: hover) and (min-width: 1000px) { .has-mega:hover .mega { display: block; } }
.has-mega.is-open .mega { display: block; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: var(--radius-btn); background: none; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }
.menu-toggle { display: none; }
.menu-toggle__close { display: none; }
.nav-cta-mobile { display: none; }

.header-search { border-top: 1px solid var(--line); background: var(--surface); }
.header-search__form { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.header-search__form .icon { color: var(--ink-soft); }
.header-search__form input { flex: 1; min-width: 0; border: 0; background: none; font-size: var(--fs-md); padding: 8px 0; }
.header-search__form input:focus { outline: none; }

@media (max-width: 999px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .primary-nav {
    position: fixed; inset: calc(var(--header-h) + var(--adminbar)) 0 0; z-index: 39; margin: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) 40px; background: var(--bg); overflow-y: auto;
  }
  .nav-open .primary-nav { display: flex; }
  .nav-open { overflow: hidden; }
  .nav-open .menu-toggle__open { display: none; }
  .nav-open .menu-toggle__close { display: inline; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; min-height: 56px; padding: 0; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: var(--display-weight); font-stretch: var(--display-stretch); }
  .nav-list .is-current > a::after { display: none; }
  .mega-toggle { width: 44px; height: 44px; }
  .mega { position: static; width: 100%; padding-bottom: 16px; }
  .mega::before { display: none; }
  .mega__inner { padding: 0; border: 0; box-shadow: none; background: none; }
  .mega__title { display: none; }
  .nav-cta-mobile { display: inline-flex; align-self: flex-start; }
}

/* ---------- Ownership strip (who publishes the site, every page) ---------- */
.ownership-strip { position: relative; z-index: 1; background: color-mix(in oklab, var(--ink) 5%, var(--bg)); border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: var(--fs-xs); line-height: 1.35; }
.ownership-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 4px 20px; min-height: 36px; }
.ownership-strip__who { min-width: 0; }
.ownership-strip__who strong { color: var(--ink); font-weight: 650; }
.ownership-strip__links { list-style: none; display: flex; flex: none; gap: 18px; }
.ownership-strip__links a { position: relative; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: .25em; }
.ownership-strip__links a::after { content: ""; position: absolute; inset: -12px -6px; }
.ownership-strip__links a:hover { color: var(--accent); text-decoration-color: currentColor; }
.ownership-strip__short { display: none; }
@media (max-width: 900px) { .ownership-strip__more { display: none; } }
@media (max-width: 560px) {
  .ownership-strip__inner { min-height: 40px; gap: 12px; }
  .ownership-strip__links { gap: 14px; }
  .ownership-strip__long { display: none; }
  .ownership-strip__short { display: inline; }
}
.p-bold .ownership-strip { background: var(--surface); border-bottom: 1.5px solid var(--ink); }
.p-ledger .ownership-strip { background: var(--bg); border-bottom-color: var(--ink); }
.p-bold .ownership-strip__who strong::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .45em; background: var(--accent-2); box-shadow: 0 0 0 1px var(--ink); vertical-align: .05em; }
.p-ledger .ownership-strip__who strong::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .45em; background: var(--accent); vertical-align: .05em; }
.p-chambers .ownership-strip, .p-terrace .ownership-strip { background: var(--surface-2); }
.p-chambers .ownership-strip__who strong { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.08em; }
.p-taverna .ownership-strip, .p-meadow .ownership-strip { background: color-mix(in oklab, var(--accent) 7%, var(--bg)); }
.p-workshop .ownership-strip { background: var(--ink); color: color-mix(in oklab, var(--bg) 80%, var(--ink)); border-bottom: 0; }
.p-workshop .ownership-strip__who strong, .p-workshop .ownership-strip__links a { color: var(--bg); }
.p-workshop .ownership-strip__links a { text-decoration-color: var(--accent-2); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 4rem + 3vw, 120px); }
.section--tight { padding-block: clamp(32px, 2rem + 2vw, 64px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 1.5rem + 1vw, 40px); }
.section-title { font-size: var(--fs-xl); line-height: 1.08; }
.section-title--sm { font-size: var(--fs-lg); }
.section-title .count { font-family: var(--font-body); font-size: .6em; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; margin-left: .2em; }
.section-intro { color: var(--ink-soft); max-width: 52ch; margin-top: 12px; }
.more-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: var(--fs-sm); color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: .3em; }
.more-link:hover { text-decoration-color: currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(28px, 1rem + 4vw, 80px) clamp(40px, 2rem + 3vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 2rem + 4vw, 96px); align-items: center; }
.hero__kicker { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); margin-bottom: 20px; }
.hero__title { font-size: var(--fs-hero); line-height: var(--display-leading); max-width: 14ch; }
.hero__intro { margin-top: 24px; max-width: 50ch; font-size: var(--fs-md); color: var(--ink-soft); line-height: 1.55; }

.hero__media { position: relative; margin: 0; }
.hero__frame { position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--hero-radius); clip-path: var(--hero-clip); background: var(--surface-2); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.hero__spot {
  position: absolute; z-index: 2; left: -40px; bottom: 40px; max-width: 280px;
  display: grid; gap: 4px; padding: 16px 18px;
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 18px 40px -18px color-mix(in oklab, var(--ink) 45%, transparent);
}
.hero__spot-label { font-size: var(--fs-xs); color: var(--ink-soft); }
.hero__spot-name { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: var(--fs-md); line-height: 1.2; text-decoration: none; }
.hero__spot-meta { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); }

/* AI search */
.ai-search { margin-top: clamp(28px, 1.5rem + 1vw, 40px); max-width: 640px; }
.ai-search__label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 10px; }
.ai-search__box {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-btn);
  box-shadow: 0 18px 40px -26px color-mix(in oklab, var(--accent) 60%, transparent);
  transition: border-color .2s, box-shadow .2s;
}
.ai-search__box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent), 0 18px 40px -26px color-mix(in oklab, var(--accent) 60%, transparent); }
.ai-search__icon { color: var(--accent); display: grid; }
.ai-search__input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 4px; font-size: var(--fs-md); }
.ai-search__input:focus { outline: none; }
.ai-search__input::placeholder { color: var(--ink-soft); opacity: 1; }
.ai-search__input::-webkit-search-cancel-button { display: none; }
.ai-search__submit { min-height: 52px; padding-inline: 1.4em; }
.ai-search__examples { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin-top: 16px; }
.ai-search__try { font-size: var(--fs-xs); color: var(--ink-soft); margin-right: 2px; }
.ai-search__examples .chip { background: transparent; }
@media (max-width: 560px) {
  .ai-search__box { flex-wrap: wrap; border-radius: var(--radius); padding: 6px; }
  .ai-search__icon { display: none; }
  .ai-search__input { padding: 12px; flex-basis: 100%; }
  .ai-search__submit { width: 100%; }
}

.ai-results { margin-top: clamp(32px, 2rem + 2vw, 56px); padding: clamp(20px, 1rem + 2vw, 40px); background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.ai-results__head { display: flex; justify-content: space-between; align-items: start; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.ai-results__label { font-size: var(--fs-sm); color: var(--ink-soft); }
.ai-results__summary { margin-top: 6px; max-width: 62ch; font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.3; font-stretch: var(--display-stretch); }
.ai-results__filters { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ai-results__loading { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); }
.ai-results__pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: pulse 1.1s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.ai-results__none, .ai-results__note { color: var(--ink-soft); font-size: var(--fs-sm); }
.ai-results__note { margin-top: 20px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; width: 100%; margin-top: 12px; }
  .hero__frame { aspect-ratio: 5 / 4; }
  .hero__spot { left: 12px; bottom: -28px; }
  .hero { padding-bottom: clamp(56px, 3rem + 3vw, 88px); }
  .hero__title { max-width: 16ch; }
}
@media (max-width: 560px) {
  .hero__media { margin-right: 10px; }
}

/* ---------- Category index ---------- */
.cat-index { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 56px); counter-reset: none; }
.cat-index__item { border-top: 1px solid var(--line); padding: 18px 0 22px; }
.cat-index__link { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; text-decoration: none; }
.cat-index__name { font-size: var(--fs-lg); line-height: 1.15; transition: color .15s; }
.cat-index__link:hover .cat-index__name { color: var(--accent); }
.cat-index__count { flex: none; font-size: var(--fs-xs); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cat-index__kids { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: var(--fs-sm); }
.cat-index__kids a { color: var(--ink-soft); text-decoration: none; }
.cat-index__kids a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 900px) { .cat-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cat-index { grid-template-columns: 1fr; } }

/* ---------- Areas + Cyprus map ---------- */
.section--areas { background: var(--surface); }
.areas { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 80px); align-items: center; }
.cy-map { width: 100%; overflow: visible; }
.cy-map__land { fill: var(--map-land); stroke: color-mix(in oklab, var(--accent) 40%, transparent); stroke-width: 1.5; }
.cy-map__texture { pointer-events: none; opacity: .5; }
.cy-map__hatch { stroke: color-mix(in oklab, var(--accent) 20%, transparent); stroke-width: 1; }
.cy-map__pin { fill: var(--accent); opacity: .55; }
.cy-map__district { text-decoration: none; cursor: pointer; }
.cy-map__ring { fill: color-mix(in oklab, var(--accent) 14%, transparent); stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease), fill .25s; }
.cy-map__dot { fill: var(--accent); }
.cy-map__district text { font-family: var(--font-body); fill: currentColor; paint-order: stroke; stroke: var(--map-halo, var(--surface)); stroke-width: 5px; stroke-linejoin: round; }
.cy-map__name { font-family: var(--font-display); font-size: 22px; font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); }
.cy-map__count { font-size: 14px; fill: var(--ink-soft); }
.cy-map__district:hover .cy-map__ring, .cy-map__district:focus-visible .cy-map__ring, .cy-map__district.is-hot .cy-map__ring { transform: scale(1.5); fill: color-mix(in oklab, var(--accent) 28%, transparent); }
.cy-map__district:focus-visible { box-shadow: none; outline: 2px solid var(--accent); }

.district-list { list-style: none; margin: 28px 0 24px; }
.district { border-top: 1px solid var(--line); padding: 14px 0; }
.district:last-child { border-bottom: 1px solid var(--line); }
.district__link { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; text-decoration: none; }
.district__name { font-size: var(--fs-lg); line-height: 1.1; }
.district__count { font-size: var(--fs-xs); color: var(--ink-soft); }
.district__towns { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; font-size: var(--fs-sm); }
.district__towns a { color: var(--ink-soft); text-decoration: none; }
.district__towns a:hover { text-decoration: underline; }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid--4, .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; } }

.lcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.lcard:has(.lcard__link:hover) { transform: translateY(-3px); }
.lcard:focus-within { box-shadow: var(--focus); }
.lcard__media { position: relative; aspect-ratio: 3 / 2; background: var(--surface-2); }
.lcard__media > img { width: 100%; height: 100%; object-fit: cover; }
.lcard__logo { position: absolute; left: 16px; bottom: -22px; }
.badge { position: absolute; top: 12px; left: 12px; padding: .3em .7em; font-size: var(--fs-xs); font-weight: 700; border-radius: var(--radius-btn); }
.badge--featured { background: var(--accent-2); color: var(--on-accent-2); }
.hero__spot .cyd-card-badges { margin: 2px 0 0; }
.lcard__body { display: flex; flex-direction: column; gap: 6px; padding: 34px 18px 18px; flex: 1; }
.lcard__kicker { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
/* Labels from plugin modules (status, disclosure) share one wrapping row. */
.card-badges { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card-badges > :is(p, div) { display: contents; }
.lcard__title { font-size: var(--fs-md); line-height: 1.2; }
.lcard__link { text-decoration: none; }
.lcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lcard__link:focus-visible { box-shadow: none; }
.lcard__parent { font-size: var(--fs-xs); color: var(--ink-soft); }
.lcard__short { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lcard__meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: var(--fs-xs); color: var(--ink-soft); }
.lcard__place { display: inline-flex; align-items: center; gap: 4px; }
.lcard__place .icon { width: 15px; height: 15px; }
.lcard__rating { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.lcard__rating .stars { font-size: 12px; }
.lcard__count { color: var(--ink-soft); }
.lcard__src { margin-left: 2px; padding: .1em .45em; border-radius: var(--radius-btn); background: var(--sand); font-size: var(--fs-xs); font-weight: 600; color: var(--ink); }
.lcard--compact .lcard__media { aspect-ratio: 16 / 7; }

.logo-tile { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; background: var(--surface); border-radius: var(--radius-sm); box-shadow: 0 0 0 3px var(--surface), 0 6px 16px -8px color-mix(in oklab, var(--ink) 50%, transparent); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.logo-tile--mono { background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.1rem; letter-spacing: .02em; }

/* Article cards */
.acard { display: flex; flex-direction: column; gap: 14px; }
.acard__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.acard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.acard:hover .acard__media img { transform: scale(1.03); }
.acard__body { display: flex; flex-direction: column; gap: 6px; }
.acard__title { font-size: var(--fs-lg); line-height: 1.15; }
.acard__title a { text-decoration: none; }
.acard__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.acard__dek { color: var(--ink-soft); font-size: var(--fs-sm); max-width: 60ch; }
.acard__meta { display: flex; gap: 14px; font-size: var(--fs-xs); color: var(--ink-soft); }
.acard--lead .acard__title { font-size: var(--fs-2xl); line-height: 1.04; }
.acard--lead .acard__dek { font-size: var(--fs-md); }
.acard--lead .acard__media { aspect-ratio: 16 / 10; }
.acard--mini { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.acard--mini .acard__media { aspect-ratio: 1; }
.acard--mini .acard__title { font-size: var(--fs-md); }
.acard--compact .acard__title { font-size: var(--fs-md); }

.news-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.news-grid__side { display: flex; flex-direction: column; gap: 24px; }
.news-grid__side .acard + .acard { padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(20px, 2.5vw, 36px); }
.article-grid .acard--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .article-grid .acard--lead { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }

/* ---------- Owners band + trust ---------- */
.section--owners { padding-block: clamp(32px, 4vw, 64px); }
.owners { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; background: var(--accent); color: var(--on-accent); border-radius: calc(var(--radius) * 1.5); padding: clamp(28px, 5vw, 72px); }
.owners__title { font-size: var(--fs-2xl); line-height: 1.02; }
.owners__copy p { margin-top: 16px; max-width: 46ch; font-size: var(--fs-md); opacity: .92; }
.owners__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.owners__steps { list-style: none; counter-reset: s; display: grid; gap: 18px; }
.owners__steps li { counter-increment: s; position: relative; padding-left: 56px; opacity: .95; }
.owners__steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--on-accent) 50%, transparent); font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); }
.owners__steps strong { display: block; }
@media (max-width: 900px) { .owners { grid-template-columns: 1fr; } }

.trust { padding-block: 8px clamp(56px, 6vw, 96px); }
.trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 48px); }
.trust__item { display: flex; gap: 14px; font-size: var(--fs-sm); color: var(--ink-soft); }
.trust__item .icon { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.trust__item strong { color: var(--ink); }
@media (max-width: 800px) { .trust__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: color-mix(in oklab, var(--bg) 82%, transparent); padding-block: clamp(48px, 6vw, 88px) 32px; font-size: var(--fs-sm); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--bg); text-decoration: underline; }
.site-footer :focus-visible { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--bg); }
.wordmark--footer { color: var(--bg); }
.wordmark--footer:hover { color: var(--bg); text-decoration: none !important; }
.wordmark--footer .wordmark__text { font-size: clamp(1.75rem, 1rem + 3vw, 3.25rem); white-space: normal; }
.site-footer .wm-b { color: color-mix(in oklab, var(--accent) 45%, var(--bg)); }
.footer-top { display: grid; gap: 20px; padding-bottom: 40px; border-bottom: 1px solid color-mix(in oklab, var(--bg) 16%, transparent); }
.footer-mission { max-width: 56ch; font-size: var(--fs-md); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 40px; }
.footer-col__title { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; color: var(--bg); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-top: 24px; border-top: 1px solid color-mix(in oklab, var(--bg) 16%, transparent); font-size: var(--fs-sm); }
.footer-network { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-network ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-network span { opacity: .7; }
@media (max-width: 800px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 44px hit areas for small inline links, drawn with a pseudo-element so the text layout stays as designed. */
.kicker a, .cat-index__kids a, .district__towns a, .biz-updated a, .panel__note a, .contact-list span > a, .biz-id__kicker a, .branch__more, .cyd-disclosure-panel a { position: relative; }
.kicker a::after, .cat-index__kids a::after, .district__towns a::after, .biz-updated a::after, .panel__note a::after, .contact-list span > a::after,
.biz-id__kicker a::after, .branch__more::after, .cyd-disclosure-panel a::after { content: ""; position: absolute; inset: -12px -3px; }
.kicker a, .cat-index__kids a, .district__towns a { display: inline-block; padding-block: 4px; margin-block: -4px; } /* the box itself stays >= 24px */

/* ---------- Breadcrumbs, page heads, tabs ---------- */
.crumbs { padding-block: 6px 0; font-size: var(--fs-xs); color: var(--ink-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 10px; border-top: 1.4px solid currentColor; border-right: 1.4px solid currentColor; transform: rotate(45deg); opacity: .55; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 550; }

.dir-head, .news-head { padding-bottom: clamp(20px, 2vw, 36px); }
.page-title { font-size: var(--fs-2xl); line-height: 1.04; margin-top: 12px; max-width: 22ch; }
.page-intro { margin-top: 14px; max-width: 64ch; color: var(--ink-soft); font-size: var(--fs-md); }
.page-intro p + p { margin-top: .8em; }
@media (max-width: 600px) { .page-intro { font-size: var(--fs-base); line-height: 1.5; } }
.news-head { padding-top: clamp(16px, 3vw, 40px); }

.tabs { margin-top: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs ul { list-style: none; display: flex; gap: 4px; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--ink-soft); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Directory ---------- */
.filters { position: sticky; top: calc(var(--header-h) + var(--adminbar)); z-index: 20; background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.filters__form { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; padding-block: 12px; }
.filters__field { display: grid; gap: 4px; min-width: 0; }
.filters__field label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); }
.filters__field input, .filters__field select {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: var(--fs-sm);
  appearance: none; -webkit-appearance: none;
}
.filters__field select { padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23667' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; text-overflow: ellipsis; }
.filters__field input:focus, .filters__field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.filters__submit { min-height: 44px; }
.filters__more { display: contents; }
.filters__toggle { display: none; }
.filters__count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.filters__count[hidden] { display: none; }
.filters__toggle .icon { width: 18px; height: 18px; }
@media (max-width: 1000px) {
  .filters { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .filters__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters__field--q { grid-column: 1 / -1; }
  .filters__submit { grid-column: 1 / -1; }
  /* With JS: one sticky row (keyword + Filters button); the rest opens below it. */
  .js .filters { position: sticky; top: calc(var(--header-h) + var(--adminbar)); }
  .js .filters__form { grid-template-columns: minmax(0, 1fr) auto; padding-block: 10px; }
  .js .filters__field--q { grid-column: auto; }
  .js .filters__field--q label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .filters__toggle { display: inline-flex; }
  .js .filters__more { grid-column: 1 / -1; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; max-height: calc(100vh - var(--header-h) - 96px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 4px; margin: -2px; }
  .js .filters.is-open .filters__more { display: grid; }
  .filters__more .filters__submit { grid-column: 1 / -1; order: 10; }
  .filters__toggle[aria-expanded="true"] { background: var(--ink); color: var(--bg); --b: var(--ink); }
}

.dir-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 20px; }
.dir-count { font-size: var(--fs-sm); color: var(--ink-soft); }
.dir-count strong { color: var(--ink); }
.active-filters { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.view-toggle { display: inline-flex; margin-left: auto; padding: 3px; background: var(--surface-2); border-radius: var(--radius-btn); }
.view-toggle a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-btn); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.view-toggle a .icon { width: 16px; height: 16px; }
.view-toggle a.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px color-mix(in oklab, var(--ink) 18%, transparent); }

.dir-results { padding-bottom: 40px; }
.dir-results--map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.dir-map { position: sticky; top: calc(var(--header-h) + 90px); }
.dir-map .leaflet-box { height: calc(100vh - var(--header-h) - 130px); min-height: 420px; }
@media (max-width: 1000px) { .dir-results--map { grid-template-columns: 1fr; } .dir-map { position: static; } .dir-map .leaflet-box { height: min(60vh, 440px); min-height: 320px; } }

.leaflet-box { position: relative; z-index: 0; height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--map-land); border: 1px solid var(--line); }
.leaflet-box .leaflet-tile-pane { filter: grayscale(.85) contrast(.95) brightness(1.04); }
.leaflet-box.is-failed::after { content: "The map couldn’t load. Addresses are listed below."; position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--ink-soft); }
.map-pin span { display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 4px 10px -2px color-mix(in oklab, var(--ink) 50%, transparent); }
.map-pin--current span { background: var(--accent-2); }
.map-pop { display: grid; gap: 4px; text-decoration: none; font-family: var(--font-body); color: var(--ink) !important; }
.map-pop .stars { font-size: 11px; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm); }
.leaflet-container .leaflet-control-attribution { font-size: var(--fs-xs); }
/* Before Leaflet arrives the box is a quiet placeholder, not a blank grey block. */
.leaflet-box:not(.leaflet-container):not(.is-failed)::before {
  content: "Loading map…"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 600;
  background: radial-gradient(circle at 50% 50%, transparent 0 38%, color-mix(in oklab, var(--map-land) 70%, var(--bg)) 70%),
    repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in oklab, var(--ink) 6%, transparent) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, color-mix(in oklab, var(--ink) 6%, transparent) 31px 32px), var(--map-land);
}
.map-cluster { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--ink); color: var(--bg); border: 3px solid var(--surface); font: 700 13px/1 var(--font-body); box-shadow: 0 4px 10px -2px color-mix(in oklab, var(--ink) 50%, transparent); cursor: pointer; }
.p-bold .map-cluster, .p-ledger .map-cluster, .p-chambers .map-cluster, .p-terrace .map-cluster { border-radius: var(--radius-sm); }
.map-hint { position: absolute; z-index: 800; left: 50%; top: 12px; transform: translateX(-50%); padding: 8px 12px; border-radius: var(--radius-btn); background: color-mix(in oklab, var(--ink) 86%, transparent); color: var(--bg); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; pointer-events: none; transition: opacity .2s; }
.leaflet-box.is-active .map-hint { opacity: 0; }

.pagination { padding-block: 24px 56px; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-btn); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination .dots { border: 0; background: none; }

.related-terms { padding-bottom: 72px; }
.related-terms .section-title { margin-bottom: 16px; }

/* Empty states */
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(32px, 6vw, 72px) 16px; max-width: 560px; margin-inline: auto; }
.empty__art { width: min(300px, 72vw); mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
.empty__title { font-size: var(--fs-xl); }
.empty__text { color: var(--ink-soft); margin-bottom: 8px; }

/* ---------- Business page ---------- */
.biz-head { padding-bottom: 8px; }
.biz-cover { aspect-ratio: 21 / 7; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); margin-top: 10px; }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; }
.biz-id { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; padding: 0 clamp(0px, 2vw, 24px); margin-top: -48px; }
.biz-id__logo { width: 112px; height: 112px; font-size: 2rem; box-shadow: 0 0 0 5px var(--bg), 0 12px 28px -12px color-mix(in oklab, var(--ink) 50%, transparent); }
.biz-id__text { padding-top: 56px; min-width: 0; }
.biz-id__kicker { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: var(--fs-sm); font-weight: 600; }
.biz-id__kicker a { color: var(--accent); text-decoration: none; }
.biz-id__place { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-soft); font-weight: 500; }
.biz-id__place .icon { width: 16px; height: 16px; }
.biz-id__name { margin-top: 6px; font-size: var(--fs-2xl); line-height: 1.02; }
.biz-id__parent { margin-top: 6px; color: var(--ink-soft); }
.biz-id__parent a { color: var(--ink); font-weight: 600; }
.biz-id__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.biz-rating { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.biz-rating__num { font-size: 1.75rem; line-height: 1; }
.biz-rating__count { font-size: var(--fs-sm); color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--line); }
.biz-id__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
@media (max-width: 1000px) {
  .biz-id { grid-template-columns: auto minmax(0, 1fr); }
  .biz-id__actions { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .biz-cover { aspect-ratio: 16 / 9; }
  .biz-id { grid-template-columns: 1fr; margin-top: -40px; padding: 0 4px; }
  .biz-id__logo { width: 80px; height: 80px; font-size: 1.5rem; }
  .biz-id__text { padding-top: 0; }
  .biz-id__actions .btn { flex: 1; }
}

.biz-tabs { position: sticky; top: calc(var(--header-h) + var(--adminbar)); z-index: 15; margin-top: 28px; background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.biz-tabs ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.biz-tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.biz-tabs a:hover { color: var(--accent); }

.biz-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 4vw, 72px); padding-block: 40px 80px; align-items: start; }
@media (max-width: 1000px) { .biz-body { grid-template-columns: 1fr; } }
.biz-sec { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.biz-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.biz-sec__title { font-size: var(--fs-xl); margin-bottom: 20px; }
.biz-sec__sub { font-size: var(--fs-sm); font-weight: 700; margin: 24px 0 10px; }
.standfirst { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.35; margin-bottom: 20px; max-width: 46ch; font-stretch: var(--display-stretch); }

.prose { font-size: var(--fs-base); line-height: 1.7; max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); font-size: var(--fs-xl); margin-top: 1.8em; line-height: 1.12; }
.prose h3 { font-size: var(--fs-md); margin-top: 1.6em; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: var(--fs-lg); }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }

.gallery-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); width: 100%; }

.leaflet-box--biz { margin-bottom: 24px; }
.branch-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .branch-list { grid-template-columns: 1fr; } }
.branch { display: grid; gap: 8px; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.branch__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.branch__name { font-family: var(--font-display); font-size: var(--fs-md); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); }
.branch__name a { text-decoration: none; }
.branch__rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.branch__rating .stars { font-size: 11px; }
.branch__line { position: relative; display: flex; gap: 8px; font-size: var(--fs-sm); color: var(--ink-soft); }
.branch__line .icon { width: 17px; height: 17px; margin-top: 3px; }
.branch__more { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); margin-top: 4px; }

.review-source { padding: clamp(18px, 2.5vw, 28px); background: var(--surface); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.review-source + .review-source { margin-top: 18px; }
.review-source__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.review-source__score { display: flex; align-items: center; gap: 16px; }
.review-source__num { font-size: 3rem; line-height: 1; }
.review-source__count { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 4px; }
.review-source__count strong { color: var(--ink); }
.review-source__attr { margin-top: 18px; font-size: var(--fs-xs); color: var(--ink-soft); }
.notice--demo { margin-top: 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sand); font-size: var(--fs-sm); }
.reviews { list-style: none; margin-top: 20px; display: grid; }
.review { padding-block: 18px; border-top: 1px solid var(--line); }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.review__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 700; }
.review__author { font-weight: 650; font-size: var(--fs-sm); }
.review__time { font-size: var(--fs-xs); color: var(--ink-soft); }
.review__text { margin-top: 10px; max-width: 64ch; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.facts div { padding: 14px 16px; background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.facts dt { font-size: var(--fs-xs); color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-weight: 650; }
.cred-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
@media (max-width: 600px) { .cred-grid { grid-template-columns: 1fr; } }
.cred__title { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 8px; }
.cred ul { list-style: none; display: grid; gap: 6px; }
.cred li { display: flex; gap: 8px; font-size: var(--fs-sm); }
.cred .icon { width: 17px; height: 17px; color: var(--accent); margin-top: 3px; }

.biz-aside { position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: 16px; max-height: calc(100vh - var(--header-h) - 88px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 4px 16px 24px; margin: -4px -16px -24px; }
@media (max-width: 1000px) { .biz-aside { position: static; max-height: none; overflow: visible; padding: 0; margin: 0; } }
.panel { padding: 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.panel__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; margin-bottom: 14px; }
.panel__title .icon { width: 18px; height: 18px; color: var(--accent); }
.panel__note { margin-top: 12px; font-size: var(--fs-xs); color: var(--ink-soft); }
.contact-list { list-style: none; display: grid; gap: 12px; font-size: var(--fs-sm); }
.contact-list li { position: relative; display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.contact-list li > a::after, .branch__line a::after { content: ""; position: absolute; inset: -11px 0; } /* whole row is the target */
.contact-list .icon { width: 18px; height: 18px; color: var(--ink-soft); margin-top: 2px; }
.contact-list a { color: var(--ink); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-btn); border: 1px solid var(--line); color: var(--ink); }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social .icon { width: 18px; height: 18px; }
.hours { display: grid; gap: 2px; margin: 0; font-size: var(--fs-sm); }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: var(--radius-sm); }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .is-today { background: var(--accent-soft); }
.hours .is-today dt, .hours .is-today dd { color: var(--ink); font-weight: 650; }
.hours__today { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.panel--claim { background: var(--sand); box-shadow: none; }
.panel--claim p { font-size: var(--fs-sm); margin-bottom: 14px; }
.panel--claim .panel__title { font-family: var(--font-display); font-size: var(--fs-md); font-weight: var(--display-weight); font-stretch: var(--display-stretch); }
.biz-updated { font-size: var(--fs-xs); color: var(--ink-soft); padding: 0 4px; }

/* ---------- Articles ---------- */
.article-head { padding-top: clamp(8px, 2vw, 24px); }
.article-head .kicker { margin-top: 20px; }
.article-title { margin-top: 12px; font-size: var(--fs-2xl); line-height: 1.04; }
.article-dek { margin-top: 18px; font-size: var(--fs-md); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.byline__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: var(--fs-sm); }
.byline__author { font-weight: 650; font-size: var(--fs-sm); }
.byline__meta { display: flex; gap: 14px; font-size: var(--fs-xs); color: var(--ink-soft); }
.article-hero { margin: clamp(28px, 4vw, 48px) 0 0; }
.article-hero__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); }
.article-hero figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-soft); }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); gap: 40px; padding-block: clamp(32px, 4vw, 56px) 72px; }
.article-body .prose { grid-column: 2; max-width: none; }
.article-body .toc { grid-column: 1; grid-row: 1; }
.article-body .mentioned { grid-column: 3; grid-row: 1; }
@media (max-width: 1180px) {
  .article-body { grid-template-columns: minmax(0, 1fr) 280px; max-width: calc(1080px + var(--gutter) * 2); }
  .article-body .prose { grid-column: 1; grid-row: 1 / span 2; }
  .article-body .toc { grid-column: 2; grid-row: 1; }
  .article-body .mentioned { grid-column: 2; grid-row: 2; }
}
@media (max-width: 900px) {
  .article-body { grid-template-columns: 1fr; max-width: calc(760px + var(--gutter) * 2); }
  .article-body .prose, .article-body .toc, .article-body .mentioned { grid-column: 1; grid-row: auto; }
  .article-body .toc { order: -1; }
}
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: var(--fs-sm); }
@media (max-width: 900px) { .toc { position: static; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); } }
.toc__title { font-weight: 700; margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.mentioned { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
@media (max-width: 900px) { .mentioned { position: static; } }
.mentioned__title { font-size: var(--fs-sm); font-weight: 700; }
.mentioned__list { display: grid; gap: 14px; }
.editor-note { margin-top: 3em !important; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2); font-size: var(--fs-sm); line-height: 1.55; }
.editor-note a { color: var(--accent); }
.editor-note p + p { margin-top: .6em; }
.editor-note__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.byline__role { font-weight: 500; color: var(--ink-soft); }
.byline__meta { flex-wrap: wrap; row-gap: 2px; }
.byline__avatar--org { background: var(--ink); color: var(--bg); }
.article-review { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: var(--fs-sm); line-height: 1.5; }
.article-review .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.article-review__date { display: inline-block; margin-left: .6em; color: var(--ink-soft); }
.article-review__date::before { content: "·"; margin-right: .6em; }
.article-review__disclosure { margin: 4px 0 0 26px; font-size: var(--fs-xs); color: var(--ink-soft); max-width: 64ch; }
.article-disclaimer { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); font-size: var(--fs-sm); line-height: 1.5; max-width: 64ch; }
.article-sources { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.article-sources h2 { font-size: var(--fs-md); margin: 0 0 .6em; }
.article-sources ol { padding-left: 1.3em; display: grid; gap: .45em; }
.article-sources a { color: var(--accent); overflow-wrap: anywhere; }
.article-sources__pub { color: var(--ink-soft); }
.author-head { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.author-head__avatar { width: 64px; height: 64px; font-size: var(--fs-md); flex: none; }
.author-head__role { margin-top: 4px; color: var(--ink-soft); font-size: var(--fs-sm); }
.author-head__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: var(--fs-sm); }
@media (max-width: 600px) { .article-review__date { display: block; margin-left: 0; } .article-review__date::before { content: none; } }
.section--related { background: var(--surface); }

/* ---------- Pages, search, 404 ---------- */
.page-head { padding-block: clamp(24px, 4vw, 56px) 24px; }
.page .prose { padding-bottom: 80px; }
.search-inline { display: flex; gap: 8px; max-width: 560px; margin-top: 20px; }
.search-inline input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); }
.search-inline input:focus { outline: none; border-color: var(--accent); }
.search-block + .search-block { margin-top: 64px; }
.notfound { display: grid; justify-items: center; text-align: center; }
.notfound .page-title { max-width: 18ch; }
.notfound .search-inline { width: 100%; }
.notfound__links { display: flex; gap: 20px; margin-top: 24px; font-weight: 600; }
.notfound__links a { color: var(--accent); }

/* ---------- Owner dashboard (app layout + plugin classes) ---------- */
.app-head { padding-block: clamp(24px, 3vw, 44px); background: var(--surface); border-bottom: 1px solid var(--line); }
.app-head__title { font-size: var(--fs-xl); }
.app-head__intro { margin-top: 6px; color: var(--ink-soft); }
.app { padding-block: 32px 96px; }
.app > p:empty { display: none; }

.cyd-dashboard { display: grid; gap: 24px; }
.cyd-card { padding: clamp(18px, 2.5vw, 28px); background: var(--surface); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.cyd-card h2, .cyd-card h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); margin-bottom: 12px; }
.cyd-card h2 { font-size: var(--fs-lg); }
.cyd-card h3 { font-size: var(--fs-md); }
.cyd-card p + p { margin-top: .6em; }
.cyd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: start; }
.cyd-tabs ul { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.cyd-tabs { position: sticky; top: calc(var(--header-h) + var(--adminbar)); z-index: 5; background: var(--bg); display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); list-style: none; padding: 0; margin: 0 0 8px; scrollbar-width: none; }
.cyd-tabs a, .cyd-tabs button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); text-decoration: none; white-space: nowrap; cursor: pointer; }
.cyd-tabs a:hover, .cyd-tabs button:hover { color: var(--ink); }
.cyd-tabs .is-active, .cyd-tabs [aria-current], .cyd-tabs [aria-selected="true"], .cyd-tabs .active { color: var(--ink); border-bottom-color: var(--accent); }
.cyd-form { display: grid; gap: 18px; max-width: 760px; }
.cyd-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0; display: grid; gap: 16px; }
.cyd-form legend { padding: 0 6px; font-weight: 700; font-size: var(--fs-sm); }
.cyd-field { display: grid; gap: 6px; }
.cyd-field label, .cyd-field > span:first-child { font-size: var(--fs-sm); font-weight: 600; }
.cyd-field small, .cyd-field .description, .cyd-field .help { font-size: var(--fs-xs); color: var(--ink-soft); }
.cyd-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .cyd-field select, .cyd-field textarea,
.cyd-form input[type=text], .cyd-form input[type=email], .cyd-form input[type=password], .cyd-form input[type=url], .cyd-form input[type=tel], .cyd-form input[type=number], .cyd-form select, .cyd-form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: var(--fs-base);
}
.cyd-form textarea, .cyd-field textarea { min-height: 120px; line-height: 1.5; resize: vertical; }
.cyd-form input:focus, .cyd-form select:focus, .cyd-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.cyd-form input[type=checkbox], .cyd-form input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); }
.cyd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .6em 1.2em; border: 1.5px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); color: var(--ink); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.cyd-btn:hover { border-color: var(--ink); color: var(--ink); }
.cyd-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cyd-btn--primary:hover { background: color-mix(in oklab, var(--accent) 86%, var(--ink)); color: var(--on-accent); border-color: transparent; }
.cyd-notice { padding: 14px 18px; border-radius: var(--radius-sm); border-left: 4px solid var(--ink-soft); background: var(--surface); font-size: var(--fs-sm); }
.cyd-notice--success { border-left-color: #2E8B57; background: color-mix(in oklab, #2E8B57 10%, var(--surface)); }
.cyd-notice--error { border-left-color: #C0392B; background: color-mix(in oklab, #C0392B 9%, var(--surface)); }
.cyd-notice--info { border-left-color: var(--accent); background: var(--accent-soft); }
.app .cyd-dashboard > h2, .app > h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: var(--fs-lg); }

/* ---------- Areas page ---------- */
.areas--page { align-items: start; }
.areas--page .areas__map { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .areas--page .areas__map { position: static; } }
.area-index { display: grid; gap: 36px; }
.area-block__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--fs-xl); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.area-block__title a { text-decoration: none; }
.area-block__title span { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.area-block__towns { list-style: none; columns: 2; column-gap: 32px; margin-top: 12px; }
.area-block__towns li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: var(--fs-sm); }
.area-block__towns a { text-decoration: none; }
.area-block__towns a:hover { color: var(--accent); text-decoration: underline; }
.area-block__towns span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.area-block__towns .is-empty a { color: var(--ink-soft); }

@media (max-width: 1000px) {
  .site-header, .biz-tabs { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}

/* ---------- Motion: a single orchestrated load for the hero ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__kicker, .hero__title, .hero__intro, .ai-search { animation: rise .7s var(--ease) both; }
  .hero__title { animation-delay: .06s; }
  .hero__intro { animation-delay: .14s; }
  .ai-search { animation-delay: .22s; }
  .hero__frame { animation: reveal 1.1s var(--ease) both .1s; }
  .hero__spot { animation: rise .7s var(--ease) both .55s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes reveal { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 600px) {
  .cy-map__name { font-size: 36px; }
  .cy-map__count { font-size: 24px; }
  .cy-map__district .cy-map__count { display: none; }
}
@media (max-width: 600px) {
  .wordmark { min-width: 0; flex: 0 1 auto; }
  .wordmark__text { font-size: clamp(1.05rem, 5vw, 1.375rem); }
  .header-actions { gap: 0; }
  .wordmark--footer .wordmark__text { font-size: clamp(1.4rem, 7.4vw, 2.25rem); white-space: normal; }
}

/* Dashboard details */
.cyd-auth { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); max-width: 980px; }
.cyd-card > p:not(.cyd-field) { color: var(--ink-soft); }
.cyd-card > p + form, .cyd-card > p + .cyd-form, .cyd-card form { margin-top: 18px; }
.cyd-form > p:not(.cyd-field) { margin: 0; }
.cyd-field { margin: 0; }
.cyd-label { font-size: var(--fs-sm); font-weight: 600; }
.cyd-muted, .cyd-inherit, .cyd-counter { color: var(--ink-soft); font-size: var(--fs-xs); }
.cyd-awaiting { display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--sand); font-size: var(--fs-xs); }
.cyd-back { font-size: var(--fs-sm); }
.cyd-back a { color: var(--accent); text-decoration: none; }
.cyd-dashboard__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cyd-dashboard__header h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); font-size: var(--fs-xl); }
.cyd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.cyd-completeness { display: grid; gap: 6px; margin-top: 14px; color: var(--accent); }
.cyd-completeness small { color: var(--ink-soft); font-size: var(--fs-xs); }
.cyd-meter { background: var(--surface-2) !important; }
.cyd-owner-card header p { color: var(--ink-soft); font-size: var(--fs-sm); }
.cyd-owner-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cyd-badge { display: inline-flex; align-items: center; padding: .15em .6em; border-radius: var(--radius-btn); background: var(--surface-2); font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; color: var(--ink); }
.cyd-badge--publish, .cyd-badge--live, .cyd-badge--success, .cyd-badge--approved { background: color-mix(in oklab, #2E8B57 16%, var(--surface)); color: #1F6B42; }
.cyd-badge--pending, .cyd-badge--warning, .cyd-badge--review { background: var(--sand); }
.cyd-badge--rejected, .cyd-badge--error, .cyd-badge--draft { background: color-mix(in oklab, #C0392B 12%, var(--surface)); color: #8E2A20; }
.cyd-branches { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; font-size: var(--fs-sm); }
.cyd-branches summary { cursor: pointer; font-weight: 600; }
.cyd-branches ul { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.cyd-branches li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cyd-branches a { color: var(--accent); }
.cyd-checks label { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: var(--fs-sm); }
.cyd-check--child { padding-left: 22px; }
.cyd-hours input { min-height: 40px !important; }
.cyd-listing-form { max-width: 880px; }
.cyd-listing-form fieldset.cyd-card { border: 0; }
.cyd-listing-form legend { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: var(--fs-lg); padding: 0; float: left; width: 100%; margin-bottom: 8px; }
.cyd-listing-form legend + * { clear: both; }
.cyd-form input[type=file] { font-size: var(--fs-sm); }
.cyd-form input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); font-weight: 600; cursor: pointer; }
/* wp_login_form() markup inside the dashboard */
#cyd-loginform { display: grid; gap: 16px; }
#cyd-loginform p { margin: 0; display: grid; gap: 6px; }
#cyd-loginform label { font-size: var(--fs-sm); font-weight: 600; }
#cyd-loginform .input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
#cyd-loginform .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
#cyd-loginform .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
#cyd-loginform .login-remember input { width: 18px; height: 18px; accent-color: var(--accent); }
#cyd-loginform .button { justify-self: start; min-height: 44px; padding: .6em 1.3em; border: 0; border-radius: var(--radius-btn); background: var(--ink); color: var(--bg); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; }
#cyd-loginform .button:hover { background: var(--accent); color: var(--on-accent); }
.cyd-auth__login > p:last-child { margin-top: 14px; font-size: var(--fs-sm); }
.cyd-auth__login > p:last-child a { color: var(--accent); }

/* Data attribution */
.footer-attribution { max-width: 80ch; padding-bottom: 24px; font-size: var(--fs-sm); }
.dir-attribution { padding-bottom: 40px; font-size: var(--fs-xs); color: var(--ink-soft); max-width: 90ch; }

/* [cyd_business] embeds inside articles */
.cyd-embed { margin: 1.8em 0; padding: 0; overflow: hidden; }
.prose .cyd-embed a { color: inherit; }
.cyd-embed__link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; text-decoration: none; transition: background-color .15s; }
.cyd-embed__link:hover { background: var(--accent-soft); }
.cyd-embed__logo { width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.cyd-embed__body { display: grid; gap: 2px; min-width: 0; }
.cyd-embed__name { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); font-size: var(--fs-md); line-height: 1.2; }
.cyd-embed__parent, .cyd-embed__meta { font-size: var(--fs-xs); color: var(--ink-soft); }
.cyd-embed__short { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.45; margin-top: 4px; }
.cyd-embed__rating { font-size: var(--fs-xs); font-weight: 650; margin-top: 4px; }
.cyd-embed__rating [aria-hidden] { color: var(--accent-2); }
.cyd-embed__count { font-weight: 400; color: var(--ink-soft); }
.cyd-embed__cta { align-self: center; font-size: var(--fs-sm); font-weight: 650; color: var(--accent); white-space: nowrap; }
@media (max-width: 600px) { .cyd-embed__link { grid-template-columns: auto minmax(0, 1fr); } .cyd-embed__cta { grid-column: 1 / -1; } }
/* backdrop-filter makes the header a containing block for the fixed mobile panel; drop it while open. */
.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
.nav-list .mega__all { padding: 0; min-height: 44px; color: var(--accent); font-family: var(--font-body); }
