/* V83 — scoped case-study reliability: contrast, active-nav, fullscreen preview. */
body.v60-case-page .v30-desktop-nav .v30-nav-link:not([href="/portfolio"]):not(.is-current)::after{content:none!important}
body.v60-case-page .v30-desktop-nav .v30-nav-link:not(.is-current){color:var(--v30-ink, #263b5b)!important}
body.v60-case-page .v30-desktop-nav .v30-nav-link.is-current{color:#146cff!important}
body.v60-case-page .v60-case .v60-device-copy h2{color:#122b53;line-height:1.1;letter-spacing:-.052em}
body.v60-case-page .v60-case .v60-device-copy h2 em{color:#176cf4}
body.v60-case-page .v60-case .v60-device-screen img{display:block;object-position:top center}
body.v60-case-page .v60-case .v60-device-grid{min-width:0}
body.v60-case-page .v60-case .v60-device-stage{min-width:0}
body.v60-case-page .v60-case .v60-device-shell{max-width:100%}
body.v60-case-page .v60-case .v83-fullscreen-open{margin-top:16px}
body.v60-case-page .v60-case .v83-preview-dialog{padding:0;width:min(96vw,1650px);max-width:none;max-height:95dvh;height:min(93dvh,1050px);border:1px solid #bcd6fc;border-radius:20px;box-shadow:0 35px 100px #081e45a0;background:#f8fbff;color:#162e54;overflow:hidden}
body.v60-case-page .v60-case .v83-preview-dialog::backdrop{background:rgba(5,16,35,.83);backdrop-filter:blur(7px)}
body.v60-case-page .v60-case .v83-preview-dialog[open]{display:flex;flex-direction:column}
.v83-preview-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;background:#0c2449;color:white;padding:15px 20px;flex:none}
.v83-preview-top strong{display:block;color:#fff;font-size:15px}
.v83-preview-top span{display:block;color:#b9d7ff;font-size:11px;margin-top:4px}
.v83-preview-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.v83-preview-actions a,.v83-preview-actions button{display:inline-flex;padding:10px 13px;text-decoration:none;background:#146cf1;color:#fff;border-radius:9px;border:1px solid #4a9aff;cursor:pointer;font-size:12px;font-weight:700}
.v83-preview-actions [data-v83-close-preview]{background:#233f68;font-size:22px;line-height:1;padding:7px 12px}
.v83-preview-canvas{position:relative;flex:1;min-height:0;overflow:auto;background:#eaf2ff;display:flex;justify-content:center;align-items:flex-start}
.v83-preview-canvas img{width:100%;height:auto;max-height:none;object-fit:contain;object-position:top}
.v83-preview-canvas iframe{border:0;display:block;width:100%;height:100%;min-height:60vh;background:#fff}
.v83-preview-canvas iframe[hidden],.v83-preview-canvas img[hidden]{display:none}
body.v60-case-page .v60-case .v83-preview-help{flex:none;color:#456181;background:#fff;border-top:1px solid #d3e3fd;margin:0;padding:9px 18px;font-size:12px;line-height:1.5}
/* Preserve intentional blue/white editorial design in dark mode, without inherited white-on-white text. */
html[data-theme="dark"] body.v60-case-page{--c-ink:#e9f4ff;--c-sub:#b5cdeb;--c-line:#29466b;color:#e9f4ff;background:#081a34}
html[data-theme="dark"] body.v60-case-page main.v60-case{background:#0b203c;color:#e9f4ff}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-panel{background:#0e2545!important;color:#e9f4ff}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-panel:nth-of-type(odd){background:#102d51!important}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-hero{background:radial-gradient(circle at 75% 29%,#1c518c,transparent 40%),linear-gradient(140deg,#0b1d36,#122c4c)!important}
html[data-theme="dark"] body.v60-case-page main.v60-case h1,
html[data-theme="dark"] body.v60-case-page main.v60-case h2,
html[data-theme="dark"] body.v60-case-page main.v60-case h3,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-device-copy h2{color:#f0f7ff!important}
html[data-theme="dark"] body.v60-case-page main.v60-case h2 em,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-device-copy h2 em{color:#7cb6ff!important}
html[data-theme="dark"] body.v60-case-page main.v60-case p,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-device-note{color:#c2d4ed!important}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-kicker,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-live-link{color:#9bcdff!important}
html[data-theme="dark"] body.v60-case-page .v60-anchorbar{background:#0c2240;border-color:#28486e}
html[data-theme="dark"] body.v60-case-page .v60-anchorbar a{color:#afc4df}
html[data-theme="dark"] body.v60-case-page .v60-anchorbar a.is-active{color:#81bbff}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-techs span,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-path-card,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-quality-item,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-board-hub,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-device-tabs button:not(.is-active),
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-btn.outline{background:#18395f;color:#d9ebff!important;border-color:#416997}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-techs span,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-path-card span,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-quality-item h3,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-quality-overlay strong{color:#d9ebff!important}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-quality-item p{color:#b2cbe7!important}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-arch-board{background:linear-gradient(150deg,#112c4f,#173a63);border-color:#335781}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-board-hub strong{color:#e2efff!important}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-quality-overlay{background:#173456f5;border-color:#3a618c}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-cta-card{background:linear-gradient(116deg,#164585,#196df3)!important}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-cta-card h2,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-cta-card p{color:#fff!important}
html[data-theme="dark"] body.v60-case-page .v30-desktop-nav .v30-nav-link:not(.is-current){color:#c7dfff!important}
html[data-theme="dark"] body.v60-case-page .v30-desktop-nav .v30-nav-link.is-current{color:#81bbff!important}
@media(max-width:680px){.v83-preview-top{padding:12px}.v83-preview-actions a,.v83-preview-actions button{font-size:11px;padding:9px}.v83-preview-dialog{width:100vw!important;height:98dvh!important;max-height:98dvh!important;border-radius:9px!important}.v83-preview-canvas iframe{min-height:50vh}}

html[data-theme="dark"] body.v60-case-page .v60-case .v83-preview-help{color:#2c476e!important}
/* V83 contrast verification follow-up: explicit contrast on inherited header/metadata rules. */
html[data-theme="dark"] body.v60-case-page .v30-header .v30-desktop-nav a.v30-nav-link:not(.is-current),
html[data-theme="dark"] body.v60-case-page .v30-header .v30-desktop-nav button.v30-nav-link:not(.is-current){color:#d3e7ff!important}
html[data-theme="dark"] body.v60-case-page .v30-header .v30-desktop-nav a.v30-nav-link.is-current{color:#81bbff!important}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-hero-metadata strong,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-hero-metadata small{color:#cce1fb!important}
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-techs span,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-board-top,
html[data-theme="dark"] body.v60-case-page main.v60-case .v60-arch-footnote{color:#d6eaff!important}

/* V84: laptop live website is default; no screenshot mode or offset modal. */
body.v60-case-page .v60-case .v84-preview-links{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin-top:20px}
body.v60-case-page .v60-case .v84-preview-links .v83-fullscreen-open{margin-top:0}
body.v60-case-page .v60-case .v60-iframe-layer{display:block;inset:0;background:#fff}
body.v60-case-page .v60-case .v60-iframe-layer iframe{display:block;position:absolute;left:0;top:0;transform-origin:0 0;border:0;background:#fff}
body.v60-case-page .v60-case .v83-preview-dialog{position:fixed!important;inset:50% auto auto 50%!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;width:min(96vw,1550px)!important;height:min(92dvh,1000px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;box-sizing:border-box;overflow:hidden}
body.v60-case-page .v60-case .v83-preview-canvas{display:flex;flex:1;min-height:0;align-items:stretch;justify-content:stretch;overflow:hidden}
body.v60-case-page .v60-case .v83-preview-canvas iframe{flex:1;width:100%;height:100%;min-height:0;max-height:100%;background:#fff}
@media(max-width:680px){body.v60-case-page .v60-case .v83-preview-dialog{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important}body.v60-case-page .v60-case .v84-preview-links{align-items:flex-start;flex-direction:column;gap:12px}}
