/* Concept B refinement. Scope all integration styles to .sw-section. */
.sw-section{--sw-surface:color-mix(in srgb,var(--bg-main,#090a0c) 65%,transparent);--sw-field:var(--bg-soft,#151619);--sw-ink:var(--text-primary,#f4f4ef);--sw-muted:var(--text-secondary,#b7b7b0);--sw-accent:var(--accent-blue-soft,#9bb5ff);--sw-gap:clamp(32px,4vw,64px);--sw-pad:40px;padding-block:64px 0;color:var(--sw-ink)}
.sw-section *{box-sizing:border-box}.sw-section :is(h3,h4,p,ol,dl,dd,figure){margin:0}.sw-section-heading{display:flex;justify-content:space-between;align-items:center;gap:32px;margin-bottom:32px}.sw-section-heading h3{font:600 32px/1.15 var(--font-primary);letter-spacing:-.035em;max-width:none}.sw-section-heading>p{font-size:16px;line-height:1.5;color:var(--sw-muted);max-width:32ch}.sw-panels{display:grid;gap:24px}.sw-panel{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);column-gap:var(--sw-gap);row-gap:32px;padding:var(--sw-pad);background:var(--sw-surface);align-items:start}.sw-entry-heading{grid-column:1;grid-row:1;min-width:0}.sw-classification{font:500 14px/1.5 var(--font-primary);color:var(--sw-accent);letter-spacing:0}.sw-entry-heading h4{font:500 28px/1.15 var(--font-primary);letter-spacing:-.035em;max-width:25ch;margin-block:16px}.sw-summary{font-size:16px;line-height:1.6;max-width:57ch}.sw-process,.sw-workflows{grid-column:1;grid-row:2;min-width:0}.sw-detail-heading{font-size:16px;line-height:1.5;font-weight:500;margin-bottom:16px!important}.sw-process ol{list-style:none;padding:0;display:grid;gap:16px}.sw-process li,.sw-workflows dl>div{display:grid;grid-template-columns:minmax(0,176px) minmax(0,1fr);gap:16px;font-size:16px;line-height:1.5}.sw-process strong,.sw-workflows dt{font-weight:500}.sw-process li>span,.sw-workflows dd{color:var(--sw-muted)}.sw-workflows dl{display:grid;gap:16px}.sw-caption{font-size:14px;line-height:1.5;color:var(--sw-muted);margin-top:16px!important}.sw-evidence{grid-column:2;grid-row:1/3;min-width:0}.sw-outcome{background:var(--sw-field);padding:32px}.sw-evidence-label{font-size:16px;line-height:1.5;color:var(--sw-muted)}.sw-result{display:flex;align-items:baseline;gap:16px;font-size:40px;line-height:1.2;letter-spacing:-.045em;font-variant-numeric:tabular-nums;margin-top:24px!important;white-space:nowrap}.sw-arrow{color:var(--sw-accent)}.sw-unit{font-size:14px;line-height:1.5;color:var(--sw-muted);margin-top:4px!important}.sw-attribution{font-size:16px;line-height:1.6;margin-top:24px!important;max-width:42ch}.sw-notion-media{align-self:stretch;display:flex;flex-direction:column}.sw-provisional{background:var(--sw-field);padding:32px;min-height:248px;flex:1;display:flex;flex-direction:column;justify-content:center;gap:16px}.sw-media-title{font:italic 32px/1.1 var(--font-editorial);max-width:14ch}.sw-media-label{font-size:16px;line-height:1.5}.sw-media-note{font-size:14px;line-height:1.6;color:var(--sw-muted);max-width:35ch}.sw-notion-media figcaption{font-size:14px;line-height:1.5;color:var(--sw-muted);margin-top:16px}.sw-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1000px){.sw-section{--sw-pad:32px;--sw-gap:32px}.sw-panel{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);row-gap:24px}.sw-entry-heading{grid-column:1/-1}.sw-entry-heading h4{max-width:none}.sw-process,.sw-workflows{grid-row:2}.sw-evidence{grid-row:2}.sw-process li,.sw-workflows dl>div{grid-template-columns:1fr;gap:4px}.sw-outcome{padding:24px}.sw-result{font-size:32px;gap:12px;margin-top:16px!important}.sw-attribution{margin-top:16px!important}.sw-provisional{padding:24px;min-height:248px}.sw-media-title{font-size:28px}}
@media(max-width:640px){.sw-section{--sw-pad:24px;padding-top:40px}.sw-section-heading{display:block;margin-bottom:24px}.sw-section-heading h3{font-size:28px}.sw-section-heading>p{margin-top:12px;max-width:32ch}.sw-panel{grid-template-columns:minmax(0,1fr);gap:24px}.sw-entry-heading h4{font-size:24px;line-height:1.2;margin-block:12px 16px}.sw-entry-heading,.sw-process,.sw-workflows,.sw-evidence{grid-column:1;grid-row:auto}.sw-entry-heading{order:0}.sw-operations .sw-outcome{order:1}.sw-operations .sw-process{order:2}.sw-notion .sw-workflows{order:1}.sw-notion .sw-notion-media{order:2}.sw-outcome{padding:20px}.sw-result{font-size:32px;gap:12px}.sw-provisional{padding:24px;min-height:200px}.sw-media-title{font-size:24px;max-width:none}.sw-process ol,.sw-workflows dl{gap:16px}.sw-notion-media figcaption{margin-top:12px}.sw-attribution{font-size:16px}.sw-classification{font-size:14px}}
@media(prefers-reduced-motion:reduce){.sw-section *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.sw-panel,.sw-outcome,.sw-provisional{outline:1px solid CanvasText}}

