/* Lucky Dog Refuge — brand tokens.
 *
 * Loaded first on every surface, before that surface's own stylesheet.
 * This is the one place shelter identity lives: everything else in the
 * product should be layout and behaviour, referencing these custom
 * properties rather than a hex code of its own.
 *
 * The palette is not invented. It is extracted from the two supplied
 * artifacts:
 *
 *   1. scheduling/static/scheduling/brand/ldr-wordmark-wide.png — the
 *      product-owner-supplied original. Pixel-sampled (histogram of the
 *      file's own colours, most-frequent non-white/black first):
 *        ink   #000000  (outline, wordmark script)
 *        red   #c72028  (the "Refuge" banner)
 *        tan   #a8814a  (the dog's ear)
 *   2. scheduling/static/scheduling/kitchen_display.css — the one surface
 *      that already carries LDR branding end to end (see branding.py and
 *      the Kitchen Display header). Its palette is close to the wordmark's
 *      own but not identical, and the difference is exactly a contrast
 *      correction: the wordmark's literal tan (#a8814a) is 3.56:1 against
 *      white, below the 4.5:1 floor this product holds everywhere else
 *      (see AGENTS.md-adjacent surfaces' own :focus-visible/contrast
 *      rules). Kitchen Display's darker --brown (#6b4a2f) is that same
 *      hue raised to 7.94:1. That correction is adopted here rather than
 *      re-derived, since it was already made once, correctly, on real
 *      evidence.
 *
 * Every token below states its own contrast ratio against the surface it
 * is meant to sit on, computed by the WCAG relative-luminance formula
 * (not eyeballed), so a future change that breaks the floor is visible in
 * the diff rather than discovered on a screen.
 */

