/* Everywhere stay guide. Themed on the logo; system fonts only; no member content in this file. */

:root {
  /* The four colors of the logo (static/logo-*.png), sampled from the source file. */
  --field: #4a90e2;
  --circle: #5da3f6;
  --band: #4987cc;
  --plane: #e8f2ff;

  --paper: #f4f9ff;          /* half plane, half white: the content ground */
  --paper-2: var(--plane);
  --surface: #ffffff;
  --ink: #16202b;
  --ink-2: #394552;
  --muted: #5a6572;
  --rule: rgba(73, 135, 204, .2);
  --rule-2: rgba(73, 135, 204, .38);
  --accent: var(--field);
  --accent-ink: var(--band);
  --good: #2e6b4a;
  --mixed: #8a6a17;
  --bad: #9b3a2c;
  --calm: #5b6470;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(22, 32, 43, .06), 0 8px 24px -14px rgba(22, 32, 43, .3);
  --wrap: 1180px;
  --gap: clamp(16px, 3vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgba(74, 144, 226, .55); text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 0; }
p { margin: 0 0 .8em; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.125em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }

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

/* ----------------------------------------------------------- masthead */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: var(--field); color: #fff;
  box-shadow: 0 1px 0 var(--band), 0 6px 18px -12px rgba(22, 32, 43, .45);
}
.masthead-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: none; }
.brand .mark { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(232, 242, 255, .35); }
.brand-name { font: 700 1.3rem/1 var(--display); letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--plane); padding-left: 12px; border-left: 1px solid rgba(232, 242, 255, .45); }
.brand:hover { color: #fff; }

.primary { display: flex; gap: 4px; }
.primary a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; color: #fff; font-size: .95rem; font-weight: 500; border-radius: 999px;
}
.primary a:hover { background: rgba(232, 242, 255, .16); color: #fff; }
.primary a[aria-current="page"] { background: var(--band); color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(232, 242, 255, .3); }
.masthead :focus-visible { outline-color: var(--plane); }

/* ------------------------------------------------------------- search */

.search { position: relative; display: flex; align-items: center; margin-left: auto; width: min(340px, 34vw); }
.search > .i { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding: 0 40px 0 40px;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-2); border-radius: 999px;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--field); box-shadow: 0 0 0 3px rgba(74, 144, 226, .35); }
.masthead .search input { background: var(--plane); border-color: transparent; }
.masthead .search input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(232, 242, 255, .55); }
.search input::-webkit-search-cancel-button { display: none; }
.search .hint {
  position: absolute; right: 12px; font: 500 .75rem/1 var(--mono); color: var(--muted);
  border: 1px solid var(--rule-2); border-radius: 5px; padding: 3px 6px; background: var(--paper);
}
.search input:focus ~ .hint { display: none; }
.has-hero-search .masthead .search { display: none; }
.search-hero { margin: 0; width: 100%; max-width: 640px; }
.search-hero input { min-height: 56px; font-size: 1.05rem; padding-left: 48px; box-shadow: var(--shadow); }
.search-hero > .i { left: 18px; width: 1.15em; height: 1.15em; }

.live {
  position: absolute; top: calc(100% + 8px); right: 0; width: min(560px, calc(100vw - 32px)); z-index: 30;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px -18px rgba(22, 32, 43, .4); padding: 8px; max-height: 70vh; overflow: auto;
}
.live .summary { padding: 6px 10px 4px; }

/* -------------------------------------------------------------- layout */

.main { padding-top: clamp(24px, 5vw, 48px); padding-bottom: 72px; min-height: 60vh; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 10px; }
.lede { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; margin: 14px 0 0; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.count { font: 500 .85rem var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.empty-note { color: var(--muted); padding: 18px 0; }

.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--rule-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }

.band { margin-top: clamp(40px, 6vw, 64px); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.band-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--accent-ink); text-decoration: none; white-space: nowrap; min-height: 32px; }
.more:hover { text-decoration: underline; }

/* --------------------------------------------------------------- home */

