/* =============================================================================
   help.css — public Help Centre (server-rendered pages in help_pages.py).
   Scoped to body.help-page. Standalone from the app shell + landing.
   ========================================================================== */
:root {
  --help-indigo: #120a8f;
  --help-indigo-bright: #4f46e5;
  --help-ink: #0b1020;
  --help-ink-soft: #3a4761;
  --help-muted: #64748b;
  --help-line: #e4e9f4;
  --help-bg: #fbfcff;
  --help-surface: #ffffff;
  --help-tint: #eef1fb;
}
* { box-sizing: border-box; }
body.help-page {
  margin: 0;
  background: var(--help-bg);
  color: var(--help-ink);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}
.help-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
/* Plain light header — surface bg, border-bottom, sticky. (No top accent.) */
.help-header { background: var(--help-surface); border-bottom: 1px solid var(--help-line); position: sticky; top: 0; z-index: 10; }
.help-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.help-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--help-ink); font-size: 1.15rem; letter-spacing: -0.01em; }
.help-brand b { color: var(--help-indigo); font-weight: 800; }
.help-ymark { width: 26px; height: 26px; color: var(--help-indigo); flex: none; }
.help-backtolink {
  color: var(--help-ink); text-decoration: none; font-size: 0.9rem; font-weight: 600;
  text-underline-offset: 3px; transition: text-decoration-color .12s;
}
.help-backtolink:hover { text-decoration: underline; }
.help-backtolink:focus-visible { text-decoration: underline; outline: 2px solid var(--help-indigo-bright); outline-offset: 3px; border-radius: 4px; }

/* Main */
.help-main { padding: 32px 20px 56px; }
/* Homepage hero — a FULL-WIDTH flat light-indigo band directly below the header
   (no rounded corners, border, shape or card). It holds only the heading,
   subtitle and search; its inner content is centred + constrained by the nested
   .help-container. The band ends cleanly before "Popular articles", which sits
   on the normal page background. */
.help-hero-band { background: linear-gradient(to bottom, #eef0fb 0%, #f5f6fd 78%, #ffffff 100%); }
.help-hero { text-align: center; padding: 48px 0 44px; }
.help-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
/* Heading + subtitle sit close; a comfortable gap precedes the in-hero search. */
.help-hero p { color: var(--help-muted); font-size: 1.05rem; margin: 0 0 26px; }
.help-hero__search { max-width: 560px; margin: 0 auto; }

/* Sticky search bar — pinned beneath the sticky header. Lightweight at rest;
   gains a surface background + subtle border/shadow only while stuck
   (help.js toggles .is-stuck via a sentinel). */
.help-search-sentinel { height: 1px; }
.help-searchbar {
  position: sticky; top: 64px; z-index: 9; padding: 16px 0;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.help-searchbar.is-stuck {
  background: var(--help-surface); border-bottom-color: var(--help-line);
  box-shadow: 0 6px 16px -14px rgba(11,16,32,0.45);
}

/* Search */
.help-search { position: relative; max-width: 560px; margin: 0 auto; }
.help-search__icon {
  position: absolute; left: 16px; top: 25px; transform: translateY(-50%);
  color: var(--help-muted); pointer-events: none;
}
.help-search__input {
  width: 100%; height: 50px; padding: 0 18px 0 44px; font: inherit; font-size: 1rem;
  border: 1.5px solid var(--help-line); border-radius: 12px; background: var(--help-surface);
  color: var(--help-ink); box-shadow: 0 6px 20px -14px rgba(18,10,143,0.35);
}
.help-search__input:focus { outline: none; border-color: var(--help-indigo-bright); box-shadow: 0 0 0 3px rgba(79,70,229,0.16); }
.help-search__results {
  position: absolute; top: 56px; left: 0; right: 0; background: var(--help-surface);
  border: 1px solid var(--help-line); border-radius: 12px; box-shadow: 0 18px 44px -20px rgba(11,16,32,0.3);
  overflow: hidden; z-index: 5;
}
.help-search__results a { display: block; padding: 12px 16px; text-decoration: none; color: var(--help-ink); border-bottom: 1px solid var(--help-line); }
.help-search__results a:last-child { border-bottom: 0; }
.help-search__results a:hover { background: var(--help-tint); }
.help-search__results .r-title { display: block; font-weight: 700; }
.help-search__results .r-meta { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--help-muted); }
.help-search__results .r-empty { padding: 14px 16px; color: var(--help-muted); }

/* Collections grid — intentional 2-column (2x2 for the four collections);
   single column on mobile (see media query below). */
/* Homepage-only: the collection grid + Popular articles use a wider container
   (set on <main class="help-home-main">) so the six cards form a balanced grid.
   Header, hero band inner, footer, collection/article pages keep the 1120 width. */
.help-main.help-home-main { max-width: 1240px; }
/* 2 columns by default (tablet/laptop); 3 columns at wide desktop (>=1200px);
   1 column on mobile (see the max-width:680px query). No fixed card widths. */
.help-collections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 1200px) { .help-collections { grid-template-columns: repeat(3, 1fr); } }
.help-collection-card {
  display: block; text-decoration: none; color: var(--help-ink);
  background: var(--help-surface); border: 1px solid var(--help-line); border-radius: 16px;
  padding: 22px; transition: background .15s, border-color .15s, box-shadow .15s;
}
/* Modest elevation alongside the tint/light-border state — no movement, no
   layout shift. */
.help-collection-card:hover { background: var(--help-tint); border-color: #c7cdf5; box-shadow: 0 10px 26px -18px rgba(18,10,143,0.28); }
.help-collection-card:focus-visible { outline: 2px solid var(--help-indigo-bright); outline-offset: 2px; }
.help-collection-card__icon { display: inline-flex; color: var(--help-indigo-bright); margin-bottom: 10px; transition: transform .18s ease, color .18s ease; }
/* Restrained icon animation on card hover/focus. */
.help-collection-card:hover .help-collection-card__icon,
.help-collection-card:focus-visible .help-collection-card__icon { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .help-collection-card__icon { transition: color .18s ease; }
  .help-collection-card:hover .help-collection-card__icon,
  .help-collection-card:focus-visible .help-collection-card__icon { transform: none; }
}
.help-collection-card h2 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 700; }
.help-collection-card p { margin: 0 0 12px; color: var(--help-muted); font-size: 0.95rem; }
.help-collection-card__count {
  display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--help-muted);
  background: var(--help-tint); border-radius: 999px; padding: 2px 10px; letter-spacing: 0.01em;
}

