/* The static pages' shared looks (Phase L, L0.2), written by tools/site-assets/build.py from each
   feature's one source under tools/<feature>/; never edit it here. */

/* ── hero: tools/hero/hero.css ── */
/* The hero's photos on a static page (Phase H, H5.1 and H5.2; tools/hero/hero.js, tools/hero/build.py). In the
   static pages' stylesheet, which every static page loads in its <head>, so the look is there before any script
   runs. Its own class names (a2rb-hero-*) and its own colors: a post's photo band is .banner and the tribute's
   portrait is .hero, and neither is this.

   The host (a trail log's .st-hero, a post's figure.banner, the Journal's and the Trail Map's
   header.a2rb-hero-band) carries .a2rb-hero, is positioned, hides what overflows and gives the band its height;
   the stack fills it. The page's markup is the first photo, .is-on,
   still, and no rule here hides it. Once the script has a list of two or more and motion is allowed the stack
   is .is-live: the photo showing drifts to 1.07 scale over its 6 s turn and the 1.2 s fade after it (7.2 s);
   the next is put in under the others (opacity 0), then fades in over the one before (.is-leaving, still whole
   underneath, so nothing shows through mid-fade), which goes once it's covered. .is-held stops the drift while
   the photos are paused or held. The numbers are the home page's (site.css, "The hero's photos"; hero-turns.ts):
   admin/scripts/hero-unit.mts holds the two looks and the two scripts to the same ones. Nothing here moves
   under reduced motion. A host says where its photos sit with --a2rb-hero-at (a log: center 60%); a photo with a
   focus point of its own (a home page pick) carries it inline. */
.a2rb-hero-stack { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.a2rb-hero-photo {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--a2rb-hero-at, center 65%); transform-origin: var(--a2rb-hero-at, center 65%);
  opacity: 0;
}
.a2rb-hero-photo.is-on { opacity: 1; z-index: 2; }
.a2rb-hero-photo.is-leaving { opacity: 1; z-index: 1; }
.a2rb-hero-pause {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0;
  border: 1px solid rgba(240, 230, 196, 0.45); border-radius: 50%;
  background: rgba(22, 16, 14, 0.55); color: #f0e6c4; cursor: pointer;
}
.a2rb-hero-pause:hover { background: rgba(22, 16, 14, 0.8); }
/* Under a keyboard's focus the button stays round, with its own ring. The rule names the host so that it
   out-ranks a page's own rule for any focused button: a trail log's (body.story button:focus-visible, in
   tools/trail-log/story.py) gives every button a 4px corner and its own offset, which made this one a rounded
   square while it was focused. Both hosts carry .a2rb-hero (a log's .st-hero, a post's figure.banner). */