/* Only the Notion media area is refined. Phase 3C component CSS remains unchanged. */
.sw-section .sw-authentic-evidence{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-content:start;align-self:start}
.sw-section .sw-authentic-evidence img{display:block;width:100%;height:auto;max-width:100%;border-radius:0;background:var(--sw-field)}
.sw-authentic-evidence .ne-overview,.sw-authentic-evidence .ne-detail{min-width:0}
.sw-authentic-evidence .ne-caption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;margin:12px 0 0;font:400 14px/1.5 var(--font-primary);color:var(--sw-muted)}
.sw-authentic-evidence .ne-caption>span:first-child{color:var(--sw-ink);font-weight:500}
.sw-section .sw-authentic-evidence>figcaption{font-size:14px;line-height:1.5;color:var(--sw-muted);margin:0;max-width:52ch}
@media(max-width:1000px) and (min-width:641px){.sw-section .sw-notion .sw-entry-heading{grid-column:1;grid-row:1}.sw-section .sw-notion .sw-workflows{grid-column:1;grid-row:2}.sw-section .sw-notion .sw-authentic-evidence{grid-column:2;grid-row:1/3}}
@media(max-width:640px){.sw-section .sw-authentic-evidence{gap:20px}.sw-authentic-evidence .ne-caption{display:block}.sw-authentic-evidence .ne-caption>span{display:block}.sw-authentic-evidence .ne-caption>span+span{margin-top:4px}}
@media(max-width:1000px){.sw-authentic-evidence .ne-overview{max-width:420px}.sw-authentic-evidence .ne-detail{max-width:325px;margin-left:auto}}

/* Keep the copy grouped even when the screenshot spans both grid rows. */
.sw-section .sw-notion{grid-template-rows:max-content 1fr}

