:root {
  --bg: #f8f4eb;
  --bg-soft: #fcfaf5;
  --surface: #ffffff;
  --surface-strong: #f1eadb;
  --text: #18302a;
  --text-muted: #516861;
  --brand: #0f5b45;
  --brand-strong: #0b4536;
  --accent: #d8b244;
  --border: #d8d9cf;
  --success: #2e7d55;
  --shadow: 0 12px 30px rgba(16, 52, 42, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --content-width: 1180px;
  --article-max-width: 72ch;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
}

a,
button,
[href] {
  color: var(--brand);
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button,
[href] {
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(252, 250, 245, 0.92);
  border-bottom: 1px solid rgba(15, 91, 69, 0.08);
}

.header-inner,
.section,
.footer-inner {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
}

.brand-mark {
  width: 54px;
  flex: 0 0 54px;
}

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--brand-strong);
}

.brand-copy span {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 2.8rem;
  min-height: 2.8rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(15, 91, 69, 0.18);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-strong);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.nav-toggle:hover {
  background: rgba(15, 91, 69, 0.08);
}

.nav-toggle:focus-visible,
.header-nav a:focus-visible {
  outline: 3px solid rgba(216, 178, 68, 0.55);
  outline-offset: 3px;
}

.nav-link,
.lang-link,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.nav-link:hover,
.lang-link:hover,
.button-link:hover {
  text-decoration: none;
}

.nav-link.is-current,
.lang-link.is-current {
  background: rgba(15, 91, 69, 0.1);
  border-color: rgba(15, 91, 69, 0.14);
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid rgba(15, 91, 69, 0.12);
  border-radius: 999px;
  background: var(--surface);
}

.button-link {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.button-link.secondary {
  background: transparent;
  color: var(--brand);
  border-color: rgba(15, 91, 69, 0.18);
  box-shadow: none;
}

.hero-caption {
  margin-top: 1rem;
}

.docs-language-section-header {
  margin-bottom: 1rem;
}

.docs-language-actions {
  margin-top: 0;
  margin-bottom: 1rem;
}

main {
  padding: 2rem 0 4rem;
}

body[data-page-type="article"] main {
  padding-bottom: 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 1rem;
}

body[data-page-type="language-hub"] main {
  padding-top: 1rem;
}

body[data-page-type="language-hub"] .hero {
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.75rem 0 0.25rem;
}

body[data-page-type="language-hub"] .hero > div {
  width: min(100%, 560px);
  margin: 0 auto;
}

body[data-page-type="language-hub"] .page-links {
  margin-top: 0.25rem;
}

.docs-hub-hero {
  padding: 1rem 0 0.25rem;
}

.docs-hub-copy {
  width: min(100%, 720px);
  margin: 0 auto;
  text-align: center;
}

.docs-hub-copy .lead {
  margin: 0 auto;
}

.nav-language-menu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: auto;
  min-width: 0;
  max-width: 13.5rem;
}

.nav-language-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.nav-language-select {
  width: min(100%, 13.5rem);
  min-width: 0;
  max-width: 13.5rem;
  min-height: 2.45rem;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1px solid rgba(15, 91, 69, 0.14);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-strong);
  box-sizing: border-box;
  appearance: auto;
}

@media (min-width: 561px) {
  .nav-language-menu {
    gap: 0;
  }

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

.language-hub-header {
  margin-bottom: 1rem;
}

.language-hub-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 1.9vw, 1.8rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 91, 69, 0.08);
  color: var(--brand-strong);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.85rem;
  line-height: 1.15;
}

h1,
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  color: var(--brand-strong);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.5vw, 2.7rem);
  color: var(--brand-strong);
}