/* Popular articles — quiet text-link rows (never cards), CMS-derived. */
/* Popular articles aligns to the widened homepage container (left edge matches
   the grid); the rows themselves stay at a readable width, not stretched. */
.help-popular { margin: 0 0 44px; }
.help-popular__rows { max-width: 820px; }
.help-popular__label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--help-muted); margin: 0 0 8px;
}
.help-popular__rows { display: flex; flex-direction: column; }
.help-popular__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-decoration: none; color: var(--help-ink); font-weight: 600;
  padding: 11px 10px; border-radius: 8px; border-bottom: 1px solid var(--help-line);
  transition: background .12s, color .12s;
}
.help-popular__row:last-child { border-bottom: 0; }
.help-popular__row:hover { background: var(--help-tint); color: var(--help-indigo); }
.help-popular__row:focus-visible { outline: 2px solid var(--help-indigo-bright); outline-offset: 2px; }
.help-popular__row .help-article-link__chevron { color: var(--help-muted); opacity: 0.45; flex: none; transition: opacity .12s, transform .12s, color .12s; }
.help-popular__row:hover .help-article-link__chevron,
.help-popular__row:focus-visible .help-article-link__chevron { opacity: 1; color: var(--help-indigo-bright); transform: translateX(2px); }

/* Two-column layout (collection + article pages) — persistent collection sidebar */
.help-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.help-layout__main { min-width: 0; }

/* Sticky sidebar — stick the aside (content-height via align-self:start so it has
   travel within the tall grid row) rather than the nav itself. The offset clears
   BOTH the sticky header (64px) and the sticky search bar (~82px: 50px input +
   2x16px padding) = ~146px, plus a small gap — otherwise the search bar
   (z-index 9) would overlay the first sidebar links on scroll. */
.help-sidebar { position: sticky; top: 158px; align-self: start; }
.help-nav { display: flex; flex-direction: column; gap: 2px; }
.help-nav__collection {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-decoration: none; color: var(--help-ink-soft); font-weight: 600; font-size: 0.95rem;
  padding: 9px 12px; border-radius: 9px; transition: background .12s, color .12s;
}
.help-nav__collection:hover { background: var(--help-tint); color: var(--help-ink); }
.help-nav__collection.is-active { background: var(--help-tint); color: var(--help-indigo); }
.help-nav__chevron { flex: none; color: var(--help-muted); }
.help-nav__articles { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px; padding-left: 12px; border-left: 2px solid var(--help-line); margin-left: 12px; }
.help-nav__article {
  text-decoration: none; color: var(--help-muted); font-size: 0.9rem; font-weight: 500;
  padding: 7px 12px; border-radius: 8px; transition: background .12s, color .12s;
}
.help-nav__article:hover { background: var(--help-tint); color: var(--help-ink); }
.help-nav__article.is-current { color: var(--help-indigo); font-weight: 700; background: var(--help-tint); }