:root {
  /* Lets native form controls, scrollbars, etc. follow the OS preference
   * too, not just the CSS below -- part of actually supporting dark
   * mode rather than only recolouring the elements we style ourselves. */
  color-scheme: light dark;

  /* ── Ink and paper ─────────────────────────────────────────────── */
  --lu-ink: #16130f;            /* body text. 17.8:1 on --lu-paper, 16.3:1 on --lu-page */
  --lu-ink-soft: #5c534a;       /* secondary text, captions, timestamps. 7.2:1 on --lu-paper */
  --lu-paper: #fdfaf5;          /* cards, panels, the printed sheet -- soft ivory, not pure white */
  --lu-page: #f6f0e6;           /* page background -- warm, not clinical white */
  --lu-rule: #e2d6c4;           /* borders, dividers, table rules */
  --lu-input-faint: #eee7db;    /* input-screen count pill, from the approved concept */
  --lu-input-line: #dfd3c0;     /* input-screen fine divider */
  --lu-input-shadow: 0 1px 2px rgba(33, 23, 11, .025);

  /* ── Brand accent: the wordmark's own red, muted for UI fills ─────
   * The wordmark's literal red (#c72028) stays the logo's own colour,
   * but as a UI accent used on every link, active tab, and button it
   * read as too saturated to live with -- overused, it stopped meaning
   * "primary" and just meant "loud". Deepened and desaturated: same hue
   * family, 7.7:1 on --lu-paper, 7.1:1 on --lu-page.
   *
   * --lu-accent and --lu-accent-strong are equal in light mode but
   * diverge in dark mode (below) -- one colour cannot simultaneously be
   * light enough to read as text on a dark ground and dark enough for
   * white button text to clear 4.5:1 on top of it. Text/badges use
   * --lu-accent; solid fills (buttons) use --lu-accent-strong. */
  --lu-accent: #8d3035;
  --lu-accent-strong: #8d3035;
  --lu-accent-strong-hover: #6f262a; /* button-primary:hover -- a darkened
    --lu-accent-strong, not an unrelated colour. White text stays 10.6:1. */
  --lu-accent-ink: #ffffff;     /* text/icon colour on a solid --lu-accent-strong fill */
  --lu-accent-wash: #f2e9e7;    /* accent tinted background, e.g. a selected row */

  /* ── Interactive text ──────────────────────────────────────────────
   * One colour for "this navigates somewhere": the brand accent, always
   * underlined (see the link rules below). Ink is for reading; accent +
   * underline is for going. --lu-link-hover is a text colour, not a
   * fill: 10.2:1 on --lu-paper, 9.3:1 on --lu-page. */
  --lu-link: var(--lu-accent);
  --lu-link-hover: #6f262a;
  --lu-touch: 2.75rem;          /* the phone touch-row floor for any tappable row */

  /* ── Brand secondary: the wordmark's tan, contrast-raised ─────────
   * See the file header: #a8814a as supplied fails 4.5:1 as text or an
   * accent fill, so the darker value Kitchen Display already uses is the
   * one this product ships. 7.94:1 on --lu-paper. */
  --lu-brand-brown: #6b4a2f;
  --lu-brand-brown-wash: #f4ede4;

  /* ── Status family: one meaning, one colour, everywhere ───────────
   * Independent of brand accent on purpose -- a blocking safety conflict
   * must never be mistaken for "the brand colour", and vice versa. */
  --lu-blocking: #a3221d;       /* 7.49:1 on --lu-paper, 7.01:1 on --lu-page */
  --lu-blocking-wash: #fdf1f0;
  --lu-blocking-strong: #a3221d; /* solid-fill role, white text on top: see --lu-accent-strong
    for why this differs from --lu-blocking in dark mode. Same value here in light mode --
    --lu-blocking itself already clears 4.5:1 with white text. */
  --lu-warning: #8a5a06;        /* 5.92:1 on --lu-paper, 5.55:1 on --lu-page */
  --lu-warning-wash: #fdf7e9;
  --lu-warning-strong: #8a5a06;  /* same split as --lu-blocking-strong, for the same reason */
  --lu-ok: #1f6b3a;             /* 6.52:1 on --lu-paper, 6.1:1 on --lu-page */
  --lu-ok-wash: #f0f7f2;

  /* ── Neutral, unknown and info washes ──────────────────────────────
   * Pre-dating the brand refresh, plan.css carried a scatter of one-off
   * hex fills (chip/tag backgrounds, the "unknown/insufficient data"
   * state, table header bands) that were never brought into the token
   * system, so they had no dark-mode counterpart at all. Consolidated
   * here rather than left as hardcoded hex, each verified the same way
   * as the rest of this file. Light values are pixel-identical to what
   * they replace, so this is not a light-mode redesign. */
  --lu-neutral-wash: #eef1f5;   /* chip/tag/table-header neutral fill */
  --lu-unknown: #513a86;        /* "unknown/insufficient data" text. 8.5:1 on --lu-paper */
  --lu-unknown-strong: #6b4fae; /* same family, border/box-shadow use */
  --lu-unknown-wash: #efeaf8;
  --lu-info-wash: #e5f0fb;      /* "due now"/"blocked on manager action", paired with --lu-accent text */

  /* ── Spacing scale ─────────────────────────────────────────────── */
  --lu-space-1: 0.25rem;
  --lu-space-2: 0.5rem;
  --lu-space-3: 0.75rem;
  --lu-space-4: 1rem;
  --lu-space-5: 1.5rem;
  --lu-space-6: 2rem;

  /* ── Radius ────────────────────────────────────────────────────── */
  --lu-radius-sm: 4px;
  --lu-radius-md: 8px;
  --lu-radius-lg: 12px;

  /* ── Type ──────────────────────────────────────────────────────── */
  --lu-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
  /* Page titles and h1s only -- see the @font-face block below. Every
   * other heading level and all body/data/control text stays on
   * --lu-font: a dense table or a form is read for speed, not
   * character, and the system stack is faster to render and more
   * legible at small sizes than any embedded display face. */
  --lu-font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lu-font-size-sm: 0.875rem;
  --lu-font-size-base: 1rem;
  --lu-font-size-lg: 1.25rem;
  --lu-font-size-xl: 1.75rem;
  --lu-line-height: 1.5;

  /* ── Focus ─────────────────────────────────────────────────────────
   * The accessibility floor this product holds on every surface: a ring
   * at least 2px wide, at least 3:1 against its background, that never
   * relies on colour alone to say "focused" (it is also always offset,
   * so it reads as a shape change). --lu-accent on --lu-paper is 7.7:1,
   * comfortably above the 3:1 non-text-contrast minimum. */
  --lu-focus-ring: 0 0 0 2px var(--lu-paper), 0 0 0 4px var(--lu-accent);
}

