/* =============================================================================
   The SEO Central — global stylesheet
   Single file. No framework. CSS variables. Mobile-first. Reading-optimized.
   ========================================================================== */

/* ---------- Self-hosted fonts (no Google Fonts network request) ---------- */
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins/poppins-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins/poppins-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins/poppins-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins/poppins-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter/inter-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter/inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors */
  --red: #E31E24;
  --black: #0A0A0A;
  --paper: #F4F3F0;
  --white: #FFFFFF;
  --grey: #8A8783;
  --grey-light: #D8D6D1;
  --grey-lighter: #E9E7E3;

  /* Semantic aliases */
  --bg: var(--paper);
  --bg-alt: var(--white);
  --bg-invert: var(--black);
  --text: var(--black);
  --text-invert: var(--white);
  --text-muted: var(--grey);
  --border: var(--grey-light);
  --accent: var(--red);

  /* Fonts */
  --font-heading: 'Poppins', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --text-4xl: 3.5rem;

  --content-width: 46rem;
  --page-width: 78rem;
  --radius: 6px;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.25em; }
button { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); margin-top: var(--space-8); }
h3 { font-size: var(--text-xl); margin-top: var(--space-6); }
h4 { font-size: var(--text-lg); margin-top: var(--space-5); }
p { margin: 0 0 var(--space-4); }
.lede {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 40ch;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin: 0 0 var(--space-3);
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 1.25em;
  height: 2px;
  background: var(--red);
}
.kicker--muted { color: var(--text-muted); }
.kicker--muted::before { background: var(--grey); }

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-4xl);
  line-height: 1;
  color: var(--black);
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.prose-width {
  max-width: var(--content-width);
}
.section {
  padding-block: var(--space-8);
}
.section--tight { padding-block: var(--space-6); }
.section--invert {
  background: var(--black);
  color: var(--white);
}
.section--invert .kicker { color: var(--red); }
.section--invert a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.rule {
  border: none;
  border-top: 2px solid var(--red);
  width: 3rem;
  margin: 0 0 var(--space-5);
}

/* ---------- Logo / wordmark ---------- */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: var(--text-lg);
  color: var(--black);
}
.wordmark span { display: block; }
.wordmark .dot { color: var(--red); }
.section--invert .wordmark,
.wordmark--invert { color: var(--white); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 243, 240, 0.92);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}
.nav {
  display: none;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-6);
}
.nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
}
.nav a[aria-current="page"] {
  color: var(--red);
}
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--black); }

.mobile-nav {
  border-top: 1px solid var(--border);
  padding: var(--space-4) 0 var(--space-6);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.mobile-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-lg);
}

@media (min-width: 900px) {
  .nav { display: block; }
  .nav-toggle, .mobile-nav { display: none; }
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary {
  background: var(--black);
  color: var(--white);
}
.btn--primary:hover { background: var(--red); }
.btn--outline {
  border-color: var(--black);
  color: var(--black);
  background: transparent;
}
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--accent {
  background: var(--red);
  color: var(--white);
}
.btn--accent:hover { background: var(--black); }

.text-link {
  color: var(--red);
  text-underline-offset: 3px;
  text-decoration: underline;
}

/* ---------- Tags / badges ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag {
  font-size: var(--text-xs);
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}
.tag--accent { border-color: var(--red); color: var(--red); }

/* ---------- Blog cards ---------- */
.blog-card {
  display: block;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
  height: 100%;
}
.blog-card:hover { box-shadow: var(--shadow-md); border-color: var(--black); }
.blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--grey-lighter);
}
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: var(--space-5); }
.blog-card__category {
  font-size: var(--text-xs);
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: var(--space-2);
  display: block;
}
.blog-card__title {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-2);
}
.blog-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.blog-card__excerpt {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
}
.blog-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.blog-card__author img {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.blog-card__dot::before { content: "\00b7"; margin-inline: var(--space-1); }

/* ---------- Article / blog detail ---------- */
/* Full-bleed dark hero: centered kicker/title/byline, echoing the
   .workshop-hero treatment so the accent color stays black, not the
   reference site's blue. */
.article-hero {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding-block: var(--space-7) var(--space-8);
}
.article-hero .breadcrumbs ol { justify-content: center; }
.article-hero .breadcrumbs a,
.article-hero .breadcrumbs li[aria-current="page"] { color: var(--grey); }
.article-hero .breadcrumbs a:hover { color: var(--white); }
.article-hero__kicker { justify-content: center; }
.article-hero__title {
  max-width: 46rem;
  margin-inline: auto;
  font-size: var(--text-3xl);
}
@media (min-width: 640px) {
  .article-hero__title { font-size: var(--text-4xl); }
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}
.article-meta a { text-decoration: underline; text-underline-offset: 3px; }
.article-hero__meta {
  justify-content: center;
  margin-bottom: 0;
}
.article-hero__meta a { color: var(--white); }
.article-meta__dot { color: var(--grey); }
.article-featured-image {
  max-width: var(--page-width);
  margin: var(--space-7) auto var(--space-6);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-featured-image figcaption {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding-top: var(--space-2);
}

/* Three columns on desktop — contents left, article center, author right —
   collapsing to a single stacked column (TOC, then body, then author) below
   960px via source order. */
.article-layout {
  display: grid;
  gap: var(--space-6);
  max-width: var(--page-width);
  margin-inline: auto;
}
@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: 200px minmax(0, var(--content-width)) 240px;
    align-items: start;
  }
}

