:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #66645f;
  --line: #dedbd3;
  --link: #294d7a;
  --soft: #f1efe9;
  --max: 920px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", Georgia, serif;
  line-height: 1.9;
  font-size: 17px;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
header, main, footer { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }
header { padding: 34px 0 20px; border-bottom: 1px solid var(--line); }
.brand { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: .02em; }
nav { margin-top: 10px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; }
nav a { margin-right: 16px; color: var(--muted); text-decoration: none; }
main { padding: 48px 0 64px; }
footer { padding: 22px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; }
h1, h2, h3 { line-height: 1.35; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin: 0 0 14px; }
h2 { margin-top: 3.2rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
h3 { margin-top: 2rem; }
p, li { max-width: 46rem; }
.lead { font-size: 1.16rem; color: #343330; }
.meta, .eyebrow { font-family: ui-sans-serif, system-ui, sans-serif; color: var(--muted); font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.claim {
  margin: 2rem 0;
  padding: 1.2rem 1.35rem;
  background: var(--surface);
  border-left: 4px solid #8b887e;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 14px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; border-radius: 10px; }
.card h3 { margin: 0 0 6px; font-size: 1.03rem; }
.card p { margin: 0; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; line-height: 1.55; }
.status { display: inline-block; padding: 3px 8px; border: 1px solid var(--line); background: var(--soft); border-radius: 999px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 12px; color: var(--muted); }
.argument { counter-reset: arg; list-style: none; padding-left: 0; }
.argument li { counter-increment: arg; margin: 1rem 0; padding-left: 2.5rem; position: relative; }
.argument li::before { content: counter(arg); position: absolute; left: 0; top: .12rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--soft); text-align: center; line-height: 1.7rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 12px; }
.related { background: var(--soft); padding: 18px 20px; border-radius: 10px; margin-top: 3rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
@media (max-width: 600px) { body { font-size: 16px; } main { padding-top: 32px; } }

.source-note { margin: 2rem 0; padding: 14px 18px; border: 1px dashed var(--line); background: rgba(255,255,255,.45); color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; line-height: 1.65; }
dl { max-width: 48rem; }
dt { margin-top: 1.5rem; font-weight: 700; }
dd { margin: .35rem 0 0 0; color: #3d3b37; }
.cards { display: grid; gap: 12px; margin: 22px 0; }
.cards > .card { display: block; text-decoration: none; color: var(--text); }
.cards > .card span { display: block; color: var(--muted); margin-top: 5px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; line-height: 1.55; }

.practice-position { margin: 2.2rem 0 2.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.practice-position summary { cursor: pointer; padding: 16px 18px; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; list-style-position: inside; }
.practice-position[open] summary { border-bottom: 1px solid var(--line); background: var(--soft); }
.practice-position-body { padding: 4px 20px 20px; }
.practice-position-body h3 { margin-top: 1.7rem; }

.accordion { margin: 2.2rem 0 2.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.accordion summary { cursor: pointer; padding: 16px 18px; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; list-style-position: inside; }
.accordion[open] summary { border-bottom: 1px solid var(--line); background: var(--soft); }
.accordion-body { padding: 4px 20px 20px; }
.accordion-body h3 { margin-top: 1.7rem; }

.region-tabs { margin: 2rem 0 3rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tab-list { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--soft); font-family: ui-sans-serif, system-ui, sans-serif; }
.tab-button { appearance: none; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); padding: 12px 18px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.tab-button:hover { background: rgba(255,255,255,.55); color: var(--text); }
.tab-button.is-active { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: inset 0 -2px 0 var(--link); }
.tab-button:focus-visible { outline: 2px solid var(--link); outline-offset: -3px; }
.tab-panel { padding: 6px 22px 22px; }
.tab-panel h3 { margin-top: 1.4rem; }
.revolution-list { display: grid; gap: 0; }
.revolution-list p { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.revolution-list p:first-child { border-top: 0; }
@media (max-width: 600px) { .tab-button { padding: 11px 14px; } .tab-panel { padding: 4px 16px 18px; } }

.table-scroll {
  width: 100%;
  margin: 1.6rem 0 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.epistemic-practice-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.epistemic-practice-table th,
.epistemic-practice-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.epistemic-practice-table th {
  background: var(--soft);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.epistemic-practice-table td {
  border-top: 1px solid var(--line);
}
.epistemic-practice-table tbody tr:first-child td {
  border-top: 0;
}
.epistemic-practice-table th:first-child,
.epistemic-practice-table td:first-child {
  width: 34%;
  border-right: 1px solid var(--line);
}
@media (max-width: 600px) {
  .table-scroll { margin-left: 0; margin-right: 0; }
  .epistemic-practice-table { min-width: 580px; font-size: 13px; }
  .epistemic-practice-table th,
  .epistemic-practice-table td { padding: 12px 13px; }
}