:root {
  /* base — same values as index.css */
  --primary: #0B0D00;
  --accent: #D0F308;
  --text: #0B0D00;
  --card: #FFFFFF;
  --bg: #F6F6F6;
  --muted: #6B7280;
  --border: #E5E7EB;
  --pill: #F3F4F6;

  /* not present on the landing — DS v2.6 values */
  --border-strong: #D1D5DB;
  --lime-shade-10: #BBDB07;
  --lime-shade-30: #92AA06;
  --lime-tint-85: #F0F9C8;
  --lime-tint-95: #F8FCE6;
  --olive-10: #C2C4BA;
  --olive-40: #8B8C84;
  --olive-60: #61625D;
  --olive-80: #494946;
  --success: #22c55e;
  --white-72: rgba(255, 255, 255, 0.72);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --max-w-landing: 1120px;

  /* radius, DS 5.6 */
  --r-input: 8px;
  --r-btn: 12px;
  --r-card: 16px;
  --r-feature: 20px;
  --r-dark: 24px;
  --r-pill: 999px;

  /* shadows, DS 5.5 */
  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --sh-sm: 0 1px 4px rgba(0, 0, 0, 0.04);

  /* blog-specific */
  --measure: 42rem;
  --header-h: 76px;

  /* typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Film grain — copied from landing index.css */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

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

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 10px 12px;
  background: var(--card);
  color: var(--text);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 100000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* ── Header (geometry + glass from landing) ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
}

.header-inner {
  height: 64px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 16px;
  padding: 0 16px;
  max-width: var(--max-w-landing);
  margin-left: auto;
  margin-right: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-input);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
}

.nav-cta-label--mobile {
  display: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-btn);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  letter-spacing: -0.01em;
}

.nav-cta {
  background: var(--accent);
  color: var(--text);
}

.nav-cta:hover {
  background: var(--lime-shade-10);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

.nav-cta .btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
  color: currentColor;
}

.nav-cta:hover .btn-icon {
  transform: translateX(3px);
}

/* ── Page shell ── */

.page {
  max-width: var(--max-w-landing);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 24px 80px;
}

/* Breadcrumb */

.breadcrumb {
  margin-bottom: var(--space-xl);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.breadcrumb [aria-current='page'] {
  color: var(--text);
}

.breadcrumb__sep {
  display: inline-flex;
  color: var(--olive-10);
}

/* ── Article layout — Variant B ── */

.article-layout {
  display: grid;
  grid-template-columns: 1fr var(--measure) 1fr;
  align-items: start;
  column-gap: 0;
}

.toc {
  grid-column: 1;
  justify-self: end;
  width: 200px;
  margin-right: 40px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.toc-mobile {
  display: none;
  grid-column: 1 / -1;
  margin-bottom: var(--space-lg);
}

.article-sheet {
  grid-column: 2;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-xs);
  padding: var(--space-2xl) var(--space-xl);
  min-width: 0;
}

.continue {
  grid-column: 2;
  margin-top: var(--space-2xl);
  min-width: 0;
}

/* TOC desktop */

.toc__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.toc ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc li {
  border-left: 2px solid transparent;
}

.toc li[aria-current='true'] {
  border-left-color: var(--primary);
}

.toc a {
  display: block;
  padding: 8px 0 8px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.toc li[aria-current='true'] a {
  color: var(--text);
  font-weight: 600;
}

.toc a:hover {
  color: var(--text);
}

/* TOC mobile details */

.toc-mobile details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-xs);
}

.toc-mobile summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 var(--space-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.toc-mobile summary::-webkit-details-marker {
  display: none;
}

.toc-mobile summary svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.toc-mobile details[open] summary svg {
  transform: rotate(180deg);
}

.toc-mobile ol {
  border-top: 1px solid var(--border);
  padding: var(--space-sm) 0;
}

.toc-mobile a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.toc-mobile a:hover {
  color: var(--text);
  background: var(--pill);
}

/* ── Article chrome ── */

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--pill);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-pill);
  line-height: 1.4;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.byline .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: 0 0 32px;
  overflow: hidden;
  background: rgba(194, 196, 186, 0.30);
}

.byline .av img {
  width: 340%;
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  display: block;
  margin: -82% 0 0 -120%;
}

.byline b {
  color: var(--text);
  font-weight: 600;
}

.byline .sep {
  color: var(--border-strong);
}

