/* ==========================================================================
   ClearPortals Directories: design system v2.0 (2026-11-18)
   Dark ground + gold brand from clearportals.com; per-directory accent.
   <body data-dir="marine|hangars|avionics|ev"> (or .dir-marine etc.)
   Fonts: Fraunces (display, OFL) + Inter (text/UI, OFL), self-hosted, swap.
   Production path: /directories/assets/cp-directories.css
   Every text/background pair here is checked for WCAG AA (see README).
   ========================================================================== */

/* ---------- 0. Fonts (variable, latin subset, 2 files total) ---------- */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap; }

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #0b0c0e; --bg-2: #12141a; --bg-3: #181b22; --bg-4: #1f232c;
  --ink: #ece8df;            /* 16.9:1 on --bg */
  --ink-2: #d6d1c6;          /* 13.4:1 */
  --mute: #a39d91;           /* 7.2:1 on --bg, 6.0:1 on --bg-4 */
  --line: rgba(236,232,223,.10);
  --line-strong: rgba(236,232,223,.22);
  --gold: #c4a574; --gold-dim: #8a7349;
  --warn: #e6b450; --ok: #8fc98a; --err: #ec8a8a;

  --accent: var(--gold); --accent-dim: var(--gold-dim);
  --accent-ink: #14110c; --accent-wash: rgba(196,165,116,.10); --accent-glow: rgba(196,165,116,.28);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: var(--display); --sans: var(--text);  /* v1 aliases */

  /* modular scale, ratio 1.25 (major third), base 1rem = 16px; fluid at the top */
  --step--2: .64rem; --step--1: .8rem; --step-0: 1rem; --step-1: 1.25rem; --step-2: 1.5625rem;
  --step-3: clamp(1.6rem, 1.35rem + 1vw, 1.953rem);
  --step-4: clamp(1.95rem, 1.5rem + 1.9vw, 2.441rem);
  --step-5: clamp(2.3rem, 1.6rem + 3vw, 3.815rem);
  /* v1 aliases */
  --fs-xs: var(--step--2); --fs-sm: var(--step--1); --fs-ui: .875rem; --fs-body: var(--step-0);
  --fs-lead: var(--step-1); --fs-h3: var(--step-1); --fs-h2: var(--step-4); --fs-h1: var(--step-5);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --gutter: clamp(20px, 5vw, 80px);
  --measure: 38em; --maxw: 1240px;
  --radius: 10px; --radius-sm: 6px; --radius-pill: 999px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -24px rgba(0,0,0,.7);
  --ease: cubic-bezier(.2,.7,.2,1);
  --nav-h: 60px;
}

