/* =============================================================================
   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;
  --red-rgb: 227, 30, 36;
  --black: #0A0A0A;
  --paper: #FFFFFF;
  --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: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  font-size: var(--text-base);
  color: var(--black);
  transition: opacity .15s ease;
}
.wordmark:hover { opacity: 0.7; }
.wordmark span { display: block; }
.wordmark .dot { display: inline; color: var(--red); }
/* Configured-brand variants (white-label): single-line text or an uploaded logo */
.wordmark__text { display: inline-block; font-size: var(--text-lg); }
.wordmark__text .dot { color: var(--red); }
.wordmark__logo { display: block; height: 2em; width: auto; }
.section--invert .wordmark,
.wordmark--invert { color: var(--white); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68) 70%, rgba(255, 255, 255, 0.55));
  backdrop-filter: saturate(200%) blur(16px);
  -webkit-backdrop-filter: saturate(200%) blur(16px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 24px -16px rgba(10, 10, 10, 0.18);
}
/* A soft diagonal sheen across the top edge — the Aero-glass / macOS
   translucency cue that makes the bar read as glass, not flat opacity. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 28%);
}
.site-header__bar { position: relative; }
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
}
.nav {
  display: none;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-7);
}
.nav li { position: relative; }
.nav a {
  position: relative;
  display: inline-block;
  padding-block: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover { color: var(--black); text-decoration: none; }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--black); }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--black); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.nav-toggle:hover { border-color: var(--black); }
.nav-toggle[aria-expanded="true"] { border-color: var(--black); background: var(--black); color: var(--white); }

.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 {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.12), 0 16px 32px -14px rgba(var(--red-rgb), 0.45);
}
.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;
}
.article-layout > * { min-width: 0; }
@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); min-width: 0; }
.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 {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: var(--space-5) 0;
  font-size: var(--text-sm);
  -webkit-overflow-scrolling: touch;
}
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: var(--space-3);
  text-align: left;
  white-space: nowrap;
}
.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);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.prev-next__link:hover {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.12), 0 16px 32px -14px rgba(var(--red-rgb), 0.45);
}
.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"], input[type="tel"], 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);
  padding-block: var(--space-6) var(--space-8);
}
.workshop-hero .breadcrumbs { margin-bottom: var(--space-5); }
.workshop-layout {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 900px) {
  .workshop-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
}
.workshop-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--grey);
}
.workshop-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.workshop-hero__stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey);
}
.workshop-hero__stat-dot--live {
  background: var(--red);
  animation: workshop-pulse 1.6s ease-in-out infinite;
}
.workshop-hero__stars {
  color: var(--red);
  letter-spacing: 0.05em;
}
.workshop-buy {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.5);
}
@media (min-width: 900px) {
  .workshop-buy { position: sticky; top: 5.5rem; }
}
.workshop-buy__media {
  aspect-ratio: 16 / 9;
  background: var(--black);
}
.workshop-buy__media img { width: 100%; height: 100%; object-fit: cover; }
.workshop-buy__body {
  padding: var(--space-5);
}
.workshop-buy__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-2xl);
  margin: 0;
}
.workshop-buy__seats {
  color: var(--red);
  font-size: var(--text-sm);
  font-family: var(--font-heading);
  font-weight: 500;
  margin: var(--space-2) 0 0;
}
.workshop-buy__cta {
  display: block;
  text-align: center;
  width: 100%;
  margin-top: var(--space-5);
}
.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;
}
.curriculum-item__label {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}

/* ---------- 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(var(--red-rgb), 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__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
  }
}
.site-footer__tagline {
  margin-top: var(--space-3);
  max-width: 32rem;
}
.site-footer__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-xs);
  color: var(--text);
  margin: 0 0 var(--space-3);
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.site-footer__bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
}
.site-footer a:hover { color: var(--red); }

/* ---------- Contact form ---------- */
.contact-form textarea {
  width: 100%;
  resize: vertical;
}

