:root {
  --bg: #fcfaf8;
  --text: #2e2b29;
  --muted: #5c5652;
  --accent: #1a5f4a;
  --line: #e5e7eb;
  --max: 48rem;
  /* Light header + article TOC bar (layout as reference, light theme) */
  --header-bg: #fff;
  --header-border: var(--line);
  --header-text: var(--text);
  --header-muted: var(--muted);
  --toc-bar-bg: #f3f1ee;
  --toc-pill-bg: #fff;
  --toc-pill-border: var(--line);
  --toc-cta-bg: #e8941c;
  --toc-cta-text: #1a1208;
  /* Sticky header bar height; TOC sticks below with top: this value */
  --header-sticky-h: 4.5rem;
  /* Horizontal TOC strip (one row) for scroll-margin under header+toc */
  --toc-bar-h: 3.4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.nav-drawer-open,
html.nav-drawer-open body {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--accent);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  box-shadow: 0 1px 0 rgba(46, 43, 41, 0.04);
}

.site-header .wrap.header-bar,
.site-header .header-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  position: relative;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: var(--text);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(26, 95, 74, 0.06);
  border-color: rgba(26, 95, 74, 0.25);
  outline: none;
}

.nav-toggle:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

.nav-toggle__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.25rem;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  transform-origin: center;
}

.site-header.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(46, 43, 41, 0.45);
  backdrop-filter: blur(2px);
}

.nav-backdrop.is-visible {
  display: block;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 200;
    width: min(19rem, 88vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 5.25rem 1.25rem 2rem;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 32px rgba(46, 43, 41, 0.12);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.28s ease,
      visibility 0.28s ease;
  }

  .site-header.nav-open .nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-header .wrap.header-bar,
  .site-header .header-bar {
    z-index: 210;
    position: relative;
    background: var(--header-bg);
    justify-content: space-between;
  }

  .nav-toggle {
    z-index: 220;
    position: relative;
  }
}

@media (min-width: 768px) {
  .nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    margin-left: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
  }

  .nav-backdrop {
    display: none !important;
  }
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo__img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  .logo__img {
    height: 2.5rem;
    max-width: 220px;
  }
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }

  .nav__list a {
    display: block;
    padding: 0.9rem 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }

  .nav__list li:last-child a {
    border-bottom: none;
  }
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus {
  text-decoration: underline;
  color: var(--accent);
}

@media (max-width: 767px) {
  .nav a:hover,
  .nav a:focus {
    text-decoration: none;
    color: var(--accent);
  }
}

.main {
  padding: 2.5rem 0 3rem;
  max-width: 100%;
}

@media (max-width: 767px) {
  .main {
    padding: 2rem 0 2rem;
  }

  .wrap {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
}

.article-body {
  max-width: var(--max);
  margin: 0 auto;
}

/* Google Doc export: avoid viewport blowout + long strings */
.article-body.doc-content,
.doc-content {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  max-width: 100%;
  min-width: 0;
}

.doc-content img {
  max-width: 100%;
  height: auto;
}

.doc-content pre,
.doc-content code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.article-body h1,
.article-body h2,
.article-body h3 {
  font-weight: 700;
  line-height: 1.25;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-body h1 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin-top: 0;
}

.article-body h2 {
  font-size: 1.35rem;
}

.article-body h3 {
  font-size: 1.15rem;
}

.article-body p,
.article-body li {
  font-size: 1rem;
  color: var(--text);
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.article-body a {
  color: var(--accent);
}

.author-card {
  max-width: var(--max);
  margin: 0 auto 2rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: min(140px, 35%) 1fr;
  align-items: start;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 520px) {
  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .author-card img {
    margin: 0 auto;
  }
}

.author-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.author-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.author-card .role {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.cta-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-box {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cta-box h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.btn:hover,
.btn:focus {
  filter: brightness(1.08);
}

.affiliate-note {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  background: #fff;
  font-size: 0.9rem;
}

.site-footer__logo-link {
  display: inline-block;
  margin-bottom: 1rem;
  line-height: 0;
}

.site-footer__logo {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}

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

.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .breadcrumbs {
    max-width: 100%;
    font-size: 0.85rem;
  }
}

.breadcrumbs a {
  color: var(--accent);
}

.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;
}

.article-meta {
  margin: -0.35rem 0 1.35rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

.article-meta__author {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.article-meta__author:hover,
.article-meta__author:focus {
  text-decoration: underline;
}

.article-meta time {
  color: var(--muted);
}

/* ——— Index hero (background.webp + CTAs) ——— */
.hero-index {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: min(52vh, 26rem);
  background-color: #1a2520;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-index__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 28, 24, 0.5) 0%,
    rgba(20, 28, 24, 0.65) 100%
  );
  pointer-events: none;
}

.hero-index__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2.5rem 1.25rem 2.75rem;
  text-align: center;
}

.hero-index__note {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-index__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
}

.hero-index__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    filter 0.15s ease;
}

.hero-index__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-index__btn--primary:hover,
.hero-index__btn--primary:focus-visible {
  filter: brightness(1.08);
  outline: none;
  color: #fff;
}

.hero-index__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero-index__btn--ghost:hover,
.hero-index__btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
  color: #fff;
}