.a2rb-hero .a2rb-hero-pause:focus-visible { outline: 2px solid #f0e6c4; outline-offset: 2px; border-radius: 50%; }
.a2rb-hero-pause svg { display: block; width: 20px; height: 20px; fill: currentColor; }
/* Previous and Next (Dan, 2026-11-25: "All hero pages"; hero.js makeStep): the Pause button's look. A band with the
   page's words at its foot (a log's, the Journal's, the Trail Map's) has them side by side in its top right corner,
   6px down (.a2rb-hero-step-top), in the room its words keep above them: 3.5rem on the Journal's and the Map's band
   (below), 56px on a log's (tools/trail-log/story.py), so 6px clear of the words at least, whatever the width. A
   band that is only the photo (a post's) has them in its bottom corners, the Pause button stepping in beside Next
   (.a2rb-hero-pause-beside), as on the home page's hero. Nothing here moves. */
.a2rb-hero-step {
  position: absolute; bottom: 16px; z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0;
  border: 1px solid rgba(240, 230, 196, 0.45); border-radius: 50%;
  background: rgba(22, 16, 14, 0.55); color: #f0e6c4; cursor: pointer;
}
.a2rb-hero-back { left: 16px; }
.a2rb-hero-on { right: 16px; }
.a2rb-hero-step.a2rb-hero-step-top { top: 6px; bottom: auto; }
.a2rb-hero-back.a2rb-hero-step-top { left: auto; right: 68px; }
.a2rb-hero-pause.a2rb-hero-pause-beside { right: 68px; }
.a2rb-hero-step:hover { background: rgba(22, 16, 14, 0.8); }
.a2rb-hero .a2rb-hero-step:focus-visible { outline: 2px solid #f0e6c4; outline-offset: 2px; border-radius: 50%; }
.a2rb-hero-step svg {
  display: block; width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
@keyframes a2rb-hero-turn { from { scale: 1; } to { scale: 1.07; } }
@media (prefers-reduced-motion: no-preference) {
  .a2rb-hero-stack.is-live .a2rb-hero-photo.is-on { transition: opacity 1.2s ease; }
  .a2rb-hero-stack.is-live .a2rb-hero-photo.is-on,
  .a2rb-hero-stack.is-live .a2rb-hero-photo.is-leaving { animation: a2rb-hero-turn 7.2s linear both; }
  /* After the two rules above, and as specific: their `animation` shorthand would set the state back to running. */
  .a2rb-hero-stack.is-live.is-held .a2rb-hero-photo.is-on,
  .a2rb-hero-stack.is-live.is-held .a2rb-hero-photo.is-leaving { animation-play-state: paused; }
}
/* A page's band (Phase H, H5.2): the Journal's and the Trail Map's header, with the page's kicker and its one
   <h1> at its foot and the photos behind them, as the pages the app draws have theirs (site.css, "A page's
   hero": the same heights and the same shade). clamp(220px, 34vh, 380px) tall, about a third of a phone's
   screen; .a2rb-hero-short, clamp(140px, 18vh, 200px), is the one both pages wear today: the Trail Map's (Dan's
   default) and the Journal's (a list people scan: its first card stays on a phone's first screen), so what
   follows starts about where it did.
   admin/src/lib/page-hero.ts heroBandSizes counts a photo's width from the same 34vh and 18vh. One height
   whether a photo is in it, still loading or missing, so nothing under it moves; with no photo at all the
   script marks it .is-bare: plain, the page's own ground, its words where they were. The words sit in a column
   as wide as the page's own (--a2rb-hero-col; the page's template sets it), and the last row keeps 56px clear
   at its right end for the Pause button. Nothing here moves. */
.a2rb-hero-band {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: clamp(220px, 34vh, 380px); background: #2a0d0b;
}
.a2rb-hero-band.a2rb-hero-short { min-height: clamp(140px, 18vh, 200px); }
.a2rb-hero-band.is-bare { background: none; }
.a2rb-hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 40%, rgba(22, 16, 14, 0.72) 100%);
}
.a2rb-hero-band.is-bare .a2rb-hero-shade { display: none; }
.a2rb-hero-in {
  position: relative; box-sizing: border-box; width: 100%; max-width: var(--a2rb-hero-col, 1100px);
  margin: 0 auto; padding: 4rem 1rem 1.25rem;
}
.a2rb-hero-short .a2rb-hero-in { padding-top: 3.5rem; padding-bottom: 1rem; }
.a2rb-hero-in > :last-child { margin-bottom: 0; padding-right: 56px; }
.a2rb-hero-band:not(.is-bare) .a2rb-hero-in h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }
.a2rb-hero-band:not(.is-bare) .a2rb-hero-in .kicker { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }

/* ── banner: tools/banner/banner.css ── */
/* Site banner, on every static page: the strip's look. In the static bundle (tools/site-assets/build.py);
   tools/banner/build.py writes the strip's spot, and the banner itself comes from /api/banner. The tone
   colors match the home page's band (.banner in admin/src/components/site-blocks/site.css);
   admin/scripts/banner-unit.mts checks both. */