/* Dark mode is a real second theme, not an inverted afterthought: warm
 * near-black rather than pure black, warm off-white text rather than
 * pure white, same "nothing at either extreme" principle the light
 * palette above already holds. Every ratio here is computed the same
 * way as the light palette's own (WCAG relative luminance), not
 * eyeballed -- see the accent/accent-strong split above for why two
 * values exist where light mode only needed one. */
@media (prefers-color-scheme: dark) {
  :root {
    --lu-ink: #f1e9da;            /* 14.8:1 on --lu-page, 13.6:1 on --lu-paper */
    --lu-ink-soft: #b7a98f;       /* 7.7:1 on --lu-page, 7.1:1 on --lu-paper */
    --lu-paper: #241f18;
    --lu-page: #1b1712;
    --lu-rule: #3c3324;
    --lu-input-faint: #302820;
    --lu-input-line: #453c30;
    --lu-input-shadow: none;

    --lu-accent: #c7767a;         /* 5.3:1 on --lu-page, 4.9:1 on --lu-paper (text/badges) */
    --lu-accent-strong: #a34448;  /* white text on this fill: 6.0:1 (button/CTA backgrounds) */
    --lu-accent-strong-hover: #b75358; /* lightened, not darkened -- dark-mode hover needs to
      stand out against the dark fill, not recede into it. White text stays 4.8:1. */
    --lu-accent-ink: #ffffff;
    --lu-accent-wash: #371b1c;    /* --lu-accent on this: 4.7:1 */
    --lu-link-hover: #e3a3a6;     /* 7.8:1 on --lu-paper, 8.5:1 on --lu-page */

    --lu-brand-brown: #b48864;    /* 5.6:1 on --lu-page */
    --lu-brand-brown-wash: #37271b;

    --lu-blocking: #db6661;       /* 5.2:1 on --lu-page */
    --lu-blocking-wash: #371c1b;
    --lu-blocking-strong: #9e2924; /* white text on this fill: 7.5:1 -- #db6661 itself
      is only 3.45:1 with white text, too light to also serve as a fill colour */
    --lu-warning: #eba62e;        /* 8.5:1 on --lu-page */
    --lu-warning-wash: #372d1b;
    --lu-warning-strong: #95640e;  /* white text on this fill: 5.1:1 -- #eba62e itself
      is only 2.1:1 with white text, nowhere near enough as a fill colour */
    --lu-ok: #53c57c;             /* 8.2:1 on --lu-page */
    --lu-ok-wash: #1b3725;

    --lu-neutral-wash: #24282e;   /* 12.3:1 ink / 6.4:1 ink-soft on this */
    --lu-unknown: #a18dce;        /* 5.6:1 on --lu-paper */
    --lu-unknown-strong: #9e89d2; /* 5.9:1 on --lu-page */
    --lu-unknown-wash: #272130;   /* --lu-unknown on this: 5.4:1 */
    --lu-info-wash: #1d2630;      /* --lu-accent on this: 4.6:1 */
  }
}

/* ── Interactive-text and disclosure system ───────────────────────────
 *
 * Six roles a reader must be able to tell apart at a glance:
 *   reading      ink text, no chrome
 *   quiet text   --lu-ink-soft (.muted, captions, explanatory lines)
 *   link         accent + underline, always -- prose that navigates
 *   action       a bordered control (.button, .link-button): changes
 *                something, or is a component-style link to a next step
 *   disclosure   a <summary> row with a chevron (below): expands/collapses
 *   state        chips/badges: words on a wash, never interactive
 *
 * Links are recognisable without hover. :where() keeps this at zero
 * specificity so any component that gives its own anchor a colour
 * (.button-primary, nav pills, cards) simply wins. Containers whose
 * chrome already says "tappable" opt out of the underline below, in one
 * list, rather than each surface re-declaring text-decoration:none. */