/* ---------- Lead-capture widget (end-of-post funnel) ---------- */
.lead-widget {
  margin: var(--space-8) auto 0;
  max-width: var(--content-width, 44rem);
}
.lead-widget__inner {
  border: 2px solid var(--red);
  border-radius: var(--radius, 8px);
  background: var(--surface, #fafafa);
  padding: var(--space-6);
  box-shadow: 0 0 0 4px rgba(var(--red-rgb), 0.08), 0 10px 30px rgba(var(--red-rgb), 0.12);
}
.lead-widget__consent a { color: var(--red); text-decoration: underline; }
.lead-widget__kicker {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
  color: var(--red);
  margin: 0 0 var(--space-2);
}
.lead-widget__title { margin: 0 0 var(--space-2); font-size: var(--text-xl); }
.lead-widget__blurb { margin: 0 0 var(--space-5); color: var(--text-muted); }
.lead-widget__form { display: flex; flex-direction: column; gap: var(--space-3); }
.lead-widget__row { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .lead-widget__row { grid-template-columns: 1fr 1fr; }
}
.lead-widget__form input[type="text"],
.lead-widget__form input[type="email"],
.lead-widget__form input[type="tel"] {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius, 6px);
  background: var(--white);
  font-size: var(--text-base);
}
.lead-widget__consent {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.4;
}
.lead-widget__consent input { margin-top: 0.2em; flex: none; }
.lead-widget__submit { margin-top: var(--space-1); align-self: flex-start; }
.lead-widget__error {
  color: var(--red);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-3);
}
.lead-widget__success-title { font-size: var(--text-lg); margin: 0 0 var(--space-2); }
.lead-widget__success-msg { color: var(--text-muted); margin: 0 0 var(--space-4); }
/* Ensure the HTML [hidden] attribute wins over the class-based display rules
   above (equal specificity would otherwise keep these visible). */
.lead-widget__form[hidden] { display: none; }
[data-lead-download][hidden] { display: none; }

/* ---------- Lead popup (center modal, scroll-triggered) ---------- */
.lead-popup[hidden] { display: none; }
.lead-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.lead-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(2px);
  animation: leadFade 0.2s ease;
}
.lead-popup__dialog {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--radius, 12px);
  box-shadow: 0 0 0 6px rgba(var(--red-rgb), 0.12), 0 30px 70px rgba(0, 0, 0, 0.4);
  animation: leadPop 0.25s ease;
}
.lead-popup__dialog .lead-widget__inner {
  border: none;
  box-shadow: none;
  background: transparent;
}
.lead-popup__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  z-index: 1;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-1);
}
.lead-popup__close:hover { color: var(--red); }
@keyframes leadFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes leadPop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-popup__backdrop, .lead-popup__dialog { animation: none; }
}

/* ---------- Newsletter band (elegant, site-wide) ---------- */
.newsletter-band {
  padding-block: var(--space-9);
  border-top: 1px solid var(--border);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(var(--red-rgb), 0.06), transparent 60%),
    var(--surface, #fafafa);
}
.newsletter-band__inner {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.newsletter-band__kicker {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--text-xs);
  color: var(--red);
  margin: 0 0 var(--space-3);
}
.newsletter-band__title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-2xl, 1.9rem);
  line-height: 1.15;
}
.newsletter-band__blurb {
  margin: 0 auto var(--space-6);
  max-width: 38rem;
  color: var(--text-muted);
}
.newsletter-band__fields {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 40rem;
  margin-inline: auto;
}
.newsletter-band__fields input[type="text"],
.newsletter-band__fields input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  background: var(--white);
  font-size: var(--text-base);
}
.newsletter-band__fields .btn { flex: 0 0 auto; }
.newsletter-band__consent {
  display: inline-flex;
  gap: var(--space-2);
  align-items: flex-start;
  justify-content: center;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: left;
}
.newsletter-band__consent input { margin-top: 0.2em; flex: none; }
.newsletter-band__consent a { color: var(--red); text-decoration: underline; }
.newsletter-band__success { text-align: center; }

