/* Single-column reading layouts; opt-in only. Content, links and the site shell stay intact. */
body.reading-layout-page {
  --document-ink: #183044;
  --document-copy: #344d61;
  --document-muted: #53697c;
  --document-accent: #086b85;
  --document-line: #cddce5;
  --document-surface: #edf4f8;
  --document-head: #e5eff5;
  --document-focus: #087d98;
  --document-width: 840px;
}
html body.reading-layout-page main.article {
  width: min(var(--document-width), calc(100% - 64px));
  max-width: var(--document-width);
  margin-inline: auto;
  padding-top: 134px;
  padding-bottom: 64px;
  overflow: visible;
}
html body.reading-layout-page.content-ui main.article > :is(h1,p) {
  width: 100%;
  max-width: none;
  margin-inline: 0 !important;
}
html body.reading-layout-page main.article > .eyebrow {
  margin-bottom: 18px;
  color: var(--document-accent);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 650;
}
html[lang="zh-CN"] body.reading-layout-page main.article > h1 {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: clamp(32px, 3.2vw, 40px);
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--document-ink);
}
html body.reading-layout-page main.article > .article-summary {
  margin-top: 26px;
  margin-bottom: 0;
  color: var(--document-copy);
  font-size: 18px;
  font-weight: 450;
  line-height: 1.95;
}
html body.reading-layout-page main.article :is(.article-trustline,.meta) {
  gap: 2px 14px;
  color: var(--document-muted);
  font-size: 14px;
  line-height: 1.8;
}
html body.reading-layout-page main.article .article-trustline > span:nth-child(2) {
  flex-basis: 100%;
  order: 1;
}
html body.reading-layout-page main.article a:not(.button):not(.reading-download-action) {
  color: var(--document-accent);
  text-decoration: none !important;
  text-underline-offset: 4px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
html body.reading-layout-page main.article a:not(.button):hover {
  color: var(--document-ink);
}
html body.reading-layout-page main.article :is(a,summary,button):focus-visible {
  outline: 3px solid var(--document-focus) !important;
  outline-offset: 4px;
  border-radius: 3px;
}
html body.reading-layout-page main.article :is(h2,h3,section)[id] {
  scroll-margin-top: 120px;
}
html body.reading-layout-page .reading-document-layout {
  display: block;
  margin-top: 32px;
}
html body.reading-layout-page .reading-document-layout > .reading-toc {
  position: static;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0 0 40px;
  padding: 0;
  border: 0;
  border-block: 1px solid var(--document-line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
html body.reading-layout-page .reading-document-layout .reading-toc summary {
  min-height: 48px;
  padding: 12px 0;
  color: var(--document-ink);
  font-size: 15px;
  line-height: 1.6;
}
html body.reading-layout-page .reading-document-layout .reading-toc summary span {
  display: inline;
  margin: 0 0 0 12px;
  color: var(--document-muted);
  font-size: 13px;
}
html body.reading-layout-page .reading-document-layout .reading-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
html body.reading-layout-page .reading-document-layout .reading-toc li { margin: 0; padding: 0; }
html body.reading-layout-page main.article .reading-toc a {
  display: block;
  min-height: 44px;
  margin: 0;
  padding: 10px 4px;
  border: 0;
  border-radius: 3px;
  color: var(--document-muted);
  font-size: 14px;
  font-weight: 450 !important;
  line-height: 1.65;
}
html body.reading-layout-page main.article .reading-toc a:hover,
html body.reading-layout-page main.article .reading-toc a[aria-current="location"] {
  color: var(--document-accent);
  background: var(--document-surface);
}
html body.reading-layout-page main.article .reading-toc a[aria-current="location"] { font-weight: 700 !important; }
html body.reading-layout-page .reading-document-body { min-width: 0; }
html body.reading-layout-page main.article .reading-chapter,
html body.reading-layout-page main.article .reading-chapter.section {
  display: block;
  width: auto;
  max-width: none;
  margin: 0 0 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
html body.reading-layout-page main.article .reading-chapter > :is(p,ul,ol,h2,h3),
html body.reading-layout-page main.article .reading-document-body > :is(p,ul,ol,h2,h3) {
  max-width: 100%;
  margin-inline: 0;
}
html body.reading-layout-page main.article .reading-chapter :is(p,li) {
  color: var(--document-copy);
  font-size: 18px;
  line-height: 1.9;
}
html body.reading-layout-page main.article .reading-chapter p { margin-block: 0 20px; }
html body.reading-layout-page main.article .reading-chapter h2 {
  max-width: 100%;
  margin: 0 0 20px;
  padding: 0;
  color: var(--document-ink);
  font-size: 27px;
  line-height: 1.5;
  text-wrap: balance;
  border: 0;
}
html body.reading-layout-page main.article .reading-chapter h2::after { display: none !important; content: none !important; }
html body.reading-layout-page main.article .reading-title-unit { display: inline-block; white-space: nowrap; }
html body.reading-layout-page main.article .reading-chapter h3 {
  margin: 28px 0 12px;
  color: var(--document-ink);
  font-size: 20px;
  line-height: 1.55;
}
html body.reading-layout-page main.article .reading-chapter :is(ul,ol):not(.reading-task-steps) { padding-left: 24px; }
html body.reading-layout-page main.article .reading-chapter li { margin-bottom: 10px; }
html body.reading-layout-page main.article .reading-evidence-figure,
html body.reading-layout-page main.article .article-context-figure {
  display: block;
  width: 100%;
  max-width: none;
  margin: 28px 0 36px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
html body.reading-layout-page main.article .reading-evidence-figure :is(a,picture) { display: block; width: 100%; }
html body.reading-layout-page main.article .reading-evidence-figure img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
html body.reading-layout-page main.article .reading-evidence-figure figcaption {
  display: block;
  max-width: 100%;
  margin: 12px 0 0;
  padding: 0;
  color: var(--document-muted);
  font-size: 14px;
  line-height: 1.85;
  background: none;
  position: static;
}
html body.reading-layout-page main.article .reading-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 20px 0 28px;
  border: 1px solid var(--document-line);
  border-radius: 6px;
  box-shadow: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: auto;
}
html body.reading-layout-page main.article .table-scroll-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 12px 0 8px;
}
html body.reading-layout-page main.article .table-scroll-controls[hidden] { display: none; }
html body.reading-layout-page main.article .table-scroll-controls button {
  min-width: 88px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--document-line);
  border-radius: 5px;
  background: var(--document-surface);
  color: var(--document-accent);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}
html body.reading-layout-page main.article .table-scroll-controls button[aria-disabled="true"] {
  color: var(--document-muted);
  background: transparent;
  cursor: default;
}
html body.reading-layout-page main.article .table-scroll-controls button:not([aria-disabled="true"]):hover {
  background: var(--document-head);
  color: var(--document-ink);
}
html body.reading-layout-page main.article .table-scroll-controls + .reading-table-wrap { margin-top: 0; }
html body.reading-layout-page main.article .reading-table-wrap:focus-visible {
  outline: 3px solid var(--document-focus) !important;
  outline-offset: -3px;
}
html body.reading-layout-page main.article .table-scroll-hint { display: none; }
/* Five/six-column comparisons exceed the reading measure even on desktop. */
html body.reading-layout-page main.article .table-scroll-hint:has(+ .reading-table-wrap .reading-table[data-columns="5"]),
html body.reading-layout-page main.article .table-scroll-hint:has(+ .reading-table-wrap .reading-table[data-columns="6"]),
html body.reading-layout-page main.article .table-scroll-hint:has(+ .table-scroll-controls + .reading-table-wrap .reading-table[data-columns="5"]),
html body.reading-layout-page main.article .table-scroll-hint:has(+ .table-scroll-controls + .reading-table-wrap .reading-table[data-columns="6"]) {
  display: block;
  color: var(--document-muted);
  font-size: 14px;
}
html body.reading-layout-page main.article .reading-table {
  width: 100%;
  min-width: 680px;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
}
html body.reading-layout-page main.article .reading-table[data-columns="2"] { min-width: 0; }
html body.reading-layout-page main.article .reading-table[data-columns="4"] { min-width: 800px; }
html body.reading-layout-page main.article .reading-table[data-columns="5"] { min-width: 940px; }
html body.reading-layout-page main.article .reading-table[data-columns="6"] { min-width: 1020px; }
html body.reading-layout-page main.article .reading-table :is(td,th) {
  padding: 17px 18px;
  border: 0;
  border-bottom: 1px solid var(--document-line);
  color: var(--document-copy);
  font-size: 15px;
  line-height: 1.85;
  vertical-align: top;
  overflow-wrap: anywhere;
}
html body.reading-layout-page main.article .reading-table tbody tr:last-child > * { border-bottom: 0; }
html body.reading-layout-page main.article .reading-table thead th {
  color: var(--document-ink);
  background: var(--document-head);
  font-weight: 700;
}
html body.reading-layout-page main.article .reading-table tbody th {
  color: var(--document-ink);
  background: var(--document-surface);
  font-weight: 650;
}
/* Keep the comparison key visible when any table is scrolled, on every viewport. */
html body.reading-layout-page main.article .reading-table tbody th:first-child,
html body.reading-layout-page main.article .reading-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 1px solid var(--document-line);
}
html body.reading-layout-page main.article .reading-table thead th:first-child { z-index: 2; }
html body.reading-layout-page main.article .reading-table tbody td,
html body.reading-layout-page main.article .reading-table tbody tr:nth-child(even) td { background: transparent; }
html body.reading-layout-page .reading-task-steps {
  display: block !important;
  margin: 24px 0 !important;
  padding: 0 !important;
  list-style: none;
  counter-reset: reading-step;
}
html body.reading-layout-page main.article .reading-task-steps > li {
  position: relative;
  counter-increment: reading-step;
  margin: 0 !important;
  padding: 18px 0 18px 44px;
  border: 0;
  border-top: 1px solid var(--document-line);
}
html body.reading-layout-page main.article .reading-task-steps > li::before {
  content: counter(reading-step);
  position: absolute;
  left: 0;
  top: 19px;
  color: var(--document-accent);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 650;
}
html body.reading-layout-page main.article .reading-answer-list {
  display: block;
  margin: 0;
  padding: 0;
}
html body.reading-layout-page main.article .reading-answer,
html body.reading-layout-page main.article .reading-faq article {
  display: block;
  margin: 0;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--document-line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  min-height: 0;
}
html body.reading-layout-page main.article .reading-answer h3,
html body.reading-layout-page main.article .reading-faq article h3 { margin-top: 0; }
html body.reading-layout-page main.article .reading-answer p:last-child { margin-bottom: 0; }
html body.reading-layout-page main.article .reading-chapter .section-heading { display: block; margin-bottom: 20px; }
html body.reading-layout-page main.article .reading-chapter .section-heading h2 { font-size: 27px; }
html body.reading-layout-page main.article .reading-download-section {
  padding: 26px;
  background: var(--document-surface);
  border-radius: 8px;
}
html body.reading-layout-page main.article .reading-download-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 5px;
  background: var(--document-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.7;
  text-decoration: none !important;
}
html body.reading-layout-page main.article .reading-download-action:hover { background: #054e65; color: #fff; }
html body.reading-layout-page .reading-paired-sections {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px 36px;
  margin-bottom: 46px;
}
html body.reading-layout-page main.article .reading-paired-sections > .reading-chapter {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--document-line);
}
html body.reading-layout-page main.article .reading-paired-sections h2 { font-size: 22px; }
html body.reading-layout-page main.article .reading-paired-sections p { font-size: 16px; }
@media (max-width: 1000px) {
  html body.reading-layout-page main.article .table-scroll-hint { display: block; color: var(--document-muted); font-size: 14px; }
  html body.reading-layout-page main.article { width: calc(100% - 48px); }
}
@media (max-width: 760px) {
  body.reading-layout-page {
    --document-ink: #f2f7fc;
    --document-copy: #dae6f3;
    --document-muted: #adbed1;
    --document-accent: #7ce2f7;
    --document-line: #31465e;
    --document-surface: #10233a;
    --document-head: #19324b;
    --document-focus: #7ce2f7;
  }
  html body.reading-layout-page:not(.home-page) main.article {
    width: calc(100% - 36px) !important;
    max-width: 600px !important;
    margin-inline: auto;
    padding-top: 100px;
    padding-bottom: 56px;
  }
  html body.reading-layout-page:not(.home-page) main.article > :is(h1,p) {
    width: auto;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  html body.reading-layout-page:not(.home-page) main.article > .eyebrow {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    color: var(--document-muted) !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
  html[lang="zh-CN"] body.reading-layout-page:not(.home-page) main.article > h1 {
    margin: 0 0 20px !important;
    color: var(--document-ink) !important;
    font-size: clamp(25px,6.8vw,30px) !important;
    line-height: 1.45 !important;
  }
  html body.reading-layout-page:not(.home-page) main.article > :is(.meta,.article-trustline) {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 0 0 24px !important;
    color: var(--document-muted) !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
  }
  html body.reading-layout-page main.article .article-trustline > span { margin: 0; }
  html body.reading-layout-page main.article .article-trustline a { display: inline; min-height: 0; }
  html body.reading-layout-page:not(.home-page) main.article > .article-summary {
    margin: 0 0 30px !important;
    color: var(--document-copy) !important;
    font-size: 16px !important;
    line-height: 1.95 !important;
  }
  html body.reading-layout-page main.article .reading-document-layout { margin-top: 30px; }
  html body.reading-layout-page main.article .reading-document-layout > .reading-toc {
    margin: 0 0 32px;
    padding: 0;
    background: none;
    border-radius: 0;
  }
  html body.reading-layout-page main.article .reading-document-layout .reading-toc ol { display: block; max-height: none; overflow: visible; padding: 0; }
  html body.reading-layout-page main.article .reading-toc summary { padding: 14px 0; font-size: 15px; color: var(--document-ink); }
  html body.reading-layout-page main.article .reading-toc summary span { font-size: 13px; color: var(--document-muted); }
  html body.reading-layout-page:not(.home-page) main.article .reading-toc a { font-size: 14px !important; color: var(--document-muted) !important; }
  html body.reading-layout-page:not(.home-page) main.article .reading-toc a[aria-current="location"] { color: var(--document-accent) !important; }
  html body.reading-layout-page:not(.home-page) main.article .reading-chapter {
    margin: 0 0 38px !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html body.reading-layout-page:not(.home-page) main.article .reading-chapter :is(p,li) {
    color: var(--document-copy) !important;
    font-size: 16px !important;
    line-height: 1.95 !important;
  }
  html body.reading-layout-page:not(.home-page) main.article .reading-chapter p { margin: 0 0 18px !important; }
  html body.reading-layout-page:not(.home-page) main.article .reading-chapter h2,
  html body.reading-layout-page:not(.home-page) main.article .reading-chapter .section-heading h2 {
    margin: 0 0 18px !important;
    color: var(--document-ink) !important;
    font-size: 23px !important;
    line-height: 1.55 !important;
  }
  html body.reading-layout-page:not(.home-page) main.article .reading-chapter h3 {
    margin: 26px 0 12px !important;
    color: var(--document-ink) !important;
    font-size: 19px !important;
    line-height: 1.6 !important;
  }
  html body.reading-layout-page:not(.home-page) main.article a:not(.button):not(.reading-download-action) {
    color: var(--document-accent) !important;
    text-decoration: none !important;
  }
  html body.reading-layout-page:not(.home-page) main.article .reading-evidence-figure {
    margin: 24px 0 30px !important;
    padding: 0 !important;
    background: none !important;
  }
  html body.reading-layout-page:not(.home-page) main.article .reading-evidence-figure figcaption {
    margin: 12px 0 0;
    padding: 0;
    color: var(--document-muted) !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
  }
  html body.reading-layout-page main.article .reading-table { min-width: 512px; }
  html body.reading-layout-page main.article .reading-table[data-columns="2"] { min-width: 0; }
  html body.reading-layout-page main.article .reading-table[data-columns="4"] { min-width: 712px; }
  html body.reading-layout-page main.article .reading-table[data-columns="5"] { min-width: 912px; }
  html body.reading-layout-page main.article .reading-table[data-columns="6"] { min-width: 1112px; }
  html body.reading-layout-page main.article .reading-table col:first-child,
  html body.reading-layout-page main.article .reading-table thead th:first-child { width: 112px; }
  html body.reading-layout-page main.article .reading-table :is(td,th) {
    padding: 14px;
    color: var(--document-copy);
    font-size: 14px;
    line-height: 1.9;
  }
  html body.reading-layout-page main.article .reading-table tbody td,
  html body.reading-layout-page main.article .reading-table tbody tr:nth-child(even) td { background: #091a2d; }
  html body.reading-layout-page main.article .reading-table-wrap { background: #091a2d; }
  html body.reading-layout-page main.article .reading-task-steps > li {
    padding: 18px 0 18px 38px;
    margin: 0 !important;
    border-top: 1px solid var(--document-line);
  }
  html body.reading-layout-page main.article .reading-task-steps > li::before { font-size: 19px; }
  html body.reading-layout-page .reading-paired-sections { display: block; margin: 0; }
  html body.reading-layout-page:not(.home-page) main.article .reading-answer,
  html body.reading-layout-page:not(.home-page) main.article .reading-faq article {
    margin: 0 !important;
    padding: 20px 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--document-line) !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }
  html body.reading-layout-page:not(.home-page) main.article .reading-answer h3,
  html body.reading-layout-page:not(.home-page) main.article .reading-faq article h3 { margin-top: 0 !important; }
  html body.reading-layout-page:not(.home-page) main.article .reading-download-section { padding: 24px 20px !important; background: var(--document-surface) !important; border-radius: 8px !important; }
  html body.reading-layout-page main.article .reading-download-action { display: flex; justify-content: center; background: #08718a; color: #fff !important; }
}
@media (max-width: 359px) {
  html body.reading-layout-page:not(.home-page) main.article { width: calc(100% - 32px) !important; }
  html body.reading-layout-page main.article .reading-table { min-width: 440px; }
  html body.reading-layout-page main.article .reading-table[data-columns="4"] { min-width: 608px; }
  html body.reading-layout-page main.article .reading-table[data-columns="5"] { min-width: 776px; }
  html body.reading-layout-page main.article .reading-table[data-columns="6"] { min-width: 944px; }
  html body.reading-layout-page main.article .reading-table col:first-child,
  html body.reading-layout-page main.article .reading-table thead th:first-child { width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.reading-layout-page) { scroll-behavior: auto; }
}

/* Override legacy mobile link selectors, including author metadata, without removing keyboard focus. */
html body.reading-layout-page.content-ui:not(.home-page) main.article :is(p,li,td,th,figcaption,.article-trustline,.reading-toc) a:not(.button):not(.reading-download-action) {
  color: var(--document-accent) !important;
  text-decoration: none !important;
}
html body.reading-layout-page.content-ui:not(.home-page) main.article .reading-document-body .reading-chapter p > a.reading-download-action {
  color: #fff !important;
  text-decoration: none !important;
}
