/* GM5ALX — quiet, photo-first. No framework. */

/* Source Sans 3 (the renamed Source Sans Pro), self-hosted variable font. */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/source-sans-3-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/source-sans-3-latin-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/source-sans-3-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }


:root {
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --ink: #1e2320;
  --ink-2: #4a514c;
  --muted: #747a73;
  --rule: #d9d4c9;
  --accent: #9a4a24;      /* bracken */
  --moss: #4d6b3c;
  --slate: #4f6272;
  --route: #c4122f;

  --sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --serif: var(--sans); /* single family site-wide */
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 46rem; /* text column: ~75–80 characters at the prose size (was 38rem) */
  --wide: 66rem;
  --max: 92rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151716;
    --paper-2: #1d201e;
    --ink: #e7e4dc;
    --ink-2: #c3c0b8;
    --muted: #8f948d;
    --rule: #33372f;
    --accent: #d9875a;
    --moss: #93b07c;
    --slate: #9db2c4;
    --route: #ff4d6a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono, .ref, code, kbd { font-family: var(--mono); font-size: .88em; }
.nowrap { white-space: nowrap; }

/* ---------- containers ---------- */
.wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide, .wide { max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- header / footer ---------- */
.site-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem;
  max-width: var(--max); margin: 0 auto; padding: 1.1rem var(--gutter);
  font-family: var(--sans);
}
.mark { font-family: var(--mono); font-weight: 700; letter-spacing: .12em; text-decoration: none; font-size: 1rem; }
.mark:hover { color: var(--ink); }
.site-head ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.site-head nav a { text-decoration: none; color: var(--ink-2); padding-block: .2rem; }
.site-head nav a:hover { color: var(--ink); }
.site-head nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -1px 0 currentColor; }

.site-foot {
  max-width: var(--max); margin: 5rem auto 0; padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--rule); font: .85rem/1.5 var(--sans); color: var(--ink-2);
}
.site-foot p { margin: .25rem 0; }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.15; font-weight: 650; letter-spacing: -0.012em; }
h1 { font-weight: 700; }
h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); margin: .25rem 0 .5rem; }
.kicker {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem;
  margin: 0; font: .8rem/1.4 var(--sans); color: var(--muted); letter-spacing: .02em;
}
.kicker .ref { color: var(--ink); font-size: .85rem; }
.tag {
  font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-2); padding-left: .55rem; border-left: 3px solid var(--rule);
}
.tag-sota { border-color: var(--accent); }
.tag-pota { border-color: var(--moss); }
.tag-walks { border-color: var(--slate); }
.tag-draft { border-color: #c49a00; color: #8a6d00; }
.sub { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 1rem; }

.entry-head { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: .5rem; }

/* ---------- prose ---------- */
.prose { font-size: 1.1875rem; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 .2em; }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 .2em; }
.prose blockquote { margin-inline: 0; padding-left: 1rem; border-left: 2px solid var(--rule); color: var(--ink-2); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .3em; }
.prose code { background: var(--paper-2); padding: .1em .3em; }
.prose pre { background: var(--paper-2); padding: 1rem; overflow-x: auto; font-size: .85rem; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em auto; width: 30%; }
.lede { font-size: 1.25rem; color: var(--ink-2); }

/* Photos inside prose break out of the text column. */
.prose figure { margin-block: 2rem; }
.prose > figure.photo, .prose > .photo-row, .prose > .gallery {
  --w: min(var(--wide), calc(100vw - 2 * var(--gutter)));
  width: var(--w);
  margin-left: calc(50% - var(--w) / 2);
}
.prose > figure.photo.portrait { --w: min(var(--measure) + 8rem, calc(100vw - 2 * var(--gutter))); }
.prose > figure.full { --w: 100vw; }
.prose > figure.full figcaption { padding-inline: var(--gutter); }
figure { margin: 0; }
figure a { display: block; }
figure img { width: 100%; background: var(--paper-2); }
figure.portrait img { max-height: 88vh; width: auto; margin-inline: auto; }
figcaption { font: .85rem/1.45 var(--sans); color: var(--muted); margin-top: .5rem; max-width: var(--measure); }

.photo-row .row { display: flex; gap: .4rem; }
.photo-row .row a { flex: var(--r) 1 0; min-width: 0; }
.photo-row .row img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--r); }

/* ---------- hero ---------- */
.hero { margin: 0; }
.hero-fig img { width: 100%; max-height: 82vh; object-fit: cover; }
.hero-fig figcaption { max-width: var(--max); margin: .5rem auto 0; padding-inline: var(--gutter); }

