@import url('./hp-media-layout.css');

/* The consent sheet is one centered document, both inline and in its image viewer. */
.hp-page .hp-consent .hp-media-group { width:100%; margin-inline:auto; text-align:center; }
.hp-page .hp-consent .hp-image-grid { width:min(100%,580px); margin-inline:auto; justify-content:center; }
.hp-page .hp-consent .hp-image-button { margin-inline:auto; }
.hp-page .hp-consent .hp-media-group figcaption { text-align:center; }

/* A single editorial rhythm: paper for reading, continuous space for artwork. */
.hp-page.hp-hybrid .editorial-section { padding-block:48px 56px; }
.hp-page.hp-hybrid .hp-chapter-opening { margin-bottom:26px; }
.hp-page.hp-hybrid .editorial-prose > p,
.hp-page.hp-hybrid .hp-interview-copy > p { font-size:17px; line-height:1.85; }
.hp-page.hp-hybrid .editorial-prose > p { margin-top:22px; }
.hp-page.hp-hybrid .editorial-prose > .hp-section-heading {
  grid-template-columns:32px minmax(0,1fr); align-items:start; gap:16px;
  margin:48px 0 22px; font-size:clamp(23px,1.9vw,27px); line-height:1.35;
}
.hp-page.hp-hybrid .hp-subsection-number {
  display:block; width:auto; min-height:0; padding-top:1px;
  border:0; background:transparent; color:#98425f;
  font:650 20px/1.5 'Segoe UI',Arial,sans-serif;
}
.hp-page.hp-hybrid .hp-interview-note { gap:22px; margin-block:26px 30px; padding:0; }
.hp-page.hp-hybrid .hp-speaker::after { font-size:12px; padding-top:8px; }
.hp-page.hp-hybrid .hp-media-group { margin-block:28px 34px; }
.hp-page.hp-hybrid .hp-reflection { background:#f5f6f8; }

/* The source image is the interface; quiet text tools belong underneath it. */
.hp-page.hp-hybrid .hp-dark-stage { padding-block:64px 68px; margin-block:40px 44px; }
.hp-page.hp-hybrid .hp-dark-stage::before {
  background-image:linear-gradient(#0007,#0007),radial-gradient(ellipse at 75% 46%,#1d263518,transparent 70%),var(--hp-stage-sky,none);
  background-size:100% 100%,100% 100%,auto var(--hp-sky-height,1000px);
  background-position:center,center,calc(50% + var(--hp-stage-pointer,0px)) calc(50% + var(--hp-stage-shift,0px));
  background-repeat:no-repeat,no-repeat,repeat-y;
}
.hp-page.hp-hybrid .hp-dark-stage .hp-media-group { margin:0; }
.hp-page.hp-hybrid .hp-dark-stage .hp-stage-bridge {
  position:static; isolation:auto; margin:24px 0 28px; padding:0;
  color:#c8d4dd; background:transparent; font-size:17px; line-height:1.85;
}
.hp-page.hp-hybrid .hp-dark-stage .hp-stage-bridge::before { content:none; }
.hp-page.hp-hybrid .hp-diagram-toolbar {
  justify-content:flex-end; align-items:baseline; gap:18px; margin:10px 0 0;
  font-size:12px; line-height:1.65; text-align:left;
}
.hp-page.hp-hybrid .hp-diagram-toolbar > span { margin-right:auto; max-width:none; }
.hp-page.hp-hybrid .hp-diagram-toolbar .hp-plain-button { font-size:12px !important; }
.hp-page.hp-hybrid .hp-network-controls {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start;
  column-gap:24px; margin-top:10px;
}
.hp-page.hp-hybrid .hp-network-controls > .hp-plain-button {
  grid-column:2; grid-row:1; position:relative; z-index:1; margin-top:4px;
  font-size:12px !important;
}
.hp-page.hp-hybrid .hp-network-controls > .hp-expert-index {
  grid-column:1 / -1; grid-row:1; margin:0; padding:0; border:0;
}
.hp-page.hp-hybrid .hp-expert-index > summary {
  width:fit-content; max-width:calc(100% - 120px); padding:12px 0;
  font-size:12px; font-weight:500;
}
.hp-page.hp-hybrid .hp-expert-index summary > span { float:none; margin-left:8px; }
.hp-page.hp-hybrid .hp-expert-names { padding-top:4px; }

/* Every photograph remains complete. Exact ratio columns align their edges. */
.hp-page.hp-hybrid .hp-photo-row {
  width:100%; max-width:none; align-items:start; gap:16px;
}
.hp-page.hp-hybrid .hp-photo-row[data-count="1"] { width:min(100%,920px); margin-inline:auto; }
.hp-page.hp-hybrid .hp-photo-row > .hp-image-button { grid-column:auto; cursor:zoom-in; }
.hp-page.hp-hybrid .hp-photo-row .hp-image-button::after { content:none; display:none; }
.hp-page.hp-hybrid .hp-photo-row .hp-image-button img { width:100%; height:auto; max-height:none; }
.hp-page.hp-hybrid .hp-photo-row + .hp-photo-row { margin-top:16px; }
.hp-page.hp-hybrid .hp-media-group > figcaption { margin-top:12px; font-size:12px; line-height:1.7; }

/* HP contents: center the rail in all space left of the reading column. */
@media (min-width:701px) {
  body.hp-page.hp-hybrid .editorial-layout {
    display:grid; width:100%; box-sizing:border-box; margin-inline:0;
    padding-right:max(24px,calc((100% - 1380px)/2));
    grid-template-columns:minmax(340px,1fr) min(1020px,calc(100% - 340px));
    column-gap:0;
  }
  body.hp-page.hp-hybrid .editorial-sidebar {
    width:292px; justify-self:center; box-sizing:border-box; padding:0 8px 12px;
  }
}
.hp-page.hp-hybrid .editorial-toc-link { gap:10px; padding:12px 10px; font-size:18px; font-weight:700; }
.hp-page.hp-hybrid .editorial-toc-number { font-size:13px; flex-basis:24px; }
.hp-page.hp-hybrid .editorial-contents > summary { display:flex; align-items:center; justify-content:space-between; font-size:14px; letter-spacing:.1em; }
.hp-page.hp-hybrid .hp-subcontents { margin:0 0 8px 24px; border-left:1px solid #e4dce1; }
.hp-page.hp-hybrid .hp-subcontents > summary {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:8px 10px; color:#5a3d49; font-size:13px; font-weight:650;
  line-height:1.5; letter-spacing:.01em; text-transform:none;
}
.hp-page.hp-hybrid .hp-subcontents a { padding:9px 12px; color:#3e505c; font-size:14px; font-weight:550; line-height:1.55; text-decoration:none; }
.hp-page.hp-hybrid .editorial-contents summary > .hp-toc-chevron {
  display:inline-block; flex:0 0 auto; float:none; margin:0; color:var(--hp-rose);
  font:500 25px/1 'Segoe UI',Arial,sans-serif; transform:rotate(0deg);
}
.hp-page.hp-hybrid .editorial-contents[open] > summary > .hp-toc-chevron,
.hp-page.hp-hybrid .hp-subcontents[open] > summary > .hp-toc-chevron { transform:rotate(90deg); }
.hp-page.hp-hybrid .hp-toc-reflection-link { display:block; margin:0 0 10px 24px; padding:9px 12px; border-left:1px solid #e4dce1; color:#86445d; font-size:14px; font-weight:600; line-height:1.55; text-decoration:none; }
.hp-page.hp-hybrid .hp-toc-reflection-link:hover,
.hp-page.hp-hybrid .hp-toc-reflection-link[aria-current="location"] { background:#f7edf1; color:#913c59; }
.hp-page.hp-hybrid .hp-sidebar-shortcuts a { font-size:14px; }
.hp-page.hp-hybrid .hp-photo-caption {
  display:block; margin-top:10px; color:#405260; font:400 14px/1.65 'Segoe UI',Arial,sans-serif;
  text-align:left; white-space:normal;
}
.hp-page.hp-hybrid .hp-photo-caption strong { color:#273d4a; font-weight:700; }
@media (min-width:701px) and (max-width:1050px) {
  body.hp-page.hp-hybrid .editorial-layout { grid-template-columns:300px minmax(0,1fr); }
  body.hp-page.hp-hybrid .editorial-sidebar { width:268px; }
}
@media (max-width:700px) {
  .hp-page.hp-hybrid .hp-subcontents { display:block; }
  .hp-page.hp-hybrid .editorial-toc-link { font-size:17px; }
  .hp-page.hp-hybrid .hp-subcontents a { font-size:14px; }
  .hp-page.hp-hybrid .hp-photo-caption { font-size:13px; }
}

@media (max-width:960px) {
  .hp-page.hp-hybrid .hp-dark-stage { padding-block:54px 58px; margin-block:34px 38px; }
}
@media (max-width:700px) {
  .hp-page.hp-hybrid .editorial-section { padding-block:34px 42px; }
  .hp-page.hp-hybrid .hp-chapter-opening { margin-bottom:24px; }
  .hp-page.hp-hybrid .editorial-prose > p,
  .hp-page.hp-hybrid .hp-interview-copy > p,
  .hp-page.hp-hybrid .hp-dark-stage .hp-stage-bridge { font-size:16px; line-height:1.85; }
  .hp-page.hp-hybrid .editorial-prose > .hp-section-heading {
    grid-template-columns:28px minmax(0,1fr); gap:12px; margin-top:38px; font-size:22px;
  }
  .hp-page.hp-hybrid .hp-subsection-number { padding-top:1px; font-size:18px; }
  .hp-page.hp-hybrid .hp-interview-note { margin-block:24px 28px; }
  .hp-page.hp-hybrid .hp-dark-stage { padding-block:44px 48px; margin-block:28px 32px; }
  .hp-page.hp-hybrid .hp-dark-stage .hp-stage-bridge { margin-block:20px 24px; }
  .hp-page.hp-hybrid .hp-diagram-toolbar { align-items:baseline; gap:16px; font-size:12px; }
  .hp-page.hp-hybrid .hp-diagram-toolbar > span { max-width:195px; }
  .hp-page.hp-hybrid .hp-diagram-toolbar .hp-plain-button { font-size:12px !important; }
  .hp-page.hp-hybrid .hp-photo-row[data-photo-row] { grid-template-columns:minmax(0,1fr); gap:14px; }
  .hp-page.hp-hybrid .hp-photo-row + .hp-photo-row { margin-top:14px; }
  .hp-page.hp-hybrid .hp-network-controls { column-gap:16px; }
}
@media print {
  .hp-page.hp-hybrid .hp-dark-stage { padding-block:20px; margin-block:22px; }
  .hp-page.hp-hybrid .hp-diagram-toolbar,.hp-page.hp-hybrid .hp-network-controls { display:none; }
  .hp-page.hp-hybrid .hp-photo-row[data-photo-row] { break-inside:avoid; }
}

/* Chapters 3–5: each question contains three independent reading panels.
   The phase name and its descriptive subtitle both stay outside the scroller. */
.hp-page.hp-hybrid .hp-question-chapter > .editorial-prose {
  border-left:2px solid #e6dfe3; padding-left:clamp(18px,2.2vw,30px);
}
.hp-page.hp-hybrid .hp-question { min-width:0; margin:46px 0 50px; }
.hp-page.hp-hybrid .hp-question > .hp-question-heading {
  display:grid; grid-template-columns:32px minmax(0,1fr); gap:16px;
  margin:0 0 24px; color:#203744; font:600 clamp(26px,2.25vw,33px)/1.3 var(--hp-display);
  letter-spacing:-.01em; text-wrap:pretty;
}
.hp-page.hp-hybrid .hp-question-heading > .hp-subsection-number { padding-top:3px; font-size:20px; }
.hp-page.hp-hybrid .hp-question-title { display:block; }
.hp-page.hp-hybrid .hp-question > :is(p,ul,ol),
.hp-page.hp-hybrid .hp-phase-body > :is(p,ul,ol) {
  margin:22px 0 0; color:#405461; font-size:17px; line-height:1.85; text-wrap:pretty;
}
.hp-page.hp-hybrid .hp-question > :is(ul,ol),
.hp-page.hp-hybrid .hp-phase-body > :is(ul,ol) { padding-left:26px; }
.hp-page.hp-hybrid .hp-question-phase { min-width:0; margin:34px 0; }
.hp-page.hp-hybrid .hp-question-phase > .hp-phase {
  display:block; margin:0 0 16px; color:#263e4b;
  font:600 clamp(23px,2vw,28px)/1.3 var(--hp-display); text-wrap:pretty;
}
.hp-page.hp-hybrid .hp-question-phase .hp-phase-label {
  display:flex; align-items:center; gap:11px; margin:0 0 12px; padding:0;
  color:#273c48; font:750 22px/1.35 'Segoe UI',Arial,sans-serif;
  letter-spacing:0; text-transform:none;
}
.hp-page.hp-hybrid .hp-question-phase .hp-phase-label::before {
  content:''; display:block; flex:0 0 8px; width:8px; height:8px; margin:0;
  border-radius:50%; background:#273c48;
}
.hp-page.hp-hybrid .hp-question-phase .hp-phase-title {
  display:block; padding:13px 16px; background:#f6f0f3; border-radius:3px;
}
.hp-page.hp-hybrid .hp-phase-body {
  box-sizing:border-box; max-height:min(520px,56svh); min-width:0;
  padding:20px 22px; overflow-x:hidden; overflow-y:auto;
  scrollbar-width:thin; scrollbar-color:#c6b8c0 #f7f4f6; scrollbar-gutter:stable;
  border:1px solid #e9e2e6; border-radius:3px; background:#fff;
}
.hp-page.hp-hybrid .hp-phase-body:focus-visible { outline:2px solid #a34363; outline-offset:3px; }
.hp-page.hp-hybrid .hp-phase-body > :first-child { margin-top:0; }
.hp-page.hp-hybrid .hp-phase-body > :last-child { margin-bottom:0; }
.hp-page.hp-hybrid .hp-phase-body > .hp-interview-note { margin-block:0 24px; }
.hp-page.hp-hybrid .hp-phase-body > .hp-interview-note:last-child { margin-bottom:0; }
/* Preserve the complete B501 artwork inside its own discussion's viewport. */
.hp-page.hp-hybrid .hp-phase-body .hp-dark-stage { margin:28px 0; padding:28px 16px; }
.hp-page.hp-hybrid .hp-phase-body .hp-dark-stage::before { left:0; right:0; clip-path:none; }
.hp-page.hp-hybrid .hp-phase-body .hp-stage-content { width:100%; }
@media (max-width:700px) {
  .hp-page.hp-hybrid .hp-question-chapter > .editorial-prose { padding-left:14px; }
  .hp-page.hp-hybrid .hp-question { margin:34px 0 40px; }
  .hp-page.hp-hybrid .hp-question > .hp-question-heading { grid-template-columns:28px minmax(0,1fr); gap:10px; font-size:27px; line-height:1.25; }
  .hp-page.hp-hybrid .hp-question-heading > .hp-subsection-number { padding-top:2px; font-size:18px; }
  .hp-page.hp-hybrid .hp-question > :is(p,ul,ol),
  .hp-page.hp-hybrid .hp-phase-body > :is(p,ul,ol) { font-size:16px; }
  .hp-page.hp-hybrid .hp-question-phase { margin-block:28px; }
  .hp-page.hp-hybrid .hp-question-phase > .hp-phase { font-size:25px; }
  .hp-page.hp-hybrid .hp-question-phase .hp-phase-label { font-size:20px; }
  .hp-page.hp-hybrid .hp-question-phase .hp-phase-title { padding:12px; }
  .hp-page.hp-hybrid .hp-phase-body { max-height:min(440px,52svh); padding:16px 12px; }
  .hp-page.hp-hybrid .hp-phase-body .hp-dark-stage { padding:20px 10px; }
}
@media print {
  .hp-page.hp-hybrid .hp-phase-body { max-height:none; overflow:visible; padding:0; border:0; scrollbar-gutter:auto; }
  .hp-page.hp-hybrid .hp-question > .hp-question-heading,
  .hp-page.hp-hybrid .hp-question-phase > .hp-phase { break-after:avoid; }
}

/* Keep the long 6.2 subsection indices on one line, within HP only. */
body.hp-page :is(#hp-6-2-1,#hp-6-2-2,#hp-6-2-3) { grid-template-columns:max-content minmax(0,1fr); }
body.hp-page :is(#hp-6-2-1,#hp-6-2-2,#hp-6-2-3) > .hp-subsection-number { white-space:nowrap; }

/* Replace only the original South China Sea inset; cloned map dialogs retain it. */
body.hp-page .hp-map > .hp-map-south-china-sea {
  position:absolute; left:75.45%; top:65.7777778%; width:3.05%; height:7.2888889%;
  background:#fff; pointer-events:none; z-index:1;
}
body.hp-page .hp-map-south-china-sea > img {
  display:block; width:100%; height:100%; object-fit:contain;
}