:where(a) {
  color: var(--lu-link);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
:where(a:hover) {
  color: var(--lu-link-hover);
  text-decoration-thickness: 0.14em;
}
/* Component links: the pill, tab, card or button around the text is the
 * affordance, so ordinary link colour and underline step aside. Local
 * rules still set each component's own colour and hover. */
:where(
  .account-nav, .workspace-nav, .topbar nav, .dog-filter-tabs,
  .pagination, .overview-card, .button, .cell-line, .gap-line,
  .setup-exception-item, .readiness-item, .attention-preview-item,
  .attention-group li, .playgroup-concern
) a,
:where(a.button, a.overview-card, a.cell-line, a.gap-line, a.playgroup-concern) {
  color: inherit;
  text-decoration-line: none;
}

/* Disclosures. Four kinds, one geometry: a full touch row, readable
 * type and a real chevron drawn in CSS (never a text glyph appended to
 * the label). The chevron is the one indicator; it turns over when open.
 *
 *   .disclosure-edit     opens a form that changes something. Reads as a
 *                        control: accent text, hairline border.
 *                        (.section-edit is the same thing, kept as an alias.)
 *                        .disclosure-quiet drops the box for a per-row repeat.
 *   .disclosure-info     opens more reading. Quiet: ink text, no border.
 *   .disclosure-section  a section heading that collapses (h2 inside).
 *   .disclosure-compact  a dense row that keeps its own summary layout.
 *   .disclosure-row      modifier: the summary spans a whole card or row.
 *
 * A <details> that is none of these is a bespoke widget (a nav menu)
 * and owns its own summary, chevron included. Help topics get the section
 * treatment through .help-content.
 *
 * The shared base sits in :where() so it has no specificity of its own:
 * every variant below (one class) overrides it cleanly, whatever order the
 * stylesheets load in. */
:where(.disclosure-edit, .section-edit, .disclosure-info, .disclosure-section, .help-content details) > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--lu-touch);
  padding-block: 0.2rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
}
:where(.disclosure-edit, .section-edit, .disclosure-info, .disclosure-section, .disclosure-compact, .help-content details) > summary::-webkit-details-marker { display: none; }
:where(.disclosure-edit, .section-edit, .disclosure-info, .disclosure-section, .disclosure-compact, .help-content details) > summary::marker { content: ""; }
:where(.disclosure-edit, .section-edit, .disclosure-info, .disclosure-section, .disclosure-compact, .help-content details) > summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.14rem) rotate(45deg);
  transition: transform 0.15s ease;
}
:where(.disclosure-edit, .section-edit, .disclosure-info, .disclosure-section, .disclosure-compact, .help-content details)[open] > summary::after {
  transform: translateY(0.12rem) rotate(-135deg);
}
:where(.disclosure-edit, .section-edit, .disclosure-info, .disclosure-section, .help-content details) > summary > :where(h2, h3) { margin: 0; }

/* Compact: a dense row (board cell, per-person line) that owns its own
 * summary layout but shares the one chevron and its open/closed turn; the
 * chevron sits at the end of the row. */
.disclosure-compact > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
  cursor: pointer;
  list-style: none;
  min-height: 2rem;
}
.disclosure-compact > summary::after { color: var(--lu-ink-soft); margin-left: auto; }

