/* ==========================================================================
   NAS page shell (.nas-*)
   A close-enough copy of the NAS site template: design tokens, header, nav,
   breadcrumb, hero, prose and footer. Shared by every page in the prototype.
   ========================================================================== */

:root {
  --nas-purple: #4a1fc4;
  --nas-purple-dark: #2b1178;
  --nas-purple-ink: #3d17a8;
  --nas-lilac: #f0edf6;
  --nas-lilac-line: #ddd5ea;
  --nas-pink: #c4006a;
  --nas-ink: #1f1f24;
  --nas-ink-soft: #4b4b55;
  --nas-line: #e3e1ea;
  --nas-focus: #ffbf47;
  --nas-focus-ring: #0b0c0c;
  --nas-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.nas-body {
  margin: 0;
  font-family: var(--nas-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--nas-ink);
  background: #ffffff;
}
.nas-body *, .nas-body *::before, .nas-body *::after { box-sizing: border-box; }
.nas-container { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }

.nas-skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--nas-focus); color: #000; padding: 0.6rem 1rem; font-weight: 700;
}
.nas-skip:focus { top: 1rem; }

/* Visually hidden, still read by screen readers */
.nas-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus: dark ring plus yellow halo, like many UK public sites */
.nas-body a:focus-visible,
.nas-body button:focus-visible,
.nas-body input:focus-visible,
.nas-body select:focus-visible,
.nas-body summary:focus-visible,
.nas-body [tabindex]:focus-visible {
  outline: 3px solid var(--nas-focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--nas-focus);
}
.nas-body main:focus { outline: none; }

/* Header */
.nas-header { border-bottom: 1px solid var(--nas-line); background: #fff; }
.nas-header__top {
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.25rem 1.25rem;
  padding-top: 0.6rem; font-size: 0.85rem;
}
.nas-header__top a { color: var(--nas-ink-soft); text-decoration: none; }
.nas-header__top a:hover { text-decoration: underline; }
.nas-header__main { display: flex; align-items: center; gap: 1.5rem; padding: 0.75rem 1.25rem 1rem; }
.nas-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--nas-purple-ink); text-decoration: none; font-weight: 700; line-height: 1.1; font-size: 1.05rem; }
.nas-logo svg { flex: 0 0 auto; }
.nas-nav { margin-left: auto; }
.nas-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.nas-nav a { color: var(--nas-ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nas-nav a:hover { color: var(--nas-purple); text-decoration: underline; }
.nas-donate {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.4rem;
  background: var(--nas-pink); color: #fff; font-weight: 700; border-radius: 999px; text-decoration: none;
}
.nas-donate:hover { background: #a3005a; }

/* Breadcrumb */
.nas-crumbs { padding: 0.9rem 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.nas-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.nas-crumbs li + li::before { content: "\203A"; margin-right: 0.4rem; color: var(--nas-ink-soft); }
.nas-crumbs a { color: var(--nas-ink-soft); }
.nas-crumbs [aria-current] { color: var(--nas-ink-soft); }

/* Hero */
.nas-hero { background: var(--nas-purple); color: #fff; padding: 2rem 0 2.1rem; }
.nas-hero h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; font-weight: 800; }

/* Prose (used by item.html) */
.nas-prose > * { max-width: 50rem; }
.nas-prose h2 { color: var(--nas-purple-ink); font-size: 1.75rem; line-height: 1.25; margin: 2.25rem 0 0.8rem; scroll-margin-top: 1rem; }
.nas-prose h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.nas-prose p { margin: 0 0 1rem; }
.nas-prose ul { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.nas-prose li { margin: 0 0 0.45rem; }
.nas-prose a { color: var(--nas-purple-ink); }

/* Footer */
.nas-footer { background: var(--nas-purple-dark); color: #fff; padding: 2rem 0; font-size: 0.9rem; margin-top: 3rem; }
.nas-footer a { color: #fff; }
.nas-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1rem; padding: 0; }
.nas-footer p { margin: 0; color: #e7e2f7; }

@media (max-width: 60rem) {
  .nas-nav, .nas-header__top { display: none; }
  .nas-donate { margin-left: auto; }
}
@media (max-width: 40rem) {
  .nas-prose h2 { font-size: 1.45rem; }
}
