/* ===========================================================================
   NRS blog design system
   Palette + motifs sampled from the live NRS properties (nrspay.com,
   nrsinsights.com): purple #765d85 with a purple accent ramp, black panels,
   angled section edges, pill CTAs, purple uppercase eyebrows.
   Type: Jost (Futura substitute, matches FuturaStd on nrspay.com) for display,
   Open Sans for body. Both self-hosted, latin subset, variable.
   Plain CSS, no build step, no third-party requests.
   =========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans NRS";
  src: url("/fonts/opensans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --purple: #765d85;
  --purple-rgb: 118, 93, 133;
  --purple-hover: #836990;
  --purple-light: #b99dca;
  --purple-tint: #f4f0f7;
  /* Accent ramp. The brand reads purple, so these carry purple values; the
     names are kept so every existing usage follows without a rename. */
  --accent: #9a72b3;        /* on dark panels: 4.9:1 on --black */
  --accent-deep: #6b4a7d;   /* on light: 6.6:1 on white, AA normal text */
  --accent-tint: #f2ecf6;

  /* Neutrals */
  --black: #0c0c0e;
  --ink: #17171c;
  --body: #40404b;
  --muted: #6e6e7b;
  --border: #e3e3e8;
  --border-strong: #cfcfd7;
  --surface: #ffffff;
  --surface-alt: #f3f4f5;

  /* Type */
  --font-display: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-body: "Open Sans NRS", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 44rem;

  /* Space */
  --s1: 0.375rem;
  --s2: 0.625rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.25rem;
  --s6: 3.5rem;
  --s7: 5.5rem;

  /* Shape */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(12, 12, 14, 0.05), 0 10px 30px rgba(var(--purple-rgb), 0.11);
  --shadow-lift: 0 2px 6px rgba(12, 12, 14, 0.07), 0 22px 48px rgba(var(--purple-rgb), 0.2);
}

/* NRS Insights leans a touch deeper on the purple (its nav bar reads #896798). */
body.brand-insights {
  --purple: #7b5c8c;
  --purple-rgb: 123, 92, 140;
  --purple-hover: #896798;
  --purple-light: #c0a8ce;
  --purple-tint: #f5f1f8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem; /* the only anchor offset: sticky header + breathing room */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--body);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.015em;
  font-weight: 700;
}

a {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--purple-rgb), 0.4);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple-hover);
  text-decoration-color: var(--accent);
}

:focus-visible {
  /* the old green was 2.08:1 on white, under the 3:1 non-text floor (SC 1.4.11).
     --purple is 5.71:1 on white; the white halo carries it on dark panels. */
  outline: 3px solid var(--purple);
  outline-offset: 2px;
  border-radius: 3px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.85);
}

.hero :focus-visible,
.post__cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent);  /* on the black panels only */
  box-shadow: none;
}

/* .post-card and .faq-item clip to their padding box, and their link/summary
   fills it exactly, so an outward ring lands entirely in the clipped region
   and never paints. Draw these inside the element instead. */
.post-card__link:focus-visible,
.faq-item summary:focus-visible,
.featured__card:focus-visible {
  outline-offset: -3px;
  box-shadow: none;
}

.post-card:has(.post-card__link:focus-visible),
.faq-item:has(summary:focus-visible) {
  border-color: var(--purple);
}

.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--s4);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--purple);
  color: #fff;
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-pill);
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--s3);
  top: var(--s3);
}

/* --- Eyebrow: the purple uppercase label used across the NRS sites --------- */

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 var(--s2);
}

.post__header .eyebrow {
  display: inline-block;
}

.eyebrow--onDark {
  color: var(--purple-light);
}

.ico {
  width: 0.85em;
  height: 0.85em;
  display: inline-block;
  vertical-align: -0.06em;
  flex: none;
}

/* --- Pill button ---------------------------------------------------------- */

.btn {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--purple);
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--purple-hover);
  border-color: var(--purple-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--purple);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--purple-tint);
  color: var(--purple);
  border-color: var(--purple);
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  flex-wrap: wrap;
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-logo__nrs {
  color: var(--purple);
}

.site-logo__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.55rem;
  transform: translateY(-0.15rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--purple);
}

.site-nav .btn:hover {
  color: #fff;
}

/* --- Hero: black panel with an angled bottom edge, the NRS Pay motif ------- */

.hero {
  position: relative;
  background: var(--black);
  color: #fff;
  padding: var(--s7) 0 calc(var(--s7) + 2.5rem);
  margin-bottom: -3rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5rem), 0 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 26rem at 82% -10%, rgba(var(--purple-rgb), 0.6), transparent 65%),
    radial-gradient(38rem 20rem at 8% 120%, rgba(var(--purple-rgb), 0.34), transparent 70%);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero__rule {
  width: 3.5rem;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: var(--s4);
}