/* Edit: a control, not a caption. */
:is(.disclosure-edit, .section-edit) { margin-top: var(--lu-space-2); }
:is(.disclosure-edit, .section-edit) > summary {
  width: fit-content;
  max-width: 100%;
  padding-inline: 0.85rem;
  border: 1px solid var(--lu-rule);
  border-radius: var(--lu-radius-md);
  background: var(--lu-paper);
  color: var(--lu-accent);
  font-weight: 650;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
:is(.disclosure-edit, .section-edit) > summary:hover {
  background: var(--lu-accent-wash);
  border-color: var(--lu-accent);
}
:is(.disclosure-edit, .section-edit)[open] > summary {
  background: var(--lu-accent-wash);
  border-color: var(--lu-accent);
}
:is(.disclosure-edit, .section-edit)[open] > summary + * { margin-top: var(--lu-space-3); }

/* Quiet edit: the same actionable disclosure, repeated once per row
 * (a volunteer, a place, a commitment). Accent text and chevron, no box, so
 * a column of them does not out-shout the rows they belong to. */
.disclosure-quiet > summary {
  padding-inline: 0;
  border-color: transparent;
  background: none;
  font-size: 0.9rem;
}
.disclosure-quiet > summary:hover,
.disclosure-quiet[open] > summary { background: none; border-color: transparent; color: var(--lu-link-hover); }
@media (min-width: 641px) {
  .disclosure-quiet > summary { min-height: 2rem; }
}

/* Info: reading matter, quieter than an edit control but plainly openable. */
.disclosure-info > summary {
  width: fit-content;
  max-width: 100%;
  color: var(--lu-ink);
  font-weight: 500;
}
.disclosure-info > summary::after { color: var(--lu-ink-soft); }
.disclosure-info > summary:hover { color: var(--lu-link-hover); }
.disclosure-info[open] > summary + * { margin-top: var(--lu-space-2); }

/* Row: the disclosure is a whole card/row (Staff Today), so its summary
 * spans the line with the chevron at the far end at every width. */
.disclosure-row > summary { width: 100%; justify-content: space-between; }

/* Section: the heading is the label; the chevron sits right behind it. */
.disclosure-section > summary,
.help-content details > summary { color: var(--lu-ink); font-weight: 650; }
.disclosure-section > summary::after,
.help-content details > summary::after { color: var(--lu-ink-soft); }

@media (max-width: 640px) {
  /* A phone row is the whole line: label left, chevron at the far end. */
  :is(.disclosure-edit, .section-edit, .disclosure-info, .disclosure-section) > summary,
  .help-content details > summary {
    width: 100%;
    justify-content: space-between;
  }
  :is(.disclosure-edit, .section-edit, .disclosure-info) > summary { font-size: 1rem; }
  .disclosure-quiet > summary { font-size: 0.95rem; }
  .disclosure-compact > summary { min-height: var(--lu-touch); }
  .disclosure-info > summary { border-bottom: 1px solid var(--lu-rule); }
  .disclosure-info.disclosure-row > summary { border-bottom: 0; }
}

/* Actions that change something but sit inline in a row of text
 * ("Restore", "Not coming after all", "Remove"): a small bordered
 * control, never underlined text, so they cannot be mistaken for a link. */
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--lu-rule);
  border-radius: var(--lu-radius-sm);
  background: var(--lu-paper);
  color: var(--lu-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.link-button:hover { background: var(--lu-accent-wash); border-color: var(--lu-accent); color: var(--lu-ink); }
@media (max-width: 640px) { .link-button { min-height: var(--lu-touch); } }

/* Shared with Staff Today: handling instructions and recorded conditions
 * keep the same safety emphasis on read-only reference surfaces. */
.critical-note {
  margin: 0 0 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--lu-blocking-wash);
  border: 2px solid var(--lu-blocking);
  border-radius: 0.5rem;
  font-weight: 700;
  color: var(--lu-ink);
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}
.critical-note .critical-icon { flex-shrink: 0; }
.safety-secondary {
  padding: 0.55rem 0.75rem;
  background: var(--lu-warning-wash);
  border-radius: 0.5rem;
}

/* A sentence that explains the section it sits directly under. */
.section-lede {
  margin: 0.2rem 0 0.75rem;
  color: var(--lu-ink-soft);
  font-size: 0.9rem;
  max-width: 46rem;
}

