/* archive.css v3 - 2026-nov-04: a message opened by its anchor (/messages/<sid>#m-<sid>) stops below the sticky
   site header (48px), not under it. Generated 2026-nov-04 courtesy of Claude (claude.ai) */

/* archive.css v2- 2026-oct-19: v1 + "About this archive" and the credit line. v1 - message archive pages (/messages, /messages/<sid>), CitArchiveHandler.
   Lives at bss/assets/css/archive.css; loaded after site.css. Uses site.css variables.
   Generated 2026-oct-19 courtesy of Claude (claude.ai) */

.page-archive .page-hero { padding: 4.5rem 0 calc(3rem + var(--slope)); }
.page-archive .page-hero h1 { margin-bottom: .6rem; }
.ar-crumbs { margin: 0 0 1rem; font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.8); }
.ar-crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); }
.ar-crumbs span { margin: 0 .4rem; opacity: .7; }

.ar-section { padding: 2.5rem 0 1rem; }
.ar-section:last-of-type { padding-bottom: 4rem; }
.ar-section h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .4rem; }
.ar-section > .container > p.ar-lead { margin-bottom: 1.4rem; }

/* ---------------------------------------------------------------- series cards (index) */
.ar-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ar-grid-latest { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ar-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cit-line);
  text-decoration: none; color: var(--cit-ink); transition: transform .2s ease, box-shadow .2s ease;
}
.ar-card:hover, .ar-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.ar-card[hidden] { display: none; }
.ar-card-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--cit-line); }
.ar-card-noimg { aspect-ratio: 16 / 9; background: var(--cit-deep-blue); }
.ar-card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.ar-card h3 { font-size: 1.12rem; margin: 0; line-height: 1.2; }
.ar-range { margin: 0; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cit-teal-dark); }
.ar-scrip { margin: 0; font-size: .92rem; color: var(--cit-muted); }
.ar-card-foot { margin-top: auto; padding-top: .45rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 700; color: var(--cit-muted); }
.ar-badge { padding: .12rem .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--cit-soft); border: 1px solid var(--cit-line); color: var(--cit-ink); }
.ar-badge-video { background: #fde8e8; border-color: #f5c2c2; color: #8b1a1a; }

.ar-filter { display: flex; gap: .6rem; align-items: center; margin: 0 0 1.2rem; }
.ar-filter input {
  flex: 1; max-width: 420px; padding: .65rem .8rem; font: inherit; color: var(--cit-ink);
  border: 1px solid var(--cit-line); background: #fff;
}
.ar-filter input:focus { outline: 2px solid var(--cit-teal); outline-offset: 1px; }
.ar-none { color: var(--cit-muted); }
.ar-totals { margin: .4rem 0 0; font-size: .9rem; color: rgba(255,255,255,.8); }

/* ---------------------------------------------------------------- series header (series page) */
.ar-head { display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: start; }
.ar-head img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(255,255,255,.25); }
.ar-head .ar-range { color: rgba(255,255,255,.85); margin-bottom: .3rem; }
.ar-head-meta { margin: .3rem 0 0; color: rgba(255,255,255,.86); }
.ar-head-sum { margin-top: .8rem; color: rgba(255,255,255,.86); }
.ar-head-sum p { color: rgba(255,255,255,.86); margin: 0 0 .6rem; }
.ar-head-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.ar-head-links a { color: #fff; font-weight: 700; font-size: .9rem; }
@media (min-width: 820px) { .ar-head { grid-template-columns: 360px 1fr; gap: 2rem; } }

/* ---------------------------------------------------------------- message cards (series page) */
.ar-list { display: grid; gap: 1rem; }
.ar-order { margin: 0 0 1rem; font-size: .88rem; font-weight: 700; color: var(--cit-muted); }
.ar-msg { background: #fff; border: 1px solid var(--cit-line); padding: 1rem; scroll-margin-top: calc(48px + 1rem); }   /* v3 - clears the sticky header */
.ar-msg:target { outline: 3px solid var(--cit-teal); outline-offset: 2px; }
.ar-top { display: grid; grid-template-columns: 132px 1fr; gap: .9rem; align-items: start; }
.ar-top.ar-nomedia { grid-template-columns: 1fr; }
.ar-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  overflow: hidden; background: var(--cit-line); cursor: pointer;
}
div.ar-thumb { cursor: default; }
.ar-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-play {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 32px; transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); transition: transform .15s;
}
.ar-thumb:hover .ar-play, .ar-thumb:focus-visible .ar-play { transform: translate(-50%, -50%) scale(1.12); }
.ar-date { margin: 0 0 .15rem; font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cit-teal-dark); }
.ar-msg h3 { font-size: clamp(1.1rem, 4.2vw, 1.35rem); line-height: 1.2; margin: 0 0 .35rem; }
.ar-meta { margin: 0; color: var(--cit-muted); font-size: .93rem; line-height: 1.45; }
.ar-meta b { color: var(--cit-ink); font-weight: 800; }

.ar-player { display: none; margin: 0 0 .9rem; }
.ar-back {
  display: inline-flex; align-items: center; gap: .3rem; margin: 0 0 .5rem; padding: .45rem .8rem;
  border: 1px solid var(--cit-line); background: #fff; color: var(--cit-ink); font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer;
}
.ar-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.ar-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ar-msg.ar-playing .ar-player { display: block; }
.ar-msg.ar-playing .ar-thumb, .ar-msg.ar-playing .ar-summary { display: none; }
.ar-msg.ar-playing .ar-top { grid-template-columns: 1fr; }

.ar-summary {
  margin: .9rem 0 0; padding: .75rem .9rem; max-height: 13rem; overflow-y: auto;
  border: 1px solid var(--cit-line); background: var(--cit-soft); font-size: .95rem; line-height: 1.55; color: var(--cit-charcoal);
}
.ar-summary p { margin: 0 0 .6rem; color: var(--cit-charcoal); }
.ar-summary p:last-child { margin-bottom: 0; }
.ar-summary-label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cit-muted); margin-bottom: .35rem; }

.ar-audio { margin-top: .8rem; width: 100%; max-width: 520px; display: block; }
.ar-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.ar-links a {
  display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem;
  border: 1px solid var(--cit-teal); color: var(--cit-teal-dark); background: #fff;
  font-weight: 800; font-size: .86rem; text-decoration: none;
}
.ar-links a:hover { background: var(--cit-teal); color: #fff; }
.ar-links svg { width: 14px; height: 14px; flex: none; }

.ar-foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.ar-foot p { margin: 0; font-size: .88rem; }

@media (min-width: 640px) {
  .ar-msg { padding: 1.3rem; }
  .ar-top { grid-template-columns: 240px 1fr; gap: 1.2rem; }
}

/* v2 - 2026-oct-19: "About this archive" (index) and the credit line (series page) */
.ar-about { padding: 1.6rem 1.8rem; background: var(--cit-soft); border-left: 4px solid var(--cit-teal); }
.ar-about h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: .8rem; }
.ar-about p { color: var(--cit-charcoal); }
.ar-about p:last-child { margin-bottom: 0; font-weight: 600; color: var(--cit-ink); }
.ar-credit { margin: 1.6rem 0 0; font-size: .9rem; color: var(--cit-muted); }
.ar-credit a { color: var(--cit-teal-dark); font-weight: 700; }