.article-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--olive-80);
  margin-bottom: var(--space-xl);
}

.article-cover {
  margin: 0 0 var(--space-2xl);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-feature);
  border: 1px solid var(--border);
  background: var(--pill);
}

.article-cover__placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--pill);
  border: 1px solid var(--border);
  border-radius: var(--r-feature);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.article-cover figcaption {
  margin-top: var(--space-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* ── Prose ── */

.article-body h2 {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.article-body p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.article-body a:not(.btn-primary):not(.cta-final__btn) {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

.article-body a:not(.btn-primary):not(.cta-final__btn):hover {
  text-decoration-color: var(--text);
}

.article-body blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-md) 0 var(--space-md) var(--space-lg);
  border-left: 2px solid var(--primary);
}

.article-body blockquote p {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}

.article-body .bullet-list {
  margin: var(--space-md) 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body .bullet-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

.article-body .bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--primary);
}

.article-body .numbered-list {
  margin: var(--space-md) 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  counter-reset: article-step;
}

.article-body .numbered-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  counter-increment: article-step;
}

.article-body .numbered-list li::before {
  content: counter(article-step) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.article-body .faq-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.article-body .faq-item:first-child {
  padding-top: 0;
}

.article-body .faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-body .faq-item h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.article-body .faq-item p {
  margin-bottom: 0;
}

.article-inline-figure {
  margin: var(--space-xl) 0;
}

.article-inline-figure figcaption {
  margin-top: var(--space-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.article-credit {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

.author-box {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--pill);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

.author-box__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 56px;
  background: rgba(194, 196, 186, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--olive-60);
}

.author-box__photo img {
  width: 340%;
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  display: block;
  margin: -82% 0 0 -120%;
}

.author-box__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}

.author-box__role {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 8px;
}

.author-box__bio {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--olive-80);
  margin: 0;
}

.article-inline-figure img {
  width: 100%;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
}

/* Table */

.table-scroll {
  margin: var(--space-lg) 0 var(--space-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.article-body thead th {
  background: var(--pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.article-body tbody td {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.article-body tbody tr:last-child td {
  border-bottom: none;
}

/* End-of-article CTA */

.cta-final {
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) var(--space-xl);
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(208, 243, 8, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(194, 196, 186, 0.18), transparent 50%),
    var(--primary);
  border-radius: var(--r-dark);
  color: var(--card);
  text-align: center;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--card);
  margin: 0 0 var(--space-sm);
  scroll-margin-top: 0;
}

.cta-final p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--olive-10);
  margin: 0 0 var(--space-lg);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-lg);
}

.cta-final__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-btn);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cta-final__btn:hover {
  background: var(--lime-shade-10);
  transform: translateY(-1px);
}

.cta-final__btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Continue reading */

.continue__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.continue__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.continue-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-lg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-xs);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.continue-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh-sm);
}

.continue-card__cat {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.continue-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

/* ── Responsive ── */

@media (max-width: 1023px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }

  .toc-mobile {
    display: block;
  }

  .article-sheet {
    grid-column: 1;
    padding: var(--space-xl) var(--space-lg);
  }

  .continue {
    grid-column: 1;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding: 0 16px;
  }

  .header-inner {
    gap: 12px;
    padding: 0 12px;
  }

  .logo {
    min-width: 0;
    flex-shrink: 1;
  }

  .logo-text {
    font-size: 20px;
  }

  .nav {
    gap: 0;
    flex-shrink: 0;
  }

  .nav-link:not(.nav-cta) {
    display: none;
  }

  .nav-cta-label--desktop {
    display: none;
  }

  .nav-cta-label--mobile {
    display: inline;
  }

  .nav-cta {
    white-space: nowrap;
    padding: 8px 14px;
    min-height: 44px;
  }

  .nav-cta .btn-icon {
    display: none;
  }

  .nav-cta:hover {
    transform: none;
    box-shadow: none;
  }

  .page {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 64px;
  }

  .article-sheet {
    padding: var(--space-lg) var(--space-md);
  }

  .article-body p,
  .article-body .bullet-list li {
    font-size: 16px;
  }

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

  .cta-final {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* ── Blog index ── */

.blog-home.page {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.blog-intro {
  max-width: 46rem;
  margin-bottom: var(--space-2xl);
}

.blog-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.blog-intro h1 em,
.blog-card__title--featured em,
.article-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.blog-intro__lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--olive-80);
}

.blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-feature);
  box-shadow: var(--sh-xs);
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.blog-featured:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.blog-featured:hover .blog-card__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.blog-featured__cover {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--pill);
  border: 1px solid var(--border);
}

