/* Teacher Toolkit — shared chrome for the hub, the tool pages and the locked-tool teaser.
   Generic UI only (no tool logic). Uses the site's tokens from gtb.css. */

.tt-page{max-width:1240px;margin:0 auto;padding:18px clamp(12px,3vw,32px) 56px}

/* ---------- tool page bar ---------- */
.tt-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.tt-back{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:13.5px;color:var(--muted);text-decoration:none;
  padding:8px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--line)}
.tt-back:hover{color:var(--ink);border-color:var(--accent)}
.tt-h{font-family:var(--font-display);font-size:clamp(22px,3.2vw,32px);font-weight:600;letter-spacing:-.015em;line-height:1.1;margin:0;flex:1 1 220px}
.tt-actions{display:flex;gap:8px;flex-wrap:wrap}

/* ---------- buttons / inputs used inside tools ---------- */
.tt-btn{appearance:none;border:1.5px solid var(--accent);background:var(--accent);color:#fff;font:inherit;font-weight:800;font-size:14.5px;
  padding:11px 18px;border-radius:13px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;line-height:1;transition:transform .08s ease,background .15s,color .15s,border-color .15s;-webkit-tap-highlight-color:transparent}
.tt-btn:hover{background:var(--accent-dark);border-color:var(--accent-dark)}
.tt-btn:active{transform:translateY(1px) scale(.99)}
.tt-btn:focus-visible,.tt-in:focus-visible,.tt-chip:focus-visible{outline:3px solid var(--accent-soft);outline-offset:2px;box-shadow:0 0 0 2px var(--accent)}
.tt-btn.ghost{background:var(--surface);color:var(--accent-dark);border-color:var(--line)}
.tt-btn.ghost:hover{border-color:var(--accent);background:var(--accent-soft)}
.tt-btn.sm{padding:8px 12px;font-size:13px;min-height:36px;border-radius:11px}
.tt-btn.lg{padding:16px 28px;font-size:18px;min-height:56px;border-radius:16px}
.tt-btn.danger{background:#d64545;border-color:#d64545}
.tt-btn.danger:hover{background:#b83636;border-color:#b83636}
.tt-btn[disabled]{opacity:.5;cursor:not-allowed}
.tt-in,.tt-ta,.tt-sel{width:100%;box-sizing:border-box;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);
  font:inherit;font-size:15px;padding:10px 12px}
.tt-in:focus,.tt-ta:focus,.tt-sel:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.tt-ta{resize:vertical;line-height:1.5;min-height:120px}
.tt-lbl{display:block;font-size:12.5px;font-weight:800;color:var(--muted);margin:0 0 6px;letter-spacing:.02em}
.tt-chip{appearance:none;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-weight:700;font-size:13.5px;
  padding:8px 13px;border-radius:999px;cursor:pointer}
.tt-chip:hover{border-color:var(--accent)}
.tt-chip.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-dark)}
.tt-check{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer;user-select:none}
.tt-check input{width:18px;height:18px;accent-color:var(--accent)}
.tt-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.tt-hint{font-size:12.5px;color:var(--muted);line-height:1.5;margin:6px 0 0}

/* ---------- the stage the tool lives in ---------- */
.tt-stage{background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:clamp(14px,2.4vw,26px);position:relative;
  min-height:420px}
.tt-stage:fullscreen{border-radius:0;border:0;padding:clamp(16px,3vw,40px);overflow:auto;width:100vw;height:100vh}
.tt-stage:-webkit-full-screen{border-radius:0;border:0;padding:clamp(16px,3vw,40px);overflow:auto;width:100vw;height:100vh}
.tt-stage.tt-pfs{position:fixed;inset:0;z-index:9990;border-radius:0;border:0;overflow:auto;padding:clamp(16px,3vw,40px);min-height:0}
body.tt-pfs-on{overflow:hidden}
.tt-panel{background:var(--bg);border:1px solid var(--line);border-radius:16px;padding:14px}
.tt-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:var(--ink);color:#fff;font-weight:700;font-size:14px;
  padding:11px 18px;border-radius:999px;z-index:99999;box-shadow:0 10px 30px rgba(0,0,0,.3);max-width:90vw}

