/* Isolated from the approved Product Eye deck and the older Atlas rendering. */
body.problem-edition{--ps-ink:#0b1420;--ps-paper:#f3e9cf;--ps-coral:#ff9675;--ps-mint:#a0decb;--ps-gold:#eac887;background:var(--ps-ink);color:var(--ps-paper)}
body.problem-edition.lecture-studio .ps-slide{position:absolute!important;inset:0!important;display:none!important;padding:0!important;margin:0!important;overflow:auto!important;background:var(--ps-ink)!important;color:var(--ps-paper)!important;transform:none!important;transition:none!important;isolation:isolate;text-align:left!important;grid-template-columns:none!important}
body.problem-edition.lecture-studio .ps-slide.active{display:block!important}
body.problem-edition .ps-slide::before,body.problem-edition .ps-slide::after{display:none!important}
body.problem-edition .ps-art{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;z-index:-1;pointer-events:none}
body.problem-edition .ps-art img{width:100%;height:100%;object-fit:cover;object-position:70% center;opacity:.68}
body.problem-edition .ps-art::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0b1420fa 0%,#0b1420ed 42%,#0b142070 75%,#0b142030),linear-gradient(0deg,#0b1420 0%,transparent 35%)}
body.problem-edition .ps-stage{box-sizing:border-box;position:relative;min-height:100%;padding:clamp(110px,14vh,160px) 5.5vw 100px!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-content:center;align-items:center;column-gap:5vw;row-gap:32px;width:100%!important;max-width:none!important}
body.problem-edition .ps-copy{margin:0!important;max-width:none!important;min-width:0}
body.problem-edition .ps-kicker{font:550 20px/1.4 Inter,system-ui,sans-serif!important;letter-spacing:.02em!important;color:var(--ps-gold)!important;margin:0 0 18px!important}
body.problem-edition .ps-slide h1{font:750 clamp(52px,4.5vw,76px)/1.06 Inter,system-ui,sans-serif!important;letter-spacing:-.045em!important;margin:0!important;max-width:none!important;color:var(--ps-paper)!important;background:none!important;-webkit-text-fill-color:currentColor!important;text-wrap:balance}
body.problem-edition .ps-lead{font:450 clamp(25px,2vw,30px)/1.45 Inter,system-ui,sans-serif!important;color:#d9dfda!important;letter-spacing:-.02em!important;margin:24px 0 0!important;max-width:none!important}
body.problem-edition .ps-slide em{font-style:normal!important;color:var(--ps-coral)!important;-webkit-text-fill-color:currentColor!important}
body.problem-edition .ps-slide strong{color:var(--ps-mint)!important;-webkit-text-fill-color:currentColor!important}
body.problem-edition .ps-board{box-sizing:border-box;position:relative!important;margin:0!important;padding:28px!important;min-width:0;width:100%!important;max-width:none!important;background:#0b1420ee;border:1px solid #a0decb38;border-radius:4px;box-shadow:0 16px 70px #0003;font:450 25px/1.45 Inter,system-ui,sans-serif!important}
body.problem-edition .ps-board h2,body.problem-edition .ps-notes h2{font:650 26px/1.3 Inter,system-ui,sans-serif!important;color:var(--ps-coral)!important;margin:0 0 14px!important}
body.problem-edition .ps-board p{font:inherit!important;color:inherit!important;margin:16px 0!important;max-width:none!important}
body.problem-edition .ps-points{display:grid;gap:20px;margin:0;padding:0}
body.problem-edition .ps-points>div{margin:0;padding:0;min-width:0}
body.problem-edition .ps-points dt{font:600 21px/1.35 Inter,system-ui,sans-serif!important;color:var(--ps-mint)!important;margin:0 0 5px!important}
body.problem-edition .ps-points dd{font:450 25px/1.4 Inter,system-ui,sans-serif!important;color:var(--ps-paper)!important;margin:0!important}
body.problem-edition .ps-board button,body.problem-edition .ps-notes button{font:600 18px/1.3 Inter,system-ui,sans-serif;min-height:46px;padding:11px 16px;color:var(--ps-paper);border:1px solid #a0decb65;background:#192b36;border-radius:6px;cursor:pointer;transition:background .15s,box-shadow .15s}
body.problem-edition .ps-board button:hover,body.problem-edition .ps-board button[aria-pressed=true]{background:#335347;box-shadow:0 0 20px #a0decb25}
body.problem-edition button:focus-visible,body.problem-edition a:focus-visible,body.problem-edition summary:focus-visible,body.problem-edition input:focus-visible{outline:3px solid var(--ps-coral);outline-offset:4px}
body.problem-edition .ps-board button:disabled{opacity:.4;cursor:default}
body.problem-edition .ps-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}
body.problem-edition .ps-callout{font-size:22px!important;border-left:3px solid var(--ps-coral);padding-left:18px;color:#d9dfda!important}
body.problem-edition .ps-fine,body.problem-edition .ps-board .ps-fine{font:450 18px/1.5 Inter,system-ui,sans-serif!important;color:#c0cbc8!important;margin:18px 0 0!important}
body.problem-edition .ps-notes{grid-column:1/-1;align-self:start;position:relative!important;inset:auto!important;margin:0!important;width:100%!important;max-width:none!important;font:450 21px/1.55 Inter,system-ui,sans-serif!important;z-index:2}
body.problem-edition .ps-notes summary{width:max-content;max-width:100%;padding:10px 0;cursor:pointer;color:var(--ps-gold);font:550 18px/1.4 Inter,system-ui,sans-serif!important}
body.problem-edition .ps-notes[open]>div{max-width:900px;padding:28px;background:#0b1420f7;border-top:1px solid #a0decb50}
body.problem-edition .ps-notes p{font:inherit!important;color:var(--ps-paper)!important;max-width:none!important}
body.problem-edition .ps-notes h3{font:600 23px/1.4 Inter,system-ui,sans-serif!important;color:var(--ps-gold)!important}
body.problem-edition .ps-notes a,body.problem-edition .ps-download{color:var(--ps-mint)!important;text-decoration:underline;text-underline-offset:5px}
body.problem-edition .ps-table-scroll{overflow-x:auto;width:100%}
body.problem-edition table{width:100%;border-collapse:collapse;font:450 23px/1.4 Inter,system-ui,sans-serif!important;color:var(--ps-paper)}
body.problem-edition th{text-align:left;color:var(--ps-mint);font-weight:600}
body.problem-edition td,body.problem-edition th{padding:16px 12px;border-bottom:1px solid #a0decb35;vertical-align:top}
body.problem-edition .ps-code{min-width:0}
body.problem-edition .ps-code-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font:450 16px/1.4 Inter,system-ui,sans-serif;color:#b7c9c4;margin-bottom:15px}
body.problem-edition .ps-code pre,body.problem-edition .ps-bug pre{margin:0!important;padding:0!important;max-width:100%!important;overflow-x:auto!important;background:transparent!important;border:0!important;white-space:pre!important;word-break:normal!important}
body.problem-edition .ps-code code,body.problem-edition .ps-bug pre{font:450 clamp(17px,1.5vw,23px)/1.65 'SFMono-Regular',Consolas,monospace!important;color:#f3e9cf!important;white-space:pre!important}
body.problem-edition .ps-code-status:empty,body.problem-edition .ps-copy-status:empty{display:none}
body.problem-edition .ps-compare{display:grid;grid-template-columns:1fr 1fr;gap:36px}
body.problem-edition .ps-compare section{border-top:3px solid var(--ps-coral);padding-top:20px}
body.problem-edition .ps-compare section:nth-child(2){border-color:var(--ps-mint)}
body.problem-edition .ps-route{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:0;padding:0}
body.problem-edition .ps-route li{border-top:1px solid #a0decb50;padding-top:16px;display:grid;gap:8px}
body.problem-edition .ps-route span{font-size:36px;color:var(--ps-coral)}
body.problem-edition .ps-route strong{font-size:25px}
body.problem-edition .ps-route small{font-size:20px}
body.problem-edition .ps-array{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
body.problem-edition .ps-array>div{padding:15px 4px;border:1px solid #a0decb50;text-align:center;border-radius:6px}
body.problem-edition .ps-array small{display:block;font-size:16px;color:#c0cbc8}
body.problem-edition .ps-array strong{display:block;font-size:44px;line-height:1.2}
body.problem-edition .ps-array .ps-current{background:#ff96751c;border:2px solid var(--ps-coral)}
body.problem-edition .ps-array .ps-current strong{color:var(--ps-coral)!important}
body.problem-edition .ps-array .ps-seen{background:#a0decb18}
body.problem-edition .ps-memory{font:450 20px/1.5 monospace;padding:20px 0;margin-bottom:10px;color:var(--ps-mint)}
body.problem-edition .ps-match{display:flex;align-items:center;justify-content:space-between;gap:20px}
body.problem-edition .ps-match small{font-size:18px;color:var(--ps-gold)}
body.problem-edition .ps-match p{font:450 32px/1.6 monospace!important}
body.problem-edition .ps-match-arrow{font-size:42px;color:var(--ps-coral)}
body.problem-edition .ps-match output{font:600 38px/1.3 monospace;color:var(--ps-mint)}
body.problem-edition .ps-invariant{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin-bottom:28px}
body.problem-edition .ps-invariant span{font-size:17px;color:var(--ps-gold)}
body.problem-edition .ps-invariant div{font-size:36px;color:var(--ps-mint)}
body.problem-edition .ps-invariant .ps-now{color:var(--ps-coral)}
body.problem-edition .ps-cost label{display:flex;flex-wrap:wrap;gap:16px;align-items:center}
body.problem-edition .ps-cost input{flex:1;min-width:100px;accent-color:var(--ps-coral)}
body.problem-edition .ps-cost-row{margin-top:26px;display:grid;grid-template-columns:1fr auto;gap:6px}
body.problem-edition .ps-cost-row h2{font-size:23px!important;margin:0!important}
body.problem-edition .ps-cost-row>strong{font-size:32px}
body.problem-edition .ps-cost-row>span{grid-column:1/-1;font-size:18px}
body.problem-edition .ps-bar{grid-column:1/-1;height:8px;background:var(--ps-coral);min-width:3px}
body.problem-edition .ps-lbar{background:var(--ps-mint)}
body.problem-edition .ps-bug-result{display:block;font-size:28px;color:var(--ps-coral);margin-top:26px}
body.problem-edition .ps-suite-results ul{padding:0;list-style:none;display:grid;gap:12px}
body.problem-edition .ps-suite-results li{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:20px}
body.problem-edition .ps-suite-results code{font-size:17px;color:inherit}
body.problem-edition .ps-pass{color:var(--ps-mint)}
body.problem-edition .ps-fail{color:var(--ps-coral)}
body.problem-edition .ps-suite details>summary{color:var(--ps-gold);font-size:19px;cursor:pointer;padding:12px 0}
body.problem-edition .ps-matrix{display:grid;gap:10px;max-width:320px;margin:24px auto}
body.problem-edition .ps-matrix button{min-height:70px;font-size:30px;background:#162530;color:#f3e9cf}
body.problem-edition .ps-matrix .ps-neighbor{background:#a0decb25;border-color:var(--ps-mint)}
body.problem-edition .ps-matrix .ps-selected{background:#ff967535;border:3px solid var(--ps-coral);color:var(--ps-coral)}
body.problem-edition .ps-matrix-result{display:block;text-align:center;color:var(--ps-mint);font-size:26px}
body.problem-edition .ps-signature{font-size:24px!important}.ps-signature span{color:var(--ps-coral)}
body.problem-edition .ps-download{display:inline-block;margin-top:28px;font-size:23px}
/* Wide explanations keep supporting content near the heading; illustrations remain generous. */
body.problem-edition .ps-slide:is([data-ps-layout=compare],[data-ps-layout=route],[data-ps-layout=tests],[data-ps-layout=summary]) .ps-stage{grid-template-columns:1fr}
body.problem-edition .ps-slide:is([data-ps-layout=compare],[data-ps-layout=route],[data-ps-layout=tests],[data-ps-layout=summary]) .ps-copy{max-width:1000px!important}
body.problem-edition .ps-slide:is([data-ps-layout=compare],[data-ps-layout=route],[data-ps-layout=tests],[data-ps-layout=summary]) h1 br{display:none}
body.problem-edition .ps-slide:is([data-ps-layout=compare],[data-ps-layout=route],[data-ps-layout=tests],[data-ps-layout=summary]) .ps-board{max-width:1000px!important;justify-self:start}
body.problem-edition .ps-slide[data-ps-layout=summary] .ps-points{grid-template-columns:repeat(3,1fr);gap:32px}
body.problem-edition .ps-slide:is([data-ps-layout=hero],[data-ps-layout=closing]) .ps-stage{grid-template-columns:1fr;align-content:center}
body.problem-edition .ps-slide:is([data-ps-layout=hero],[data-ps-layout=closing]) .ps-copy{width:58%;max-width:800px!important}
body.problem-edition .ps-slide:is([data-ps-layout=hero],[data-ps-layout=closing]) h1{font-size:clamp(66px,6vw,100px)!important}
body.problem-edition .ps-slide:is([data-ps-layout=hero],[data-ps-layout=closing]) .ps-board{width:58%!important;background:transparent;border:0;box-shadow:none;padding:0!important}
body.problem-edition .ps-slide:is([data-ps-layout=hero],[data-ps-layout=closing]) .ps-art img{opacity:1}
body.problem-edition .ps-slide[data-ps-layout=closing] .ps-points{grid-template-columns:repeat(3,1fr);gap:20px}
body.problem-edition .ps-slide:is([data-ps-layout=code],[data-ps-layout=test-run]) .ps-stage{grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr);column-gap:4vw}
body.problem-edition .counter{z-index:12;background:#0b1420e8;padding:7px 14px;border-radius:4px;font-size:18px}
body.problem-edition .nav-arrow{z-index:12;background:#0b1420dd}
@media(max-width:820px){
body.problem-edition .ps-stage{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;padding:100px 24px 100px!important;gap:26px!important;min-height:100%}
body.problem-edition .ps-stage>*{width:100%!important;max-width:100%!important;flex-shrink:0}
body.problem-edition .ps-slide .ps-art{position:absolute!important;height:420px!important;inset:70px 0 auto!important}
body.problem-edition .ps-art img{opacity:.8;object-position:70% center}
body.problem-edition .ps-art::after{background:linear-gradient(0deg,#0b1420 0%,#0b1420bb 45%,#0b142080 100%)}
body.problem-edition .ps-slide h1,body.problem-edition .ps-slide:is([data-ps-layout=hero],[data-ps-layout=closing]) h1{font-size:clamp(39px,10vw,62px)!important;line-height:1.08!important}
body.problem-edition .ps-kicker{font-size:17px!important;margin-bottom:16px!important}
body.problem-edition .ps-lead{font-size:23px!important;line-height:1.5!important;margin-top:20px!important}
body.problem-edition .ps-board{padding:20px!important;font-size:22px!important}
body.problem-edition .ps-slide:is([data-ps-layout=hero],[data-ps-layout=closing]) .ps-board{width:100%!important}
body.problem-edition .ps-points dd{font-size:22px!important}
body.problem-edition .ps-points dt{font-size:20px!important}
body.problem-edition .ps-compare,body.problem-edition .ps-slide[data-ps-layout=summary] .ps-points,body.problem-edition .ps-slide[data-ps-layout=closing] .ps-points{grid-template-columns:1fr}
body.problem-edition .ps-route{grid-template-columns:1fr 1fr;gap:20px}
body.problem-edition .ps-route strong{font-size:23px}.ps-route small{font-size:18px}
body.problem-edition .ps-notes[open]>div{padding:20px 0}
body.problem-edition .ps-code code,body.problem-edition .ps-bug pre{font-size:17px!important}
body.problem-edition .ps-code-head{font-size:14px;align-items:flex-start}
body.problem-edition .ps-match{flex-wrap:wrap;justify-content:start}
body.problem-edition .ps-match p{font-size:27px!important}
body.problem-edition .ps-match-arrow{font-size:30px}
body.problem-edition .ps-array strong{font-size:34px}.ps-array small{font-size:13px}
body.problem-edition .ps-array{gap:6px}
body.problem-edition .ps-matrix button{min-height:60px}
body.problem-edition table{font-size:19px!important}
body.problem-edition td,body.problem-edition th{padding:12px 8px}
body.problem-edition .ps-table-scroll{max-width:100%}
body.problem-edition .ps-buttons button{font-size:17px;padding:10px 12px}
body.problem-edition .ps-invariant{gap:10px}.ps-invariant div{font-size:28px}
}
@media(prefers-reduced-motion:reduce){body.problem-edition *{transition:none!important}}
@media(min-width:821px){
body.problem-edition .ps-slide[data-ps-layout=route] .ps-route{grid-template-columns:repeat(7,minmax(0,1fr));gap:16px}
body.problem-edition .ps-slide[data-ps-layout=route] .ps-route strong{font-size:23px}
body.problem-edition .ps-slide[data-ps-layout=route] .ps-route small{font-size:18px}
body.problem-edition .ps-slide[data-ps-layout=route] .ps-board{max-width:none!important}
body.problem-edition .ps-slide[data-ps-layout=route] .ps-copy{max-width:none!important}
body.problem-edition .ps-slide[data-ps-layout=tests] .ps-stage{grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr);column-gap:4vw}
body.problem-edition .ps-slide[data-ps-layout=tests] .ps-board{max-width:none!important}
body.problem-edition .ps-slide[data-ps-layout=tests] table{font-size:21px!important}
body.problem-edition .ps-slide[data-ps-layout=tests] td,body.problem-edition .ps-slide[data-ps-layout=tests] th{padding:13px 9px}
}
@media(min-width:821px) and (max-height:780px){
body.problem-edition .ps-stage{padding-top:100px!important;padding-bottom:75px!important;row-gap:24px}
body.problem-edition .ps-slide h1{font-size:52px!important}
body.problem-edition .ps-slide:is([data-ps-layout=hero],[data-ps-layout=closing]) h1{font-size:72px!important}
body.problem-edition .ps-lead{font-size:25px!important;margin-top:18px!important}
body.problem-edition .ps-kicker{font-size:18px!important;margin-bottom:14px!important}
body.problem-edition .ps-board{padding:22px!important}
body.problem-edition .ps-points{gap:14px}
body.problem-edition .ps-points dd{font-size:23px!important}
body.problem-edition .ps-points dt{font-size:20px!important}
}
@media(min-width:821px) and (max-height:780px){body.problem-edition .ps-slide[data-ps-layout=matrix] .ps-matrix{margin:16px auto;max-width:280px}body.problem-edition .ps-slide[data-ps-layout=matrix] .ps-matrix button{min-height:60px}}
/* Keep links visibly actionable in both the slide and expanded notes. */
body.problem-edition .ps-notes a,body.problem-edition .ps-download{display:block;width:fit-content;max-width:100%;box-sizing:border-box;border:1px solid #a0decb55;background:#152832;padding:14px 18px;border-radius:8px;overflow-wrap:anywhere;transition:background .15s,box-shadow .15s}
body.problem-edition .ps-notes a:hover,body.problem-edition .ps-download:hover{background:#244236;box-shadow:0 0 24px #a0decb22}
@media(min-width:821px) and (max-height:780px){body.problem-edition:not(.coding-edition) .ps-slide[data-ps-layout=closing] .ps-stage{padding-bottom:52px!important}}
/* The recap uses complete sentences beside the title, with room for the cover art. */
@media(min-width:821px){
body.problem-edition:not(.coding-edition):not(.genai-edition) .ps-slide[data-ps-layout=closing] .ps-stage{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)}
body.problem-edition:not(.coding-edition):not(.genai-edition) .ps-slide[data-ps-layout=closing] .ps-copy,
body.problem-edition:not(.coding-edition):not(.genai-edition) .ps-slide[data-ps-layout=closing] .ps-board{width:100%!important}
body.problem-edition:not(.coding-edition):not(.genai-edition) .ps-slide[data-ps-layout=closing] .ps-points{grid-template-columns:1fr;gap:24px}
body.problem-edition:not(.coding-edition):not(.genai-edition) .ps-slide[data-ps-layout=closing] .ps-board{padding:24px!important;background:#0b1420d9;border:1px solid #a0decb38}
}
/* Show the original pixels and the complete new image together. */
body.problem-edition .ps-copy .ps-matrix-rule{font:450 19px/1.45 Inter,system-ui,sans-serif!important;color:var(--ps-gold)!important;margin:18px 0 0!important;padding-inline-start:14px;border-inline-start:2px solid var(--ps-coral)}
body.problem-edition .ps-matrix-demo .ps-buttons{margin-bottom:14px}
body.problem-edition .ps-matrix-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px}
body.problem-edition .ps-matrix-pair section{min-width:0}
body.problem-edition .ps-matrix-pair h2{font-size:18px!important;margin-bottom:10px!important}
body.problem-edition .ps-slide[data-ps-layout=matrix] .ps-matrix-pair .ps-matrix,
body.problem-edition .ps-smoothed{display:grid;gap:6px;max-width:none;margin:0}
body.problem-edition .ps-slide[data-ps-layout=matrix] .ps-matrix-pair .ps-matrix button,
body.problem-edition .ps-smoothed>div{display:grid;place-items:center;min-width:0;min-height:44px;box-sizing:border-box;padding:6px;font-size:23px;line-height:1.2;border:1px solid #a0decb50;border-radius:6px}
body.problem-edition .ps-slide[data-ps-layout=matrix] .ps-matrix-pair .ps-selected{border:3px solid var(--ps-coral)}
body.problem-edition .ps-smoothed>div{color:var(--ps-paper);background:#a0decb12}
body.problem-edition .ps-smoothed>.ps-selected{background:#ff967535;border:3px solid var(--ps-coral);color:var(--ps-coral)}
body.problem-edition .ps-matrix-calculation{margin-top:14px;border-top:1px solid #a0decb38;padding-top:12px}
body.problem-edition .ps-matrix-calculation p{font-size:18px!important;margin:0 0 5px!important;color:var(--ps-gold)!important}
body.problem-edition .ps-matrix-result{display:grid;gap:3px;text-align:start;overflow-wrap:anywhere;font-size:20px}
body.problem-edition .ps-matrix-result>span:first-child{font-size:17px;color:#c0cbc8}
body.problem-edition .ps-matrix-demo .ps-fine{font-size:17px!important;margin-top:10px!important}
@media(min-width:821px){
body.problem-edition .ps-matrix-result{display:flex;flex-wrap:wrap;gap:3px 12px}
body.problem-edition .ps-matrix-result>span:first-child{flex-basis:100%}
}
@media(min-width:821px) and (max-height:780px){
body.has-deck-navigation.problem-edition.lecture-studio .slide.ps-slide[data-ps-layout=matrix] .ps-stage{padding-top:72px!important}
}
@media(max-width:820px){
body.problem-edition .ps-matrix-pair{gap:12px}
body.problem-edition .ps-matrix-pair h2{min-height:48px}
body.problem-edition .ps-matrix-pair .ps-matrix button,
body.problem-edition .ps-smoothed>div{font-size:21px;padding:4px}
}
