/* Curriculum page (#375): single-programs.php. Front Porch brand and product page language: the mist header band,
   the ledger-style panels (product page), section heads with a rule, the navy band with the house. Reads tokens.css; .sh, .crumbs, .btn, .chip, .card, .add, .price, .kick, .empty come from
   shell.css / base.css. */

/* ---------- header band ---------- */
.cu-top{background:var(--mist);border-bottom:1px solid var(--line)}
.cu-top .crumbs ol{padding-bottom:6px}
.cu-hd{display:grid;grid-template-columns:auto minmax(0,1fr);gap:24px 32px;align-items:start;padding:6px 0 36px}
.cu-hd.no-logo{grid-template-columns:minmax(0,1fr)}
.cu-logo{width:136px;height:136px;background:var(--white);border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;padding:12px}
.cu-logo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.cu-ht h1{font-size:clamp(2.3rem,4.4vw,3.4rem);margin:2px 0 4px}
.cu-line{font-size:1.1rem;max-width:56ch;margin-top:8px}
.cu-facts{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:14px;font-size:.92rem;color:var(--muted)}
.cu-facts b{color:var(--navy)}
.cu-facts a{font-weight:700}

/* #432: the placement guide (the header's line) */
.cu-place{margin-top:12px;font-size:.95rem}
.cu-place a{font-weight:700;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}

/* #355: the brand's cards that form one sequence */
.cu-seq{margin-top:16px;font-size:.92rem;color:var(--muted)}
.cu-seq b{color:var(--navy)}
.cu-path{display:flex;flex-wrap:wrap;gap:6px 4px;margin-top:8px;align-items:center}
.cu-path li{display:flex;align-items:center;gap:4px}
.cu-path li+li::before{content:"";width:14px;height:2px;background:var(--line);margin-right:2px}
.cu-path a,.cu-path span{display:inline-flex;align-items:baseline;gap:6px;min-height:36px;align-items:center;padding:0 12px;border:1.5px solid var(--line);border-radius:999px;background:var(--white);color:var(--navy);font-weight:600;text-decoration:none!important}
.cu-path a:hover{border-color:var(--roof)}
.cu-path [aria-current] span{background:var(--navy);border-color:var(--navy);color:var(--white)}
.cu-path small{font-weight:600;opacity:.8}
.cu-hid{color:var(--brick)}

/* staff note on a hidden program (logged-in staff and preview viewers only) */
.cu-admin{margin-top:16px;display:grid;gap:8px;justify-items:start;background:var(--staff-t);border:1px solid var(--staff-line);color:var(--staff-ink);border-radius:6px;padding:12px 14px;font-size:.9rem;max-width:60ch}
.cu-admin b{color:var(--staff-ink)}
.cu-admin .btn .ic{width:18px;height:18px}
.cu-admin .btn[aria-busy="true"]{opacity:.75;cursor:progress}
.cu-admin-st:empty{display:none}
.cu-admin-st{font-weight:700}

/* ---------- what it is, who it fits ---------- */
.cu-body{padding-bottom:8px}
.cu-about{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px 48px;padding:44px 0 4px;align-items:start}
.cu-about.one{grid-template-columns:minmax(0,1fr)}
.cu-about.one .cu-fits{max-width:520px}
.cu-about h2{font-size:1.6rem;margin-bottom:12px}
.cu-desc{font-size:1.05rem;max-width:66ch}
.cu-desc>*+*{margin-top:.7em}
.cu-desc ul{list-style:disc;padding-left:1.3em}
.cu-desc ol{list-style:decimal;padding-left:1.3em}
.cu-desc a{text-decoration:underline;text-underline-offset:3px}
.cu-fits{background:var(--mist);border-radius:6px;border-top:4px double var(--navy);padding:20px 24px}
.cu-fits h2{font-size:1.35rem;margin-bottom:6px}
.cu-fits dl>div{display:grid;grid-template-columns:minmax(0,10em) minmax(0,1fr);gap:2px 12px;padding:9px 0;border-bottom:1px solid var(--line)}
.cu-fits dt{color:var(--muted);font-weight:600;font-size:.92rem}
.cu-fits dd{font-weight:700;color:var(--navy)}
.cu-fits-g{margin-top:12px;font-size:.92rem}
.cu-fits-g a{font-weight:700}

