/* ============================================================
   Roch Standard — standard.css
   Design system: Diamond Paws editorial (warm paper, ink,
   Satoshi, light oversized display type, uppercase tracked
   eyebrows, gold used sparingly, hairline rules, flat hovers).
   Re-skin of standards.rochdog.com. Same markup, new paint.
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  --ink: #0A0A0A;
  --ink-soft: #1F1E1C;
  --body: #2C2A26;
  --paper: #F4F2EC;
  --panel: #FBFAF6;
  --line: #1F1E1C;
  --line-soft: #C9C6BF;
  --mute: #807D77;
  --mute-soft: #A8A59E;
  --gold: #B3951A;
  --gold-deep: #8F760F;
  --gold-tint: rgba(179, 149, 26, 0.08);
  --gold-tint-strong: rgba(179, 149, 26, 0.16);
  --dark: linear-gradient(180deg, #1A1A1A 0%, #0E0E0E 100%);
  --max: 1200px;
  --measure: 760px;
  --pad: clamp(20px, 5vw, 64px);
  --sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

/* ===== BASE ===== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -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: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.5em 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: var(--gold-deep);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== NAVIGATION (paper bar, hairline rule, dark logo) ===== */
.site-nav {
  background: var(--paper);
  padding: 0;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}

.site-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--pad);
  height: auto;
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 0;
}

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

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

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

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

.site-nav__links a {
  color: var(--ink);
  font-size: 0.75rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
  padding: 6px 0;
}

.site-nav__links a:hover {
  color: var(--gold);
  text-decoration: none;
}

.site-nav__links a.is-active {
  color: var(--gold-deep);
}

/* Nav social icons (inked for the light bar) */
.site-nav__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-nav__social-link {
  display: flex;
  align-items: center;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

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

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

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

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

/* ===== PAGE HEADER ===== */
.page-hero {
  background: var(--paper);
  padding: clamp(48px, 8vw, 96px) var(--pad) 0;
}

.page-hero__inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.page-hero__kicker {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 20px;
}

.page-hero__title {
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 20px 0;
  text-wrap: balance;
}

.page-hero__subtitle {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

.page-hero__authors {
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--mute);
  margin: 10px 0 0 0;
  font-weight: 400;
}

/* ===== MACHINE-READABLE BLOCK ===== */
.roch-machine-block {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin-bottom: 44px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.roch-machine-block__label {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}

.roch-machine-block__text {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
  max-width: 65ch;
}

/* ===== ARTICLE LAYOUT ===== */
.article-wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) var(--pad) clamp(64px, 9vw, 100px);
}

/* ===== ARTICLE TYPOGRAPHY ===== */
.article-body {
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--body);
}

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

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

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

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

.article-section h2 {
  font-family: var(--sans);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  text-wrap: balance;
}

.article-section h3 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  text-wrap: balance;
}

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

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

.qa-group__heading {
  font-family: var(--sans);
  font-size: 1.375rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  text-wrap: balance;
}

.qa-item {
  border-bottom: 1px solid var(--line-soft);
}

.qa-item summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  text-wrap: balance;
  user-select: none;
}

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

.qa-item summary::after {
  content: '+';
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1.2;
  transition: transform 0.2s ease;
}

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

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

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

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

.doc-badge {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-tint);
  padding: 5px 11px;
  border-radius: 999px;
}

.doc-id {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}

/* ===== PAGE TITLE ===== */
.article-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: var(--ink);
  margin: 0 0 32px 0;
  text-wrap: balance;
}

/* ===== COMPLIANT / NOT COMPLIANT BLOCKS ===== */
.example-block {
  padding: 18px 22px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.6;
  border: 1px solid var(--line-soft);
}

.example-block--compliant {
  background: rgba(45, 122, 45, 0.05);
  border-left: 2px solid #2d7a2d;
  color: #1f3d1f;
}

.example-block--noncompliant {
  background: rgba(192, 57, 43, 0.05);
  border-left: 2px solid #b23a2c;
  color: #3d1f1a;
}

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

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

/* ===== RELATED LINKS ===== */
.related-section {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}

.related-section h2 {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
  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: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-soft);
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-links li a:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  text-decoration: none;
}

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

.article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.article-cta__btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  text-decoration: none;
}

.article-cta__btn--ghost {
  background: transparent;
  color: var(--ink);
}

.article-cta__btn--ghost:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ===== FOUNDER QUOTE ===== */
.founder-quote {
  margin: 56px 0;
  padding: 32px 32px 32px 28px;
  border-left: 2px solid var(--gold);
  background: var(--panel);
  border-radius: 0 8px 8px 0;
}

.founder-quote__text {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 14px 0;
}

.founder-quote__attribution {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}

/* ===== VERSION LINE ===== */
.version-line {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--mute);
}

.version-line__publisher {
  font-weight: 600;
  color: var(--ink-soft);
}

.version-line a {
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.version-line a:hover {
  color: var(--gold-deep);
}

/* ===== INDEX PAGES (hairline grid, paper cells) ===== */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}

.index-item {
  background: var(--paper);
  padding: 22px 24px;
  display: block;
  text-decoration: none;
  transition: background 0.2s ease;
}

.index-item:hover {
  background: var(--panel);
  text-decoration: none;
}

.index-item__number {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.index-item__term {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}

.index-item__short {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mute);
}

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

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

.az-letter {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

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

.landing-card {
  flex: 0 1 calc((1080px - 48px - 48px) / 3);
  min-width: 280px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 32px 28px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.landing-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  text-decoration: none;
}

.landing-card__count {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}

.landing-card__title {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}

.landing-card__desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--mute);
  text-wrap: pretty;
}