/* ---------- justified gallery ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: 2.5rem; }
.g-item { flex-grow: var(--r); flex-basis: calc(var(--r) * 13rem); display: block; min-width: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--r); background: var(--paper-2); }
.g-fill { flex-grow: 999; flex-basis: 0; }
@media (max-width: 40rem) { .g-item { flex-basis: calc(var(--r) * 8rem); } }

/* ---------- facts strip ---------- */
.facts { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin: 1.25rem 0 0; padding: .9rem 0; border-block: 1px solid var(--rule); }
.facts div { min-width: 0; }
.facts dt { font: 600 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.facts dd { margin: 0; font: 1rem/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.facts dd small { color: var(--muted); margin-left: .15rem; }
.facts-big dd { font-size: 1.35rem; }
.band { display: inline-block; font-size: .8rem; margin-right: .5rem; }
.band::before, .swatch { content: ""; display: inline-block; width: .6em; height: .6em; background: var(--c); margin-right: .3em; vertical-align: .05em; }
.swatch { margin-right: .4em; }

/* ---------- sections ---------- */
.block { margin-top: 3.5rem; }
.block-h { font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule); }
.meta-line { font: .85rem/1.5 var(--sans); color: var(--ink-2); margin: .6rem 0 0; }

/* ---------- maps ---------- */
.map { height: clamp(18rem, 55vh, 34rem); background: var(--paper-2); border: 1px solid var(--rule); }
.map-overview { height: clamp(22rem, 65vh, 42rem); margin-top: 1rem; }
.leaflet-container { font: .8rem/1.4 var(--sans); background: var(--paper-2); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { border-radius: 2px; box-shadow: 0 1px 6px rgb(0 0 0 / .25); }
.leaflet-popup-content { margin: .6rem .75rem; }
.pop img { width: 220px; height: auto; margin-bottom: .4rem; }
.pop strong { display: block; font-size: .9rem; }
.pop .ref { color: #555; }
.summit-icon { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid #1e2320; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }
.park-icon { width: 12px; height: 12px; background: #4d6b3c; border: 2px solid #fff; box-shadow: 0 0 0 1px #1e2320; }
.photo-pin { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #1e2320; }
@media (prefers-color-scheme: dark) {
  .leaflet-tile-pane { filter: brightness(.82) contrast(1.05); }
  .map-qso .leaflet-tile-pane { filter: brightness(.7) saturate(.6); }
}

.profile { width: 100%; height: auto; margin-top: .75rem; }
.profile .area { fill: color-mix(in srgb, var(--route) 12%, transparent); }
.profile .line { fill: none; stroke: var(--route); stroke-width: 1.6; }
.profile .high { fill: var(--paper); stroke: var(--route); stroke-width: 1.5; }
.profile .grid line { stroke: var(--rule); stroke-width: 1; }
.profile .grid text { fill: var(--muted); font: 11px var(--sans); }

.legend { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; padding: 0; margin: .75rem 0 0; font: .82rem/1.3 var(--sans); }
.legend li { display: flex; align-items: center; }
.legend button { font: inherit; color: inherit; background: none; border: 1px solid var(--rule); padding: .2rem .55rem; cursor: pointer; }
.legend button[aria-pressed="false"] { opacity: .4; text-decoration: line-through; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font: .85rem/1.4 var(--sans); font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 600; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); padding: .5rem .6rem .5rem 0; }
td { padding: .45rem .6rem .45rem 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); vertical-align: baseline; }
.num { text-align: right; }
.index-table a { text-decoration: none; }
.index-table a:hover { text-decoration: underline; }
.dot { color: var(--muted); font-size: .8em; }
details.log { margin-top: 1rem; }
details.log summary { cursor: pointer; font: .85rem var(--sans); color: var(--ink-2); }
details.log table { margin-top: .75rem; }

/* ---------- lists ---------- */
.intro { padding-block: clamp(2rem, 6vw, 4rem) 1.5rem; }
.intro p:first-of-type { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); line-height: 1.4; margin: 0 0 .75rem; }

.entries { list-style: none; display: grid; gap: 2.5rem 1.75rem; grid-template-columns: 1fr; margin-block: 1rem 0; }
@media (min-width: 44rem) {
  .entries { grid-template-columns: 1fr 1fr; }
  .entries > li:first-child { grid-column: 1 / -1; }
  .entries > li:first-child .entry-img { aspect-ratio: 21 / 9; }
  .entries > li:first-child h3 { font-size: 1.8rem; }
}
.entries-home { margin-top: clamp(1rem, 3vw, 2rem); }
.entry a { display: block; text-decoration: none; }
.entry-img { aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; margin-bottom: .75rem; }
.entry-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.entry a:hover img { opacity: .9; }
.entry.no-photo .entry-img { display: none; }
.entry h3 { font-size: 1.3rem; margin: .3rem 0 .25rem; }
.entry a:hover h3 { color: var(--accent); }
.entry-sum { margin: 0; font-size: 1rem; color: var(--ink-2); }
.entry-sum.muted { font: .85rem var(--mono); color: var(--muted); }
.more { margin-top: 2.5rem; font-family: var(--sans); }

.year-h { font: 600 1.1rem/1 var(--sans); margin: 2.75rem 0 .75rem; display: flex; gap: .5rem; align-items: baseline; }
.year-h .muted { font-weight: 400; font-size: .85rem; }
.archive { list-style: none; padding: 0; margin: 0; }
.archive li { display: grid; grid-template-columns: 8rem 3.5rem 1fr; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); align-items: baseline; }
.archive time { font-size: .8rem; color: var(--muted); }
.archive .ref { font-size: .8rem; }
@media (max-width: 30rem) { .archive li { grid-template-columns: 1fr; gap: .1rem; } .archive .what { display: none; } }

.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-family: var(--sans); }
.pager a { text-decoration: none; max-width: 48%; }
.pager span.muted { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.pager .newer { text-align: right; margin-left: auto; }

.two-col { display: grid; gap: 0 3rem; }
@media (min-width: 44rem) { .two-col { grid-template-columns: 1fr 1fr; } }
.bars { list-style: none; padding: 0; margin: 0; font: .85rem var(--sans); }
.bars li { display: grid; grid-template-columns: 3.5rem 1fr 3.5rem; align-items: center; gap: .6rem; padding: .2rem 0; }
.bar { height: .7rem; width: var(--w); background: var(--c, var(--ink-2)); min-width: 2px; }
.bar-val { text-align: right; font-family: var(--mono); font-size: .8rem; color: var(--ink-2); }
.records div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
.records dt { font: .85rem var(--sans); color: var(--muted); }
.records dd { margin: 0; }
@media (max-width: 30rem) { .records div { grid-template-columns: 1fr; gap: 0; } }

.apps { list-style: none; padding-top: 1rem; padding-bottom: 0; }
.apps li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.apps h2 { font-size: 1.25rem; margin: 0 0 .3rem; }
.apps p { margin: 0; }

/* ---------- nav icons ---------- */
.site-head .nav-icon a { display: inline-flex; align-items: center; padding: .2rem; margin-left: .15rem; }
.site-head .nav-icon:first-of-type { margin-left: .5rem; }
.site-head .nav-icon svg { display: block; }
.site-head .nav-icon a[aria-current] { box-shadow: none; color: var(--accent); }
.site-head ul { align-items: center; }

/* ---------- search (Pagefind UI) ---------- */
#search {
  --pagefind-ui-scale: .9;
  --pagefind-ui-primary: var(--accent);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--paper);
  --pagefind-ui-border: var(--rule);
  --pagefind-ui-tag: var(--paper-2);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 0;
  --pagefind-ui-image-border-radius: 0;
  --pagefind-ui-image-box-ratio: 3 / 2;
  --pagefind-ui-font: var(--sans);
  margin-top: 1rem;
}
#search .pagefind-ui__result-link { color: var(--ink); }
#search .pagefind-ui__result-link:hover { color: var(--accent); }
#search mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; }