/* ---------- the levels (#604, layout A) ---------- */
.cu-levels{padding:52px 0 8px}
/* the head: "Choose a level", "Your child's grade" chips, "Grades are a guide." (.sh keeps the shell's h2 sizes) */
.sh.cu-lh{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:0;margin-bottom:18px}
.cu-fit-g{display:flex;align-items:center;gap:10px;margin-top:12px;min-width:0}
.cu-fit-l{flex:none;font-size:.8rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.cu-chips{display:flex;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:none;padding:2px}
.cu-chips::-webkit-scrollbar{display:none}
.cu-chips .chip{min-width:44px;justify-content:center;padding:0 12px}
.cu-guide{font-size:.9rem;color:var(--muted);margin-top:8px}
.cu-guide a{font-weight:700}
.cu-fit-out{margin-top:10px;font-size:.95rem;line-height:1.45}
.cu-fit-out:empty{display:none}
.cu-fit-out b{color:var(--navy)}
.cu-fit-out a{font-weight:700;white-space:nowrap}
/* #524: by what the child can do */
.cu-abl{margin-top:10px;border-top:1px solid var(--line);max-width:760px}
.cu-abl>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:48px;font-weight:700;color:var(--roof);cursor:pointer}
.cu-abl>summary::-webkit-details-marker{display:none}
.cu-abl>summary::after{content:"+";font-size:1.4rem;font-weight:400}
.cu-abl[open]>summary::after{content:"\2212"}
.cu-abl-l a{display:block;padding:9px 0;border-top:1px solid var(--mist-2);font-size:.93rem;line-height:1.4}
.cu-abl-l a:hover{text-decoration:none}
.cu-abl-l a:hover span{text-decoration:underline}
.cu-abl-l small{display:block;color:var(--muted);font-weight:700;font-size:.8rem;margin-top:2px}
.cu-abl-n{font-weight:700}

/* a level: closed, one compact row (grade badge, name, price cue); open, the list */
.cu-list{display:grid;gap:8px}
.cu-lv{border:1px solid var(--line);border-radius:8px;background:var(--white);transition:border-color .15s,box-shadow .15s}
.cu-lv[open]{border-color:var(--navy);box-shadow:inset 4px 0 0 var(--navy)}
.cu-lv.fit{border-color:var(--garden);box-shadow:0 0 0 1px var(--garden)}
.cu-lv.fit[open]{box-shadow:inset 4px 0 0 var(--navy),0 0 0 1px var(--garden)}
.cu-lv-s{list-style:none;display:grid;grid-template-columns:52px minmax(0,1fr) auto;grid-template-areas:"n h v" "n q v";column-gap:14px;align-items:center;min-height:68px;padding:8px 14px 8px 10px;cursor:pointer;border-radius:8px}
.cu-lv-s::-webkit-details-marker{display:none}
.cu-lv-s:hover{background:var(--mist)}
.cu-lv[open]>.cu-lv-s{border-radius:8px 8px 0 0}
.cu-lv.no-n>.cu-lv-s{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"h v" "q v";padding-left:14px}
.cu-n{grid-area:n;width:52px;height:52px;border-radius:6px;background:var(--mist);color:var(--navy);display:grid;place-items:center;align-content:center;text-align:center;line-height:1}
.cu-n small{display:block;font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--muted);margin-bottom:3px}
.cu-n b{font:400 1.25rem/1 var(--serif)}
.cu-n-l b{font-size:.98rem}
.cu-lv[open] .cu-n{background:var(--navy);color:var(--white)}
.cu-lv[open] .cu-n small{color:var(--on-navy-3)}
.cu-lv-s h3{grid-area:h;align-self:end;min-width:0;font:400 1.2rem/1.2 var(--serif);color:var(--navy);overflow-wrap:anywhere}
.cu-lv-d{display:none}
.cu-lv-q{grid-area:q;align-self:start;display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;margin-top:2px;font-size:.88rem;color:var(--muted)}
.cu-fitb{background:var(--garden-t);color:var(--garden);font-size:.76rem;font-weight:700;padding:2px 8px;border-radius:999px}
.cu-chev{grid-area:v;width:22px;height:22px;color:var(--roof);transition:transform .15s}
.cu-lv[open] .cu-chev{transform:rotate(180deg)}
.cu-lv-b{padding:0 14px;border-top:1px solid var(--line)}
.cu-empty{color:var(--muted);padding:12px 0 2px}