/* Optional native-dialog enlargement; inline evidence remains immediately visible. */
.sw-section .sw-view-workspace{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 16px;min-height:44px;max-width:100%;justify-self:start;color:#f4f4ef;background:#172b67;border:1px solid #405e9f;text-decoration:none}
.sw-view-copy{display:grid;gap:2px}.sw-view-label{font:500 14px/1.5 var(--font-primary)}.sw-view-hint{font:400 13px/1.5 var(--font-primary);color:#c5d4fa}.sw-view-workspace svg{flex-shrink:0}.sw-section .sw-view-workspace:hover{background:#23468b;border-color:var(--sw-accent)}.sw-section .sw-view-workspace:focus-visible{outline:2px solid var(--sw-accent);outline-offset:5px}
html.notion-viewer-open{overflow:hidden;scrollbar-gutter:stable}
.notion-viewer{color:var(--text-primary);background:var(--bg-raised);width:min(1242px,calc(100vw - 48px));height:min(92dvh,960px);max-width:none;max-height:92dvh;margin:auto;padding:0;border:1px solid var(--border-strong);border-radius:8px;overflow:hidden}
.notion-viewer[open]{display:flex;flex-direction:column}.notion-viewer::backdrop{background:rgb(0 0 0 / 78%)}
/* Move the window as one object; the screenshot keeps its own size and scroll position. */
.notion-viewer[data-motion="opening"]{animation:nv-window-in 230ms cubic-bezier(.16,1,.3,1) both}
.notion-viewer[data-motion="closing"]{animation:nv-window-out 200ms cubic-bezier(.4,0,1,1) both}
.notion-viewer[data-motion="opening"]::backdrop{animation:nv-backdrop-in 200ms ease-out both}
.notion-viewer[data-motion="closing"]::backdrop{animation:nv-backdrop-out 200ms ease-in both}
@keyframes nv-window-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes nv-window-out{from{opacity:var(--nv-exit-opacity,1);transform:var(--nv-exit-transform,none)}to{opacity:0;transform:translateY(10px) scale(.985)}}
@keyframes nv-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes nv-backdrop-out{from{opacity:var(--nv-backdrop-opacity,1)}to{opacity:0}}
.nv-window-bar{display:flex;align-items:center;gap:16px;padding:8px 16px;background:var(--bg-soft);flex-shrink:0}
.notion-viewer .nv-title{font:500 18px/1.4 var(--font-primary);letter-spacing:-.02em;margin:0;max-width:none;flex:1}
.nv-zoom{display:flex;gap:2px}.nv-zoom button,.nv-close{font:500 14px/1.5 var(--font-primary);color:var(--text-secondary);background:transparent;border:1px solid transparent;border-radius:3px;min-width:44px;min-height:44px;padding:8px}
.nv-zoom button[aria-pressed="true"]{color:var(--text-primary);background:var(--bg-main);border-color:var(--border-strong)}.nv-close{display:grid;place-items:center;padding:0}.nv-close span{font:300 28px/1 sans-serif}.nv-close:hover,.nv-zoom button:hover{color:var(--accent-blue-soft);background:var(--bg-main)}
.nv-description{font:400 14px/1.5 var(--font-primary);color:var(--text-secondary);padding:10px 16px;margin:0;max-width:none;flex-shrink:0}
.nv-image-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;background:#191919;scrollbar-gutter:stable;flex:1;scroll-behavior:auto}
.nv-image-scroll img{display:block;height:auto;margin:0 auto;width:100%;max-width:1875px}.nv-image-scroll[data-zoom="actual"] img{width:1875px;max-width:none;margin:0}
.notion-viewer :is(button,[tabindex]):focus-visible{outline:2px solid var(--accent-blue-soft);outline-offset:-3px}
@media(max-width:700px){.notion-viewer{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:4px}.nv-window-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:6px 12px;gap:0 12px}.notion-viewer .nv-title{font-size:16px}.nv-close{grid-column:2;grid-row:1}.nv-zoom{grid-column:1/-1;grid-row:2}.nv-description{padding:10px 12px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.notion-viewer,.notion-viewer::backdrop,.notion-viewer *,.sw-view-workspace{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.notion-viewer,.sw-section .sw-view-workspace{border:2px solid CanvasText}.nv-close,.nv-zoom button{border:1px solid ButtonText}}