#a2rb-banner[hidden] { display: none; }
#a2rb-banner .a2rb-bn {
  --bn-bg: #270a08; --bn-ink: #f0ead2; --bn-dim: #cfc0a4; --bn-title: #f0e6c4;
  --bn-rule: #d4e04a; --bn-ring: #f0e6c4; --bn-link: #f0e6c4;
  display: block; margin: 0; background: var(--bn-bg); color: var(--bn-ink);
  box-shadow: inset 0 -2px 0 var(--bn-rule);
  font-family: inherit; font-size: 15px; line-height: 1.4; text-align: left;
  position: relative; z-index: 60;
}
#a2rb-banner .a2rb-bn-promo {
  --bn-bg: #d4e04a; --bn-ink: #2a0d0b; --bn-dim: #4d1a16; --bn-title: #2a0d0b;
  --bn-rule: #2a0d0b; --bn-ring: #2a0d0b; --bn-link: #2a0d0b;
}
#a2rb-banner .a2rb-bn-news {
  --bn-bg: #a8492a; --bn-ink: #ffffff; --bn-dim: #fbe9de; --bn-title: #ffffff;
  --bn-rule: #f0e6c4; --bn-ring: #f0e6c4; --bn-link: #ffffff;
}
#a2rb-banner .a2rb-bn-in {
  box-sizing: border-box; max-width: 1100px; margin: 0 auto; padding: 8px 16px 10px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px;
}
#a2rb-banner .a2rb-bn-photo {
  flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--bn-ring); margin: 0;
}
#a2rb-banner .a2rb-bn-text { flex: 1 1 16rem; min-width: 0; margin: 0; padding: 0; color: var(--bn-ink); }
#a2rb-banner .a2rb-bn-kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; font-weight: 600;
  color: var(--bn-dim); margin-right: 2px;
}
#a2rb-banner .a2rb-bn-title { font-weight: 700; color: var(--bn-title); }
#a2rb-banner .a2rb-bn-detail { color: var(--bn-dim); }
#a2rb-banner .a2rb-bn-detail::before { content: "\00B7"; margin: 0 6px; }
#a2rb-banner .a2rb-bn-link {
  flex: none; color: var(--bn-link); font-weight: 600; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 3px;
}
#a2rb-banner .a2rb-bn-link:hover { text-decoration-thickness: 2px; }
#a2rb-banner .a2rb-bn-link:focus-visible { outline: 2px solid var(--bn-link); outline-offset: 3px; border-radius: 2px; }
@media (max-width: 560px) {
  #a2rb-banner .a2rb-bn { font-size: 14px; }
  #a2rb-banner .a2rb-bn-in { padding: 8px 12px 10px; align-items: flex-start; }
  #a2rb-banner .a2rb-bn-detail { display: block; }
  #a2rb-banner .a2rb-bn-detail::before { content: none; }
  #a2rb-banner .a2rb-bn-link { margin-left: 44px; }
}

/* ── perspectives: tools/perspectives/panel.css ── */
/* From friends on the trail: the section's look. In the static bundle (tools/site-assets/build.py);
   tools/perspectives/build.py writes its markup. Colors come from the
   page's own palette: a trail log's (--ink, --muted, --rule, the story look's --st-*) or a
   post's (--text, --text-dim, --line, --sand); the viewer is dark in both themes. */