/* a list (a level's, "For every level", a card without levels): sections of rows, one button, the side */
.cu-every{padding:44px 0 0}
.cu-shelf{min-width:0}
.cu-pick{margin:12px 0 0;font-size:.95rem;font-weight:600;color:var(--ink)}
.cu-grp-l{font-size:.76rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);margin:14px 0 2px}
.cu-grp-l span{text-transform:none;letter-spacing:0;font-weight:400;font-size:.85rem}
.cu-rows{display:grid}
.cu-grp:first-child>.cu-rows:first-child{margin-top:4px}
/* the blocks (owner, 2026-11-18: "here's the sets, then here's the products"): the sets a tinted group of white rows,
   then the books, then the extras; never mixed, a clear gap between them */
.cu-grp+.cu-grp{margin-top:18px}
.cu-grp[data-grp="sets"]{background:var(--mist);border-radius:8px;padding:2px 10px 10px}
.cu-grp[data-grp="sets"]>.cu-grp-l{margin:10px 2px 8px}
.cu-grp[data-grp="sets"]>.cu-rows{gap:8px;margin-top:8px}
.cu-grp[data-grp="sets"]>.cu-grp-l+.cu-rows{margin-top:0}
.cu-grp[data-grp="sets"] .cu-it{background:var(--white);border:0;border-radius:6px;padding:10px}
/* a row: cover | tag, title (a set: "Has …", its saving) | Add, then price · stock under the title. The card's .meta and
   .cf stay where cart.js finds them ("In your cart" replaces the stock words). */
.cu-it{display:grid;grid-template-columns:56px auto minmax(0,1fr) auto;grid-template-areas:"i t t a" "i p m a";column-gap:12px;row-gap:1px;align-items:center;padding:10px 0;border-bottom:1px solid var(--mist-2)}
.cu-it:last-child{border-bottom:0}
.cu-ri{grid-area:i;width:56px;height:67px;background:var(--mist);border-radius:4px;display:grid;place-items:center;padding:5px;overflow:hidden}
.cu-ri img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;mix-blend-mode:multiply}
.cu-rt{grid-area:t;min-width:0;display:grid;gap:1px}
.cu-tag{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--brick)}
.cu-it h3{font-size:1rem;font-weight:600;line-height:1.3;color:var(--ink);overflow-wrap:anywhere}
.cu-it h3 a{color:inherit}
.cu-has{font-size:.86rem;line-height:1.35;color:var(--muted)}
.cu-save{font-size:.86rem;line-height:1.35;color:var(--garden);font-weight:700}
.cu-it .cf{display:contents}
.cu-it .cf>.price{grid-area:p;align-self:start;font-size:1rem;white-space:nowrap}
.cu-it .price del{color:var(--muted);font-weight:400;font-size:.85em;margin-right:4px}
.cu-it .price ins{text-decoration:none}
.cu-it .meta{grid-area:m;align-self:start;display:flex;flex-wrap:wrap;gap:0 6px;margin:0 0 0 -6px;font-size:.88rem;line-height:1.5;color:var(--muted)}
.cu-it .meta>*::before{content:"\00B7";margin-right:6px;color:var(--muted);font-weight:400}
.cu-in{font-weight:600}
/* #580: a row with the "X% off list $Y" line under its price puts its stock words on their own line below it */
.cu-it:has(.cf>.price>.off){grid-template-areas:"i t t a" "i p p a" "i m m a"}
.cu-it:has(.cf>.price>.off) .meta{margin-left:0}
.cu-it:has(.cf>.price>.off) .meta>:first-child::before{content:none;margin:0}
.cu-it .add{grid-area:a}
.cu-it.is-out .cu-ri img{opacity:.6}
/* the one button: sticky at the bottom of a phone's screen while its list is in view; a box beside the rows on a desktop */
.cu-bar{position:sticky;bottom:0;z-index:5;margin:12px 0 0;padding:10px 0;background:var(--white);border-top:1px solid var(--line);box-shadow:0 -6px 14px -10px rgba(20,30,50,.45)}
.cu-lv-b .cu-bar{margin:12px -14px 0;padding:10px 14px}
.cu-add{width:100%;justify-content:space-between;gap:12px}
.cu-add .price{color:inherit;font-weight:700;padding-left:12px;border-left:1px solid rgba(255,255,255,.45)}
.cu-add[aria-busy="true"]{opacity:.75;cursor:progress}
.cu-add.done{background:var(--garden);border-color:var(--garden);color:var(--white)}
.cu-bar-n{font-size:.82rem;color:var(--muted);margin-top:6px;text-align:center}
.cu-st{font-size:.92rem;font-weight:600;margin-top:6px}
.cu-st:empty{display:none}
.cu-st.ok{color:var(--garden)}
.cu-st.warn{color:var(--brick)}
.cu-side{padding:12px 0 14px}
.cu-side>*+*{margin-top:8px}
.cu-lv-a{font-size:.9rem;color:var(--muted);max-width:70ch}
.cu-lv-a b{color:var(--navy)}
.cu-near{font-size:.9rem;color:var(--muted)}
.cu-near a{font-weight:700}
.cu-next{font-size:.9rem}
.cu-next a{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:600}
.cu-next b{color:var(--navy)}
.cu-next span{color:var(--muted);font-weight:400}
.cu-next .ic{width:18px;height:18px}