@media (min-width: 768px) {
  .hero-index {
    min-height: min(48vh, 30rem);
  }

  .hero-index__inner {
    padding-top: 3rem;
    padding-bottom: 3.25rem;
  }
}

/* Index: hero directly under sticky header (no main top padding) */
.main.main--flush-hero {
  padding-top: 0;
}

.scroll-top {
  position: fixed;
  z-index: 160;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  box-shadow:
    0 2px 10px rgba(46, 43, 41, 0.1),
    0 1px 2px rgba(46, 43, 41, 0.06);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  outline: none;
}

.scroll-top:focus-visible {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--accent);
}

/* ——— Tables (article + Google Doc export) ——— */
.article-body table,
.doc-content table {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(46, 43, 41, 0.04),
    0 4px 16px rgba(46, 43, 41, 0.06);
  table-layout: fixed;
}

.article-body thead,
.doc-content thead {
  background: linear-gradient(165deg, #1a5f4a 0%, #0f4d3c 55%, #1a5f4a 100%);
  color: #fff;
}

.article-body thead th,
.doc-content thead th {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  border-bottom: none;
  color: #fff !important;
}

.article-body thead th *,
.doc-content thead th *,
.article-body thead td *,
.doc-content thead td * {
  color: #fff !important;
}

.article-body th,
.article-body td,
.doc-content th,
.doc-content td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.article-body tr:last-child td,
.doc-content tr:last-child td {
  border-bottom: none;
}

.article-body tbody tr:nth-child(even),
.doc-content tbody tr:nth-child(even) {
  background: rgba(252, 250, 248, 0.85);
}

.article-body tbody tr:hover,
.doc-content tbody tr:hover {
  background: rgba(26, 95, 74, 0.06);
}

.article-body tbody tr:hover td,
.doc-content tbody tr:hover td {
  border-bottom-color: rgba(26, 95, 74, 0.12);
}

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

/* Tables without thead (single header row in tbody) */
.article-body table:not(:has(thead)) tr:first-child td,
.doc-content table:not(:has(thead)) tr:first-child td,
.article-body table:not(:has(thead)) tr:first-child th,
.doc-content table:not(:has(thead)) tr:first-child th {
  background: linear-gradient(165deg, #1a5f4a 0%, #0f4d3c 100%);
  color: #fff !important;
  font-weight: 600;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* Google Docs: first header row is often <td> with nested <span style="color:..."> */
.article-body table:not(:has(thead)) tr:first-child td *,
.doc-content table:not(:has(thead)) tr:first-child td *,
.article-body table:not(:has(thead)) tr:first-child th *,
.doc-content table:not(:has(thead)) tr:first-child th * {
  color: #fff !important;
}

.article-body table:not(:has(thead)) tr:first-child:hover td,
.doc-content table:not(:has(thead)) tr:first-child:hover td,
.article-body table:not(:has(thead)) tr:first-child:hover th,
.doc-content table:not(:has(thead)) tr:first-child:hover th {
  background: linear-gradient(165deg, #1a5f4a 0%, #0f4d3c 100%);
}

@media (max-width: 720px) {
  .article-body table,
  .doc-content table {
    font-size: 0.8125rem;
    border-radius: 10px;
    margin-left: 0;
    margin-right: 0;
  }

  .article-body th,
  .article-body td,
  .doc-content th,
  .doc-content td {
    padding: 0.55rem 0.5rem;
  }

  .doc-content h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    line-height: 1.2;
  }

  .doc-content h2 {
    font-size: 1.15rem;
  }

  .doc-content h3 {
    font-size: 1.02rem;
  }

  .doc-content ul,
  .doc-content ol {
    margin-left: 0;
    padding-left: 1.15rem;
  }
}

/* ——— Article main column (TOC is full-width bar above) ——— */
.article-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.article-main .article-body {
  margin: 0 auto;
  width: 100%;
  max-width: var(--max);
}

@media (max-width: 767px) {
  .article-main .article-body {
    max-width: 100%;
  }
}

/* ——— Article TOC: light bar under header (reference layout) ——— */
.toc-nav--bar {
  position: sticky;
  top: var(--header-sticky-h);
  z-index: 100;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  background: var(--toc-bar-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(46, 43, 41, 0.03);
}

.toc-nav__bar {
  display: flex;
  align-items: center;
  gap: 0.65rem 1rem;
  min-height: var(--toc-bar-h);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.toc-nav__bar-label {
  flex: 0 0 auto;
  max-width: 6.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  line-height: 1.2;
}

.toc-nav__scroll {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 0.2rem 0;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.toc-nav--bar .toc-nav__list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-nav--bar .toc-nav__item {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: none;
}

.toc-nav--bar .toc-nav__item:hover {
  background: transparent;
}

.toc-nav--bar .toc-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--toc-pill-border);
  border-radius: 999px;
  background: var(--toc-pill-bg);
  color: #000;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  max-width: min(75vw, 15rem);
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  scroll-snap-align: start;
}

.toc-nav--bar .toc-nav__link:hover,
.toc-nav--bar .toc-nav__link:focus-visible {
  border-color: var(--accent);
  color: #000;
  outline: none;
}

.toc-nav--bar .toc-nav__link:focus-visible {
  box-shadow: 0 0 0 2px rgba(26, 95, 74, 0.25);
}

.toc-nav__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 1.05rem;
  border-radius: 10px;
  background: var(--toc-cta-bg);
  color: var(--toc-cta-text);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(46, 43, 41, 0.12);
  transition: filter 0.15s ease;
  scroll-snap-align: end;
}

.toc-nav__cta:hover,
.toc-nav__cta:focus-visible {
  filter: brightness(1.08);
  outline: none;
  color: var(--toc-cta-text);
}

/* Targets sit on spans placed immediately before each h2 */
.section-anchor {
  display: block;
  height: 0;
  width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  scroll-margin-top: calc(var(--header-sticky-h) + var(--toc-bar-h) + 0.5rem);
  pointer-events: none;
}

.doc-content h2,
.article-body h2 {
  scroll-margin-top: calc(var(--header-sticky-h) + var(--toc-bar-h) + 0.5rem);
}

/* ——— Inline screenshots in article flow ——— */
.article-screen {
  margin: 1.35rem 0 1.75rem;
  padding: 0;
  max-width: 100%;
  min-width: 0;
}

.article-screen__link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow:
    0 2px 8px rgba(46, 43, 41, 0.06),
    0 12px 28px rgba(46, 43, 41, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  max-width: 100%;
}

.article-screen__link:hover,
.article-screen__link:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(26, 95, 74, 0.12),
    0 16px 40px rgba(46, 43, 41, 0.1);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.article-screen__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: middle;
}

.article-screen__cap {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

/* ——— Mid-article Play banner (background.webp + pill CTA) ——— */
.article-play-banner {
  position: relative;
  margin: 1.5rem 0 1.75rem;
  border-radius: 10px;
  overflow: hidden;
  background: #0d1012;
  min-height: clamp(10rem, 32vw, 15rem);
  box-shadow:
    0 2px 8px rgba(46, 43, 41, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.14);
}

.article-play-banner__bg {
  position: absolute;
  inset: -14px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(16px);
  transform: scale(1.08);
  pointer-events: none;
}

.article-play-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 14, 16, 0.25) 0%,
    rgba(8, 9, 10, 0.65) 100%
  );
  pointer-events: none;
}

