/* Long-form methodology, using the shared public-site identity. */
.methodology-page main { background: var(--bg-section); }
.method-hero { padding-block: 70px 42px; }
.method-hero h1 { max-width: 24ch; font-size: clamp(2.4rem, 4.5vw, 4.2rem); line-height: 1.08; }
.method-deck { max-width: 64ch; margin-top: 26px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; }
.method-edition { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 28px; color: var(--text-muted); font-size: 14px; }
.method-print, .method-retry { min-height: 44px; padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--bg-section); color: var(--text-heading); font-size: 14px; }
.method-print:hover, .method-retry:hover { background: var(--bg-deep); border-color: var(--text-muted); }
.method-retry:disabled { cursor: wait; opacity: .65; }
.method-layout { display: grid; grid-template-columns: 230px minmax(0, 850px); gap: clamp(36px, 5.5vw, 80px); padding-bottom: 80px; }
.method-sidebar { min-width: 0; }
.method-toc { position: sticky; top: calc(var(--nav-h) + 28px); padding-block: 26px; border-top: 1px solid var(--border-strong); }
.method-toc p { margin-bottom: 12px; color: var(--text-heading); font-size: 15px; font-weight: 500; }
.method-toc a { display: block; padding-block: 7px; font-size: 14px; line-height: 1.5; }
.method-toc a:hover, .method-toc a:focus-visible { color: var(--accent-hover); text-decoration: underline; }
.method-article { min-width: 0; font-size: 17px; line-height: 1.75; }
.method-section { padding-block: 38px 12px; border-top: 1px solid var(--border-strong); scroll-margin-top: calc(var(--nav-h) + 24px); }
.method-section + .method-section { margin-top: 38px; }
.method-article h2 { font-size: clamp(27px, 2.5vw, 34px); line-height: 1.2; margin-bottom: 24px; max-width: 30ch; }
.method-article h3 { font-size: 21px; line-height: 1.35; margin-block: 34px 12px; }
.method-article p, .method-article ul, .method-article ol { max-width: 74ch; }
.method-article p + p { margin-top: 18px; }
.method-article a:not(.btn) { color: var(--accent-hover); text-decoration: underline; text-decoration-thickness: 1px; }
.method-article a:not(.btn):hover { color: var(--text-heading); }
.method-article ul, .method-article ol { margin-block: 20px; padding-left: 24px; }
.method-article li { padding-left: 5px; margin-bottom: 10px; }
.method-article li::marker { color: var(--accent-hover); }
.method-summary { margin: 28px 0 4px; }
.method-summary > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; padding-block: 18px; border-top: 1px solid var(--border); }
.method-summary dt { color: var(--text-heading); font-weight: 500; }
.method-summary dd { margin: 0; }
.method-article .method-process { margin-block: 30px; padding: 0; list-style: none; counter-reset: stages; }
.method-process li { position: relative; counter-increment: stages; padding: 24px 0 24px 64px; margin: 0; border-top: 1px solid var(--border); }
.method-process li::before { content: counter(stages, decimal-leading-zero); position: absolute; top: 26px; left: 0; color: var(--accent-hover); font-family: var(--font-mono); font-size: 16px; }
.method-process h3 { margin: 0 0 10px; }
.method-note { margin-top: 26px; padding: 24px 28px; background: var(--bg-page); border-radius: var(--r-sm); font-size: 16px; }
.method-table-wrap { margin-block: 26px; overflow-x: auto; scrollbar-width: thin; }
.method-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.method-table caption { text-align: left; font-size: 14px; padding-bottom: 14px; color: var(--text-muted); }
.method-table th, .method-table td { padding: 17px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.method-table thead th { color: var(--text-heading); background: var(--bg-page); border-block: 1px solid var(--border-strong); font-size: 14px; font-weight: 500; }
.method-table tbody th { color: var(--text-heading); font-weight: 500; width: 26%; }
.method-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.method-results tbody th { width: 46%; }
.method-example { margin: 30px 0; padding: 28px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); }
.method-example figcaption { font-size: 16px; color: var(--text-heading); font-weight: 500; margin-bottom: 22px; }
.method-distribution { display: grid; grid-template-columns: 175px minmax(0, 1fr); align-items: center; gap: 18px; font-size: 14px; margin-block: 12px; }
.method-bar { display: flex; height: 36px; overflow: hidden; }
.method-bar span { display: grid; place-items: center; width: var(--share); background: var(--accent); color: #fff; font-variant-numeric: tabular-nums; }
.method-bar span + span { background: var(--bg-deep); color: var(--text-heading); }
.method-example p { margin-top: 22px; font-size: 15px; line-height: 1.7; }
.method-study-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-block: 26px; }
.method-study-facts > div { padding-block: 16px; border-top: 1px solid var(--border); }
.method-study-facts dt { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.method-study-facts dd { margin: 0; color: var(--text-heading); font-size: 16px; line-height: 1.6; }
.method-article .method-caption { font-size: 14px; line-height: 1.65; color: var(--text-muted); margin-top: 16px; }
.method-archive { margin-block: 30px; border-block: 1px solid var(--border-strong); }
.method-archive summary { padding: 22px 4px; color: var(--text-heading); font-weight: 500; cursor: pointer; line-height: 1.5; }
.method-archive summary:hover { color: var(--accent-hover); }
.method-archive-body { padding-bottom: 26px; font-size: 15px; }
.method-archive .mtable { min-width: 680px; }
.method-archive .mtable th { white-space: normal; }
.method-archive #fidelityStatus { margin-top: 20px; }
.method-archive .method-retry { margin-top: 12px; }
.method-limit-list { margin: 0; }
.method-limit-list > div { padding-block: 24px; border-bottom: 1px solid var(--border); }
.method-limit-list > div:first-child { padding-top: 0; }
.method-limit-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.method-limit-list dt { font-size: 21px; line-height: 1.4; color: var(--text-heading); font-weight: 500; margin-bottom: 10px; }
.method-limit-list dd { margin: 0; }
.method-workflow li { margin-bottom: 16px; }
.method-scenario { margin-top: 28px; padding: 28px; background: var(--bg-page); border-radius: var(--r-sm); }
.method-scenario h3 { margin-top: 0; }
.method-article .method-reading { list-style: none; padding-left: 0; }
.method-reading li { padding: 20px 0; margin: 0; border-bottom: 1px solid var(--border); }
.method-reading li:first-child { padding-top: 0; }
.method-reading li:last-child { border-bottom: 0; }
.method-reading span { display: block; margin-top: 7px; font-size: 15px; }
.method-end { margin-top: 50px; padding-top: 34px; border-top: 1px solid var(--border-strong); }
.method-end .hero-actions { align-items: center; margin-top: 26px; gap: 20px; }
.method-end-link { font-size: 15px; }

@media (max-width: 1100px) {
  .method-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 36px; }
  .method-summary > div { grid-template-columns: 100px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 850px) {
  .method-hero { padding-top: 46px; }
  .method-layout { grid-template-columns: 1fr; gap: 0; }
  .method-toc { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; padding-block: 22px 28px; }
  .method-toc p { grid-column: 1 / -1; }
  .method-toc a { padding-block: 9px; }
}
@media (max-width: 540px) {
  .method-hero { padding-block: 36px 30px; }
  .method-hero h1 { font-size: 36px; }
  .method-deck { margin-top: 20px; font-size: 18px; }
  .method-edition { margin-top: 22px; font-size: 13px; }
  .method-toc { column-gap: 16px; }
  .method-toc a { font-size: 13px; }
  .method-article { font-size: 16px; line-height: 1.75; }
  .method-section { padding-top: 28px; }
  .method-section + .method-section { margin-top: 30px; }
  .method-article h2 { font-size: 28px; margin-bottom: 20px; }
  .method-summary > div { grid-template-columns: 1fr; gap: 6px; }
  .method-process li { padding-left: 42px; }
  .method-process li::before { font-size: 14px; }
  .method-study-facts { grid-template-columns: 1fr; }
  .method-note, .method-example, .method-scenario { padding: 22px; }
  .method-distribution { grid-template-columns: 1fr; gap: 7px; margin-block: 18px; }
  .method-table { min-width: 560px; }
  .method-results { min-width: 0; font-size: 13px; }
  .method-results thead th { font-size: 12px; }
  .method-results th, .method-results td { padding: 13px 8px; }
  .method-results th.num { white-space: normal; }
  .method-layout { padding-bottom: 50px; }
}
@media print {
  @page { size: A4; margin: 16mm; }
  .method-hero { padding-block: 0 24px; }
  .method-hero h1 { font-size: 28pt; max-width: none; }
  .method-deck { font-size: 13pt; }
  .method-print, .method-retry, .method-sidebar, .method-end, #fidelityStatus { display: none !important; }
  .method-layout { display: block; padding-bottom: 0; }
  .method-article { font-size: 10.5pt; line-height: 1.55; }
  .method-article h2 { font-size: 19pt; }
  .method-article h3 { font-size: 13pt; }
  .method-section { padding-top: 22px; }
  .method-section + .method-section { margin-top: 22px; }
  .method-article h2, .method-article h3, .method-table caption, .method-limit-list dt { break-after: avoid; }
  .method-table-wrap, .method-archive .mtable-wrap { overflow: visible; }
  .method-table, .method-archive .mtable { min-width: 0; font-size: 9pt; }
  .method-table th, .method-table td, .method-archive .mtable th, .method-archive .mtable td { padding: 9px 7px; }
  .method-note, .method-example, .method-scenario, .method-study-facts > div, .method-limit-list > div, tr { break-inside: avoid; }
  .method-article a:not(.btn) { color: var(--text-heading); }
  .method-bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .method-archive-body { font-size: 10pt; }
}