h3 {
  font-size: 1.35rem;
  color: var(--brand-strong);
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.18rem;
  color: var(--text);
  max-width: 62ch;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.hero-visual,
.mock-frame,
.image-card {
  background: linear-gradient(180deg, #fffefb 0%, #f2ebdd 100%);
  border: 1px solid rgba(15, 91, 69, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-visual {
  padding: 1rem;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-xl) - 12px);
}

.section {
  padding: 2rem 0;
}

.section-header {
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.content-type-switcher {
  margin: -0.25rem 0 1.25rem;
}

.content-type-switcher__group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid rgba(15, 91, 69, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.content-type-switcher__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

.content-type-switcher__link:hover {
  color: var(--brand);
  text-decoration: none;
  background: rgba(15, 91, 69, 0.05);
}

.content-type-switcher__link.is-active,
.content-type-switcher__link[aria-current="page"] {
  background: rgba(15, 91, 69, 0.1);
  color: var(--brand-strong);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.2rem;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.feature-card,
.audience-card,
.callout,
.workflow-step,
.comparison-panel,
.checklist-panel,
.status-card,
.notice-panel,
.notice-inline,
.landing-hero-panel,
.landing-link-card,
.landing-gallery-card {
  background: var(--surface);
  border: 1px solid rgba(15, 91, 69, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.feature-card,
.audience-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-card,
.workflow-step,
.page-links a,
.landing-link-card,
.audience-card,
.status-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.workflow-step:hover,
.page-links a:hover,
.landing-link-card:hover,
.audience-card:hover,
.status-card:hover,
.feature-card:focus-within,
.workflow-step:focus-within,
.page-links a:focus-visible,
.landing-link-card:focus-visible,
.audience-card:focus-within,
.status-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(16, 52, 42, 0.12);
  border-color: rgba(15, 91, 69, 0.18);
}

.icon-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: rgba(15, 91, 69, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-badge img,
.icon-badge svg {
  width: 1.55rem;
  height: 1.55rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-step {
  position: relative;
  padding-top: 3.5rem;
}

.step-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.list-clean,
.list-check,
.list-definition {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-check li,
.list-clean li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.65rem;
}

.list-check li::before,
.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--success);
}

.list-definition li {
  margin-bottom: 0.85rem;
}

.list-definition strong {
  color: var(--brand-strong);
}

.callout {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(242, 235, 221, 0.7) 100%);
}

.callout.no-ai {
  border-left: 6px solid var(--brand);
}

.callout.future {
  border-left: 6px solid var(--accent);
}

.quote-panel {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(15, 91, 69, 0.06);
  border: 1px solid rgba(15, 91, 69, 0.08);
}

.notice-panel {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(242, 235, 221, 0.92) 100%);
  border-color: rgba(15, 91, 69, 0.14);
}

.notice-panel h2,
.notice-panel h3,
.notice-inline strong {
  margin-bottom: 0.7rem;
}

.notice-panel p:last-child,
.notice-inline p:last-child {
  margin-bottom: 0;
}

.notice-inline {
  padding: 0.95rem 1rem;
  background: rgba(255, 252, 246, 0.92);
  border-color: rgba(15, 91, 69, 0.12);
  box-shadow: none;
}

.status-grid,
.landing-link-grid,
.audience-grid,
.gallery-grid-public {
  display: grid;
  gap: 1rem;
}

.status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-link-grid,
.audience-grid,
.gallery-grid-public {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card {
  display: grid;
  gap: 0.65rem;
}

.status-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 91, 69, 0.08);
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.landing-hero-panel {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(242, 235, 221, 0.9) 100%);
  padding: 0.9rem;
}

.landing-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: inherit;
}

.landing-link-card h3,
.landing-link-card p,
.audience-card h3,
.audience-card p {
  margin: 0;
}

.landing-link-card .icon-badge,
.audience-card .icon-badge {
  margin-bottom: 0.2rem;
}

.landing-gallery-card {
  padding: 0.9rem;
}

.landing-gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 4px);
}

.landing-status-intro {
  max-width: 72ch;
}

.repo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.repo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 91, 69, 0.08);
  color: var(--brand-strong);
  font-weight: 600;
}

.repo-chip img {
  width: 1rem;
  height: 1rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 91, 69, 0.08);
  text-align: center;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--brand-strong);
  margin-bottom: 0.3rem;
}

.page-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.page-links a {
  display: block;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid rgba(15, 91, 69, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.page-links a:hover,
.page-links a:focus-visible,
.landing-link-card:hover,
.landing-link-card:focus-visible,
.audience-card:hover,
.audience-card:focus-visible {
  text-decoration: none;
}

.language-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.language-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 6.25rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid rgba(15, 91, 69, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.language-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(16, 52, 42, 0.12);
  border-color: rgba(15, 91, 69, 0.18);
}

.language-card-header strong {
  font-size: 1.05rem;
  color: var(--brand-strong);
}

.language-card-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.language-card-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(15, 91, 69, 0.2);
}

.language-card-links a:hover,
.language-card-links a:focus-visible {
  color: var(--brand-strong);
  text-decoration-color: var(--brand-strong);
}

.demo-launcher {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 560px;
  margin: 1rem auto 0;
  padding: 0.8rem 0.9rem;
  background: var(--surface);
  border: 1px solid rgba(15, 91, 69, 0.1);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(0, 68, 63, 0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.demo-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(0, 68, 63, 0.14);
  text-decoration: none;
}

.demo-launcher:focus-visible {
  outline: 4px solid #d8aa3a;
  outline-offset: 6px;
  text-decoration: none;
}

.demo-launcher-art {
  flex: 0 0 170px;
}

.demo-launcher-art svg {
  width: 100%;
  height: auto;
}

.demo-launcher-copy {
  min-width: 0;
}

.demo-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  margin-bottom: 0.45rem;
}

.demo-title-row h2 {
  margin: 0;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  color: var(--brand-strong);
}

.demo-launcher-copy p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--brand-strong);
  text-decoration: none;
}