/* ---------- 2. Per-directory accents ---------- */
[data-dir="marine"],   .dir-marine   { --accent: #4fb8c4; --accent-dim: #2f6f77; --accent-wash: rgba(79,184,196,.10);  --accent-glow: rgba(79,184,196,.30);  --accent-ink: #061416; }
[data-dir="hangars"],  .dir-hangars  { --accent: #e0925a; --accent-dim: #8a5634; --accent-wash: rgba(224,146,90,.10);  --accent-glow: rgba(224,146,90,.30);  --accent-ink: #1a0e06; }
[data-dir="avionics"], .dir-avionics { --accent: #7fb2f0; --accent-dim: #46668c; --accent-wash: rgba(127,178,240,.10); --accent-glow: rgba(127,178,240,.30); --accent-ink: #07101c; }
[data-dir="ev"],       .dir-ev       { --accent: #9fd66b; --accent-dim: #5b7d3c; --accent-wash: rgba(159,214,107,.10); --accent-glow: rgba(159,214,107,.30); --accent-ink: #0c1406; }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 72px); }
body { margin: 0; font: 400 var(--step-0)/1.6 var(--text); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; font-feature-settings: "cv11", "ss01"; }
@media (min-width: 900px) { body { font-size: 1.0625rem; } }
img, svg, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0 0 var(--s3); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h1 { font: 400 var(--step-5)/1.02 var(--display); letter-spacing: -.025em; font-variation-settings: "opsz" 56; }
h2 { font: 400 var(--step-4)/1.08 var(--display); letter-spacing: -.02em; font-variation-settings: "opsz" 40; }
h3 { font: 600 var(--step-1)/1.25 var(--text); letter-spacing: -.01em; }
h4, .toc-title { font: 600 var(--step--2)/1.4 var(--text); color: var(--mute); text-transform: uppercase; letter-spacing: .14em; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: var(--s2) var(--s4); z-index: 100; border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { left: var(--s4); }
.num, time, .stat .n, table.data td, .facts dd { font-variant-numeric: tabular-nums; }
.js-only { display: none; } .js .js-only { display: revert; }
.js .no-js-only { display: none; }

/* ---------- 4. Header: logo + nav (horizontal scroll row on phones) ---------- */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: var(--s5);
  min-height: var(--nav-h); padding: 0 var(--gutter); background: rgba(11,12,14,.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.logo { flex: none; display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none;
  font: 600 1.05rem/1 var(--display); letter-spacing: .01em; padding: 18px 0; }
.logo .section { font: 600 var(--step--2)/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.nav nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav nav::-webkit-scrollbar { display: none; }
.nav nav a, .nav nav span { flex: none; white-space: nowrap; color: var(--mute); text-decoration: none; font: 500 .875rem/1 var(--text);
  padding: 10px 12px; border-radius: var(--radius-pill); }
.nav nav a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.nav nav a[aria-current="page"] { color: var(--ink); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.nav nav .soon { opacity: .9; cursor: default; }
.nav nav .soon::after { content: " · soon"; font-size: .75rem; }
.accent-rule { height: 2px; background: linear-gradient(90deg, var(--accent), transparent 75%); }
@media (max-width: 760px) {
  :root { --nav-h: 0px; }
  .nav { position: relative; flex-wrap: wrap; gap: 0; padding: 0; }
  .logo { padding: 14px var(--gutter) 6px; }
  .nav nav { width: 100%; margin: 0; padding: 4px calc(var(--gutter) - 8px) 10px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav nav a, .nav nav span { padding: 10px 12px; min-height: 40px; display: inline-flex; align-items: center; }
}

/* ---------- 5. Layout ---------- */
.wrap { padding: var(--s8) var(--gutter); }
.wrap.tight { padding-top: var(--s6); padding-bottom: var(--s6); }
.wrap > *, .dir-hero > .hero-inner { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.band { background: var(--bg-3); } .band-2 { background: var(--bg-2); }
.container { max-width: var(--maxw); margin: 0 auto; }
.prose { max-width: var(--measure); }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.with-aside { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: var(--s7); align-items: start; }
.with-aside > * { min-width: 0; }
.with-aside > aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }

/* ---------- 6. Type helpers ---------- */
.eyebrow { font: 600 var(--step--2)/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--s3); }
.lead { color: var(--ink-2); max-width: 34em; font: 400 var(--step-1)/1.5 var(--text); letter-spacing: -.005em; }
.muted { color: var(--mute); }
.note, .small { font: 400 var(--step--1)/1.55 var(--text); color: var(--mute); }
.mono { font-family: var(--mono); font-size: .9em; }
.placeholder { background: var(--accent-wash); outline: 1px dashed var(--accent-dim); padding: 0 .2em; }

/* ---------- 7. Breadcrumb ---------- */
.crumbs { font: 500 var(--step--1) var(--text); color: var(--mute); margin: 0 0 var(--s5); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--mute); text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- 8. Cinematic hero ---------- */
.dir-hero { position: relative; isolation: isolate; overflow: hidden; padding: var(--s9) var(--gutter) var(--s7);
  min-height: min(78vh, 760px); display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(ellipse at 80% 0%, var(--accent-wash), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.dir-hero.compact { min-height: min(56vh, 520px); padding-top: var(--s8); }
.dir-hero > .hero-inner { width: 100%; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, 50% 50%); filter: saturate(.75) contrast(1.05); }
.dir-hero::before { /* scrim: guarantees AA for text over any photo (see README) */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,12,14,.55) 0%, rgba(11,12,14,.35) 30%, rgba(11,12,14,.86) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,12,14,.88) 0%, rgba(11,12,14,.6) 45%, rgba(11,12,14,.15) 100%); }
.dir-hero::after { /* accent light leak */
  content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 70%; height: 120%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent); mix-blend-mode: screen; opacity: .55; pointer-events: none; }
.dir-hero.abstract .hero-media { background:
  radial-gradient(60% 80% at 85% 10%, rgba(196,165,116,.28), transparent 60%),
  radial-gradient(40% 60% at 10% 90%, rgba(79,184,196,.12), transparent 60%),
  conic-gradient(from 210deg at 70% 40%, #0b0c0e, #151821, #0b0c0e 40%); }
.hero-grid-lines { position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); }
.dir-hero h1 { max-width: 13em; color: #f4f1ea; }
.dir-hero .eyebrow { color: #ece8df; display: inline-flex; align-items: center; gap: 10px; }
.dir-hero .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.dir-hero .lead { color: #ddd8cd; }
.dir-hero .crumbs, .dir-hero .crumbs a { color: #e2ddd2; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--s6); }
.stats { display: flex; flex-wrap: wrap; gap: var(--s5) var(--s7); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line-strong); }
.stat .n { display: block; font: 400 var(--step-3)/1.1 var(--display); color: var(--ink); }
.stat .l { font: 500 var(--step--1) var(--text); color: #c9c3b7; }
.photo-credit { position: absolute; right: var(--gutter); bottom: 14px; margin: 0; font: 400 .72rem/1.3 var(--text); color: #b9b3a7; }
.photo-credit a { color: inherit; }
.byline { font: 500 var(--step--1) var(--text); color: #c9c3b7; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: var(--s5) 0 0; }

/* ---------- 9. Buttons, chips, badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); text-decoration: none; color: var(--ink); font: 600 .9rem/1 var(--text);
  background: rgba(255,255,255,.03); cursor: pointer; transition: background .2s var(--ease), border-color .2s, transform .2s var(--ease); }
.btn:hover { border-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
.btn-dark, .btn.btn-dark, .btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-dark:hover, .btn-primary:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.08); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: .82rem; }
.btn svg { width: 16px; height: 16px; }
.chips { display: flex; gap: 8px; margin: var(--s4) 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips li { flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 8px 14px; font: 500 .82rem/1 var(--text);
  color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active, .chip[aria-pressed="true"], .chip[aria-current] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip .count { font-variant-numeric: tabular-nums; opacity: .75; }
.badge { display: inline-flex; align-items: center; gap: 5px; font: 600 .7rem/1 var(--text); letter-spacing: .04em;
  border: 1px solid var(--accent-dim); color: var(--accent); padding: 5px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.badge.solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.badge.neutral { color: var(--ink-2); border-color: var(--line-strong); }
.badge.warn { color: var(--warn); border-color: rgba(230,180,80,.5); }
.badge.example { color: var(--warn); border-style: dashed; border-color: rgba(230,180,80,.6); }
.badge svg { width: 12px; height: 12px; }

/* ---------- 10. Sticky search + filter bar ---------- */
.filterbar { position: sticky; top: var(--nav-h); z-index: 30; margin: 0 calc(var(--gutter) * -1) var(--s5); padding: 12px var(--gutter);
  background: rgba(11,12,14,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.wrap > .filterbar { max-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.band .filterbar { background: rgba(24,27,34,.92); }
.filterbar-inner { max-width: var(--maxw); margin: 0 auto; display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 260px; min-width: 0; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.search input { width: 100%; min-height: 44px; padding: 10px 14px 10px 42px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  background: var(--bg-2); color: var(--ink); font: 400 1rem/1.2 var(--text); }
.search input::placeholder { color: var(--mute); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.filterbar .chips { margin: 0; flex: 1 1 auto; }
.result-count { font: 500 var(--step--1) var(--text); color: var(--mute); margin: 0; white-space: nowrap; }
.empty-state { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: var(--s6); text-align: center; color: var(--mute); }
[hidden] { display: none !important; }

/* ---------- 11. Tiles ---------- */
.tile { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); background: var(--bg-2);
  font: 400 .95rem/1.55 var(--text); color: var(--mute); text-decoration: none; box-shadow: var(--shadow);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s; }
a.tile:hover { border-color: var(--accent-dim); transform: translateY(-2px); background: var(--bg-3); color: var(--mute); }
.tile h3 { color: var(--ink); margin-bottom: var(--s2); }
.tile .meta { font-size: var(--step--1); color: var(--mute); margin: var(--s3) 0 0; font-variant-numeric: tabular-nums; }
.tile .kind { font: 600 var(--step--2) var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--s2); }
.dir-tile { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.dir-tile .tile-media { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-3); position: relative; }
.dir-tile .tile-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform .6s var(--ease); }
.dir-tile .tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,12,14,.75)); }
a.dir-tile:hover .tile-media img { transform: scale(1.04); }
.dir-tile .tile-body { padding: var(--s5) var(--s5) var(--s6); border-top: 2px solid var(--accent); }
.dir-tile h3 { font: 400 var(--step-3)/1.1 var(--display); letter-spacing: -.015em; }
.dir-tile .go { display: inline-flex; gap: 6px; margin-top: var(--s4); color: var(--accent); font: 600 .9rem var(--text); }
.dir-tile .photo-credit { position: static; margin-top: var(--s3); }

/* ---------- 12. Listing card ---------- */
.listings { display: grid; gap: var(--s4); margin: 0 0 var(--s5); padding: 0; list-style: none; }
.listing { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  padding: var(--s5); font: 400 .95rem/1.55 var(--text); color: var(--mute); box-shadow: var(--shadow);
  transition: border-color .25s var(--ease), background .25s; }
.listing::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--accent); }
.listing:hover, .listing.is-active { border-color: var(--accent-dim); background: var(--bg-3); }
.listing.is-active { box-shadow: 0 0 0 3px var(--accent-wash), var(--shadow); }
.listing-head { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; flex-wrap: wrap; }
.listing .kicker { font: 600 var(--step--2) var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.listing h3 { margin: 0 0 4px; font: 600 1.2rem/1.25 var(--text); color: var(--ink); letter-spacing: -.015em; }
.listing .where { margin: 0; font-size: .9rem; color: var(--mute); }
.listing .trust { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s3) 0 0; padding: 0; list-style: none; }
.badge.verified { color: var(--ok); border-color: rgba(143,201,138,.45); }
.badge.checked { color: var(--ink-2); border-color: var(--line-strong); }
.badge.stale { display: none; color: var(--warn); border-color: rgba(230,180,80,.55); }
.listing .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s4) 0 0; padding: 0; list-style: none; }
.listing .facts { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 8px var(--s5); margin: var(--s4) 0 0;
  padding: var(--s4) 0 0; border-top: 1px solid var(--line); font-size: .9rem; }
.listing .facts dt { color: var(--mute); font-weight: 500; }
.listing .facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.listing .contact { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 0; }
.provenance { display: flex; flex-wrap: wrap; gap: 6px var(--s5); border-top: 1px solid var(--line); margin: var(--s4) 0 0; padding-top: var(--s3);
  font-size: var(--step--1); color: var(--mute); }
.provenance a { color: var(--ink-2); } .provenance a:hover { color: var(--accent); }
.provenance time { color: var(--ink); }
.listing.is-stale::before { background: var(--warn); }
.listing.is-stale .badge.stale { display: inline-flex; }
.listing.is-stale .badge.checked { color: var(--warn); border-color: rgba(230,180,80,.4); }
.listing.is-stale .provenance time { color: var(--warn); }
.listing.is-stale .stale-flag { display: inline; }
.stale-flag { display: none; color: var(--warn); }

/* ---------- 13. Map ---------- */
.map-panel { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.map { height: 340px; width: 100%; background: #0e1014; }
@media (min-width: 1000px) { .map-sticky .map { height: calc(100vh - var(--nav-h) - 120px); min-height: 460px; } }
.map-fallback { display: grid; place-items: center; height: 100%; padding: var(--s5); text-align: center; color: var(--mute); font-size: var(--step--1);
  background: radial-gradient(circle at 50% 40%, var(--accent-wash), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px); }
.map-caption { padding: 10px 14px; margin: 0; font-size: .75rem; color: var(--mute); border-top: 1px solid var(--line); }
.leaflet-container { font: 400 .85rem/1.4 var(--text); background: #0e1014; }
.leaflet-container a { color: var(--accent); }
.leaflet-control-attribution { background: rgba(11,12,14,.85) !important; color: #b9b3a7 !important; font-size: 11px !important; }
.leaflet-control-attribution a { color: #ddd8cd !important; }
.leaflet-bar a { background: var(--bg-3) !important; color: var(--ink) !important; border-color: var(--line-strong) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg-3); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-popup-content strong { display: block; font-weight: 600; margin-bottom: 4px; }
.cp-dark-tiles { filter: invert(1) hue-rotate(180deg) brightness(.78) contrast(.92) saturate(.25); }
.cp-pin { background: none; border: 0; }
.cp-pin span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #0b0c0e;
  box-shadow: 0 0 0 2px var(--accent), 0 0 18px var(--accent-glow); transition: transform .2s var(--ease); }
.cp-pin.is-active span, .cp-pin:hover span, .cp-pin:focus span { transform: scale(1.35); }
.cp-pin.is-dim span { opacity: .25; }

/* ---------- 14. Callouts ---------- */
.disclosure, .callout { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-3); padding: var(--s4) var(--s5);
  font: 400 .9rem/1.6 var(--text); color: var(--ink-2); margin: var(--s5) 0; }
.disclosure strong, .callout strong { color: var(--ink); font-weight: 600; }
.disclosure .label { display: block; font: 600 var(--step--2) var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.disclosure p:last-child, .callout p:last-child { margin-bottom: 0; }
.disclosure.inline { display: inline-block; padding: 6px 12px; font-size: var(--step--1); margin: 0 0 var(--s4); border-radius: var(--radius-pill); }
.callout.notice { border-left: 3px solid var(--warn); }
.callout.tip { border-left: 3px solid var(--accent); }
.aff-link::after { content: " ↗"; font-size: .85em; }
.aff-mark { font: 600 .68rem var(--text); color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 5px; margin-left: 4px; }

/* ---------- 15. Guide / article ---------- */
.article { max-width: var(--measure); }
.article > p:first-of-type.dek { font: 400 var(--step-2)/1.45 var(--display); color: var(--ink); }
.article h2 { margin-top: var(--s7); }
.article h3 { margin-top: var(--s5); }
.article p, .article li { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: var(--s2); }
.article ul.listings, .article ul.chips, .article ul.tags, .article ul.trust { padding-left: 0; }
.article .listing li { margin: 0; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: var(--s5); font: 400 .9rem var(--text); }
.toc ol { margin: 0; padding-left: 1.2em; } .toc li { margin: 8px 0; overflow-wrap: anywhere; }
.toc a { color: var(--ink-2); text-decoration: none; } .toc a:hover { color: var(--accent); }
.table-wrap { overflow-x: auto; margin: var(--s5) 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { border-collapse: collapse; width: 100%; font: 400 .9rem/1.5 var(--text); }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--accent); font-weight: 600; font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; background: var(--bg-2); }
table.data td { color: var(--ink); } table.data tr:last-child td { border-bottom: 0; }
.sources { font: 400 var(--step--1)/1.6 var(--text); color: var(--mute); }
.sources h2 { font: 400 var(--step-3) var(--display); color: var(--ink); }
.sources ol { padding-left: 1.2em; }

/* ---------- 16. FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; font-family: var(--text); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--ink); font: 500 1.05rem/1.4 var(--text); list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mute); margin: 12px 0 0; font-size: .95rem; max-width: 46em; }

/* ---------- 17. Footer ---------- */
footer.site { padding: var(--s7) var(--gutter); font: 400 .875rem/1.6 var(--text); color: var(--mute); border-top: 1px solid var(--line); background: var(--bg); }
footer.site > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
footer.site a { color: var(--gold); }
footer.site .dir-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-bottom: var(--s4); }
footer.site .dir-links a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
footer.site .dir-links a:hover, footer.site .dir-links a[aria-current] { color: var(--ink); }
.credits { font-size: .75rem; }

/* ---------- 17b. International (v2.1, 2026-11-22): country switch, country/region chips, credentials, prices, regulator lines, grouped country hubs ---------- */
.country-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: var(--s5) 0 0; padding: 4px; list-style: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: rgba(11,12,14,.62); }
.country-switch li { display: flex; }
.country-switch a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-pill);
  color: var(--ink-2); text-decoration: none; font: 500 .875rem/1 var(--text); }
.country-switch a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.country-switch a[aria-current] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.country-switch .cc { font: 600 .68rem/1 var(--text); letter-spacing: .1em; opacity: .85; }
.filterbar .chips + .chips { flex: 0 1 auto; padding-left: 10px; border-left: 1px solid var(--line-strong); }
.badge.cred { color: var(--ink); background: var(--bg-4); border-color: var(--line-strong); }
.badge.cred abbr { text-decoration: none; border-bottom: 1px dotted var(--mute); cursor: help; }
.price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.price .ccy { font: 600 .78em/1 var(--text); letter-spacing: .06em; color: var(--mute); }
.price .as-published { color: var(--mute); font-size: .85em; white-space: normal; }
.callout.notice .reg-line { margin-top: var(--s2); color: var(--ink-2); }
.region-groups { display: grid; gap: var(--s7); }
.region-group > h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: var(--step-2); margin: 0 0 var(--s4); }
.region-group > h2 .code { font: 600 var(--step--2)/1 var(--text); letter-spacing: .12em; color: var(--mute); }
.region-group > h2 .n { font: 500 var(--step--1)/1 var(--text); color: var(--mute); margin-left: auto; }
.unit-note { font: 400 var(--step--1)/1.5 var(--text); color: var(--mute); }
@media (max-width: 560px) {
  .country-switch { display: flex; width: 100%; }
  .country-switch li { flex: 1 1 0; }
  .country-switch a { flex: 1 1 auto; justify-content: center; padding: 8px 10px; white-space: nowrap; }
  .country-switch .cc { display: none; }
  .filterbar .chips + .chips { flex: 1 1 100%; padding-left: 0; border-left: 0; }
}

/* ---------- 18. Preview banner (preview/ pages only) ---------- */
.preview-banner { position: relative; z-index: 50; background: repeating-linear-gradient(45deg, #2a2210 0 12px, #241d0e 12px 24px); color: #f0d79a;
  font: 600 .78rem/1.4 var(--text); text-align: center; padding: 8px var(--gutter); letter-spacing: .02em; }

/* ---------- 19. Motion (only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .dir-hero .hero-inner > * { animation: cp-rise .8s var(--ease) both; }
  .dir-hero .hero-inner > *:nth-child(2) { animation-delay: .06s; } .dir-hero .hero-inner > *:nth-child(3) { animation-delay: .12s; }
  .dir-hero .hero-inner > *:nth-child(4) { animation-delay: .18s; } .dir-hero .hero-inner > *:nth-child(n+5) { animation-delay: .24s; }
  .hero-media img { animation: cp-settle 1.6s var(--ease) both; }
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  html { scroll-behavior: smooth; }
}
@keyframes cp-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cp-settle { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1000px) {
  .with-aside { grid-template-columns: minmax(0,1fr); gap: var(--s6); }
  .with-aside > aside { position: static; }
  .with-aside.map-first > aside { display: contents; }
  .with-aside.map-first > aside > .map-panel { order: -1; }
  .with-aside.map-first > aside > :not(.map-panel) { order: 2; }
}
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0,1fr); }
  .wrap { padding: var(--s7) var(--gutter); }
}
@media (max-width: 560px) {
  .dir-hero { min-height: 0; padding: var(--s8) var(--gutter) var(--s7); }
  .dir-hero.compact { min-height: 0; padding-top: var(--s7); }
  .dir-hero::before { background: linear-gradient(180deg, rgba(11,12,14,.72) 0%, rgba(11,12,14,.74) 40%, rgba(11,12,14,.9) 75%, var(--bg) 100%); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .stats { gap: var(--s4) var(--s6); margin-top: var(--s6); }
  .listing { padding: var(--s4); }
  .listing .facts { grid-template-columns: minmax(0,1fr); gap: 2px; }
  .listing .facts dt { margin-top: 8px; font-size: .8rem; }
  .listing .contact .btn { flex: 1 1 auto; justify-content: center; }
  .filterbar { padding: 10px var(--gutter); }
  .filterbar-inner { gap: 8px; }
  .filterbar .search { flex-basis: 100%; }
  .filterbar .chips { flex: 1 1 100%; min-width: 0; }
  .result-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .photo-credit { left: var(--gutter); right: auto; bottom: 10px; }
  .map { height: 300px; }
}
@media print {
  .nav, footer.site, .chips, .filterbar, .map-panel, .hero-media { display: none; }
  body { background: #fff; color: #000; }
  .listing, .disclosure, .callout { border-color: #999; background: #fff; color: #000; box-shadow: none; }
}
