/* Approved charcoal/ivory chapters: one continuous sheet, no nested panels. */
#intelligence-deck {
 --deck-unit:min(calc((100vw - 80px)/1790),1.03px);
 --deck-type-unit:min(var(--deck-unit),calc((100svh - 110px)/715));
 --deck-card-height:min(calc(715 * var(--deck-unit)),calc(100svh - 110px));
 --deck-top:max(18px,calc((100svh - var(--deck-card-height) - 60px)/2));
 --deck-ink:#f5f5ef; --deck-muted:#b6bab3; --deck-sage:#c6ddbc; --deck-label:#9aa29a; --deck-line:#272d27;
 position:relative; isolation:isolate; padding:42px 0 32px; background:#080b0a; color:var(--deck-ink); color-scheme:dark;
}
#intelligence-deck .deck-heading,#intelligence-deck .deck-stage { width:min(calc(100% - 80px),1840px); margin-inline:auto; }
#intelligence-deck .deck-heading { position:absolute; width:1px; height:1px; margin:0; padding:0; overflow:hidden; clip-path:inset(50%); }
#intelligence-deck .deck-runway,#intelligence-deck .deck-stage,#intelligence-deck .deck-card-window { position:relative; }
#intelligence-deck .deck-stage { isolation:isolate; }
#intelligence-deck .reference-card { position:relative; width:100%; max-width:none; min-height:0; height:auto; margin:0 0 32px; padding:0; border:0; border-radius:20px; background:#242724; overflow:hidden; backface-visibility:hidden; }
#intelligence-deck .reference-card::before { content:none; }
#intelligence-deck .reference-card::after { content:""; position:absolute; z-index:3; inset:0; pointer-events:none; background:#080b0a; opacity:calc(var(--paper-depth,0)*.065); }
#intelligence-deck .deck-composition { display:grid; grid-template-columns:40% minmax(0,1fr); min-height:var(--deck-card-height); width:100%; }
#intelligence-deck .deck-story { display:flex; min-width:0; flex-direction:column; align-items:flex-start; padding:calc(76 * var(--deck-type-unit)) calc(54 * var(--deck-type-unit)) calc(40 * var(--deck-type-unit)); background:#242724; color:#f6f6ef; }
#intelligence-deck .deck-topic-icon { flex:none; width:calc(46 * var(--deck-type-unit)); height:calc(46 * var(--deck-type-unit)); margin-bottom:calc(44 * var(--deck-type-unit)); color:var(--deck-sage); fill:none; stroke:currentColor; stroke-width:1.25; stroke-linecap:round; stroke-linejoin:round; }
#intelligence-deck .deck-story h2 { margin:0; color:#f6f6ef; font-size:calc(86 * var(--deck-type-unit)); font-weight:500; line-height:1.025; letter-spacing:-.04em; }
#intelligence-deck .deck-story h2 > span { display:block; }
#intelligence-deck .deck-story .deck-emphasis { color:var(--deck-sage); }
#intelligence-deck .deck-story-copy { max-width:100%; margin:calc(26 * var(--deck-type-unit)) 0 0; color:var(--deck-muted); font-size:calc(25 * var(--deck-type-unit)); font-weight:400; line-height:1.36; letter-spacing:-.018em; text-wrap:pretty; }
#intelligence-deck .deck-story-accent { margin:calc(12 * var(--deck-type-unit)) 0 0; color:#c6ddbc; font-size:calc(25 * var(--deck-type-unit)); line-height:1.35; letter-spacing:-.02em; }
#intelligence-deck .deck-explore { display:inline-flex; align-items:center; gap:20px; margin-top:auto; padding-top:calc(26 * var(--deck-type-unit)); color:#c6ddbc; font-size:calc(24 * var(--deck-type-unit)); line-height:1.4; letter-spacing:-.025em; }
#intelligence-deck .deck-explore .site-icon { width:1.3em; height:1.3em; transition:translate .3s var(--ease-out); }
#intelligence-deck .deck-explore:hover .site-icon,#intelligence-deck .deck-explore:focus-visible .site-icon { translate:5px 0; }
#intelligence-deck .deck-visual { --ink:#161e19; --muted:#686e64; display:flex; flex-direction:column; position:relative; min-width:0; min-height:0; margin:0; padding:calc(24 * var(--deck-type-unit)) calc(28 * var(--deck-type-unit)) calc(40 * var(--deck-type-unit)); background:#eeede8; color:var(--ink); color-scheme:light; }
#intelligence-deck .deck-art-window { flex:1; min-height:0; min-width:0; height:0; width:100%; }
#intelligence-deck .deck-illustration { display:block; width:100%; height:100%; overflow:visible; font-family:var(--body); }
#intelligence-deck .deck-insight { flex:none; margin:calc(8 * var(--deck-type-unit)) calc(30 * var(--deck-type-unit)) 0 calc(90 * var(--deck-type-unit)); padding-bottom:calc(8 * var(--deck-type-unit)); }
#intelligence-deck .deck-insight strong { display:block; color:#151d18; font-size:calc(36 * var(--deck-type-unit)); font-weight:600; line-height:1.18; letter-spacing:-.04em; }
#intelligence-deck .deck-insight > span { display:block; margin-top:7px; color:#666c63; font-size:calc(27 * var(--deck-type-unit)); line-height:1.28; letter-spacing:-.03em; }
#intelligence-deck .deck-illustration-note { align-self:flex-end; margin-top:calc(12 * var(--deck-type-unit)); color:#787d73; font-size:max(9px,calc(13 * var(--deck-type-unit))); line-height:1.3; }
#intelligence-deck .deck-art-hint { display:none; }
#intelligence-deck #coverage .deck-story h2 { font-size:calc(90 * var(--deck-type-unit)); }
#intelligence-deck #lead-databases .deck-story h2 { font-size:calc(70 * var(--deck-type-unit)); }
#intelligence-deck #search .deck-story { padding-top:calc(64 * var(--deck-type-unit)); }
#intelligence-deck #search .deck-topic-icon { margin-bottom:calc(32 * var(--deck-type-unit)); }
#intelligence-deck #search .deck-story h2 { font-size:calc(70 * var(--deck-type-unit)); }
#intelligence-deck #search .deck-story-copy { font-size:calc(24 * var(--deck-type-unit)); margin-top:calc(24 * var(--deck-type-unit)); }
#intelligence-deck #collection .deck-story { padding-top:calc(70 * var(--deck-type-unit)); }
#intelligence-deck #collection .deck-topic-icon { margin-bottom:calc(44 * var(--deck-type-unit)); }
/* The existing controller supplies reversible, scroll-linked sheet geometry. */
#intelligence-deck.deck-is-active .deck-stage { position:sticky; top:var(--deck-top); }
#intelligence-deck.deck-is-active .deck-card-window { height:calc(var(--deck-card-height) + 8px); border-radius:20px; overflow:clip; touch-action:pan-y pinch-zoom; }
#intelligence-deck.deck-is-active .reference-card { position:absolute; inset:0 auto auto 0; height:var(--deck-card-height); margin:0; }
#intelligence-deck.deck-is-active .deck-composition { height:100%; min-height:0; }
#intelligence-deck.deck-is-active.deck-in-view .reference-card.deck-live { will-change:transform; }
#intelligence-deck.deck-is-active .deck-card-window::before,#intelligence-deck.deck-is-active .deck-card-window::after { content:""; position:absolute; inset:4px 4px 0; border-radius:20px; background:#242724; pointer-events:none; z-index:-1; }
#intelligence-deck.deck-is-active .deck-card-window::after { inset:8px 8px 0; }
#intelligence-deck .deck-controls { display:none; }
#intelligence-deck.deck-is-active .deck-controls { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:52px; padding:10px 0; color:var(--deck-ink); }
#intelligence-deck .deck-current { display:flex; align-items:center; gap:16px; }
#intelligence-deck .deck-counter { font-size:12px; font-variant-numeric:tabular-nums; letter-spacing:.03em; color:#b8beb5; }
#intelligence-deck .deck-current-title { font-size:12px; font-weight:400; color:#aab2a6; }
#intelligence-deck .deck-selectors { display:flex; gap:8px; }
#intelligence-deck .deck-selectors button { display:grid; place-items:center; width:44px; height:28px; padding:0; border:0; background:none; cursor:pointer; }
#intelligence-deck .deck-selectors button > span { width:42px; height:7px; border-radius:5px; background:#282e29; transition:background .2s; }
#intelligence-deck .deck-selectors button[aria-current="step"] > span { background:#c6ddbc; }
#intelligence-deck .deck-actions { display:none; }
#intelligence-deck .deck-scroll-hint { display:flex; align-items:center; gap:9px; color:#9da797; font-size:11px; }
#intelligence-deck .deck-scroll-hint .site-icon { width:14px; height:14px; transform:rotate(90deg); }
#intelligence-deck :is(button,a,[tabindex]):focus-visible { outline:2px solid #a9c29b; outline-offset:5px; }
#intelligence-deck .deck-art-window:focus-visible { outline-offset:-2px; }
#intelligence-deck ::selection { background:#c6ddbc; color:#142719; }
#intelligence-deck .deck-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#intelligence-deck:not(.deck-is-active) .deck-art-window { flex:none; height:auto; }
#intelligence-deck:not(.deck-is-active) .deck-illustration { height:auto; }
#intelligence-deck:not(.deck-is-active) .reference-card { scroll-margin-top:86px; }
/* Reading mode remains complete with reduced motion, enlarged text or no JS. */
@media (max-width:1100px) {
 #intelligence-deck { --deck-unit:1px; --deck-type-unit:1px; --deck-card-height:auto; padding:28px 0; }
 #intelligence-deck .deck-stage { width:calc(100% - 36px); }
 #intelligence-deck .reference-card { margin-bottom:28px; border-radius:16px; }
 #intelligence-deck .deck-composition { grid-template-columns:minmax(0,1fr); min-height:0; }
 #intelligence-deck .deck-story,#intelligence-deck #search .deck-story,#intelligence-deck #collection .deck-story { padding:32px; }
 #intelligence-deck .deck-topic-icon,#intelligence-deck #search .deck-topic-icon,#intelligence-deck #collection .deck-topic-icon { width:36px; height:36px; margin-bottom:30px; }
 #intelligence-deck .deck-story h2,#intelligence-deck #coverage .deck-story h2,#intelligence-deck #lead-databases .deck-story h2,#intelligence-deck #search .deck-story h2 { font-size:clamp(38px,5vw,58px); }
 #intelligence-deck .deck-story-copy,#intelligence-deck #search .deck-story-copy { max-width:650px; margin-top:24px; font-size:18px; line-height:1.5; }
 #intelligence-deck .deck-story-accent { font-size:18px; margin-top:12px; }
 #intelligence-deck .deck-explore { margin-top:28px; padding-top:0; font-size:17px; }
 #intelligence-deck .deck-visual { padding:22px 20px; }
 #intelligence-deck .deck-art-window { overflow-x:auto; overflow-y:hidden; scrollbar-color:#a6b69a #eeede8; scrollbar-width:thin; }
 #intelligence-deck .deck-illustration { width:100%; min-width:620px; height:auto; }
 #intelligence-deck .deck-insight { margin:20px 8px 0; }
 #intelligence-deck .deck-insight strong { font-size:25px; letter-spacing:-.035em; }
 #intelligence-deck .deck-insight > span { margin-top:8px; font-size:18px; }
 #intelligence-deck .deck-illustration-note { margin-top:18px; font-size:11px; }
 #intelligence-deck .deck-art-hint { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 8px 0; color:#666e60; font-size:11px; }
}
@media (max-width:480px) {
 #intelligence-deck .deck-stage { width:calc(100% - 24px); }
 #intelligence-deck .deck-story,#intelligence-deck #search .deck-story,#intelligence-deck #collection .deck-story { padding:28px 24px; }
 #intelligence-deck .deck-story h2,#intelligence-deck #coverage .deck-story h2,#intelligence-deck #lead-databases .deck-story h2,#intelligence-deck #search .deck-story h2 { font-size:clamp(34px,8.4vw,42px); }
 #intelligence-deck .deck-visual { padding:20px 14px; }
 #intelligence-deck .deck-topic-icon { width:32px; height:32px; }
}
@media (prefers-reduced-motion:reduce) {
 #intelligence-deck .deck-explore .site-icon { transition:none; translate:none; }
}

