:root{--ink:#14213d;--navy:#08285b;--blue:#1856bc;--paper:#fbf8f1;--line:#d8e0ed;--card:#fff}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.52 system-ui,sans-serif}
.wrap{width:min(100% - 2rem,62rem);margin-inline:auto}
header{background:var(--navy);color:white}
.mast{min-height:4rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-weight:700}
main{padding:clamp(1.4rem,4vw,3.25rem) 0 3rem}
h1,h2,h3{line-height:1.22;color:var(--navy);margin:.15em 0 .55em}
h1{font:700 clamp(2rem,5vw,3.35rem)/1.1 Georgia,serif}
h2{font-size:clamp(1.3rem,3vw,1.65rem)}
h3{font-size:1.22rem}
p{margin:.4rem 0 .75rem}
.eyebrow{margin:0 0 .45rem;color:var(--blue);font-weight:650;font-size:.875rem}
section{margin:1.15rem 0}
.panel{background:var(--card);border:1px solid var(--line);border-radius:1rem;padding:clamp(1rem,3vw,1.5rem)}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.product{display:flex;flex-direction:column;align-items:flex-start}
.price{margin:auto 0 .6rem;padding-top:.5rem;font-size:1.45rem;color:var(--navy)}
.tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}
.tabs [aria-pressed=true]{background:var(--navy);color:white;border-color:var(--navy)}
button,.download{min-height:2.75rem;padding:.55rem .95rem;border:1px solid transparent;border-radius:.58rem;background:var(--blue);color:white;font:650 1rem/1.3 system-ui,sans-serif;cursor:pointer;text-decoration:none}
button:disabled{opacity:.65;cursor:default}
.quiet{color:var(--navy);background:white;border-color:var(--line)}
label{display:block;margin:.6rem 0;font-weight:600}
input:not([type=checkbox]){display:block;width:min(100%,34rem);min-height:2.75rem;margin:.24rem 0 .8rem;padding:.45rem .6rem;border:1px solid #8797b1;border-radius:.5rem;font:inherit;background:white;color:var(--ink)}
label.check{display:flex;align-items:flex-start;gap:.5rem;font-weight:400}
input[type=checkbox]{width:1.2rem;height:1.2rem;margin:.18rem 0 0}
a{color:var(--blue)}
:focus-visible{outline:2px solid #9b3c05;outline-offset:3px}
#notice{padding:.75rem .85rem;background:#eaf1fc;border-radius:.6rem;margin:1rem 0;overflow-wrap:anywhere}
#notice[data-error=true]{background:#fff1e7}
#library-items{list-style:none;padding:0;margin:.7rem 0 0}
#library-items li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem;border-top:1px solid var(--line);padding:.7rem 0}
[hidden]{display:none!important}
@media(max-width:38rem){.cards{grid-template-columns:1fr}.wrap{width:calc(100% - 1.25rem)}.mast{min-height:3.5rem}.product button{width:100%}}
#sku,#claude-pdf-topic{display:block;max-width:100%;min-width:0;min-height:2.75rem;margin:.24rem 0 .8rem;padding:.45rem .6rem;border:1px solid #8797b1;border-radius:.5rem;font:inherit;background:white;color:var(--ink)}
.cards>.product{min-width:0}
#claude-pdf-topic{width:100%;align-self:stretch}
@media(max-width:38rem){.cards{grid-template-columns:minmax(0,1fr)}.product{overflow-wrap:anywhere}.product button{white-space:normal}}

#full500-topic{box-sizing:border-box;width:100%;max-width:100%;min-width:0;padding:.45rem .6rem;font:inherit}
.product[data-selected-offer]{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue);scroll-margin-block-start:1rem}

/* Approved trainer-card design; account and purchase state remain in shop.js. */
.family-trainer-card{min-width:0;position:relative;overflow:hidden;background:radial-gradient(ellipse at 75% 5%,#77574966,transparent 42%),linear-gradient(145deg,#0b2449,#193e70);color:#fff3df;border:1px solid #fbe7c9;border-radius:22px;box-shadow:0 10px 24px #16335422;padding:24px;gap:8px}
.family-trainer-card h3{font:700 clamp(23px,2.4vw,29px)/1.18 Georgia,serif;color:#fff3df;margin:4px 0 10px;overflow-wrap:anywhere}
.family-trainer-card .eyebrow{background:#ffedce;color:#0c2c50;padding:5px 12px;border-radius:99px;max-width:100%;font-size:14px}
.family-trainer-card p{color:#f6e9d9}.family-trainer-card .family-benefit{font-size:17px;line-height:1.5}.family-trainer-card .family-bank{color:#ffe7b4;font-weight:650}
.family-trainer-art{width:100%;height:190px;display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px;align-items:center;justify-items:center}
.family-trainer-art .family-cover{width:112px;height:150px;object-fit:cover;border-radius:3px;box-shadow:4px 8px 16px #0005}
.family-trainer-art .family-art{width:100%;height:190px;object-fit:contain}
.family-trainer-card .price{width:100%;color:#fff3df;font:700 34px Georgia,serif;border-top:1px solid #e7ddce66;padding-top:16px;margin-top:auto}.family-trainer-card .price small{font:400 17px system-ui,sans-serif;white-space:nowrap}
.family-trainer-card .family-demo{display:block;width:100%;text-align:center;color:#fff8ef;background:#c92e2a;border:1px solid #e7463e;border-radius:10px;padding:10px 12px;font-weight:650;text-decoration:none}
.family-trainer-card button[data-sku]{width:100%;padding:12px;background:transparent;border:1px solid #fff0d5;color:#fff8ed;font-size:16px;white-space:normal}
.family-trainer-card button[data-sku]:hover:not(:disabled){background:#ffffff16}.family-trainer-card button[data-sku]:disabled{background:#425673;color:#e4e7ef;border-color:#7085a0}
.family-trainer-card a:focus-visible,.family-trainer-card button:focus-visible{outline:3px solid #ffc675;outline-offset:4px}.family-trainer-card .family-demo:hover{background:#ab201e}
.family-trainer-card[data-selected-offer]{outline:3px solid #c95832;outline-offset:4px;scroll-margin-top:20px}
@media(max-width:420px){.family-trainer-card{padding:20px}.family-trainer-art{grid-template-columns:90px minmax(0,1fr);height:160px}.family-trainer-art .family-cover{width:90px;height:120px}.family-trainer-art .family-art{height:160px}}

/* A selected purchase keeps its existing payment controls and stays next to sign-in. */
.selection-bar{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:.7rem}
.selection-bar .eyebrow{margin:0}.selection-bar a{font-size:.9rem;text-underline-offset:3px}
.purchase-help{font-size:.94rem;line-height:1.5;color:#344762;margin:.8rem 0 0}
.checkout-selected #checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.4rem;align-items:start}
.checkout-selected #purchase-selection{grid-column:1;grid-row:1 / span 2;margin:0;min-width:0;outline:none}
.checkout-selected #login,.checkout-selected #child{grid-column:2;margin:0;min-width:0}
.checkout-selected #products,.checkout-invalid #products{display:none!important}
.checkout-selected #selected-product-slot>.product{width:100%;min-width:0;padding:1.25rem;gap:.4rem;border-radius:1rem;box-shadow:none;outline:none}
.checkout-selected #selected-product-slot h3{font:700 clamp(1.3rem,2.2vw,1.6rem)/1.25 Georgia,serif;margin:.2rem 0 .5rem;overflow-wrap:anywhere}
.checkout-selected #selected-product-slot .family-trainer-art,.checkout-selected #selected-product-slot .family-benefit,.checkout-selected #selected-product-slot .family-bank{display:none}
.checkout-selected #selected-product-slot .family-trainer-card .eyebrow{font-size:.8rem;padding:3px 9px}
.checkout-selected #selected-product-slot .price{margin:.25rem 0 .5rem;font-size:1.7rem;width:100%;padding-top:.65rem}
.checkout-selected #selected-product-slot .price small{font-size:1rem}
.checkout-selected #selected-product-slot .family-demo{background:transparent;border:0;min-height:2.75rem;display:flex;align-items:center;justify-content:flex-start;padding:.3rem 0;color:#fff3df;text-decoration:underline;text-underline-offset:3px}
.checkout-selected #selected-product-slot button{max-width:100%;white-space:normal}
.checkout-selected[data-checkout-role=guest] #selected-product-slot button,.checkout-selected[data-checkout-role=student] #selected-product-slot button{display:none!important}
.checkout-selected[data-checkout-role=student] #purchase-selection{grid-column:1 / -1;max-width:44rem}
.checkout-selected #full500-products>p,.checkout-selected #selected-product-slot>article>p{max-width:100%}
.checkout-selected #child form>p{font-size:.92rem}.checkout-selected .legacy{font-size:.88rem}
.selection-error .download{display:inline-flex;align-items:center}
@media(max-width:700px){
 .checkout-selected main{padding-top:1.2rem}.checkout-selected h1{font-size:1.9rem}
 .checkout-selected #checkout-layout{display:block}
 .checkout-selected #purchase-selection{margin:0 0 1.25rem}
 .checkout-selected #login,.checkout-selected #child{margin:1.25rem 0}
 .checkout-selected #selected-product-slot>.product{padding:1rem}
 .checkout-selected #notice{font-size:.94rem;margin:.7rem 0 1rem;padding:.6rem .75rem}
 .selection-bar{gap:.6rem}.selection-bar a{white-space:nowrap}
}

/* Shared trainer palette for PDF pairs and full sets only. Forms stay on white panels. */
:where(#products,#selected-product-slot) .product:not(.family-trainer-card){min-width:0;position:relative;overflow:hidden;background:radial-gradient(ellipse at 75% 5%,#77574966,transparent 42%),linear-gradient(145deg,#0b2449,#193e70);color:#fff3df;border:1px solid #fbe7c9;border-radius:22px;box-shadow:0 10px 24px #16335422;padding:24px;gap:8px}
:where(#products,#selected-product-slot) .product:not(.family-trainer-card) h3{font:700 clamp(23px,2.4vw,29px)/1.18 Georgia,serif;color:#fff3df;margin:4px 0 10px;overflow-wrap:anywhere}
:where(#products,#selected-product-slot) .product:not(.family-trainer-card) p{color:#f6e9d9}
:where(#products,#selected-product-slot) .product:not(.family-trainer-card) .eyebrow{background:#ffedce;color:#0c2c50;padding:5px 12px;border-radius:99px;max-width:100%;font-size:14px}
:where(#products,#selected-product-slot) .product:not(.family-trainer-card) .price{width:100%;color:#fff3df;font:700 34px Georgia,serif;border-top:1px solid #e7ddce66;padding-top:16px;margin-top:auto}
:where(#products,#selected-product-slot) .product:not(.family-trainer-card) label{color:#fff3df;max-width:100%}
:where(#products,#selected-product-slot) .product:not(.family-trainer-card) select{min-height:2.75rem;border:1px solid #d8e0ed;border-radius:.5rem;background:#fff;color:#14213d}
:where(#products,#selected-product-slot) .product:not(.family-trainer-card) button{width:100%;min-height:2.75rem;padding:12px;background:#c92e2a;border:1px solid #e7463e;border-radius:10px;color:#fff8ed;white-space:normal;font-size:16px}
:where(#products,#selected-product-slot) .product:not(.family-trainer-card) button:hover:not(:disabled){background:#ab201e}
:where(#products,#selected-product-slot) .product:not(.family-trainer-card) button:disabled{opacity:1;background:#425673;color:#e4e7ef;border-color:#7085a0}
:where(#products,#selected-product-slot) .product:not(.family-trainer-card) :is(button,select,a):focus-visible{outline:3px solid #ffc675;outline-offset:4px}
.checkout-selected #selected-product-slot>.product:not(.family-trainer-card){padding:1.25rem;gap:.4rem;border-radius:1rem;box-shadow:none;outline:none}
.checkout-selected #selected-product-slot>.product:not(.family-trainer-card) h3{font:700 clamp(1.3rem,2.2vw,1.6rem)/1.25 Georgia,serif;margin:.2rem 0 .5rem}
.checkout-selected #selected-product-slot>.product:not(.family-trainer-card) .eyebrow{font-size:.8rem;padding:3px 9px}
.checkout-selected #selected-product-slot>.product:not(.family-trainer-card) .price{margin:.25rem 0 .5rem;font-size:1.7rem;padding-top:.65rem}
@media(max-width:700px){.checkout-selected #selected-product-slot>.product:not(.family-trainer-card){padding:1rem}}
@media(max-width:420px){:where(#products) .product:not(.family-trainer-card){padding:20px}}

/* Navigation remains available before and after family sign-in. */
.mast{flex-wrap:wrap;padding-block:.65rem}
.family-brand{color:#fff;text-decoration:none;min-width:0}
.family-brand:hover{text-decoration:underline}
.family-header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}
.family-home-link{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.55rem .95rem;border:1px solid #cbd9f0;border-radius:.58rem;background:#fff;color:var(--navy);font:650 1rem/1.3 system-ui,sans-serif;text-decoration:none;white-space:nowrap}
.family-home-link:hover{background:#eaf1fc}
.family-brand:focus-visible,.family-header-actions :focus-visible{outline:3px solid #ffce73;outline-offset:3px}
.family-trainer-poster{display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:12px 7px;text-align:center;background:linear-gradient(160deg,#122f59,#081c36);color:#fff1d9;border-top:3px solid #d93934;border-bottom:3px solid #d93934}
.family-trainer-poster>span{font:700 9px/1.3 system-ui,sans-serif;color:#fff1d9;letter-spacing:.02em}
.family-trainer-poster>strong{font:700 26px/1.05 Georgia,serif;color:#ffce73}
@media(max-width:38rem){.family-brand{flex-basis:100%}.family-header-actions{width:100%;justify-content:space-between}}