:focus-visible {
  outline: none;
  box-shadow: var(--lu-focus-ring);
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url("fonts/BricolageGrotesque-Regular.a6fbc5c45f4c.woff2") format('woff2');
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url("fonts/BricolageGrotesque-Bold.f8c17cd7d01e.woff2") format('woff2');
  font-weight: 600 800;
  font-display: swap;
}

/* Shared account controls sit above each product surface rather than
 * becoming another surface-specific navigation system. */
.account-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--lu-space-2) var(--lu-space-4);
  padding: var(--lu-space-2) var(--lu-space-4);
  border-bottom: 1px solid var(--lu-rule);
  background: var(--lu-paper);
  color: var(--lu-ink-soft);
  font: var(--lu-font-size-sm)/1.4 var(--lu-font);
}
.account-nav-links { display: flex; flex-wrap: wrap; gap: var(--lu-space-3); }
.account-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--lu-ink);
  font-weight: 650;
}
.account-nav form { margin: 0; }
.observer-label { color: #8a2d16; }
.observer-description { color: var(--lu-ink); }
.observer-selector { display: flex; align-items: center; flex-wrap: wrap; gap: var(--lu-space-2); }
.observer-selector select { min-height: 2.75rem; max-width: 18rem; }
.observer-bar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--lu-space-2) var(--lu-space-4); padding: var(--lu-space-2) var(--lu-space-4); border-bottom: 1px solid var(--lu-rule); background: #fff6e8; }
.observer-bar form { margin: 0; }
.help-link,
.workspace-nav-views a.help-link,
.account-nav a.help-link,
body.staff-today-page .account-nav a.help-link { min-width: max(44px, 2.75rem); min-height: max(44px, 2.75rem); }
.help-link { display: inline-flex; align-items: center; }
.help-content { max-width: 52rem; margin: 0 auto; overflow-wrap: anywhere; }
.help-content summary,
.guidance-note > summary { min-height: 2.75rem; align-content: center; cursor: pointer; }
.help-content a.help-action { display: inline-block; min-height: 2.75rem; align-content: center; }
.guidance-note { margin: var(--lu-space-2) var(--lu-space-4); }
.account-nav button {
  min-height: 2.75rem;
  padding: var(--lu-space-1) var(--lu-space-3);
  border: 1px solid var(--lu-rule);
  border-radius: var(--lu-radius-sm);
  background: var(--lu-paper);
  color: var(--lu-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

/* main.product-login, not .product-login alone: plan.css's .panel rule
 * (loaded after this file) sets its own margin at equal class
 * specificity, so a bare class selector here would lose that fight on
 * source order and silently zero this card's centering. The extra
 * element selector is a deliberate, permanent specificity bump, not a
 * quirk of the current cascade order. */
main.product-login {
  width: min(28rem, calc(100% - 2rem));
  margin: 4rem auto;
  padding: var(--lu-space-6) var(--lu-space-5);
  text-align: center;
}
.product-login-logo { height: 44px; width: auto; margin: 0 auto var(--lu-space-4); display: block; }
.product-login h1 { font-size: 1.5rem; }
.product-login > p:not(.status) { margin: 0 0 var(--lu-space-5); color: var(--lu-ink-soft); font-size: 0.9rem; }
.product-login form { text-align: left; }
.product-login input, .product-login button { min-height: 2.75rem; }
.product-login input { max-width: 100%; }

@media (max-width: 520px) {
  .account-nav {
    justify-content: flex-start;
    gap: var(--lu-space-2) var(--lu-space-3);
    padding: var(--lu-space-2) var(--lu-space-3);
  }
  .account-nav-links { flex-basis: 100%; }
  .account-nav-identity { flex: 1 1 14rem; }
  .product-login { margin-top: 2rem; }
}

/* a.sr-only:focus (the skip link) is the one exception -- everything
 * else tagged sr-only stays screen-reader-only even while focused. */
a.sr-only:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 20;
  width: auto;
  height: auto;
  padding: 0.6rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--card);
  color: var(--ink);
  border-radius: 0.4rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
