/* ============================================================
   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 rochstandard.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: 880px;
  --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 #DCD9D2;
}

.site-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 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;
  position: relative;
}

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

.site-nav__logo-img--gold {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.site-nav__logo:hover .site-nav__logo-img--gold {
  opacity: 1;
}

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

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

.site-nav__links a {
  color: var(--ink);
  font-size: 0.6875rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  padding: 6px 0;
}

.site-nav__links a:hover {
  color: var(--gold-deep);
  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: 10px;
  flex-shrink: 0;
}

.site-nav__social-link {
  display: flex;
  align-items: center;
  color: var(--ink);
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav__social-link:hover {
  color: var(--gold-deep);
}

.site-nav__social-link svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Optical weight balance: the X glyph reads thin, LinkedIn's square reads heavy */
.site-nav__social-link:nth-child(3) svg {
  width: 17px;
  height: 17px;
}

.site-nav__social-link:nth-child(4) svg {
  width: 15px;
  height: 15px;
}

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

/* Landing hero: certification seal seated beside the text */
.page-hero__inner--landing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
}

.page-hero__inner--landing .page-hero__text {
  flex: 1 1 auto;
  min-width: 0;
}

.page-hero__seal {
  flex: 0 0 auto;
  width: clamp(132px, 16vw, 186px);
  height: auto;
  display: block;
}

@media (max-width: 760px) {
  .page-hero__inner--landing {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .page-hero__seal {
    width: 116px;
  }
}

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

/* Headings inside a plain .article-body (privacy, terms and other legal pages) */
.article-body h2 {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 1.75em 0 0.7em 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.article-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.4em 0 0.5em 0;
}

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

/* ===== ARTICLE LISTS AND TABLES (used by the privacy and legal pages) ===== */
.article-body ul {
  margin: 0 0 1.5em 0;
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: 0.5em;
  text-wrap: pretty;
}

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

.article-body .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em 0;
  font-size: 1rem;
}

.article-body .data-table th,
.article-body .data-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.article-body .data-table th {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
}

/* ===== 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: 40px 44px;
  background: var(--panel);
  border-radius: 8px;
  text-align: center;
}

.founder-quote__text {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 20px 0;
  text-align: center;
  text-wrap: balance;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.founder-quote__attribution a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.founder-quote__attribution a:hover { color: var(--gold-deep); }

/* ===== 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(280px, 1fr));
  gap: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.index-item {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 20px 22px;
  display: block;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.index-item:hover {
  border-color: var(--gold);
  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: 16px;
  padding-bottom: 0;
  border-bottom: 0;
}

/* ===== LANDING PAGE ===== */
.landing-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 56px auto 8px;
  width: min(var(--max), calc(100vw - 2 * var(--pad)));
  margin-left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.landing-card {
  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: balance;
}

/* ===== 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);
  text-wrap: balance;
  margin: 0;
}

/* ===== OFFICES ===== */
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 8px 0 24px;
}

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

.office__addr {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 10px 0;
}

.office__tel {
  font-size: 0.9375rem;
  color: var(--gold-deep);
  text-decoration: none;
}

.office__tel:hover { color: var(--gold); }

.office-company {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--mute);
  margin: 0;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  margin-top: 24px;
  max-width: 680px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 18px;
  align-items: start;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mute);
  margin-bottom: 6px;
}

.contact-form__opt {
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--mute-soft);
  margin-left: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background-color: #FFFFFF;
  border: 1px solid rgba(10, 10, 10, 0.14);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input.capitalize { text-transform: capitalize; }

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--mute);
  opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 16px 4px rgba(179, 149, 26, 0.35);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}

.contact-form__consent {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 6px;
}

.contact-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--mute);
  cursor: pointer;
}

.contact-form__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 1px 0 0 0;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.contact-form__check a { color: var(--gold-deep); }
.contact-form__check a:hover { color: var(--gold); }

.contact-form__btn {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.contact-form__btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.contact-form__btn:disabled { opacity: 0.6; cursor: default; }

.contact-form__status {
  margin: 14px 0 0 0;
  font-size: 0.875rem;
  color: var(--mute);
}

.contact-form__status.is-error { color: #b23a2c; }
.contact-form__status.is-ok { color: #2d7a2d; }

@media (max-width: 640px) {
  .office-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-form__grid { grid-template-columns: 1fr; row-gap: 14px; }
}

/* ===== 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: 1440px;
  margin: 0 auto;
  padding: 56px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.site-footer__logo {
  flex: 0 1 440px;
  max-width: 440px;
}

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

.site-footer__about {
  margin: 18px 0 0 0;
  font-size: 0.875rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.65);
  text-wrap: balance;
  max-width: 440px;
}

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

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

.site-footer__col--newsletter {
  flex: 0 0 280px;
  min-width: 240px;
}

.site-footer__col-heading {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  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: var(--gold);
  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: 5px 0 0 5px;
  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-deep);
  border: 1px solid var(--gold-deep);
  border-radius: 0 5px 5px 0;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.site-footer__newsletter-btn:hover {
  background: #9C8113;
  border-color: #9C8113;
}

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

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

.site-footer__bottom-inner {
  max-width: 1440px;
  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: 9px;
}

.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: var(--gold);
}

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

.site-footer__lang a.is-current {
  opacity: 1;
  color: var(--gold);
  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: var(--gold);
}

/* ===== 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 {
    grid-template-columns: 1fr;
    width: auto;
    max-width: 520px;
    transform: none;
    margin: 40px auto 8px;
    gap: 16px;
  }

  .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;
    justify-content: flex-start;
    gap: 28px;
    padding: 40px var(--pad);
  }

  .site-footer__nav {
    gap: 28px 40px;
  }

  .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: 28px 24px;
  }

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

/* --- Balance running paragraph text site-wide so the last line fills out
   instead of stranding a few words (Guy 2026-05-23). Paragraph text ONLY:
   body prose and the hero subtitle. Deliberately NOT applied to anything inside
   a box (machine-readable blocks, example blocks, cards, index items) or to the
   founder quote box (.founder-quote__text), which its rotation script sizes. --- */
.article-body p,
.page-hero__subtitle { text-wrap: balance; }

/* Long-form pages (Terms, Privacy, the full Standard) have long paragraphs that
   exceed the browser's text-wrap: balance line cap, so balance falls back to plain
   wrapping and strands short last lines. Use pretty there: it optimises the last
   lines on long paragraphs. Marked with .article-wrap--legal on those templates. */
.article-wrap--legal .article-body p { text-wrap: pretty; }
