/* A pair of physical cards: the rear header stays above the front card. */
.deck-page{min-height:100svh;overflow-x:hidden}
.deck-page .gateway-intro{padding:16px 5% 18px}
.deck-page .gateway-intro h1{font-size:26px;line-height:1.25;margin-bottom:8px}
.deck-page .site-purpose{font-size:12px;line-height:1.6}
.deck-shell{width:min(920px,92vw);margin:0 auto;position:relative}
.deck-page .card-deck{--deck-rise:84px;--deck-side:44px;--deck-card-height:410px;display:block;position:relative;margin:0;padding:0;height:calc(var(--deck-card-height) + var(--deck-rise) + 12px);touch-action:pan-y pinch-zoom;isolation:isolate;transition:none;outline-offset:5px}
.deck-page .card-deck>.gateway-panel{position:absolute;left:8px;top:6px;width:calc(100% - var(--deck-side) - 16px);height:var(--deck-card-height);min-height:0;border:1px solid #617f9359;border-radius:16px;animation:none;overflow:hidden;transform-origin:50% 0;box-shadow:0 20px 34px #06192733;transition:none;will-change:auto}
.deck-page .card-deck>[data-position="front"]{z-index:3;transform:translate3d(var(--deck-drag,0px),var(--deck-rise),0) rotate(var(--deck-drag-angle,0deg));cursor:pointer}
.deck-page .card-deck>[data-position="rear"]{z-index:2;transform:translate3d(var(--deck-side),0,0) rotate(1deg);cursor:pointer}
.deck-page .card-deck>[data-position="rear"]:after{background:none}
.deck-page .card-deck>[data-position="rear"] .home-course-showcase,.deck-page .card-deck>[data-position="rear"] .teaser-screen{opacity:.32}
.deck-page .card-deck>[data-position="rear"] .course-entry,.deck-page .card-deck>[data-position="rear"] .teaser-bottom{visibility:hidden}
.deck-page .card-deck>.course-overview{display:flex;flex-direction:column;padding:18px 24px 16px;gap:12px;justify-content:flex-start;background:linear-gradient(130deg,#274863,#19364e)}
.deck-page .card-deck .panel-copy{padding:0;max-width:none}
.deck-page .card-deck .panel-copy h2{font-size:32px;line-height:1.18;margin:0 0 8px;max-width:none;letter-spacing:-.03em}
.deck-page .card-deck .panel-copy h2 br{display:none}
.deck-page .card-deck .panel-copy p{font-size:13px;line-height:1.6;margin:0;max-width:none}
.deck-page .card-deck .home-course-showcase{flex:1;min-height:0;overflow:hidden;align-items:center}
.deck-page .card-deck .home-paths{height:100%;max-height:280px;gap:18px;padding:0;perspective:none}
.deck-page .card-deck .home-path-card{height:100%;min-height:0;border-radius:12px;transform:none;box-shadow:none}
.deck-page .card-deck .home-path-card[data-track="finger"]{transform:none}
.deck-page .card-deck .home-path-copy{left:22px;bottom:24px;transform:none}
.deck-page .card-deck .home-path-copy h3{font-size:42px;letter-spacing:-.025em;line-height:1.1;margin-bottom:9px}
.deck-page .card-deck .home-path-copy p{font-size:12px;line-height:1.6;max-width:none;display:block}
.deck-page .card-deck .home-path-arrow{width:34px;height:34px;top:18px;right:18px;font-size:21px}
.deck-page .card-deck .home-path-tags{inset:-40% -80%;gap:17px;opacity:.25}
.deck-page .card-deck .home-tag-flow span{font-size:18px}
.deck-page .card-deck .course-entry{margin:0!important;min-height:44px;align-self:flex-start;align-items:center;font-size:14px;gap:30px;padding:0;border:0}
.deck-page .card-deck .course-entry>span{font-size:24px}
.deck-page .card-deck>.teaser-panel{background:#162c3e}
.deck-page .card-deck>.teaser-panel .teaser-heading{top:18px;left:24px;right:24px;opacity:1;transform:none;transition:none}
.deck-page .card-deck .teaser-heading h2{font-size:32px;line-height:1.18;margin-bottom:8px;white-space:normal;letter-spacing:-.025em}
.deck-page .card-deck .teaser-heading p{font-size:12px;line-height:1.6}
.deck-page .card-deck>.teaser-panel .teaser-screen{inset:76px 5% 96px;width:auto;height:auto;display:block}
.deck-page .card-deck .teaser-idle{top:50%;width:70%;height:80%}
.deck-page .card-deck>.teaser-panel .teaser-bottom{left:24px;right:24px;bottom:14px;gap:10px}
.deck-page .card-deck .teaser-status{font-size:12px;line-height:1.5;display:block}
.deck-page .card-deck .teaser-controls{gap:12px}
.deck-page .card-deck .teaser-controls button{min-height:44px;font-size:12px}
[data-teaser-expand]{display:grid;place-items:center;min-width:44px;border:0!important}
[data-teaser-expand] svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.card-deck[data-active="instrument"] .home-tag-flow{animation-play-state:paused;will-change:auto}
.deck-choices{display:grid;grid-template-columns:1.5fr 1fr;gap:16px;padding-top:8px}
.deck-choices button{min-height:44px;padding:8px 0;border:0;border-bottom:1px solid #6d879552;background:none;color:#91abbf;cursor:pointer;font-size:14px;text-align:left;transition:color .2s,border-color .2s}
.deck-choices button[aria-pressed="true"]{color:#e9f2f7;border-color:#accbda}
.deck-hint{margin:7px 0 0;font-size:11px;line-height:1.5;color:#9db3c4}
.deck-page .gateway-footer{padding:16px 5%;font-size:11px}
.card-deck[data-density="compact"] .panel-copy p{display:none}
.card-deck[data-density="compact"] .home-path-copy h3{font-size:30px;margin:0}
.card-deck[data-density="compact"] .home-path-copy p{display:none}
.deck-page .card-deck[data-density="compact"] .teaser-heading p{display:none}
.deck-page .card-deck[data-density="compact"]>.teaser-panel .teaser-screen{inset:52px 4% 64px}
.card-deck[data-density="tiny"] .home-course-showcase,.card-deck[data-density="tiny"] .panel-copy p,.card-deck[data-density="tiny"] .course-entry,.card-deck[data-density="tiny"] .teaser-bottom{display:none}
.deck-page .card-deck[data-density="tiny"]>.teaser-panel .teaser-screen{inset:0 0 0 40%;opacity:.18}
.deck-page .card-deck[data-density="tiny"] .teaser-heading p{display:none}
@media(max-width:767px){
 .deck-shell{width:92vw}
 .deck-page .gateway-intro{padding:12px 5% 14px}
 .deck-page .gateway-intro h1{font-size:22px;margin-bottom:6px}
 .deck-page .site-purpose{font-size:11px}
 .deck-page .card-deck>.course-overview{padding:14px 18px;gap:8px}
 .deck-page .card-deck .panel-copy h2{font-size:24px;margin-bottom:6px}
 .deck-page .card-deck .panel-copy h2 br{display:block}
 .deck-page .card-deck .panel-copy p{font-size:11px}
 .deck-page .card-deck .home-paths{gap:10px;max-height:210px}
 .deck-page .card-deck .home-path-copy{left:14px;bottom:18px;right:12px}
 .deck-page .card-deck .home-path-copy h3{font-size:30px;margin-bottom:7px}
 .deck-page .card-deck .home-path-copy p{font-size:10px;max-width:9em}
 .deck-page .card-deck .home-path-arrow{width:28px;height:28px;top:12px;right:12px;font-size:18px}
 .deck-page .card-deck .home-tag-flow span{font-size:14px}
 .deck-page .card-deck>.teaser-panel .teaser-heading{top:14px;left:18px;right:18px}
 .deck-page .card-deck .teaser-heading h2{font-size:26px}
 .deck-page .card-deck>.teaser-panel .teaser-screen{inset:68px 4% 92px}
 .deck-page .card-deck>.teaser-panel .teaser-bottom{left:18px;right:18px;bottom:10px}
 .deck-page .card-deck .teaser-status{font-size:11px}
 .deck-choices{gap:10px}
 .deck-choices button{font-size:12px}
 .deck-hint{font-size:10px;margin-top:5px}
 .deck-page .gateway-footer{padding:12px 5%;gap:2px}
}
@media(max-height:620px){
 .deck-page .gateway-intro h1{display:none}
 .deck-page .gateway-intro{padding:8px 5% 10px}
 .deck-page .gateway-header{height:auto;min-height:56px}
 .deck-page .deck-hint{display:none}
 .deck-page .gateway-footer{padding-top:8px;padding-bottom:8px}
}
@media(max-height:460px){
 .deck-page .card-deck .panel-copy h2,.deck-page .card-deck .teaser-heading h2{font-size:20px}
 .deck-page .card-deck .panel-copy h2 br{display:none}
 .deck-page .card-deck>.course-overview{padding:12px 16px}
 .deck-page .card-deck>.teaser-panel .teaser-heading{top:12px;left:16px}
}
@media(min-width:480px){
 .deck-page .card-deck[data-density="compact"]>.teaser-panel .teaser-screen,.deck-page .card-deck[data-density="tiny"]>.teaser-panel .teaser-screen{inset:10px 4% 10px 40%;opacity:1}
 .deck-page .card-deck[data-density="compact"] .teaser-heading,.deck-page .card-deck[data-density="tiny"] .teaser-heading{right:60%}
 .deck-page .card-deck[data-density="compact"] .teaser-bottom,.deck-page .card-deck[data-density="tiny"] .teaser-bottom{display:block;left:16px;right:auto;bottom:4px;max-width:34%}
 .deck-page .card-deck[data-density="compact"] .teaser-controls,.deck-page .card-deck[data-density="tiny"] .teaser-controls{gap:4px}
}
@media(prefers-reduced-motion:reduce){
 .deck-page .card-deck>[data-position="rear"]{transform:translate(var(--deck-side),0)}
 .deck-page .card-deck>[data-position="rear"]:not([data-opening]):hover{transform:translate(var(--deck-side),0)!important}
 .deck-page .card-deck>[data-position="front"]:not([data-opening]):hover{transform:translate(var(--deck-drag,0px),var(--deck-rise))!important}
 .deck-choices button{transition:color .15s}
}

.card-deck[data-switching="true"]>.gateway-panel{will-change:transform;pointer-events:none}


/* Thin laminated edges: restrained blue-grey bevel, never a glowing frame. */
.deck-page .card-deck>.gateway-panel{
 box-shadow:inset 0 1px 0 #d5e9f32b,inset 1px 0 0 #c1dbe914,
  0 1px 0 #557084,0 2px 0 #354f63,0 3px 0 #243e52,0 4px 0 #112a3d,
  0 9px 12px #03142230,0 22px 36px #03142240;
 backface-visibility:hidden;
}
.card-deck[data-switching="true"]>.gateway-panel{transform-origin:50% 0;will-change:transform}
