/* Screen edition: use type, space and image scale to distinguish relationships. */
@media screen {
  :root { --paper:#faf9f6; --ink:#272a27; --muted:#626760; --editorial-wash:#eeeee7; --photo-measure:960px; }
  body { background:var(--paper); }
  .reader-bar { background:var(--paper); }
  .page { --entry-space:40px; }
  .page.chapter-start { --entry-space:76px; }
  .page .reading-header { margin-bottom:20px; }
  .page .reading-header h2 { font-size:clamp(28px,3vw,38px); font-weight:500; line-height:1.5; letter-spacing:-.025em; }
  .page .reading-header h3 { font-size:clamp(21px,2vw,26px); font-weight:500; line-height:1.5; letter-spacing:-.015em; }
  .cover-content { padding-top:40px; }
  .cover h1, :lang(en) .cover h1 { font-size:clamp(32px,3.8vw,50px); font-weight:500; line-height:1.4; margin-bottom:28px; }
  .cover img { max-width:1120px; aspect-ratio:2/1; }
  .story-lead-media { width:min(960px,calc(100vw - 64px)); max-width:none; margin:0 0 44px 50%; transform:translateX(-50%); }
  .story-lead-media .photo { aspect-ratio:16/9; }
  .split-layout, .photo-wide { gap:40px; }
  .split-layout .body { width:100%; }
  .split-layout figure, .photo-wide figure { width:min(960px,calc(100vw - 64px)); max-width:none; margin-left:50%; transform:translateX(-50%); }
  .split-layout .photo, .photo-wide .photo { aspect-ratio:16/9; }
  .photo-caption { max-width:700px; margin:10px auto 0; }

  .page .story-panel { width:min(900px,calc(100vw - 64px)); max-width:none; margin:32px 0 12px 50%; transform:translateX(-50%); }
  .story-table { border:0; }
  .story-table thead th { border:0; padding:0 24px 16px; color:var(--muted); }
  .story-table tbody tr { border:0; background:var(--editorial-wash); }
  .story-table tbody tr:nth-child(even) { background:#f4f3ee; }
  .story-table tbody th, .story-table tbody td { border:0; padding:22px 24px; }
  .story-table tbody th { font-weight:500; }
  .story-table tbody td:last-child { padding-right:24px; }
  .story-panel[data-story-treatment="calculation"] tbody td:last-child { font-size:1.375em; font-weight:500; letter-spacing:-.02em; }
  .story-panel[data-story-treatment="calculation"] tbody th { font-weight:500; }

  .story-items { gap:32px; }
  .story-item { border:0; padding-top:0; }
  .page .story-title { font-size:1.35rem; font-weight:500; margin-bottom:12px; }
  .story-panel[data-relationship="ordered"] .story-items { gap:32px; padding:0; border:0; }
  .story-panel[data-relationship="ordered"] .story-item { padding:0; border:0; }
  .story-panel[data-relationship="ordered"] .story-item::before { content:none; }
  .story-timeline { padding:32px!important; background:var(--editorial-wash); }
  .story-timeline .story-title { font-size:1.4rem; }

  .page .body .editorial-refined .visual-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; padding:0; border:0; }
  .page .body .editorial-refined .visual-items > li { display:block; padding:0; border:0; }
  .page .editorial-refined .visual-copy { display:block; }
  .page .editorial-refined .visual-copy h3 { font-size:1.4rem; font-weight:500; line-height:1.5; margin:0 0 14px; }
  .page .editorial-refined .visual-copy p { margin:0; }
  .page .editorial-refined .visual-items > li::before,
  .page .editorial-refined .visual-items > li::after { content:none; }
  .page .editorial-refined.visual-path .visual-items { grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px; }
  .page .editorial-refined .visual-copy .term { display:block; font-size:2.6rem; line-height:1; font-weight:400; color:#727c70; margin-bottom:18px; letter-spacing:-.05em; }
  .page .editorial-refined.visual-path { width:min(900px,calc(100vw - 64px)); margin:36px 0 12px 50%; transform:translateX(-50%); }
  .page .editorial-refined.visual-decision { margin:32px 0 12px; padding:32px; background:var(--editorial-wash); }

  .page .body > .data-table { border:0; }
  .data-table th, .data-table td { border-bottom:0; padding:18px 16px; }
  .data-table th:first-child, .data-table td:first-child { padding-left:16px; }
  .data-table thead th { padding-top:0; background:transparent; }
  .data-table tbody tr:nth-child(odd) { background:var(--editorial-wash); }
  .decision, .record, .record > div { border:0; }
  .record { gap:20px 32px; }
  .record > div { padding:0; }
  .source-reading { border:0; padding-top:12px; }
  .references li { border:0; }
  .sample-next { border:0; background:var(--editorial-wash); margin-top:56px; }
}
@media screen and (max-width:700px) {
  .page { --entry-space:32px; padding-inline:24px; }
  .page.chapter-start { --entry-space:56px; }
  .page .reading-header h2 { font-size:28px; }
  .page .reading-header h3 { font-size:22px; }
  .cover-content { padding:28px 24px 0; }
  .cover h1, :lang(en) .cover h1 { font-size:32px; }
  .cover img { aspect-ratio:3/2; }
  .story-lead-media, .split-layout figure, .photo-wide figure { width:calc(100vw - 32px); margin-bottom:30px; }
  .page .story-panel, .page .editorial-refined.visual-path { width:100%; margin:28px 0 12px; transform:none; }
  .page .body .editorial-refined .visual-items { grid-template-columns:1fr; gap:26px; }
  .page .editorial-refined .visual-copy { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); gap:0 20px; align-items:baseline; }
  .page .editorial-refined .visual-copy h3 { font-size:1.25rem; margin:0; }
  .page .editorial-refined.visual-decision { padding:24px 20px; }
  .page .editorial-refined.visual-path .visual-items { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 24px; }
  .page .editorial-refined.visual-path .visual-copy { display:block; }
  .page .editorial-refined.visual-path .visual-copy h3 { margin-bottom:10px; }
  .page .editorial-refined .visual-copy .term { font-size:2.2rem; margin-bottom:14px; }
  .story-panel[data-relationship="ordered"] .story-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 22px; }
  .story-timeline { padding:24px 20px!important; }
  .story-timeline .story-title { font-size:1.2rem; }
  .story-table thead th { padding:0 12px 12px; }
  .story-table tbody th, .story-table tbody td { padding:16px 12px; }
  .story-table tbody td:last-child { padding-right:12px; }
  .story-table[data-columns="3"] tbody tr { padding:16px 4px; gap:6px 8px; }
  .story-table[data-columns="3"] tbody tr > :first-child { padding-top:0; }
  .story-table[data-columns="3"] thead { border:0; }
  .story-table[data-columns="3"] thead th { padding-left:12px; }
  .data-table th, .data-table td { padding:14px 10px; }
  .data-table th:first-child, .data-table td:first-child { padding-left:10px; }
  .sample-next { padding:28px 24px; margin-inline:16px; }
}
@media screen and (max-width:360px) {
  .page .editorial-refined .visual-copy { grid-template-columns:1fr; gap:10px; }
  .page .editorial-refined.visual-decision { padding:22px 18px; }
}
