/* Method references and working sheets: illustrated paper, readable at any length. */
.method-editorial,
.worksheet-editorial {
  --detail-paper: #fffefa;
  --detail-navy: #123e5b;
  --detail-blue: #e8f5fc;
  --detail-green: #eef6e6;
  --detail-yellow: #fff6d0;
  --detail-orange: #c74617;
  --detail-rule: #cbdde5;
  background: var(--detail-paper);
  color: var(--detail-navy);
}
.method-editorial main,
.worksheet-editorial main { line-height: 1.8; }
.method-editorial main h1,
.method-editorial main h2,
.method-editorial main h3,
.worksheet-editorial main h1,
.worksheet-editorial main h2,
.worksheet-editorial main h3,
.worksheet-editorial .worksheet-title {
  font-family: var(--font-display);
  color: var(--detail-navy);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.45;
}
.method-editorial main a,
.worksheet-editorial main a { overflow-wrap: anywhere; }
.method-editorial main .btn,
.worksheet-editorial main .btn { white-space: normal; text-align: center; }
.method-editorial main .btn-accent,
.worksheet-editorial main .btn-accent,
.worksheet-editorial .ws-toolbar .btn-primary {
  color: #fff;
  background: var(--detail-orange);
  border-color: var(--detail-orange);
  box-shadow: none;
}
.method-editorial main .btn-accent:hover,
.worksheet-editorial main .btn-accent:hover,
.worksheet-editorial .ws-toolbar .btn-primary:hover { background: #a73610; }
.method-editorial .breadcrumb,
.worksheet-editorial .breadcrumb { font-size: .84rem; padding-block: 1.3rem .4rem; }
.method-editorial .method-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 32%);
  gap: 1rem 2rem;
  padding: 2rem 0 1.7rem;
  border-bottom: 1px solid var(--detail-rule);
}
.method-editorial .method-hero::after { content: none; }
.method-editorial .method-hero-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.method-editorial .method-hero-art {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.method-editorial .method-hero .category-illustration {
  position: static;
  display: block;
  width: 100%;
  max-width: 15rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.method-editorial .method-hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-bottom: .25rem; }
.method-editorial .method-hero .m-en { font-size: 1rem; letter-spacing: 0; color: #395e74; }
.method-editorial .method-hero .lead {
  font-size: 1.12rem;
  line-height: 1.9;
  padding: 0;
  margin: 1.3rem 0 1rem;
  background: transparent;
  border: 0;
  max-width: 44rem;
}
.method-editorial .m-cat { display: inline-block; padding: .25rem .8rem; font-size: .8rem; font-weight: 700; }
.method-editorial .method-context { grid-column: 1 / -1; min-width: 0; }
.method-editorial .method-context .editorial-meta { margin-block: .5rem 1rem; }
.method-editorial .content-role-note { padding: .9rem 1.1rem; background: #f2f7f8; border-color: var(--detail-rule); }
.method-editorial .badge-row { margin-top: 1rem; align-items: start; }
.method-editorial .badge { white-space: normal; line-height: 1.7; }
.method-editorial .method-quick-action,
.worksheet-editorial .method-quick-action { display: flex; flex-wrap: wrap; align-items: center; margin-top: 1.2rem; gap: .7rem 1.3rem; }
.method-editorial .logic-node strong { text-wrap: balance; line-height: 1.55; }
.method-editorial .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 23%);
  align-items: start;
  gap: 2.8rem;
  padding-top: 2rem;
}
.method-editorial .detail-main { min-width: 0; }
.method-editorial .detail-side,
.worksheet-editorial .worksheet-side {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-width: 0;
  padding-left: 1.2rem;
  border-left: 1px solid var(--detail-rule);
}
.method-editorial .method-section { margin: 0 0 2.6rem; }
.method-editorial .detail-main h2,
.worksheet-editorial .ws-support h2,
.worksheet-editorial .source-list h2,
.worksheet-editorial .page-citation h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  margin: 0 0 1.3rem;
  border: 0;
  border-left: .35rem solid var(--detail-orange);
  padding: .08rem 0 .08rem .8rem;
}
.method-editorial .detail-main .desc { margin-top: 1.6rem; }
.method-editorial .detail-main .desc p { font-size: 1rem; line-height: 1.95; }
.method-editorial .diagram-box {
  padding: .8rem 0;
  margin: .5rem 0 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.method-editorial .editorial-diagram { overflow-x: auto; overscroll-behavior-inline: contain; max-width: 100%; }
.method-editorial .editorial-diagram svg { display: block; min-width: 34rem; margin-inline: auto; }
.method-editorial .diagram-box figcaption { text-align: left; font-size: .86rem; line-height: 1.8; color: #395e74; }
.method-editorial .method-process-figure { margin: 1rem 0 1.5rem; }
.method-editorial .method-process-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; counter-reset: process; }
.method-editorial .method-process-flow li { counter-increment: process; display: flex; gap: .6rem; align-items: start; background: var(--detail-blue); border-radius: .5rem; padding: .9rem; font-size: .9rem; font-weight: 700; }
.method-editorial .method-process-flow li:nth-child(3n+2) { background: var(--detail-yellow); }
.method-editorial .method-process-flow li:nth-child(3n) { background: var(--detail-green); }
.method-editorial .method-process-flow li::before { content: counter(process); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 1.7rem; height: 1.7rem; border: 1px solid #6b8fa4; border-radius: 50%; font-weight: 800; }
.method-editorial .method-process-figure figcaption { margin-top: .8rem; font-size: .86rem; color: #395e74; }
.method-editorial .logic-chain-five { gap: 1.2rem; }
.method-editorial .logic-chain-five .logic-node { padding: 1.1rem .4rem; background: var(--detail-blue); border-radius: .5rem; }
.method-editorial .logic-node:nth-child(3) { background: var(--detail-yellow); }
.method-editorial .logic-node:nth-child(n+4) { background: var(--detail-green); }
.method-editorial .logic-chain-five .logic-node strong { font-size: .9rem; }
.method-editorial .logic-chain-five .logic-node > span { font-size: .8rem; }
.method-editorial .logic-node img { width: 4.2rem; height: 4.2rem; object-fit: contain; margin: .6rem 0 .25rem; }
.method-editorial .logic-chain-five .logic-node:not(:last-child)::after { right: -1.05rem; font-size: 1.1rem; }
.method-editorial .logic-assumptions { background: var(--detail-blue); border: 0; margin-top: .8rem; }
.method-editorial .logic-detail-figure figcaption { font-size: .86rem; color: var(--detail-navy); font-weight: 400; }
.method-editorial .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.method-editorial .callout { margin: 0; padding: 1.3rem 1.4rem; border: 0; border-radius: .5rem; }
.method-editorial .callout h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--detail-navy); }
.method-editorial .callout li { font-size: .94rem; }
.method-editorial .callout-ok { background: var(--detail-green); }
.method-editorial .callout-no { background: var(--detail-blue); }
.method-editorial .callout-warn { margin-top: 1.3rem; background: var(--detail-yellow); }
.method-editorial .method-preparation { margin-top: 1.6rem; padding: 1.3rem 0 0; border-top: 1px solid var(--detail-rule); }
.method-editorial .method-preparation h3 { margin: 0 0 .7rem; font-size: 1.12rem; }
.method-editorial .method-preparation h4 { margin-bottom: .5rem; font-size: .98rem; }
.method-editorial .method-preparation ul { margin-top: 0; }
.method-editorial .steps li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: .25rem 1.2rem;
  margin: 0;
  padding: .9rem 0 .9rem 3rem;
  border-bottom: 1px solid var(--detail-rule);
}
.method-editorial .steps li::before { top: .9rem; width: 2rem; height: 2rem; background: var(--detail-blue); color: var(--detail-navy); }
.method-editorial .steps .st-title { font-size: .98rem; }
.method-editorial .steps .st-detail { font-size: .94rem; }
.method-editorial .source-list,
.method-editorial .page-citation,
.method-editorial .worked-example,
.method-editorial .judgment-examples,
.method-editorial .evidence-notes,
.worksheet-editorial .source-list,
.worksheet-editorial .page-citation {
  max-width: none;
  margin: 2.6rem 0;
  padding: 1.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--detail-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.method-editorial .worked-example .example-label { margin-bottom: .8rem; display: inline-block; }
.method-editorial .source-list dl,
.worksheet-editorial .source-list dl { grid-template-columns: minmax(5em, auto) minmax(0, 1fr); }
.method-editorial .detail-side .side-box,
.worksheet-editorial .worksheet-side .side-box { border: 0; padding: 0; background: transparent; box-shadow: none; }
.method-editorial .detail-side h3,
.worksheet-editorial .worksheet-side h2 { font-size: 1.05rem; letter-spacing: 0; }
.method-editorial .method-toc summary,
.worksheet-editorial .method-toc summary { font-family: var(--font-display); color: var(--detail-navy); font-size: 1.08rem; font-weight: 800; line-height: 1.6; }
.method-editorial .method-toc a,
.worksheet-editorial .method-toc a { padding: .6rem .15rem; font-size: .88rem; line-height: 1.65; border-color: var(--detail-rule); }
.method-editorial .detail-side .ws-cta { padding: 1.3rem; background: var(--detail-yellow); border-radius: .6rem; text-align: left; }
.method-editorial .ws-cta .sheet-sketch { width: 9rem; height: auto; margin: .5rem auto 1rem; }
.method-editorial .ws-cta .ws-cta-label { font-family: var(--font-display); font-weight: 800; font-size: 1.16rem; margin-bottom: .5rem; }
.method-editorial .ws-cta h3 { font-size: .98rem; margin-bottom: .7rem; }
.method-editorial .ws-cta p { font-size: .84rem; }
.method-editorial .detail-side .related-chips { display: grid; gap: 0; }
.method-editorial .detail-side .related-chips a { padding: .6rem 0; background: transparent; border-radius: 0; border-bottom: 1px solid var(--detail-rule); font-size: .9rem; line-height: 1.7; }
.method-editorial .detail-side .related-chips a:hover { color: var(--detail-orange); text-decoration: underline; }
.worksheet-editorial .worksheet-main { padding: 0 1.5rem 3rem; }
.worksheet-editorial .worksheet-container { max-width: var(--maxw); margin-inline: auto; min-width: 0; }
.worksheet-editorial .worksheet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 22%);
  gap: 1rem 2rem;
  align-items: center;
  padding: 1.6rem 0 2rem;
  border-bottom: 1px solid var(--detail-rule);
  margin-bottom: 1.3rem;
}
.worksheet-editorial .worksheet-hero .worksheet-title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin: 0 0 1rem; }
.worksheet-editorial .worksheet-hero .lead { font-size: 1rem; line-height: 1.9; }
.worksheet-editorial .worksheet-hero img { display: block; width: 100%; max-width: 13rem; height: auto; margin-inline: auto; }
.worksheet-editorial .ws-toolbar { max-width: none; margin: 1.3rem 0 1.7rem; padding: 1.2rem; background: var(--detail-blue); border-radius: .5rem; gap: .75rem; }
.worksheet-editorial .ws-toolbar .note { flex-basis: 100%; font-size: .86rem; }
.worksheet-editorial .worksheet-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 22%); gap: 2rem; align-items: start; }
.worksheet-editorial .worksheet-content { min-width: 0; }
.worksheet-editorial .ws-paper { max-width: none; margin: 0; padding: 2rem; border: 1px solid var(--detail-rule); border-radius: .3rem; box-shadow: none; background: #fff; }
.worksheet-editorial .ws-paper h1 { font-size: clamp(1.35rem, 2vw, 1.8rem); border-bottom-color: var(--detail-navy); }
.worksheet-editorial .ws-paper .ws-brand { letter-spacing: .04em; text-transform: none; font-size: .8rem; }
.worksheet-editorial .ws-paper .ws-intro { background: var(--detail-blue); font-size: .94rem; line-height: 1.9; }
.worksheet-editorial .ws-section h2 { font-size: 1.12rem; color: #fff; background: var(--detail-navy); border-color: var(--detail-orange); }
.worksheet-editorial .ws-instruction { font-size: .94rem; line-height: 1.85; }
.worksheet-editorial .ws-field label { font-size: .96rem; }
.worksheet-editorial .ws-table-wrap { max-width: 100%; }
.worksheet-editorial .ws-support { margin-top: 2.6rem; padding: 1.6rem 0; border: 0; border-top: 1px solid var(--detail-rule); background: transparent; }
.worksheet-editorial .ws-support-grid { gap: 1.2rem; }
.worksheet-editorial .ws-support-grid > section { padding: 1.2rem; background: var(--detail-green); border: 0; border-radius: .5rem; min-width: 0; }
.worksheet-editorial .ws-support-grid > section:nth-child(2) { background: var(--detail-blue); }
.worksheet-editorial .worksheet-method-link img { width: 6rem; height: auto; margin: 0 0 .8rem; }
.method-editorial [id],
.worksheet-editorial [id] { scroll-margin-top: 7rem; }
@media (max-width: 68rem) {
  .method-editorial .detail-layout,
  .worksheet-editorial .worksheet-layout { display: flex; flex-direction: column; gap: 1.8rem; }
  .method-editorial .detail-main,
  .worksheet-editorial .worksheet-content { width: 100%; order: 1; }
  .method-editorial .detail-side,
  .worksheet-editorial .worksheet-side { display: contents; }
  .method-editorial .detail-side .method-toc,
  .worksheet-editorial .worksheet-side .method-toc { order: 0; width: 100%; padding: 1rem 1.2rem; background: var(--detail-blue); border-radius: .5rem; }
  .method-editorial .method-toc nav,
  .worksheet-editorial .method-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
  .method-editorial .detail-side > .side-box:not(.method-toc),
  .worksheet-editorial .worksheet-side > .side-box:not(.method-toc) { order: 2; width: 100%; }
  .method-editorial .detail-side .ws-cta { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: .5rem 1rem; }
  .method-editorial .ws-cta .sheet-sketch { grid-column: 2; grid-row: 1 / 5; width: 100%; align-self: center; }
  .method-editorial .ws-cta > :not(.sheet-sketch) { grid-column: 1; margin: 0; }
}
@media (max-width: 44rem) {
  .method-editorial .method-hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-top: 1.3rem; }
  .method-editorial .method-hero-copy { grid-column: 1; grid-row: 1; }
  .method-editorial .method-hero-art { grid-column: 1; grid-row: 2; }
  .method-editorial .method-hero .category-illustration { width: 11rem; max-width: 65%; }
  .method-editorial .method-context { grid-row: 3; }
  .method-editorial .method-hero .lead { font-size: 1rem; }
  .method-editorial .two-col { grid-template-columns: minmax(0, 1fr); }
  .method-editorial .method-process-flow { grid-template-columns: minmax(0, 1fr); }
  .method-editorial .steps li { grid-template-columns: minmax(0, 1fr); padding-left: 2.8rem; }
  .method-editorial .logic-chain-five { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .method-editorial .logic-chain-five .logic-node { padding: .9rem; }
  .method-editorial .logic-node img { width: 3.5rem; height: 3.5rem; }
  .method-editorial .logic-chain-five .logic-node:not(:last-child)::after { content: '↓'; top: auto; bottom: -1.6rem; right: 50%; transform: translateX(50%); }
  .worksheet-editorial .worksheet-main { padding: 0 1rem 2rem; }
  .worksheet-editorial .worksheet-hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .worksheet-editorial .worksheet-hero img { width: 8rem; }
  .worksheet-editorial .ws-paper { padding: 1.2rem .85rem; }
  .worksheet-editorial .ws-toolbar { padding: 1rem .85rem; }
  .worksheet-editorial .ws-toolbar .btn { flex-basis: 100%; }
  .method-editorial .source-list dl,
  .worksheet-editorial .source-list dl { grid-template-columns: minmax(0, 1fr); }
  .method-editorial .source-list dd,
  .worksheet-editorial .source-list dd { margin-bottom: .5rem; }
}
@media (max-width: 30rem) {
  .method-editorial .method-toc nav,
  .worksheet-editorial .method-toc nav { grid-template-columns: minmax(0, 1fr); }
  .method-editorial .detail-side .ws-cta { grid-template-columns: minmax(0, 1fr); }
  .method-editorial .ws-cta .sheet-sketch { grid-column: 1; grid-row: auto; width: 7rem; }
}
@media print {
  .method-editorial,
  .worksheet-editorial { background: #fff; color: #000; }
  .method-editorial .method-hero { display: block; padding: 0; }
  .method-editorial .method-hero-art,
  .method-editorial .detail-side,
  .worksheet-editorial .worksheet-side,
  .worksheet-editorial .worksheet-hero,
  .worksheet-editorial .ws-support { display: none !important; }
  .method-editorial .detail-layout,
  .worksheet-editorial .worksheet-layout { display: block; padding: 0; }
  .worksheet-editorial .worksheet-main,
  .worksheet-editorial .worksheet-container,
  .worksheet-editorial .worksheet-content { padding: 0 !important; max-width: none; width: auto; }
  .worksheet-editorial .ws-paper { border: 0; padding: 0; margin: 0; box-shadow: none; }
  .method-editorial .editorial-diagram { overflow: visible; }
  .method-editorial .editorial-diagram svg { min-width: 0; max-width: 100%; }
  .method-editorial .logic-chain-five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
  .method-editorial .logic-node img { display: none; }
  .method-editorial .logic-chain-five .logic-node:not(:last-child)::after { content: '→'; top: 40%; right: -1rem; bottom: auto; transform: none; }
  .method-editorial .steps li { break-inside: avoid; }
  .method-editorial .method-section { margin-bottom: 1.5rem; }
  .worksheet-editorial .ws-section h2 { break-after: avoid; }
}