/* ===== REQUIREMENTS LIST ===== */
.requirements-list {
  margin: 18px 0 22px 0;
  padding-left: 24px;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

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

.requirements-list li::marker {
  color: var(--gold);
}

/* ===== AUDIENCE CARDS ===== */
.audience-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.audience-card {
  flex: 1 1 280px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 26px 24px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.audience-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  text-decoration: none;
}

.audience-card__role {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 12px;
}

.audience-card__desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--mute);
  margin: 0;
}

/* ===== RESEARCH PAPERS (library layout) ===== */
.research-intro {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.research-credibility {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--mute);
  margin-bottom: 4px;
}

.research-credibility-links {
  font-family: var(--sans);
  font-size: 0.8125rem;
  margin-bottom: 36px;
  padding-bottom: 0;
}

.research-credibility-links a {
  color: var(--gold-deep);
  text-decoration: none;
  font-weight: 600;
}

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

.research-section-title {
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.research-section-sub {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--mute);
  margin-bottom: 36px;
}

.research-paper {
  padding: 36px 0;
  border-bottom: 1px solid var(--line-soft);
}

.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: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

.research-paper__title {
  font-family: var(--sans);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.research-paper__title a { color: inherit; text-decoration: none; }
.research-paper__title a:hover { color: var(--gold-deep); }

.research-paper__author {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--mute);
  margin-bottom: 14px;
}

.research-paper__abstract {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 14px;
  text-wrap: pretty;
}

.research-paper__meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--mute-soft);
  margin-bottom: 16px;
}

.research-paper__actions {
  font-family: var(--sans);
  font-size: 0.8125rem;
}

.research-paper__actions a {
  color: var(--gold-deep);
  text-decoration: none;
  font-weight: 600;
}

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

.research-paper__actions .sep {
  color: var(--line-soft);
  margin: 0 10px;
}

.research-paper__cite {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

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

/* ===== RESEARCH PAPER DOWNLOAD BLOCK ===== */
.research-download {
  margin: 36px 0 44px;
  padding: 28px 0;
}

.research-download p { margin: 0; }

.research-download__btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.research-download__btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  text-decoration: none;
}

.research-download__meta {
  margin-left: 14px;
  font-size: 0.8125rem;
  color: var(--mute);
  font-family: var(--sans);
}

.research-download .research-download__cite {
  margin-top: 24px;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--mute);
  font-family: var(--sans);
  white-space: nowrap;
}

/* Article listing (simple list layout) */
.article-listing {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-soft);
}

.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;
  font-weight: 500;
}

.article-listing h2 a {
  color: var(--ink);
  text-decoration: none;
}

.article-listing h2 a:hover { color: var(--gold-deep); }

.article-listing__meta {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--mute);
  margin-top: 12px;
}

.article-listing__meta a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
}

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

/* ===== CRITERIA PAGE — REQUIREMENT BLOCK (dark callout) ===== */
.requirement-block {
  background: var(--dark);
  color: #fff;
  border-radius: 10px;
  padding: 26px 30px;
  margin-bottom: 44px;
}

.requirement-block__label {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.requirement-block__text {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  color: #fff;
  margin: 0;
  text-wrap: pretty;
}

/* ===== ASSESSED-VIA CHIP ===== */
.assessed-via {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-top: 18px;
}

.assessed-via__label {
  font-weight: 700;
  color: var(--mute);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--mute);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

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

.breadcrumb__sep { color: var(--mute-soft); }

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

/* ===== FOOTER (dark gradient, matches Diamond Paws) ===== */
.site-footer {
  background: var(--dark);
  color: #fff;
  margin-top: auto;
  padding: 0;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--pad);
  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: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

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

.site-footer__col-links a {
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.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.06);
  border: 1px solid rgba(255,255,255,0.22);
  border-right: none;
  border-radius: 999px 0 0 999px;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: #fff;
  outline: none;
  min-width: 0;
}

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

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

.site-footer__newsletter-btn {
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 0 999px 999px 0;
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.site-footer__newsletter-btn:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.site-footer__newsletter-note {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin: 8px 0 0 0;
}

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

.site-footer__bottom-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__copy {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

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

.site-footer__lang a {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.04em;
}

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

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

.site-footer__lang a.is-current {
  opacity: 1;
  color: #fff;
  font-weight: 600;
}

.translation-notice {
  font-size: 0.75rem;
  color: var(--mute);
  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: var(--sans);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ===== INLINE TERM LINKS (auto-linked) ===== */
a.term-link {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-color: rgba(143, 118, 15, 0.35);
  text-underline-offset: 2px;
}

a.term-link:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ===== 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;
    gap: 16px;
  }

  .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__inner {
    padding: 16px var(--pad);
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 40px var(--pad);
  }

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

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

  .site-footer__bottom-inner {
    padding: 16px var(--pad);
    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: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    padding: 16px var(--pad) 22px;
    z-index: 100;
    gap: 16px;
  }

  .site-nav__menu.is-open .site-nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
  }

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

  /* Content */
  .page-hero { padding: 36px var(--pad) 0; }

  .article-wrap { padding: 36px var(--pad) 56px; }

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

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

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

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

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

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

  /* Requirement block */
  .requirement-block { padding: 20px 22px; }
  .requirement-block__text { font-size: 1rem; }

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

  /* Founder quote */
  .founder-quote {
    margin: 40px 0;
    padding: 24px 22px 24px 20px;
  }

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

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

  .article-cta__btn { width: auto; }

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

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

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

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

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

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

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

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

/* --- Small mobile --- */
@media (max-width: 400px) {
  .article-title { font-size: 1.75rem; }
  .page-hero__title { font-size: 1.75rem; }
  .landing-card { padding: 26px 22px; }
  .index-item { padding: 18px 20px; }
}
