/* ==========================================================================
   iDharma Verification Methodology — Stylesheet
   Version 0.1 · May 2026
   ========================================================================== */

:root {
  --primary: #E65425;
  --primary-dark: #c75b35;
  --cream: #fff4f0;
  --tint: #FFE6E1;
  --ink: #1c1d1f;
  --muted: #838484;
  --rule: #e7e4e0;
  --rule-soft: #f1eeeb;
  --success: #1d9e75;
  --verified-blue: #185FA5;
  --gold: #b8893a;
  --amber: #c98a14;
  --silver: #9aa0a6;

  --font-display: 'Poetsen One', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-card: 12px;
  --radius-btn: 6px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(28, 29, 31, 0.04), 0 1px 1px rgba(28, 29, 31, 0.03);
  --shadow-md: 0 2px 8px rgba(28, 29, 31, 0.05), 0 1px 2px rgba(28, 29, 31, 0.03);

  --container-max: 1240px;
  --content-max: 760px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--verified-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
}

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

/* ---------- Top utility bar ---------- */
.util-bar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 10px 0;
  letter-spacing: .01em;
}
.util-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; opacity: .85; }
.util-bar a:hover { opacity: 1; color: var(--cream); }
.util-bar .dot { opacity: .4; margin: 0 .5rem; }

/* ---------- Site header (lightweight) ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255,255,255,.92);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 22px;
  color: var(--ink);
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--primary); color: #fff;
  font-family: Georgia, serif; font-weight: 700; font-size: 20px;
  line-height: 1;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }
.site-nav .nav-cta {
  background: var(--ink); color: #fff;
  padding: 9px 16px; border-radius: var(--radius-btn);
  font-size: 14px;
}
.site-nav .nav-cta:hover { background: var(--primary); color: #fff; }
@media (max-width: 768px) {
  .site-nav { display: none; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  font-size: 13px;
  background: #fff;
}
.breadcrumb-bar nav { color: var(--muted); }
.breadcrumb-bar a { color: var(--muted); }
.breadcrumb-bar a:hover { color: var(--primary); }
.breadcrumb-bar .sep { margin: 0 .5rem; opacity: .5; }
.breadcrumb-bar .current { color: var(--ink); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(230, 84, 37, .10), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #ffffff 100%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; }
}

.doc-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--tint);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.doc-eyebrow .ti { font-size: 14px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 18ch;
}
.hero .subhead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: #3a3b3d;
  max-width: 56ch;
  margin: 0 0 28px;
  font-weight: 400;
}
.hero .meta-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  margin: 28px 0 32px;
  letter-spacing: .01em;
}
.hero .meta-line .pipe { opacity: .35; margin: 0 .6rem; }
.hero .meta-line strong { color: var(--ink); font-weight: 600; }

/* hero side panel: open standard card */
.standard-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.standard-card .cc-icons {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff;
  padding: 6px 10px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  margin-bottom: 14px;
}
.standard-card .cc-icons .glyph {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #fff;
  font-family: Georgia, serif; font-style: italic;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.standard-card h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 16px; margin: 0 0 8px; letter-spacing: 0;
}
.standard-card p {
  font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.55;
}
.standard-card .doc-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.standard-card .stat-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
}
.standard-card .stat-val {
  font-family: var(--font-display); font-size: 22px; color: var(--ink);
  line-height: 1.1; margin-top: 2px;
}

/* hero CTAs */
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  letter-spacing: .005em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; box-shadow: 0 6px 16px rgba(230, 84, 37, .25); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); padding: 10px 0; }
.btn-ghost:hover { color: var(--primary); }
.btn .ti { font-size: 18px; }

/* ---------- Main layout (TOC + content) ---------- */
.doc-main {
  padding: 56px 0 80px;
  background: #fff;
}
.doc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 992px) {
  .doc-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; }
}

