/* Night Ascent brand (docs/BRAND.md): Midnight #1C1251 type & sky, Summit gold #EBA820 star/accents,
   Snow #FEF7EE ridge/page, Paper #FEFCFA surfaces; Georgia titles & stories, Calibri navigation & body, Georgia Italic captions */
:root {
  color-scheme: light;
  --midnight: #1C1251; --gold: #EBA820; --snow: #FEF7EE; --paper: #FEFCFA;
  --bg: var(--snow); --surface: var(--paper); --photo-bg: #F3ECE2; --border: #E9E1D6; --border-strong: #D6CCBE;
  --text: var(--midnight); --text-2: #4A4468; --muted: #7B7690;
  --brand: var(--midnight); --brand-ink: #FEF7EE; --logo-snow: var(--snow); --primary: var(--brand);
  --link: #3F31A8; --accent: var(--gold); --accent-ink: var(--midnight); --winter: #4F86D9; --winter-ink: #FFFFFF; --tag: #EFEBFA; --tag-ink: #2E2585;
  --shadow: 0 1px 2px rgba(28, 18, 81, .06);
  --ascent: #A87000; --descent: #5B4FD0; --summit: #0E8A6E;   /* climb profiles (validated: CVD-safe, >= 3:1 on Paper) */
  --z0: #DCDCE0; --z1: #9A9AA3; --z2: #2F7FD8; --z3: #2E9E4B; --z4: #EE8A1F; --z5: #D9342B;   /* HR zones: conventional gray / blue / green / orange / red */
  --font-title: Georgia, Gelasio, "Times New Roman", serif;
  --font-body: Calibri, Carlito, "Segoe UI", Candara, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E0A2A; --surface: #17123F; --photo-bg: #1E1850; --border: #2A2360; --border-strong: #3A3277;
    --text: #FEF7EE; --text-2: #D3CDE6; --muted: #9C96B8;
    --brand: #120C38; --brand-ink: #FEF7EE; --logo-snow: var(--snow); --primary: #4A3DB3;
    --link: #C7BEFF; --accent: var(--gold); --accent-ink: #1C1251; --tag: #241D58; --tag-ink: #D9D2FF;
    --ascent: #C08A0E; --descent: #8478E6; --summit: #3CC4A0;
    --z0: #3B3A4A; --z1: #8C8C98; --z2: #4C9BEA; --z3: #3FBF5F; --z4: #F59E43; --z5: #F0524F;   /* HR zones, dark mode */
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0A2A; --surface: #17123F; --photo-bg: #1E1850; --border: #2A2360; --border-strong: #3A3277;
  --text: #FEF7EE; --text-2: #D3CDE6; --muted: #9C96B8;
  --brand: #120C38; --brand-ink: #FEF7EE; --logo-snow: var(--snow); --primary: #4A3DB3;
  --link: #C7BEFF; --accent: var(--gold); --accent-ink: #1C1251; --tag: #241D58; --tag-ink: #D9D2FF;
  --ascent: #C08A0E; --descent: #8478E6; --summit: #3CC4A0;
  --z0: #3B3A4A; --z1: #8C8C98; --z2: #4C9BEA; --z3: #3FBF5F; --z4: #F59E43; --z5: #F0524F;   /* HR zones, dark mode */
  --shadow: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--font-body); }
h1, h2, h3, .title-font { font-family: var(--font-title); font-weight: 400; }
h1 { font-weight: 400; } h2 { font-weight: 400; }
caption, figcaption, .caption, .credit { font-family: var(--font-title); font-style: italic; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 20px; padding-bottom: 48px; min-height: 70vh; }

.top { background: var(--brand); color: var(--brand-ink); }
.top-in { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-ink); font-family: var(--font-title); font-size: 20px; letter-spacing: .005em; }
.logo img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(254, 247, 238, .55); }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--brand-ink); opacity: .85; font-weight: 500; }
.search { margin-left: auto; flex: 1 1 220px; max-width: 360px; }
.search input { width: 100%; padding: 7px 12px; border-radius: 8px; border: 1px solid transparent; background: rgba(255,255,255,.14); color: var(--brand-ink); font-size: 15px; }
.search input::placeholder { color: rgba(255,255,255,.65); }
.search input:focus { outline: none; background: var(--surface); color: var(--text); }

h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 6px 0 6px; letter-spacing: -.01em; }
h2 { font-size: 20px; margin: 32px 0 12px; }
.lead { color: var(--text-2); font-size: 17px; margin: 0 0 8px; max-width: 70ch; }
.meta { color: var(--text-2); font-size: 14px; margin: 4px 0; }
.muted { color: var(--muted); }
.sub { color: var(--text-2); font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.crumbs { font-size: 14px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--tag); color: var(--tag-ink); vertical-align: 1px; }

.hero { padding: 28px 0 8px; }
.hero h1 { max-width: 22ch; }
.hero-in { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero-in > div { flex: 1 1 320px; min-width: 0; }
.voice { font-family: var(--font-title); font-style: italic; font-size: 20px; color: var(--text); margin: 6px 0 0; }
.hero-search { display: flex; gap: 8px; max-width: 560px; margin-top: 16px; }
.hero-search input { flex: 1; min-width: 0; padding: 12px 14px; font-size: 17px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.hero-search button { padding: 0 18px; border-radius: 10px; border: 0; background: var(--gold); color: var(--midnight); font-size: 16px; font-weight: 700; cursor: pointer; }

.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); color: var(--text); min-width: 0; }
.card:hover { border-color: var(--accent); text-decoration: none; }
.card-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.card-s { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-s.muted { color: var(--muted); }
.card-more { justify-content: center; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 14px; }

.scroll { overflow-x: auto; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 10px; }
.tabs a { padding: 5px 12px; border-radius: 8px; font-size: 14px; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); }
.tabs a.on { background: var(--primary); color: var(--brand-ink); border-color: var(--primary); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; flex-wrap: wrap; }