/* ---------- SEO / how-to block under a public tool ---------- */
.tt-seo{max-width:820px;margin:34px auto 0;color:var(--ink)}
.tt-seo h2{font-family:var(--font-display);font-size:24px;font-weight:600;margin:26px 0 8px}
.tt-seo p,.tt-seo li{font-size:15.5px;line-height:1.7;color:#27454a}
.tt-seo ol,.tt-seo ul{padding-left:22px;margin:8px 0}
.tt-seo details{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 16px;margin:8px 0}
.tt-seo summary{cursor:pointer;font-weight:700}
.tt-more{margin-top:26px;background:linear-gradient(150deg,#0d8f85,#12b3a6 60%,#3fd0c2);border-radius:20px;padding:22px clamp(18px,3vw,30px);color:#fff}
.tt-more h2{margin:0 0 6px;font-family:var(--font-display);font-size:22px;font-weight:600;color:#fff}
.tt-more p{margin:0 0 14px;color:rgba(255,255,255,.9);font-size:15px;line-height:1.6}
.tt-more .tt-btn{background:#fff;color:var(--accent-dark);border-color:#fff}
.tt-more .tt-btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}

/* ---------- hub ---------- */
.tth-hero{background:linear-gradient(150deg,#3b2fb0,#5b45e0 55%,#8a6bff);border-radius:24px;padding:clamp(22px,4vw,38px);color:#fff;margin-bottom:8px}
.tth-hero h1{font-family:var(--font-display);font-size:clamp(28px,4.6vw,44px);font-weight:600;letter-spacing:-.018em;line-height:1.06;margin:0;color:#fff}
.tth-hero p{margin:12px 0 0;font-size:clamp(15px,2vw,17.5px);line-height:1.6;max-width:62ch;color:rgba(255,255,255,.92)}
.tth-state{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.tth-state .tt-btn{background:#fff;color:var(--accent-dark);border-color:#fff}
.tth-state .tt-btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}
.tth-pill{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.18);border-radius:999px;padding:8px 14px;font-weight:800;font-size:13.5px}
.tth-cat{margin:30px 0 10px;font-family:var(--font-display);font-size:22px;font-weight:600}
.tth-cat small{font-family:var(--font);font-size:13px;font-weight:600;color:var(--muted);margin-left:8px}
.tth-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.tth-card{position:relative;display:flex;flex-direction:column;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:20px;
  padding:18px;text-decoration:none;color:var(--ink);box-shadow:var(--shadow);transition:transform .16s ease,box-shadow .16s ease,border-color .16s}
.tth-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover);border-color:var(--accent)}
.tth-ic{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;font-size:28px;background:var(--tint,#e6f7f5);margin-bottom:6px}
.tth-card b{font-family:var(--font-display);font-size:19px;font-weight:600;letter-spacing:-.01em}
.tth-card p{margin:0;font-size:13.5px;line-height:1.55;color:var(--muted);flex:1}
.tth-tag{align-self:flex-start;margin-top:8px;font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;padding:4px 10px;border-radius:999px}
.tth-tag.open{background:#e3f6ec;color:#1a7a46}
.tth-tag.lock{background:#fdf1dc;color:#8a5a00}
.tth-tag.in{background:var(--accent-soft);color:var(--accent-dark)}
.tth-card.locked .tth-ic{filter:saturate(.55)}

/* ---------- locked teaser ---------- */
.ttl{max-width:720px;margin:30px auto 0;text-align:center}
.ttl .tth-ic{width:84px;height:84px;font-size:44px;border-radius:24px;margin:0 auto 14px}
.ttl h1{font-family:var(--font-display);font-size:clamp(28px,4.4vw,40px);font-weight:600;margin:0 0 8px;letter-spacing:-.015em}
.ttl .lead{font-size:17px;line-height:1.6;color:#27454a;margin:0 0 18px}
.ttl .lockbox{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:var(--shadow);text-align:left}
.ttl .lockbox h2{margin:0 0 6px;font-size:18px}
.ttl .lockbox p{margin:0 0 14px;font-size:15px;line-height:1.6;color:#27454a}
.ttl ul{text-align:left;padding-left:22px;margin:0 0 18px}
.ttl li{margin:5px 0;line-height:1.55;font-size:15px}

@media print{.topnav,.tt-bar,.tt-more,footer,#gtb-classshare{display:none!important}.tt-stage{box-shadow:none;border:0}}
@media (prefers-reduced-motion:reduce){.tth-card,.tt-btn{transition:none}}

/* ---- toolkit finder (search + category chips + start-here row) ---- */
.tth-find{position:sticky;top:0;z-index:4;background:var(--bg,#fff);padding:12px 0 8px;margin:14px 0 4px;border-bottom:1px solid var(--line)}
.tth-q{display:flex;flex-direction:column;gap:6px;max-width:520px}
.tth-q input{font-size:16px}
.tth-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.tth-chip{appearance:none;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-weight:700;font-size:13.5px;padding:7px 13px;border-radius:999px;cursor:pointer;min-height:36px}
.tth-chip:hover{border-color:var(--accent)}
.tth-chip.on{background:var(--accent);border-color:var(--accent);color:#fff}
.tth-none{text-align:center;color:var(--muted);font-weight:600;margin:30px 0}
#tth-feat .tth-grid .tth-card{border-color:var(--accent-soft)}
@media(max-width:640px){.tth-find{position:static}.tth-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}.tth-chip{flex:none}}

/* ---- entry tiles (materials library + tools) ---- */
.tth-tiles{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0 6px}
/* the two big entry tiles: bold colour, a framed icon, white text, a white button (the library in indigo/purple, the tools in coral) */
.tth-tile{position:relative;overflow:hidden;display:flex;align-items:center;gap:18px;text-decoration:none;color:#fff;border:0;border-radius:24px;padding:22px 24px;box-shadow:0 18px 36px -18px rgba(30,20,80,.55);transition:transform .15s,box-shadow .15s,filter .15s}
.tth-tile::after{content:"";position:absolute;right:-60px;top:-80px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.1);pointer-events:none}
.tth-tile:hover{transform:translateY(-3px);filter:brightness(1.07);box-shadow:0 26px 46px -18px rgba(30,20,80,.6)}
.tth-tile.mat{background:linear-gradient(135deg,#4b2bb3 0%,#6a3fe0 55%,#3f7be8 100%)}
.tth-tile.tools{background:linear-gradient(135deg,#b92b1a 0%,#d94020 50%,#ea6a2a 100%);box-shadow:0 18px 36px -18px rgba(120,25,10,.6)}
.tth-tile > *{position:relative;z-index:1}
.tth-tile .ic{width:72px;height:72px;border-radius:22px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.22);display:grid;place-items:center;font-size:40px;line-height:1;flex:none}
.tth-tile .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.tth-tile b{font-family:var(--font-display);font-size:25px;font-weight:600;letter-spacing:-.01em;color:#fff;line-height:1.15}
.tth-tile small{font-size:15px;color:rgba(255,255,255,.92);font-weight:700}
.tth-tile .pts{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:8px}
.tth-tile .pts i{font-style:normal;font-size:12.5px;background:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:3px 11px;font-weight:700;color:#fff}
.tth-tile .go{flex:none;background:#fff;color:#4b2bb3;border-radius:14px;padding:12px 18px;font-weight:800;font-size:14.5px;white-space:nowrap;box-shadow:0 8px 18px -10px rgba(0,0,0,.45)}
.tth-tile.tools .go{color:#b92b1a}
.tth-tile .lk{white-space:nowrap;display:inline-block;font-style:normal;font-size:11.5px;font-weight:800;background:#ffe9b3;color:#6b4500;border-radius:999px;padding:2px 9px;vertical-align:middle;margin-left:6px}
@media(max-width:860px){.tth-tiles{grid-template-columns:1fr}}
@media(max-width:520px){.tth-tile{flex-wrap:wrap;padding:18px}.tth-tile .go{width:100%;text-align:center;box-sizing:border-box}.tth-tile .ic{width:60px;height:60px;font-size:32px;border-radius:18px}.tth-tile b{font-size:22px}}
/* mobile: category buttons sit in a 2-column grid instead of a sideways slider */
@media(max-width:640px){.tth-chips{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;overflow:visible!important;flex-wrap:wrap!important}.tth-chip{flex:none;text-align:left;white-space:normal;line-height:1.2;padding:9px 11px;min-height:40px}}

/* slim pointer from the tools page to the library (the nav has its own entry for it) */
.tth-also{margin:14px 2px 0;font-size:14.5px;font-weight:700;color:var(--muted)}
.tth-also a{color:var(--accent-dark);text-decoration:none;white-space:nowrap}
.tth-also a:hover{text-decoration:underline}

/* ===== Hub v2: category tiles, tabs, compact cards, quieter hero (materials library + toolkit) ===== */
.tth-hero{padding:clamp(18px,3.4vw,30px)}
.tth-hero h1{font-size:clamp(26px,4vw,38px)}
.tth-hero p{font-size:clamp(14.5px,1.9vw,16.5px);max-width:60ch}
.tth-state{margin-top:14px;gap:8px 12px}
.tth-pill{background:none;border-radius:0;padding:0;font-weight:700;font-size:14px;color:rgba(255,255,255,.95)}
.hub-find{position:sticky;top:0;z-index:4;background:var(--bg,#fff);padding:12px 0 10px;margin-top:8px}
.hub-search{display:block;position:relative;max-width:680px}
.hub-search::before{content:"🔎";position:absolute;left:15px;top:50%;transform:translateY(-50%);font-size:16px;opacity:.6;pointer-events:none}
.hub-search input{width:100%;box-sizing:border-box;font-size:16px;padding:14px 16px 14px 44px;border:2px solid var(--line);border-radius:16px;background:var(--surface)}
.hub-search input:focus{border-color:var(--accent);outline:none}
.hub-h{font-family:var(--font-display);font-size:20px;font-weight:600;margin:22px 0 10px}
.hub-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.hub-tile{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:var(--ink);background:var(--tint,#eef5ff);border:1.5px solid rgba(20,40,60,.08);border-radius:22px;padding:18px 18px 16px;min-height:158px;transition:transform .15s,box-shadow .15s,border-color .15s}
.hub-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover);border-color:var(--accent)}
.hub-tile .ic{font-size:36px;line-height:1}
.hub-tile b{font-family:var(--font-display);font-size:20px;font-weight:600;letter-spacing:-.01em}
.hub-tile .d{font-size:13.5px;line-height:1.5;color:#41555b;flex:1}
.hub-tile em{font-style:normal;font-weight:800;font-size:13.5px;color:var(--accent-dark)}
.hub-bar{margin:6px 0 4px}
.hub-back{appearance:none;border:0;background:none;font:inherit;font-weight:800;color:var(--accent-dark);cursor:pointer;padding:8px 0;font-size:15px}
.hub-back:hover{text-decoration:underline}
.hub-ttl{font-family:var(--font-display);font-size:clamp(24px,3.6vw,32px);font-weight:600;margin:2px 0 8px}
.hub-tabs{display:flex;gap:2px;overflow-x:auto;border-bottom:2px solid var(--line);-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.hub-tab{appearance:none;flex:none;border:0;background:none;font:inherit;font-weight:700;font-size:14.5px;color:var(--muted);padding:11px 14px;cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-2px;white-space:nowrap}
.hub-tab i{font-style:normal;font-weight:700;font-size:12px;opacity:.7;margin-left:3px}
.hub-tab:hover{color:var(--ink)}
.hub-tab.on{color:var(--accent-dark);border-bottom-color:var(--accent)}

.hub-sec .tth-cat{margin-top:22px}
/* compact cards: icon left, title + two lines of description, a small lock in the corner instead of a pill on every card */
.tth-grid{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}
.tth-card{display:grid;grid-template-columns:52px 1fr;column-gap:13px;row-gap:3px;align-content:start;align-items:start;padding:14px 16px 14px 14px;border-radius:18px}
.tth-card .tth-ic{grid-row:1 / span 3;width:52px;height:52px;font-size:26px;margin:0;border-radius:15px}
.tth-card b{grid-column:2;font-size:17px;line-height:1.25;padding-right:22px}
.tth-card p{grid-column:2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13.5px;line-height:1.5}
.tth-lv{font-weight:800;color:var(--accent-dark);font-size:12.5px;white-space:nowrap}
.tth-lk{position:absolute;top:11px;right:13px;font-style:normal;font-size:13px;opacity:.5}
.tth-open{grid-column:2;font-size:12px;font-weight:800;color:#1a7a46}
.tth-card.locked .tth-ic{filter:none}
@media(max-width:860px){.hub-tiles{grid-template-columns:1fr 1fr}}
@media(max-width:640px){
  .hub-find{position:static;padding-top:8px}
  .hub-tiles{gap:10px}
  .hub-tile{min-height:0;padding:14px 14px 13px;border-radius:18px}
  .hub-tile .ic{font-size:30px}.hub-tile b{font-size:17px}.hub-tile .d{font-size:12.5px}
  .tth-grid{grid-template-columns:1fr;gap:10px}
  .tth-card{padding:12px 14px 12px 12px}
  .tth-card .tth-ic{width:46px;height:46px;font-size:23px}
  .tth-card{grid-template-columns:46px 1fr}
  .tth-hero .tt-btn{padding:10px 14px;font-size:14px}
}
@media(max-width:380px){.hub-tiles{grid-template-columns:1fr}.hub-tile{flex-direction:row;flex-wrap:wrap;gap:4px 10px;align-items:center}.hub-tile .d{flex-basis:100%}}

.hub-tabs{overflow-y:hidden;border-bottom:0;box-shadow:inset 0 -2px 0 var(--line)}.hub-tab{margin-bottom:0}

@media(max-width:640px){.hub-tile .d{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.hub-tab{padding:11px 12px}.hub-sec .tth-cat small{display:block;margin:2px 0 0}}

@media(max-width:640px){.hub-tabs{scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);mask-image:linear-gradient(90deg,#000 86%,transparent)}.hub-tabs::-webkit-scrollbar{display:none}}

.tth-sub{flex-basis:100%;font-size:13px;font-weight:600;color:rgba(255,255,255,.88)}.tth-state u{text-decoration:none;font-weight:900}
.tth-pill{flex-basis:100%}

/* Hub v3: everything on one page. A "Jump to" row, a banner per shelf, every card visible. */
.hub-jump{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 6px}
.hub-jump b{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-right:2px}
.hub-jump a{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--ink);background:var(--surface);border:1.5px solid var(--line);border-radius:999px;padding:8px 14px;font-weight:700;font-size:14.5px}
.hub-jump a:hover{border-color:var(--accent);background:var(--accent-soft,#e9f7f5)}
.hub-jump a i{font-style:normal;font-weight:800;font-size:12.5px;color:var(--accent-dark);background:var(--accent-soft,#e9f7f5);border-radius:999px;padding:1px 8px}
.hub-shelf{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:38px 0 6px;padding:14px 18px;border-radius:18px;background:var(--tint,#eef5ff);font-family:var(--font-display);font-size:clamp(22px,3.6vw,30px);font-weight:600;scroll-margin-top:70px}
.hub-shelf small{flex:1 1 260px;font-family:inherit;font-size:13.5px;font-weight:600;color:#41555b;line-height:1.45}
.hub-shelf .hub-top{font-size:13px;font-weight:800;color:var(--accent-dark);text-decoration:none}
.tth-cat{scroll-margin-top:70px}
@media(max-width:640px){.hub-jump{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:4px}.hub-jump::-webkit-scrollbar{display:none}.hub-jump a,.hub-jump b{flex:0 0 auto}.hub-shelf{margin-top:28px;padding:12px 14px}}
/* Hub v4: the browse screen. Filter chips + preview-picture cards. Everything stays visible; filters narrow in place. */
.mfilters{background:var(--surface);border:1.5px solid var(--line);border-radius:18px;padding:10px 14px 12px;margin:6px 0 10px}
.mf{display:flex;gap:10px;align-items:baseline;padding:5px 0}
.mf-l{flex:0 0 54px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.mf-c{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.mchip{appearance:none;font:inherit;font-size:13px;font-weight:700;line-height:1.2;color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:6px 11px;cursor:pointer;white-space:nowrap}
.mchip i{font-style:normal;font-size:11px;font-weight:800;color:var(--muted);margin-left:3px}
.mchip:hover{border-color:var(--accent)}
.mchip.on{background:var(--accent-dark,#0f6b66);border-color:var(--accent-dark,#0f6b66);color:#fff}
.mchip.on i{color:#cfeeea}
.mf-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:6px;padding-top:9px;font-weight:700;font-size:13.5px}
.mf-clear{appearance:none;font:inherit;font-size:13px;font-weight:800;color:var(--accent-dark);background:none;border:0;cursor:pointer;text-decoration:underline;padding:0}
.mf-clear[hidden]{display:none}
.tth-grid.mgrid{grid-template-columns:repeat(auto-fill,minmax(172px,1fr));gap:14px}
.tth-card.mcard{display:flex;flex-direction:column;gap:7px;padding:0 0 12px;overflow:hidden;border-radius:16px;align-items:stretch}
.mcard .mthumb{position:relative;display:block;aspect-ratio:3/4;background:#eef2f3}
.mcard .mthumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.mcard .tth-lk{position:absolute;top:8px;right:8px;width:26px;height:26px;display:grid;place-items:center;opacity:1;font-size:13px;background:rgba(255,255,255,.93);border-radius:999px}
.mcard .msample{position:absolute;top:8px;left:8px;font-size:11.5px;font-weight:800;color:#126b3a;background:#e7f7ec;border:1.5px solid #9bd6b0;border-radius:999px;padding:2px 9px}
.mcard .mnew{position:absolute;left:8px;bottom:8px;font-style:normal;font-size:11.5px;font-weight:800;color:#2b2200;background:#ffd34d;border-radius:999px;padding:2px 9px}
.tth-card.mcard .mt{padding:0 11px;font-size:14.5px;line-height:1.3;font-family:inherit;font-weight:700;letter-spacing:0}
.mcard .mmeta{display:flex;flex-wrap:wrap;gap:5px;padding:0 11px}
.mcard .mmeta i{font-style:normal;font-size:11.5px;font-weight:800;color:var(--muted);background:#f1f5f6;border-radius:999px;padding:2px 8px}
.mcard .mmeta i.mlv{color:var(--accent-dark);background:var(--accent-soft,#e6f7f5)}
.mcard .mtype{padding:0 11px;font-size:12px;color:var(--muted);line-height:1.35}
.tth-card.mcard.locked .mthumb img{filter:saturate(.8)}
@media(max-width:640px){
  .tth-grid.mgrid{grid-template-columns:repeat(2,1fr);gap:10px}
  .mf{flex-direction:column;align-items:stretch;gap:4px;padding:4px 0}.mf-l{flex:none}
  .mf-c{flex-wrap:nowrap;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px;margin-right:-14px;padding-right:14px}
  .mf-c::-webkit-scrollbar{display:none}
  .tth-card.mcard .mt{font-size:13.5px}
}
/* Wide desktop layout for the browse hubs and the public category pages: use the whole screen. */
.tt-page.tt-wide{max-width:none;padding-left:clamp(16px,2.4vw,56px);padding-right:clamp(16px,2.4vw,56px)}
.tt-wide .hub-search{max-width:min(920px,100%)}
.tt-wide .tth-grid.mgrid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
@media(min-width:1100px){
  .tt-wide .mfilters{display:grid;grid-template-columns:1fr 1fr;column-gap:40px;row-gap:0}
  .tt-wide .mfilters .mf-bar{grid-column:1 / -1}
}
@media(min-width:1800px){.tt-wide .tth-grid.mgrid{grid-template-columns:repeat(auto-fill,minmax(215px,1fr))}}
/* Public category pages (/teaching-resources) */
.tr-crumbs{font-size:13.5px;color:var(--muted);margin:2px 0 10px}
.tr-crumbs a{color:var(--accent-dark);font-weight:700;text-decoration:none}
.tr-h{font-family:var(--font-display);font-size:24px;font-weight:600;margin:32px 0 10px;letter-spacing:-.01em}
.tr-p{margin:0 0 16px;font-size:15px;line-height:1.6;max-width:80ch;color:var(--ink)}
.tr-faq{display:grid;gap:10px;max-width:900px}
.tr-faq details{border:1.5px solid var(--line);border-radius:14px;padding:12px 16px;background:var(--surface)}
.tr-faq summary{font-weight:800;cursor:pointer}
.tr-faq p{margin:8px 0 0;font-size:14.5px;line-height:1.6}
.tr-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}
.tr-cat{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--ink);background:var(--surface);border:1.5px solid var(--line);border-radius:16px;padding:14px 16px}
.tr-cat b{font-size:15.5px;line-height:1.3}
.tr-cat span{font-size:13px;color:var(--muted);font-weight:700}
.tr-cat:hover{border-color:var(--accent);transform:translateY(-2px)}
.tth-hero p + p{margin-top:8px}
/* The paywall: a dimmed, blurred picture of the real page behind one clear box (lock, what you need, buttons). */
.pw{position:relative;min-height:min(80vh,780px);margin:12px 0 0;border-radius:22px;overflow:hidden;display:grid;place-items:center;padding:30px 16px;background:#dfe9ea}
.pw-bg{position:absolute;inset:-22px;background-size:cover;background-position:center top;filter:blur(10px) saturate(.9);transform:scale(1.06)}
.pw::after{content:"";position:absolute;inset:0;background:rgba(18,38,42,.42)}
.pw-modal{position:relative;z-index:2;width:min(540px,100%);max-height:calc(100vh - 120px);overflow:auto;background:#fff;border-radius:24px;padding:24px 28px 20px;box-shadow:0 34px 90px rgba(0,0,0,.4);text-align:center}
.pw-close{position:absolute;top:10px;right:14px;width:34px;height:34px;display:grid;place-items:center;font-size:26px;line-height:1;color:var(--muted);text-decoration:none;border-radius:999px}
.pw-close:hover{background:#eef3f4;color:var(--ink)}
.pw-lock{width:62px;height:62px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;color:var(--accent-dark);background:var(--accent-soft,#e6f7f5)}
.pw-lock i{display:block;position:relative;width:24px;height:18px;margin-top:9px;background:currentColor;border-radius:5px}
.pw-lock i::before{content:"";position:absolute;left:4px;top:-12px;width:10px;height:12px;border:3.5px solid currentColor;border-bottom:0;border-radius:9px 9px 0 0}
.pw-lock i::after{content:"";position:absolute;left:10px;top:5px;width:4px;height:6px;background:#fff;border-radius:2px}
.pw-title{font-family:var(--font-display);font-size:clamp(20px,2.6vw,26px);font-weight:600;line-height:1.2;margin:0 0 6px;letter-spacing:-.01em}
.pw-lead{font-size:14.5px;line-height:1.55;color:#41555b;margin:0 0 16px}
.pw .lockbox{background:none;border:0;box-shadow:none;padding:0;text-align:center}
.pw .lockbox h2{margin:0 0 6px;font-size:18px}
.pw .lockbox p{margin:0 0 12px;font-size:14.5px;line-height:1.55;color:#27454a}
.pw .lockbox .tt-row{justify-content:center}
.pw-inside{margin:16px 0 0;padding-top:12px;border-top:1px solid var(--line);text-align:left}
.pw-inside summary{font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);cursor:pointer}
.pw-inside ul{margin:8px 0 0;padding-left:20px}
.pw-inside li{margin:3px 0;font-size:13.5px;line-height:1.5;color:#27454a}
.pw-hint{margin:14px 0 0;font-size:12.5px;color:var(--muted)}
.pw-hint a{color:var(--accent-dark);font-weight:700}
@media(max-width:640px){.pw{padding:14px 10px;min-height:0;border-radius:18px}.pw-modal{padding:22px 18px 18px;max-height:none}}
/* Two-pane pickers (the clean Twinkl-style layout): a short list on the left, everything on the right. */
.tlayout,.mlayout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.tnav{display:flex;flex-direction:row;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;background:var(--accent-soft,#e6f7f5);border-radius:18px;padding:8px}
.tnav::-webkit-scrollbar{display:none}
.tnav-i{flex:0 0 auto;display:flex;align-items:center;gap:9px;font:inherit;font-weight:700;font-size:14.5px;line-height:1.2;color:var(--ink);background:#fff;border:1.5px solid #cfe0e2;border-radius:12px;padding:10px 12px;text-decoration:none;text-align:left;cursor:pointer;white-space:nowrap}
.tnav-i i{font-style:normal;font-size:12px;font-weight:800;color:var(--muted);margin-left:auto;padding-left:6px}
.tnav-i:hover{border-color:var(--accent)}
.tnav-i.on{background:#cfe9ec;border-color:var(--accent)}
.tnav-e{font-size:18px;line-height:1;width:22px;flex:0 0 22px;text-align:center;overflow:hidden;white-space:nowrap}
.tnav-fav .tnav-e{color:#f2b100}
.tnav-fav.on{background:#fff4cc;border-color:#f2b100}
.tgrid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.tcell{position:relative}
.tth-card.trow{display:grid;grid-template-columns:44px 1fr;column-gap:12px;row-gap:2px;align-items:center;padding:12px 52px 12px 12px;border-radius:14px;border:1.5px solid var(--line);min-height:70px}
.tth-card.trow .tth-ic{grid-row:1 / span 2;width:44px;height:44px;font-size:23px;margin:0;border-radius:12px}
.tth-card.trow b{grid-column:2;font-size:16px;line-height:1.25;padding-right:0}
.tth-card.trow p{grid-column:2;font-size:12.5px;line-height:1.4;-webkit-line-clamp:2}
.tth-card.trow .tth-open{grid-column:2;font-size:11.5px}
.tth-card.trow .tth-lk{top:9px;right:52px}
.tfav{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:none;border-radius:50%;font-size:23px;line-height:1;color:#a3b3b6;cursor:pointer}
.tfav:hover{background:#eef3f4;color:#f2b100}
.tfav[aria-pressed="true"]{color:#f2b100}
.hub.fav-only .tcell:not(.is-fav){display:none!important}
.hub.fav-only .hub-sec:not(:has(.tcell.is-fav)){display:none}
.tfav-empty{background:#fff8dd;border-radius:14px;padding:14px 16px;font-weight:600;font-size:14.5px;margin:0 0 14px}
.tfav-empty[hidden]{display:none}
@media(min-width:1000px){
  .tlayout{grid-template-columns:268px minmax(0,1fr);gap:26px}
  .mlayout{grid-template-columns:300px minmax(0,1fr);gap:26px}
  .tnav,.mside{position:sticky;top:86px;max-height:calc(100vh - 104px);overflow-y:auto}
  .tnav{flex-direction:column;gap:7px;padding:12px;overflow-x:hidden}
  .tnav-i{width:100%;white-space:normal}
  /* library filters become a vertical list in the sidebar */
  .tt-wide .mside .mfilters{display:block;background:var(--accent-soft,#e6f7f5);border:0;border-radius:20px;padding:12px;margin:0}
  .mside .mf{display:block;padding:6px 0}
  .mside .mf-l{display:block;flex:none;margin:2px 4px 7px}
  .mside .mf-c{flex-direction:row;flex-wrap:wrap;gap:5px}
  .mside .mchip{display:inline-flex;align-items:center;gap:6px;width:auto;border-radius:999px;padding:5px 10px;font-size:13.5px;line-height:1.25;text-align:left;border-color:#cfe0e2;white-space:normal}
  .mside .mchip i{margin-left:0;font-size:11.5px}
  .mside .mf-l{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase}
  .mside .mchip.on{background:#cfe9ec;border-color:var(--accent);color:var(--ink)}
  .mside .mchip.on i{color:var(--accent-dark)}
  .mside .mchip.on::before{content:"✓";font-weight:800;color:var(--accent-dark);margin-right:7px}
  .mside .mf-bar{margin-top:8px}
}
@media(max-width:640px){.tt-wide .tth-grid.mgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

/* Hub v5: the category chooser and the collections list (replaces the pill rows). */
.mshelves{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:10px 0 14px}
.mshelves .msh{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-decoration:none;color:var(--ink);background:var(--t,#eef5ff);border:1.5px solid color-mix(in srgb,var(--ink) 9%,transparent);border-radius:18px;padding:14px 14px 13px;transition:transform .15s,box-shadow .15s,border-color .15s}
.mshelves .msh:hover,.mshelves .msh:focus-visible{transform:translateY(-3px);box-shadow:0 10px 22px -12px rgba(15,42,46,.35);border-color:var(--accent);outline:none}
.mshelves .mshe{font-size:26px;line-height:1;margin-bottom:4px}
.mshelves .msh b{font-family:var(--font-display);font-size:16.5px;font-weight:600;line-height:1.2}
.mshelves .msh small{font-size:12.5px;font-weight:700;color:var(--muted)}
.mcolls{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin:0 0 8px;padding:0 2px;font-size:14px}
.mcolls .mcl{font-size:12.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-right:2px}
.mcolls a{color:var(--ink);font-weight:600;text-decoration:none;border-bottom:1.5px solid color-mix(in srgb,var(--accent) 45%,transparent);padding-bottom:1px}
.mcolls a:hover,.mcolls a:focus-visible{color:var(--accent-dark);border-bottom-color:var(--accent-dark);outline:none}
.mcolls a.all{color:var(--accent-dark);font-weight:800;border-bottom-color:transparent}
@media(max-width:1100px){.mshelves{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){
  .mshelves{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .mshelves .msh{padding:12px 12px 11px;border-radius:16px}
  .mshelves .msh b{font-size:15px}
  .mcolls{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
  .mcolls .mcl{grid-column:1 / -1;margin-bottom:4px}
  .mcolls a{display:block;border-bottom:1px solid var(--line);padding:10px 0}
  .mcolls a.all{grid-column:1 / -1;border-bottom:0}
}

/* Below 1000px the filters live behind one tidy button (the sidebar takes over on wide screens), and their chips wrap instead of scrolling sideways. */
button.mf-lb{display:flex;align-items:center;gap:0;width:100%;appearance:none;background:none;border:0;font:inherit;font-weight:800;color:var(--muted);cursor:pointer;padding:6px 4px;text-align:left}
button.mf-lb span{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase}
button.mf-lb em{font-style:normal;font-size:11.5px;font-weight:800;color:var(--accent-dark);text-transform:none;margin-left:4px}
button.mf-lb i{margin-left:auto;font-style:normal;transition:transform .15s}
.mside button.mf-lb{display:flex;margin:0 0 4px;font-size:inherit;letter-spacing:0;text-transform:none}
.mf.shut .mf-lb i{transform:rotate(-90deg)}
.mf.shut .mf-c{display:none}
.mf-toggle{display:none}
@media(max-width:999px){
  .mf-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;appearance:none;font:inherit;font-weight:800;font-size:15px;color:var(--ink);background:var(--surface);border:1.5px solid var(--line);border-radius:14px;padding:12px 14px;cursor:pointer;margin:0 0 8px;text-align:left}
  .mf-toggle i{font-style:normal;color:var(--accent-dark)}
  .mf-toggle.active{border-color:var(--accent);background:var(--accent-soft,#e6f7f5)}
  .mf-toggle.active span::after{content:" · filters on";color:var(--accent-dark)}
  .mside.open .mf-toggle i{transform:rotate(180deg)}
  .mside:not(.open) .mfilters{display:none}
  .mf-c{flex-wrap:wrap!important;overflow:visible!important;margin-right:0!important;padding-right:0!important}
}

/* Related collections on the public category pages: the same card style as the collection index. */
.tr-related{margin-top:6px}
.tr-cat{transition:transform .15s,box-shadow .15s,border-color .15s}
.tr-cat:hover,.tr-cat:focus-visible{box-shadow:0 10px 22px -12px rgba(15,42,46,.35);outline:none}
@media(max-width:560px){.tr-related{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tr-related .tr-cat{padding:12px 12px}.tr-related .tr-cat b{font-size:14.5px}}

/* Closing block + site footer for the toolkit, materials and teaching-resources pages (they had no footer styling at all). */
.mend{display:flex;align-items:center;flex-wrap:wrap;gap:14px 18px;margin:40px 0 0;padding:20px 22px;border-radius:20px;background:linear-gradient(115deg,#eef5ff,#e6f7f5);border:1.5px solid var(--line)}
.mend-ic{font-size:34px;line-height:1;flex:none}
.mend-tx{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:3px}
.mend-tx b{font-family:var(--font-display);font-size:19px;font-weight:600;color:var(--ink)}
.mend-tx span{font-size:14px;color:var(--muted);line-height:1.5}
.mend-go{flex:none;background:var(--accent);color:#fff;font-weight:800;font-size:14px;border-radius:999px;padding:11px 18px;text-decoration:none;white-space:nowrap}
.mend-go:hover,.mend-go:focus-visible{filter:brightness(1.07);outline:none}
@media(max-width:560px){.mend{padding:18px 16px}.mend-go{width:100%;text-align:center;box-sizing:border-box}}
body footer:not(.gtb-footer){margin-top:56px;padding:34px 16px 30px;text-align:center;background:var(--surface);border-top:1px solid var(--line);color:var(--muted)}
body footer:not(.gtb-footer) .fl{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 26px;max-width:900px;margin:0 auto 16px}
body footer:not(.gtb-footer) .fl a{color:var(--ink);font-weight:600;font-size:14.5px;text-decoration:none;padding:2px 0;border-bottom:1.5px solid transparent}
body footer:not(.gtb-footer) .fl a:hover,body footer:not(.gtb-footer) .fl a:focus-visible{color:var(--accent-dark);border-bottom-color:var(--accent);outline:none}
body footer:not(.gtb-footer) p{margin:0;font-size:12.5px;line-height:1.5}
@media(max-width:560px){body footer:not(.gtb-footer) .fl{gap:8px 20px}body footer:not(.gtb-footer) .fl a{font-size:14px}}

/* "What you get for $10": the value block under the heading of the toolkit and materials hubs (visitors without a pass). */
.tpitch{margin:18px 0 6px;padding:22px 24px;border-radius:22px;background:linear-gradient(135deg,#f5efff,#eef5ff 55%,#e6f7f5);border:1.5px solid #d4c8f0}
.tpitch .tp-head h2{margin:0;font-family:var(--font-display);font-weight:600;font-size:clamp(22px,3.2vw,30px);color:var(--ink)}
.tpitch .tp-head p{margin:4px 0 0;color:var(--muted);font-size:14.5px}
.tpitch .tp-head p.tp-founding{margin-top:10px;color:var(--ink);font-size:15px;background:#fff;border:1.5px solid #cfc9f5;border-radius:12px;padding:9px 13px;display:inline-block}
.tpitch .tp-head p.tp-founding b{color:var(--accent-dark)}
.tpitch .tp-use{display:block;color:var(--muted);font-size:13px;font-weight:600;margin-top:2px}
.tpitch .tp-list{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tpitch .tp-list li{display:flex;gap:11px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 14px}
.tpitch .tp-ic{font-size:26px;line-height:1;flex:none}
.tpitch .tp-list b{display:block;font-size:15px;color:var(--ink);margin-bottom:3px}
.tpitch .tp-list span span{font-size:13.5px;line-height:1.5;color:var(--muted)}
.tpitch .tp-buy{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.tpitch .tp-fine{margin:12px 0 0;font-size:13px;color:var(--muted)}
@media(max-width:1100px){.tpitch .tp-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.tpitch{padding:18px 16px}.tpitch .tp-list{grid-template-columns:1fr;gap:10px}.tpitch .tp-buy .tt-btn{width:100%;text-align:center;box-sizing:border-box}}

/* The state line is one sentence (with an underlined "and"): make it a normal text block so it never splits into flex columns. */
.tth-pill{display:block;line-height:1.5}

/* The Global Tutor Board cast (panda, llama, kangaroo, lion, owl) stands in the corner of the big teal heroes on wide screens. Decoration only. */
@media (min-width:1000px){
  .tth-hero{position:relative}
  .tth-hero::after{content:"";position:absolute;right:2.5%;bottom:0;width:min(41%,540px);aspect-ratio:960/433;background:url(/assets/art/cast.webp) no-repeat right bottom/contain;filter:drop-shadow(0 7px 7px rgba(0,60,55,.28));pointer-events:none}
  .tth-hero > *{position:relative;z-index:1;max-width:57%}
}

/* Wayfinding on the long materials library (assets/hubtoc.js): a "Jump to" list in the sidebar, a categories button on phones, back to top. */
.hubtoc{display:none}
@media(min-width:1000px){
  .hubtoc{display:block;margin:0 0 14px;padding:10px;background:#fff;border:1px solid #d3e4e6;border-radius:18px}
  .hubtoc h3{margin:2px 8px 8px;font:800 11.5px/1 var(--font-body,inherit);letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
  .hubtoc a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;font-weight:700;font-size:14.5px;line-height:1.25;color:var(--ink);text-decoration:none}
  .hubtoc a:hover{background:#f1f7f8}
  .hubtoc a.on{background:var(--accent-soft,#e6f7f5);color:var(--accent-dark)}
  .hubtoc a i{font-style:normal;font-size:12px;font-weight:800;color:var(--muted)}
  .hubfab-cat{display:none}
}
.hubfab{position:fixed;right:14px;bottom:16px;z-index:40;display:flex;gap:8px;align-items:center}
.hubfab[hidden],.hubsheet[hidden]{display:none}
.hubfab button{appearance:none;border:0;cursor:pointer;font:inherit;font-weight:800;font-size:14px;color:#fff;background:var(--accent-dark,#0d8f85);border-radius:999px;padding:11px 16px;box-shadow:0 6px 18px rgba(8,60,56,.28)}
.hubfab .hubfab-top{width:44px;height:44px;padding:0;font-size:20px;line-height:1}
.hubsheet{position:fixed;left:0;top:0;right:0;bottom:0;z-index:60;background:rgba(15,23,42,.55);display:flex;align-items:flex-end;justify-content:center}
.hubsheet-card{background:#fff;width:100%;max-width:520px;max-height:82vh;overflow:auto;border-radius:20px 20px 0 0;padding:14px 14px 22px}
.hubsheet-h{display:flex;justify-content:space-between;align-items:center;margin:0 -14px 8px;padding:2px 18px 8px;font-size:17px;position:sticky;top:-14px;background:#fff;z-index:2;border-bottom:1px solid #e3eef0}
.hubsheet-x{appearance:none;border:0;background:#eef3f4;border-radius:999px;width:34px;height:34px;font-size:16px;cursor:pointer}
.hubsheet nav a{display:flex;justify-content:space-between;gap:12px;padding:13px 12px;border-radius:12px;font-weight:700;font-size:16px;color:var(--ink);text-decoration:none}
.hubsheet nav a.on{background:var(--accent-soft,#e6f7f5);color:var(--accent-dark)}
.hubsheet nav a i{font-style:normal;font-size:13px;color:var(--muted)}
.hubtoc-subs{display:none;margin:2px 0 6px 12px;padding-left:8px;border-left:2px solid #d3e4e6}
.hubtoc-g.open .hubtoc-subs{display:block}
.hubtoc-subs a{padding:6px 9px;font-size:13.5px;font-weight:600}
.hubsheet .hubtoc-g.open .hubtoc-subs{display:block;margin:0 0 6px 10px}
.hubsheet .hubtoc-shelf{font-size:16px;font-weight:800}
.hubsheet .hubtoc-subs a{font-size:15px;font-weight:600;padding:10px 10px}
.hubtoc .hubtoc-shelf{font-weight:800}
.hubtoc-m a{display:flex;justify-content:space-between;gap:12px;padding:12px 12px;border-radius:12px;color:var(--ink);text-decoration:none;line-height:1.25}
.hubtoc-m a i{font-style:normal;font-size:13px;color:var(--muted)}
.hubtoc-m a.on{background:var(--accent-soft,#e6f7f5);color:var(--accent-dark)}
.hubtoc-g.has-subs>.hubtoc-shelf{justify-content:flex-start}
.hubtoc-g.has-subs>.hubtoc-shelf::before{content:"";flex:none;width:7px;height:7px;margin:0 9px 0 2px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(-45deg) translateY(-1px);transition:transform .15s;opacity:.7;align-self:center}
.hubtoc-g.has-subs.open>.hubtoc-shelf::before{transform:rotate(45deg) translateY(-2px)}
.hubtoc-g.has-subs>.hubtoc-shelf i{margin-left:auto}
.hubtoc-g.has-subs>.hubtoc-shelf span{flex:1 1 auto}
@media print{.hubfab,.hubsheet,.hubtoc{display:none!important}}

/* phones and tablets: the cast stands below the header text (decoration only; wide screens have it in the corner, see above) */
@media (max-width:999px){
  .tth-hero::after{content:"";display:block;height:92px;margin:18px auto 0;background:url(/assets/art/cast.webp) no-repeat center bottom/contain;filter:drop-shadow(0 6px 6px rgba(0,0,40,.28));pointer-events:none}
}