/* #432: the search a family came from (program.js): the level for the grade, an all-in-one's pieces for the subject */
.cu-lv.cu-ctx{border-color:var(--garden);box-shadow:0 0 0 2px var(--garden)}
.cu-ctx-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;background:var(--garden-t);border-radius:6px;padding:10px 14px;margin:0 0 18px}
.cu-ctx-bar p{font-weight:600;color:var(--ink)}
.cu-ctx-bar .btn{min-height:44px}
.cu-ctx-n{margin:12px 0 0;font-size:.95rem;line-height:1.45}
.cu-ctx-n b{color:var(--navy)}
.cu-it.cu-on{box-shadow:inset 3px 0 0 var(--garden);padding-left:10px}
.cu-focus .cu-scope .cu-it:not(.cu-on),.cu-focus .cu-scope .cu-grp.cu-off{display:none}

/* #432: the cards made for this one ("Practice made for …") */
.cu-made{margin-top:48px}
.cu-made-l{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:16px}
.cu-made-c{position:relative;display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:6px;padding:16px 18px;background:var(--white);min-width:0}
.cu-made-c:hover,.cu-made-c:focus-within{border-color:var(--roof)}
.cu-made-k{font-size:.72rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--garden)}
.cu-made-c h3{font:400 1.2rem/1.2 var(--serif);color:var(--navy)}
.cu-made-c h3 a{color:inherit;text-decoration:none}
.cu-made-c h3 a::after{content:"";position:absolute;inset:0;border-radius:6px}
.cu-made-c h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.cu-made-c h3 a:focus-visible{outline:0}
.cu-made-c h3 a:focus-visible::after{outline:3px solid var(--focus);outline-offset:2px}
.cu-made-b{font-size:.88rem;color:var(--muted)}
.cu-made-x{font-size:.9rem;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cu-made-g{margin-top:auto;padding-top:6px;font-weight:700;font-size:.9rem;color:var(--navy)}

/* ---------- the fallback list (no levels yet): the publisher's items, the shell's .grid of cards ---------- */
.cu-fb-grid[aria-busy="true"]:empty{min-height:240px}
.cu-fb-st{margin-top:18px;font-size:.92rem;font-weight:600;color:var(--muted)}
.cu-fb-st:empty{display:none}
.cu-fb-more{display:flex;justify-content:center;margin-top:28px}
.cu-fb-more .btn{min-height:44px}
.cu-fb-more .btn[aria-busy="true"]{opacity:.75;cursor:progress}

/* ---------- the consult band ---------- */
.cu-help{position:relative;overflow:hidden;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px 24px;align-items:center;background:var(--navy);color:var(--on-navy);border-radius:8px;padding:30px 36px;margin:56px 0 64px}
.cu-help>*{position:relative}
.cu-help .wm{position:absolute;right:-26px;bottom:-30px;width:250px;height:230px;opacity:.1;--rf:var(--white);--wall:var(--white);pointer-events:none}
.cu-help h2{color:var(--white);font-size:1.7rem}
.cu-help .kick{color:var(--brick-light)}
.cu-help p+p{margin-top:2px}
.cu-help .btn-w{color:var(--navy)}
.cu-help-i{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.1);color:var(--white);display:grid;place-items:center}
.cu-help-i .ic{width:26px;height:26px}