.blog-featured__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

.blog-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--primary);
  color: var(--card);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--r-pill);
}

.blog-card__badge svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}

.blog-card__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.blog-card__title--featured {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.blog-card__dek {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.blog-card__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--olive-10);
}

.blog-section {
  margin-bottom: var(--space-2xl);
}

.blog-section__hd {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: 0;
  margin-bottom: var(--space-lg);
  border-bottom: none;
}

.blog-section__hd h2 {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-section__hd::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-xs);
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  min-height: 48px;
}

.blog-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.blog-card:hover .blog-card__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.blog-card__cat {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-card--theme .blog-card__meta,
.blog-card--theme .blog-card__soon-tag {
  margin-top: auto;
  padding-top: var(--space-sm);
}

.blog-card--soon {
  background: var(--card);
  border-style: solid;
  box-shadow: var(--sh-xs);
  cursor: default;
}

.blog-card--soon:hover {
  border-color: var(--border);
  box-shadow: var(--sh-xs);
}

.blog-card--soon:hover .blog-card__title {
  text-decoration: none;
}

.blog-card--soon .blog-card__title {
  color: var(--olive-80);
}

.blog-card--soon .blog-card__dek {
  color: var(--muted);
}

.blog-card__soon-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
}

.blog-grid--ref {
  grid-template-columns: 1fr;
}

.blog-ref {
  margin-bottom: var(--space-2xl);
}

.blog-card--ref {
  gap: var(--space-sm);
  min-height: 44px;
  touch-action: manipulation;
}

.blog-home .cta-final {
  margin-top: 0;
  margin-bottom: var(--space-2xl);
}

.blog-home .cta-final h2 {
  font-size: 32px;
}

.blog-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) var(--space-md);
}

.blog-footer__inner {
  max-width: var(--max-w-landing);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.blog-footer__copy {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.blog-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.blog-footer__nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 200ms ease;
}

.blog-footer__nav a:hover {
  color: var(--text);
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid--ref {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-featured {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: var(--space-xl);
  }

  .blog-featured__cover {
    aspect-ratio: 16 / 10;
  }

  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-grid--ref {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .blog-home.page {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .blog-featured {
    padding: var(--space-md);
  }

  .blog-home .blog-card__badge,
  .blog-home .category-pill,
  .blog-home .blog-card__soon-tag {
    font-size: 12px;
  }

  .blog-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Reference pages (FAQ accordion — DS 11.12 candidate) ── */

.ref-page.page {
  max-width: var(--max-w-landing);
  padding-left: 48px;
  padding-right: 48px;
}

.ref-intro {
  margin-bottom: 56px;
}

.ref-intro__eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.ref-intro__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}

.ref-intro__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.ref-intro__lead {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--olive-80);
  margin: 24px 0 0;
}

.ref-intro__lead p {
  margin: 0;
}

.ref-intro__aside {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  margin: 16px 0 0;
}

.ref-intro__aside a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color 0.25s ease;
}

.ref-intro__aside a:hover {
  text-decoration-color: var(--text);
}

.ref-main {
  min-width: 0;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  min-height: 56px;
  padding: 20px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: var(--r-btn);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.25s ease, color 0.25s ease;
}

.faq-item__trigger:hover {
  background: var(--lime-tint-95);
}

.faq-item__trigger:hover .faq-item__chevron {
  color: var(--text);
}

.faq-item__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-item__trigger span {
  flex: 1;
  min-width: 0;
}

.faq-item__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--olive-60);
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--text);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item__panel[hidden='until-found'] {
  display: grid;
}

.faq-item.is-open .faq-item__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition-duration: 240ms;
}

.faq-item__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item__content {
  padding: 0 16px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--olive-80);
  max-width: 78ch;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 180ms cubic-bezier(0.16, 1, 0.3, 1) 60ms,
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1) 60ms;
}

.faq-item.is-open .faq-item__content {
  opacity: 1;
  transform: translateY(0);
}

.faq-item__content p {
  margin: 0 0 12px;
}

.faq-item__content p:last-child {
  margin-bottom: 0;
}