/* ---------- 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); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-9) var(--space-8); }
.hero__grid {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: var(--space-8);
  }
}
.hero__title {
  font-size: var(--text-3xl);
  max-width: 22ch;
}
@media (min-width: 640px) {
  .hero__title { font-size: var(--text-4xl); }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.hero__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .hero__side { align-items: center; }
}
.hero__globe-wrap {
  display: none;
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 45%, rgba(var(--red-rgb), 0.06) 100%);
  backdrop-filter: blur(3px) saturate(160%);
  -webkit-backdrop-filter: blur(3px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -12px 24px rgba(var(--red-rgb), 0.06),
    0 20px 40px -20px rgba(10, 10, 10, 0.25);
  cursor: pointer;
}
@media (min-width: 900px) {
  .hero__globe-wrap { display: block; }
}
.hero__globe {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.hero__stats {
  display: flex;
  gap: var(--space-7);
  margin: 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  width: 100%;
}
@media (min-width: 900px) {
  .hero__stats {
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    padding-left: 0;
  }
}
.hero__stat dt { margin: 0; font-size: var(--text-2xl); }
.hero__stat dd { margin: 0; }

/* ---------- Numbered list (framework-step style) ---------- */
.numbered-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 720px) {
  .numbered-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-6);
  }
}
@media (min-width: 1080px) {
  .numbered-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.numbered-list__item { border-bottom: 1px solid var(--border); }
.numbered-list__item:first-child,
.numbered-list__item:nth-child(2) { border-top: 1px solid var(--border); }
@media (min-width: 720px) {
  .numbered-list__item:first-child,
  .numbered-list__item:nth-child(2) { border-top: none; }
}
@media (min-width: 1080px) {
  .numbered-list__item:nth-child(3) { border-top: none; }
}
.numbered-list__link {
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  transition: opacity .15s ease, transform .15s ease, padding-left .15s ease;
}
.numbered-list__link:hover {
  opacity: 0.85;
  padding-left: var(--space-3);
}
.numbered-list__link:hover .numbered-list__title { color: var(--red); }
.numbered-list__link:hover .numbered-list__index { transform: translateX(2px); }
.numbered-list__index {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--red);
  font-size: var(--text-lg);
  flex-shrink: 0;
  width: 2rem;
}
.numbered-list__body { flex: 1; min-width: 0; }
.numbered-list__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  transition: color .15s ease;
}
.numbered-list__desc {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}
.numbered-list__count {
  flex-shrink: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Full-bleed divider (signature red section) ---------- */
.divider {
  position: relative;
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  padding-block: var(--space-9);
}
.divider .kicker { color: var(--white); }
.divider .kicker::before { background: var(--white); }
.divider__title {
  font-size: var(--text-2xl);
  max-width: 30ch;
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) {
  .divider__title { font-size: var(--text-3xl); }
}
.divider p { position: relative; z-index: 1; }
.divider__arcs {
  position: absolute;
  top: 0;
  right: 0;
  width: 26rem;
  height: 26rem;
  max-width: 60vw;
  max-height: 60vw;
  pointer-events: none;
}
.divider__arcs circle {
  fill: none;
  stroke: var(--white);
  stroke-opacity: 0.18;
  stroke-width: 1.5;
}

/* ---------- Pull-quote ---------- */
.pull-quote {
  margin: var(--space-5) 0 var(--space-6);
  padding-block: var(--space-4);
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: 1.25;
}
.pull-quote::before { content: open-quote; }
.pull-quote::after { content: close-quote; }

/* ---------- Founder ---------- */
.founder {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 720px) {
  .founder {
    grid-template-columns: 200px 1fr;
    gap: var(--space-8);
  }
}
.founder__media { justify-self: start; }
.founder__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
}
@media (min-width: 720px) {
  .founder__photo { width: 200px; height: 200px; }
}
.founder__body p { max-width: 56ch; }
.founder__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--red);
  margin-top: calc(-1 * var(--space-3));
  margin-bottom: var(--space-4);
}
.founder__body .btn { margin-top: var(--space-4); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
.pagination__pages {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination__arrow,
.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding-inline: var(--space-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.pagination__arrow:hover,
.pagination__page:hover {
  border-color: var(--red);
  color: var(--red);
}
.pagination__arrow--disabled {
  opacity: 0.35;
  pointer-events: none;
}
.pagination__page--current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.pagination__ellipsis {
  color: var(--text-muted);
  padding-inline: var(--space-1);
}

/* ---------- Blog listing layout (sidebar + grid) ---------- */
.blog-layout {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-7);
}
@media (min-width: 900px) {
  .blog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
  }
}
.blog-sidebar__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: 0 0 var(--space-4);
}
.blog-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-sidebar__list li {
  border-bottom: 1px solid var(--border);
}
.blog-sidebar__list li:first-child {
  border-top: 1px solid var(--border);
}
.blog-sidebar__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text);
  transition: color .15s ease;
}
.blog-sidebar__list a:hover { color: var(--red); }
.blog-sidebar__list a[aria-current="page"] { color: var(--red); }
.blog-sidebar__list a[aria-current="page"] .blog-sidebar__count { color: var(--red); }
.blog-sidebar__count {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
@media (min-width: 900px) {
  .blog-sidebar { position: sticky; top: 5.5rem; }
}

.blog-sidebar__select {
  display: block;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23666'%3E%3Cpath d='M5 7l5 5 5-5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right var(--space-4) center;
  background-size: 0.9em;
  border: 1px solid var(--border);
  border-radius: var(--radius, 6px);
  padding: var(--space-3) var(--space-8) var(--space-3) var(--space-4);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text);
  margin-bottom: var(--space-5);
}
.blog-sidebar__list { display: none; }
@media (min-width: 900px) {
  .blog-sidebar__select { display: none; }
  .blog-sidebar__list { display: block; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.back-to-top:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.12), 0 16px 32px -14px rgba(var(--red-rgb), 0.45);
  transform: translateY(-2px);
}
.back-to-top[hidden] { display: none; }