/* ---------- day pages: refs and activations ---------- */
.refs { margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.refchip { font: .8rem/1.3 var(--mono); text-decoration: none; padding: .12rem .45rem; border: 1px solid var(--rule); border-left: 3px solid var(--accent); color: var(--ink); white-space: nowrap; }
.refchip-pota { border-left-color: var(--moss); }
a.refchip:hover { color: var(--accent); border-color: currentColor; }
.index-table .refchip, .v-also .refchip { font-size: .72rem; padding: .05rem .35rem; margin-left: .2rem; }
.acts td { vertical-align: top; }
.acts tr:target td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.acts .pota-ref { color: var(--ink-2); }
.ok { color: var(--moss); font-weight: 700; }
.legend-acts .swatch-home { width: 0; height: 0; background: none; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--ink); }
.legend + .legend { margin-top: .35rem; }
.map-ref { height: clamp(14rem, 35vh, 22rem); margin-top: 1rem; }
.visits { list-style: none; padding: 0; margin: 0; }
.visits li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
.v-thumb { display: block; aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v-title { font-weight: 650; text-decoration: none; display: block; }
.v-title:hover { color: var(--accent); }
.v-meta { display: block; font-size: .8rem; color: var(--muted); margin: .15rem 0; }
.v-also { display: block; }
.v-also .refchip:first-child { margin-left: 0; }

/* ---------- tags ---------- */
.ptag { display: inline-block; font: .78rem/1.3 var(--sans); color: var(--ink-2); text-decoration: none; background: var(--paper-2); padding: .1rem .45rem; margin: 0 .15rem .2rem 0; white-space: nowrap; }
.ptag::before { content: "#"; color: var(--muted); margin-right: .05rem; }
a.ptag:hover { color: var(--accent); }
.ptag[aria-pressed="true"], a.ptag[aria-pressed="true"]:hover { background: var(--accent); color: #fff; }
.ptag[aria-pressed="true"]::before, .ptag[aria-pressed="true"] .n { color: rgb(255 255 255 / .75); }
.ptag .n { color: var(--muted); font-family: var(--mono); font-size: .9em; margin-left: .2rem; }
.entry-head .tags { margin: .25rem 0 0; }
.archive .t .ptag { font-size: .72rem; vertical-align: .1em; }
.tag-list { margin: .9rem 0 .25rem; display: flex; flex-wrap: wrap; gap: .1rem; }
.tag-results { flex-basis: 100%; margin-top: 1.25rem; }
.tr-count { font: .95rem var(--sans); color: var(--ink-2); margin: 0 0 .5rem; }
.tr-list { list-style: none; padding: 0; margin: 0; }
.tr-list li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.tr-thumb { display: block; aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; }
.tr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tr-title { font-weight: 650; font-size: 1.1rem; text-decoration: none; }
.tr-title:hover { color: var(--accent); }
.tr-date { display: block; font: .8rem var(--mono); color: var(--muted); margin: .1rem 0 .3rem; }
.tr-text { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 30rem) { .tr-list li { grid-template-columns: 5rem 1fr; gap: .75rem; } }

/* ---------- video (click-to-play YouTube) ---------- */
.video { margin-block: 2rem; }
.prose > .video { --w: min(var(--wide), calc(100vw - 2 * var(--gutter))); width: var(--w); margin-left: calc(50% - var(--w) / 2); }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; background: rgb(20 20 20 / .8); border-radius: 12px; transition: background .2s; }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play { background: #c4302b; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgb(12 13 12 / .96); display: grid; grid-template-rows: minmax(0, 1fr) auto; color: #ddd; font-family: var(--sans); }
.lb[hidden] { display: none; }
.lb-stage { display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 2.5rem 3.5rem .5rem; }
/* Fit the photo to the screen: percentages don't resolve inside the grid, so size from the viewport
   (minus the stage padding and the caption line). dvh keeps it right with mobile browser bars. */
.lb img { width: auto; height: auto; object-fit: contain;
  max-width: calc(100vw - 7rem); max-height: calc(100vh - 7.5rem); max-height: calc(100dvh - 7.5rem); }
.lb-cap { text-align: center; padding: .5rem 1rem 1.25rem; font-size: .9rem; min-height: 2.5rem; }
.lb-cap .n { color: #888; margin-left: .75rem; font-family: var(--mono); font-size: .8rem; }
.lb button { position: absolute; background: none; border: 0; color: #ccc; font: 2rem/1 var(--sans); padding: 1rem; cursor: pointer; }
.lb button:hover { color: #fff; }
.lb .close { top: 0; right: 0; font-size: 1.6rem; }
.lb .prev { left: 0; top: 50%; transform: translateY(-50%); }
.lb .next { right: 0; top: 50%; transform: translateY(-50%); }
@media (max-width: 40rem) { .lb-stage { padding: 2.5rem 0 .5rem; } .lb img { max-width: 100vw; } .lb .prev, .lb .next { display: none; } }

@media print {
  .site-head nav, .map, .pager, .lb { display: none !important; }
}
.block .facts { border-top: 0; margin-top: 0; padding-top: .25rem; }

/* old-site callouts (::: callout-tip etc.) */
.callout { border-left: 3px solid var(--accent); background: var(--paper-2); padding: .8rem 1rem; font-size: 1rem; }
.callout > * + * { margin-top: .6em; }
.callout-tip, .callout-note { border-left-color: var(--moss); }
.prose audio, .prose video { width: 100%; }

/* round-up posts: the days they cover */
.daylist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.daylist li { border-bottom: 1px solid var(--rule); }
.daylist a { display: flex; gap: 1rem; padding: .45rem 0; text-decoration: none; }
.daylist a:hover span { text-decoration: underline; }
.daylist time { color: var(--muted); font-size: .85rem; min-width: 6.5rem; padding-top: .15rem; }
.also-in { color: var(--ink-2); font-size: 1rem; }

/* points + winter bonus */
.dd-sub { display: block; font: 400 .8rem/1.3 var(--sans); color: var(--muted); margin-top: .15rem; letter-spacing: 0; }
.bonus { color: var(--muted); font-size: .85em; margin-left: .15em; }
.goats { font-size: .85em; letter-spacing: .05em; vertical-align: .15em; }
.dd-note { font: 400 .8rem/1.3 var(--sans); color: var(--muted); letter-spacing: 0; white-space: nowrap; }