.map { height: 380px; border-radius: 10px; border: 1px solid var(--border); margin: 0 0 12px; background: var(--surface); z-index: 0; }
.map-full { height: calc(100vh - 170px); min-height: 420px; }
.pk { color: var(--accent); filter: drop-shadow(0 0 1px #fff); }
.pk.focus { color: #d03b3b; }
.pk.pass { color: #5B4FD0; }
.pk.mine { color: #2e9e5b; }   /* a peak the signed-in member climbed */
.pk.sel { color: #d03b3b; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 7px rgba(208, 59, 59, .8)); }   /* a peak picked with the crosshair (= .mk-sel) */
.leaflet-container a { color: var(--link); }
.leaflet-tooltip { font-size: 12px; }

/* peak header on phones (17 Nov 2026): the photo under the height, the range chain shortened to its last two levels */
.photo-phone { display: none; }
@media (max-width: 859px) {
  .photo-wide { display: none; }
  .photo-phone { display: block; margin: 10px 0 12px; }
  .photo-phone img { width: 100%; max-height: 230px; object-fit: cover; border-radius: 10px; }
  .rchain .rc-up { display: none; }
  .rchain .rcx:checked ~ .rc-up { display: inline; }
  .rchain .rcx:checked ~ .rcmore { display: none; }
  .rcmore { cursor: pointer; color: var(--link); }
}
@media (min-width: 860px) { .rcmore { display: none; } }
.peak-head { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .peak-head { grid-template-columns: 1fr 380px; } }
.big { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.m { font-variant-numeric: tabular-nums; }
.ft { color: var(--muted); font-weight: 400; font-size: .85em; }
.photo { margin: 0; }
/* photos are never cropped: the whole picture is shown, with a soft background filling the rest of the frame */
.photo img { width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 10px; display: block; background: var(--photo-bg); }
.photo figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 20px 0 0; }
.facts > div { padding: 10px 14px; box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); }
details.more summary { cursor: pointer; color: var(--link); margin-top: 8px; font-size: 14px; }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.sightfacts { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 14px 0 4px; } .sightfacts > div { min-width: 110px; }
.names { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 24px; }
.names li { break-inside: avoid; padding: 2px 0; }
.cols { display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.foot { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; padding: 18px 0 28px; }
@media (max-width: 720px) { .hide-s { display: none; } }
@media (max-width: 420px) { .hide-xs { display: none; } th, td { padding: 7px 8px; } }

/* search suggestions */
form.has-sugg { position: relative; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1000; list-style: none; margin: 0; padding: 4px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.15);
  max-height: 70vh; overflow-y: auto; overflow-x: hidden; min-width: 260px; }
.sugg a { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 7px 10px; border-radius: 6px; color: var(--text); }
.sugg a:hover { text-decoration: none; }
.sugg li.on a { background: var(--tag); }
/* two lines per suggestion: the name on top (never squeezed by long country lists), details underneath */
.sg-n { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-alt { color: var(--muted); font-weight: 400; font-size: 13px; }
.sg-s { color: var(--text-2); font-size: 13px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sg-s .flag { vertical-align: -2px; }

/* researched peak info */
.cat { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; color: #fff; vertical-align: 2px; }
.cat.small { font-size: 11px; padding: 1px 8px; }
.cat-place { background: #4B3FA8; }
.cat-hiking { background: #2f7d32; } .cat-trekking { background: #1b7f8c; } .cat-climbing { background: #b8611a; } .cat-expedition { background: #8e2b3c; }
.diff { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); }
.diff.small { font-size: 11px; padding: 0 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.glance, .stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 16px; }
.g { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.gl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.gv { font-size: 20px; font-weight: 600; margin: 2px 0; } .gv.small { font-size: 15px; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin: 6px 0 4px; }
.months span { text-align: center; font-size: 11px; padding: 4px 0; border-radius: 3px; background: var(--bg); color: var(--muted); }
.months span.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.months span.on.winter { background: var(--winter); color: var(--winter-ink); }
.months span.on.both { background: linear-gradient(135deg, var(--accent) 50%, var(--winter) 50%); }
.sdot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; background: var(--accent); }
.sdot.winter { background: var(--winter); }
.dangers { padding-left: 22px; margin: 8px 0; } .dangers li { margin: 6px 0; }
.sev { display: inline-block; min-width: 62px; font-size: 11px; font-weight: 600; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; margin-right: 6px; text-align: center; }
.sev-critical { background: #fbe3e3; color: #a02626; } .sev-warning { background: #fdf0d2; color: #7a5200; } .sev-good { background: #e3f3e3; color: #1d6b1d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sev-critical { background: #4a1f1f; color: #f3a5a5; } :root:not([data-theme="light"]) .sev-warning { background: #4a3a14; color: #f5d27a; } :root:not([data-theme="light"]) .sev-good { background: #1d3b1d; color: #9fd89f; } }
.kind { font-size: 10px; text-transform: uppercase; letter-spacing: .03em; padding: 0 5px; border-radius: 3px; border: 1px solid var(--border-strong); color: var(--muted); }
.kind-official { border-color: #2f7d32; color: #2f7d32; }
.src { font-size: 12px; }
.routes { display: grid; gap: 10px; }
.route { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.route header { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.rfacts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 8px 0 4px; }
.rfacts dt { font-size: 11px; color: var(--muted); text-transform: uppercase; } .rfacts dd { margin: 0; font-weight: 500; }
.route p { margin: 4px 0; }
.nowrap { white-space: nowrap; }
.note { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hl { list-style: none; padding: 0; margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.hl li { font-size: 14px; font-weight: 500; padding: 3px 10px; border-radius: 6px; background: var(--tag); color: var(--tag-ink); }
.hl li a { color: inherit; }
.rt { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); white-space: nowrap; }
.rt b { color: var(--text); }
.rt.small { font-size: 11px; padding: 0 8px; }
.rts { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.rt.alt3, .rt.alt4, .rt.alt5 { border-color: #b8611a; }
.rt.alt5 { border-color: #8e2b3c; }
.cat-landmark { background: #6b6f76; }

/* search / finder */
.finder { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; margin-top: 16px; }
@media (min-width: 861px) { .finder { grid-template-columns: 280px minmax(0, 1fr); } .filters { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; } }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.ftoggle > summary { font-weight: 600; cursor: pointer; list-style: none; }
.ftoggle > summary::-webkit-details-marker { display: none; }
.ftoggle > summary::after { content: " ▾"; color: var(--muted); }
.ftoggle[open] > summary { margin-bottom: 8px; }
@media (min-width: 861px) { .ftoggle > summary { pointer-events: none; } .ftoggle > summary::after { content: ""; } }
.filters fieldset { border: 0; border-top: 1px solid var(--border); margin: 12px 0 0; padding: 10px 0 0; min-width: 0; }
.filters legend { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); padding: 0; }
.fl { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--text-2); margin-top: 8px; }
.fl input, .fl select { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 7px; padding: 6px 8px; width: 100%; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.factions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.factions button { font: inherit; font-weight: 600; padding: 7px 16px; border: 0; border-radius: 8px; background: var(--primary); color: var(--brand-ink); cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--tag); color: var(--tag-ink); border-radius: 999px; padding: 3px 10px; font-size: 14px; }
.chip a { color: inherit; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.results h2 { margin-top: 0; }
.rhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.rhead .tabs { margin: 0; }
img.flag { display: inline-block; width: 20px; height: 15px; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); object-fit: cover; }
h1 img.flag { width: 32px; height: 24px; vertical-align: -1px; }
.coverage { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; font-size: 14px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.cov-bar { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: var(--border); vertical-align: middle; margin-left: 6px; overflow: hidden; }
.cov-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; min-width: 2px; }
.small-t { font-size: 12px; }
a.cat:hover { text-decoration: none; filter: brightness(1.1); }
.rt.acc-req { border-color: #b8611a; color: #8a4a12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rt.acc-req { color: #f0b47e; } }
:root[data-theme="dark"] .rt.acc-req { color: #f0b47e; }
.why { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; padding: 4px 18px 6px; margin-top: 20px; }
.why h2 { margin-top: 14px; }
.facts-list { padding-left: 20px; } .facts-list li { margin: 6px 0; }
.weights { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 8px 0 14px; }
.weights summary { font-weight: 600; cursor: pointer; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 22px; margin-top: 8px; }
.wrow { display: grid; grid-template-columns: 130px 1fr 28px; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.wrow output { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.wrow input[type=range] { min-width: 0; width: 100%; margin: 0; }   /* sliders have a ~130px intrinsic width that overflowed the column */
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; margin-top: 6px; }
.scorebar { height: 4px; border-radius: 2px; background: var(--border); margin-top: 3px; overflow: hidden; min-width: 50px; }
.scorebar > span { display: block; height: 100%; background: var(--accent); }
a.flagged { color: #b8611a; text-decoration: none; font-size: 13px; }
.dnotes { padding-left: 20px; } .dnotes li { margin: 6px 0; } .dn-corrected { color: var(--text-2); }
/* compare */
.cmp-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px 16px 10px; margin-top: 20px; }
.cmp-box h2 { margin-top: 12px; }
.cmp-pick { position: relative; max-width: 480px; }
.cmp-pick input { width: 100%; padding: 9px 12px; font-size: 15px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); }
.cmp-add { margin: 8px 0 12px; }
table.cmp { table-layout: fixed; min-width: 560px; }
table.cmp thead th { vertical-align: bottom; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text); }
table.cmp thead img { display: block; width: 100%; height: 140px; object-fit: contain; border-radius: 8px; margin-top: 6px; background: var(--photo-bg); }
table.cmp tbody th { width: 150px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text-2); font-weight: 500; }
table.cmp tr.grp th { background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.cmp-x { float: right; color: var(--muted); font-size: 13px; }
.cmpbar { height: 5px; border-radius: 3px; background: var(--border); margin-top: 4px; overflow: hidden; }
.cmpbar > span { display: block; height: 100%; background: var(--accent); }
.dots { display: inline-flex; gap: 3px; } .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); } .dots span.on { background: var(--accent); }
table.wx td, table.wx th { white-space: nowrap; }
.wxi { display: inline-block; width: 30px; height: 30px; vertical-align: middle; cursor: help; }
.wxi svg { width: 100%; height: 100%; display: block; }
table.wx td:nth-child(2) { text-align: center; }
/* explanatory tooltips (static/tip.js) */
[data-tip] { cursor: help; }
.rt[data-tip], .cat[data-tip] { text-decoration: underline dotted var(--border-strong); text-underline-offset: 3px; }
.tipbox { position: fixed; z-index: 1000; display: none; max-width: min(360px, calc(100vw - 16px)); padding: 9px 11px;
  background: var(--text); color: var(--bg); font-size: 13px; line-height: 1.45; font-weight: 400; text-align: left;
  white-space: pre-line; border-radius: 7px; box-shadow: 0 4px 16px rgba(0,0,0,.25); pointer-events: none; }

/* notable people */
.photo.portrait img { height: auto; max-height: 360px; object-fit: contain; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.filters input[type=search] { flex: 1 1 220px; }
.fl input[type=search] { flex: none; }
.filters .chk { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--text-2); }
.bio p { margin: 0 0 10px; color: var(--text-2); }
.bio p.sub { font-size: 13px; }
.glance .g-wide { grid-column: span 2; }
@media (max-width: 520px) { .glance .g-wide { grid-column: auto; } }
.gv-route { font-size: 18px; line-height: 1.35; }
.learn a, .guides a { white-space: nowrap; }
.tag-warn { background: #fff1d6; color: #7a4b00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag-warn { background: #4a3510; color: #ffd98a; } }

/* ---------------------------------------------------------------- member accounts */
.who { display: flex; align-items: center; }
a.who { display: inline-flex; vertical-align: bottom; }   /* a person or club in a sentence ("with A, B"): stays on the line */
.joinbtn { background: var(--gold, #EBA820); color: #1C1251; font-weight: 700; padding: 6px 12px; border-radius: 8px; white-space: nowrap; margin-right: 6px; }
.joinbtn:hover { filter: brightness(1.06); text-decoration: none; }
.signin { color: var(--brand-ink); font-weight: 600; padding: 6px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; white-space: nowrap; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; display: flex; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); object-fit: cover; }
.usermenu .menu { position: absolute; right: 0; top: 40px; z-index: 50; min-width: 210px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px; display: flex; flex-direction: column; }
.usermenu .menu a, .usermenu .menu .linkbtn { color: var(--text); padding: 8px 10px; border-radius: 7px; text-align: left; }
.usermenu .menu a:hover, .usermenu .menu .linkbtn:hover { background: var(--tag); }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; }
.authbox { max-width: 440px; margin: 32px auto; }
.stack { display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
.stack.wide { max-width: 760px; }
.stack label, .card label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-2); }
.stack input:not([type=radio]):not([type=checkbox]):not([type=file]), .fl-box input[type=search], .stack textarea, .stack select, .card select {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
.stack button, .card button:not(.linkbtn) { align-self: flex-start; font: inherit; font-weight: 600; padding: 8px 18px; border: 0; border-radius: 8px; background: var(--primary); color: var(--brand-ink); cursor: pointer; }
button.secondary { background: var(--tag) !important; color: var(--tag-ink) !important; }
button.danger, .linkbtn.danger { background: #b42318 !important; color: #fff !important; }
.linkbtn.danger { background: none !important; color: #b42318 !important; }
.stack .radio, .card .radio { flex-direction: row; align-items: baseline; gap: 8px; }
.radio .sub { margin-left: 4px; }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
legend { font-weight: 600; color: var(--text); padding: 0 4px; }
.row2, .row3 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
.row4 { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }   /* your numbers: time, distance, gain, loss */
@media (max-width: 640px) { .row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.card h2 { margin-top: 0; }
a.card { margin: 0; padding: 12px 14px; border-radius: 10px; }   /* link cards in grids keep the grid's own gap: the panel rule above added 16px above and below each (17 Nov 2026) */
.hp { position: absolute !important; left: -9999px; height: 1px; overflow: hidden; }
.routestrip { margin: 0; line-height: 1.7; }
.notice .routestrip + * { margin-top: 6px; }
.rs-label { font-weight: 600; margin-right: 2px; }
.rs-item { white-space: nowrap; }
.rs-cur b { color: var(--text); }
.rs-arrow { color: var(--muted); }
.trackt .routestrip { font-size: 15px; }
.tc-live { color: var(--summit); font-weight: 700; }
.tripreview { display: flex; flex-direction: column; gap: 6px; }
.tr-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.legend-dash { display: inline-block; width: 22px; border-top: 3px dashed #495057; margin-right: 6px; vertical-align: 3px; }
.notice { border-radius: 10px; padding: 10px 14px; margin: 12px 0; border: 1px solid var(--border); background: var(--surface); }
.notice-ok { border-color: #8fd1a5; background: #eefaf2; color: #14532d; }
.notice-warn { border-color: #f0c674; background: #fff8e6; color: #6b4500; }
.notice-err { border-color: #f1a7a1; background: #fdf0ef; color: #7a1d14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice-ok { background: #12301f; color: #a7e3bd; border-color: #2c6b45; }
  :root:not([data-theme="light"]) .notice-warn { background: #3a2c0c; color: #f5d68c; border-color: #7a5d1d; }
  :root:not([data-theme="light"]) .notice-err { background: #3a1513; color: #f3b1aa; border-color: #7d2a24; } }
form.inline { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.act { font: inherit; font-size: 14px; display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.act:hover { border-color: var(--accent); }
.act.on { background: var(--tag); color: var(--tag-ink); border-color: var(--accent); }
.avatar { border-radius: 50%; object-fit: cover; background: var(--border); }
.avatar.big { width: 120px; height: 120px; }
.avrow { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-head { display: flex; gap: 22px; align-items: flex-start; margin: 18px 0; flex-wrap: wrap; }
.profile-head h1 { margin: 0; }
.qr svg { display: block; width: 240px; max-width: 100%; height: auto; background: #fff; border-radius: 8px; }   /* white quiet zone is inside the SVG */
.tag-ok { background: #e3f6ea; color: #14532d; }
.listmenu { position: relative; display: inline-block; }
.listmenu summary { list-style: none; }
.listmenu summary::-webkit-details-marker { display: none; }
.listmenu .menu { position: absolute; left: 0; top: 38px; z-index: 40; min-width: 240px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.listmenu .menu form .linkbtn { color: var(--text); padding: 6px 8px; border-radius: 6px; width: 100%; text-align: left; }
.listmenu .menu form .linkbtn:hover { background: var(--tag); }
.listmenu .newlist { display: flex; gap: 6px; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.listmenu .newlist input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--bg); color: var(--text); }
.listcard { color: inherit; }
.progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 8px 0 14px; max-width: 420px; }
.progress span { display: block; height: 100%; background: #2e9e5b; }
.itemedit { display: flex; gap: 6px; align-items: center; }
.itemedit input { font: inherit; font-size: 14px; padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--bg); color: var(--text); min-width: 0; }
.itemedit input[name=target_year] { width: 70px; }
.itemedit input[name=note] { flex: 1; }

/* stage 2: feed, notifications, connections */
.hdrlink { color: var(--brand-ink); font-weight: 600; margin-right: 12px; }
.bell { position: relative; margin-right: 14px; font-size: 18px; text-decoration: none; }
.bell .badge { position: absolute; top: -6px; right: -10px; background: #d92d20; color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 1px 5px; line-height: 1.4; }
.mcard { display: flex; gap: 12px; align-items: center; }
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.feed { display: flex; flex-direction: column; }
.fitem { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.fitem p { margin: 0 0 4px; }
.fitem.unread { background: var(--tag); border-radius: 8px; padding-left: 8px; }
.map-sm { height: 320px; }
tr.done td { background: color-mix(in srgb, #2e9e5b 7%, transparent); }
.est { font-size: 11px; color: var(--muted); font-weight: 400; }
.lbl { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.lbl .tag { font-weight: 400; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.btnrow button { align-self: auto !important; }
.addpeak { position: relative; max-width: 520px; margin: 10px 0 16px; }
.addpeak input[name=q] { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text); }
.aka { color: var(--muted); font-size: .92em; }
.aka-big { margin: -4px 0 6px; color: var(--text-2); }
.prow { display: flex; gap: 12px; align-items: center; }
.pthumb { width: 96px; height: 64px; object-fit: contain; border-radius: 7px; flex: none; background: var(--photo-bg); display: block; }
td .pthumb[width="72"], td .pthumb[data-w="72"] { width: 72px; height: 48px; }
.pthumb.none { display: flex; align-items: center; justify-content: center; color: var(--border-strong); }
.fitem { align-items: flex-start; }
.fitem > div { flex: 1; min-width: 0; }
.fthumb .pthumb { width: 120px; height: 80px; }
@media (max-width: 560px) { .pthumb { width: 64px; height: 44px; } .fthumb { display: none; } }
.prow .rts { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
tr.nomatch td { background: color-mix(in srgb, #f0c674 12%, transparent); }
.err { color: #b42318; }
table.peaks select, table.peaks td input { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--bg); color: var(--text); max-width: 100%; }
.stack textarea { font-family: inherit; }

/* one-line Technical · Effort in list rows */
.rline { margin-top: 4px; font-size: .88em; color: var(--text-2); white-space: nowrap; }
.rline b { color: var(--text); }
.rline [data-tip] { border-bottom: 1px dotted currentColor; cursor: help; }
.rline .dot { margin: 0 .35em; }
/* search: little-known entries (not researched, barely covered) are visibly secondary */
.sugg li.minor .sg-n { color: var(--text-2); }
.sugg .sg-minor { font-style: italic; color: var(--muted); }

/* footer brand line (guide: "My Dream Peaks" in Georgia, "Climbers Community" in Georgia Italic) */
.foot-brand { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 17px; color: var(--text); padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
/* primary logo artwork: light background, clear space of one capital M, at least 200 px wide */
.brand-logo { display: block; width: 220px; max-width: 60vw; height: auto; padding: 18px; background: var(--paper); border-radius: 12px; }   /* vector logo (docs/brand/logo.svg) on Paper with clear space */
details.leaveclub { display: inline-block; margin-left: 10px; } details.leaveclub > summary { cursor: pointer; }
details.leaveclub .leavebox { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); max-width: 34rem; }
details.leaveclub .leavebox p { margin: 0 0 8px; } details.leaveclub button.danger { font: inherit; font-weight: 600; padding: 6px 14px; border: 0; border-radius: 8px; cursor: pointer; }
.listadmin { display: flex; flex-direction: column; gap: 4px; max-width: 40rem; }
.fl-box { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.fl-box input[type=search] { width: 100%; box-sizing: border-box; }
.fl-list { list-style: none; margin: 0; padding: 0; max-height: 22rem; overflow-y: auto; }
.fl-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 2px; border-bottom: 1px solid var(--border); }
.fl-list li[hidden] { display: none; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input[type="date"] { padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.vbtn { font: inherit; font-size: 13px; padding: 2px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; }
.vbtn:hover { border-color: var(--accent); }

/* climb page */
.climbstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.cs { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.cs-up { border-top: 4px solid var(--ascent); } .cs-down { border-top: 4px solid var(--descent); } .cs-top { border-top: 4px solid var(--summit); }
.cs .gv { font-family: var(--font-title); font-size: 24px; margin: 2px 0 4px; }
#climbmap { height: 380px; border-radius: 10px; }
.profile { width: 100%; margin: 4px 0 8px; }
.profile svg { display: block; width: 100%; height: auto; }
.profile .ax { font-size: 12px; fill: var(--muted); font-family: var(--font-body); }
.profile .lbl { font-size: 13px; fill: var(--text); font-weight: 700; font-family: var(--font-body); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.ptip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 6px 9px; font-size: 13px; line-height: 1.35; box-shadow: 0 4px 14px rgba(28, 18, 81, .12); white-space: nowrap; }
.flagbox { margin: 6px 0; } .flagbox details summary { cursor: pointer; display: inline-block; }
.flagbox form { max-width: 520px; margin-top: 8px; }
h1 a { color: inherit; } h1 a:hover { color: var(--link); text-decoration: none; }
.hrbars { width: 100%; margin: -2px 0 6px; }
.hrbars svg { display: block; width: 100%; height: auto; }
.hrbars .ax { font-size: 11px; fill: var(--muted); font-family: var(--font-body); }
.zonekey { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 6px 0 14px; font-size: 13px; }
.zk { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.z { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.z0 { background: var(--z0); } .z1 { background: var(--z1); } .z2 { background: var(--z2); } .z3 { background: var(--z3); } .z4 { background: var(--z4); } .z5 { background: var(--z5); }
.zonetable th .z { vertical-align: -1px; }
.zonebar { display: flex; height: 8px; width: 100%; min-width: 120px; border-radius: 4px; overflow: hidden; margin-top: 5px; gap: 1px; background: var(--surface); }
.zonebar span { display: block; height: 100%; }
.zonebar .z0, .zonetable .z0 { background: var(--z0); }
/* link-style buttons stay links inside forms and cards (quick date choices, undo, test connection) */
.stack button.linkbtn, .card button.linkbtn, .inline-form button.linkbtn { background: none; border: 0; padding: 0; color: var(--link); font-weight: 500; font-size: inherit; cursor: pointer; }
.stack button.linkbtn:hover, .card button.linkbtn:hover { text-decoration: underline; }
/* climbs list: shortcut chips + advanced filters */
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.chiprow > .sub { min-width: 64px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.on { background: var(--midnight); border-color: var(--midnight); color: var(--snow); }
.chip .n { font-size: 12px; color: var(--muted); } .chip.on .n { color: var(--snow); opacity: .8; }
.advanced { margin: 10px 0; } .advanced summary { cursor: pointer; color: var(--link); }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-top: 10px; }
.filters label { display: flex; flex-direction: column; font-size: 13px; color: var(--text-2); gap: 3px; }
.filters input, .filters select { padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.morelink { margin: 8px 0 0; }
.pager { display: flex; gap: 14px; align-items: center; margin: 12px 0; }
.profile .mk { stroke-width: 1.5; } .profile .mk-summit { stroke: var(--gold); } .profile .mk-other { stroke: var(--text); }
.profile .mk-high { stroke: var(--text-2); stroke-dasharray: 3 3; }
.profile .mk-place { stroke: var(--descent); stroke-dasharray: 2 2; } .profile .mkl.mk-place { fill: var(--descent); }   /* huts and camps the track reached */
.trackhl { margin: 10px 0 4px; grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); }
.profile .mkl { font-size: 12px; font-family: var(--font-body); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; fill: var(--text); }
.profile .mkl.mk-high { fill: var(--text-2); font-style: italic; }
.profile .mkl.mk-summit { font-weight: 700; } .profile .mk-summit { stroke-width: 2; }   /* this page's own peak or place */
.profile .mk-lead { stroke: var(--border-strong); stroke-width: 1; fill: none; stroke-dasharray: 2 2; }

/* the member's own climb rating (personal, owner-only) */
.stars { letter-spacing: 1px; white-space: nowrap; color: var(--muted); }
.stars .on, .rate-stars button.on { color: var(--gold); }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px; }
.rate-stars button { font: inherit; font-size: 1.5rem; line-height: 1; background: none; border: 0; padding: 2px 3px; cursor: pointer; color: var(--muted); }
.rate-stars:hover button { color: var(--gold); }
.rate-stars button:hover ~ button { color: var(--muted); }
.rate-stars button:focus-visible { outline: 2px solid var(--link); border-radius: 4px; }
a.nolink { text-decoration: none; }

/* summit oxygen vs sea level: green (normal) to dark red (death zone); the label always says it in words */
:root { --ox0: #2E7D32; --ox1: #7CB342; --ox2: #E0A800; --ox3: #E8710A; --ox4: #C62828; --ox5: #6D0A0A; }
.facts > .oxfact { grid-column: span 2; }   /* meter + two lines need room (a full row on phones) */
@media (max-width: 360px) { .facts > .oxfact { grid-column: auto; } }
.oxmeter { height: 8px; border-radius: 4px; background: var(--tag); box-shadow: inset 0 0 0 1px var(--line, rgba(0,0,0,.08)); margin: 4px 0 4px; max-width: 16rem; overflow: hidden; }
.oxmeter span { display: block; height: 100%; border-radius: 4px; }
.oxmeter.o0 span { background: var(--ox0); } .oxmeter.o1 span { background: var(--ox1); } .oxmeter.o2 span { background: var(--ox2); }
.oxmeter.o3 span { background: var(--ox3); } .oxmeter.o4 span { background: var(--ox4); } .oxmeter.o5 span { background: var(--ox5); }
.oxlabel { font-weight: 600; } .oxlabel.o5 { color: #fff; background: var(--ox5); padding: 0 6px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ox5: #A01818; } }
:root[data-theme="dark"] { --ox5: #A01818; }

details.gpsmark { max-width: 100%; } details.gpsmark p, details.gpsmark form { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
details.gpsmark select { max-width: 100%; }

/* "You've been here": the member's own climbs of this peak or pass */
.beenhere { margin: 14px 0 6px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 10px; }
.bh-title { font-size: 1.15rem; margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bh-check { color: var(--gold); font-weight: 700; }
.bh-count { font-family: inherit; font-size: .9rem; font-weight: 500; color: var(--text-2); }
.netlist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 6px 18px; }
.netlist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.netclubs { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.bh-list { list-style: none; margin: 0; padding: 0; }
.bh-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--border); }
.bh-list li:first-child { border-top: 0; }
.bh-date { font-weight: 600; min-width: 7.5em; }
.bh-acts { margin-left: auto; display: inline-flex; gap: 12px; align-items: center; }
.bh-track { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--midnight) !important; font-weight: 600; text-decoration: none; }
.bh-track:hover { filter: brightness(1.05); text-decoration: underline; }

/* climb page: explained numbers (tip.js) and altitude we can't trust */
.climbstats [data-tip] { border-bottom: 1px dotted var(--border-strong); cursor: help; }
.altbad { color: #A15C00; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .altbad { color: #F2B33D; } }
:root[data-theme="dark"] .altbad { color: #F2B33D; }
/* per-row 'GPS wrong?' menu on the import page */
.gpsmenu { display: inline-block; position: relative; }
.gpsmenu > summary { list-style: none; display: inline; cursor: pointer; }
.gpsmenu > summary::-webkit-details-marker { display: none; }
.gpsmenu .menu { margin-top: 6px; max-width: 20rem; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; white-space: normal; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gpsmenu .menu .linkbtn { text-align: left; }
.rowacts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: 14px; }
.rowacts .linkbtn { font-size: 14px; }
.skiprefs { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 12px 0; }
.skiprefs label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.skiprefs label input { margin: 0; width: auto; }
.skiprefs > .sub { flex-basis: 100%; }
.rowacts { align-items: flex-start; } .rowacts .gpsmenu[open] { flex-basis: 100%; }
.saving { opacity: .55; transition: opacity .15s; }
/* near-miss / possible-attempt track preview on the import page */
.trackprev { margin: 8px 0 4px; max-width: 760px; }
.trackprev .trackmap { height: 260px; border-radius: 8px; border: 1px solid var(--border); }
.trackprev > svg { display: block; width: 100%; margin-top: 6px; }   /* the profile only — not the map's own drawing layer */
.trackprev .ax { font-size: 11px; fill: var(--muted); }
/* profile counts that open the filtered climbs list */
a.statlink { color: inherit; text-decoration: none; }
a.statlink:hover .gv, a.statlink:focus-visible .gv { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
a.statlink .gl::after { content: " ›"; color: var(--muted); }
/* "Continue with Google" — Google's sign-in button look (light and dark), then an "or" divider */
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px;
        background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; border-radius: 6px; font: 500 15px/1 Roboto, Arial, sans-serif; text-decoration: none; }
.gbtn:hover { background: #F7F8F8; text-decoration: none; } .gbtn:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gbtn { background: #131314; color: #E3E3E3; border-color: #8E918F; } }
:root[data-theme="dark"] .gbtn { background: #131314; color: #E3E3E3; border-color: #8E918F; }
.orline { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; color: var(--muted); font-size: 13px; }
.orline::before, .orline::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
/* long-form text pages (privacy) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin: 1.2em 0 .3em; font-size: 1.05rem; }
.prose li { margin: .35em 0; line-height: 1.55; } .prose p { line-height: 1.6; }
.foot-links { font-size: 13px; margin-bottom: 6px; }
/* moderation */
.reason { min-width: 18rem; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.modacts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 10px; }
.modacts form, .reports form { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.modacts label { display: inline-flex; flex-direction: row; gap: 6px; align-items: center; margin: 0; }
.modacts label input { width: auto; margin: 0; }
.reports li { margin-bottom: 14px; } .reports form { margin-top: 6px; }
.reportbox { margin: 18px 0 6px; } .reportbox summary { cursor: pointer; display: inline-block; }
.reportbox form { max-width: 28rem; margin-top: 8px; }
/* invitations */
.authbox.wide { max-width: 40rem; }
.invnote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--surface); font-style: italic; }
.invnote footer { margin-top: 4px; font-style: normal; }
a.btn { display: inline-block; padding: 9px 16px; border-radius: 6px; background: var(--midnight); color: var(--snow); text-decoration: none; font-weight: 600; }

.numin { width: 6rem; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* answering a connection request from the email */
.answer-card { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.answer-card h1 { margin: 0; font-size: 1.6rem; } .answer-card .caption { margin: 4px 0 0; }
.answer-actions { display: flex; gap: 14px; align-items: center; margin: 18px 0 10px; }
.answer-actions button.primary { font-size: 1.1rem; padding: 12px 34px; background: var(--gold); color: var(--midnight); border: 0; border-radius: 10px; font-weight: 700; cursor: pointer; }

/* ---- review 2026-11-08: comfortable tap targets on phones (>= 40 px) */
@media (max-width: 640px) {
  .nav { gap: 4px; }
  .nav a { display: inline-block; padding: 9px 10px; }
  .pager a, .coverage a { display: inline-block; padding: 10px 4px; }
  .ftoggle > summary, details.more > summary, .filters summary { display: list-item; padding: 10px 4px; }
  .top-in .bell, .top-in .hdrlink { display: inline-block; padding: 8px 6px; }
  .photo figcaption a { display: inline-block; padding: 6px 0; }
}
/* tables inside collapsible sections scroll sideways instead of spilling */
details.more > table, details.more > .scroll { max-width: 100%; }
.tipq { cursor: help; border-bottom: 1px dotted var(--border-strong); white-space: nowrap; }

/* phone: climb and import tables become cards (no sideways scrolling, nothing cut off) */
@media (max-width: 600px) {
  table.ctable thead, table.itable thead { display: none; }
  table.ctable, table.ctable tbody, table.ctable tr, table.ctable td,
  table.itable, table.itable tbody { display: block; width: auto; }
  table.ctable tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  table.ctable td { border: 0; padding: 2px 0; }
  table.ctable td:first-child { font-size: 13px; color: var(--text-2); }
  table.itable tr { display: grid; grid-template-columns: 28px 1fr auto; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  table.itable td { border: 0; padding: 0; }
  table.itable td:nth-child(2) { grid-column: 2; }
  table.itable td:nth-child(3) { grid-column: 3; grid-row: 1; font-size: 13px; color: var(--text-2); }
  table.itable td:nth-child(5) { grid-column: 2 / 4; white-space: normal; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 720px) { table.ctable td.hide-s, table.itable td.hide-s { display: none; } }   /* phones only (as .hide-s) */

/* narrow header: brand + account on the first row, menu and search below (no orphaned Feed/bell/avatar row) */
@media (max-width: 1000px) {
  .top-in { gap: 6px 18px; }
  .top-in .search { flex-basis: 140px; }
}
@media (max-width: 780px) {
  .top-in .who { order: 1; margin-left: auto; }
  .top-in .nav { order: 2; }
  .top-in::after { content: ""; order: 1; flex-basis: 100%; height: 0; }
  .top-in .search { order: 3; flex-basis: 200px; max-width: none; }
}
@media (max-width: 560px) { .top-in .search { flex-basis: 100%; } }
/* zones table scrolls sideways on phones: keep the row name (and its bar) in view */
@media (max-width: 600px) {
  .zonetable td:first-child, .zonetable th:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; min-width: 120px; }
}
details.alsorep { margin: 0; }
details.alsorep > summary { padding: 2px 0; cursor: pointer; }
/* plain buttons (no class) never fall back to the browser look; filter submits are primary */
button:where(:not([class])) { font: inherit; font-weight: 600; padding: 7px 14px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
button:where(:not([class])):hover { border-color: var(--link); }
.filters button[type=submit] { background: var(--primary); color: var(--brand-ink); border-color: transparent; }
.filters .chk { flex-direction: row; }
@media (max-width: 600px) { .filters > input[type=search], .filters > select { flex: 1 1 100%; } }
/* short pages (sign in, sign up): footer sits at the bottom of the window, not mid-screen */
body > main { min-height: calc(100vh - 210px); }
/* featured climbs (profile) */
.featured { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.featcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 12px; overflow: hidden; }
.featimg img { display: block; width: 100%; height: 190px; object-fit: cover; background: var(--photo-bg); }
.featbody { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.featbody h3 { margin: 0; font-size: 20px; font-family: var(--font-title); }
.featnote { margin: 6px 0 0; font-style: italic; color: var(--text-2); font-size: 15px; }
.featact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.featform { display: inline; }
form.featform button.linkbtn.feat { font-size: 13px; font-weight: 500; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; }
form.featform button.linkbtn.feat.on { color: var(--text); font-weight: 700; }
.tabs .n { font-size: 12px; opacity: .7; margin-left: 2px; }
/* phone: the peaks list keeps the climb count small and drops "once" */
@media (max-width: 600px) {
  table.ptable td.num { text-align: left; font-size: 14px; }
}
/* geo pages as tabs: the tab names the section, so its heading is hidden (kept for no-JS and search engines) */
.gtabs { margin: 16px 0 6px; }
.gtabs-on section.gtab > h2:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* account: email addresses */
table.emails td { vertical-align: middle; }
form.addemail { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
form.addemail input { flex: 1 1 220px; font: inherit; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); color: var(--text); }
form.addemail button { align-self: auto; }
/* forms: fields in a row line up even if one label wraps; an input with a fixed prefix (profile address) */
.row2, .row3 { align-items: end; }
.prefixed { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: var(--bg); }
.prefixed .pfx { display: flex; align-items: center; padding: 0 2px 0 10px; color: var(--muted); font-size: 14px; white-space: nowrap; background: var(--surface); border-right: 1px solid var(--border); padding-right: 8px; }
.prefixed input { border: 0 !important; border-radius: 0 !important; flex: 1 1 auto; min-width: 0; }
label > .lt { display: flex; gap: 4px; align-items: baseline; }
@media (max-width: 600px) {
  .stack .radio:has(> .sub), .card .radio:has(> .sub) { flex-wrap: wrap; }
  .radio .sub { flex-basis: 100%; margin-left: 24px; }
  fieldset .row3 { grid-template-columns: 1fr 1fr; }
}
/* import page: look at a day */
form.dayform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 14px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
form.dayform input { font: inherit; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); color: var(--text); }
/* account menu: groups, staff tools set apart */
.usermenu .menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 6px; }
.usermenu .menu .mhead .sub { font-size: 12px; }
.usermenu .menu .mlabel { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 10px 0; }
.usermenu .menu a.staff { font-size: 14px; color: var(--text-2); }
/* tracks list */
table.trackt td.num .sub { white-space: nowrap; }
@media (max-width: 600px) {
  table.trackt thead { display: none; }
  table.trackt, table.trackt tbody { display: block; }
  table.trackt tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  table.trackt td { border: 0; padding: 0; text-align: left !important; }
  table.trackt td:first-child { grid-column: 1 / 3; }
  table.trackt td.num::before { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  table.trackt td:nth-child(2)::before { content: "Whole track"; } table.trackt td:nth-child(3)::before { content: "Ascent"; }
  table.trackt td:nth-child(4)::before { content: "On top"; } table.trackt td:nth-child(5)::before { content: "Descent"; }
}
.keyval { display: inline-block; margin: 3px 0 2px; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--gold); color: var(--midnight); }
/* climb page: adjust start / top / end */
form.bounds { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-width: 720px; }
form.bounds .brow { display: grid; grid-template-columns: 130px 1fr 130px; gap: 10px; align-items: center; font-size: 14px; }
form.bounds .bo { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 13px; }
form.bounds input[type=range] { width: 100%; }
@media (max-width: 600px) { form.bounds .brow { grid-template-columns: 1fr auto; } form.bounds input[type=range] { grid-column: 1 / 3; grid-row: 2; } }
/* climb page: edit boundaries on the time profile */
h2.withact { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
h2.withact .linkbtn { font-family: var(--font-body); }
form.editbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 8px 12px; margin: 6px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
form.editbar .dotkey { color: var(--summit); }
svg .edlbl { font-size: 11px; font-weight: 700; fill: var(--text); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.cadbars { margin-top: 2px; }
#prof-time.editing, #prof-time.editing * { user-select: none; -webkit-user-select: none; touch-action: none; }
.cadbars svg text { font-size: 11px; fill: var(--muted); }
/* hidden always wins over a component's own display (the stage editor bar stayed visible) */
[hidden] { display: none !important; }
button.editstages { font: inherit; font-family: var(--font-body); font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
button.editstages:hover { border-color: var(--link); }
form.editbar button.primary { font: inherit; font-weight: 700; padding: 6px 14px; border: 0; border-radius: 8px; background: var(--primary); color: var(--brand-ink); cursor: pointer; }
/* import setup: key / settings / status */
.keyacts { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.keyacts details.inline { display: inline-block; }
.keyacts details.inline[open] { display: block; flex-basis: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
summary.btnlike { list-style: none; display: inline-block; font-weight: 600; font-size: 15px; padding: 7px 14px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
summary.btnlike::-webkit-details-marker { display: none; }
form.importnow { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
form.importnow label { display: flex; flex-direction: column; font-size: 13px; color: var(--text-2); gap: 3px; }
form.importnow input[type=date] { font: inherit; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); color: var(--text); }
.jobline { padding: 8px 12px; border-radius: 8px; background: var(--tag); color: var(--tag-ink); font-size: 15px; }
dl.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; margin: 4px 0 0; }
dl.kv dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
dl.kv dd { margin: 2px 0 0; font-size: 16px; }
button.secondbtn { font: inherit; font-weight: 600; font-size: 15px; padding: 7px 14px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
button.secondbtn:disabled { opacity: .5; cursor: default; }
/* climb form: climbed with */
.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); font-size: 14px; }
.pchip img, .pchip .pinit { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.pchip .pinit { display: inline-flex; align-items: center; justify-content: center; background: var(--tag); color: var(--tag-ink); font-weight: 700; font-size: 12px; }
.pchip .pst { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pchip.st-confirmed { border-color: #2f9e5b; } .pchip.st-confirmed .pst { color: #2f9e5b; }
.pchip.st-tagged, .pchip.st-new { border-color: var(--gold); } .pchip.st-tagged .pst, .pchip.st-new .pst { color: #B07A00; }
.pchip.st-declined { opacity: .55; text-decoration: line-through; }
.pchip.st-invited { border-style: dashed; }
.pchip .pdel { border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.psearch { position: relative; max-width: 520px; }
.psearch input { width: 100%; font: inherit; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); color: var(--text); }
.presults { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 4px; }
.presults .pres { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.presults .pres:hover, .presults .pres:focus { background: var(--tag); }
.presults .pres img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.presults p { margin: 6px 8px; }
.pinvite .pinvrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.pinvite .pinvrow input { flex: 1 1 200px; font: inherit; padding: 6px 9px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); color: var(--text); }
.card .pchip button.pdel, .stack .pchip button.pdel { background: none; border: 0; padding: 0 2px; color: var(--muted); font-size: 16px; font-weight: 400; align-self: center; }
.card .presults button.pres, .stack .presults button.pres { background: none; color: var(--text); font-weight: 400; padding: 6px 8px; align-self: stretch; }
.card .presults button.pres:hover, .stack .presults button.pres:hover, .card .presults button.pres:focus { background: var(--tag); }
.card form.importnow button.primary { align-self: flex-end; padding: 8px 18px; }
.card form.importnow input[type=date] { padding: 8px 10px; }
/* clubs */
.headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
a.btn.primary { display: inline-block; padding: 8px 16px; border-radius: 8px; background: var(--primary); color: var(--brand-ink); font-weight: 700; }
a.btn.primary:hover { text-decoration: none; filter: brightness(1.1); }
.clubcard { display: flex; gap: 12px; align-items: center; }
.clubcard img, img.clublogo { border-radius: 12px; object-fit: contain; background: var(--photo-bg); flex: none; }
img.clublogo.big { width: 120px; height: 120px; }
.clublogo-none { width: 56px; height: 56px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--gold); font-family: var(--font-title); font-size: 28px; }
.clublogo-none.big { width: 120px; height: 120px; font-size: 56px; }
.facepile { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.facepile img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.membergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mcard-none { width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--tag); color: var(--tag-ink); font-weight: 700; flex: none; }
.mcard img.club-sq { border-radius: 8px; object-fit: contain; background: var(--surface); }
.searchtabs { margin: 10px 0 18px; }
.sres { margin: 0 0 30px; }
.sres h2 .n { font-family: var(--font-body); font-size: 15px; color: var(--muted); font-weight: 400; }
.mcard { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
a.mcard:hover { text-decoration: none; border-color: var(--link); }
.mcard img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
ul.feedlist { list-style: none; padding: 0; } ul.feedlist li { padding: 6px 0; border-bottom: 1px solid var(--border); }
/* clubs: logos big enough to read */
.clubcard img { width: 96px; height: 96px; }
.clublogo-none.mid { width: 96px; height: 96px; font-size: 44px; }
img.clublogo.big { width: 160px; height: 160px; }
.clublogo-none.big { width: 160px; height: 160px; font-size: 72px; }
@media (max-width: 600px) { img.clublogo.big, .clublogo-none.big { width: 112px; height: 112px; } }
.facepile .att img { opacity: .45; }
.facepile .att { position: relative; }

/* the club on one mountain (/c/<club>/peak/<id>) */
.cp-title { margin-bottom: 12px; }
.cp-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.cp-card { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); text-decoration: none; }
.cp-card:hover { border-color: var(--border-strong); }
.cp-card > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-card .cp-name { font-family: var(--font-title); font-size: 1.25rem; }
.cp-card .cp-go { margin-top: 4px; text-decoration: underline; }
.cp-card img.clublogo { width: 96px; height: 96px; }
.cpmap { height: 420px; border-radius: 12px; border: 1px solid var(--border); }
.cp-legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cp-legend li, .cp-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sw { display: inline-block; width: 18px; height: 4px; border-radius: 2px; flex: none; }
.cp-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cp-outing { margin-bottom: 20px; }
.cp-outing h3 { margin: 0 0 8px; font-family: var(--font-title); }
.cp-climb { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px;
  transition: box-shadow .3s; }
.cp-climb.flash { box-shadow: 0 0 0 3px var(--gold); }
.cp-who a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.cp-who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cp-notes { margin: 8px 0 0; white-space: normal; }
.cp-notes p { margin: 0 0 6px; }
.cp-track { margin: 8px 0 0; }
@media (max-width: 640px) {
  .cp-head { grid-template-columns: 1fr; }
  .cp-card .pthumb { width: 96px; height: auto; }
  .cpmap { height: 300px; }
}
button.chip { cursor: pointer; font: inherit; font-size: 14px; }
.cp-sum { margin: 0 0 8px; font-size: 1.05rem; }
.cp-who-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--border-strong);
  border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.cp-who-btn[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
.cp-who-btn[aria-pressed="false"] .sw { background: var(--muted) !important; }
.cp-clock { margin: 2px 0 0; }
.clock { font-variant-numeric: tabular-nums; }
.climblog { margin: 8px 0 12px; }
.climbacts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.editclimb { margin: 12px 0 20px; }
.editclimb form.card { border: 0; padding: 0; box-shadow: none; }
.samecl { padding: 12px 14px; border: 1px solid var(--border-strong); border-left: 4px solid var(--gold); border-radius: 10px; background: var(--surface); margin: 10px 0; }
.samecl p { margin: 0 0 8px; }
.samecl-opts { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.samecl-opts form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.factions { margin: 4px 0 0; }
/* climb page: who climbed what, then the mountain in brief (height, place, difficulty, small photo), the log, the GPS track */
.climbhead { font-size: 1.7rem; line-height: 1.25; text-wrap: balance; margin: 6px 0 12px; }
.climbhead > a:first-child { color: var(--text); }
.climbhead .when { color: var(--text-2); font-weight: 400; }
.mtncard { display: flex; gap: 14px; align-items: center; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; margin: 0 0 18px; }
.climb-top { margin-bottom: 4px; }
.climb-main { min-width: 0; }
.mtncard .mtn-photo { flex: none; }
.mtncard .mtn-photo img { width: 132px; height: 96px; object-fit: cover; border-radius: 8px; display: block; background: var(--photo-bg); }
.mtncard .mtn-body { min-width: 0; display: grid; gap: 6px; }
.mtncard .mtn-line { margin: 0; }
.mtncard .badges { margin: 0; }
.climbsec { margin: 0 0 8px; }
.gpshead { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.gpshead .sub { font-family: var(--font-body); font-size: .95rem; font-weight: 400; }
@media (max-width: 560px) { .climbhead { font-size: 1.4rem; } }
/* peak lists: cards headed by the list's highest mountain; star and want-to buttons */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 10px 0 18px; }
.lcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.lcard .lc-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--photo-bg); }
.lcard .lc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcard .lc-none { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.lcard .lc-top { position: absolute; left: 8px; bottom: 8px; background: rgba(14, 10, 42, .78); color: #FEF7EE; font-size: 13px; padding: 2px 8px; border-radius: 999px; }
.lcard .lc-body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.lcard .lc-name { font-family: var(--font-title); font-size: 1.1rem; color: var(--text); }
.lcard .lc-star { position: absolute; top: 8px; right: 8px; margin: 0; }
.starbtn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(14, 10, 42, .72); color: #FEF7EE; font-size: 18px; cursor: pointer; line-height: 1; }
.starbtn.on { color: var(--gold); }
.listhead { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.listhero { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--photo-bg); min-height: 120px; }
.listhero img { width: 100%; height: 210px; object-fit: cover; display: block; }
.listhero .lh-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(14, 10, 42, .85)); color: #FEF7EE; display: grid; }
.listhero .lh-cap .sub { color: #D3CDE6; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.listhero .lh-cap b { font-family: var(--font-title); font-size: 1.25rem; font-weight: 600; }
@media (max-width: 760px) { .listhead { grid-template-columns: 1fr; } .listhero img { height: 170px; } }
.wantbtn { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 2px 10px; font-size: 13px; cursor: pointer; }
.wantbtn.on { background: var(--gold); border-color: var(--gold); color: #1C1251; }
td.you { white-space: nowrap; }
.clublist { display: flex; flex-direction: column; gap: 6px; }
.clublist .lcard { flex: 1; }
.cl-lead { gap: 6px; }
.cl-lead img { width: 26px; height: 26px; }
.tag-att { background: transparent; border: 1px dashed var(--border-strong); color: var(--text-2); }
/* a club's own list followed by a member: tagged with the club on their profile; "You" box on the club list page */
.lcard .lc-tag { font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.youbox { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 8px 0 12px; }
.youbox p { margin: 0; }
.followbtn.on { color: var(--gold); border-color: var(--gold); }
/* search: people found by name (climbers we feature, members with public profiles) */
.people-hits { align-items: center; }
.chip .chip-av { border-radius: 50%; vertical-align: -4px; }
/* search suggestions: a small round face for climbers and members */
.sugg a.sg-who { flex-direction: row; align-items: center; gap: 10px; }
.sugg .sg-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sugg .sg-face { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--tag); }
.sugg .sg-none { display: grid; place-items: center; color: var(--text-2); font-weight: 600; }
.chip .chip-av { object-fit: cover; object-position: 50% 20%; }
/* summit certificate on a climb page: layout and map switches, preview, download */
.cert { margin-top: 28px; }
.cert-ctl { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 10px 0 14px; }
.cert .seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.cert .seg button { background: none !important; color: var(--text) !important; border: 0; border-radius: 0; padding: 7px 14px; font: inherit; cursor: pointer; margin: 0; }
.cert .seg button + button { border-left: 1px solid var(--border-strong); }
.cert .seg button[aria-pressed="true"] { background: var(--midnight) !important; color: var(--snow) !important; }
.cert .button { display: inline-block; background: var(--gold); color: var(--midnight); font-weight: 600; padding: 8px 18px; border-radius: 999px; text-decoration: none; }
#cert-img { display: block; width: 100%; max-width: 480px; height: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--photo-bg); transition: opacity .2s; }
#cert-img.loading { opacity: .45; }
/* two-factor setup: numbered steps (scan or open in the app, then confirm with a code) */
.tfa-steps { padding-left: 1.4em; display: grid; gap: 18px; max-width: 560px; }
.tfa-steps h2 { margin: 0 0 4px; font-size: 1.15rem; }
.tfa-steps .qr { margin: 8px 0; }
.button-ghost { display: inline-block; border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 12px; }
.cert-opt { display: inline-flex; align-items: center; gap: 8px; }
.cert-hint { margin: -4px 0 12px; }
/* places: huts, camps, trek villages, trailheads */
.place-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 20px; align-items: start; }
@media (max-width: 700px) { .place-head { grid-template-columns: 1fr; } }
.place-head .photo img { width: 100%; border-radius: 12px; display: block; }
.kindtag { margin: 0; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 600; color: var(--muted); }
.placepeaks { list-style: none; padding: 0; display: grid; gap: 6px; }
/* trips (trial) */
.triplist { display: grid; gap: 10px; max-width: 760px; }
.tripcard { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; }
.tripcard.suggested { border-style: dashed; }
.tripcard .tc-name { font-family: var(--font-title); font-size: 1.15rem; }
#tripmap { height: 420px; margin: 14px 0 6px; }
.tripdays td { vertical-align: top; }
.tripdays tr.rest td { background: var(--photo-bg); }
.tripedit { margin: 12px 0; max-width: 560px; }
/* track page (trial): parts of a day */
#trackmap { height: 420px; margin: 12px 0 8px; }
.profwrap { color: var(--muted); }
.trackprof { width: 100%; height: auto; display: block; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 8px; }
.legend .sw:first-child { margin-left: 0; }
[data-mk] { cursor: default; border-radius: 6px; transition: background .15s; }
[data-mk].mk-on { background: var(--tag); }
/* the one focus look on every map (18 Nov 2026, Peter: what is focused must stand out, the same everywhere): the
   object's own symbol in the focused-peak red, with a white edge and a red glow — peaks, passes, huts, sights, rivers,
   summits and nights alike (map.js selIcon, mapmarks.js, place and peak pages' own object) */
.mk-sel svg { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 7px rgba(208, 59, 59, .8)); overflow: visible; }
.mk-sel .pk, .mk-sel svg { color: #d03b3b !important; }
.mk-sel svg > :first-child { fill: #d03b3b; }

/* Edit mode (11 Nov 2026, standing rule in docs/BRAND.md "Interface rules"): pages show the view; editing controls only appear
   after an "Edit" button (?edit=1), with a "Done" button to leave. */
a.editbtn { display: inline-block; font-weight: 600; font-size: 15px; padding: 7px 14px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--text); text-decoration: none; }
a.editbtn:hover { text-decoration: none; border-color: var(--gold); }
.editbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px; margin: 12px 0; border: 1px dashed var(--gold); border-radius: 10px; }
.editbar .sub { flex: 1 1 200px; }
.editrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }

/* trip cards (profile Trips section, trips page) */
.tripcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tripcards .tripcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.tripcard .tc-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2, var(--border)); }
.tripcard .tc-body { display: grid; gap: 3px; padding: 10px 14px 12px; }
.tripcard:hover { border-color: var(--gold); text-decoration: none; }

/* trip page (11 Nov 2026): stat boxes like the profile; the high point stands out like peak heights elsewhere */
.tripstats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 12px 0 16px; }
.tripstats .g-hp { border-left: 4px solid var(--gold); }
.tripstats .g-hp .m { font-weight: 700; }
.tripnotes { max-width: 65ch; white-space: pre-line; }
.editbar button { margin: 0; }
.editdays tr.in td { background: color-mix(in srgb, var(--gold) 9%, transparent); }
.tripedit h2 { margin-top: 20px; }

/* trip page summit cards: photo, name, height; hover zooms the map to that climb */
.summitcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.summitcard { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.summitcard:hover, .summitcard:focus-visible { border-color: var(--gold); transform: translateY(-2px); text-decoration: none; }
.summitcard .pthumb { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; display: block; }
.summitcard .pthumb.none { display: grid; place-items: center; color: var(--muted); }
.summitcard .sc-body { display: grid; gap: 2px; padding: 8px 12px 10px; }
.summitcard .sc-name { font-family: var(--font-title); font-size: 1.1rem; color: var(--link); }
.summitcard .sc-elev .m { font-weight: 700; }
.summitcard.attempt { border-style: dashed; }
.sc-hint { margin-top: 6px; }
@media (hover: none) { .sc-hint { display: none; } }

/* trip day-by-day: a title per day (generated or the member's), linking to the track when there is one */
.tripdays .dayhead { min-width: 220px; max-width: 340px; }
.tripdays .dayhead > .sub:first-child { display: block; }
.tripdays .daytitle { display: block; font-weight: 600; font-size: 1.02rem; margin: 1px 0 2px; }
.tripdays a.daytitle { color: var(--link); }
.tripdays .daytracks { display: block; }
.tripdays tr[data-acts]:hover td { background: color-mix(in srgb, var(--gold) 7%, transparent); }
.daytitles label { display: grid; gap: 2px; }
.summitcard .kindart { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; color: color-mix(in srgb, var(--gold) 70%, var(--muted)); background: var(--surface-2, color-mix(in srgb, var(--midnight) 60%, var(--surface))); }

/* place pages: researched info (11 Nov 2026) */
.placeabout { max-width: 65ch; font-size: 1.05rem; }
.placelinks { display: flex; flex-wrap: wrap; gap: 8px; }
.placelinks .button-ghost { text-decoration: none; }
.timeline { list-style: none; padding: 0; display: grid; gap: 6px; max-width: 72ch; }
.timeline b { display: inline-block; min-width: 3.2em; color: var(--gold); }
.placepeople, .placefacts { display: grid; gap: 6px; max-width: 72ch; padding-left: 1.1em; }
a.src { text-decoration: none; font-size: .85em; color: var(--muted); }
figure.photo figcaption { margin-top: 4px; }

/* trip page: ⌖ "show on the map" buttons (click to focus; the card itself opens its page) */
.summitcard { position: relative; }
.summitcard .sc-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
.summitcard .sc-link:hover { text-decoration: none; }
.focusbtn { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.focusbtn { display: inline-grid; place-items: center; }
.focusbtn.inline { display: inline-flex; align-items: center; gap: 4px; }
.sc-hint .ficon { vertical-align: -2px; }
.focusbtn:hover, .focusbtn:focus-visible { border-color: var(--gold); color: var(--gold); }
.focusbtn.inline { position: static; width: auto; height: auto; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 6px; vertical-align: 1px; }
.summitcard.focused { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 45%, transparent); }
.tripdays tr.focused td { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.mapwrap { position: relative; }
/* above the map, not over it (13 Nov 2026, Peter: the bar hid tracks and marks) */
.mapfocus { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px;
  padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--gold); }
.mapfocus .mf-name { flex: 1 1 160px; font-weight: 600; min-width: 0; }
.mapfocus button { font: inherit; font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.mapfocus button:hover { border-color: var(--gold); }
.mapfocus .mf-prev, .mapfocus .mf-next { max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapfocus .mf-name { text-align: center; }
@media (max-width: 640px) { .mapfocus .mf-name { flex-basis: 100%; order: -1; } }

/* a member in a "with …" line: small round photo before the name */
.who { white-space: nowrap; }
.club-mini { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; vertical-align: -5px; margin-right: 5px; border: 1px solid var(--border); background: var(--surface); }
span.club-mini.none { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--tag-ink); background: var(--tag); box-sizing: border-box; }
.clubev .club-mini { width: 16px; height: 16px; vertical-align: -4px; margin-right: 4px; }
.av-mini { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: -5px; margin-right: 5px; border: 1px solid var(--border); }

/* home page: what a member gets, for signed-out visitors — option B (Peter, 12 Nov 2026): text + Join, and a clickable
   preview of a real profile (SAMPLE_PROFILE in main.py, numbers live) */
.pitch { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 32px; align-items: center; margin: 26px 0 12px; }
.pitch h2 { font-size: 1.85rem; margin: 0 0 8px; }
.pitch-main p { margin: 0 0 18px; color: var(--text-2); max-width: 52ch; }
.pitch .pnote { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.pjoin { display: inline-block; background: var(--gold); color: #1C1251; font-weight: 700; font-size: 18px; padding: 13px 28px; border-radius: 999px;
         text-decoration: none; white-space: nowrap; box-shadow: 0 2px 0 rgba(28, 18, 81, .18); }
.pjoin:hover { filter: brightness(1.05); text-decoration: none; }
.pcard { position: relative; display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border);
         border-radius: 16px; padding: 20px 20px 16px; box-shadow: 0 6px 24px rgba(28, 18, 81, .10); }
.pcard:hover { border-color: var(--border-strong); text-decoration: none; }
.pcard .ptag { position: absolute; top: -11px; left: 18px; background: var(--midnight); color: #FEF7EE; font-size: 12px; font-weight: 700;
               letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.pc-hd { display: flex; align-items: center; gap: 14px; }
.pc-hd img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; }
.pc-hd b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 1.35rem; }
.pc-sub { font-size: 14px; color: var(--muted); }
.pc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.pc-stats > span { background: var(--photo-bg); border-radius: 10px; padding: 8px 10px; }
.pc-stats b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 1.25rem; }
.pc-stats small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pc-go { display: block; margin-top: 12px; color: var(--link); font-weight: 600; }
@media (max-width: 760px) { .pitch { grid-template-columns: 1fr; } .pjoin { display: block; text-align: center; } .pc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pcard .ptag { background: var(--gold); color: #1C1251; } }
:root[data-theme="dark"] .pcard .ptag { background: var(--gold); color: #1C1251; }
.helpbox { margin: 10px 0 14px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; background: var(--surface); }
.helpbox summary { cursor: pointer; color: var(--link); font-size: 14px; }
.helpbox ul { margin: 8px 0 4px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.tripends { margin-top: -6px; }
.only-s { display: none; }                         /* words only phones need (a table's header is hidden there) */
@media (max-width: 600px) { .only-s { display: inline; } table.ctable td.num { text-align: left; }
  table.ctable.inl tr { padding: 10px 12px; }
  table.ctable.inl td:first-child { font-size: inherit; color: inherit; }
  table.ctable.inl td:not(:first-child) { display: inline-block; margin-right: 12px; font-size: 14px; color: var(--text-2); } }   /* short facts on one line */
.aisum .lead { margin-bottom: 4px; }
.aisum-note { margin-top: 0; }
.aitag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 0 5px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-2); vertical-align: 1px; margin-right: 4px; }
/* 404 (templates/404.html): same look as the 5xx pages (ops/make_error_pages.py) */
.errpage { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 24px 0 48px; }
.errpage img { width: min(300px, 55vw); height: auto; }
.errtxt { max-width: 30rem; }
.errcode { font-family: var(--font-title); font-size: clamp(64px, 14vw, 112px); line-height: 1; color: #EBA820; margin: 0; letter-spacing: 2px; }
.errname { text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--text-2); margin: 6px 0 22px; }
.errpage h1 { font-weight: normal; font-size: clamp(28px, 5vw, 38px); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.erracts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.errgo { background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.errback { padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .errpage img { background: #FEF7EE; border-radius: 16px; padding: 12px; } }
:root[data-theme="dark"] .errpage img { background: #FEF7EE; border-radius: 16px; padding: 12px; }   /* dark outlines need a light ground */
@media (max-width: 700px) { .errpage { gap: 16px; padding-top: 8px; } .errpage img { width: min(200px, 50vw); } }
.claimbox { margin: 8px 0 12px; }
.claimbox > summary { display: inline-block; cursor: pointer; list-style: none; }
.claimbox > summary::-webkit-details-marker { display: none; }
.claimbox[open] > form { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); max-width: 34rem; }
.srcnote { font-size: 13px; color: var(--muted); max-width: 62ch; }
/* trip photos (app/photos.py) */
.photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.photogrid .ph { margin: 0; }
.photogrid img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; display: block; background: var(--photo-bg); }
.photogrid .ph-review img, .photogrid .ph-hidden img { opacity: .55; }
.photogrid figcaption { margin-top: 4px; }
.phacts { display: block; }
.phacts .linkbtn { margin-right: 8px; }
ol.steps { display: grid; gap: 10px; padding-left: 1.2em; max-width: 44rem; }
@media (max-width: 600px) { .photogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .photogrid img { height: 120px; } }
.phtag { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; border: 0; line-height: 1.6; vertical-align: 1px; font-family: inherit; }
.phtag.ph-map { background: #F6E7C8; color: #7A5200; cursor: pointer; }
.phtag.ph-day { background: var(--surface-2, #ECE6F5); color: var(--text-2); }
.phtag.ph-none { background: #F7E3D8; color: #A4471F; }
.phlegend { line-height: 1.9; }
/* photo states and Google-style selection (trip.html #photos) */
.photogrid .ph { position: relative; }
.photogrid .ph-review img, .photogrid .ph-hidden img { opacity: 1; }
.photogrid.own .ph.st-review img { outline: 3px dashed #C98A12; outline-offset: -3px; }
.photogrid.own .ph.st-hidden img { filter: grayscale(1) brightness(.75); }
.phstate { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; pointer-events: none; }
.phstate.st-review { background: #C98A12; color: #1C1251; }
.phstate.st-hidden { background: #3B3557; color: #FEF7EE; }
.phstate.st-cover { background: #1C1251; color: #FEF7EE; }
p .phstate { position: static; display: inline-block; vertical-align: 1px; }
.phsel { position: absolute; top: 8px; left: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff;
         background: rgba(0, 0, 0, .25); cursor: pointer; padding: 0; opacity: .85; touch-action: none; }
.photogrid .ph:hover .phsel, .photogrid.selecting .phsel { opacity: 1; }
.ph.selected .phsel { background: #1971C2; border-color: #fff; }
.ph.selected .phsel::after { content: "✓"; color: #fff; font-weight: 700; font-size: 15px; line-height: 22px; display: block; text-align: center; }
.ph.selected img { outline: 4px solid #1971C2 !important; outline-offset: -4px; transform: scale(.94); transition: transform .12s; }
.phbar { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 600; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
         margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--gold); box-shadow: 0 4px 18px rgba(0, 0, 0, .15); }
.phbar #phcount { font-weight: 700; margin-right: auto; }
.phadd label.act { cursor: pointer; }
.phplace[open] form { margin-top: 6px; display: grid; gap: 6px; }

/* whole photo in the grid (Peter: tall photos were cropped): letterboxed on a neutral ground, never cut */
.photogrid img { object-fit: contain; background: var(--photo-bg, #EFEAE2); }
/* the trip page's photo strip, map pins, and the viewer/slideshow (static/photos.js) */
.phhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.phhead h2 { margin-right: auto; }
.phcount { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: #C98A12; color: #1C1251; }
.phstrip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; scrollbar-width: thin; }
.phthumb { flex: 0 0 auto; padding: 0; border: 0; background: var(--photo-bg); border-radius: 8px; cursor: zoom-in; }
.phthumb img { height: 120px; width: auto; max-width: 220px; object-fit: contain; border-radius: 8px; display: block; }
.phmore { flex: 0 0 auto; align-self: center; padding: 0 12px; white-space: nowrap; }
.phstrip.fit { overflow: hidden; }
.phstrip.fit .phmore { flex: 1 1 auto; align-self: stretch; display: grid; place-items: center; min-width: 110px; padding: 0 16px; border-radius: 8px;
  background: var(--tag); color: var(--tag-ink); font-weight: 700; text-decoration: none; }
.phstrip.fit .phmore:hover { background: var(--midnight); color: #FEF7EE; }
.phstrip .phthumb[hidden], .phstrip .phmore[hidden] { display: none; }
.phpin-icon { background: none; border: 0; }
.phpin-img { display: block; width: 46px; height: 46px; border-radius: 50%; border: 3px solid #FEF7EE; box-shadow: 0 1px 6px rgba(0, 0, 0, .45);
             background-size: cover; background-position: center; background-color: #C98A12; }
.phpin-n { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #1C1251;
           color: #FEF7EE; font: 700 12px/20px var(--font-body, sans-serif); text-align: center; }
.phviewer { position: fixed; inset: 0; z-index: 2000; background: #0B0820; color: #FEF7EE; display: flex; align-items: center; justify-content: center; }
.phviewer[hidden] { display: none; }
html.pv-open { overflow: hidden; }
.pv-fig { margin: 0; max-width: 100vw; max-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.pv-img { max-width: 100vw; max-height: calc(100vh - 96px); object-fit: contain; display: block; }
.pv-cap { padding: 10px max(16px, env(safe-area-inset-left, 0px)) 0; text-align: center; max-width: 60rem; }
.pv-line { font-family: var(--font-title); font-size: 20px; }
.pv-meta { font-size: 14px; color: #D3CDE6; margin-top: 2px; }
.pv-track { color: #F3D27A; font-size: 14px; }
.phviewer button { background: rgba(254, 247, 238, .12); color: #FEF7EE; border: 0; border-radius: 999px; cursor: pointer; font-size: 26px;
                   width: 48px; height: 48px; line-height: 48px; padding: 0; }
.phviewer button:hover, .phviewer button:focus-visible { background: rgba(254, 247, 238, .28); }
.pv-close { position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
.pv-prev, .pv-next { position: absolute; top: 50%; transform: translateY(-50%); }
.pv-prev { left: max(12px, env(safe-area-inset-left, 0px)); } .pv-next { right: max(12px, env(safe-area-inset-right, 0px)); }
.pv-bar { position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 10px; }
.pv-bar button { font-size: 16px; }
.pv-count { font-size: 14px; color: #D3CDE6; }
@media (max-width: 600px) { .pv-prev, .pv-next { display: none; } .pv-line { font-size: 17px; } }
.phday { margin-top: 28px; }
.phall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.phcard { padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; display: grid; gap: 4px; color: inherit; font: inherit; }
.phcard img { width: 100%; height: 180px; object-fit: contain; background: var(--photo-bg); border-radius: 8px; display: block; }
.phcard-cap { display: grid; font-size: 14px; }
.phcap { width: 100%; font-size: 13px; padding: 4px 6px; margin: 4px 0 2px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); }
.phcap.saved { border-color: #2F7A4F; }
@media (max-width: 600px) { .phall { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phcard img { height: 130px; } }

/* a canyon descent on the track page (app/descents.py) */
.descentline { display: flex; gap: 12px; align-items: center; margin: 10px 0 14px; padding: 10px 14px; border: 1px solid var(--border); border-left: 4px solid var(--descent); border-radius: 10px; background: var(--surface); }
.descentline .dl-art { width: 48px; height: 32px; flex: none; color: var(--text-2); }
.descentline .sub { display: block; }
.descentline.mk-on { border-color: var(--descent); }
.descentrow .dsc-art { width: 72px; height: 48px; display: grid; place-items: center; color: var(--text-2); }
.descentrow .dsc-art svg { width: 48px; height: 32px; }
.tag-descent { background: var(--tag); color: var(--descent); }
.rs-low .rs-down { color: var(--descent); }

/* Manage photos (13 Nov 2026): stages, filters, the map beside the grid */
.phfilters { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 6px 0; border-bottom: 1px solid var(--border); }
.phfilters .chiprow { flex-wrap: wrap; }
.phfilters .chip { font: inherit; font-size: 14px; cursor: pointer; }
.phfilters .chip b { font-weight: 600; color: var(--muted); margin-left: 3px; }
.phwork { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 10px; }
.phmap { height: 260px; border-radius: 10px; }
@media (min-width: 1100px) {
  .phwork { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
  .phmapcol { position: sticky; top: 110px; }
  .phmap { height: 460px; }
}
.photogrid .ph[hidden] { display: none; }
.phedit { display: none; }
.ph-stage2 .phedit { display: block; }
.ph-stage2 .phstate.st-shown { display: none; }
.phstate.st-shown { background: #0E8A6E; color: #fff; }
.phdot { border-radius: 50%; border: 2px solid #1C1251; background: #fff; box-shadow: 0 0 0 1px #fff; }
.phdot.on { background: #EBA820; }
.phclu span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(28, 18, 81, .85); color: #FEF7EE; font-size: 11px; border: 2px solid #fff; }
.phclu b { color: #EBA820; }
.phbar .phday select { font: inherit; padding: 4px 6px; border-radius: 8px; }
.phdaynav { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-top: 4px; }
.phdaynav b { font-family: var(--font-title); font-weight: 400; font-size: 18px; }
.phmeta .phtag { margin-right: 2px; }
.phedit { margin-top: 4px; }
.pheditor { border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); padding: 18px 20px; width: min(520px, calc(100vw - 32px)); }
.pheditor::backdrop { background: rgba(14, 10, 42, .45); }
.pheditor h3 { margin: 0 0 8px; }
.pheditor label { display: grid; gap: 4px; }
.pheditor select, .pheditor input[type=time] { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); max-width: 100%; }
.pheditor label:has(input[type=checkbox]) { display: block; }
.phviewer .pv-bar .pv-pick { width: auto; height: 40px; line-height: 1; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; font-family: var(--font-body); font-size: 16px; font-weight: 700; border-radius: 999px;
  border: 2px solid rgba(254, 247, 238, .7); background: rgba(14, 10, 42, .35); color: #FEF7EE; }
.phviewer .pv-bar .pv-pick:hover, .phviewer .pv-bar .pv-pick:focus-visible { background: rgba(254, 247, 238, .18); }
.phviewer .pv-bar .pv-pick.on { background: #EBA820; border-color: #EBA820; color: #1C1251; }
.phviewer .pv-bar .pv-pick.on:hover { background: #F2BC45; }
.pv-pick kbd { font: inherit; font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 5px; border: 1px solid currentColor; opacity: .7; }
.phneed { cursor: pointer; font-family: inherit; }
.phneed:hover, .phneed:focus-visible { background: #A4471F; color: #fff; }
.pv-pin { display: inline-block; font-family: var(--font-body); font-style: normal; font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; }
.pv-pin-gps { background: #EBA820; color: #1C1251; }
.pv-pin-spot { background: #F6E7C8; color: #7A5200; }
.pv-pin-none { background: rgba(254, 247, 238, .16); color: #D3CDE6; }
/* Manage photos: the two steps, big and clear about which one you're in */
.phsteps { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; margin: 14px 0 8px; }
.phstep { display: grid; gap: 2px; text-align: left; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.phstep:hover { border-color: var(--midnight); }
.phstep .ps-n { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.phstep .ps-t { font-family: var(--font-title); font-size: 22px; line-height: 1.2; }
.phstep .ps-s { font-size: 14px; color: var(--text-2); }
.phstep.on { background: var(--midnight); border-color: var(--midnight); color: #FEF7EE; box-shadow: 0 0 0 3px var(--gold); }
.phstep.on .ps-n { color: var(--gold); }
.phstep.on .ps-s { color: #D3CDE6; }
.ps-arrow { align-self: center; font-size: 22px; color: var(--muted); }
@media (max-width: 600px) { .phsteps { grid-template-columns: minmax(0, 1fr); } .ps-arrow { display: none; } .phstep .ps-t { font-size: 19px; } }
/* a day's photos in the trip's day table: three small ones and See all (14 Nov 2026) */
.dayphotos { display: flex; align-items: center; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.dayph { padding: 0; border: 0; background: var(--photo-bg); border-radius: 6px; cursor: zoom-in; line-height: 0; }
.dayph img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; display: block; }
.dayphall { margin-left: 4px; white-space: nowrap; }
.phday[id] { scroll-margin-top: 80px; }
.myphotos .phhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.myphotos .phhead h2 { margin-right: auto; }
/* your own matches in search (14 Nov 2026): first in the quick search, with your avatar; Yours / Mine on the results page */
.sugg .sg-mine .sg-face { box-shadow: 0 0 0 2px var(--gold); }
.sg-yours { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1C1251; vertical-align: 1px; }
.mineres h2 { display: flex; align-items: center; gap: 8px; }
.mine-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold); }
.minelist { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 4px; }
.mineres h3 { margin: 12px 0 2px; font-size: 16px; }
.mine-t .mine-when { white-space: nowrap; color: var(--text-2); font-size: 15px; }
.mine-av-s img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: -4px; box-shadow: 0 0 0 2px var(--gold); }
.mineres .scroll { margin-bottom: 6px; }

/* the build blog (app/blog.py, 14 Nov 2026) */
.bloghead { max-width: 760px; }
.bloghead h1 { text-wrap: balance; }
.blogtotals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0 8px; }
.blogtotals div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; display: grid; gap: 2px; }
.blogtotals b { font-family: var(--font-title); font-weight: 400; font-size: 24px; color: var(--accent-ink, var(--midnight)); }
.blogtotals span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rsslink { display: inline-flex; align-items: center; gap: 6px; }
.rsslink svg { color: #E87A1F; }
.bloglist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 18px; }
.blogcard { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; }
.blogcard .bc-img img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; object-position: top; display: block; background: var(--photo-bg); }
.blogcard .bc-body { padding: 16px 18px 14px 0; display: grid; align-content: start; gap: 6px; min-width: 0; }
.blogcard h2 { margin: 0; font-size: 24px; text-wrap: balance; }
.blogcard h2 a { color: var(--text); }
.blogcard p { margin: 0; }
.bc-kick { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bc-tags { margin-top: 4px; }
@media (max-width: 700px) { .blogcard { grid-template-columns: minmax(0, 1fr); gap: 0; } .blogcard .bc-body { padding: 14px 16px; } .blogcard .bc-img img { min-height: 0; aspect-ratio: 16 / 9; } }
.blogpost { max-width: 820px; }
.blogpost h1 { text-wrap: balance; margin-bottom: 4px; }
.blogshot { margin: 18px 0; }
.blogshot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); display: block; }
.blogshot figcaption { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.blogbody { font-size: 18px; line-height: 1.65; max-width: 68ch; }
.blogbody h2 { font-size: 26px; margin: 28px 0 8px; }
.blogbody ul { padding-left: 1.2em; }
.blogbody li { margin: 4px 0; }
.aiuse { margin: 28px 0 16px; padding: 14px 18px; border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 12px; background: var(--surface); }
.aiuse h2 { margin: 0 0 2px; font-size: 22px; }
.aiuse table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 15px; }
.aiuse th, .aiuse td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.aiuse th { font-size: 13px; color: var(--muted); font-weight: 600; }
.aiuse .num { text-align: right; }
.blognav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.blognav .next { margin-left: auto; text-align: right; }

/* member docs at /docs (app/sitedocs.py, 14 Nov 2026) */
.docshead { max-width: 780px; }
.docshead h1, .docpage h1 { text-wrap: balance; }
.docsections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin: 20px 0; }
.docsec { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
.docsec h2 { margin: 0 0 8px; font-size: 22px; }
.docsec ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.docsec li { display: grid; gap: 1px; }
.docsec li span { color: var(--text-2); font-size: 15px; }
.docslayout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.docsnav { position: sticky; top: 12px; font-size: 15px; max-height: calc(100vh - 24px); overflow: auto; }
.docsnav summary { font-weight: 700; cursor: pointer; margin-bottom: 4px; }
.docsnav-sec { margin: 12px 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.docsnav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.docsnav a { color: var(--text); }
.docsnav a[aria-current] { font-weight: 700; color: var(--accent-ink, var(--midnight)); }
.docstoc { padding-left: 12px !important; margin: 4px 0 6px !important; border-left: 2px solid var(--gold); }
.docstoc a { color: var(--text-2); font-size: 14px; }
.docpage { max-width: 820px; min-width: 0; }
.docbody { font-size: 18px; line-height: 1.65; }
.docbody > p, .docbody > ul, .docbody > ol { max-width: 68ch; }
.docbody h2 { font-size: 26px; margin: 30px 0 8px; scroll-margin-top: 12px; }
.docbody h3 { font-size: 20px; margin: 20px 0 4px; }
.docbody ul, .docbody ol { padding-left: 1.2em; }
.docbody li { margin: 4px 0; }
.docbody table { border-collapse: collapse; margin: 10px 0; font-size: 16px; display: block; overflow-x: auto; }
.docbody th, .docbody td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.docbody blockquote { margin: 14px 0; padding: 8px 14px; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 10px 10px 0; }
.docbody blockquote p { margin: 4px 0; }
.docshot { margin: 16px 0 20px; }
.docshot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); display: block; }
.docshot figcaption { font-size: 14px; color: var(--text-2); margin-top: 6px; font-style: italic; }
@media (max-width: 860px) { .docslayout { grid-template-columns: minmax(0, 1fr); gap: 8px; } .docsnav { position: static; max-height: none; }
  .docsnav details:not([open]) summary { margin: 0; } }
.aboutband { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin: 28px 0 8px; }
.aboutcard { display: grid; gap: 4px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 12px; color: var(--text); }
.aboutcard:hover { border-color: var(--gold); text-decoration: none; }
.aboutcard b { font-family: var(--font-title); font-weight: 400; font-size: 21px; }
.ab-kick { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
/* photos: "Import from…" menu of sources (14 Nov 2026) */
.phimport { position: relative; display: inline-block; }
.phimport > summary { list-style: none; cursor: pointer; }
.phimport > summary::-webkit-details-marker { display: none; }
.phsrc { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: min(340px, 86vw); display: grid; gap: 10px;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 8px 24px rgba(28, 18, 81, .14); }
.phsrc form { display: grid; gap: 2px; margin: 0; }
.phsrc .linkbtn { text-align: left; font-size: 16px; }
/* where a photo came from: source logos (Immich, Google Photos) in the import menu, page titles and photo cards */
.srcitem { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.srcitem.off { opacity: .7; }
.srctext { display: grid; gap: 1px; min-width: 0; }
.srctext form { margin: 0; }
.srclogo { width: 24px; height: 24px; object-fit: contain; margin-top: 1px; }
.srchead { display: flex; align-items: center; gap: 12px; }
.srchead img { width: 40px; height: 40px; object-fit: contain; }
.photogrid .ph img.phsrc-badge, .phsrc-badge { position: absolute; left: 40px; top: 10px; width: 22px; height: 22px; padding: 2px; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); z-index: 2; object-fit: contain; }
/* Account → API keys (14 Nov 2026) */
.apinew { border-left: 4px solid var(--gold); }
.apikeybox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.apikeybox code { font-size: 15px; padding: 8px 12px; background: var(--paper, #FEFCFA); border: 1px solid var(--border-strong); border-radius: 8px; word-break: break-all; min-width: 0; }
.apikeys, .apilog { border-collapse: collapse; width: 100%; font-size: 15px; }
.apikeys th, .apikeys td, .apilog th, .apilog td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.apikeys th, .apilog th { font-size: 13px; color: var(--muted); font-weight: 600; }
.apikeys tr.off td { opacity: .55; }
.apiacts { white-space: nowrap; display: flex; gap: 10px; flex-wrap: wrap; }
.apilog td.bad { color: #B42318; font-weight: 600; }
.apilog code, .apikeys code { font-size: 13px; }
.tag-ok { background: #e3f4e8; color: #1e6b34; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag-ok { background: #16391f; color: #a6e3b5; } }
.docbody pre { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; overflow-x: auto; font-size: 14px; }
.docbody code { font-size: .88em; background: var(--surface); padding: 1px 4px; border-radius: 4px; }
.docbody pre code { background: none; padding: 0; }
.apisetup { margin-top: 10px; }
.apisetup summary { cursor: pointer; font-weight: 600; }
.apisetup pre { background: var(--paper, #FEFCFA); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 12px; overflow-x: auto; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
/* Sign in with My Dream Peaks: an app asks to connect (oauth_authorize.html) */
.oauthbox { max-width: 620px; margin: 24px auto; display: grid; gap: 10px; }
.oauthlogo { width: 56px; height: 56px; }
.oauthbox h1 { font-size: 30px; margin: 0; text-wrap: balance; }
.oauthapp { color: var(--accent-ink, var(--midnight)); }
.oneclick { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }

/* map popups and "show on the map" crosshairs in peak lists (15 Nov 2026) */
.mpop { min-width: 160px; line-height: 1.35; }
.mpop .mp-e { font-size: 14px; }
.mpop .mp-l { margin-top: 4px; }
.mpop .mp-sub { color: #5b5670; }
.mpop .mp-lv { margin-top: 4px; display: grid; gap: 1px; font-size: 12px; color: #3a3550; }
.mpop .flag { vertical-align: -2px; }
.pinbtn { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; margin-right: 2px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--muted, #6b6f76); cursor: pointer; vertical-align: -5px; }
.pinbtn:hover, .pinbtn:focus-visible, .pinbtn.on { border-color: var(--gold); color: var(--gold); }

/* geography profile pilot (15 Nov 2026): main column + side panel of what's inside, highest first */
.geo { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: start; }
.geo-main { min-width: 0; }
.geo-side { min-width: 0; overflow: hidden; border-left: 1px solid var(--border); padding-left: 16px; }
.geo-side h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; }
.geo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.geo-list li { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.geo-list li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.geo-list li .sub { flex: none; }
.geo-list li .sub { white-space: nowrap; }
.geo-you h3 { margin: 14px 0 4px; font-size: 15px; }
.geo-people { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lcard .lprog { display: grid; gap: 0; }
.lcard .progress { margin: 6px 0 2px; }
@media (max-width: 900px) {
  .geo { grid-template-columns: 1fr; }
  .geo-side { border-left: 0; padding-left: 0; order: -1; }
  .geo-list { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .geo-list li { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }
  .geo-side h3 { margin-top: 6px; }
}
/* "You and <country>" (pilot): clickable number tiles, picture cards, photo strip */
.geo-you { text-align: left; }
.ytiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.ytile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
.ytile b { font-family: var(--serif, Georgia, serif); font-size: 28px; line-height: 1.1; color: var(--midnight); }
.ytile span { font-size: 13px; color: var(--text-2); }
.ytile:hover { border-color: var(--gold); text-decoration: none; }
.ystrip { display: flex; gap: 6px; overflow-x: auto; align-items: center; margin: 4px 0 14px; padding-bottom: 4px; }
.ystrip img { height: 96px; width: auto; border-radius: 8px; display: block; }
.ystrip .act { flex: 0 0 auto; white-space: nowrap; }
.yshows { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0 0 12px; }
.yshow { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); color: var(--text); }
.yshow img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; max-width: 100%; }
.yshow .ys-t { font-weight: 600; padding: 6px 10px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yshow .ys-s { font-size: 12px; color: var(--text-2); padding: 0 10px 8px; }
.yshow:hover { border-color: var(--gold); text-decoration: none; }
.ysocial { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; border-top: 1px solid var(--border); margin-top: 6px; }
.ysocial h3 a { color: inherit; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ytile b { color: var(--text); } }
:root[data-theme="dark"] .ytile b { color: var(--text); }
.gchip { display: inline-flex; align-items: stretch; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); overflow: hidden; }
.gchip a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; color: var(--text); }
.gchip a:hover { background: var(--tag, rgba(0,0,0,.04)); text-decoration: none; }
.gchip .gchip-who { padding-left: 4px; font-weight: 600; }
.gchip .gchip-n { font-size: 12px; font-weight: 600; color: var(--text-2); border-left: 1px solid var(--border); }
.ypair { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 12px; }
.ypk { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); min-width: 0; }
.ypk:hover { border-color: var(--gold); text-decoration: none; }
.ypk img, .ypk .ypk-none { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; flex: none; }
.ypk .ypk-none, .yshow .yshow-none { display: grid; place-items: center; background: var(--photo-bg); color: var(--muted); }
.yshow .yshow-none { aspect-ratio: 4 / 3; width: 100%; }
.ypk-b { display: flex; flex-direction: column; min-width: 0; }
.ypk-l { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ypk-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ypk-s { font-size: 13px; color: var(--text-2); }
.who-h1 { display: flex; align-items: center; gap: 12px; }
.who-h1 .av { border-radius: 50%; }
/* grouped tabs (geography profiles): what's there | by area */
.gtabs.grouped { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.gtabs.grouped .tgroup { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gtabs.grouped .tgroup + .tgroup { padding-left: 20px; border-left: 2px solid var(--border-strong); }
.gtabs.grouped .tglabel { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 2px; }
@media (max-width: 700px) { .gtabs.grouped .tgroup + .tgroup { padding-left: 0; border-left: 0; } }
.stnotes-h { font-size: 15px; margin: 14px 0 4px; }
.stnotes { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--text-2); max-width: 75ch; }
.geo-lead { display: inline-flex; gap: 12px; align-items: center; margin: 4px 0 14px; padding: 6px 14px 6px 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
.geo-lead:hover { border-color: var(--gold); text-decoration: none; }
.geo-lead img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.geo-lead > span { display: flex; flex-direction: column; }
.geo-lead-t { font-family: var(--serif, Georgia, serif); font-size: 20px; font-weight: 600; }
/* estimated / disputed statistics carry an asterisk (Peter, 15 Nov 2026) */
.est-mark { color: var(--gold); font-weight: 700; cursor: help; margin-left: 1px; }
.stats .g:has(.kind-estimate) .gv::after, .stats .g:has(.kind-disputed) .gv::after { content: "*"; color: var(--gold); font-weight: 700; font-size: .7em; vertical-align: super; margin-left: 1px; }
.ybar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 0 12px; scroll-snap-type: x proximity; }
.ybar-i { flex: 0 0 150px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); color: var(--text); scroll-snap-align: start; }
.ybar-i img { width: 150px; height: 100px; object-fit: cover; display: block; }
.ybar-i .ys-t { font-weight: 600; font-size: 13px; padding: 5px 8px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ybar-i .ys-s { font-size: 11px; color: var(--text-2); padding: 0 8px 6px; }
.ybar-i:hover { border-color: var(--gold); text-decoration: none; }
.tag.river { background: #e3eefb; color: #1d5fae; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.river { background: #1d3557; color: #cfe3fb; } }
:root[data-theme="dark"] .tag.river { background: #1d3557; color: #cfe3fb; }
.tag.ice { background: #e6f4f8; color: #1b6a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.ice { background: #173d47; color: #d3eef5; } }
:root[data-theme="dark"] .tag.ice { background: #173d47; color: #d3eef5; }
/* your footprint on geography pages: a green count where you climbed peaks or reached places (15 Nov 2026) */
.you-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #2e9e5b; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; margin-left: 4px; flex: none; vertical-align: 1px; }
.geo-list li.been a { font-weight: 600; }
.geo-list li .you-dot { margin-left: auto; margin-right: 6px; }
.card.been { border-color: #9fd4b4; }
.shareb { display: grid; gap: 8px; }
.sharerow { display: flex; gap: 8px; }
.sharerow input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); color: var(--text); }
.tag.tag-no { background: var(--border); color: var(--text-2); }
.lcard .vprog span { background: #4a7fd6; }
.leaflet-tooltip.tt-top { font-weight: 700; color: #b3261e; border-color: #d03b3b; }
.area-hits { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.area-hits .geo-lead { margin: 0; }

/* Lists page (15 Nov 2026): find box, countries by continent */
.lfind { margin: 4px 0 20px; }
.lfind input { width: 100%; max-width: 560px; font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
.lfind #lfound { margin-top: 12px; }
.lcont { margin: 16px 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.lchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; }
.lchip:hover { border-color: var(--gold); text-decoration: none; }
.lchip span { font-size: 12px; font-weight: 600; color: var(--text-2); }

/* Usability review, 17 Nov 2026 */
.facts { grid-auto-flow: dense; }                     /* no empty cell beside a wide one (oxygen spans two columns) */
@media (max-width: 640px) {
  .hero .brand-logo { display: none; }                /* the header already carries the logo: the headline and search come first */
  .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }      /* list cards two across: the Lists page was 14,000 px tall on a phone */
  .lcard .lc-img { aspect-ratio: 4 / 3; }
  .lcard .lc-top { font-size: 11px; left: 6px; bottom: 6px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lcard .lc-body { padding: 8px 10px 10px; }
  .lcard .lc-name { font-size: 1rem; }
}
/* rank page, one line a peak (Peter, 17 Nov 2026) */
.rcompact { margin: 0; font-size: .92em; }
.rcompact .alt5, .rcompact .alt4 { font-weight: 600; color: var(--text); }
td.strengths { font-size: .85em; color: var(--text-2); }
td.strengths [data-tip] { cursor: help; }
/* rivers in trip days and "On the way": click to show on the map (17 Nov 2026) */
.mk-click { cursor: pointer; }
.mk-click:hover, .mk-click:focus-visible { text-decoration: underline; text-decoration-style: dotted; }
/* trip edit: places visited without GPS (17 Nov 2026) */
.nearbar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0 10px; }
.nearlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.nearlist li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.nearlist label { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; cursor: pointer; }
.nearlist img, .nearlist .noimg { width: 48px; height: 32px; object-fit: cover; border-radius: 4px; background: var(--border); flex: none; }
.nearlist .nearon { width: 18px; text-align: center; color: var(--ok, #2f8f5b); font-weight: 700; }
/* today's sunrise, sunset and daylight above the forecast (17 Nov 2026) */
.sunline { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; margin: 4px 0 10px; }
.sunline .sl-day { font-weight: 600; }
/* a companion's own trip / climb (18 Nov 2026): a route icon, its meaning on hover */
a.theirs { display: inline-flex; align-items: center; vertical-align: -2px; color: var(--link); padding: 1px 2px; border-radius: 4px; }
a.theirs:hover, a.theirs:focus-visible { background: var(--tag); text-decoration: none; }
/* contextual help on edit pages (18 Nov 2026, Peter: say what is edited and why) */
.helpbox { background: var(--tag); border-radius: 10px; padding: 10px 14px; margin: 10px 0 16px; max-width: 760px; }
.helpbox summary { cursor: pointer; font-weight: 600; color: var(--link); }
.helpbox p, .helpbox ul { margin: 8px 0 0; } .helpbox li { margin: 4px 0; }
.dayplaces { list-style: none; padding: 0; display: grid; gap: 6px; margin: 8px 0; }
.dayplaces li { display: flex; gap: 12px; align-items: baseline; }
.dayedit h2 { margin-top: 22px; }
.ordbtns { margin-left: auto; display: inline-flex; gap: 2px; }
.presult { display: block; width: 100%; text-align: left; padding: 6px 10px; background: var(--surface); border: 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.presult:hover { background: var(--tag); }
.addhead { font-size: 1.02em; margin: 16px 0 2px; }
/* the day editor, simplified (18 Nov 2026): one list of the day, one way to add */
.howto { max-width: 760px; padding: 6px 12px; }
.daylist { list-style: none; padding: 0; margin: 6px 0 4px; display: grid; gap: 4px; }
.daylist li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); flex-wrap: wrap; }
.daylist li.new { border-style: dashed; }
.daylist .dl-kind { flex: none; min-width: 74px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.daylist .dl-kind.k-climb { color: var(--summit); font-weight: 600; }
.daylist .dl-name { flex: 1 1 200px; min-width: 0; }
.daylist .dl-acts { display: inline-flex; gap: 4px; align-items: center; margin-left: auto; }
.dl-btn, .dl-add { border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 6px; padding: 2px 8px; cursor: pointer; font: inherit; line-height: 1.4; }
.dl-btn:hover, .dl-add:hover { background: var(--tag); }
.dl-add { color: var(--link); font-weight: 600; }
.dl-btn.undo, .dl-gone { display: none; }
.daylist li.gone .dl-name > a, .daylist li.gone .dl-name { text-decoration: line-through; opacity: .55; }
.daylist li.gone .dl-gone { display: inline; text-decoration: none; }
.daylist li.gone .dl-btn.undo { display: inline-block; } .daylist li.gone .dl-btn.x, .daylist li.gone .dl-night, .daylist li.gone .up, .daylist li.gone .down { display: none; }
.dl-night input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dl-night span { display: inline-block; border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; cursor: pointer; color: var(--muted); }
.dl-night input:checked + span { background: var(--midnight, #1C1251); color: #fff; border-color: transparent; }
.dl-night input:focus-visible + span { outline: 2px solid var(--link); }
.nearhead { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 14px 0 6px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg a, .seg label span { padding: 3px 10px; color: var(--text); text-decoration: none; display: inline-block; cursor: pointer; }
.seg a + a, .seg label + label span { border-left: 1px solid var(--border); }
.seg a.on, .seg input:checked + span { background: var(--midnight, #1C1251); color: #fff; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-sm a, .seg-sm label span { padding: 1px 8px; font-size: .9em; }
.savebar { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 10px 0; margin-top: 18px; background: var(--bg); border-top: 1px solid var(--border); }
.addtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.addtab { border: 1px solid var(--border-strong); background: var(--surface); color: var(--link); border-radius: 8px; padding: 6px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.addtab[aria-expanded="true"] { background: var(--midnight, #1C1251); color: #fff; border-color: transparent; }
.addpanel { margin: 0 0 12px; }
.nightpick { display: grid; gap: 8px; margin: 6px 0 4px; } .nightpick label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
