/* Screen typography and subject illustrations. Print keeps its established paper layout. */
@media screen {
  :root {
    --font-heading: "Yu Gothic UI", "Hiragino Sans", "Noto Sans CJK JP", "Noto Sans JP", "Meiryo", sans-serif;
    --material-wash: #edf5ee;
    --material-border: #ccdedf;
  }

  /* ExtraBold is reserved for the large title and brand, never small reference labels. */
  body[data-page] main :is(h2, h3, h4, .m-name, .cat-name, .g-term, .t, .st-title),
  body[data-page] .guide-side .side-box h3,
  body[data-page] .guide-answer > span,
  body[data-page] .guide-method-card strong,
  body[data-page] .library-list-toolbar .result-count,
  body[data-page] .ws-paper h1,
  body[data-page] main .method-toc summary,
  body[data-page] main .ws-cta .ws-cta-label,
  body[data-page] main .plan-sidebar-title,
  body[data-page] main .compare-table thead th,
  body[data-page] main .logic-node strong {
    font-family: var(--font-heading);
    font-weight: 600;
    font-synthesis: none;
    letter-spacing: .015em;
    line-height: 1.6;
  }

  [data-category="design"], [data-category="framework"] { --material-wash: #eaf4f9; }
  [data-category="collect"], [data-category="participatory"] { --material-wash: #edf5e8; }
  [data-category="causal"], [data-category="analysis"] { --material-wash: #f1eef8; }
  [data-category="economic"], [data-category="use"] { --material-wash: #fff5d9; }

  /* An illustrated reference entry: image and name form one heading, then the full abstract. */
  .method-grid { gap: 1.5rem; }
  body[data-page] .method-card {
    background: #fff;
    border: 1px solid var(--material-border);
    border-radius: 14px;
    padding: 1.35rem;
    gap: 1.1rem;
    box-shadow: 0 3px 0 #edf3f1;
  }
  body[data-page] .method-card:hover {
    background: #fff;
    border-color: #779cac;
    box-shadow: 0 3px 0 #d8e8ed;
  }
  .method-card-heading {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    align-items: center;
    gap: 1.15rem;
  }
  .method-card-copy { min-width: 0; }
  .method-card-art {
    display: grid;
    place-items: center;
    width: 5.5rem;
    height: 6.25rem;
    padding: .45rem;
    border-radius: 10px;
    background: var(--material-wash);
  }
  .method-card-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
  body[data-page] .method-card .m-cat { display: inline-block; margin-bottom: .4rem; padding: .15rem .45rem; background: var(--material-wash); font-size: .72rem; }
  body[data-page] .method-card .m-name { font-size: 1.3rem; font-family: var(--font-heading); font-weight: 600; letter-spacing: .015em; }
  body[data-page] .method-card .m-en { margin-top: .35rem; line-height: 1.6; font-size: .76rem; overflow-wrap: anywhere; }
  body[data-page] .method-card .m-summary { font-size: .96rem; line-height: 1.9; margin-bottom: .2rem; }
  body[data-page] .method-card .m-meta { border-top: 1px solid #e3eced; padding-top: 1rem; }
  body[data-page] .method-card .m-read-more { margin-top: .1rem; padding-block: .3rem; }
  body[data-page="home"] .method-card-heading { grid-template-columns: 4.4rem minmax(0, 1fr); gap: .9rem; }
  body[data-page="home"] .method-card-art { width: 4.4rem; height: 5.5rem; }
  body[data-page="home"] .method-card .m-name { font-size: 1.2rem; }
  body[data-page="home"] .method-card .m-summary { font-size: .92rem; }

  /* The workbook shelf uses category art beside each sheet name. */
  body[data-page] .ws-index-item {
    gap: 1.2rem;
    background: #fff;
    padding: 1.05rem 1.3rem;
    margin-block: .8rem;
    border: 1px solid var(--material-border);
    border-left: 4px solid #bfd6bd;
    border-radius: 10px;
  }
  body[data-page] .ws-index-item:hover { background: #f6faf1; transform: none; box-shadow: none; }
  body[data-page] .ws-index-item .ws-index-art { width: 4.5rem; height: 4.5rem; padding: .35rem; background: #f2f6ec; border-radius: 8px; }
  .ws-index-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
  body[data-page] .ws-index-item .t { display: inline-block; margin-bottom: .25rem; font-size: 1.15rem; }
  body[data-page] .ws-index-item .m { font-size: .82rem; line-height: 1.7; }

  /* Landscape panels are reserved for page openings; content never sits on the artwork. */
  .method-editorial .method-hero-art,
  body[data-page="guide-static"] .guide-art-panel {
    display: grid;
    place-items: center;
    align-self: center;
    min-height: 18rem;
    padding: 1.5rem 1.25rem 4.5rem;
    background: #f2f7ee url('/assets/town-path/town-path-960.webp') center bottom / 100% auto no-repeat;
    border: 1px solid #d8e4d3;
    border-radius: 16px;
  }
  .method-editorial .method-hero .category-illustration { width: 11.5rem; max-width: 100%; height: 11.5rem; }
  body[data-page="guide-static"] .guide-art-panel .guide-hero-art { width: 11.5rem; max-width: 100%; height: 11.5rem; object-fit: contain; }
  .method-editorial .method-hero,
  body[data-page="guide-static"] .guide-hero { gap: 1.5rem 2.75rem; padding-bottom: 2rem; }
  .method-editorial .method-context { padding: 1rem 1.25rem; background: #f4f8fa; border-radius: 10px; }
  .method-editorial .method-context .editorial-meta { margin-top: 0; }
  .method-editorial .method-context .badge-row { margin-bottom: 0; }
  .method-editorial .diagram-box,
  .method-editorial .method-process-figure,
  .method-editorial .logic-detail-figure {
    background: #fff;
    border: 1px solid var(--material-border);
    border-radius: 12px;
    padding: 1.35rem;
    margin-block: 1rem 1.5rem;
    box-shadow: 0 4px 0 #eef3ed;
  }
  .method-editorial .diagram-box figcaption { margin-top: 1rem; }
  .method-editorial .detail-main :is(h2#overview, h2#steps),
  body[data-page="guide-static"] .guide-main > .guide-related-methods > h2 {
    display: flex;
    gap: .75rem;
    align-items: center;
    border-left: 0;
    padding-left: 0;
  }
  .method-editorial .detail-main :is(h2#overview, h2#steps)::before,
  body[data-page="guide-static"] .guide-main > .guide-related-methods > h2::before {
    content: '';
    flex: 0 0 2.7rem;
    width: 2.7rem;
    height: 2.7rem;
    background: url('/assets/illustrations/idea.webp') center / contain no-repeat;
  }
  .method-editorial .detail-main h2#steps::before { background-image: url('/assets/illustrations/plan.webp'); }
  body[data-page="guide-static"] .guide-main > .guide-related-methods > h2::before { background-image: url('/assets/illustrations/book.webp'); }
  .method-editorial .detail-side .method-toc { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: #f6f9fb; }
  .method-editorial .detail-side .ws-cta,
  body[data-page="guide-static"] .guide-worksheet-entry { padding: 1.25rem; border: 1px solid #d7e3c5; border-radius: 12px; background: #f4f8eb; }

  /* The tools remain on white paper, with the illustrations outside the editable area. */
  .worksheet-art-panel { position: relative; display: grid; place-items: center; min-height: 15rem; padding: 1.1rem 1.5rem 2rem; border: 1px solid #cbdedb; border-radius: 14px; background: #edf5ee; }
  .worksheet-editorial .worksheet-art-panel > .illustration { width: 10rem; max-width: 100%; height: 10rem; object-fit: contain; margin: 0; }
  .worksheet-editorial .worksheet-art-panel > .worksheet-subject-art { position: absolute; right: .45rem; bottom: .45rem; width: 4.5rem; height: 4.5rem; margin: 0; padding: .35rem; border-radius: 50%; background: #fffefa; object-fit: contain; }
  .worksheet-editorial .ws-paper { border-color: #b9cfcd; border-radius: 10px; box-shadow: 0 5px 0 #e7eeec; }
  .worksheet-editorial .ws-toolbar { border: 1px solid #c6dee8; }
  .worksheet-editorial .ws-section h2 { font-family: var(--font-heading); font-weight: 600; line-height: 1.65; }

  /* Chapters keep their reading order and receive a small subject illustration each. */
  body[data-page="guides-static"] .guide-chapter { gap: 2.5rem; }
  body[data-page="guides-static"] .guide-chapter-item + .guide-chapter-item { border-top: 0; margin-top: 1rem; }
  body[data-page="guides-static"] .guide-card { padding: 1.25rem 1.35rem; border: 1px solid var(--material-border); border-radius: 12px; background: #fff; }
  body[data-page="guides-static"] .guide-card:hover { background: #f7faf3; border-color: #9ebbb0; }
  .guide-card-heading { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1rem; align-items: center; margin-bottom: .85rem; }
  .guide-card-art { display: block; width: 4.75rem; height: 5.1rem; padding: .4rem; border-radius: 9px; background: #f0f6e9; object-fit: contain; }
  .guide-card-heading > div { min-width: 0; }
  body[data-page="guides-static"] .guide-card h3 { margin-bottom: 0; font-size: 1.2rem; }
  body[data-page="guides-static"] .guide-card-more { position: static; display: block; width: auto; height: auto; margin-top: 1rem; text-align: right; background: none; }
  body[data-page="guides-static"] .guide-card::after { content: none; }
  body[data-page="guide-static"] .guide-method-card { padding: 1rem; border: 1px solid var(--material-border); border-radius: 10px; background: #fff; }
  .related-method-heading { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .8rem; align-items: start; }
  .related-method-heading > div { min-width: 0; }
  .related-method-art { width: 3.5rem; height: 4rem; object-fit: contain; padding: .25rem; background: #eef5e8; border-radius: 7px; }
  body[data-page="guide-static"] .related-method-heading strong { display: block; font-size: 1.04rem; margin-top: .4rem; }
  .guide-method-summary { display: block; margin-top: .85rem; }
  body[data-page="guide-static"] .guide-main > .guide-section { padding: 0 0 1.5rem; border-bottom: 1px solid #dce7e7; }
  body[data-page="guide-static"] .guide-answer { border-left: 4px solid #9cbcb6; background: #eef6f2; }

  /* Other lower pages use the same material scale, without decorating individual inputs. */
  body:not([data-page="home"]) .editorial-title-art { padding: 1.1rem; border: 1px solid #dce5d4; border-radius: 14px; background: #f2f7e9; }
  .process-step { grid-template-columns: 6rem minmax(0, 1fr); gap: 1.5rem; }
  .process-waypoint { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
  .process-waypoint .p-num { margin: 0; }
  .process-waypoint-art { display: block; width: 6rem; height: 6rem; object-fit: contain; padding: .5rem; background: #edf5ef; border-radius: 12px; }
  .glossary-item { padding: 1.5rem; margin-bottom: 1rem; border: 1px solid #d6e3e0; border-left: 4px solid #a9c9bd; border-radius: 9px; background: #fff; }
  .compare-controls { border: 1px solid #c5dce8; padding: 1.5rem; }
  .wizard-card { border: 1px solid #c8dce2; border-radius: 14px; background: #fff; }
  body[data-page="about"] .operator-card { border: 1px solid #d6e3d1; border-radius: 12px; background: #f5f8f0; }
  .plan-step { border-radius: 12px; border-color: #c5d7d4; }
}

@media screen and (max-width: 760px) {
  body[data-page] .method-card { padding: 1.2rem; }
  .method-card-heading { grid-template-columns: 4.5rem minmax(0, 1fr); gap: .9rem; }
  .method-card-art { width: 4.5rem; height: 5.4rem; }
  body[data-page] .method-card .m-name { font-size: 1.18rem; }
  .method-editorial .method-hero-art,
  body[data-page="guide-static"] .guide-art-panel { width: 100%; min-height: 12rem; padding: .8rem 1rem 3rem; background-size: auto 7rem; }
  .method-editorial .method-hero .category-illustration,
  body[data-page="guide-static"] .guide-art-panel .guide-hero-art { width: 8rem; height: 8rem; max-width: 100%; }
  .method-editorial .method-context { padding: 1rem; }
  .method-editorial .diagram-box,
  .method-editorial .method-process-figure,
  .method-editorial .logic-detail-figure { padding: 1rem; }
  .worksheet-art-panel { min-height: 10rem; max-width: 20rem; width: 100%; margin-inline: auto; }
  .worksheet-editorial .worksheet-art-panel > .illustration { width: 7.5rem; height: 7.5rem; }
  .worksheet-editorial .worksheet-art-panel > .worksheet-subject-art { width: 4rem; height: 4rem; }
  body[data-page="guides-static"] .guide-card { padding: 1rem; }
  .guide-card-heading { grid-template-columns: 3.75rem minmax(0, 1fr); gap: .8rem; }
  .guide-card-art { width: 3.75rem; height: 4.3rem; }
  body[data-page="guides-static"] .guide-card h3 { font-size: 1.13rem; }
  body[data-page] .ws-index-item { padding: 1rem; gap: .8rem; }
  body[data-page] .ws-index-item .ws-index-art { width: 3.4rem; height: 3.8rem; }
  body[data-page] .ws-index-item .t { font-size: 1.05rem; }
  .process-step { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .process-waypoint { flex-direction: row; }
  .process-waypoint-art { width: 4.5rem; height: 4.5rem; }
  .glossary-item { padding: 1.1rem; }
}

@media print {
  .method-card-art, .ws-index-art img, .guide-card-art, .related-method-art,
  .process-waypoint-art, .guide-art-panel, .worksheet-art-panel { display: none !important; }
}

/* References, citation and editorial information share one reading width. */
@media screen {
  .hub-editorial { margin-top: 3.5rem; }
  .hub-editorial .hub-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid #ccdcbf;
    border-left: 5px solid #65915c;
    border-radius: 14px;
    background: #f0f6e8;
  }
  .hub-help-art { flex: 0 0 6rem; width: 6rem; height: 6rem; object-fit: contain; }
  .hub-help-copy { flex: 1 1 28rem; min-width: 0; }
  body[data-page] .hub-help h2 { margin: 0 0 .6rem; font-size: 1.3rem; }
  .hub-help p { font-size: 1rem; line-height: 1.9; margin: 0 0 1.1rem; }
  .hub-help-copy > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding: .5rem .9rem;
    border: 1px solid #9bb6a6;
    border-radius: 7px;
    background: #fff;
    font-size: .94rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
    text-underline-offset: .2em;
  }
  .hub-help-copy > a:hover { background: #e8f5fc; border-color: #527a92; }
  .hub-editorial > .editorial-meta {
    gap: .55rem 1.5rem;
    align-items: center;
    margin: 1rem 0 1.5rem;
    padding: .8rem .1rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: .9rem;
    line-height: 1.85;
  }
  .hub-editorial > .editorial-meta a { display: inline-flex; align-items: center; min-height: 40px; }
  body[data-page] .page-citation {
    max-width: none;
    margin: 1.5rem 0 2.5rem;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    border: 1px solid #cadde3;
    border-top: 4px solid #8bb7c7;
    border-radius: 12px;
    background: #fff;
  }
  .citation-heading { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.15rem; }
  .citation-heading img { flex: 0 0 3.5rem; width: 3.5rem; height: 3.5rem; object-fit: contain; }
  body[data-page] .citation-heading h2 { margin: 0; padding: 0; border: 0; font-size: 1.3rem; }
  .citation-layout { display: flex; flex-wrap: wrap; align-items: start; gap: 1.4rem 1.8rem; }
  .citation-content { flex: 2 1 26rem; min-width: 0; }
  .citation-notes { flex: 1 1 17rem; min-width: 0; }
  .page-citation .citation-text {
    margin: 0 0 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #d4e5ec;
    border-radius: 8px;
    background: #eef6f9;
    font-size: .98rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
  }
  .page-citation .citation-copy { min-height: 44px; font-size: .94rem; background: #fff; }
  .page-citation .citation-status { display: block; margin-top: .65rem; font-size: .9rem; line-height: 1.8; }
  .page-citation .citation-status:empty { display: none; }
  .page-citation .citation-help { margin: 0; font-size: .9rem; line-height: 1.9; }
  .citation-notes > p:not(.citation-help) { margin: 1rem 0 0; font-size: .92rem; line-height: 1.8; }
  .citation-notes > p > a { display: inline-block; padding-block: .4rem; }
  .page-citation .changelog { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
  .page-citation .changelog summary { width: fit-content; min-height: 44px; padding: .35rem 0; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; line-height: 1.7; }
  .page-citation .changelog ul { margin: .5rem 0 0; padding-left: 1.3rem; font-size: .9rem; line-height: 1.9; }
  .page-citation .changelog li + li { margin-top: .65rem; }
  .source-list { padding: clamp(1.2rem, 2.5vw, 2rem); border-color: #d2dfd6; border-radius: 12px; background: #fbfcf7; }
  body[data-page] .source-list > h2 { display: flex; align-items: center; gap: .8rem; padding-left: 0; border-left: 0; }
  .source-list > h2::before { content: ''; flex: 0 0 2.7rem; width: 2.7rem; height: 2.7rem; background: url('/assets/illustrations/book.webp') center / contain no-repeat; }
  .source-list ol { margin-bottom: 0; padding-left: 1.4rem; }
  .source-list li { padding: .5rem 0 1.1rem .35rem; border-bottom: 1px solid #dce6dc; }
  .source-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .source-list li::marker { font-weight: 600; color: #376244; }
  .source-list .source-link { font-size: 1rem; font-weight: 600; line-height: 1.75; }
  .source-list .source-bibliography, .source-list small { font-size: .875rem; line-height: 1.8; }
  .source-list dl { grid-template-columns: 6em minmax(0, 1fr); gap: .55rem 1rem; margin: .9rem 0; font-size: .95rem; line-height: 1.85; }
  .source-list dt { font-weight: 600; }
  .source-list dd { min-width: 0; }

  /* The reference catalogue is a wide reading page; related work follows the catalogue. */
  body[data-page="evidence"] main > .container { max-width: 66rem; }
  body[data-page="evidence"] .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  body[data-page="evidence"] .evidence-editorial-hero { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: .6rem 2rem; padding: 1rem 0 2rem; border-bottom: 0; }
  body[data-page="evidence"] .evidence-editorial-hero > :is(.guide-kicker,h1,.guide-description) { grid-column: 1; }
  body[data-page="evidence"] .evidence-editorial-hero .editorial-title-art {
    position: static;
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    width: 100%;
    max-width: none;
    height: 16rem;
    padding: 1.25rem 1.4rem 4.5rem;
    margin: 0;
    border: 1px solid #d0dfcf;
    border-radius: 14px;
    background: #f3f7ed url('/assets/town-path/town-path-960.webp') center bottom / auto 5rem no-repeat;
  }
  body[data-page="evidence"] .guide-kicker { align-self: end; color: #3a6958; font-size: .92rem; font-weight: 600; letter-spacing: 0; }
  body[data-page="evidence"] .evidence-editorial-hero h1 { margin: 0; font-size: clamp(1.9rem, 3.5vw, 2.8rem); line-height: 1.5; }
  body[data-page="evidence"] .guide-description { margin: .5rem 0 0; line-height: 1.9; }
  body[data-page="evidence"] .evidence-editorial-hero .editorial-meta { grid-column: 1 / -1; margin-bottom: 0; font-size: .88rem; }
  body[data-page="evidence"] .guide-answer { margin: 0 0 1.5rem; padding: 1.35rem 1.5rem; border: 1px solid #c8dfe8; border-left: 4px solid #7ba6b6; border-radius: 10px; background: #edf6f9; }
  body[data-page="evidence"] .guide-answer > span { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
  body[data-page="evidence"] .guide-answer p { font-size: 1rem; line-height: 1.9; }
  body[data-page="evidence"] .guide-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.4rem; padding: 1.35rem 1.5rem; margin: 0 0 2.7rem; background: #f3f7ed; border-color: #d0dfcf; border-radius: 10px; }
  body[data-page="evidence"] .guide-toc strong { grid-column: 1 / -1; color: var(--ink); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
  body[data-page="evidence"] .guide-toc a { display: flex; align-items: center; min-height: 44px; padding: .4rem 0; border-bottom: 1px solid #d4e2d2; font-size: .96rem; font-weight: 600; line-height: 1.75; }
  body[data-page="evidence"] .guide-main > .guide-section { margin: 0 0 3rem; }
  body[data-page="evidence"] .guide-main > .guide-section > h2 { display: flex; gap: .8rem; align-items: center; margin: 0 0 1rem; padding: 0; border-left: 0; font-size: 1.5rem; }
  body[data-page="evidence"] .guide-main > .guide-section > h2::before { content: ''; flex: 0 0 3rem; width: 3rem; height: 3rem; background: url('/assets/illustrations/plan.webp') center / contain no-repeat; }
  body[data-page="evidence"] #claims > h2::before { background-image: url('/assets/illustrations/category-analysis.webp'); }
  body[data-page="evidence"] #sources > h2::before { background-image: url('/assets/illustrations/book.webp'); }
  body[data-page="evidence"] #updates > h2::before { background-image: url('/assets/illustrations/worksheet.webp'); }
  body[data-page="evidence"] .guide-section > p { font-size: 1rem; line-height: 1.95; }
  body[data-page="evidence"] #scope .guide-list { padding: 1.3rem 1.6rem 1.3rem 2.7rem; border: 1px solid #d3e0e3; border-radius: 12px; box-shadow: none; font-size: .98rem; line-height: 1.9; }
  body[data-page="evidence"] #scope .guide-list li + li { margin-top: .9rem; }
  body[data-page="evidence"] .guide-table-wrap { padding: 0; border-color: #c4d8dd; border-radius: 10px; background: #fff; box-shadow: none; }
  body[data-page="evidence"] .guide-table caption { padding: 1rem 1.2rem; text-align: left; font-size: 1rem; font-weight: 600; }
  body[data-page="evidence"] .guide-table :is(th,td) { font-size: .96rem; line-height: 1.85; padding: 1rem 1.1rem; }
  body[data-page="evidence"] .guide-table thead th { font-family: var(--font-heading); font-weight: 600; }
  body[data-page="evidence"] .guide-table tbody th { background: #f0f6e8; color: var(--ink); font-weight: 600; }
  body[data-page="evidence"] #sources > .guide-section { margin: 1.5rem 0; padding: 1.5rem 1.7rem; border: 1px solid #cfdfd5; border-top: 4px solid #a8c5b0; border-radius: 12px; background: #fff; }
  body[data-page="evidence"] #sources > .guide-section h3 { margin: 0 0 .6rem; font-size: 1.25rem; line-height: 1.6; overflow-wrap: anywhere; }
  body[data-page="evidence"] #sources > .guide-section > p { margin: 0 0 1rem; color: #506476; font-size: .92rem; }
  body[data-page="evidence"] .example-fields { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .85rem 1.25rem; margin: 0; padding-top: 1rem; border-top: 1px solid #e1eae4; font-size: .96rem; line-height: 1.9; }
  body[data-page="evidence"] .example-fields dt { margin: 0; color: #315c4c; font-weight: 600; }
  body[data-page="evidence"] .example-fields dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
  body[data-page="evidence"] .guide-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 0; }
  body[data-page="evidence"] .guide-summary-box { padding: 1.4rem; border: 1px solid #d0dfcf; border-radius: 12px; background: #f2f7ed; box-shadow: none; }
  body[data-page="evidence"] .guide-summary-box h2 { font-size: 1.2rem; }
  body[data-page="evidence"] .guide-side-links { display: grid; gap: .7rem; font-size: .98rem; line-height: 1.8; }
  body[data-page="evidence"] .guide-side-links a { padding-block: .35rem; }
  body[data-page="evidence"] .guide-summary-box p { font-size: 1rem; line-height: 1.9; }

  body[data-page="about"] .about-editorial-section { padding: clamp(1.2rem, 3vw, 2rem); margin-block: 2.5rem; border: 1px solid #c8dcd4; border-radius: 14px; background: #f1f7ee; }
  body[data-page="about"] .about-editorial-section h2#editorial { display: flex; align-items: center; gap: .8rem; margin-top: 0; padding-left: 0; border-left: 0; font-size: 1.45rem; }
  .about-editorial-section h2#editorial::before { content: ''; flex: 0 0 3rem; width: 3rem; height: 3rem; background: url('/assets/illustrations/plan.webp') center / contain no-repeat; }
  .about-editorial-section .about-labels { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.2rem 1.4rem; padding: 1.3rem; margin-block: 1.5rem; border: 1px solid #d8e3df; border-radius: 9px; background: #fff; font-size: .96rem; line-height: 1.9; }
  .about-editorial-section .about-labels dt { margin: 0; font-weight: 600; color: #315c4c; }
  .about-editorial-section .about-labels dd { min-width: 0; margin: 0; }
  body[data-page] main :is(.page-citation,.hub-help,.source-list,.about-editorial-section) a:focus-visible { outline: 3px solid #145f8a; outline-offset: 4px; }
}

@media screen and (max-width: 760px) {
  .hub-help-art { flex-basis: 4.5rem; width: 4.5rem; height: 4.5rem; }
  .hub-editorial .hub-help { gap: .8rem; }
  .hub-help-copy { flex-basis: 100%; }
  .citation-heading { align-items: start; gap: .75rem; }
  .citation-heading img { flex-basis: 2.7rem; width: 2.7rem; height: 2.7rem; }
  body[data-page] .citation-heading h2 { font-size: 1.15rem; }
  .page-citation .citation-text { padding: 1rem; }
  .source-list dl { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .source-list dt:not(:first-child) { margin-top: .75rem; }
  body[data-page="evidence"] .evidence-editorial-hero { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  body[data-page="evidence"] .evidence-editorial-hero .editorial-title-art { grid-column: 1; grid-row: 4; width: 100%; max-width: 20rem; height: 12rem; padding: .9rem 1.2rem 3.2rem; justify-self: center; }
  body[data-page="evidence"] .evidence-editorial-hero .editorial-meta { grid-row: 5; }
  body[data-page="evidence"] .guide-toc { grid-template-columns: minmax(0, 1fr); }
  body[data-page="evidence"] .guide-answer, body[data-page="evidence"] .guide-toc { padding: 1.15rem; }
  body[data-page="evidence"] #sources > .guide-section { padding: 1.2rem; }
  body[data-page="evidence"] .example-fields { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  body[data-page="evidence"] .example-fields dt:not(:first-child) { margin-top: .8rem; }
  body[data-page="evidence"] .guide-side { grid-template-columns: minmax(0, 1fr); }
  .about-editorial-section .about-labels { grid-template-columns: minmax(0, 1fr); gap: .3rem; padding: 1rem; }
  .about-editorial-section .about-labels dt:not(:first-child) { margin-top: 1rem; }
}

@media print { .hub-help-art { display: none !important; } }

/* The guide overviews carry their meaning in reflowable text, with optional artwork. */
.guide-visual {
  container: guide-overview / inline-size;
  margin: 1.8rem 0 2.5rem;
  padding: clamp(1rem, 2vw, 1.6rem);
  border: 1px solid #c7dcd4;
  border-top: 4px solid #78a88f;
  border-radius: 12px;
  background: #f5f9f0;
  color: var(--ink);
  scroll-margin-top: 6rem;
}
body[data-page="guide-static"] .guide-visual h2 {
  margin: 0 0 1.4rem;
  padding: 0;
  border: 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.65;
  text-align: left;
}
.guide-visual .guide-visual-nodes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-visual .guide-visual-node,
.guide-visual-result {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid #c3d8db;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}
.guide-visual .guide-visual-node:nth-child(even) { background: #eef6fa; }
.guide-visual .guide-visual-art { display: block; width: 3.5rem; height: 3.5rem; margin: 0; object-fit: contain; }
.guide-visual-copy { min-width: 0; }
.guide-visual .guide-visual-copy strong { display: block; color: #153f5b; font-family: var(--font-heading); font-size: 1.03rem; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.guide-visual .guide-visual-copy p { margin: .35rem 0 0; color: #405b68; font-size: .92rem; line-height: 1.8; overflow-wrap: anywhere; }
.guide-visual-arrow { position: absolute; left: calc(50% - .8rem); top: calc(100% + .05rem); display: grid; place-items: center; width: 1.6rem; height: 1.85rem; color: #527b72; font-size: 1.35rem; font-weight: 600; line-height: 1; }
.guide-visual-flow .guide-visual-arrow { transform: rotate(90deg); }
.guide-visual-set .guide-visual-nodes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1rem; }
.guide-visual-compare .guide-visual-nodes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.guide-visual-converge .guide-visual-nodes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 1rem; }
.guide-visual-set .guide-visual-node,
.guide-visual-compare .guide-visual-node,
.guide-visual-converge .guide-visual-node { display: block; }
.guide-visual-set .guide-visual-art,
.guide-visual-compare .guide-visual-art,
.guide-visual-converge .guide-visual-art { margin-bottom: .7rem; }
.guide-visual-merge { display: grid; place-items: center; height: 2.4rem; color: #527b72; font-size: 1.5rem; line-height: 1; }
.guide-visual-result { border-color: #adc8b4; border-left: 4px solid #78a88f; background: #e9f3df; }
.guide-visual .guide-visual-context { margin: 1.2rem 0 0; padding: .8rem 1rem; border: 1px dashed #9db7a6; border-radius: 6px; background: #fffefa; font-size: .95rem; line-height: 1.85; }
.guide-visual .guide-visual-note { margin: 1.2rem 0 0; color: #445d65; font-size: .9rem; line-height: 1.9; }
.guide-visual-note a { display: inline-block; margin-top: .25rem; padding-block: .3rem; text-underline-offset: .18em; }
.guide-visual-note a:focus-visible { outline: 3px solid #145f8a; outline-offset: 3px; }

@container guide-overview (max-width: 18rem) {
  .guide-visual .guide-visual-node, .guide-visual .guide-visual-result { display: block; }
  .guide-visual .guide-visual-art { margin-bottom: .7rem; }
}
@container guide-overview (min-width: 30rem) {
  .guide-visual-count-3.guide-visual-flow .guide-visual-nodes,
  .guide-visual-equation .guide-visual-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
  .guide-visual-count-3.guide-visual-flow .guide-visual-node,
  .guide-visual-equation .guide-visual-node { display: block; }
  .guide-visual-count-3.guide-visual-flow .guide-visual-art,
  .guide-visual-equation .guide-visual-art { margin-bottom: .7rem; }
  .guide-visual-count-3.guide-visual-flow .guide-visual-arrow,
  .guide-visual-equation .guide-visual-arrow { left: calc(100% + .1rem); top: calc(50% - .925rem); transform: none; }
}
@container guide-overview (min-width: 34rem) {
  .guide-visual-count-6.guide-visual-set .guide-visual-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-visual-count-4.guide-visual-flow .guide-visual-nodes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem; }
  .guide-visual-count-4.guide-visual-flow .guide-visual-node { display: block; padding: .8rem; }
  .guide-visual-count-4.guide-visual-flow .guide-visual-art { margin-bottom: .7rem; }
  .guide-visual-count-4.guide-visual-flow .guide-visual-arrow { left: calc(100% + .1rem); top: calc(50% - .925rem); transform: none; }
}
@container guide-overview (min-width: 42rem) {
  .guide-visual-count-5.guide-visual-flow .guide-visual-nodes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .guide-visual-count-5.guide-visual-flow .guide-visual-node { display: block; padding: .75rem; }
  .guide-visual-count-5.guide-visual-flow .guide-visual-art { margin-bottom: .7rem; }
  .guide-visual-count-5.guide-visual-flow .guide-visual-arrow { left: calc(100% - .05rem); top: calc(50% - .925rem); transform: none; }
}
@media print {
  .citation-heading img, .guide-visual-art { display: none !important; }
  .guide-visual { margin: 1rem 0; padding: 1rem; border: 1px solid #777; background: #fff; break-inside: avoid; box-shadow: none; }
  .guide-visual .guide-visual-node, .guide-visual-result { display: block; background: #fff; border-color: #888; }
  .guide-visual .guide-visual-copy strong { font-family: var(--font-body); font-weight: 600; }
  .guide-visual .guide-visual-note a { display: none; }
}