.home-hero { padding: clamp(8px, 3vw, 32px) 0 8px; }
.home-hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); max-width: 18ch; letter-spacing: -.02em; }
.home-hero .lede { margin-bottom: 26px; }
.stats { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 720px; border-top: 1px solid var(--rule); }
.stats a { display: flex; flex-direction: column; padding: 14px 16px 12px 0; text-decoration: none; min-height: 44px; }
.stats li + li a { padding-left: 16px; border-left: 1px solid var(--rule); }
.stats .num { font: 600 clamp(1.5rem, 3.4vw, 2.1rem)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stats .lbl { font-size: .85rem; color: var(--muted); }
.stats a:hover .lbl { color: var(--accent-ink); }
.stats-minor { font-size: .875rem; color: var(--muted); margin-top: 10px; }
.stats-minor a { color: var(--muted); }

/* --------------------------------------------------------- hotel cards */

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.hcard { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.hcard .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }
.hcard .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hcard:hover .frame img { transform: scale(1.03); }
.hcard-body { padding: 12px 2px 0; }
.hcard .place { font-size: .8rem; color: var(--muted); margin: 0 0 3px; letter-spacing: .02em; }
.hcard h3 { font-size: 1.2rem; margin: 0 0 6px; }
.hcard:hover h3 { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.hcard .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--ink-2); margin: 0; }
.cards-compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.cards-compact .frame { aspect-ratio: 3 / 2; }
.cards-compact h3 { font-size: 1.05rem; }

.frame.empty, .hero-empty { display: grid; place-items: center; }
.frame.empty span { font: 600 1.6rem/1 var(--display); letter-spacing: .06em; color: rgba(73, 135, 204, .55); }
.tone-0 { background: linear-gradient(135deg, var(--plane), rgba(93, 163, 246, .32)); }
.tone-1 { background: linear-gradient(135deg, var(--plane), rgba(73, 135, 204, .28)); }
.tone-2 { background: linear-gradient(135deg, rgba(93, 163, 246, .22), var(--plane)); }
.tone-3 { background: linear-gradient(135deg, var(--plane), rgba(74, 144, 226, .3)); }
.tone-4 { background: linear-gradient(135deg, rgba(73, 135, 204, .2), var(--plane)); }
.tone-5 { background: linear-gradient(135deg, var(--plane), rgba(93, 163, 246, .45)); }

/* ------------------------------------------------------------ signals */

.signal { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.signal .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--calm); flex: none; }
.s-positive { color: var(--good); } .s-positive .dot { background: var(--good); }
.s-mixed { color: var(--mixed); } .s-mixed .dot { background: var(--mixed); }
.s-negative { color: var(--bad); } .s-negative .dot { background: var(--bad); }
.s-neutral, .s-unclear { color: var(--calm); }

/* -------------------------------------------------------------- chips */

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 999px;
  text-decoration: none; font-size: .92rem; color: var(--ink);
}
.chips a:hover { border-color: var(--field); color: var(--band); }
.chips .n { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chips-small a { min-height: 36px; font-size: .85rem; padding: 0 12px; }
.all-countries { margin-top: 12px; }
.all-countries summary { cursor: pointer; color: var(--accent-ink); font-size: .9rem; min-height: 36px; display: inline-flex; align-items: center; }
.all-countries[open] summary { margin-bottom: 10px; }

/* -------------------------------------------------------- index lists */

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 22px; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; }
.seg a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: .9rem; color: var(--ink-2); }
.seg a[aria-current="true"] { background: var(--band); color: #fff; font-weight: 600; }
.filter { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 380px; }
.filter .i { position: absolute; left: 13px; color: var(--muted); }
.filter input { width: 100%; min-height: 44px; padding: 0 14px 0 38px; font: inherit; font-size: .95rem; background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--radius); -webkit-appearance: none; appearance: none; }
.filter input:focus { outline: none; border-color: var(--field); box-shadow: 0 0 0 3px rgba(74, 144, 226, .35); }
.jump { margin-bottom: 36px; }