a > p,
a:hover > p,
a:focus-visible > p {
  text-decoration: none;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: #00443f;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.site-footer {
  border-top: 1px solid rgba(15, 91, 69, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  padding: 2rem 0 3rem;
}

.footer-note {
  color: var(--text-muted);
}

.footer-microcopy {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.language-list,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.equivalent-language-list {
  gap: 0.5rem;
}

.footer-language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 91, 69, 0.12);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.footer-language-link.is-current {
  background: rgba(15, 91, 69, 0.1);
  border-color: rgba(15, 91, 69, 0.16);
}

.muted {
  color: var(--text-muted);
}

.caption {
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.print-only,
.site-print-header,
.site-print-footer,
.site-print-running-footer,
.site-print-endnote {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero,
  .footer-inner,
  .grid-3,
  .grid-4,
  .page-links,
  .workflow-grid,
   .stat-strip,
   .landing-link-grid,
   .audience-grid,
   .gallery-grid-public,
   .status-grid,
   .language-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero,
  .grid-2,
  .grid-3,
  .grid-4,
  .page-links,
  .workflow-grid,
  .stat-strip,
   .footer-inner,
   .landing-link-grid,
   .audience-grid,
   .gallery-grid-public,
   .status-grid,
   .language-card-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-top-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .header-nav {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    justify-content: flex-start;
  }

  .header-nav[hidden] {
    display: none !important;
  }

  .js-nav-ready .header-nav {
    display: none;
  }

  .js-nav-ready .header-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-top: 0.4rem;
    width: 100%;
    max-width: 100vw;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.65rem;
    border: 1px solid rgba(15, 91, 69, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    box-sizing: border-box;
  }

  .js-nav-ready .header-nav .nav-link {
    justify-content: flex-start;
    min-height: 2.75rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
  }

  .js-nav-ready .header-nav .nav-language-menu {
    margin-top: 0.1rem;
    min-width: 0;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(15, 91, 69, 0.08);
  }

  main {
    padding-top: 1rem;
  }

  .hero {
    padding-top: 1rem;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section,
  .footer-inner {
    width: min(var(--content-width), calc(100% - 1.1rem));
  }

  .brand-copy strong {
    font-size: 1.45rem;
  }

  .brand-link {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-copy span {
    overflow-wrap: anywhere;
  }

  .nav-link,
  .lang-link,
  .button-link {
    width: 100%;
  }

  .lang-switch,
  .nav-language-select {
    width: 100%;
    max-width: 100%;
  }

  .demo-launcher {
    align-items: flex-start;
    gap: 0.85rem;
    max-width: 100%;
    margin-top: 0.85rem;
    padding: 0.95rem;
    border-radius: 22px;
  }

  .demo-launcher-art {
    flex-basis: 150px;
  }
}

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

.content-page-header {
  margin-bottom: 1.9rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-muted);
  max-width: 36rem;
}

.blog-article h1 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  margin-bottom: 0.5rem;
}

.content-page-summary {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0.75rem 0 1.25rem;
  max-width: 42rem;
}

.content-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.content-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0;
  font-size: 0.8125rem;
}

.content-tags__label {
  color: var(--text-muted);
  font-weight: 600;
}

.content-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 91, 69, 0.08);
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

.content-header-divider {
  border: 0;
  border-top: 1px solid rgba(15, 91, 69, 0.12);
  margin: 1.5rem 0 2rem;
}

.blog-article .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 100%;
}

.blog-article h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.blog-article h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.blog-article p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.blog-article ol,
.blog-article ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.blog-article ol li,
.blog-article ul li {
  margin-bottom: 0.5rem;
}

.blog-article code {
  background: rgba(15, 91, 69, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
}

.blog-article figure {
  margin: 1.5rem 0;
}

.blog-figure img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-md) - 4px);
}

.blog-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.blog-article .quote-panel {
  margin: 1.5rem 0;
}

.blog-footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(15, 91, 69, 0.12);
  text-align: center;
}

.blog-footer-note p {
  font-size: 1.1rem;
  margin: 0;
}

.blog-index-link {
  margin-top: 2rem;
  text-align: center;
}

/* --- Blog article footer navigation --- */

