/* London Heathrow Friendly Spots — "arrivals board & wayfinding" */
@font-face { font-family: "Sofia Sans"; src: url("../fonts/SofiaSans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Sofia Sans"; src: url("../fonts/SofiaSans-Italic.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }
@font-face { font-family: "Sofia Sans Condensed"; src: url("../fonts/SofiaSansCondensed.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url("../fonts/SplineSansMono.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --sign: #FFD100;          /* signage yellow — only ever on dark */
  --ink: #1E1F22;           /* charcoal */
  --ink-2: #26282C;
  --ink-3: #34373C;
  --coral: #FF6F59;         /* friendliness: hearts, faces, scores */
  --coral-dk: #A93A26;      /* coral for text on light backgrounds */
  --runway: #D9DEE3;        /* runway grey */
  --bg: #F3F6F8;
  --paper: #FFFFFF;
  --muted: #4D545C;
  --line: #C3CAD1;
  --face-off: #6B737C;
  --t2: #00756A;            /* terminal accents (white text AA) */
  --t3: #1D5FA8;
  --t4: #3B7A1F;
  --t5: #9A5B00;
  --ok: #1D6B3A;
  --err: #B42318;
  --f-board: "Sofia Sans Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.55 var(--f-body); color: var(--ink); background: var(--bg); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--sign); border-radius: 2px; }
.dark :focus-visible, .site-head :focus-visible, .site-foot :focus-visible { outline-color: var(--sign); box-shadow: 0 0 0 6px var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-board); line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 750; }
p { margin: 0 0 1em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--sign); color: var(--ink); padding: 10px 14px; font-weight: 700; border-radius: 0 0 var(--r) var(--r); }
.skip:focus { top: 0; }

/* ---------- independence strip + header (overhead sign) */
.indie { background: #111214; color: #C9D0D7; font-size: .8rem; line-height: 1.35; padding: 6px 0; }
.indie p { margin: 0; }
.site-head { background: var(--ink); color: #fff; border-bottom: 6px solid var(--sign); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-name { font: 800 1.28rem/1 var(--f-board); text-transform: uppercase; letter-spacing: .02em; }
.brand-name small { display: block; font: 500 .74rem/1.3 var(--f-mono); color: var(--sign); letter-spacing: .12em; margin-top: 3px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.main-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 10px; color: #fff; text-decoration: none; font: 700 1rem/1 var(--f-board); text-transform: uppercase; letter-spacing: .04em; border-radius: 3px; }
.main-nav a:hover { background: var(--ink-3); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sign); }
.main-nav .tcode { font-family: var(--f-mono); font-weight: 700; min-width: 40px; justify-content: center; background: var(--tc, var(--ink-3)); padding: 6px 8px; }
.main-nav .tcode:hover { filter: brightness(1.15); background: var(--tc); }
.main-nav .sep { width: 1px; height: 26px; background: #4a4d53; margin: 0 6px; }

/* ---------- split-flap board text */
.flap-tiles { display: inline-flex; flex-wrap: wrap; gap: .18em .42em; }
.flap-word { display: inline-flex; gap: .07em; white-space: nowrap; }
.flap-ch { position: relative; display: inline-grid; place-items: center; min-width: .78em; padding: .1em .06em .06em; background: linear-gradient(180deg, #2E3035 0 49%, #24262A 51% 100%);
  color: var(--sign); border-radius: .08em; font-family: var(--f-mono); font-weight: 700; line-height: 1; box-shadow: inset 0 -1px 0 rgba(255,255,255,.06), 0 1px 0 #000;
  animation: flap .5s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 34ms); transform-origin: 50% 50%; }
.flap-ch::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.65); }
@keyframes flap { 0% { transform: perspective(300px) rotateX(-90deg); opacity: .2; } 60% { transform: perspective(300px) rotateX(12deg); opacity: 1; } 100% { transform: none; } }
.flap.lg { font-size: clamp(1.7rem, 6.2vw, 3.6rem); }
.flap.md { font-size: clamp(1.3rem, 3.6vw, 2.1rem); }
.flap.sm { font-size: 1.15rem; }
h1 .flap, h2 .flap { display: block; }

/* ---------- runway centre-line divider */
.runway { height: 26px; margin: 40px 0; background:
  linear-gradient(90deg, #fff 0 60%, transparent 60% 100%) center / 46px 3px repeat-x,
  repeating-linear-gradient(90deg, #fff 0 5px, transparent 5px 11px) left center / 56px 16px no-repeat,
  repeating-linear-gradient(90deg, #fff 0 5px, transparent 5px 11px) right center / 56px 16px no-repeat,
  var(--ink-3); border-radius: 2px; }
.runway.tight { margin: 24px 0; }

/* ---------- generic sections */
.section { padding: 40px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 18px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-block; font: 600 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.dark .eyebrow { color: var(--sign); }
.dark { background: var(--ink); color: #fff; }
.dark a { color: #fff; }
.lead { font-size: 1.16rem; max-width: 62ch; }
.crumbs { font: 500 .82rem/1.4 var(--f-mono); letter-spacing: .04em; margin: 0 0 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; opacity: .7; }
.crumbs a { color: inherit; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff;
  font: 700 1rem/1.1 var(--f-board); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink-3); }
.btn.sign { background: var(--sign); color: var(--ink); border-color: var(--sign); }
.btn.sign:hover { background: #ffe14d; }
.btn.ghost { background: transparent; color: var(--ink); }
.dark .btn.ghost { color: #fff; border-color: #fff; }
.btn .pic { width: 20px; height: 20px; }
.notice { border-left: 6px solid var(--ok); background: #E7F3EC; padding: 12px 16px; margin: 0 0 18px; border-radius: 0 var(--r) var(--r) 0; }
.notice.err { border-color: var(--err); background: #FCEDEC; }
.notice.info { border-color: var(--sign); background: var(--ink); color: #fff; }

/* pictograms */
.pic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }

/* ---------- home hero: departures board */
.hero { background: var(--ink); color: #fff; padding: 34px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; } }
.hero h1 { margin: 6px 0 16px; }
.hero-sub { font-size: 1.12rem; color: #DDE2E7; max-width: 52ch; }
.hero-photo { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink-3); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption, .photo-cap { font-size: .78rem; color: #C9D0D7; padding: 6px 2px 0; }
.photo-cap a, .hero-photo figcaption a { color: inherit; }
.board-search { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; }
.board-search label { flex: 1 1 100%; font: 600 .8rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sign); }
.board-search input { flex: 1 1 240px; min-height: 52px; padding: 10px 14px; border: 2px solid #4a4d53; border-radius: 4px; background: #121315; color: #fff; font: 500 1.1rem var(--f-mono); }
.board-search input::placeholder { color: #9CA5AE; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font: 500 .86rem/1.3 var(--f-mono); color: #C9D0D7; letter-spacing: .05em; text-transform: uppercase; }
.hero-stats strong { color: var(--sign); font-weight: 700; }

/* ---------- terminal picker */
.tpicker { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .tpicker { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tpick { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 156px; padding: 14px; border-radius: var(--r); color: #fff; text-decoration: none; background: var(--tc, var(--ink)); overflow: hidden; }
.tpick:hover { filter: brightness(1.08); }
.tpick .code { font: 700 clamp(2.6rem, 7vw, 3.6rem)/.9 var(--f-mono); letter-spacing: -.02em; }
.tpick .name { font: 750 1.08rem/1.1 var(--f-board); text-transform: uppercase; letter-spacing: .03em; }
.tpick .count { font: 500 .8rem/1.2 var(--f-mono); opacity: .92; }
.tpick .arrow { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; }
.tpick.area { background: var(--ink); color: var(--sign); }
@media (max-width: 759px) { .tpick.area { grid-column: span 2; min-height: 120px; } }
.tpick.area .name, .tpick.area .count { color: #fff; }

/* ---------- departures-board leaderboard */
.board { background: var(--ink); color: #fff; border-radius: var(--r); overflow: hidden; }
.board table { width: 100%; border-collapse: collapse; }
.board caption { text-align: left; padding: 14px 16px 6px; font: 800 1.25rem/1.1 var(--f-board); text-transform: uppercase; color: var(--sign); letter-spacing: .04em; }
.board th { font: 600 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sign); text-align: left; padding: 8px 10px; border-bottom: 1px solid #3a3d42; }
.board td { padding: 10px; border-bottom: 1px solid #2f3236; vertical-align: middle; font-family: var(--f-mono); font-size: .92rem; }
.board tr:last-child td { border-bottom: 0; }
.board td.place a { color: #fff; font: 700 1.05rem/1.2 var(--f-board); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.board td.place a:hover { color: var(--sign); }
.board td.place small { display: block; color: #AEB6BF; font: 400 .78rem/1.3 var(--f-mono); text-transform: none; margin-top: 2px; }
.board .rank { color: var(--sign); width: 2.4em; }
.board .score { color: var(--coral); font-weight: 700; white-space: nowrap; }
.board .meter { width: 92px; vertical-align: middle; margin-right: 6px; }
.board .tc { display: inline-block; padding: 3px 6px; border-radius: 3px; background: var(--tc, var(--ink-3)); color: #fff; font-weight: 700; font-size: .8rem; }
.board-empty { padding: 14px 16px 18px; }
.board-empty .rows { display: grid; gap: 6px; margin-bottom: 12px; }
.board-empty .flap { font-size: clamp(.9rem, 2.6vw, 1.15rem); }
.board-empty p { color: #DDE2E7; margin: 0; }
@media (max-width: 640px) { .board .hide-sm { display: none; } .board .meter { width: 70px; } }

/* ---------- wayfinding sign panel (categories) */
.signs { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .signs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .signs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sign-group { background: var(--ink); border-radius: var(--r); padding: 6px 0; }
.sign-group h3 { margin: 0; padding: 10px 14px 6px; font: 600 .76rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sign); }
.sign-group ul { list-style: none; margin: 0; padding: 0; }
.sign-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 22px; align-items: center; gap: 10px; padding: 9px 14px; color: #fff; text-decoration: none; border-top: 1px solid #2f3236; }
.sign-row:hover { background: var(--ink-3); }
.sign-row .icon { display: grid; place-items: center; width: 34px; height: 34px; background: var(--sign); color: var(--ink); border-radius: 3px; }
.sign-row .icon .pic { width: 24px; height: 24px; }
.sign-row .label { font: 750 1.08rem/1.15 var(--f-board); text-transform: uppercase; letter-spacing: .03em; }
.sign-row .n { font: 500 .82rem var(--f-mono); color: #C9D0D7; }
.sign-row .go { width: 20px; height: 20px; color: var(--sign); }

/* ---------- boarding-pass place cards */
.passes { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .passes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .passes.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pass { --notch: 11px; position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) 112px; min-height: 148px; text-decoration: none; color: var(--ink);
  background: var(--paper); border-radius: 10px; box-shadow: 0 1px 2px rgba(30,31,34,.12), 0 6px 18px -10px rgba(30,31,34,.35);
  -webkit-mask: radial-gradient(circle at calc(100% - 112px) 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at calc(100% - 112px) 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at calc(100% - 112px) 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at calc(100% - 112px) 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat; }
.pass:hover .pass-name { text-decoration: underline; text-decoration-thickness: 2px; }
.pass-thumb { display: block; position: relative; border-left: 8px solid var(--tc, var(--ink)); border-radius: 10px 0 0 10px; overflow: hidden; background: var(--runway); }
.pass-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pass-thumb.ph { display: grid; place-items: center; background: #E6EAEE; background: color-mix(in srgb, var(--tc, #1E1F22) 13%, #fff); color: var(--tc, var(--ink)); }
.pass-thumb.ph .pic { width: 40px; height: 40px; stroke-width: 1.6; opacity: .95; }
.pass-main { padding: 12px 14px 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (max-width: 420px) { .pass { grid-template-columns: 74px minmax(0, 1fr) 98px; -webkit-mask: none; mask: none; } .pass-name { font-size: 1.15rem; } .pass-stub .meter { width: 76px; } }
.pass-top { display: flex; align-items: center; gap: 8px; font: 600 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pass-top .pic { width: 18px; height: 18px; color: var(--ink); }
.pass-name { display: block; font: 800 1.32rem/1.08 var(--f-board); margin: 0; text-transform: none; }
.pass-fields { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: auto 0 0; }
.pass-fields > span { display: flex; flex-direction: column; min-width: 0; }
.pass-fields .dt { font: 600 .62rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pass-fields .dd { margin: 3px 0 0; font: 700 .9rem/1.2 var(--f-mono); }
.pass-stub { border-left: 2px dashed var(--line); padding: 12px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; background: #FBFCFD; border-radius: 0 10px 10px 0; }
.pass-stub .lbl { font: 600 .58rem/1.1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pass-stub .big { font: 700 1.7rem/1 var(--f-mono); color: var(--coral-dk); }
.pass-stub .none { display: block; font: 600 .74rem/1.25 var(--f-mono); color: var(--muted); }
.pass-stub .first { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 .74rem/1.25 var(--f-mono); color: var(--coral-dk); }
.pass-stub .first .pic { width: 26px; height: 26px; color: var(--coral-dk); }
.pass-stub .lbl, .pass-stub .big { display: block; }
.pass-stub .meter { width: 88px; }
.pass-group { margin: 0 0 28px; }
.pass-group > h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
.pass-group > h3 .icon { display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: var(--sign); border-radius: 3px; }

/* ---------- friendliness meter */
.meter { display: inline-block; width: 120px; height: auto; vertical-align: middle; }
.meter-lg { width: 190px; }
.meter-bg circle { fill: none; stroke: var(--face-off); stroke-width: 1.6; }
.meter-bg .eye { fill: var(--face-off); stroke: none; }
.meter-bg .smile { fill: none; stroke: var(--face-off); stroke-width: 1.6; stroke-linecap: round; }
.meter-fg circle { fill: var(--coral); stroke: #7A2414; stroke-width: 1.3; }
.meter-fg .eye { fill: var(--ink); stroke: none; }
.meter-fg .smile { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.dark .meter-bg circle, .board .meter-bg circle { stroke: #8A939C; }
.dark .meter-bg .eye, .board .meter-bg .eye { fill: #8A939C; }
.dark .meter-bg .smile, .board .meter-bg .smile { stroke: #8A939C; }

/* ---------- page heads */
.page-head { background: var(--ink); color: #fff; padding: 26px 0 30px; border-bottom: 8px solid var(--tc, var(--sign)); }
.page-head .lead { color: #DDE2E7; }
.page-head h1 { margin: 4px 0 12px; }
.page-head a { color: #fff; }
.thead-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .thead-grid.has-photo { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.tcode-big { display: inline-block; font: 700 clamp(3.6rem, 12vw, 6.4rem)/.85 var(--f-mono); color: #fff; background: var(--tc); padding: 8px 14px 4px; border-radius: 6px; letter-spacing: -.03em; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #4a4d53; border-radius: 3px; font: 600 .82rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: #fff; }
.jump a:hover { border-color: var(--sign); color: var(--sign); }
.jump .pic { width: 16px; height: 16px; }
.zone-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; margin: 34px 0 20px; }
.zone-head h2 { margin: 0; text-transform: uppercase; }
.zone-head .mono { color: var(--muted); font-size: .9rem; }
.zone-tag { display: inline-block; font: 700 .78rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border-radius: 3px; background: var(--ink); color: var(--sign); }
.zone-tag.landside { background: var(--runway); color: var(--ink); }

/* ---------- area schematic */
.schematic { background: var(--ink); border-radius: var(--r); padding: 10px; }
.schematic svg { width: 100%; height: auto; display: block; }
.schematic .rw { fill: #4A4E55; }
.schematic .rw-line { stroke: #fff; stroke-width: 1.4; stroke-dasharray: 10 8; }
.schematic .road { stroke: var(--sign); stroke-width: 5; fill: none; stroke-linecap: round; }
.schematic .road-label { fill: var(--sign); font: 700 13px var(--f-mono); letter-spacing: .08em; }
.schematic .term rect { stroke: #fff; stroke-width: 1.5; }
.schematic .term text { fill: #fff; font: 700 15px var(--f-mono); }
.schematic a .place-dot { fill: var(--coral); stroke: #fff; stroke-width: 2; }
.schematic a text { fill: #fff; font: 700 14px var(--f-board); text-transform: uppercase; letter-spacing: .04em; }
.schematic a:hover text, .schematic a:focus text { fill: var(--sign); text-decoration: underline; }
.schematic .note { fill: #AEB6BF; font: 500 11px var(--f-mono); }

/* ---------- place page */
.place-pass { --notch: 16px; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); color: var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
@media (min-width: 820px) { .place-pass { grid-template-columns: minmax(0, 1fr) 260px; } }
.pp-main { padding: 18px 20px 20px 26px; border-left: 12px solid var(--tc, var(--ink)); min-width: 0; }
.pp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 600 .76rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pp-top .pic { width: 22px; height: 22px; color: var(--ink); }
.pp-main h1 { margin: 12px 0 14px; font-size: clamp(2rem, 5vw, 3rem); }
.pp-fields { display: grid; gap: 12px 22px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 0 0 14px; }
.pp-fields dt { font: 600 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pp-fields dd { margin: 4px 0 0; font: 700 1.02rem/1.25 var(--f-mono); }
.pp-fields .code dd { font-size: 1.6rem; }
.pp-summary { font-size: 1.08rem; max-width: 64ch; margin: 0; }
.pp-stub { border-top: 2px dashed var(--line); padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; background: #FBFCFD; }
@media (min-width: 820px) { .pp-stub { border-top: 0; border-left: 2px dashed var(--line); } }
.pp-stub .lbl { font: 600 .7rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pp-stub .big { font: 700 3rem/1 var(--f-mono); color: var(--coral-dk); }
.pp-stub .of { font: 500 .9rem var(--f-mono); color: var(--muted); }
.pp-stub .none { font: 700 1.1rem/1.25 var(--f-board); text-transform: uppercase; }
.place-grid { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); margin-top: 30px; }
@media (min-width: 980px) { .place-grid { grid-template-columns: minmax(0, 1fr) 330px; } }
.side-box { background: var(--paper); border-radius: var(--r); padding: 16px 18px; margin-bottom: 18px; border-top: 6px solid var(--ink); }
.side-box h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
.side-box ul { padding-left: 1.1em; margin: 0 0 .6em; }
.side-box li { margin-bottom: 6px; }
.links-box .btn { width: 100%; justify-content: space-between; margin-bottom: 8px; }
.links-box .aff { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.subscores { display: grid; gap: 6px; margin: 10px 0 0; font: 500 .86rem var(--f-mono); }
.subscores div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding-bottom: 4px; }
.place-photo { margin: 0 0 22px; }
.place-photo img { border-radius: var(--r); width: 100%; max-height: 420px; object-fit: cover; }
.place-photo figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.place-photo figcaption a { color: inherit; }

/* ---------- reviews */
.reviews-list { display: grid; gap: 16px; }
.review { background: var(--paper); border-radius: var(--r); padding: 16px 18px; border-left: 6px solid var(--coral); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 6px; }
.review-head .score { font: 700 1rem var(--f-mono); color: var(--coral-dk); }
.review h3 { font-size: 1.25rem; margin: 2px 0 6px; }
.review-meta { font: 500 .8rem/1.45 var(--f-mono); color: var(--muted); letter-spacing: .02em; }
.review-subs { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 600 .76rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 8px 0; }
.review-body { margin: 6px 0 8px; white-space: pre-line; }
.review-place { font: 700 .95rem var(--f-board); text-transform: uppercase; letter-spacing: .03em; }
.review-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .86rem; }
.review-foot a { color: var(--muted); }
.review .edited { font-size: .82rem; color: var(--muted); font-style: italic; margin: 0 0 6px; }
.reply { margin: 10px 0 4px; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 4px; border-left: 6px solid var(--sign); }
.reply strong { display: block; font: 700 .76rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sign); margin-bottom: 4px; }
.reply p { margin: 0; white-space: pre-line; }
.empty-reviews { background: var(--paper); border-radius: var(--r); padding: 18px; border: 2px dashed var(--line); }
.empty-reviews strong { font: 800 1.3rem var(--f-board); text-transform: uppercase; display: block; margin-bottom: 4px; }

/* ---------- forms */
.form-card { background: var(--paper); border-radius: var(--r); padding: 18px 18px 8px; border-top: 6px solid var(--sign); box-shadow: 0 1px 0 var(--line); }
.form-card h2 { text-transform: uppercase; }
.field { margin: 0 0 18px; }
.field > label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; font-size: .88rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.field .error { display: block; color: var(--err); font-weight: 700; font-size: .92rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=search], select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid #8A939C; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 170px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.faces { display: flex; flex-wrap: wrap; gap: 8px; }
.faces input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.faces label { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 8px 6px; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; font: 600 .74rem/1.15 var(--f-mono); text-align: center; background: #fff; }
.faces label svg { width: 34px; height: 34px; }
.faces label svg circle { fill: #fff; stroke: var(--face-off); stroke-width: 1.6; }
.faces label svg .eye { fill: var(--face-off); stroke: none; }
.faces label svg path { fill: none; stroke: var(--face-off); stroke-width: 1.7; stroke-linecap: round; }
.faces input:checked + label { border-color: var(--ink); background: #FFF1EE; box-shadow: inset 0 0 0 1px var(--ink); }
.faces input:checked + label svg circle { fill: var(--coral); stroke: #7A2414; }
.faces input:checked + label svg .eye { fill: var(--ink); }
.faces input:checked + label svg path { stroke: var(--ink); }
.faces input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--sign); }
.faces.small label { min-width: 48px; padding: 6px 4px; }
.faces.small label svg { width: 24px; height: 24px; }
.subratings { display: grid; gap: 0 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1240px) { .subratings { grid-template-columns: repeat(3, minmax(0, 1fr)); } .subratings .faces.small { gap: 4px; } .subratings .faces.small label { min-width: 38px; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.two { display: grid; gap: 0 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.counter { font: 500 .78rem var(--f-mono); color: var(--muted); }

/* ---------- search */
.filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; background: var(--paper); padding: 16px; border-radius: var(--r); border-top: 6px solid var(--ink); }
.filters label { display: block; font: 600 .74rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.filters .q { grid-column: 1 / -1; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 26px 0 0; font-family: var(--f-mono); }
.pager a, .pager span { padding: 8px 12px; border-radius: 3px; background: var(--paper); text-decoration: none; }
.pager .cur { background: var(--ink); color: var(--sign); }

/* ---------- prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; text-transform: uppercase; letter-spacing: .02em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { border-collapse: collapse; width: 100%; background: var(--paper); margin: 0 0 1.2em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 600 .76rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.callout { background: var(--ink); color: #fff; padding: 16px 18px; border-radius: var(--r); border-left: 8px solid var(--sign); margin: 0 0 1.4em; }
.callout a { color: #fff; }
.source-list { font-size: .9rem; }

/* photo credits */
.credits { list-style: none; padding: 0; display: grid; gap: 14px; }
.credits li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--paper); padding: 10px; border-radius: var(--r); }
.credits img { width: 140px; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
@media (max-width: 480px) { .credits li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer */
.site-foot { background: var(--ink); color: #DDE2E7; margin-top: 60px; padding: 0 0 30px; border-top: 6px solid var(--sign); }
.site-foot a { color: #fff; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); padding-top: 30px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h2 { font-size: .8rem; font-family: var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sign); margin-bottom: 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 7px; }
.foot-notes { font-size: .88rem; border-top: 1px solid #3a3d42; margin-top: 24px; padding-top: 18px; }
.foot-notes p { margin: 0 0 8px; }

/* ---------- misc */
.two-col { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.how { counter-reset: how; list-style: none; padding: 0; display: grid; gap: 12px; }
.how li { counter-increment: how; position: relative; padding: 12px 14px 12px 58px; background: var(--paper); border-radius: var(--r); }
.how li::before { content: counter(how, decimal-leading-zero); position: absolute; left: 12px; top: 12px; font: 700 1.1rem var(--f-mono); color: var(--ink); background: var(--sign); padding: 4px 6px; border-radius: 3px; }
.errorpage { text-align: left; padding: 50px 0; }
.kit-video-cap { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head, .site-foot, .indie, .form-card, .runway { display: none; }
  body { background: #fff; }
}

/* ---------- how to find it (place photos) */
.find { margin-top: 28px; }
.find h2 { text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.find h2 .pic { width: 28px; height: 28px; }
.find-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .find-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.find-main { margin: 0; }
.find-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--runway); }
.find-main figcaption, .gallery figcaption { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.find-main figcaption a, .gallery figcaption a { color: inherit; }
.find-ph { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 220px; border-radius: var(--r); border-left: 8px solid var(--tc, var(--ink));
  background: #E6EAEE; background: color-mix(in srgb, var(--tc, #1E1F22) 12%, #fff); color: var(--ink); text-align: center; padding: 18px; }
.find-ph .pic { width: 64px; height: 64px; stroke-width: 1.4; color: var(--tc, var(--ink)); }
.find-ph p { margin: 0; font: 600 .86rem/1.4 var(--f-mono); max-width: 34ch; }
.find-text { background: var(--paper); border-radius: var(--r); padding: 16px 18px; border-top: 6px solid var(--tc, var(--ink)); }
.find-text .where { font: 700 1.05rem/1.35 var(--f-mono); margin: 0 0 8px; }
.find-text .src-note { font-size: .82rem; color: var(--muted); }
.gallery { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