.group { margin-top: 44px; scroll-margin-top: 88px; }
.group > h2 { font-size: clamp(1.5rem, 3vw, 2rem); padding-bottom: 10px; border-bottom: 2px solid var(--field); margin-bottom: 4px; }
.group > h2 a { text-decoration: none; }
.group > h2 a:hover { text-decoration: underline; }
.city { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.city h3 { font: 600 .95rem/1.4 var(--sans); padding-top: 0; min-height: 44px; display: flex; align-items: center; color: var(--ink-2); }
.city h3 a { text-decoration: none; }
.city h3 a:hover { text-decoration: underline; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows a { display: flex; align-items: center; gap: 6px 16px; min-height: 44px; padding: 9px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none; }
.rows a:hover { background: var(--surface); }
.row-name { font-weight: 500; }
.rows a:hover .row-name { color: var(--accent-ink); }
.row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); margin-left: auto; text-align: right; justify-content: flex-end; }
.row-count { font: 600 .9rem var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: right; }
.group > .rows { border-top: 0; }
.group > .rows li { border-bottom: 1px solid var(--rule); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; }
.tiles li { border-bottom: 1px solid var(--rule); }
.tiles a { flex-direction: column; align-items: flex-start; gap: 0; }
.tiles .row-meta { margin-left: 0; text-align: left; justify-content: flex-start; font-size: .8rem; }
.kind .band-head h2 .count { font-size: .85rem; }

/* ------------------------------------------------------------- people */

.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.person { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); text-decoration: none; }
.person:hover { border-color: var(--field); }
.person .num { font: 600 2rem/1 var(--display); color: var(--accent-ink); min-width: 1.6ch; text-align: center; font-variant-numeric: tabular-nums; }
.person .who { display: flex; flex-direction: column; }
.person .name { font-weight: 600; font-size: 1.02rem; }
.person .lbl { font-size: .8rem; color: var(--muted); }
.people.compact .person { min-height: 64px; padding: 10px 14px; }
.people.compact .num { font-size: 1.6rem; }

/* ------------------------------------------------------- detail pages */

.detail-head { display: grid; gap: 28px; align-items: center; margin-bottom: 36px; }
.detail-head.with-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.detail-title h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
.detail-title .place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; font-size: 1.05rem; color: var(--ink-2); }
.detail-title .place .i { color: var(--accent); margin-right: -4px; }
.brand-tag { font-size: .8rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--muted); }
.verdict { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--ink-2); }
.verdict li .signal + .signal { margin-left: 12px; }
.verdict strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.hero-photo { margin: 0; }
.hero-photo a { display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero-photo a:hover img { transform: scale(1.02); }
.hero-photo figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.detail-body.single { grid-template-columns: minmax(0, 760px); }

/* The review document: long-form, comfortable to read. */
.doc { max-width: 720px; font-size: 1.05rem; line-height: 1.7; overflow-wrap: anywhere; }
.doc-intro { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.doc-intro p { margin-bottom: .35em; }
.doc-sec { margin-top: 36px; }
.doc-sec:first-child { margin-top: 0; }
.doc h2 { font-size: 1.5rem; padding-bottom: 8px; margin: 0 0 16px; border-bottom: 1px solid var(--rule); }
.doc h3 { font-size: 1.2rem; margin: 0 0 10px; }
.doc h3 a { text-decoration: none; }
.doc h3 a:hover { text-decoration: underline; }
.doc h4, .doc h5, .doc h6 { font: 600 1rem var(--sans); margin: 18px 0 8px; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin: .2em 0; }
.doc hr { border: 0; border-top: 1px solid var(--rule); margin: 28px 0; }
.doc pre { background: var(--paper-2); padding: 14px; border-radius: var(--radius); overflow: auto; font: .85rem/1.5 var(--mono); }
.doc code { font: .9em var(--mono); background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
.doc a.ent { text-decoration-style: dotted; text-decoration-color: var(--accent); }

.entry { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 26px); margin: 0 0 18px; box-shadow: 0 1px 0 rgba(22, 32, 43, .03); }
.entry[data-sentiment="positive"] { border-left: 4px solid var(--good); }
.entry[data-sentiment="mixed"] { border-left: 4px solid var(--mixed); }
.entry[data-sentiment="negative"] { border-left: 4px solid var(--bad); }
.entry > :last-child { margin-bottom: 0; }

.facts { margin: 16px 0; padding: 14px 16px; background: var(--paper); border-radius: var(--radius); font-size: .92rem; line-height: 1.55; }
.facts p { margin: 0 0 .45em; }
.facts p:last-child { margin: 0; }
.facts p.sources { color: var(--muted); font-size: .85rem; padding-top: 8px; margin-top: 8px; border-top: 1px dashed var(--rule-2); }
.sources a.slack { color: var(--ink-2); white-space: nowrap; }
p.sources { color: var(--muted); font-size: .88rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 16px 0; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }

.rail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 26px; }
.rail-group h2 { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.rail-group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rail-group li { border-bottom: 1px solid var(--rule); }
.rail-group a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 0; text-decoration: none; }
.rl-label { font-weight: 500; }
.rail-group a:hover .rl-label { color: var(--accent-ink); text-decoration: underline; }
.rl-note { font-size: .8rem; color: var(--muted); text-align: right; flex: none; max-width: 55%; }
.rail-group .more { margin-top: 8px; }

/* ---------------------------------------------------------- progress */

.progress { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 18px; }
.progress h2 { font: 600 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
progress.bar { width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; background: var(--paper-2); -webkit-appearance: none; appearance: none; margin-bottom: 12px; }
progress.bar::-webkit-progress-bar { background: var(--paper-2); }
progress.bar::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: var(--accent); }
.facts-list { margin: 0; font-size: .9rem; }
.facts-list div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; text-align: right; }