/* ---------- Workshops landing ---------- */
.workshops-hero { padding-bottom: var(--space-6); }

.workshop-feed {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 720px) {
  .workshop-feed {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}
.workshop-feature {
  position: relative;
  display: grid;
  gap: 0;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.workshop-feature:hover {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.12), 0 16px 32px -14px rgba(var(--red-rgb), 0.45);
}
.workshop-feature__media {
  position: relative;
  background: var(--black);
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.workshop-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.workshop-feature__placeholder {
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}
.workshop-feature__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(4px);
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
}
.workshop-feature__badge--live {
  background: var(--red);
}
.workshop-feature__badge--live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  margin-right: var(--space-2);
  animation: workshop-pulse 1.6s ease-in-out infinite;
}
@keyframes workshop-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.workshop-feature__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.workshop-feature__title {
  margin-top: 0;
  font-size: var(--text-xl);
}
.workshop-feature__title a {
  color: inherit;
}
.workshop-feature__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.workshop-feature__actions {
  position: relative;
  z-index: 1;
}
.workshop-feature__summary {
  color: var(--text-muted);
}
.workshop-feature__meta {
  list-style: none;
  margin: var(--space-4) 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.workshop-feature__meta li {
  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);
}
.workshop-feature__seats {
  border-color: var(--red) !important;
  color: var(--red) !important;
}
.workshop-feature__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* ---------- Testimonials ---------- */
.testimonial-marquee {
  overflow: hidden;
  margin-top: var(--space-7);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.testimonial-marquee__track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  padding-inline: var(--space-5);
  animation: testimonial-scroll 40s linear infinite;
}
.testimonial-marquee:hover .testimonial-marquee__track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-marquee__track { animation: none; }
  .testimonial-marquee { overflow-x: auto; }
}
@keyframes testimonial-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.testimonial {
  margin: 0;
  flex: 0 0 22rem;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.testimonial__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.testimonial__stars {
  color: var(--red);
  font-size: var(--text-base);
  letter-spacing: 0.05em;
}
.testimonial__rating-label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.testimonial__quote {
  font-size: var(--text-base);
  color: var(--text);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.testimonial__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-xs);
}
.testimonial__author-info {
  display: flex;
  flex-direction: column;
}
.testimonial__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
}
.testimonial__role {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-top: 2px;
}

/* ---------- 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); }