.pv {
  --pv-ink: var(--ink, var(--text, #1a1e1b));
  --pv-muted: var(--muted, var(--text-dim, #697069));
  --pv-card: var(--st-alt, var(--bg-alt, var(--surface, #fbfbf8)));
  --pv-line: var(--rule, var(--line, #c6cbc2));
  --pv-accent: var(--st-sand, var(--sand, var(--ink, #1a1e1b)));
  --pv-focus: var(--focus, var(--sand, #2a78d6));
  display: grid; gap: 18px; color: var(--pv-ink); scroll-margin-top: 4.5rem;
}
.pv[hidden] { display: none !important; }
.sheet > .pv { grid-column: 1 / -1; }
section.pv:not(.panel) { max-width: 700px; margin: 0 auto; padding: 0 1rem 2.5rem; }
section.pv:not(.panel) h2 { margin: 0; }
.pv .panel-head { display: grid; gap: 4px; }
.pv .pv-sub { margin: 0; color: var(--pv-muted); }
.pv-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.pv-item {
  display: grid; gap: 12px; align-content: start; margin: 0; min-width: 0;
  padding: 16px 18px; background: var(--pv-card); border: 1px solid var(--pv-line); border-radius: 10px;
}
.pv .pv-words { margin: 0; font-size: 1rem; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.pv .pv-by { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--pv-accent); }
.pv-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pv-photos li { margin: 0; min-width: 0; }
.pv-tile { display: block; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--pv-line); cursor: zoom-in; }
.pv-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-tile:focus-visible { outline: 2px solid var(--pv-focus); outline-offset: 2px; }
dialog.pv-view {
  position: fixed; inset: 0;
  width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: rgba(9, 11, 10, 0.95); color: #ebeee8;
}
dialog.pv-view::backdrop { background: rgba(9, 11, 10, 0.95); }
dialog.pv-view[open] { display: block; }
.pv-stage { box-sizing: border-box; height: 100%; margin: 0; padding: 52px 60px 18px; display: grid; place-items: center; }
.pv-big { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.pv-count { position: absolute; top: 14px; left: 18px; margin: 0; font-size: 0.8rem; color: #b4bbb3; }
.pv-view button {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  font: 400 1.9rem/1 system-ui, sans-serif; color: #ebeee8; cursor: pointer;
  background: rgba(235, 238, 232, 0.08); border: 1px solid rgba(235, 238, 232, 0.18); border-radius: 50%;
}
.pv-view button[hidden] { display: none; }
.pv-view button:hover { background: rgba(235, 238, 232, 0.16); }
.pv-view button:focus-visible { outline: 2px solid #6aa6ee; outline-offset: 2px; }
.pv-close { top: 6px; right: 8px; font-size: 1.6rem; }
.pv-prev { left: 8px; top: calc(50% - 22px); }
.pv-next { right: 8px; top: calc(50% - 22px); }
@media (max-width: 600px) {
  .pv-stage { padding: 52px 8px 76px; }
  .pv-prev, .pv-next { top: auto; bottom: 14px; }
  .pv-prev { left: calc(50% - 56px); }
  .pv-next { right: calc(50% - 56px); }
}

/* ── photos: tools/photos/panel.css ── */
/* Photos: the panel's look. In the static bundle (tools/site-assets/build.py); tools/photos/build.py
   writes the panel's markup and, per log, the row it takes in the page grid while it shows. Colors come
   from the log's own palette (--ink, --surface, --rule ...); the viewer is dark in both themes. */
.ph-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(min(30%, 168px), 1fr));
}
.ph-grid li { margin: 0; min-width: 0; }
.ph-tile {
  display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 8px;
  overflow: hidden; background: var(--grid); cursor: zoom-in;
}
.ph-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.ph-tile:hover img { transform: scale(1.03); }
.ph-tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ph-more { margin: 0; }
.ph-more button {
  font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--ink); cursor: pointer;
  background: none; border: 1px solid var(--rule); border-radius: 8px; padding: 6px 14px;
}
.ph-more button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The trip's album, its own page on the Photos pages (Phase H, H4.4): the panel's last line, a plain link in
   the log's own link colors and focus ring (the page's a rules; the story look's in its band), tall enough
   to tap (its padding makes it 44px). */
.ph-album { margin: 0; }
.ph-album a { display: inline-block; padding: 10px 0; font-size: 0.94rem; font-weight: 600; }
dialog.ph-view {
  position: fixed; inset: 0;
  width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: rgba(9, 11, 10, 0.95); color: #ebeee8;
}
dialog.ph-view::backdrop { background: rgba(9, 11, 10, 0.95); }
dialog.ph-view[open] { display: block; }
.ph-stage {
  box-sizing: border-box; height: 100%; margin: 0; padding: 52px 60px 18px;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 10px;
}
.ph-big { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.ph-view figcaption { display: grid; gap: 2px; max-width: 62ch; text-align: center; }
.ph-cap { font-size: 0.95rem; }
.ph-meta { font-size: 0.8rem; color: #b4bbb3; }
.ph-count { position: absolute; top: 14px; left: 18px; margin: 0; font-size: 0.8rem; color: #b4bbb3; }
.ph-view button {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  font: 400 1.9rem/1 "Public Sans", system-ui, sans-serif; color: #ebeee8; cursor: pointer;
  background: rgba(235, 238, 232, 0.08); border: 1px solid rgba(235, 238, 232, 0.18); border-radius: 50%;
}
.ph-view button:hover { background: rgba(235, 238, 232, 0.16); }
.ph-view button:focus-visible { outline: 2px solid #6aa6ee; outline-offset: 2px; }
.ph-close { top: 6px; right: 8px; font-size: 1.6rem; }
.ph-prev { left: 8px; top: calc(50% - 22px); }
.ph-next { right: 8px; top: calc(50% - 22px); }
@media (max-width: 600px) {
  .ph-stage { padding: 52px 8px 76px; }
  .ph-prev, .ph-next { top: auto; bottom: 14px; }
  .ph-prev { left: calc(50% - 56px); }
  .ph-next { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) {
  .ph-tile img { transition: none; }
  .ph-tile:hover img { transform: none; }
}

/* ── comments: tools/comments/box.css ── */
/* Comments: the box's look. In the static bundle (tools/site-assets/build.py); tools/comments/build.py
   writes the box's markup. Colors come from the page's
   own palette: a trail log's (--ink, --surface, --rule …) or a post's
   (--text, --bg-alt, --line …). */
.cm {
  --cm-ink: var(--ink, var(--text, #1a1e1b));
  --cm-muted: var(--muted, var(--text-dim, #697069));
  --cm-surface: var(--surface, var(--bg-alt, #fbfbf8));
  --cm-field: var(--paper, var(--bg, #ffffff));
  --cm-line: var(--rule, var(--line, #c6cbc2));
  --cm-accent: var(--focus, var(--sand, #2a78d6));
  --cm-btn: var(--fs, var(--rust, #5a3c23));
  --cm-btn-ink: var(--fs-ink, #ffffff);
  color: var(--cm-ink);
  scroll-margin-top: 4.5rem;
}
section.cm:not(.panel) { max-width: 700px; margin: 0 auto; padding: 0 1rem 3rem; }
.cm .cm-sub { margin: 0.2rem 0 1rem; color: var(--cm-muted); font-size: 0.95em; }
.cm-form { display: grid; gap: 0.75rem; margin: 0 0 1.5rem; }
.cm-row { display: grid; gap: 0.3rem; min-width: 0; }
.cm label { font-size: 0.85rem; font-weight: 600; color: var(--cm-ink); }
.cm label span { font-weight: 400; color: var(--cm-muted); }
.cm input, .cm textarea {
  box-sizing: border-box; width: 100%; min-width: 0;
  font: inherit; font-size: 1rem; line-height: 1.5; color: var(--cm-ink);
  background: var(--cm-field); border: 1px solid var(--cm-line); border-radius: 8px;
  padding: 0.6rem 0.7rem;
}
.cm textarea { min-height: 7rem; resize: vertical; }
.cm input:focus-visible, .cm textarea:focus-visible, .cm button:focus-visible {
  outline: 2px solid var(--cm-accent); outline-offset: 2px;
}
.cm-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; }
.cm .cm-note { margin: 0; max-width: 34rem; font-size: 0.8rem; line-height: 1.45; color: var(--cm-muted); }
.cm .cm-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cm button {
  font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--cm-btn-ink);
  background: var(--cm-btn); border: 0; border-radius: 8px; padding: 0.6rem 1.1rem; cursor: pointer;
}
.cm button:disabled { opacity: 0.6; cursor: progress; }
.cm .cm-status { margin: 0; min-height: 1.3em; font-size: 0.9rem; color: var(--cm-muted); }
.cm .cm-status.cm-bad { color: var(--cm-ink); font-weight: 600; }
.cm .cm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.cm-item { padding: 0.85rem 1rem; background: var(--cm-surface); border: 1px solid var(--cm-line); border-radius: 10px; }
.cm .cm-meta { margin: 0 0 0.3rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.75rem; font-size: 0.85rem; color: var(--cm-muted); }
.cm .cm-who { font-weight: 600; color: var(--cm-ink); }
.cm .cm-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm .cm-empty { margin: 0; color: var(--cm-muted); }
.cm [hidden] { display: none !important; }
.cm .cm-label { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--cm-ink); }
.cm .cm-label span { font-weight: 400; color: var(--cm-muted); }
.cm .cm-file {
  position: relative; display: inline-flex; align-items: center; gap: 0.4rem; width: fit-content;
  font-size: 0.9rem; font-weight: 600; color: var(--cm-ink); cursor: pointer;
  background: var(--cm-field); border: 1px dashed var(--cm-line); border-radius: 8px; padding: 0.5rem 0.9rem;
}
.cm .cm-file input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.cm .cm-file:focus-within { outline: 2px solid var(--cm-accent); outline-offset: 2px; }
.cm .cm-file .cm-pick-words { font-weight: inherit; color: inherit; }
.cm .cm-photo { gap: 0.5rem; }
.cm .cm-busy .cm-file { opacity: 0.6; cursor: progress; }
/* The photos picked: a row of thumbs that wraps, each with its own Remove. */
.cm .cm-chosen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cm .cm-chosen li { position: relative; flex: none; width: 72px; height: 72px; }
.cm .cm-thumb {
  display: block; box-sizing: border-box; width: 72px; height: 72px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--cm-line); background: var(--cm-surface);
}
.cm button.cm-remove {
  position: absolute; top: 4px; right: 4px; display: grid; place-items: center;
  width: 26px; height: 26px; padding: 0; border-radius: 50%;
  font-size: 1.1rem; font-weight: 600; line-height: 1; color: #fff;
  background: rgba(0, 0, 0, 0.68); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.cm .cm-chosen-info { margin: 0; font-size: 0.85rem; line-height: 1.4; color: var(--cm-muted); }
/* A comment's photos: one shows whole; several, as a grid of square tiles. */
.cm .cm-figure { display: block; width: fit-content; max-width: 100%; margin: 0.6rem 0 0; }
.cm .cm-figure img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 28rem;
  border-radius: 8px; border: 1px solid var(--cm-line); background: var(--cm-field);
}
.cm .cm-grid {
  display: grid; gap: 0.5rem; margin: 0.6rem 0 0;
  grid-template-columns: repeat(auto-fill, minmax(min(7.5rem, calc(50% - 0.25rem)), 1fr));
}
.cm .cm-grid .cm-figure { width: auto; margin: 0; }
.cm .cm-grid .cm-figure img { box-sizing: border-box; width: 100%; max-height: none; aspect-ratio: 1; object-fit: cover; }

/* ── likes: tools/likes/likes.css ── */
/* Likes: a heart and its count. In the static bundle (tools/site-assets/build.py). Specific on purpose:
   the pages' own button rules (the story look, the viewer, the comment box)
   would otherwise size it. */
body button.lk {
  position: static; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  width: auto; height: auto; min-height: 36px; margin: 0; padding: 0.35rem 0.85rem; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; color: inherit;
  font-family: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1; cursor: pointer; opacity: 0.85;
}
body button.lk:hover { opacity: 1; background: transparent; }
body button.lk:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
body button.lk span[aria-hidden] { font-size: 1.15rem; line-height: 1; }
body button.lk.liked { color: #e2574c; opacity: 1; }
body button.lk:disabled { cursor: default; opacity: 1; }
body button.lk[hidden], body .lk-page[hidden] { display: none; }
body .lk-page { display: flex; justify-content: center; margin: 2rem auto; }
body .lk-page button.lk { font-size: 1.05rem; padding: 0.55rem 1.2rem; min-height: 44px; }
body .ph-view button.lk { color: #ebeee8; margin: 8px auto 0; justify-self: center; border-color: rgba(235, 238, 232, 0.45); background: rgba(235, 238, 232, 0.08); }
body .ph-view button.lk.liked { color: #ff7a6b; border-color: #ff7a6b; }
body .cm .cm-meta button.lk { margin-left: auto; min-height: 30px; padding: 0.2rem 0.65rem; font-size: 0.85rem; color: inherit; background: transparent; }
body .cm .cm-meta button.lk.liked { color: #e2574c; }

/* ── fade: admin/src/components/site-blocks/fade.css ── */
/* The fade (Phase L, L4.1): a page fades into the next. A cross-document view transition runs only when
   both sides of a hop have opted in before the new page's first frame, so this one file is on every page
   either way: the pages the app draws import it beside site.css ((site)/layout.tsx, and the 404 page,
   app/not-found.tsx, which Next draws outside that layout), and tools/site-assets/build.py joins it into
   the static pages' stylesheet, which each of the 21 loads in its <head>. The nav and the footer are
   named, one of each a page, so they hold their place while the page between them fades. Under reduced
   motion a hop is a plain cut, and so it is in a browser without view transitions (Firefox, for now).
   Every public hop is a document load (plain <a>; no next/link in (site)), so every hop can fade; the
   404 page's "Go to the home page" is a next/link, so that one hop doesn't. */
@view-transition { navigation: auto; }
.a2rb-nav { view-transition-name: a2rb-nav; }
.a2rb-foot { view-transition-name: a2rb-footer; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ── reveal: admin/src/components/site-blocks/reveal.css ── */
/* The reveal (Phase L, L5.1): a section's content fades and rises a little into place as it scrolls into
   view. One file for both kinds of page, like fade.css: the pages the app draws import it beside site.css
   ((site)/layout.tsx), and tools/site-assets/build.py joins it into the static pages' stylesheet, which
   each loads in its <head>. It runs only on a screen where scroll-driven animations are supported
   (animation-timeline: view(): Chrome, Edge and Safari; not Firefox, for now) and reduced motion is off.
   Everywhere else, and in every base rule, everything is simply there: opacity 0 is only the animation's
   first frame. The animation follows where the section is, not a clock, so a jump to a section (a chip,
   a link) lands on it whole; it's done once the section is 180px into view, or all of it when it's
   shorter, which any section reaches, the last one included.
   What moves is each section's content (its wrap), never its band, so the colors stay put, and never a
   card, so the log cards keep their one lift on hover: the app's sections (.section > .wrap) and a trail
   log's bands (.st-band > .st-wrap). A moving wrap holds anything fixed inside it and its stacking keeps
   the next section above it, so the one section with a fixed overlay, the home gallery (its lightbox), is
   left still; every other viewer is a dialog in the top layer, which nothing here can move. */
@keyframes a2rb-reveal {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: none; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry 0% entry min(100%, 180px)) {
    .a2rb-site .section > .wrap:not(:has(.gallery)),
    body.story .st-band > .st-wrap {
      animation: a2rb-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry min(100%, 180px);
    }
  }
}
