.method-main {
  max-width: 1120px;
}

.method-cover {
  padding: 74px 0 54px;
}

.method-cover h1 {
  max-width: 860px;
}

.method-deck {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin: 30px 0 0;
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
}

.cover-meta span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 2px;
}

.method-grid {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  padding-bottom: 78px;
  border-top: 1px solid var(--line);
}

.method-toc {
  position: sticky;
  top: 92px;
  padding: 32px 0;
  font-family: var(--sans);
}

.method-toc h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.method-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.method-toc li {
  counter-increment: toc;
  border-top: 1px solid var(--line-soft);
}

.method-toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 9px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.method-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.method-article {
  min-width: 0;
}

.method-section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.method-section:first-child { border-top: 0; }

.method-section h2 {
  max-width: 720px;
  margin-bottom: 17px;
  font-size: clamp(29px, 4vw, 39px);
}

.method-section h3 {
  margin: 30px 0 9px;
}

.method-section p,
.method-section > ul,
.method-section > ol {
  max-width: 72ch;
}

.method-section ul,
.method-section ol {
  padding-left: 22px;
}

.method-section li { margin-bottom: 7px; }
.method-section li::marker { color: var(--accent); }

.method-lead {
  font-size: 19px;
  line-height: 1.58;
}

.truth-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 27px 0 12px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.truth-step {
  min-width: 0;
  padding: 15px 14px 17px;
  border-right: 1px solid var(--line);
}

.truth-step:first-child { padding-left: 0; }
.truth-step:last-child { border-right: 0; }

.truth-step strong {
  display: block;
  font-family: var(--sans);
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.truth-step span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.35;
}

.method-callout {
  max-width: 72ch;
  margin: 24px 0;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
}

.method-callout.green { background: var(--green-soft); }
.method-callout.amber { background: var(--amber-soft); }
.method-callout p:last-child { margin-bottom: 0; }

.method-callout strong {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-steps {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: method-step;
  border-top: 1px solid var(--line);
}

.method-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  counter-increment: method-step;
}

.method-steps li::before {
  content: counter(method-step, decimal-leading-zero);
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.method-steps h3 { margin: 0 0 4px; }
.method-steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

.method-table-wrap {
  max-width: 100%;
  margin: 22px 0 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--sheet);
}

.method-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.45;
}

.method-table th {
  padding: 10px 12px;
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.method-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.method-table tbody tr:last-child td { border-bottom: 0; }
.method-table tbody tr:nth-child(even) td { background: var(--row-alt); }
.method-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.definition-list {
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.definition-list > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.definition-list dt {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
}

.definition-list dd { margin: 0; color: var(--muted); font-size: 14.5px; }

.method-code {
  max-width: 100%;
  margin: 20px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre;
}

@media (hover: hover) and (pointer: fine) {
  .method-toc a:hover { color: var(--ink); }
}

@media (max-width: 880px) {
  .method-grid { grid-template-columns: 1fr; gap: 0; }
  .method-toc {
    position: static;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
  }
  .method-toc ol { columns: 2; column-gap: 32px; }
  .method-toc li { break-inside: avoid; }
}

@media (max-width: 720px) {
  .method-cover { padding: 50px 0 38px; }
  .method-deck { font-size: 18px; }
  .method-toc a { min-height: 44px; align-items: center; }
  .truth-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .truth-step:nth-child(2) { border-right: 0; }
  .truth-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .truth-step:nth-child(3) { padding-left: 0; }
  .method-section { padding: 44px 0; }
}

@media (pointer: coarse) {
  .method-toc a { min-height: 44px; align-items: center; }
}

@media (max-width: 520px) {
  .method-toc ol { columns: 1; }
  .truth-flow { grid-template-columns: 1fr; }
  .truth-step,
  .truth-step:first-child,
  .truth-step:nth-child(3) { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .truth-step:last-child { border-bottom: 0; }
  .definition-list > div { grid-template-columns: 1fr; gap: 4px; }
}

@media print {
  .site-header,
  .site-footer,
  .method-toc,
  .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .method-main { max-width: none; padding: 0; }
  .method-cover { padding-top: 0; }
  .method-grid { display: block; }
  .method-section { break-before: auto; }
  .method-callout,
  .truth-step,
  .method-steps li,
  tr { break-inside: avoid; }
}
