/* Methodology page: a single editorial column on the paper theme. */
.mth-root { box-sizing: border-box; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) 16px 80px; color: var(--ink, #1d1b16); font-family: var(--serif, Georgia, serif); line-height: 1.6; font-size: 1.05rem; }
.mth-root p, .mth-root li { color: var(--ink-2, #514c3e); }
.mth-head { border-bottom: 1px solid var(--rule, #d5ccb6); padding-bottom: 1.6rem; margin-bottom: 0.4rem; }
.mth-kicker { margin: 0 0 0.4rem; font: 600 0.74rem/1 system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3, #837d6c) !important; }
.mth-head h1 { margin: 0 0 0.8rem; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.15; font-weight: 600; color: var(--ink, #1d1b16); }
.mth-lede { font-size: 1.15rem; margin: 0 0 1.2rem; }
.mth-toc ol { margin: 0; padding-left: 1.3rem; columns: 2 16rem; column-gap: 2rem; font-size: 0.92rem; }
.mth-toc a { color: var(--ink-2, #514c3e); text-decoration: none; border-bottom: 1px solid var(--rule, #d5ccb6); }
.mth-toc a:hover { color: var(--ink, #1d1b16); }

.mth-section { padding: 2rem 0 0.6rem; border-bottom: 1px solid var(--rule, #d5ccb6); scroll-margin-top: 80px; }
.mth-section:last-child { border-bottom: 0; }
.mth-section h2 { margin: 0 0 0.8rem; font-size: 1.45rem; font-weight: 600; color: var(--ink, #1d1b16); }
.mth-section ul { padding-left: 1.2rem; }
.mth-note { font-size: 0.92rem; color: var(--ink-3, #837d6c) !important; }
.mth-callout { border-left: 3px solid var(--ink-2, #514c3e); padding: 0.2rem 0 0.2rem 0.9rem; color: var(--ink, #1d1b16) !important; }
.mth-muted { color: var(--ink-3, #837d6c); font-style: italic; }
.mth-empty { margin: 1rem 0; padding: 0.9rem 1rem; border: 1px dashed var(--rule, #d5ccb6); color: var(--ink, #1d1b16) !important; }

.mth-states { margin: 1rem 0; display: grid; gap: 0.9rem; }
.mth-state { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: baseline; }
.mth-state dt { font-weight: 600; color: var(--ink, #1d1b16); padding-left: 0.7rem; border-left: 4px solid currentColor; }
.mth-state dd { margin: 0; color: var(--ink-2, #514c3e); }
.mth-state--hold dt { border-left-color: var(--up, #2b6a3c); }
.mth-state--mixed dt { border-left-color: var(--ink-3, #837d6c); }
.mth-state--watch dt { border-left-color: var(--down, #a1302a); }

.mth-lifecycle { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.mth-step { position: relative; padding: 1.6rem 0.8rem 0 0; font-size: 0.9rem; display: grid; gap: 0.3rem; align-content: start; color: var(--ink-2, #514c3e); }
.mth-step::before { content: ""; position: absolute; top: 0.45rem; left: 0; right: 0; border-top: 1px solid var(--ink-3, #837d6c); }
.mth-step::after { content: ""; position: absolute; top: 0.1rem; left: 0; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--paper, #f4efe4); border: 1.5px solid var(--ink, #1d1b16); }
.mth-step:nth-child(3)::after { background: var(--ink, #1d1b16); }
.mth-step:last-child::before { right: 70%; }
.mth-step-mark { font: 600 0.7rem/1.2 system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3, #837d6c); }
.mth-step strong { color: var(--ink, #1d1b16); }

.mth-badge { display: inline-block; margin: 0 0 0.6rem; padding: 0.2rem 0.6rem; font: 600 0.72rem/1.4 system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid currentColor; color: var(--ink-2, #514c3e) !important; }
.mth-badge--live { color: var(--up, #2b6a3c) !important; }
.mth-section--historical, .mth-section--live { position: relative; }

.mth-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.mth-table caption { caption-side: bottom; text-align: left; padding-top: 0.5rem; font-size: 0.85rem; color: var(--ink-3, #837d6c); }
.mth-table th, .mth-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--rule, #d5ccb6); text-align: right; }
.mth-table th:first-child { text-align: left; }
.mth-table thead th { font: 600 0.74rem/1.3 system-ui, sans-serif; letter-spacing: 0.04em; color: var(--ink-3, #837d6c); border-bottom-color: var(--ink-3, #837d6c); }

.mth-chart { margin: 1.2rem 0 0.4rem; display: grid; gap: 0.55rem; }
.mth-chart-row { display: grid; grid-template-columns: 9rem 1fr; align-items: center; gap: 1rem; font-size: 0.9rem; }
.mth-chart-label { color: var(--ink, #1d1b16); }
.mth-chart-track { position: relative; height: 1.1rem; border-left: 1px solid var(--rule, #d5ccb6); }
.mth-ci { position: absolute; top: 50%; height: 4px; margin-top: -2px; background: var(--rule, #d5ccb6); border-radius: 2px; }
.mth-dot { position: absolute; top: 50%; width: 0.7rem; height: 0.7rem; margin: -0.35rem 0 0 -0.35rem; border-radius: 50%; background: var(--ink, #1d1b16); }
.mth-row--holding .mth-dot { background: var(--up, #2b6a3c); }
.mth-row--reversal-watch .mth-dot { background: var(--down, #a1302a); }
.mth-chart-axis .mth-chart-track { border-left: 0; border-top: 1px solid var(--rule, #d5ccb6); height: 1.2rem; }
.mth-tick { position: absolute; top: 0.2rem; transform: translateX(-50%); font: 0.7rem system-ui, sans-serif; color: var(--ink-3, #837d6c); }
.mth-tick:first-child { transform: none; }
.mth-tick:last-child { transform: translateX(-100%); }

.mth-stats, .mth-version { margin: 1rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule, #d5ccb6); border: 1px solid var(--rule, #d5ccb6); }
.mth-stats > div, .mth-version > div { background: var(--paper, #f4efe4); padding: 0.7rem 0.8rem; }
.mth-stats dt, .mth-version dt { font: 600 0.7rem/1.3 system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3, #837d6c); }
.mth-stats dd { margin: 0.2rem 0 0; font-size: 1.5rem; color: var(--ink, #1d1b16); font-variant-numeric: tabular-nums; }
.mth-version { grid-template-columns: 1fr; background: none; border: 0; gap: 0; }
.mth-version > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule, #d5ccb6); background: none; }
.mth-version dd { margin: 0; color: var(--ink, #1d1b16); font-size: 0.95rem; }
.mth-version code { font-size: 0.8rem; color: var(--ink-3, #837d6c); margin-left: 0.4rem; }

.mth-h3 { margin: 1.4rem 0 0.2rem; font-size: 1.05rem; font-weight: 600; color: var(--ink, #1d1b16); }
.mth-table--years td { white-space: nowrap; }
.mth-more { margin: 0.6rem 0; }
.mth-more summary { cursor: pointer; font-size: 0.95rem; color: var(--ink, #1d1b16); }
.mth-more ul { font-size: 0.93rem; }

@media (max-width: 640px) {
  .mth-root { font-size: 1rem; }
  .mth-state, .mth-chart-row, .mth-version > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .mth-chart-row { gap: 0.3rem; }
  .mth-lifecycle { grid-template-columns: 1fr; }
  .mth-step { padding: 0 0 1rem 1.6rem; }
  .mth-step::before { top: 0.4rem; bottom: 0; left: 0.33rem; right: auto; border-top: 0; border-left: 1px solid var(--ink-3, #837d6c); }
  .mth-step:last-child::before { display: none; }
  .mth-stats { grid-template-columns: repeat(2, 1fr); }
  .mth-table { font-size: 0.82rem; }
  .mth-table th, .mth-table td { padding: 0.4rem 0.25rem; }
}