/* Collection + article lists */
.help-crumb { font-size: 0.85rem; color: var(--help-muted); margin-bottom: 18px; }
.help-crumb a { color: var(--help-indigo-bright); text-decoration: none; }
.help-crumb a:hover { text-decoration: underline; }
.help-crumb__sep { margin: 0 2px; color: var(--help-line); }
.help-collection-head h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.help-collection-head p { color: var(--help-muted); margin: 0 0 24px; }
.help-article-list { display: flex; flex-direction: column; gap: 10px; }
.help-article-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-decoration: none; color: var(--help-ink);
  background: var(--help-surface); border: 1px solid var(--help-line); border-radius: 12px; padding: 16px 18px;
  transition: background .15s, border-color .15s;
}
.help-article-link:hover { background: var(--help-tint); border-color: #c7cdf5; }
.help-article-link:focus-visible { outline: 2px solid var(--help-indigo-bright); outline-offset: 2px; }
.help-article-link__text { min-width: 0; }
.help-article-link__title { display: block; font-weight: 700; }
.help-article-link__summary { display: block; color: var(--help-muted); font-size: 0.9rem; margin-top: 2px; }
.help-article-link__chevron {
  flex: none; color: var(--help-muted); opacity: 0.4;
  transition: opacity .15s, transform .15s, color .15s;
}
.help-article-link:hover .help-article-link__chevron,
.help-article-link:focus-visible .help-article-link__chevron {
  opacity: 1; color: var(--help-indigo-bright); transform: translateX(2px);
}

/* Article — constrain prose for readability; sidebar/layout unchanged. */
.help-article { max-width: 640px; }
.help-article h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.help-article__summary { color: var(--help-muted); font-size: 1.1rem; margin: 0 0 24px; }
.help-article__body { font-size: 1.02rem; color: var(--help-ink-soft); }
.help-article__body h2 { font-size: 1.3rem; font-weight: 700; color: var(--help-ink); margin: 28px 0 10px; }
.help-article__body h3 { font-size: 1.1rem; font-weight: 700; color: var(--help-ink); margin: 22px 0 8px; }
.help-article__body p { margin: 0 0 14px; }
.help-article__body ul, .help-article__body ol { margin: 0 0 14px; padding-left: 22px; }
.help-article__body li { margin: 4px 0; }
.help-article__body a { color: var(--help-indigo-bright); }
.help-article__body code { background: var(--help-tint); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
.help-article__body pre { background: var(--help-tint); padding: 14px; border-radius: 10px; overflow-x: auto; }
.help-article__body blockquote { margin: 0 0 16px; padding: 12px 16px; background: var(--help-tint); border-left: 3px solid var(--help-indigo-bright); border-radius: 0 10px 10px 0; color: var(--help-ink-soft); }
.help-article__body table { border-collapse: collapse; width: 100%; margin: 0 0 16px; }
.help-article__body th, .help-article__body td { border: 1px solid var(--help-line); padding: 8px 10px; text-align: left; }
.help-article__body img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--help-line); margin: 6px 0; box-shadow: 0 10px 30px -22px rgba(11,16,32,0.4); }

/* Expandable article screenshots — help.js wraps each <img> in this trigger and
   adds the cue. Without JS the <img> renders inline (no trigger, no cue). */
.help-img-trigger {
  display: block; width: 100%; margin: 6px 0; padding: 0; border: 0; background: none;
  position: relative; cursor: zoom-in; border-radius: 10px;
  -webkit-appearance: none; appearance: none;
}
.help-img-trigger img { display: block; margin: 0; }
.help-img-trigger:focus-visible { outline: 2px solid var(--help-indigo-bright); outline-offset: 3px; }
.help-img-trigger__cue {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; line-height: 1;
  color: #fff; background: rgba(11,16,32,0.62); pointer-events: none;
  opacity: 0; transform: translateY(-2px); transition: opacity .16s ease-out, transform .16s ease-out;
}
.help-img-trigger:hover .help-img-trigger__cue,
.help-img-trigger:focus-visible .help-img-trigger__cue { opacity: 1; transform: translateY(0); }