/* ------------------------------------------------------------ results */

.page-search .search-hero { margin-bottom: 20px; }
#results .summary, .live .summary { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.results { list-style: none; padding: 0; margin: 0; }
#results .results { border-top: 1px solid var(--rule); max-width: 820px; }
#results .results li { border-bottom: 1px solid var(--rule); }
.results a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 2px 14px; padding: 14px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none; }
.results a:hover, .results li.active a { background: var(--surface); }
.live .results a { margin: 0; }
.results .kind { grid-row: span 3; align-self: start; margin-top: 3px; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule-2); border-radius: 999px; padding: 3px 0; text-align: center; }
.results .k-hotel { color: #fff; background: var(--band); border-color: var(--band); }
.r-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.r-title { font: 600 1.1rem/1.3 var(--display); }
.results a:hover .r-title { color: var(--accent-ink); }
.r-meta { font-size: .85rem; color: var(--muted); }
.snippet { grid-column: 2; font-size: .88rem; color: var(--ink-2); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ------------------------------------------------------------- notice */

.notice { padding: 40px 0; max-width: 620px; }
.notice h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.notice-links { display: flex; gap: 18px; margin-top: 20px; }

/* The login and locked pages sit on the logo itself: field, circle, pale type. */
.locked {
  display: grid; place-items: center; min-height: 100vh; padding: 24px; color: #fff;
  background: radial-gradient(circle at 50% 38%, var(--circle) 0 min(34vw, 300px), transparent calc(min(34vw, 300px) + 1px)), var(--field);
}
.locked-card { width: 100%; max-width: 420px; text-align: center; }
.logo-lg { width: 148px; height: 148px; margin: 0 auto 22px; border-radius: 32px; box-shadow: 0 0 0 1px rgba(232, 242, 255, .35), 0 18px 40px -18px rgba(22, 32, 43, .55); }
.locked-card .wordmark { font: 700 1rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--plane); margin: 0 0 10px; }
.locked-card h1 { font-size: clamp(2rem, 7vw, 2.5rem); margin-bottom: 10px; color: #fff; }
.locked-card p { color: var(--plane); }
.login { display: grid; gap: 6px; margin: 24px auto 0; text-align: left; background: var(--band); padding: 22px; border-radius: var(--radius-lg); box-shadow: 0 18px 40px -22px rgba(22, 32, 43, .6); }
.login label { font-size: .85rem; font-weight: 600; color: var(--plane); margin-top: 6px; }
.login input { font: inherit; min-height: 48px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--radius); background: var(--plane); color: var(--ink); }
.login input:focus { outline: 3px solid #fff; outline-offset: 1px; background: #fff; }
.login button, .locked-card .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 14px; padding: 0 22px; border: 0; border-radius: var(--radius); background: #fff; color: var(--band); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.login button:hover, .locked-card .button:hover { background: var(--plane); color: var(--band); }
.login button:focus-visible, .locked-card .button:focus-visible { outline: 3px solid var(--plane); outline-offset: 2px; }
.login-error { margin: 18px 0 0; padding: 10px 14px; border-radius: var(--radius); background: var(--plane); color: var(--bad) !important; font-weight: 600; }

/* ------------------------------------------------------------- footer */

.site-foot { border-top: 1px solid var(--rule); background: var(--paper-2); color: var(--muted); font-size: .85rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 28px; }
.foot-in p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.foot-links a { color: var(--ink-2); }
.signout { margin: 0; }
.signout button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .18em; cursor: pointer; }
.signout button:hover { color: var(--accent-ink); text-decoration-color: currentColor; }

/* ------------------------------------------------------------- viewer */

dialog.viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.viewer::backdrop { background: rgba(14, 22, 32, .9); }
dialog.viewer img { max-width: min(92vw, 1400px); max-height: 82vh; margin: 6vh auto 0; border-radius: 6px; object-fit: contain; }
dialog.viewer button { position: fixed; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(73, 135, 204, .75); color: #fff; font: inherit; cursor: pointer; }
dialog.viewer button:hover { background: var(--band); }
.viewer-close { top: 16px; right: 16px; }
.viewer-prev { bottom: 20px; left: 16px; }
.viewer-next { bottom: 20px; right: 16px; }
.viewer-count { position: fixed; bottom: 30px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; margin: 0; }

/* ------------------------------------------------------------- mobile */

@media (max-width: 960px) {
  .detail-body { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; padding-top: 12px; border-top: 2px solid var(--field); }
  .detail-head.with-photo { grid-template-columns: minmax(0, 1fr); }
  .detail-head.with-photo .hero-photo { order: -1; }
  .masthead-in { gap: 16px; }
  .brand-sub { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .masthead { position: static; }
  .masthead-in { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .brand-sub { display: inline; }
  .primary { order: 3; width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .primary a { justify-content: center; padding: 0 4px; font-size: .88rem; border-radius: 10px; }
  .search { order: 2; width: 100%; margin-left: 0; }
  .search .hint { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) a { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) a { border-top: 1px solid var(--rule); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .hcard h3 { font-size: 1.05rem; }
  .hcard .meta { font-size: .8rem; }
  .city { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px 0 6px; }
  .city h3 { padding-top: 0; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .rows a { flex-wrap: wrap; }
  .row-name { flex: 1 1 60%; }
  .row-meta { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; text-align: left; }
  .controls { flex-direction: column; align-items: stretch; }
  .seg { align-self: flex-start; max-width: 100%; overflow-x: auto; }
  .filter { max-width: none; }
  .band-head { flex-wrap: wrap; }
  .doc { font-size: 1rem; }
  .entry { padding: 16px; border-radius: var(--radius); }
  .results a { grid-template-columns: minmax(0, 1fr); }
  .results .kind { grid-row: auto; justify-self: start; padding: 2px 10px; }
  .snippet { grid-column: 1; }
  .live { position: fixed; left: 12px; right: 12px; top: auto; width: auto; margin-top: 8px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .primary a { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .masthead, .site-foot, .rail, .search, .controls, .jump { display: none; }
  body { background: #fff; }
}

/* Touch targets: text links outside prose get at least 44px of hit area. */
.brand, .foot-links a, .stats-minor a, .group > h2 a, .city h3 a, .notice-links a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* Live feed from the index */
.posts { display: grid; gap: 14px; }
.post { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 14px 18px; }
.post-meta { font-size: .85rem; color: var(--muted); margin: 0 0 6px; }
.post-meta strong { color: var(--ink); font-weight: 600; }
.post-text { margin: 0 0 8px; overflow-wrap: anywhere; }
.post-replies { border-left: 2px solid var(--rule-2); margin-top: 10px; padding-left: 12px; display: grid; gap: 10px; }
.post-replies .post { border: 0; padding: 0; background: none; }
.photo-note { font-size: .85rem; color: var(--muted); }
.live-posts { margin-bottom: 24px; }
.live-posts .post { margin-bottom: 12px; }