.faq-item__content a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color 0.25s ease;
}

.faq-item__content a:hover {
  text-decoration-color: var(--text);
}

.faq-item__content ul,
.faq-item__content ol {
  margin: 0 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item__content li::marker {
  color: var(--olive-40);
}

.faq-item__content .table-scroll {
  margin: 12px 0;
}

.faq-item__content table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
}

.faq-item__content thead th {
  background: var(--pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.faq-item__content tbody td {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.faq-item__content tbody tr:last-child td {
  border-bottom: none;
}

.ref-contact-block {
  margin-top: 96px;
  padding: 48px;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(208, 243, 8, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(194, 196, 186, 0.18), transparent 50%),
    var(--primary);
  border-radius: var(--r-dark);
  color: var(--card);
}

.ref-contact-block__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--card);
  margin: 0 0 12px;
}

.ref-contact-block__text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--white-72);
  max-width: 48ch;
  margin: 0 0 24px;
}

.ref-contact-block__text a {
  color: var(--card);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.ref-contact-block__text a:hover {
  text-decoration-color: var(--card);
}

.ref-contact-block__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.ref-contact-block__cta:hover {
  background: var(--lime-shade-10);
  transform: translateY(-1px);
}

.ref-contact-block__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ref-contact-block__cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .ref-page.page {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 767px) {
  .ref-page.page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .faq-item__trigger {
    padding: 18px 12px;
  }

  .faq-item__content {
    padding: 0 12px 20px;
  }

  .ref-contact-block {
    margin-top: 64px;
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__panel,
  .faq-item.is-open .faq-item__panel,
  .faq-item__content,
  .faq-item.is-open .faq-item__content,
  .faq-item__chevron,
  .faq-item__trigger,
  .ref-contact-block__cta {
    transition: none !important;
  }

  .faq-item__content {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Glossário (lista corrida) ── */

.glossario-page.page {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.glossario-sheet {
  min-width: 0;
}

.glossario-sheet .article-title {
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.glossario-lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--olive-80);
  margin: 0 0 12px;
}

.glossario-lead p {
  margin: 0 0 12px;
}

.glossario-lead p:last-child {
  margin-bottom: 0;
}

.glossario-lead a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color 0.25s ease;
}

.glossario-lead a:hover {
  text-decoration-color: var(--text);
}

.glossario-entries {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.glossario-entry {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.glossario-entry__termo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 8px;
}

.glossario-entry__def {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--olive-80);
  max-width: 68ch;
}

.glossario-entry__def p {
  margin: 0 0 12px;
}

.glossario-entry__def p:last-child {
  margin-bottom: 0;
}

.glossario-entry__def strong {
  font-weight: 600;
  color: var(--text);
}

.glossario-entry__def em {
  font-style: italic;
  color: inherit;
}

.glossario-entry__def a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color 0.25s ease;
}

.glossario-entry__def a:hover {
  text-decoration-color: var(--text);
}

.glossario-entry__def .table-scroll {
  overflow-x: auto;
  margin: 16px 0 4px;
  -webkit-overflow-scrolling: touch;
}

.glossario-entry__def table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.glossario-entry__def thead th {
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.glossario-entry__def tbody td {
  font-size: 15px;
  color: var(--olive-80);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.glossario-contribute {
  margin-top: 96px;
  padding: 48px;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(208, 243, 8, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(194, 196, 186, 0.18), transparent 50%),
    var(--primary);
  border-radius: var(--r-dark);
  color: var(--card);
}

.glossario-contribute__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--card);
  margin: 0 0 12px;
}

.glossario-contribute__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--white-72);
  max-width: 48ch;
  margin: 0 0 24px;
}

.glossario-contribute__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: var(--r-btn);
  transition: background 0.25s ease, transform 0.25s ease;
}

.glossario-contribute__cta:hover {
  background: var(--lime-shade-10);
  transform: translateY(-1px);
}

.glossario-contribute__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.glossario-contribute__faq {
  display: block;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--white-72);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.glossario-contribute__faq:hover {
  text-decoration-color: var(--card);
}

.glossario-revised {
  margin-top: 32px;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .glossario-page.page {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 767px) {
  .glossario-page.page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .glossario-entries {
    gap: 28px;
  }

  .glossario-entry__termo {
    font-size: 20px;
  }

  .glossario-contribute {
    margin-top: 64px;
    padding: 32px 24px;
  }
}
