/* ============================================================
   Roch Dog Standards — standard.css
   Font: Figtree (everything, matching rochdog.com)
   Paragraph style: EBS-inspired — 18px, 1.75 line-height,
   text-wrap: pretty, generous measure, well-spaced sections
   ============================================================ */

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

/* ===== BASE ===== */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-wrap: pretty;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5em 0;
  line-height: 1.3;
  text-wrap: balance;
}

a {
  color: #B8860B;
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: #9f810f;
  text-decoration: underline;
}

/* ===== NAVIGATION ===== */
.site-nav {
  background: transparent;
  padding: 16px 24px 0;
  position: relative;
}

.site-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  background: #333;
  border-radius: 12px;
}

.site-nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav__logo-img {
  height: 28px;
  width: auto;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.site-nav__links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
  padding: 24px 4px;
}

.site-nav__links a:hover {
  color: #B8860B;
  text-decoration: none;
}

.site-nav__links a.is-active {
  color: #fff;
}

/* Nav social icons */
.site-nav__socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-nav__social-link {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.site-nav__social-link:hover {
  opacity: 1;
}

.site-nav__social-link img {
  display: block;
  filter: brightness(0) invert(1);
}

/* Mobile nav toggle */
.site-nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ===== PAGE SHELL ===== */
.page-main {
  flex: 1;
}

/* ===== PAGE HEADER (replaces dark hero) ===== */
.page-hero {
  background: #fff;
  padding: 48px 24px 0;
}

.page-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.page-hero__kicker {
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 12px;
}

.page-hero__title {
  font-family: 'Figtree', sans-serif;
  font-size: 2rem;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0 0 14px 0;
  text-wrap: balance;
}

.page-hero__subtitle {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: #666;
  margin: 0;
  text-wrap: pretty;
}

.page-hero__authors {
  font-family: 'Figtree', sans-serif;
  font-size: 0.9375rem;
  color: #999;
  margin: 8px 0 0 0;
  font-weight: 400;
}

/* ===== MACHINE-READABLE BLOCK ===== */
.roch-machine-block {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-left: 3px solid #B8860B;
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin-bottom: 40px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #444;
}

.roch-machine-block__label {
  font-family: 'Figtree', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 6px;
}

.roch-machine-block__text {
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
  margin: 0;
  text-wrap: pretty;
  max-width: 65ch;
}

/* ===== ARTICLE LAYOUT ===== */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}

/* ===== ARTICLE TYPOGRAPHY ===== */
.article-body {
  font-family: 'Figtree', sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 400;
  color: #333;
}

.article-body p {
  margin: 0 0 1.5em 0;
  text-wrap: pretty;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-section {
  margin-top: 48px;
}

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

.article-section h2 {
  font-family: 'Figtree', sans-serif;
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
  text-wrap: balance;
}

.article-section h3 {
  font-family: 'Figtree', sans-serif;
  font-size: 1.0625rem;
  color: #1a1a1a;
  margin-bottom: 10px;
  text-wrap: balance;
}

/* ===== Q&A ACCORDION ===== */
.qa-group {
  margin-top: 40px;
}

.qa-group:first-child {
  margin-top: 0;
}

.qa-group__heading {
  font-family: 'Figtree', sans-serif;
  font-size: 1.25rem;
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
  text-wrap: balance;
}

.qa-item {
  border-bottom: 1px solid #e5e5e5;
}

.qa-item summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  text-wrap: balance;
  user-select: none;
}

.qa-item summary::-webkit-details-marker { display: none; }

.qa-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: #B8860B;
  flex-shrink: 0;
  line-height: 1.4;
  transition: transform 0.2s ease;
}

.qa-item[open] summary::after {
  content: '\2212';
}

.qa-answer {
  padding: 0 0 20px 0;
}

@media (max-width: 640px) {
  .qa-group__heading {
    font-size: 1.125rem;
  }
  .qa-item summary {
    font-size: 1rem;
  }
}

/* ===== DEFINITION / REQUIREMENT BADGE ===== */
.doc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.doc-badge {
  font-family: 'Figtree', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9f810f;
  background: rgba(184,134,11,0.08);
  padding: 4px 10px;
  border-radius: 4px;
}

.doc-id {
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  color: #999;
}

/* ===== PAGE TITLE ===== */
.article-title {
  font-family: 'Figtree', sans-serif;
  font-size: 2rem;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0 0 28px 0;
  text-wrap: balance;
}