@media (min-width:961px){
.sh.cu-lh{grid-template-columns:auto minmax(0,1fr);column-gap:32px;align-items:end}
.cu-lh h2{grid-row:1/span 2}
.cu-fit-g{margin-top:0;justify-content:flex-end}
.cu-guide{margin-top:6px;text-align:right}
.cu-fit-out,.cu-abl{grid-column:1/-1}
.cu-lv-s{grid-template-columns:56px 210px minmax(0,1fr) auto auto;grid-template-areas:"n h d q v";column-gap:18px;padding:8px 20px 8px 12px}
.cu-lv.no-n>.cu-lv-s{grid-template-columns:210px minmax(0,1fr) auto auto;grid-template-areas:"h d q v";padding-left:20px}
.cu-n{width:56px;height:56px}
.cu-lv-s h3{align-self:center}
.cu-lv-d{grid-area:d;display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.92rem;color:var(--muted)}
.cu-lv[open] .cu-lv-d{visibility:hidden}
.cu-lv-q{align-self:center;justify-content:flex-end;margin:0;min-width:150px;font-size:.95rem;font-weight:700;color:var(--navy);white-space:nowrap}
.cu-lv-b{padding:0 20px 8px}
/* a list with a button: the blocks, the button's box beside them; without one (several sets, an assortment) the blocks
   take the whole width and "About this level" goes under them */
.cu-lb{display:grid;grid-template-columns:minmax(0,1fr);column-gap:40px;align-items:start}
.cu-lb.has-btn{grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:auto 1fr}
.cu-lb.has-btn>.cu-shelf{grid-column:1;grid-row:1/span 2}
.cu-bar,.cu-lv-b .cu-bar{grid-column:2;grid-row:1;position:static;margin:16px 0 0;padding:14px;border:1px solid var(--line);border-radius:8px;box-shadow:none}
.cu-lb.has-btn>.cu-side{grid-column:2;grid-row:2;padding-top:14px}
.cu-lb:not(.has-btn)>.cu-side{max-width:760px;padding-top:18px}
/* each block its own grid across the width: sets two across (one set the whole row), books two or three across, every
   book row ruled on top so the grid's lines stay even */
.cu-grp[data-grp="sets"]>.cu-rows{grid-template-columns:repeat(auto-fit,minmax(min(380px,calc((100% - 8px) / 2)),1fr))}
.cu-grp:not([data-grp="sets"])>.cu-rows{grid-template-columns:repeat(auto-fill,minmax(min(280px,calc((100% - 28px) / 2)),1fr));column-gap:28px}
.cu-grp:not([data-grp="sets"]) .cu-it,.cu-grp:not([data-grp="sets"]) .cu-it:last-child{border-bottom:0;border-top:1px solid var(--mist-2)}
}
@media (max-width:1100px){
.cu-about{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:24px 32px}
}
@media (max-width:960px){
/* The private preview's badge (staff and reviewers only, fixed at the bottom left, two lines on a 390 px phone) would
   sit on the sticky button: the bar makes room under it. Never on a shopper's page (no badge). */
body:has(.hwb-preview-badge) .cu-bar{padding-bottom:66px}
.cu-about{grid-template-columns:minmax(0,1fr)}
.cu-fits{max-width:600px}
.cu-help{grid-template-columns:minmax(0,1fr)}
.cu-help-i{display:none}
}
@media (max-width:560px){
.cu-hd{grid-template-columns:84px minmax(0,1fr);gap:16px;padding-bottom:28px}
.cu-hd.no-logo{grid-template-columns:minmax(0,1fr)}
.cu-logo{width:84px;height:84px;padding:8px;align-self:center}
.cu-ht{display:contents}
.cu-ht>.kick,.cu-ht>h1{grid-column:2}
.cu-hd.no-logo .cu-ht>.kick,.cu-hd.no-logo .cu-ht>h1{grid-column:1}
.cu-ht>.kick{align-self:end;margin-bottom:0}
.cu-ht>h1{font-size:2.1rem;align-self:start}
.cu-ht>.cu-line,.cu-ht>.cu-facts,.cu-ht>.cu-place,.cu-ht>.cu-seq,.cu-ht>.cu-admin{grid-column:1/-1;margin-top:0}
.cu-logo{grid-row:1/span 2}
.cu-line{font-size:1rem}
.cu-about{padding-top:32px}
.cu-fits{padding:16px}
.cu-fits dl>div{grid-template-columns:minmax(0,8.5em) minmax(0,1fr)}
.cu-every{padding-top:32px}
.cu-levels{padding-top:40px}
.cu-lv-s{grid-template-columns:48px minmax(0,1fr) auto;column-gap:12px;min-height:64px;padding:8px 10px 8px 8px}
.cu-lv.no-n>.cu-lv-s{padding-left:12px}
.cu-n{width:48px;height:48px}
.cu-lv-s h3{font-size:1.12rem}
.cu-lv-b{padding:0 12px}
.cu-lv-b .cu-bar{margin:12px -12px 0;padding:10px 12px}
.cu-help{padding:26px 20px;margin:40px 0 48px}
.cu-help h2{font-size:1.4rem}
}
