/* Two editions of the same journal. The reading edition is deliberately desktop-only. */
.edition-dock { display: none; }
.navigator-theme { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.navigator-theme .theme-icon { width: 19px; height: 19px; }

@media screen and (min-width: 1024px) {
  :root[data-layout-ready] .edition-dock {
    position: fixed; z-index: 60; inset: auto 28px 20px;
    display: flex; align-items: center; justify-content: space-between;
    pointer-events: none; font-size: 13px; line-height: 18px;
  }
  .edition-switch, .edition-contents {
    pointer-events: auto; display: flex; align-items: center;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 4px 28px #0000000a;
  }
  .edition-switch { gap: 4px; padding: 4px 8px; border-radius: 3px; }
  .edition-glyph { width: 25px; height: 18px; margin: 0 8px 0 4px; stroke: var(--secondary); }
  .edition-switch button {
    min-height: 36px; padding: 6px 12px; position: relative;
    color: var(--secondary); font-size: inherit; line-height: inherit;
  }
  .edition-switch button::after {
    content: ''; position: absolute; height: 1px; bottom: 5px; left: 12px; right: 12px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
  }
  .edition-switch button[aria-pressed=true] { color: var(--text); }
  .edition-switch button[aria-pressed=true]::after,
  .edition-switch button:focus-visible::after { transform: scaleX(1); }
  .edition-switch button:hover, .edition-contents:hover { color: var(--accent-text, var(--accent)); text-decoration: none; }
  .edition-switch button:focus-visible, .edition-contents:focus-visible { box-shadow: none; color: var(--accent-text, var(--accent)); text-decoration: underline; text-underline-offset: 5px; }
  .edition-contents { display: none; gap: 25px; padding: 12px 18px; min-height: 44px; border-radius: 3px; }
  .edition-contents svg { width: 21px; height: 18px; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .edition-contents:hover svg { transform: scaleX(1.18); }
  .site-footer { padding-bottom: 100px; }
  .audio-player { bottom: 84px; }
  .has-audio-player { padding-bottom: 200px; }

  html[data-layout=read] {
    --margin: clamp(48px, 5vw, 100px);
    --title: clamp(80px, 8vw, 136px); --title-line: .99;
    --heading: clamp(40px, 4.3vw, 68px); --heading-line: 1.06;
    --lead: 28px; --lead-line: 1.4;
    scroll-padding-top: 40px;
  }
  html[data-layout=read] .wrap { max-width: 1680px; }
  html[data-layout=read] .edition-contents { display: flex; }
  html[data-layout=read] .site-chrome,
  html[data-layout=read] .site-chrome.is-scrolled {
    position: relative; height: 116px; --chrome-height: 116px;
    transform: none; background: none; transition: none;
  }
  html[data-layout=read] .site-chrome::before,
  html[data-layout=read] .site-chrome::after,
  html[data-layout=read] .masthead-mark::before,
  html[data-layout=read] .masthead-mark::after,
  html[data-layout=read] .header-actions,
  html[data-layout=read] .header-language,
  html[data-layout=read] .subnav,
  html[data-layout=read] .breadcrumb,
  html[data-layout=read] .footer-main > nav { display: none; }
  html[data-layout=read] .site-header,
  html[data-layout=read] .site-chrome.is-scrolled .site-header {
    height: 116px; min-height: 116px; padding-block: 24px;
    display: flex; justify-content: space-between; transition: none;
  }
  html[data-layout=read] .site-chrome .wordmark { font-size: 25px; line-height: 25px; }
  html[data-layout=read] .site-chrome .masthead-mark { width: 106px; height: 54px; }
  html[data-layout=read] .site-chrome .masthead-mark .globe { width: 106px; }
  html[data-layout=read] .ambient-field { height: 260px; }
  html[data-layout=read] .ambient-field .ambient-orbit { opacity: .4; }

  /* The cover opens as a single photographic spread, rather than a news grid. */
  html[data-layout=read] .home-flow { padding-top: 18px; gap: 100px; padding-bottom: 120px; }
  html[data-layout=read] .edition-line { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: -32px; font-size: 12px; }
  html[data-layout=read] .hero { display: flex; flex-direction: column; gap: 52px; }
  html[data-layout=read] .hero-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
  html[data-layout=read] .hero-copy .meta { grid-column: 1/-1; font-size: 13px; }
  html[data-layout=read] .hero h1 { grid-column: 1/-1; max-width: 1220px; font-size: var(--title); line-height: var(--title-line); letter-spacing: -.055em; text-wrap: balance; margin-bottom: 10px; }
  html[data-layout=read] .hero .lead { max-width: 700px; font-size: 24px; line-height: 1.4; }
  html[data-layout=read] .hero-copy > .text-link { align-self: end; justify-self: end; font-size: 14px; }
  html[data-layout=read] .hero-media { width: 100%; height: clamp(520px, 53vw, 820px); }
  html[data-layout=read] .section-heading { align-items: baseline; }
  html[data-layout=read] .section-heading h2 { font-size: 22px; line-height: 1.2; }
  html[data-layout=read] .section-heading .text-link { font-size: 13px; }
  html[data-layout=read] .story-grid { gap: 80px 64px; }
  html[data-layout=read] .story-grid.two { grid-template-columns: 1.25fr 1fr; align-items: start; }
  html[data-layout=read] .story-grid.two > :nth-child(2) { margin-top: 160px; }
  html[data-layout=read] .story-grid.two.mixed { grid-template-columns: 1fr 1.25fr; }
  html[data-layout=read] .story-card { gap: 24px; }
  html[data-layout=read] .story-card .image-link { height: auto; aspect-ratio: 1.1; }
  html[data-layout=read] .story-card .meta { font-size: 12px; line-height: 18px; }
  html[data-layout=read] .story-card h2 { font-size: clamp(38px, 4vw, 60px); line-height: 1.06; letter-spacing: -.035em; }
  html[data-layout=read] .story-card .card-deck { font-size: 22px; line-height: 1.4; }
  html[data-layout=read] .story-card.type-feature { background: none; padding: 38px 0; border-top: 1px solid var(--text); }
  html[data-layout=read] .story-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; }
  html[data-layout=read] .story-grid.three h2 { font-size: clamp(30px, 2.8vw, 44px); }
  html[data-layout=read] .home-laboratory { padding-block: 44px; gap: 80px; }
  html[data-layout=read] .lab-heading h2 { font-size: 48px; }
  html[data-layout=read] .lab-story h3 { font-size: 36px; }
  html[data-layout=read] .lab-story { padding-block: 32px; }
  html[data-layout=read] .consult-banner { background: none; border-block: 1px solid var(--line); padding: 52px 0; gap: 36px; }
  html[data-layout=read] .consult-banner::after { display: none; }
  html[data-layout=read] .consult-banner h2 { font-size: clamp(58px, 6vw, 94px); line-height: 1.03; letter-spacing: -.045em; }

  /* Article typography remains a readable measure even on very wide monitors. */
  html[data-layout=read] .longread { padding-top: 50px; --reading-width: 740px; }
  html[data-layout=read] .feature-heading { padding-bottom: 70px; }
  html[data-layout=read] .feature-kicker { margin-bottom: 44px; }
  html[data-layout=read] .feature-heading h1 { font-size: clamp(80px, 8.7vw, 142px); line-height: 1.01; letter-spacing: -.055em; max-width: 1380px; }
  html[data-layout=read] .feature-standfirst { grid-template-columns: 1fr 2fr; margin-top: 54px; gap: 64px; }
  html[data-layout=read] .feature-standfirst > p { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.3; max-width: 880px; }
  html[data-layout=read] .cover-figure .editorial-image { aspect-ratio: 1.85; max-height: 820px; }
  html[data-layout=read] .reading-utility { margin-block: 32px 110px; }
  html[data-layout=read] .reading-intro,
  html[data-layout=read] .reading-chapter,
  html[data-layout=read] .reading-end { grid-template-columns: minmax(80px,1fr) minmax(0,740px) minmax(150px,1fr); gap: 40px; }
  html[data-layout=read] .reading-intro > .eyebrow { grid-column: 1; }
  html[data-layout=read] .intro-prose { grid-column: 2; font-size: 35px; line-height: 1.4; }
  html[data-layout=read] .chapter-marker { grid-column: 1; font-size: 64px; color: var(--secondary); }
  html[data-layout=read] .prose { grid-column: 2; }
  html[data-layout=read] .prose h2 { font-size: 48px; line-height: 1.1; margin-bottom: 38px; }
  html[data-layout=read] .prose p { font-size: 25px; line-height: 1.56; letter-spacing: -.012em; }
  html[data-layout=read] .margin-note { grid-column: 3; font-size: 13px; max-width: 190px; }
  html[data-layout=read] .reading-chapter { margin-block: 110px; scroll-margin-top: 40px; }
  html[data-layout=read] .reading-notes,
  html[data-layout=read] .reading-sources,
  html[data-layout=read] .article-topic-end { grid-column: 2; }
  html[data-layout=read] .editorial-pullquote { margin-block: 130px; padding-block: 52px; }
  html[data-layout=read] .editorial-pullquote blockquote { font-size: clamp(58px, 6.3vw, 96px); line-height: 1.06; max-width: 1200px; margin-left: 12%; }
  html[data-layout=read] .editorial-pause { grid-template-columns: 1fr 4fr; margin-block: 130px; }
  html[data-layout=read] .secondary-figure .editorial-image { max-height: 800px; }
  html[data-layout=read] .interactive-figure { margin-block: 130px; padding-block: 48px 28px; }
  html[data-layout=read] .diagram-top h2 { font-size: 42px; }
  html[data-layout=read] .related { margin-top: 120px; }

  /* Contents and studio pages share the same open, oversized rhythm. */
  html[data-layout=read] .page-flow,
  html[data-layout=read] .consulting-flow { padding-top: 64px; padding-bottom: 120px; gap: 100px; }
  html[data-layout=read] .page-intro h1,
  html[data-layout=read] .consulting-hero .display { font-size: clamp(80px, 8.5vw, 142px); line-height: 1.02; letter-spacing: -.05em; max-width: 1350px; }
  html[data-layout=read] .page-intro .lead { font-size: 29px; line-height: 1.4; max-width: 880px; }
  html[data-layout=read] .catalog-grid { grid-template-columns: 1fr; gap: 80px; }
  html[data-layout=read] .catalog-grid > .story-card { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); grid-template-rows: auto 1fr; gap: 26px 72px; border-top: 1px solid var(--line); padding-top: 40px; }
  html[data-layout=read] .catalog-grid .image-link { grid-column: 1; grid-row: 1/4; aspect-ratio: 1.3; }
  html[data-layout=read] .catalog-grid .story-card > :not(.image-link) { grid-column: 2; }
  html[data-layout=read] .catalog-grid .story-card h2 { font-size: clamp(44px, 4.5vw, 72px); }
  html[data-layout=read] .catalog-grid .story-card:not(:has(.image-link)) { grid-template-columns: minmax(0,1fr); }
  html[data-layout=read] .catalog-grid .story-card:not(:has(.image-link)) > * { grid-column: 1; max-width: 1000px; }
  html[data-layout=read] .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 60px; margin-top: 80px; }
  html[data-layout=read] .service-grid h2 { font-size: 52px; line-height: 1.08; }
  html[data-layout=read] .service-grid p { font-size: 22px; line-height: 1.45; }
  html[data-layout=read] .editorial-split { grid-template-columns: 1fr 1.5fr; gap: 70px; }
  html[data-layout=read] .editorial-split > h2 { font-size: clamp(36px, 3.2vw, 52px); line-height: 1.1; }
  html[data-layout=read] .editorial-split > div { max-width: 780px; }
  html[data-layout=read] .editorial-questions h2 { font-size: clamp(42px, 4.6vw, 72px); line-height: 1.1; }
  html[data-layout=read] .result-item { grid-template-columns: 280px 1fr; gap: 48px; padding-block: 36px; }
  html[data-layout=read] .result-image { width: 280px; height: 210px; }
  html[data-layout=read] .result-title { font-size: 42px; line-height: 1.1; }
  html[data-layout=read] .result-deck { font-size: 22px; line-height: 1.4; }
  html[data-layout=read] .footer-main { grid-template-columns: 140px 1fr; padding-block: 60px; gap: 64px; }
  html[data-layout=read] .footer-main > .globe { width: 140px; }
  html[data-layout=read] .footer-title p { font-size: clamp(40px, 5vw, 72px); line-height: 1.05; letter-spacing: -.035em; }
  html[data-layout=read]:lang(zh-CN) :is(.hero h1, .feature-heading h1, .page-intro h1) { line-height: 1.16; letter-spacing: -.03em; }
  html[data-layout=read]:lang(zh-CN) .prose p { line-height: 1.85; letter-spacing: .01em; }
}

@media screen and (min-width: 1024px) and (max-width: 1250px) {
  html[data-layout=read] .reading-intro,
  html[data-layout=read] .reading-chapter,
  html[data-layout=read] .reading-end { grid-template-columns: 90px minmax(0,700px); justify-content: center; gap: 28px 40px; }
  html[data-layout=read] .margin-note { grid-column: 2; max-width: 470px; margin-top: 12px; }
  html[data-layout=read] .catalog-grid > .story-card { gap: 24px 40px; }
  html[data-layout=read] .story-grid { gap: 60px 40px; }
  html[data-layout=read] .intro-prose { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .edition-switch button::after, .edition-contents svg { transition: none; }
}
@media print { .edition-dock { display: none !important; } }