/* ===== COMPLIANT / NOT COMPLIANT BLOCKS ===== */
.example-block {
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.example-block--compliant {
  background: #f0faf0;
  border-left: 3px solid #2d7a2d;
  color: #1a3d1a;
}

.example-block--noncompliant {
  background: #fff5f5;
  border-left: 3px solid #c0392b;
  color: #3d1a1a;
}

.example-block__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.example-block--compliant .example-block__label { color: #2d7a2d; }
.example-block--noncompliant .example-block__label { color: #c0392b; }

/* ===== RELATED LINKS ===== */
.related-section {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}

.related-section h2 {
  font-family: 'Figtree', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 14px;
  border: none;
  padding: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-links li a {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 0.875rem;
  color: #B8860B;
  background: rgba(184,134,11,0.07);
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.related-links li a:hover {
  background: rgba(184,134,11,0.15);
  color: #9f810f;
  text-decoration: none;
}

/* ===== ARTICLE CTA ===== */
.article-cta {
  margin-top: 40px;
  padding: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.article-cta__btn {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 4px;
  border: 1.5px solid #B8860B;
  background: #fff;
  color: #B8860B;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
}

.article-cta__btn:hover {
  background: #B8860B;
  color: #fff;
  border-color: #B8860B;
  text-decoration: none;
}

/* ===== FOUNDER QUOTE ===== */
.founder-quote {
  margin: 48px 0;
  padding: 28px 28px 28px 24px;
  border-left: 3px solid #B8860B;
  background: #faf8f3;
  border-radius: 0 6px 6px 0;
}

.founder-quote__text {
  font-family: 'Figtree', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.founder-quote__attribution {
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #B8860B;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ===== VERSION LINE ===== */
.version-line {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  color: #999;
}

.version-line__publisher {
  font-weight: 600;
  color: #666;
}

.version-line a {
  color: #999;
  text-decoration: underline;
}

.version-line a:hover {
  color: #B8860B;
}

/* ===== INDEX PAGES ===== */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.index-item {
  background: #fff;
  padding: 20px 22px;
  display: block;
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
}

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

.index-item:nth-child(even) {
  border-right: none;
}

.index-item:last-child:nth-child(odd) {
  border-right: none;
  grid-column: 1 / -1;
}

.index-item:hover {
  background: #fffdf5;
  text-decoration: none;
}

.index-item__number {
  font-family: 'Figtree', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 4px;
}

.index-item__term {
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.index-item__short {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #666;
}

/* A-Z letter heading for definitions index */
.az-group {
  margin-top: 36px;
}

.az-group:first-child {
  margin-top: 0;
}

.az-letter {
  font-family: 'Figtree', sans-serif;
  font-size: 1.375rem;
  color: #B8860B;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0e8d0;
}

/* ===== LANDING PAGE ===== */
.landing-sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  width: 100vw;
  max-width: 1080px;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0 24px;
  box-sizing: border-box;
}

.landing-card {
  flex: 0 1 calc((1080px - 48px - 48px) / 3);
  min-width: 280px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 28px 24px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.landing-card:hover {
  border-color: #B8860B;
  box-shadow: 0 2px 12px rgba(184,134,11,0.1);
  text-decoration: none;
}

.landing-card__count {
  font-family: 'Figtree', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 8px;
}

.landing-card__title {
  font-family: 'Figtree', sans-serif;
  font-size: 1.125rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.landing-card__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #666;
  text-wrap: pretty;
}

/* ===== REQUIREMENTS LIST ===== */

.requirements-list {
  margin: 16px 0 20px 0;
  padding-left: 24px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #444;
}

.requirements-list li {
  margin-bottom: 6px;
  padding-left: 4px;
}

/* ===== AUDIENCE CARDS ===== */

.audience-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}

.audience-card {
  flex: 1 1 280px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px 22px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.audience-card:hover {
  border-color: #B8860B;
  box-shadow: 0 2px 12px rgba(184,134,11,0.1);
  text-decoration: none;
}

.audience-card__role {
  font-family: 'Figtree', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 10px;
}

.audience-card__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* ===== RESEARCH PAPERS (single-column library layout) ===== */

.research-intro {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.8;
  color: #444;
}

.research-credibility {
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 4px;
}

.research-credibility-links {
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  margin-bottom: 32px;
  padding-bottom: 0;
}

.research-credibility-links a {
  color: #B8860B;
  text-decoration: none;
  font-weight: 600;
}

.research-credibility-links a:hover {
  text-decoration: underline;
}

.research-section-title {
  font-family: 'Figtree', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.research-section-sub {
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  color: #999;
  margin-bottom: 32px;
}

.research-paper {
  padding: 32px 0;
  border-bottom: 1px solid #e5e5e5;
}

.research-paper:first-child {
  padding-top: 0;
}

.research-paper:last-child,
.research-paper:has(+ .version-line) {
  border-bottom: none;
  padding-bottom: 0;
}

.research-paper__code {
  font-family: 'Figtree', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 6px;
}

.research-paper__title {
  font-family: 'Figtree', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.35;
}

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

.research-paper__title a:hover {
  color: #B8860B;
}

.research-paper__author {
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  color: #999;
  margin-bottom: 12px;
}

.research-paper__abstract {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 12px;
  text-wrap: balance;
}

.research-paper__meta {
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 14px;
}

.research-paper__actions {
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
}

.research-paper__actions a {
  color: #B8860B;
  text-decoration: none;
  font-weight: 600;
}

.research-paper__actions a:hover {
  text-decoration: underline;
}

.research-paper__actions .sep {
  color: #ccc;
  margin: 0 10px;
}

.research-paper__cite {
  display: none;
  background: #fafaf8;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 16px 20px;
  margin-top: 12px;
  font-family: 'Figtree', monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #555;
  white-space: pre-wrap;
  word-break: break-word;
}

.research-paper__cite.is-open {
  display: block;
}

/* ===== RESEARCH PAPER DOWNLOAD BLOCK ===== */
.research-download {
  margin: 32px 0 40px;
  padding: 24px 0;
}

.research-download p {
  margin: 0;
}

.research-download__btn {
  display: inline-block;
  padding: 12px 24px;
  background: #B8860B;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Figtree', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
}

.research-download__btn:hover {
  background: #9a7209;
  text-decoration: none;
}

.research-download__meta {
  margin-left: 12px;
  font-size: 0.8125rem;
  color: #999;
  font-family: 'Figtree', sans-serif;
}

.research-download .research-download__cite {
  margin-top: 24px;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: #999;
  font-family: 'Figtree', sans-serif;
  white-space: nowrap;
}

/* Article listing (simple list layout) */
.article-listing {
  padding-bottom: 40px;
  border-bottom: 1px solid #e5e5e5;
}

.article-section.article-listing:has(+ .version-line) {
  padding-bottom: 0;
  border-bottom: none;
}

.article-listing h2 {
  margin-bottom: 4px;
  border-bottom: none;
  padding-bottom: 0;
}

.article-listing h2 a {
  color: #1a1a1a;
  text-decoration: none;
}

.article-listing h2 a:hover {
  color: #B8860B;
}

.article-listing__meta {
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  color: #999;
  margin-top: 12px;
}

.article-listing__meta a {
  color: #B8860B;
  font-weight: 600;
  text-decoration: none;
}

.article-listing__meta a:hover {
  text-decoration: underline;
}

/* ===== CRITERIA PAGE — REQUIREMENT BLOCK ===== */
.requirement-block {
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 40px;
}

.requirement-block__label {
  font-family: 'Figtree', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 8px;
}

.requirement-block__text {
  font-family: 'Figtree', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #fff;
  margin: 0;
  text-wrap: pretty;
}

/* ===== ASSESSED-VIA CHIP ===== */
.assessed-via {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  color: #666;
  background: #f5f5f5;
  padding: 5px 12px;
  border-radius: 4px;
  margin-top: 16px;
}

.assessed-via__label {
  font-weight: 600;
  color: #999;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  color: #999;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #B8860B;
  text-decoration: none;
}

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

.breadcrumb__sep {
  color: #ccc;
}

/* ===== ROCH INTERPRETATION (empty state) ===== */
.interpretation-empty {
  font-size: 0.875rem;
  color: #bbb;
  font-style: italic;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #3d3d3d;
  margin-top: auto;
  padding: 0;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  align-items: start;
  gap: 48px;
}

.site-footer__logo {
  align-self: center;
  flex-shrink: 0;
}

.site-footer__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.site-footer__col {
  min-width: 0;
  flex-shrink: 0;
}

.site-footer__inner > .site-footer__col:nth-child(2) {
  margin-left: auto;
}

.site-footer__col--newsletter {
  margin-left: auto;
  min-width: 260px;
}

.site-footer__col-heading {
  font-family: 'Figtree', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B8860B;
  display: block;
  margin-bottom: 14px;
}

.site-footer__col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col-links a {
  font-family: 'Figtree', sans-serif;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__col-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* Newsletter */
.site-footer__newsletter {
  margin: 0;
}

.site-footer__newsletter-row {
  display: flex;
  gap: 0;
}

.site-footer__newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 8px 14px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  color: #fff;
  outline: none;
  min-width: 0;
}

.site-footer__newsletter-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.site-footer__newsletter-input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
}

.site-footer__newsletter-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0 4px 4px 0;
  padding: 8px 20px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.site-footer__newsletter-btn:hover {
  background: rgba(255,255,255,0.25);
}

.site-footer__newsletter-note {
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin: 6px 0 0 0;
}

/* Footer bottom */
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
}

.site-footer__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__copy {
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.site-footer__lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-footer__lang a {
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: 0.04em;
}

.site-footer__lang a:hover {
  color: rgba(255,255,255,0.6);
}

.site-footer__lang-sep {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.15);
}

.site-footer__lang a.is-current {
  opacity: 1;
  color: rgba(255,255,255,1);
  font-weight: 600;
}

.translation-notice {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.4);
  text-align: center;
  margin: 2rem auto 0;
  max-width: 640px;
}

.site-footer__bottom-links {
  display: flex;
  gap: 28px;
}

.site-footer__bottom-links a {
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__bottom-links a:hover {
  color: rgba(255,255,255,0.85);
}

/* ===== INLINE TERM LINKS (auto-linked) ===== */
a.term-link {
  color: #9f810f;
  text-decoration: underline;
  text-decoration-color: rgba(159,129,15,0.35);
  text-underline-offset: 2px;
}

a.term-link:hover {
  color: #B8860B;
  text-decoration-color: #B8860B;
}

/* ===== UTILITY ===== */
.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;
}

/* ===== RESPONSIVE ===== */

/* --- Tablet landscape --- */
@media (max-width: 900px) {
  .landing-sections {
    max-width: 480px;
    width: auto;
    transform: none;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }

  .landing-card {
    flex: 1 1 100%;
  }

  .audience-cards {
    flex-direction: column;
  }

  .audience-card {
    flex: 1 1 100%;
  }

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

/* --- Tablet portrait --- */
@media (max-width: 768px) {
  .site-nav {
    padding: 12px 16px 0;
  }

  .site-nav__inner {
    padding: 0 20px;
    height: 60px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 24px;
  }

  .site-footer__inner > .site-footer__col:nth-child(2) {
    margin-left: 0;
  }

  .site-footer__col--newsletter {
    margin-left: 0;
  }

  .site-footer__col--newsletter {
    min-width: 0;
    width: 100%;
  }

  .site-footer__bottom-inner {
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  /* Nav: collapse to hamburger */
  .site-nav__menu {
    display: none;
  }

  .site-nav__menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #333;
    padding: 16px 24px 20px;
    z-index: 100;
    border-radius: 0 0 12px 12px;
    gap: 16px;
  }

  .site-nav__menu.is-open .site-nav__links {
    flex-direction: column;
    gap: 12px;
  }

  .site-nav__mobile-toggle {
    display: block;
    margin-left: auto;
  }

  /* Content */
  .page-hero {
    padding: 28px 20px 0;
  }

  .page-hero__title {
    font-size: 1.5rem;
  }

  .page-hero__subtitle {
    font-size: 1.0625rem;
  }

  .article-wrap {
    padding: 32px 20px 52px;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.6;
  }

  .article-body p {
    max-width: none;
  }

  .article-section {
    margin-top: 36px;
  }

  .article-section h2 {
    font-size: 1.125rem;
  }

  /* Machine block */
  .roch-machine-block {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

  .roch-machine-block__text {
    font-size: 0.9375rem;
    max-width: none;
  }

  /* Requirement block */
  .requirement-block {
    padding: 18px 20px;
  }

  .requirement-block__text {
    font-size: 1rem;
  }

  /* Example blocks */
  .example-block {
    padding: 14px 16px;
  }

  /* Founder quote */
  .founder-quote {
    margin: 36px 0;
    padding: 20px 20px 20px 18px;
  }

  .founder-quote__text {
    font-size: 1rem;
  }

  /* Article CTA */
  .article-cta {
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
    padding: 16px 0 0;
  }

  .article-cta__btn {
    font-size: 0.8125rem;
    padding: 9px 22px;
    width: auto;
    text-align: center;
  }

  /* Version line */
  .version-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.75rem;
  }

  /* Related links */
  .related-section {
    margin-top: 36px;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.75rem;
    margin-bottom: 20px;
  }

  /* Doc meta */
  .doc-meta {
    margin-bottom: 20px;
  }

  /* Footer */
  .site-footer__logo-img {
    height: 30px;
  }

  .site-footer__contact-row {
    flex-direction: column;
    gap: 8px;
  }

  .site-footer__newsletter-row {
    flex-direction: column;
    gap: 8px;
  }

  .site-footer__newsletter-input {
    border-right: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
  }

  .site-footer__newsletter-btn {
    border-radius: 4px;
  }
}

/* --- Small mobile --- */
@media (max-width: 400px) {
  .article-title {
    font-size: 1.25rem;
  }

  .page-hero__title {
    font-size: 1.25rem;
  }

  .site-nav__inner {
    padding: 0 16px;
  }

  .landing-card {
    padding: 22px 20px;
  }

  .index-item {
    padding: 16px 18px;
  }
}