/* ---------- TOC ---------- */
.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  font-size: 14px;
  padding-right: 8px;
}
.toc-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc a {
  display: block;
  padding: 8px 12px 8px 38px;
  color: var(--muted);
  border-left: 2px solid transparent;
  position: relative;
  line-height: 1.35;
  border-radius: 0 6px 6px 0;
  transition: all .15s ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 10px; top: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--rule);
  font-weight: 600;
}
.toc a:hover {
  color: var(--ink); text-decoration: none; background: var(--cream);
}
.toc a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--cream);
  font-weight: 600;
}
.toc a.active::before { color: var(--primary); }

/* mobile TOC */
.toc-mobile {
  display: none;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  margin-bottom: 32px;
}
.toc-mobile summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--muted);
}
.toc-mobile[open] summary::after { content: "−"; }
.toc-mobile .toc-mobile-inner {
  border-top: 1px solid var(--rule);
  padding: 8px 0 10px;
}
.toc-mobile ol { list-style: none; margin: 0; padding: 0; counter-reset: tocm; }
.toc-mobile li { counter-increment: tocm; }
.toc-mobile a {
  display: block; padding: 10px 18px 10px 50px; color: var(--ink); position: relative; font-size: 14px;
}
.toc-mobile a::before {
  content: counter(tocm, decimal-leading-zero);
  position: absolute; left: 18px; top: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
@media (max-width: 991px) {
  .toc { display: none; }
  .toc-mobile { display: block; }
}

/* ---------- Article content ---------- */
.doc-content { max-width: 820px; }
.doc-content section {
  scroll-margin-top: 110px;
  padding: 40px 0;
  border-top: 1px solid var(--rule-soft);
}
.doc-content section:first-of-type { border-top: none; padding-top: 0; }
.section-num {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.doc-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  margin: 0 0 20px;
  line-height: 1.15;
}
.doc-content h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 18px; letter-spacing: 0;
  margin: 28px 0 10px;
  color: var(--ink);
}
.doc-content p {
  font-size: 17px; line-height: 1.65; color: #2a2b2d; margin: 0 0 16px;
  text-wrap: pretty;
}
.doc-content ul, .doc-content ol {
  padding-left: 22px; margin: 12px 0 20px;
}
.doc-content li {
  margin-bottom: 8px; line-height: 1.6;
}
.doc-content li strong { font-weight: 700; color: var(--ink); }
.doc-content .lede { font-size: 19px; color: var(--ink); }

/* ---------- TL;DR summary block ---------- */
.tldr-summary {
  background: var(--cream);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 24px 28px;
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.tldr-summary .tldr-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary); font-weight: 700;
  margin-bottom: 10px;
}
.tldr-summary p { font-size: 17px; line-height: 1.7; color: var(--ink); margin: 0; }