.article-play-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(10rem, 32vw, 15rem);
  padding: 1.75rem 1.15rem;
}

.article-play-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #0a0a0a;
  background: linear-gradient(180deg, #ffe033 0%, #e6b800 100%);
  border-radius: 999px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.35) inset,
    0 4px 18px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
}

.article-play-banner__btn:hover,
.article-play-banner__btn:focus-visible {
  filter: brightness(1.06);
  outline: none;
  transform: translateY(-1px);
  color: #0a0a0a;
}

.article-play-banner__btn::after {
  content: '\25b6';
  display: inline-block;
  margin-left: 0.15rem;
  font-size: 0.65em;
  opacity: 0.85;
  transform: translateY(0.05em);
}

/* ——— Linked play_image.webp (sections without game screenshot) ——— */
.article-play-image {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  max-width: 100%;
}

.article-play-image__link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--line);
  box-shadow:
    0 2px 8px rgba(46, 43, 41, 0.08),
    0 10px 28px rgba(46, 43, 41, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.article-play-image__link:hover,
.article-play-image__link:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(26, 95, 74, 0.14),
    0 14px 36px rgba(46, 43, 41, 0.1);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.article-play-image__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ——— FAQ accordion (index) ——— */
.faq-block {
  margin: 0 0 2rem;
  padding: 0;
}

.faq-block__heading,
h2.faq-block__heading {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.faq-block__inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(46, 43, 41, 0.05);
  overflow: hidden;
}

.faq-item__summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--text);
  background: linear-gradient(180deg, rgba(26, 95, 74, 0.06) 0%, transparent 100%);
  transition: background 0.15s ease;
}

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

.faq-item__summary::marker {
  content: "";
}

.faq-item__summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--accent);
  margin-left: 0.75rem;
}

.faq-item[open] .faq-item__summary::after {
  content: "−";
}

.faq-item__summary:hover,
.faq-item__summary:focus-visible {
  background: rgba(26, 95, 74, 0.08);
  outline: none;
}

.faq-item__body {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.faq-item__body p {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.55;
}

.faq-item__body p:first-child {
  margin-top: 0.75rem;
}

/* ——— Legal & 404 ——— */
.legal-page h2 {
  margin-top: 1.5rem;
}

.page-404__hint {
  margin-top: 1.5rem;
  color: var(--muted);
}
