/* Presentation layer only. Chart encodings and analytical controls use article.css. */
:root {
  --ink: #282b31;
  --muted: #646972;
  --paper: #fff;
  --wash: #f2f6f9;
  --line: #d4dee5;
  --editorial: #843e47;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
body { font-family: var(--body); line-height: 1.75; }
h1,h2 { font-family: var(--display); font-weight: 400; }
h2 { font-size: 49px; line-height: 1.15; }
h3 { font-weight: 550; line-height: 1.22; }
.micro,.eyebrow,.chapter-index,.chart-note,.technical-note,figcaption,.step-meter,.success-metric {
  font-family: var(--body);
}
.micro,.eyebrow,.chapter-index { font-size: 12px; font-weight: 600; }
figcaption,.technical-note { font-size: 13px; line-height: 1.7; }
.masthead { height: 66px; padding: 0 5%; background: #f9fbfc; border-color: #d2dce2; }
.masthead>a:first-child { font-family: var(--display); font-size: 18px; font-weight: 400; }
.masthead span { font-family: var(--body); font-size: 12px; margin-left: 5px; }
.masthead>a:last-child { font-size: 12px; }
.cover { background: #dbeaf3; color: var(--ink); min-height: 0; height: 650px; isolation: isolate; }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: -1; }
.cover-inner { max-width: 1320px; height: 100%; padding: 57px 40px 35px; margin: auto; }
.cover .eyebrow { color: #4d5864; margin: 0 0 29px; font-size: 12px; }
.cover h1 { font-size: 63px; font-weight: 400; line-height: 1.08; max-width: 650px; }
.period { color: var(--editorial); }
.cover-deck { font-family: var(--display); font-size: 28px; line-height: 1.35; margin-top: 28px; max-width: 350px; }
.cover-bottom { margin-top: 37px; gap: 25px; font-size: 12px; line-height: 1.9; }
.muted-light { color: #53616e; }
.cover-bottom a { color: var(--editorial); border-color: #8eacbb; width: 42px; height: 42px; border-radius: 50%; }
.cover-bottom a:hover { background: #eff7fb; }
.art-credit { position: absolute; bottom: 14px; right: 22px; background: #fffdf1e8; color: #47515a; font-size: 10px; padding: 3px 7px; }
.fact-strip { background: #fff; padding: 29px max(6%,calc((100% - 1120px)/2)); gap: 34px; }
.fact-strip strong { font-family: var(--display); font-size: 39px; color: var(--editorial); font-weight: 400; }
.fact-strip span { display: block; font-size: 12px; margin-top: 5px; }
.chapter-nav { background: #ffffffed; }
.chapter-nav>div:first-child { max-width: 1160px; }
.chapter-nav a { font-size: 12px; font-weight: 500; }
.chapter-nav a[aria-current] { color: var(--editorial); }
#reading-progress { background: var(--editorial); }
.chapter { padding: 86px max(6%,calc((100% - 1120px)/2)); }
.section-heading { display: block; max-width: 760px; margin: 0 auto 28px; }
.chapter-index { display: block; color: var(--editorial); padding: 0; margin-bottom: 17px; }
.intro { display: block; max-width: 760px; margin: 0 auto 44px; }
.intro p { max-width: none; font-size: 17px; line-height: 1.8; }
.intro p+p { margin-top: 16px; }
.viz-block { border-top: 1px solid var(--line); padding-top: 27px; margin-top: 40px; }
.viz-head h3 { font-size: 23px; }
.viz-head .micro { color: var(--editorial); font-size: 11px; }
.switches { border: 1px solid var(--line); border-radius: 4px; padding: 3px; gap: 2px; background: #fff; }
.switches button { padding: 8px 12px; border: 0; border-radius: 2px; }
.switches button[aria-pressed=true] { background: #eaf1f6; color: var(--ink); }
.switches button:hover { background: #f2f6f9; }
select { border: 1px solid #b9c6cf; padding: 8px 27px 8px 10px; border-radius: 3px; background: #fff; min-height: 40px; }
label { color: #505a64; }
.viz-head label select,.algorithm-controls label select,.feature-band label select,.scenario-controls>label select { margin-top: 6px; }
.inline-detail { margin-top: 35px; }
.inline-detail summary { font-size: 14px; font-weight: 500; color: #424c56; }
.method-band { background: #f1f6f9; }
.algorithm-layout { grid-template-columns: 310px minmax(0,1fr); gap: 64px; }
.algorithm-copy h3,.feature-band h3 { font-family: var(--display); font-size: 31px; font-weight: 400; line-height: 1.2; }
.algorithm-copy>.technical-note { font-size: 12px; }
.step-controls>button:not(.icon-button) { background: var(--editorial); border-radius: 3px; }
.icon-button { border-radius: 3px; border-color: #a8b8c4; background: #ffffff80; }
.icon-button:hover { background: #e3edf3; }
.step-meter { font-size: 12px; }
.segment-strip { height: 190px; gap: 7px; }
.segment-tile { border-radius: 4px; padding: 20px 14px; }
.segment-tile .tile-count { font-family: var(--display); font-size: 35px; font-weight: 400; }
.segment-tile .segment-name { font-size: 18px; line-height: 1.25; font-weight: 550; }
.segment-tile .tile-share { font-size: 12px; }
.segment-explorer { grid-template-columns: 310px minmax(0,1fr); gap: 64px; }
.segment-profile { border-left-width: 3px; }
.segment-profile h3 { font-family: var(--display); font-size: 33px; font-weight: 400; }
.profile-stats strong { font-family: var(--display); font-size: 26px; font-weight: 400; }
.profile-stats span { font-size: 12px; }
.segment-comparison .viz-head h3 { font-size: 22px; }
.takeaway,.closing-line { display: block; border-color: var(--line); padding-top: 26px; }
.takeaway>span,.closing-line>span { font-family: var(--body); color: var(--editorial); font-size: 11px; font-weight: 600; }
.takeaway p { font-family: var(--display); font-size: 29px; line-height: 1.4; margin-top: 14px; max-width: 780px; }
.risk-band { background: #faf7f8; }
.feature-band { grid-template-columns: 300px minmax(0,1fr); gap: 65px; }
.logistic-layout { gap: 70px; }
.probability-readout>strong { font-family: var(--display); font-size: 80px; font-weight: 400; color: var(--editorial); }
.validation-metrics strong { font-family: var(--display); font-size: 37px; font-weight: 400; }
.matrix-cell { border-radius: 3px; }
.matrix-cell strong { font-family: var(--display); font-weight: 400; }
.validation-note { line-height: 1.75; }
.economics-band { background: #f3f7fa; }
.scenario-controls { border-color: #c4d3df; grid-template-columns: 190px minmax(0,1fr) minmax(0,1fr) 44px; gap: 30px; }
.scenario-result { grid-template-columns: 330px minmax(0,1fr); gap: 50px; }
.scenario-result>div>strong { font-family: var(--display); font-size: 46px; font-weight: 400; }
.campaign-comparison { border-color: #c4d3df; }
.campaign-result strong { font-family: var(--display); font-size: 27px; font-weight: 400; }
.action-lead { margin: 0 auto 40px; max-width: 760px; font-family: var(--display); font-size: 26px; }
.action-list article { grid-template-columns: 70px minmax(0,1fr) 225px; gap: 32px; }
.action-number { font-family: var(--display); font-size: 46px; font-style: italic; }
.action-list h3 { font-family: var(--display); font-size: 29px; font-weight: 400; }
.success-metric strong { font-family: var(--body); }
.closing-line { padding-top: 33px; margin-top: 38px; }
.closing-line p { font-family: var(--display); font-size: 31px; line-height: 1.6; margin-top: 15px; }
.closing-line strong { color: var(--editorial); font-weight: 400; }
.method-notes { background: #f8f9fa; padding: 55px max(6%,calc((100% - 1120px)/2)); }
.method-notes h2 { font-size: 32px; font-weight: 400; }
.method-notes p { font-size: 14px; }
footer { background: #fff; padding: 32px max(6%,calc((100% - 1120px)/2)); border-top: 1px solid var(--line); }

@media(min-width:1600px) {
  .cover { height: 680px; }
  .cover-inner { max-width: 1360px; padding: 65px 40px 35px; }
  .cover-art { object-position: center top; }
}
@media(max-width:1100px) and (min-width:701px) {
  .cover-inner { padding: 50px 5% 30px; }
  .cover h1 { font-size: 51px; max-width: 54%; }
  .cover-deck { font-size: 25px; max-width: 320px; }
  .cover-bottom { margin-top: 30px; font-size: 11px; max-width: 48%; gap: 16px; }
  .cover-bottom a { flex-shrink: 0; }
  .cover { height: 620px; }
  .cover-art { object-position: center top; }
  h2 { font-size: 43px; }
  .chapter { padding: 65px 5%; }
  .algorithm-layout,.segment-explorer { grid-template-columns: 270px minmax(0,1fr); gap: 32px; }
  .feature-band { grid-template-columns: 250px minmax(0,1fr); gap: 35px; }
  .logistic-layout { gap: 35px; }
  .scenario-controls { grid-template-columns: 165px minmax(0,1fr) minmax(0,1fr) 44px; gap: 16px; }
  .scenario-result { grid-template-columns: 270px minmax(0,1fr); gap: 30px; }
  .scenario-result>div>strong { font-size: 38px; }
  .segment-strip { height: auto; }
  .segment-tile { min-height: 160px; }
}
@media(min-width:701px) and (max-width:850px) {
  .cover h1 { font-size: 44px; max-width: 56%; }
  .cover-deck { font-size: 23px; max-width: 290px; }
}
@media(max-width:700px) {
  .masthead { height: 58px; padding: 0 22px; }
  .masthead>a:first-child { font-size: 16px; }
  .masthead>a:last-child { font-size: 10px; }
  .cover { height: 690px; min-height: 0; background: #dbeaf3; }
  .cover-art { top: auto; bottom: 0; height: 36%; object-position: right bottom; }
  .cover-inner { padding: 30px 24px; }
  .cover .eyebrow { font-size: 10px; margin-bottom: 22px; }
  .cover h1 { font-size: 43px; line-height: 1.08; max-width: 520px; }
  .cover-deck { font-size: 23px; line-height: 1.3; margin-top: 21px; max-width: 320px; }
  .cover-bottom { font-size: 10px; margin-top: 22px; gap: 23px; max-width: none; }
  .cover-bottom a { height: 38px; width: 38px; }
  .art-credit { font-size: 9px; bottom: 10px; right: 12px; }
  .fact-strip { padding: 25px 24px; gap: 23px; }
  .fact-strip strong { font-size: 33px; }
  .fact-strip span { font-size: 11px; }
  .chapter { padding: 52px 24px; }
  h2 { font-size: 36px; line-height: 1.15; }
  .section-heading { margin-bottom: 24px; }
  .chapter-index { font-size: 11px; margin-bottom: 15px; }
  .intro { margin-bottom: 30px; }
  .intro p { font-size: 16px; line-height: 1.75; }
  .viz-head h3 { font-size: 22px; }
  .viz-block { margin-top: 29px; padding-top: 23px; }
  .switches { display: inline-flex; }
  .switches button { font-size: 12px; padding: 8px 9px; }
  .algorithm-layout,.segment-explorer,.feature-band,.logistic-layout,.validation-grid,.scenario-result { display: block; }
  .algorithm-copy h3,.feature-band h3 { font-size: 28px; }
  .algorithm-controls { gap: 14px; }
  .step-controls>button:not(.icon-button) { padding: 12px 11px; }
  .segment-strip { height: auto; gap: 7px; }
  .segment-tile { height: 155px; padding: 17px 13px; }
  .segment-tile .segment-name { font-size: 17px; }
  .segment-tile .tile-count { font-size: 33px; }
  .segment-tile .tile-share { font-size: 11px; }
  .segment-profile h3 { font-size: 30px; }
  .profile-stats strong { font-size: 25px; }
  .segment-comparison .viz-head { display: block; }
  .segment-comparison .viz-head h3 { font-size: 22px; max-width: none; }
  .segment-comparison .viz-head>label { display: block; margin-top: 16px; }
  .segment-comparison select { max-width: none; width: 100%; font-size: 14px; }
  .takeaway p { font-size: 25px; }
  .control-pair { display: grid; grid-template-columns: 1fr; gap: 15px; }
  .control-pair select { padding-left: 8px; padding-right: 22px; }
  .probability-readout { border-left-color: var(--editorial); }
  .probability-readout>strong { font-size: 65px; }
  .validation-note { font-size: 13px; }
  .validation-metrics strong { font-size: 34px; }
  .scenario-controls { grid-template-columns: minmax(0,1fr) 44px; gap: 23px 16px; }
  .scenario-result>div>strong { font-size: 42px; }
  .campaign-result strong { font-size: 25px; }
  figcaption,.technical-note { font-size: 12px; }
  .action-lead { font-size: 23px; margin-bottom: 30px; }
  .action-list article { grid-template-columns: 36px minmax(0,1fr); gap: 18px; }
  .action-number { font-size: 33px; }
  .action-list h3 { font-size: 26px; }
  .closing-line p { font-size: 26px; line-height: 1.5; }
  .method-notes { padding: 40px 24px; }
  .method-notes h2 { font-size: 29px; }
  .method-notes p { font-size: 13px; }
  footer { padding: 26px 24px; }
}
@media(max-width:360px) {
  .cover-inner { padding-left: 19px; padding-right: 19px; }
  .cover h1 { font-size: 37px; }
  .cover-deck { font-size: 21px; }
  .cover-bottom { font-size: 9px; gap: 15px; }
  .cover { height: 670px; }
  .chapter { padding-left: 18px; padding-right: 18px; }
  h2 { font-size: 32px; }
  .switches button { font-size: 11px; padding: 8px 7px; }
  .segment-tile .segment-name { font-size: 16px; }
  .segment-tile .tile-count { font-size: 29px; }
  .segment-comparison select { max-width: none; font-size: 14px; }
  .scenario-result>div>strong { font-size: 36px; }
  .campaign-result strong { font-size: 22px; }
}
@media(min-width:1001px) and (max-width:1200px) {
  .segment-tile { padding: 18px 10px; }
  .segment-tile .segment-name { font-size: 16px; }
  .segment-tile .tile-share { font-size: 10px; }
}
@media print {
  .cover { height: auto; background: white; color: black; }
  .cover-art,.art-credit { display: none; }
  .cover-inner { padding: 20px 0; }
  .cover h1 { font-size: 38px; max-width: none; }
  .chapter { padding: 30px 0; }
}
@media screen and (max-width:720px){.cover-art{object-position:right bottom}}