/* ---------- Tier badges ---------- */
.tier-row {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin: 28px 0 8px;
}
@media (min-width: 768px) {
  .tier-row { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.tier {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tier:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tier .tier-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 13px;
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.tier .ti { font-size: 16px; }
.tier h4 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px; margin: 0 0 6px; color: var(--ink);
}
.tier .tier-yrs {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); letter-spacing: .04em;
  margin-bottom: 12px;
}
.tier p { font-size: 14px; color: #444; line-height: 1.5; margin: 0; }

/* tier color variants */
.tier-apprentice .tier-badge { background: #f0f1f2; color: #4a4d51; }
.tier-apprentice { border-top: 3px solid var(--silver); }

.tier-verified .tier-badge { background: var(--tint); color: var(--primary-dark); }
.tier-verified { border-top: 3px solid var(--primary); background: linear-gradient(180deg, #fffaf8 0%, #fff 60%); }
.tier-verified::after {
  content: "STANDARD";
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  color: var(--primary); font-weight: 700;
}

.tier-senior .tier-badge { background: #fbf3df; color: #7a5b18; }
.tier-senior { border-top: 3px solid var(--gold); }

/* ---------- Criteria table ---------- */
.spec-table-wrap {
  margin: 24px 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.spec-table {
  width: 100%; border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
}
.spec-table thead {
  background: var(--ink); color: #fff;
}
.spec-table thead th {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; text-align: left;
  padding: 14px 16px;
}
.spec-table thead th:first-child { width: 50px; text-align: center; }
.spec-table tbody td {
  padding: 18px 16px;
  border-top: 1px solid var(--rule);
  vertical-align: top; line-height: 1.55;
}
.spec-table tbody tr:first-child td { border-top: none; }
.spec-table .num-cell {
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px; color: var(--primary);
  width: 50px;
}
.spec-table .criterion {
  font-weight: 700; color: var(--ink); width: 22%;
}
.spec-table tbody tr:hover { background: var(--cream); }

.table-footnote {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--ink);
  background: var(--ink); color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-btn);
  margin-top: 8px;
  letter-spacing: .01em;
}
.table-footnote .ti { color: var(--primary); margin-right: 6px; vertical-align: middle; }

@media (max-width: 768px) {
  .spec-table thead { display: none; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table td { display: block; width: 100%; }
  .spec-table tbody tr { padding: 18px 16px; border-top: 1px solid var(--rule); }
  .spec-table tbody tr:first-child { border-top: none; }
  .spec-table tbody td { padding: 6px 0; border: none; }
  .spec-table .num-cell { text-align: left; font-size: 28px; padding-bottom: 4px; }
  .spec-table .criterion { width: auto; padding-top: 0; }
  .spec-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted); margin-top: 6px;
  }
}

/* ---------- Timeline (5 stages) ---------- */
.timeline {
  margin: 28px 0;
}
.timeline-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 22px; left: 5%; right: 5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.stage {
  position: relative;
  text-align: left;
}
.stage-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  position: relative; z-index: 1;
  margin-bottom: 14px;
}
.stage:first-child .stage-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.stage:last-child .stage-num { background: var(--success); border-color: var(--success); color: #fff; }
.stage h4 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 14px;
  margin: 0 0 4px;
  letter-spacing: 0;
}
.stage .stage-time {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--primary); letter-spacing: .04em;
  background: var(--tint);
  padding: 2px 8px; border-radius: 3px;
  margin-bottom: 8px;
}
.stage p { font-size: 13px; color: #444; line-height: 1.5; margin: 0; }

.timeline-total {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--cream);
  border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 14px;
}
.timeline-total .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.timeline-total .value {
  font-family: var(--font-display); font-size: 24px; color: var(--primary);
  line-height: 1;
}

@media (max-width: 768px) {
  .timeline-track { grid-template-columns: 1fr; gap: 0; }
  .timeline-track::before {
    top: 0; bottom: 0; left: 22px; right: auto;
    width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--rule) 0 6px, transparent 6px 12px);
  }
  .stage { padding-left: 60px; padding-bottom: 28px; min-height: 60px; }
  .stage-num { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Outcome cards (Pass/Fail/Conditional) ---------- */
.outcomes {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin: 24px 0;
}
@media (min-width: 768px) {
  .outcomes { grid-template-columns: repeat(3, 1fr); }
}
.outcome {
  border-radius: var(--radius-card);
  padding: 22px 22px 24px;
  border: 1px solid var(--rule);
  background: #fff;
  position: relative;
}
.outcome .outcome-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.outcome .outcome-tag {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; font-weight: 700;
  padding: 5px 10px; border-radius: 3px;
}
.outcome .outcome-icon {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
}
.outcome .outcome-icon .ti { font-size: 20px; }
.outcome h4 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 16px; margin: 0 0 8px; letter-spacing: 0;
}
.outcome p { font-size: 14px; line-height: 1.55; color: #333; margin: 0; }
.outcome-pass { background: #f0fbf6; border-color: #c6ecd9; }
.outcome-pass .outcome-tag { background: var(--success); color: #fff; }
.outcome-pass .outcome-icon { background: var(--success); color: #fff; }
.outcome-fail { background: #f7f7f8; border-color: #e1e2e4; }
.outcome-fail .outcome-tag { background: #4a4d51; color: #fff; }
.outcome-fail .outcome-icon { background: #4a4d51; color: #fff; }
.outcome-conditional { background: #fff8eb; border-color: #f1dca0; }
.outcome-conditional .outcome-tag { background: var(--amber); color: #fff; }
.outcome-conditional .outcome-icon { background: var(--amber); color: #fff; }

/* ---------- Fees table ---------- */
.fees-table-wrap {
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 16px 0;
}
.fees-table {
  width: 100%; border-collapse: collapse;
  font-size: 15px;
}
.fees-table thead th {
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; text-align: left;
  padding: 14px 18px;
}
.fees-table thead th:last-child { text-align: right; }
.fees-table tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--rule);
}
.fees-table tbody td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600; color: var(--ink);
}
.fees-table tr.free td:last-child { color: var(--success); }
.fees-table tr.highlight {
  background: linear-gradient(90deg, var(--cream) 0%, #fff 100%);
  position: relative;
}
.fees-table tr.highlight td {
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  background: var(--cream);
  position: relative;
}
.fees-table tr.highlight td:first-child::before {
  content: "★";
  color: var(--primary); margin-right: 8px;
  font-size: 14px;
}
.fees-table tr.highlight td:last-child {
  font-family: var(--font-display); font-size: 18px; color: var(--primary);
}
.fees-note {
  font-size: 13px; color: var(--muted);
  margin-top: 12px; padding-left: 4px;
}

@media (max-width: 600px) {
  .fees-table thead { display: none; }
  .fees-table, .fees-table tbody, .fees-table tr, .fees-table td { display: block; width: 100%; }
  .fees-table tr { padding: 14px 16px; border-top: 1px solid var(--rule); }
  .fees-table td { padding: 4px 0; border: none; text-align: left !important; }
  .fees-table td:last-child {
    text-align: left !important; font-size: 18px; padding-top: 8px;
  }
  .fees-table tr.highlight { border-left: 4px solid var(--primary); }
}

/* ---------- Ethics commitments ---------- */
.ethics-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 18px 0 !important;
  display: grid; gap: 10px;
}
.ethics-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 18px;
  background: #fafaf9;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  margin: 0 !important;
  font-size: 14.5px;
  line-height: 1.55;
}
.ethics-list .label {
  font-family: var(--font-mono); font-size: 12px;
  font-weight: 700; letter-spacing: .12em;
  color: var(--primary);
  align-self: start;
  padding-top: 1px;
}
@media (max-width: 600px) {
  .ethics-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Callout boxes ---------- */
.callout {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin: 40px 0;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.callout .callout-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  border-radius: 10px; flex-shrink: 0;
}
.callout .callout-icon .ti { font-size: 24px; }
.callout .callout-body { flex: 1; min-width: 220px; }
.callout h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 17px; margin: 0 0 4px; color: #fff; letter-spacing: 0;
}
.callout p { font-size: 14px; color: rgba(255,255,255,.78); margin: 0; }
.callout .btn-primary { background: var(--primary); border-color: var(--primary); }

/* ---------- Open standard / CC block ---------- */
.cc-block {
  display: flex; gap: 20px; align-items: center;
  padding: 24px;
  background: var(--cream);
  border: 1px solid var(--tint);
  border-radius: var(--radius-card);
  margin: 18px 0;
}
.cc-glyphs {
  display: flex; gap: 6px;
  flex-shrink: 0;
}
.cc-glyph {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: Georgia, serif; font-weight: 700; font-style: italic;
  font-size: 16px;
}
.cc-block .cc-text strong { display: block; color: var(--ink); margin-bottom: 2px; font-size: 15px; }
.cc-block .cc-text { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- End of document block ---------- */
.eod {
  margin-top: 56px;
  background: #fafaf9;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 28px 32px;
}
.eod-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.eod dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}
.eod dt {
  font-weight: 700; color: var(--ink);
}
.eod dd {
  margin: 0; color: #333;
  font-family: var(--font-mono); font-size: 13px;
  word-break: break-word;
}
.eod .citation {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.eod .citation .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.eod .citation .quote {
  font-family: var(--font-mono); font-size: 13px;
  background: #fff; border: 1px dashed var(--rule);
  padding: 14px 16px; border-radius: 6px;
  color: var(--ink); line-height: 1.55;
}
@media (max-width: 600px) {
  .eod dl { grid-template-columns: 1fr; gap: 2px 0; }
  .eod dt { margin-top: 12px; }
}

/* ---------- Version history ---------- */
.version-history {
  margin: 56px 0 0;
}
.version-history h2 {
  font-size: 26px;
  margin-bottom: 18px;
}
.version-list {
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.version-item {
  display: grid;
  grid-template-columns: 90px 130px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.version-item:first-child { border-top: none; }
.version-tag {
  font-family: var(--font-mono); font-weight: 700;
  background: var(--ink); color: #fff;
  padding: 5px 10px; border-radius: 4px;
  font-size: 12px; letter-spacing: .04em;
  text-align: center;
}
.version-current .version-tag { background: var(--primary); }
.version-date {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.version-note { color: var(--ink); line-height: 1.5; }
.version-status {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
  background: var(--cream); color: var(--primary); font-weight: 700;
}
@media (max-width: 700px) {
  .version-item { grid-template-columns: 1fr; gap: 6px; padding: 16px; }
  .version-status { justify-self: start; }
}

/* ---------- Related pages strip ---------- */
.related-strip {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.related-strip h3 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  margin-bottom: 18px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 768px) {
  .related-grid { grid-template-columns: repeat(4, 1fr); }
}
.related-card {
  display: block;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  color: var(--ink);
  transition: all .15s ease;
}
.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow-md);
}
.related-card .ti {
  font-size: 22px; color: var(--primary); margin-bottom: 10px;
}
.related-card .title {
  font-weight: 700; font-size: 15px; margin-bottom: 4px;
}
.related-card .desc {
  font-size: 13px; color: var(--muted); line-height: 1.45;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
  margin-top: 80px;
  font-size: 14px;
}
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: start;
}
@media (min-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer h5 {
  font-family: var(--font-body); font-weight: 700;
  color: #fff; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 14px;
}
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .footer-brand { font-family: var(--font-display); font-size: 24px; color: #fff; }
.site-footer .footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,.5);
}

/* ---------- AOS subtle override ---------- */
[data-aos] { transition-duration: .6s !important; }

/* ---------- Print stylesheet ---------- */
@media print {
  @page { margin: 0.75in; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .util-bar, .site-header, .breadcrumb-bar, .toc, .toc-mobile, .hero-ctas, .callout, .related-strip, .site-footer, .standard-card { display: none !important; }
  .hero {
    background: #fff !important;
    border-bottom: 2px solid #000;
    padding: 0 0 20pt;
  }
  .hero h1 { font-size: 24pt; }
  .hero .subhead { font-size: 13pt; }
  .doc-grid { display: block; }
  .doc-main { padding: 20pt 0; }
  .doc-content { max-width: 100%; }
  .doc-content section { page-break-inside: avoid; border-top: 1px solid #ccc; padding: 14pt 0; }
  .doc-content h2 { font-size: 18pt; margin-top: 12pt; }
  .doc-content h3 { font-size: 13pt; }
  .doc-content p, .doc-content li { font-size: 11pt; }
  .spec-table, .fees-table { font-size: 10pt; }
  .spec-table thead, .fees-table thead { background: #000 !important; -webkit-print-color-adjust: exact; }
  .timeline-track::before { display: none; }
  .timeline-track { display: block; }
  .stage { display: block; padding: 6pt 0; }
  .tldr-summary, .callout, .cc-block, .eod { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .section-num { color: #000; }
}