.hero h1 {
  margin: 0 0 var(--s3);
  max-width: 20ch;
  color: #fff;
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lede {
  margin: 0;
  max-width: 46rem;
  color: #d6d4dc;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.65;
}

.hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  margin: var(--s5) 0 0;
  padding: 0;
}

.hero__stats div {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

.hero__stats span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
}

/* --- Topic chips ---------------------------------------------------------- */

.topics {
  /* .hero pulls up 3rem under its angled edge; clear that before any text. */
  padding-top: calc(var(--s6) + 3rem);
}

.topics__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin: 0;
  padding: 0;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.topic-chip b {
  font-weight: 600;
  color: var(--muted);
}

.topic-chip:hover {
  border-color: var(--purple);
  background: var(--purple-tint);
  color: var(--purple);
}

.topic-chip:hover b {
  color: var(--purple);
}

.topic-chip[aria-current="page"] {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.topic-chip[aria-current="page"] b {
  color: rgba(255, 255, 255, 0.78);
}

/* --- Featured lead post --------------------------------------------------- */

.featured {
  margin-top: var(--s5);
}

.featured__card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.featured__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  color: inherit;
}

.featured__img {
  width: 100%;
  height: 100%;
  min-height: 17rem;
  object-fit: cover;
  background: var(--surface-alt);
}

.featured__body {
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured__title {
  margin: 0 0 var(--s2);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.18;
}

.featured__meta {
  margin: 0 0 var(--s4);
  color: var(--body);
  font-size: 1.0125rem;
}

.featured__foot {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.featured__cta {
  display: inline-block;
  margin-top: var(--s3);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--purple);
}

.featured__card:hover .featured__cta {
  color: var(--purple-hover);
}

/* --- Section heads -------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin: var(--s6) 0 var(--s4);
  padding-bottom: var(--s2);
  border-bottom: 2px solid var(--border);
  position: relative;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 4rem;
  height: 2px;
  background: var(--accent);
}

.section-head h2 {
  margin: 0;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --- Post grid ------------------------------------------------------------ */

.post-grid {
  list-style: none;
  margin: 0 0 var(--s6);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.post-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple-light);
  box-shadow: var(--shadow-lift);
}

.post-card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.post-card__link:hover {
  color: inherit;
}

.post-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-alt);
}

.post-card__body {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__topic {
  font-size: 0.6875rem;
  margin-bottom: var(--s2);
}

.post-card__title {
  margin: 0 0 var(--s2);
  font-size: 1.125rem;
  line-height: 1.3;
}

.post-card:hover .post-card__title {
  color: var(--purple);
}

.post-card__meta {
  margin: 0 0 var(--s3);
  font-size: 0.9375rem;
  color: var(--body);
}

.post-card__foot {
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.post-card__foot span::before {
  content: "\00b7";
  margin-right: 0.5rem;
  color: var(--border-strong);
}

/* --- Post page ------------------------------------------------------------ */

.post {
  max-width: var(--measure);
  padding-top: var(--s5);
  padding-bottom: var(--s7);
}

.post__back {
  margin: 0 0 var(--s4);
  font-size: 0.875rem;
}

.post__back a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
}

.post__back a:hover {
  color: var(--purple);
}

.post__header h1 {
  margin: 0 0 var(--s3);
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.post__byline {
  margin: 0 0 var(--s5);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.post__byline span::before {
  content: "\00b7";
  margin-right: 0.5rem;
  color: var(--border-strong);
}

.post__byline .post__readtime {
  color: var(--accent-deep);
  font-weight: 600;
}

.post__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--s5);
}

/* "What this covers" — built from the post's own H2s and FAQ questions. */

.post-toc {
  margin: 0 0 var(--s5);
  padding: var(--s4) var(--s4) var(--s4) var(--s5);
  background: var(--surface-alt);
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-toc h2 {
  margin: 0 0 var(--s2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}

.post-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: var(--s4);
  font-size: 0.9375rem;
}

.post-toc li {
  margin-bottom: 0.3rem;
  break-inside: avoid;
}

.post-toc__sub {
  list-style: none;
  margin: 0.3rem 0 0;
  padding-left: 0.85rem;
  font-size: 0.875rem;
}

.post-toc__sub li {
  position: relative;
  margin-bottom: 0.2rem;
  color: var(--muted);
}

.post-toc__sub li::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0.62em;
  width: 0.35rem;
  height: 1px;
  background: var(--purple);
}

.post-toc a {
  color: var(--ink);
  text-decoration: none;
}

.post-toc a:hover {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.post__content {
  font-size: 1.0625rem;
  line-height: 1.72;
}

.post__content p {
  margin: 0 0 var(--s4);
}

.post__content > p:first-of-type {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
}

.post__content h2 {
  margin: var(--s6) 0 var(--s3);
  font-size: 1.5rem;
  line-height: 1.25;
}

.post__content h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--accent);
  border-radius: 2px;
}