.article-intro {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--text);
}
.article-body { max-width: var(--content-width); }
.article-body > * + * { margin-top: var(--space-4); }
.article-body h2, .article-body h3, .article-body h4 { scroll-margin-top: 6rem; position: relative; }
.article-body img { border-radius: var(--radius); }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--red);
  background: var(--bg-alt);
  font-style: italic;
  color: var(--text);
}
.article-body pre {
  background: var(--black);
  color: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: var(--text-sm);
}
.article-body code {
  background: var(--grey-lighter);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.article-body pre code { background: none; padding: 0; }
.article-body table { margin: var(--space-5) 0; font-size: var(--text-sm); }
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: var(--space-3);
  text-align: left;
}
.article-body th { background: var(--bg-alt); font-family: var(--font-heading); }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: var(--space-7) 0; }

.heading-anchor {
  margin-left: var(--space-2);
  color: var(--grey);
  text-decoration: none;
  opacity: 0;
  font-weight: 400;
  transition: opacity .1s ease;
}
h2:hover .heading-anchor,
h3:hover .heading-anchor,
h4:hover .heading-anchor,
.heading-anchor:focus { opacity: 1; }

.callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: var(--space-5);
}

/* ---------- Table of contents ---------- */
.toc {
  font-size: var(--text-sm);
}
.toc__title {
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.toc nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}
.toc nav a {
  display: block;
  padding: var(--space-1) 0 var(--space-1) var(--space-4);
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--text-muted);
}
.toc nav a:hover { color: var(--text); }
.toc nav a.is-active {
  color: var(--red);
  border-left-color: var(--red);
}
.toc .toc-level-3 { padding-left: var(--space-4); }
.toc .toc-level-4 { padding-left: var(--space-6); }