/* Lightbox — dark translucent backdrop, image scaled to fit the viewport. */
.help-lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 36px; background: rgba(11,16,32,0.82); opacity: 0; transition: opacity .2s ease-out;
}
.help-lightbox[hidden] { display: none; }
.help-lightbox.is-visible { opacity: 1; }
.help-lightbox__dialog {
  position: relative; margin: 0; max-width: min(1100px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transform: scale(0.98); transition: transform .2s ease-out;
}
.help-lightbox.is-visible .help-lightbox__dialog { transform: scale(1); }
.help-lightbox__img {
  display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain;
  border-radius: 12px; background: #fff; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.help-lightbox__caption { margin: 0; max-width: 820px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.85); }
.help-lightbox__close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: #fff; background: rgba(11,16,32,0.92); border: 1px solid rgba(255,255,255,0.25);
}
.help-lightbox__close:hover { background: #000; }
.help-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.help-lightbox-open { overflow: hidden; }

@media (max-width: 680px) {
  .help-lightbox { padding: 14px; }
  .help-lightbox__img { max-height: 78vh; }
  .help-lightbox__close { top: 4px; right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .help-lightbox, .help-lightbox__dialog { transition: opacity .01ms linear; }
  .help-lightbox__dialog, .help-lightbox.is-visible .help-lightbox__dialog { transform: none; }
  .help-img-trigger__cue { transition: none; }
}
.help-article__back { margin-top: 32px; }
.help-article__back a { color: var(--help-indigo-bright); text-decoration: none; font-weight: 600; }

/* Misc */
.help-empty { color: var(--help-muted); text-align: center; padding: 40px 0; }
.help-btn { display: inline-block; margin-top: 10px; background: var(--help-indigo); color: #fff; text-decoration: none; padding: 11px 20px; border-radius: 10px; font-weight: 700; }

/* Compact support line — sits directly above the shared footer. */
.help-support-note { border-top: 1px solid var(--help-line); background: var(--help-surface); padding: 18px 0; color: var(--help-muted); font-size: 0.9rem; }
.help-support-note a { color: var(--help-indigo-bright); text-decoration: none; }
.help-support-note a:hover { text-decoration: underline; }

/* Shared public footer — faithful reproduction of the marketing-site footer
   (backend/ui/index.html .lp-footer); values mirror landing.css so /help reads
   as the same product site. Keep aligned if the marketing footer changes. */
.help-site-footer { background: #0a0f22; color: #aab3d0; padding: 56px 0 30px; font-size: 0.92rem; }
.help-site-footer__top { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; align-items: flex-start; }
.help-site-footer__brand { max-width: 330px; }
.help-site-footer__logo { height: 30px; margin-bottom: 10px; }
.help-site-footer__tagline { margin: 0 0 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #9aa4c6; }
.help-site-footer__brand p { margin: 0; line-height: 1.55; color: #8f9abb; }
.help-site-footer__links { display: flex; gap: 46px; flex-wrap: wrap; }
.help-site-footer__col b { display: block; color: #fff; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 12px; }
.help-site-footer__col a { display: block; color: #aab3d0; text-decoration: none; padding: 5px 0; transition: color 0.15s ease; }
.help-site-footer__col a:hover { color: #fff; }
.help-site-footer__col a:focus-visible { outline: 2px solid #c7cdf5; outline-offset: 2px; border-radius: 3px; }
.help-site-footer__bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.84rem; color: #7c86a8; }

@media (max-width: 860px) {
  .help-layout { grid-template-columns: 1fr; gap: 20px; }
  .help-sidebar { order: 2; border-top: 1px solid var(--help-line); padding-top: 16px; position: static; }
  .help-nav { position: static; }
}
@media (max-width: 680px) {
  .help-collections { grid-template-columns: 1fr; }
  .help-hero { padding: 34px 0 32px; }
  .help-main { padding: 24px 16px 60px; }
  /* Keep the sticky search compact on phones. */
  .help-searchbar { padding: 12px 0; }
  .help-site-footer { padding: 40px 0 26px; }
  .help-site-footer__top { gap: 26px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Shared public site pages (/status, /changelog) — site_pages.py + changelog
   ───────────────────────────────────────────────────────────────────────── */
/* Header nav (brand + Help/Status/Changelog + Back to trine.uk) */
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--help-ink); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.site-nav a:hover { color: var(--help-indigo-bright); }
.site-nav a[aria-current="page"] { color: var(--help-indigo); text-decoration: underline; text-underline-offset: 4px; }
.site-nav a:focus-visible { outline: 2px solid var(--help-indigo-bright); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 560px) { .site-nav { gap: 12px; } }

/* Status page */
.status-page { max-width: 760px; }
.status-banner {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 20px;
  padding: 14px 18px; border-radius: 12px; font-weight: 700; font-size: 1.05rem;
  border: 1px solid var(--help-line);
}
.status-banner--ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.status-banner--down { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.status-dot { width: 11px; height: 11px; border-radius: 999px; flex: none; display: inline-block; }
.status-dot--ok { background: #17b26a; }
.status-dot--down { background: #f04438; }
.status-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--help-line); border-radius: 12px; overflow: hidden; }
.status-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--help-line); }
.status-row:last-child { border-bottom: 0; }
.status-row__name { font-weight: 600; color: var(--help-ink); }
.status-row__detail { color: var(--help-muted); font-size: 0.9rem; flex: 1 1 auto; }
.status-row__state { font-weight: 600; font-size: 0.85rem; color: var(--help-ink-soft); }
.status-checked { color: var(--help-muted); font-size: 0.85rem; margin: 14px 0 0; }
@media (max-width: 560px) {
  .status-row { flex-wrap: wrap; gap: 6px 10px; }
  .status-row__detail { flex-basis: 100%; order: 3; }
}

/* Changelog */
.changelog-page { max-width: 760px; }
.changelog-list { display: flex; flex-direction: column; gap: 32px; margin-top: 8px; }
.changelog-entry { scroll-margin-top: 90px; }
/* R22 — one heading per release date; each change is a sub-section beneath it. */
.changelog-release { scroll-margin-top: 90px; padding-top: 4px; }
.changelog-release + .changelog-release { border-top: 1px solid var(--help-line); padding-top: 32px; }
.changelog-release__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.changelog-release__date { font-size: 1.05rem; font-weight: 700; color: var(--help-muted); margin: 0; letter-spacing: .01em; }
.changelog-release__cont { font-weight: 600; font-size: 0.85rem; }
.changelog-release__items { display: flex; flex-direction: column; gap: 26px; }
.changelog-release__items .changelog-entry__title { font-size: 1.2rem; }
.changelog-entry__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.changelog-entry__date { color: var(--help-muted); font-size: 0.85rem; font-weight: 600; }
.changelog-entry__version {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--help-indigo); background: var(--help-tint); border-radius: 999px; padding: 2px 10px;
}
.changelog-entry__title { font-size: 1.3rem; font-weight: 700; color: var(--help-ink); margin: 0 0 8px; }
.changelog-entry__anchor { color: inherit; text-decoration: none; }
.changelog-entry__anchor:hover { color: var(--help-indigo-bright); }
.changelog-entry__anchor:focus-visible { outline: 2px solid var(--help-indigo-bright); outline-offset: 3px; border-radius: 4px; }
.changelog-empty { color: var(--help-muted); }
.status-dot--info { background: #f79009; }
.status-note { color: var(--help-muted); font-size: 0.85rem; margin: 10px 0 0; }
.status-note a { color: var(--help-indigo-bright); }

/* Unified public header nav — keep the single-row 64px header from overflowing
   on small screens (which would break the Help Centre's sticky search/sidebar
   offsets): tighten spacing and drop the long "Back to trine.uk" label on narrow
   screens — the logo already links to the home page. */
@media (max-width: 640px) {
  .site-nav { gap: 14px; font-size: 0.85rem; }
  .site-nav__back { display: none; }
}

/* Changelog pagination (server-rendered, plain links) */
.changelog-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--help-line); }
.changelog-pager__link { color: var(--help-indigo-bright); text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 8px 13px; border: 1px solid var(--help-line); border-radius: 10px; background: var(--help-surface); }
.changelog-pager__link:hover { background: var(--help-tint); border-color: #c7cdf5; }
.changelog-pager__link:focus-visible { outline: 2px solid var(--help-indigo-bright); outline-offset: 2px; }
.changelog-pager__link.is-disabled { visibility: hidden; }
.changelog-pager__status { color: var(--help-muted); font-size: 0.85rem; font-weight: 600; }
@media (max-width: 560px) {
  .changelog-pager__status { order: -1; flex-basis: 100%; text-align: center; }
}