.post-article-nav {
  max-width: var(--article-max-width);
  margin: 2.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 91, 69, 0.12);
}

.post-article-nav > * + * {
  margin-top: 1.5rem;
}

.post-article-nav .language-alternatives {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-bottom: 1rem;
}

.post-article-nav .related-content {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 91, 69, 0.12);
}

.language-alternatives {
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.language-alternatives h2 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--text-muted);
}

.related-content h2 {
  font-weight: 700;
}

.language-alternatives ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.language-alternatives ul li {
  margin-bottom: 0;
}

.language-alternatives a {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 91, 69, 0.08);
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--brand);
}

.language-alternatives a:hover {
  text-decoration: underline;
}

.related-content {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.related-content--index {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 91, 69, 0.12);
}

.recent-content-section {
  margin-top: 1.5rem;
}

.recent-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.recent-content-card {
  display: block;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(15, 91, 69, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(16, 52, 42, 0.06);
}

.recent-content-card:hover {
  border-color: rgba(15, 91, 69, 0.18);
  box-shadow: 0 12px 28px rgba(16, 52, 42, 0.1);
}

.recent-content-card__type {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 91, 69, 0.08);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.recent-content-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
  color: var(--brand-strong);
}

.recent-content-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

@media (min-width: 720px) {
  .recent-content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recent-content-grid--homepage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.related-content__title,
.related-section h2 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-muted);
}

.related-topic-nav {
  position: relative;
}

.topic-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 91, 69, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
}

.topic-pill-button {
  cursor: pointer;
}

.topic-pill-button.is-active,
.topic-pill-button[aria-expanded="true"] {
  background: rgba(15, 91, 69, 0.1);
  border-color: rgba(15, 91, 69, 0.2);
}

.topic-menu-layer {
  position: relative;
  margin-top: 0.65rem;
  min-height: 0;
}

.topic-menu {
  width: min(100%, 340px);
  padding: 0.45rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 91, 69, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(16, 52, 42, 0.12);
}

.topic-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
}

.topic-menu__meta {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.topic-menu a + a {
  margin-top: 0.15rem;
}

.topic-menu a:hover {
  color: var(--brand);
  background: rgba(15, 91, 69, 0.06);
}

@media (max-width: 999px) {
  .topic-menu {
    width: 100%;
  }
}

.topic-nav {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid rgba(15, 91, 69, 0.12);
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.topic-nav h2 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-muted);
}

.topic-nav .topic-group {
  margin-bottom: 0.5rem;
}

.topic-nav ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1rem;
}

.topic-nav ul li {
  margin-bottom: 0.15rem;
}

.topic-nav .topic-label {
  font-size: 0.85rem;
  margin: 0.75rem 0 0.25rem;
  color: var(--text-muted);
  font-weight: 600;
}

.topic-nav a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(15, 91, 69, 0.2);
}

.topic-nav a:hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}

.topic-index-grid {
  display: grid;
  gap: 1rem;
}

.topic-category {
  border: 1px solid rgba(15, 91, 69, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.2rem 1rem 1rem;
  box-shadow: var(--shadow);
}

.topic-category summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brand-strong);
  padding: 0.85rem 0 0.65rem;
}

.topic-category summary::-webkit-details-marker {
  display: none;
}

.topic-index-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-index-list li + li {
  margin-top: 0.55rem;
}

.topic-index-list a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 91, 69, 0.08);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.topic-index-list a:hover,
.topic-index-list a:focus-visible {
  background: rgba(15, 91, 69, 0.04);
  border-color: rgba(15, 91, 69, 0.18);
  text-decoration: none;
}

.topic-index-empty {
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

@media (max-width: 700px) {
  .site-footer {
    padding-block: 0;
  }

  .footer-inner {
    gap: 1rem;
    padding: 1rem 0 1.5rem;
  }

  .post-article-nav {
    margin-top: 1rem;
  }

  .post-article-nav > * + * {
    margin-top: 0.75rem;
  }

  .post-article-nav .related-content {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .footer-links {
    gap: 0.4rem 0.75rem;
  }

  .footer-links a {
    display: inline-flex;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0.25rem 0.4rem;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: left;
    border: none;
    border-radius: 0;
    background: none;
    font-weight: 400;
  }

  .language-list {
    gap: 0.4rem;
  }

  .language-list a,
  .footer-language-link {
    display: inline-flex;
    min-height: 0;
    margin: 0;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    line-height: 1.2;
  }
}

@media (max-width: 460px) {
  .demo-launcher {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-launcher-art {
    flex-basis: auto;
    width: min(100%, 220px);
    margin: 0 auto;
  }

  .demo-title-row {
    gap: 0.5rem;
  }
}