.post__content ul,
.post__content ol {
  margin: 0 0 var(--s4);
  padding-left: 1.35rem;
}

.post__content li {
  margin-bottom: var(--s1);
}

.post__content li::marker {
  color: var(--purple);
}

.post__content strong {
  color: var(--ink);
  font-weight: 700;
}

/* --- FAQ (native disclosure, no JS) --------------------------------------- */

.faq {
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 2px solid var(--border);
}

.faq > h2 {
  margin: 0 0 var(--s4);
  font-size: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--s2);
  background: var(--surface);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--purple-light);
  background: var(--purple-tint);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s3) var(--s4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
}

.faq-item summary h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: -0.01em;
  color: inherit;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--purple);
  flex: none;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  color: var(--purple);
}

.faq-item p {
  margin: 0;
  padding: 0 var(--s4) var(--s4);
  color: var(--body);
}

/* --- Closing CTA panel ---------------------------------------------------- */

.post__cta {
  margin-top: var(--s6);
  padding: var(--s5);
  background: var(--black);
  border-radius: var(--radius-lg);
  color: #d6d4dc;
  position: relative;
  overflow: hidden;
}

.post__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(30rem 14rem at 88% -30%, rgba(var(--purple-rgb), 0.62), transparent 65%);
  pointer-events: none;
}

.post__cta > * {
  position: relative;
}

.post__cta p {
  margin: 0 0 var(--s2);
  font-size: 1.0125rem;
}

.post__cta p:last-of-type {
  margin-bottom: 0;
}

.post__cta a {
  color: var(--accent);
  text-decoration-color: rgba(154, 114, 179, 0.5);
}

.post__cta a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

/* --- Pager ---------------------------------------------------------------- */

.post-pager {
  margin-top: var(--s6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.post-pager a {
  display: block;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.35;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.post-pager a:hover {
  border-color: var(--purple);
  background: var(--purple-tint);
  color: var(--purple);
}

.post-pager b {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.3rem;
}

.post-pager__next {
  text-align: right;
  grid-column: 2;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  margin-top: var(--s7);
  background: var(--black);
  color: #a5a4ad;
  font-size: 0.875rem;
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple) 45%, var(--accent) 45%, var(--accent) 100%);
}

.site-footer__inner {
  padding: var(--s5) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer .site-logo {
  color: #fff;
}

.site-footer .site-logo__nrs {
  color: var(--purple-light);
}

.site-footer__legal {
  max-width: 34rem;
}

.site-footer p {
  margin: 0 0 var(--s1);
}

.site-footer a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 960px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured__card {
    grid-template-columns: 1fr;
  }

  .featured__img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .wrap {
    /* Sides only. The shorthand here reset padding-top/bottom to 0 on every
       element that also carries .wrap -- .topics, .site-header__inner,
       .site-footer__inner -- and dropped the index heading inside the hero. */
    padding-left: var(--s3);
    padding-right: var(--s3);
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: var(--s6) 0 calc(var(--s6) + 2rem);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%);
  }

  .hero__stats {
    gap: var(--s4);
  }

  .site-header__inner {
    gap: var(--s2);
    flex-wrap: nowrap;
  }

  .site-nav {
    gap: var(--s3);
    font-size: 0.8125rem;
  }

  /* The logo already links home and the footer carries the site links, so the
     header keeps only the wordmark and the CTA once space runs out. */
  .site-nav a:not(.btn) {
    display: none;
  }

  .site-logo {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }

  /* Stacked meta rows must not start a line with a dangling separator. */
  .post__byline span::before,
  .post-card__foot span::before {
    content: none;
  }

  .post-toc ol {
    columns: 1;
  }

  .post-pager {
    grid-template-columns: 1fr;
  }

  .post-pager__next {
    grid-column: 1;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .post-pager,
  .post-toc {
    display: none;
  }

  /* Only the first FAQ item ships open. A closed <details> hides its content
     through content-visibility on the UA ::details-content pseudo, which
     display: block on the light-DOM child cannot override -- without both
     rules FAQ answers 2 and 3 print as questions with no answers. */
  .faq-item::details-content {
    content-visibility: visible !important;
    block-size: auto !important;
  }

  .faq-item > *:not(summary) {
    display: block !important;
  }

  .faq-item summary::after {
    content: none;
  }

  .faq-item {
    background: none;
    break-inside: avoid;
  }
}