@media (min-width: 960px) {
  .toc--desktop {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }
}
.toc--mobile { display: block; margin-bottom: var(--space-6); }
.toc--mobile details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.toc--mobile summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
}
@media (min-width: 960px) {
  .toc--mobile { display: none; }
}
@media (max-width: 959px) {
  .toc--desktop { display: none; }
  /* On mobile the layout collapses to a single column in DOM order, which
     put "On this page" after the entire article. Move it back above the
     body text so it's actually useful before someone starts reading. */
  .toc--mobile { order: -1; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  margin-bottom: var(--space-5);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--grey-light);
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumbs li[aria-current="page"] {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section--invert .breadcrumbs a,
.section--invert .breadcrumbs li[aria-current="page"] {
  color: var(--grey);
}
.section--invert .breadcrumbs a:hover { color: var(--white); }

/* ---------- Author box ---------- */
.author-box {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.author-box img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box__name { font-family: var(--font-heading); font-weight: 700; margin: 0; }
.author-box__role { color: var(--text-muted); font-size: var(--text-sm); margin: var(--space-1) 0 var(--space-2); }
.author-box__bio { font-size: var(--text-sm); color: var(--text); margin: 0 0 var(--space-3); }

/* Blog detail's right-hand author card — same partial as .author-box
   elsewhere, but a 240px sidebar has no room for the horizontal layout, so
   it stacks vertically here and sticks alongside the article body. */
.article-aside .author-box {
  flex-direction: column;
  padding: var(--space-4);
}
.article-aside .author-box img { width: 56px; height: 56px; }
@media (min-width: 960px) {
  .article-aside {
    position: sticky;
    top: 5.5rem;
  }
}

/* ---------- Entity info table (author page) ---------- */
.entity-table { width: 100%; font-size: var(--text-sm); }
.entity-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  padding: var(--space-2) var(--space-4) var(--space-2) 0;
  width: 40%;
  vertical-align: top;
}
.entity-table td { padding: var(--space-2) 0; }
.entity-table tr { border-bottom: 1px solid var(--border); }

/* ---------- Social row ---------- */
.social-row { display: flex; gap: var(--space-3); list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.social-row a:hover { border-color: var(--red); color: var(--red); }

/* ---------- Related articles / prev-next ---------- */
.related-grid { margin-top: var(--space-4); }
.prev-next {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
@media (min-width: 640px) { .prev-next { grid-template-columns: 1fr 1fr; } }
.prev-next__link {
  display: block;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.prev-next__link:hover { border-color: var(--black); }
.prev-next__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.prev-next--next { text-align: right; }

/* ---------- Share row ---------- */
.share-row { display: flex; align-items: center; gap: var(--space-3); }
.share-row a, .share-row button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.share-row a:hover, .share-row button:hover { border-color: var(--red); color: var(--red); }

/* ---------- Comments ---------- */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.comment__meta { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-2); }
.comment__name { color: var(--text); font-weight: 600; }
.comment-form .form-row { margin-bottom: var(--space-4); }
.comment .comment-list { margin-left: var(--space-6); }

/* ---------- Forms (comment + admin) ---------- */
label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}
input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="search"], input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--white);
  color: var(--text);
}
textarea { resize: vertical; min-height: 8rem; }
input:focus, select:focus, textarea:focus { border-color: var(--black); }
.form-hint { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-1); }
.form-error { font-size: var(--text-xs); color: var(--red); margin-top: var(--space-1); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); margin: 0 0 var(--space-5); }
legend { font-family: var(--font-heading); font-weight: 500; padding-inline: var(--space-2); }
.checkbox-row { display: flex; align-items: center; gap: var(--space-2); }
.checkbox-row label { margin: 0; }

/* ---------- Accordion (FAQ / glossary) ---------- */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-4) 0;
  font-family: var(--font-heading);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  font-size: var(--text-xl);
  color: var(--red);
  flex-shrink: 0;
}
.accordion-item[open] summary::after { content: "\2212"; }
.accordion-item__body { padding: 0 0 var(--space-4); color: var(--text-muted); }

/* ---------- Glossary index ---------- */
.glossary-jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.glossary-jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
}
.glossary-letter { margin-top: var(--space-7); }

/* ---------- Workshop ---------- */
.workshop-hero {
  background: var(--black);
  color: var(--white);
}
.workshop-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
@media (min-width: 640px) { .workshop-facts { grid-template-columns: repeat(4, 1fr); } }
.workshop-fact__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--grey); }
.workshop-fact__value { font-family: var(--font-heading); font-weight: 500; margin-top: var(--space-1); }

.curriculum-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}
.curriculum-item__index {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--red);
  font-size: var(--text-lg);
  flex-shrink: 0;
  width: 2.5rem;
}

/* ---------- Search ---------- */
.search-form { display: flex; gap: var(--space-3); max-width: 40rem; }
.search-form input { flex: 1; }
.search-result { padding: var(--space-5) 0; border-bottom: 1px solid var(--border); }
.search-result mark { background: rgba(227, 30, 36, 0.15); color: inherit; padding: 0 .1em; }
.search-result__meta { font-size: var(--text-xs); color: var(--text-muted); }

/* ---------- 404 ---------- */
.error-page { text-align: left; padding-block: var(--space-10); }
.error-page .stat-number { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-6);
  margin-top: var(--space-9);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}
.site-footer a:hover { color: var(--red); }

/* ---------- Newsletter CTA ---------- */
.newsletter {
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-7);
}
.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
  max-width: 32rem;
}
.newsletter input {
  flex: 1;
  min-width: 12rem;
  border: none;
}
.newsletter .btn--primary { background: var(--black); }
.newsletter .btn--primary:hover { background: var(--white); color: var(--black); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.flow > * + * { margin-top: var(--space-4); }
