.method-body { min-height: 100%; height: auto; overflow: auto; background: var(--canvas); }
.brand-link { color: inherit; text-decoration: none; }
.method-page { max-width: 1180px; margin: 0 auto; padding: 0 18px 52px; }
.method-intro { padding: 46px 0 30px; border-bottom: 1px solid var(--line); }
.method-kicker { color: var(--accent); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.method-intro h1 { max-width: 790px; margin: 8px 0 13px; font-size: 38px; line-height: 1.08; letter-spacing: 0; }
.method-intro > p { max-width: 790px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.method-warning { max-width: 790px; display: grid; grid-template-columns: 18px 1fr; gap: 9px; margin-top: 20px; padding: 11px 0; color: #704611; border-block: 1px solid #e4cf9c; font-size: 11px; line-height: 1.5; }
.method-warning svg { width: 17px; height: 17px; }

.live-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.live-strip div { min-width: 0; padding: 16px; border-right: 1px solid var(--line); }
.live-strip div:last-child { border-right: 0; }
.live-strip span, .live-strip small { display: block; }
.live-strip span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.live-strip strong { display: block; margin: 6px 0 5px; font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.live-strip small { color: var(--muted); font-size: 9px; line-height: 1.4; }

.method-section { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 34px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.section-label { align-self: start; display: flex; align-items: baseline; gap: 10px; position: sticky; top: 82px; }
.section-label span { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.section-label h2 { margin: 0; font-size: 13px; text-transform: uppercase; }
.section-content { min-width: 0; }
.section-copy { max-width: 700px; margin-bottom: 20px; }
.section-copy h3 { margin: 0 0 7px; font-size: 23px; line-height: 1.2; }
.section-copy p { margin: 0; color: var(--muted); line-height: 1.6; }
.section-copy-with-badge { max-width: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-copy-with-badge > div { max-width: 700px; }

.source-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.source-table { width: 100%; min-width: 790px; border-collapse: collapse; font-size: 11px; }
.source-table th { padding: 9px 11px; color: var(--muted); background: #f7f9f7; border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; text-transform: uppercase; }
.source-table td { padding: 12px 11px; border-bottom: 1px solid #edf0ee; vertical-align: top; line-height: 1.45; }
.source-table tr:last-child td { border-bottom: 0; }
.source-table td:nth-child(1) { width: 24%; }
.source-table td:nth-child(2) { width: 40%; color: #3f4a44; }
.source-table td:nth-child(3) { width: 16%; font-variant-numeric: tabular-nums; }
.source-table td:nth-child(4) { width: 20%; }
.source-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.source-name { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 700; }
.source-name svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent); }
.role-chip, .stage-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; font-size: 9px; font-weight: 650; white-space: nowrap; }
.role-detection { color: #425468; background: #f0f4f8; border-color: #c8d3df; }
.role-confirmation { color: #8f241c; background: #fff1ef; border-color: #e2b5b0; }
.role-context { color: #704611; background: #fff6df; border-color: #e4cf9c; }
.role-evidence { color: #14523a; background: #eaf5ef; border-color: #bdddc9; }
.role-planned, .stage-badge { color: #4b3f75; background: #f3f0fb; border-color: #cfc7e8; }
.table-note { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.pipeline-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pipeline-list li { display: grid; grid-template-columns: 30px 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pipeline-number { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.pipeline-list > li > svg { width: 21px; height: 21px; color: var(--accent); }
.pipeline-list strong { display: block; margin-bottom: 4px; font-size: 13px; }
.pipeline-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.score-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 28px; }
.formula-panel { padding: 20px; background: var(--ink); color: white; border-radius: 6px; }
.formula-label { display: block; margin-bottom: 7px; color: #b8c2bc; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.formula-panel code { display: block; margin-bottom: 17px; font-size: 20px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.formula-panel p { margin: 4px 0 0; color: #c8d0cb; font-size: 10px; line-height: 1.55; }
.factor-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -4px 0 20px; }
.factor-row span { padding-top: 8px; color: #c8d0cb; border-top: 1px solid #445149; font-size: 9px; line-height: 1.4; }
.factor-row b { display: block; margin-bottom: 2px; color: white; }
.weight-panel h4 { margin: 0 0 10px; font-size: 12px; }
.weight-list { margin: 0; border-top: 1px solid var(--line); }
.weight-list div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.weight-list dt { color: #3f4a44; font-size: 10px; }
.weight-list dd { margin: 0; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.score-rule { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-top: 20px; padding: 13px 0; border-block: 1px solid var(--line); }
.score-rule svg { width: 20px; height: 20px; color: var(--confirmed); }
.score-rule p { margin: 0; font-size: 11px; line-height: 1.55; }

.status-list { border-top: 1px solid var(--line); }
.status-list > div { display: grid; grid-template-columns: 16px minmax(140px, .55fr) minmax(0, 1.45fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.status-list strong { font-size: 11px; }
.status-list span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.status-swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--anomaly); }
.status-swatch.confirmed { background: var(--confirmed); }
.status-swatch.probable { background: var(--probable); }
.status-swatch.suspected { background: var(--suspected); }
.status-swatch.inactive { background: var(--inactive); }
.status-swatch.false-positive { background: var(--false-positive); }
.status-swatch.gauge { background: #315f87; }
.status-swatch.critical-gauge { background: #9b4d20; }

.ai-flow { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ai-flow > div { min-width: 0; padding: 16px; background: var(--surface); border-right: 1px solid var(--line); }
.ai-flow > div:last-child { border-right: 0; }
.ai-flow svg { width: 19px; height: 19px; color: #4b3f75; }
.ai-flow strong { display: block; margin: 10px 0 5px; font-size: 11px; }
.ai-flow p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.limits-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--line); border: 1px solid var(--line); }
.limits-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 16px; background: var(--surface); }
.limits-list svg { width: 19px; height: 19px; color: var(--muted); }
.limits-list span { color: #3f4a44; font-size: 10px; line-height: 1.55; }
.method-updated { margin: 14px 0 0; color: var(--muted); font-size: 9px; }
.method-updated code { color: var(--ink); }

@media (max-width: 960px) {
  .method-section { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
  .live-strip { grid-template-columns: repeat(2, 1fr); }
  .live-strip div:nth-child(2) { border-right: 0; }
  .live-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .score-layout { grid-template-columns: 1fr; }
  .ai-flow { grid-template-columns: repeat(2, 1fr); }
  .ai-flow > div:nth-child(2) { border-right: 0; }
  .ai-flow > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .method-page { padding: 0 12px 36px; }
  .method-intro { padding: 30px 0 22px; }
  .method-intro h1 { font-size: 29px; }
  .method-intro > p { font-size: 13px; }
  .method-section { display: block; padding: 30px 0; }
  .section-label { position: static; margin-bottom: 17px; }
  .section-copy h3 { font-size: 20px; }
  .factor-row { grid-template-columns: 1fr; }
  .status-list > div { grid-template-columns: 16px minmax(0, 1fr); }
  .status-list > div > span:last-child { grid-column: 2; }
  .limits-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .method-body .topbar-actions .nav-action:nth-child(4) { display: none; }
  .live-strip { grid-template-columns: 1fr; }
  .live-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .live-strip div:last-child { border-bottom: 0; }
  .ai-flow { grid-template-columns: 1fr; }
  .ai-flow > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .ai-flow > div:last-child { border-bottom: 0; }
  .section-copy-with-badge { display: block; }
  .stage-badge { margin-top: 12px; }
  .pipeline-list li { grid-template-columns: 24px 26px minmax(0, 1fr); gap: 8px; }
  .formula-panel { padding: 16px; }
  .formula-panel code { font-size: 17px; }
}

.method-command { width: fit-content; min-height: 36px; display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 0 10px; color: white; background: var(--ink); border: 1px solid var(--ink); border-radius: 4px; text-decoration: none; font-size: 10px; font-weight: 700; }
.method-command:hover { background: #2b3831; }
.method-command svg { width: 15px; height: 15px; }
