/* TeachKit experience layer. Inherits the school's Royal Blue tokens and fonts.
   Loaded after lesson styles so generated SVG assets can be rebuilt independently. */
.tk-body{--tk-section-gap:1.5rem;--tk-nav-height:66px}
.tk-main{min-width:0}
.tk-main [hidden],.tk-hero [hidden]{display:none!important}
.tk-main p{overflow-wrap:break-word}
.tk-card{box-shadow:var(--sh);border-radius:var(--r)}
.tk-card-hd{padding:1rem 1.2rem;gap:.7rem;flex-wrap:wrap}
.tk-card-hd h2{flex:1;min-width:120px;line-height:1.6}
.tk-card-act{gap:.5rem}
.tk-card-bd{padding:1.2rem}
.tk-btn,.tk-chip,.tk-select,.tk-seg button{min-height:44px}
.tk-btn{line-height:1.4}
.tk-btn-primary{box-shadow:0 4px 12px rgba(29,78,216,.2)}
.tk-btn-primary:hover{box-shadow:0 6px 18px rgba(29,78,216,.24)}
.tk-body :is(a,button,input,select){-webkit-tap-highlight-color:transparent}
.tk-btn:disabled{pointer-events:none}
.tk-select{max-width:100%}
.tk-hero::after{animation:none;inset:0}
.tk-orb{animation:none;filter:blur(40px);opacity:.25}
.tk-hero-sub{line-height:1.85;color:rgba(255,255,255,.86)}
.tk-crumbs{margin-bottom:1rem}
.tk-in{animation-duration:.38s;animation-delay:calc(var(--i,0)*35ms)}
.tk-js .tk-reveal{transform:translateY(8px)}
.tk-js .tk-reveal.is-in{transition-duration:.38s;transition-delay:calc(var(--i,0)*35ms)}

/* Discovery: compact hero, clear search, and the library within the first screen. */
.tk-hub .tk-hero{text-align:left;padding:calc(1.25rem + var(--tk-nav-overlay)) var(--tk-gutter) 3.25rem}
.tk-hub .tk-hero-in{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);gap:.5rem 2rem;align-items:center;padding:0 var(--tk-gutter)}
.tk-hub .tk-hero-in>h1,.tk-hub .tk-hero-in>.tk-hero-sub,.tk-hub .tk-hero-in>.tk-crumbs{grid-column:1}
.tk-hub-tools{grid-column:2;grid-row:1 / span 3;min-width:0;align-self:center}
.tk-hub .tk-hero-ic{display:none}
.tk-hub .tk-hero h1{font-size:clamp(1.5rem,2.5vw,2.05rem);line-height:1.45;max-width:100%;margin:0}
.tk-eyebrow{display:block;font:600 .76rem/1.6 var(--f-b);letter-spacing:.1em;color:#BFDBFE;margin-bottom:.35rem}
.tk-title-accent{color:#BAE6FD;margin-left:.2em}
.tk-hub .tk-hero-sub{max-width:68ch;margin:0;font-size:.92rem;line-height:1.7}
.tk-hub .tk-crumbs ol{justify-content:flex-start}
.tk-hub .tk-search{max-width:none;margin:0}
.tk-hub .tk-search input{border-radius:12px;height:56px;padding-right:12.5rem;box-shadow:0 8px 22px rgba(15,23,42,.12)}
.tk-search-k{right:4.25rem}
.tk-search-submit{position:absolute;right:7px;top:7px;width:42px;height:42px;border:0;border-radius:8px;background:var(--c-700);color:#fff;cursor:pointer;transition:background .18s,transform .18s}
.tk-search-submit:hover{background:var(--c-royal)}
.tk-search-submit:active{transform:scale(.95)}
.tk-hero-actions{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin-top:.4rem;font-size:.8rem;color:#DBEAFE}
.tk-hero-actions a{display:inline-flex;align-items:center;gap:.6rem;min-height:36px;color:#fff;font-weight:600;text-underline-offset:5px;text-decoration-color:rgba(255,255,255,.4)}
.tk-hero-actions>span{display:inline-flex;align-items:center;gap:.55rem}
.tk-hub .tk-main{margin-top:-1.5rem}
.tk-hub .tk-stats{gap:.8rem;margin-bottom:1rem}
.tk-hub .tk-stat{min-height:80px;padding:.75rem 1rem}
.tk-stats{gap:1rem;margin-bottom:var(--tk-section-gap)}
.tk-stat{box-shadow:var(--sh);min-height:96px;padding:1rem 1.1rem}
.tk-stat-val{line-height:1.4}
.tk-stat-lbl{line-height:1.6}
.tk-stat-ic{box-shadow:none}
.tk-hub-layout{display:grid;grid-template-columns:224px minmax(0,1fr);gap:1rem;align-items:start}
.tk-hub-layout>*{min-width:0}
.tk-subject-panel{position:sticky;top:calc(var(--tk-nav-sticky) + 16px)}
.tk-subject-panel .tk-card-hd{padding:.65rem .85rem}
.tk-subject-panel .tk-card-hd h2{font-size:.94rem}
.tk-subject-panel .tk-card-act{display:none}
.tk-subject-panel .tk-card-bd{padding:.5rem}
.tk-panel-hint{font-size:.8rem;color:var(--t3);margin:0 .3rem .7rem}
.tk-hub .tk-subjects{grid-template-columns:1fr;gap:.2rem}
.tk-hub .tk-subj{border-color:transparent;border-radius:9px;padding:.4rem .5rem;box-shadow:none;min-height:48px}
.tk-hub .tk-subj::after{display:none}
.tk-hub .tk-subj:hover{transform:none;background:var(--bg-m);border-color:var(--bd)}
.tk-hub .tk-subj[aria-current="true"],.tk-hub .tk-subj[aria-current="page"]{background:var(--tk-tint);border-color:var(--c-300);box-shadow:none}
.tk-hub .tk-subj-ic{width:34px;height:34px;font-size:.9rem;box-shadow:none}
.tk-hub .tk-subj-tx b{font-family:var(--f-b);font-size:.86rem;line-height:1.45}
.tk-hub .tk-subj-tx small{font-size:.75rem;line-height:1.4}
.tk-hub #tkTopicsCard{background:transparent;border:0;box-shadow:none;overflow:visible}
.tk-hub #tkTopicsCard>.tk-card-hd{padding:.2rem 0 .8rem;border:0;background:transparent}
.tk-hub #tkTopicsCard>.tk-card-hd h2{font-size:1.15rem}
.tk-hub #tkTopicsCard>.tk-card-bd{padding:0}
.tk-catalog-intro{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;margin-bottom:1rem}
.tk-catalog-intro p{font-size:.9rem;color:var(--t3);margin:0}
.tk-clear{flex:none;display:inline-flex;align-items:center;gap:.6rem;min-height:44px;background:transparent;border:0;color:var(--tk-tint-ink);font:600 .84rem var(--f-b);cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.tk-toolbar{padding:.8rem;background:var(--bg-c);border:1px solid var(--bd);border-radius:12px;gap:.8rem;align-items:center}
.tk-chips{gap:.3rem;flex:1}
.tk-chip{padding:.4rem .65rem;font-size:.82rem;border-color:transparent;box-shadow:none}
.tk-chip[aria-pressed="true"]{box-shadow:none}
.tk-toolbar .tk-select{font-size:.82rem;min-width:0;flex:none}
.tk-hub .tk-topics{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:1rem;align-items:stretch}
.tk-topic{box-shadow:0 2px 6px rgba(15,23,42,.025);transition:transform .22s var(--ease-out),box-shadow .22s,border-color .22s}
.tk-topic-bd{padding:1rem;gap:.5rem}
.tk-topic h3{font-size:1.15rem;line-height:1.65}
.tk-topic-st{line-height:1.65;font-size:.9rem}
.tk-topic p{line-height:1.75;-webkit-line-clamp:3;margin:0 0 .5rem}
.tk-topic-th{aspect-ratio:16/10}
.tk-topic-th img{inset:17% 8% 6%;width:84%;height:77%}
.tk-topic-ft{padding-top:.9rem;border-top-style:solid;gap:.5rem;font-size:.8rem}
.tk-topic-go{border-radius:8px;padding:.45rem .65rem}
.tk-topic-sj{line-height:1.6;font-size:.76rem;align-items:flex-start}
.tk-topic-sj i{flex:none;margin-top:2px}
.tk-topic-tags{flex-wrap:wrap;right:.6rem;gap:.3rem;left:.6rem;top:.6rem}
.tk-topic-tags span{font-size:.7rem}
.tk-empty{background:var(--bg-c);border:1px dashed var(--bd2);border-radius:var(--r);padding:3rem 1.2rem}
.tk-recent{margin:0 0 1rem}
.tk-recent a{min-height:40px;max-width:100%;white-space:normal}

/* Lesson wayfinding remains available while working through long experiments. */
.tk-lesson .tk-main{--tk-anchor-space:calc(var(--tk-nav-height) + 12px)}
.tk-stepnav{display:flex;align-items:center;gap:1rem;position:sticky;top:var(--tk-nav-sticky);z-index:30;background:var(--bg-c);border:1px solid var(--bd);border-radius:12px;padding:.5rem .75rem;margin:0 0 1.25rem;box-shadow:var(--sh)}
.tk-stepnav-label{font-size:.8rem;font-weight:600;color:var(--t3);padding-left:.3rem;white-space:nowrap}
.tk-stepnav-links{display:flex;flex:1;gap:.4rem;min-width:0;overflow-x:auto;scrollbar-width:thin}
.tk-stepnav a{display:flex;flex:1;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:.55rem .7rem;border-radius:8px;white-space:nowrap;text-decoration:none;color:var(--t2);font-size:.88rem;transition:background-color .2s,color .2s}
.tk-stepnav a>span{font-size:.7rem;color:var(--t3);font-variant-numeric:tabular-nums}
.tk-stepnav a:hover{background:var(--bg-m)}
.tk-stepnav a[aria-current="location"]{background:var(--tk-tint);color:var(--tk-tint-ink);font-weight:600}
.tk-stepnav a[aria-current="location"]>span{color:inherit}
.tk-lesson :is(#tk-experiment,#tk-results,#tk-explanation,#tk-practice){scroll-margin-top:var(--tk-anchor-space)}
.tk-hub #tkTopicsCard{scroll-margin-top:20px}
.tk-lesson .tk-lab-grid{grid-template-columns:minmax(0,1fr) minmax(280px,320px);gap:1.25rem}
.tk-lab-grid>*{min-width:0}
.tk-lesson .tk-lab-grid>.tk-card:not(.tk-lab-card){box-shadow:none}
.tk-lesson .tk-frow{padding:1rem 1.15rem}
.tk-lesson .tk-frow h3{line-height:1.65}
.tk-lesson .tk-frow p{line-height:1.75}
.tk-lesson .lb-toolbar{gap:.7rem;padding:1rem}
.tk-lesson .lb-toolbar .tk-btn-primary{min-width:0}
.tk-lesson .lb-status{margin:0;line-height:1.75;padding:.9rem 1.1rem;min-height:4.5em}
.tk-lesson .tk-split>*{min-width:0}
.tk-lesson .tk-tbl-wrap{overscroll-behavior-x:contain}
.tk-lesson .tk-tbl{min-width:480px}
.tk-lesson .tk-why-it{padding:1.1rem;gap:1rem;background:var(--bg-c)}
.tk-lesson .tk-why-it h3{line-height:1.65}
.tk-lesson .tk-why-it p{line-height:1.85}
.tk-lesson .tk-q{padding:1.4rem 0}
.tk-lesson .tk-q h3{line-height:1.8;align-items:baseline}
.tk-lesson .tk-q h3 span{align-self:flex-start;margin-top:.2rem}
.tk-lesson .tk-opt{line-height:1.7;padding:.7rem;font-size:1rem}
.tk-lesson .tk-q-fb{line-height:1.85}
.tk-q-fb:focus{outline:2px solid var(--c-500);outline-offset:3px}
.tk-lessonnav{padding:.8rem 0;gap:.75rem}
.tk-lessonnav .tk-btn{white-space:normal;text-align:center}
@media(hover:hover) and (pointer:fine){.tk-topic:hover{transform:translateY(-4px);border-color:var(--c-300);box-shadow:var(--sh-e)}}
@media(hover:none){.tk-topic:hover,.tk-subj:hover{transform:none}.tk-topic:hover .tk-topic-th img{transform:none}}
@media(min-width:1001px) and (min-height:800px){.tk-lesson .tk-lab-grid>.tk-card:not(.tk-lab-card){position:sticky;top:calc(var(--tk-nav-sticky) + var(--tk-nav-height) + 12px);max-height:calc(100dvh - var(--tk-nav-sticky) - var(--tk-nav-height) - 24px);overflow-y:auto;scrollbar-width:thin}}
@media(max-width:1100px){.tk-hub-layout{grid-template-columns:210px minmax(0,1fr);gap:1rem}.tk-toolbar .tk-select{width:100%}.tk-lesson .tk-lab-grid{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:1000px){.tk-lesson .tk-lab-grid{grid-template-columns:1fr}.tk-stepnav-label{display:none}.tk-lesson .tk-lab-grid>.tk-card:not(.tk-lab-card) .tk-fsheet{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tk-lesson .tk-lab-grid>.tk-card:not(.tk-lab-card) .tk-frow{border-bottom:1px solid var(--bd)}.tk-lesson .tk-lab-grid>.tk-card:not(.tk-lab-card) .tk-frow:last-child{border-bottom:0}}
@media(max-width:800px){
  .tk-hub-layout{grid-template-columns:1fr}
  .tk-subject-panel{position:static}
  .tk-subject-panel .tk-card-bd{padding:.4rem .6rem .6rem}
  .tk-panel-hint{display:none}
  .tk-hub .tk-subjects{display:flex;overflow-x:auto;gap:.4rem;padding:.1rem .1rem .3rem;scroll-snap-type:x proximity;scrollbar-width:thin}
  .tk-hub .tk-subj{flex:1 0 150px;scroll-snap-align:start;border-color:var(--bd);padding:.4rem;min-height:52px}
  .tk-hub .tk-subj-tx b{-webkit-line-clamp:2}
  .tk-subject-panel{margin-bottom:0}
  .tk-hub .tk-hero{padding-top:calc(1rem + var(--tk-nav-overlay));padding-bottom:2.75rem}
  .tk-hub .tk-hero-in{grid-template-columns:1fr;gap:.6rem;padding:0}
  .tk-hub-tools{grid-column:1;grid-row:auto}
  .tk-hub .tk-search{margin-top:.2rem}
  .tk-hub .tk-stats{gap:.65rem}
  .tk-hub .tk-stat{min-height:76px}
  .tk-hero-actions>span{font-size:.8rem}
  .tk-hub .tk-search input{padding-right:4rem}
  .tk-search-k{display:none}
  .tk-toolbar .tk-select{width:auto}
}
@media(max-width:600px){
  .tk-card-hd{padding:.85rem 1rem}
  .tk-card-hd h2{font-size:.96rem}
  .tk-card-act{margin-left:0;max-width:100%}
  .tk-card-bd{padding:1rem}
  .tk-hub .tk-hero h1{font-size:1.4rem;line-height:1.5}
  .tk-title-accent{display:inline;margin-left:.2em}
  .tk-eyebrow{font-size:.65rem;letter-spacing:.06em}
  .tk-hub .tk-hero-sub{font-size:.92rem}
  .tk-hero-actions{gap:.4rem;margin-top:.6rem}
  .tk-hero-actions>span{display:none}
  .tk-hub .tk-stat{padding:.75rem .65rem;column-gap:.6rem}
  .tk-hub .tk-stat-lbl{font-size:.75rem}
  .tk-hub .tk-stat-date{font-size:1rem}
  .tk-hub .tk-topics{grid-template-columns:1fr}
  .tk-topic-th{aspect-ratio:16/8.4}
  .tk-topic-bd{padding:1.1rem}
  .tk-catalog-intro{flex-wrap:wrap;gap:.15rem}
  .tk-catalog-intro p{font-size:.84rem}
  .tk-toolbar{gap:.6rem}
  .tk-chips{flex-basis:100%;gap:.25rem}
  .tk-toolbar .tk-select{width:100%}
  .tk-chip{font-size:.8rem;padding:.4rem .6rem}
  .tk-stepnav{padding:.35rem;margin-bottom:1rem;border-radius:10px}
  .tk-stepnav-links{gap:.2rem}
  .tk-stepnav a{font-size:.8rem;gap:.3rem;padding:.5rem .65rem;flex:none}
  .tk-stepnav a>span{font-size:.64rem}
  .tk-lesson .tk-lab-grid>.tk-card:not(.tk-lab-card) .tk-fsheet{grid-template-columns:1fr}
  .tk-lesson .lb-toolbar .tk-btn{flex:1 1 auto;white-space:normal;font-size:.88rem;padding:.65rem .7rem}
  .tk-lesson .lb-toolbar .tk-btn-primary{flex-basis:100%}
  .tk-lesson .lb-toolbar .tk-switch{min-height:44px}
  .tk-lesson .lb-toolbar .tk-seg{flex:1}
  .tk-lesson .lb-toolbar .tk-seg button{flex:1}
  .tk-lesson .lb-status{font-size:.86rem}
  .tk-lesson .tk-why-it{padding:1rem;gap:.7rem}
  .tk-lesson .tk-lessonnav .tk-btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .tk-body{scroll-behavior:auto}
  .tk-body .tk-main *,.tk-body .tk-hero *,.tk-body .tk-hero::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .tk-body .tk-in,.tk-body .tk-reveal{opacity:1;transform:none}
  .tk-topic:hover,.tk-topic:hover .tk-topic-th img{transform:none}
}
@media print{
  .tk-stepnav,.tk-subject-panel,.tk-toolbar,.tk-hero-actions,.tk-search-submit,.tk-clear{display:none!important}
  .tk-hub-layout{display:block}.tk-hub .tk-main{margin-top:0}.tk-lesson .tk-lab-grid>.tk-card{position:static!important;max-height:none!important;overflow:visible!important}
}
/* Keep the apparatus unobstructed; controls follow the image in document flow. */
.tk-lesson .lb-dock{position:static;box-shadow:none}
.tk-lesson .lj-stage .iso-svg{height:min(54vh,520px);max-height:none;width:100%}
.tk-lesson .tk-lab-card:fullscreen .lj-stage .iso-svg{height:calc(100dvh - 230px);max-height:none}
.tk-lesson .tk-lab-card:-webkit-full-screen .lj-stage .iso-svg{height:calc(100vh - 230px);max-height:none}
@media(max-width:600px){.tk-lesson .lj-stage .iso-svg{height:auto;max-height:480px}}
@media print{.tk-lesson .lj-stage .iso-svg{height:auto;max-height:480px}}
/* Small labels keep AA contrast on tinted surfaces in both school themes. */
.tk-hub .tk-subj[aria-current="true"] small,.tk-hub .tk-subj[aria-current="page"] small{color:var(--t2)}
.tk-seg button:not([aria-pressed="true"]){color:var(--t2)}
:root:not([data-theme="dark"]) .tk-body .tk-bd-t{color:var(--c-700)}
.tk-body .tk-chip[aria-pressed="true"]:hover{color:#fff}
/* The shared site maps blue shade tokens to pale accents in dark mode.
   Action surfaces retain the Royal Blue fill so white labels stay readable. */
.tk-body{--tk-action:#1D4ED8;--tk-action-hover:#1E3A8A}
.tk-body .tk-btn-primary,.tk-body .tk-why-n{background:linear-gradient(135deg,#1E3A8A,#2563EB);color:#fff}
.tk-body .tk-btn-primary:hover{color:#fff}
.tk-body .tk-chip[aria-pressed="true"]{background:var(--tk-action);border-color:var(--tk-action);color:#fff}
.tk-body .tk-search-submit,.tk-body .tk-topic:hover .tk-topic-go{background:var(--tk-action);color:#fff}
.tk-body .tk-search-submit:hover{background:var(--tk-action-hover)}

/* Illustrated lesson covers. Image transforms never move the text or hit target. */
.tk-hub .tk-cover-media{aspect-ratio:3/2;background:#061b40;perspective:850px;isolation:isolate}
.tk-hub .tk-cover-media::before{background:none}
.tk-hub .tk-cover-media img{inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.01);transform-origin:center;transition:transform .45s var(--ease-out)}
.tk-cover-media::after{content:'';position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,rgba(186,230,253,.15) 48%,transparent 65%);transform:translateX(-110%);pointer-events:none;z-index:1}
.tk-cover-media .tk-topic-tags{z-index:2;left:.7rem;top:.7rem;gap:.4rem}
.tk-cover-media .tk-topic-tags span{box-shadow:0 2px 8px rgba(0,0,0,.18)}
.tk-cover-media .tk-topic-tags .alt{background:#153455;color:#E0F2FE;box-shadow:inset 0 0 0 1px rgba(186,230,253,.28)}
.tk-cover-action{position:absolute;bottom:.8rem;right:.8rem;z-index:2;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.95);color:#1D4ED8;font-size:.85rem;box-shadow:0 4px 16px rgba(0,0,0,.22);opacity:0;transform:translateY(8px) scale(.9);transition:opacity .2s,transform .25s var(--ease-out)}
.tk-cover-action i{margin-left:2px}
.tk-topic:focus-visible .tk-cover-action{opacity:1;transform:none}
.tk-topic:focus-visible .tk-cover-media img{transform:scale(1.035)}
@media(hover:hover) and (pointer:fine){
  .tk-topic:hover .tk-cover-media img{transform:rotateX(var(--tk-tilt-x,0deg)) rotateY(var(--tk-tilt-y,0deg)) scale(1.045)}
  .tk-topic:hover .tk-cover-action{opacity:1;transform:none}
  .tk-topic:hover .tk-cover-media::after,.tk-topic:focus-visible .tk-cover-media::after{animation:tk-cover-glint .7s ease-out both}
}
@media(hover:none),(pointer:coarse){.tk-cover-action{opacity:1;transform:none;width:36px;height:36px}}
@keyframes tk-cover-glint{to{transform:translateX(110%)}}
@media(prefers-reduced-motion:reduce){
  .tk-body .tk-cover-media::after{animation:none!important;transform:translateX(-110%)}
  .tk-body .tk-topic:hover .tk-cover-media img,.tk-body .tk-topic:focus-visible .tk-cover-media img{transform:none}
}
@media print{.tk-cover-action{display:none}.tk-cover-media::after{display:none}}

/* Shared compact masthead. Topic artwork comes from the catalog via tk_hero;
   the image is decorative, absolutely positioned, and never sets header height. */
.tk-body .tk-hero--compact{padding:calc(1rem + var(--tk-nav-overlay)) 0 2.65rem;text-align:left;background:linear-gradient(112deg,#1E3A8A 0%,#1D4ED8 58%,#0B2B60 100%)}
.tk-hero--compact .tk-hero-in{padding:0 var(--tk-gutter);z-index:2}
.tk-hero-copy{min-width:0}
.tk-lesson .tk-hero-copy{max-width:min(74%,900px)}
.tk-body .tk-hero--compact h1{font-size:clamp(1.35rem,2.1vw,1.75rem);line-height:1.5;margin:0;max-width:100%;text-wrap:pretty}
.tk-hero-heading-note{color:#D6E7FF;font:500 1rem/1.65 var(--f-b);letter-spacing:0}
.tk-body .tk-hero--compact .tk-hero-sub{font-size:.9rem;line-height:1.7;margin:.3rem 0 0;max-width:86ch;color:#E2ECFF;text-wrap:pretty}
.tk-hero--compact .tk-hero-ic{display:none}
.tk-hero--compact .tk-crumbs{margin:0 0 .45rem;max-width:100%;overflow:hidden}
.tk-hero--compact .tk-crumbs ol{display:flex;flex-wrap:nowrap;justify-content:flex-start;width:fit-content;max-width:100%;padding:0;border-radius:0;background:none;box-shadow:none;overflow-x:auto;scrollbar-width:none}
.tk-hero--compact .tk-crumbs ol::-webkit-scrollbar{display:none}
.tk-hero--compact .tk-crumbs li{flex:none;min-height:28px;font-size:.75rem;padding:0 .3rem 0 0;white-space:nowrap;color:#E2ECFF}
.tk-hero--compact .tk-crumbs li+li::before{margin-right:.5rem;border-color:#A6C5F8}
.tk-hero--compact .tk-crumbs a{display:inline-flex;align-items:center;gap:.3rem;min-height:28px;padding:.15rem .1rem;color:#D6E7FF}
.tk-hero--compact .tk-crumbs a:focus-visible{outline:2px solid #fff;outline-offset:-2px}
.tk-hero--compact .tk-hero-chips{justify-content:flex-start;margin:.65rem 0 0;gap:.35rem}
.tk-hero--compact .tk-hero-chips li{padding:.25rem .6rem;font-size:.75rem;line-height:1.5;background:rgba(8,30,81,.22);box-shadow:inset 0 0 0 1px rgba(219,234,254,.24)}
.tk-hero-media{position:absolute;top:0;bottom:0;right:0;width:min(47%,680px);overflow:hidden;pointer-events:none;z-index:0;opacity:.95;animation:tk-masthead-arrive .5s var(--ease-out) both}
.tk-hero-media img{display:block;width:100%;height:auto;min-height:100%;object-fit:cover;object-position:right top;transform:scale(.7);transform-origin:right top;mask-image:linear-gradient(90deg,transparent,#000 28%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 28%)}
.tk-hero-media--illustration img,.tk-hero-media--diagram img{height:100%;min-height:0;object-fit:contain;object-position:right top;mask-image:none;-webkit-mask-image:none}
.tk-hero-media--diagram{padding:0;opacity:.7}
.tk-hero-shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#1E3A8A 0%,rgba(29,78,216,.98) 34%,rgba(29,78,216,.9) 57%,rgba(20,58,133,.35) 77%,rgba(9,30,69,.12) 100%)}
.tk-hero--compact::after{z-index:1;background-size:44px 44px;opacity:.45}
.tk-lesson .tk-main{margin-top:-1.5rem}
.tk-hub .tk-hero--compact .tk-hero-in{grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:1.8rem;align-items:center}
.tk-hub .tk-hub-tools{grid-column:2;grid-row:1}
.tk-hub .tk-hero-media{right:calc(50% - 16px);width:340px;max-width:35%;opacity:1;mask-image:none;-webkit-mask-image:none}
.tk-hub .tk-hero-shade{background:linear-gradient(90deg,rgba(30,58,138,.97),rgba(29,78,216,.45) 46%,rgba(29,78,216,.62) 62%,rgba(9,30,69,.1))}
.tk-hub .tk-hero--compact .tk-hero-sub{max-width:65ch}
.tk-hub .tk-hero-actions{margin-top:.35rem}
[data-theme="dark"] .tk-body .tk-hero--compact{background:linear-gradient(112deg,#112447,#13346B 60%,#071B3A)}
[data-theme="dark"] .tk-hero-shade{background:linear-gradient(90deg,#112447,rgba(19,52,107,.97) 38%,rgba(19,52,107,.9) 57%,rgba(7,27,58,.25) 80%,rgba(7,27,58,.08))}
[data-theme="dark"] .tk-hub .tk-hero-shade{background:linear-gradient(90deg,rgba(17,36,71,.97),rgba(19,52,107,.48) 46%,rgba(19,52,107,.65) 62%,rgba(7,27,58,.12))}
@keyframes tk-masthead-arrive{from{opacity:0}}
@media(max-width:1100px){.tk-lesson .tk-hero-copy{max-width:78%}.tk-hero-media{width:50%}.tk-body .tk-hero--compact h1{font-size:1.5rem}.tk-hero-heading-note{font-size:.94rem}}
@media(max-width:850px){
  .tk-hub .tk-hero--compact .tk-hero-in{grid-template-columns:1fr;gap:.6rem}
  .tk-hub .tk-hub-tools{grid-column:1;grid-row:2}
  .tk-hub .tk-hero-media{right:var(--tk-gutter);max-width:52%;width:350px;opacity:.65}
  .tk-hub .tk-hero-shade{background:linear-gradient(90deg,rgba(30,58,138,.96),rgba(29,78,216,.8) 60%,rgba(16,47,105,.42))}
  [data-theme="dark"] .tk-hub .tk-hero-shade{background:linear-gradient(90deg,rgba(17,36,71,.98),rgba(19,52,107,.8) 60%,rgba(7,27,58,.45))}
  .tk-lesson .tk-hero-copy{max-width:100%}
  .tk-hero-heading-note{display:block}
  .tk-hero-heading-separator{display:none}
  .tk-hero-media{width:65%;opacity:.8}
  .tk-hero-shade{background:linear-gradient(90deg,rgba(30,58,138,.98),rgba(29,78,216,.94) 48%,rgba(16,47,105,.75))}
  [data-theme="dark"] .tk-hero-shade{background:linear-gradient(90deg,rgba(17,36,71,.99),rgba(19,52,107,.95) 48%,rgba(7,27,58,.8))}
}
@media(max-width:600px){
  .tk-body .tk-hero--compact{padding-top:calc(.7rem + var(--tk-nav-overlay));padding-bottom:2.3rem}
  .tk-body .tk-hero--compact h1{font-size:1.3rem;line-height:1.5}
  .tk-hero-heading-note{font-size:.88rem}
  .tk-body .tk-hero--compact .tk-hero-sub{font-size:.85rem;line-height:1.65;margin-top:.25rem}
  .tk-hero--compact .tk-crumbs{margin-bottom:.3rem}
  .tk-hero--compact .tk-hero-chips{gap:.3rem;margin-top:.55rem}
  .tk-hero--compact .tk-hero-chips li{font-size:.7rem;padding:.25rem .5rem}
  .tk-hero-media{width:85%}
  .tk-hub .tk-hero-media{width:290px;max-width:75%;opacity:.75}
  .tk-hub .tk-search input{height:50px;font-size:.9rem;padding-left:2.6rem}
  .tk-hub .tk-search>i{left:1rem}
  .tk-hub .tk-search-submit{top:5px;right:5px;width:40px;height:40px}
}
@media(prefers-reduced-motion:reduce){.tk-hero-media{animation:none;transform:none}}
@media print{.tk-hero-media,.tk-hero-shade{display:none}.tk-body .tk-hero--compact{padding:1rem 0;text-align:left;background:#fff!important}.tk-hero--compact .tk-hero-copy{max-width:100%}.tk-hero--compact .tk-hero-heading-note{color:#334155}.tk-hero--compact .tk-crumbs ol{flex-wrap:wrap;overflow:visible}}

/* Library workspace: one summary strip and one connected discovery panel. */
.tk-hub .tk-library-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:var(--bg-c);border:1px solid var(--bd);border-radius:14px;overflow:hidden;box-shadow:var(--sh);margin-bottom:1rem}
.tk-hub .tk-library-summary .tk-stat{min-height:78px;background:transparent;border:0;border-radius:0;box-shadow:none;padding:.8rem 1rem;column-gap:.7rem}
.tk-hub .tk-library-summary .tk-stat+.tk-stat{border-left:1px solid var(--bd)}
.tk-hub .tk-library-summary .tk-stat-ic{width:36px;height:36px;background:var(--tk-tint);color:var(--tk-tint-ink);border-radius:10px;font-size:.95rem}
.tk-hub .tk-library-summary .tk-stat:first-child .tk-stat-ic{background:#1D4ED8;color:#fff}
.tk-hub .tk-library-summary .tk-stat-val{font-size:1.3rem;line-height:1.3;margin-bottom:.15rem}
.tk-hub .tk-library-summary .tk-stat:first-child .tk-stat-val{color:var(--tk-tint-ink)}
.tk-hub .tk-library-summary .tk-stat-date{font-size:1rem;white-space:nowrap}
.tk-hub .tk-library-summary .tk-stat-lbl{font-size:.8rem;line-height:1.5}
.tk-hub .tk-subject-panel{border-radius:14px;box-shadow:var(--sh)}
.tk-hub .tk-subject-panel .tk-card-hd{padding:.6rem .8rem;min-height:46px;gap:.6rem}
.tk-hub .tk-subject-panel .tk-card-hd h2{font-size:.9rem}
.tk-hub .tk-subject-panel .tk-card-bd{padding:.45rem}
.tk-hub .tk-subjects{gap:.25rem}
.tk-hub .tk-subj{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:.55rem;min-height:48px;padding:.5rem .45rem}
.tk-hub .tk-subj-ic{width:30px;height:30px;border-radius:8px;font-size:.82rem}
.tk-hub .tk-subj-tx b{font-size:.85rem;line-height:1.5}
.tk-hub .tk-subj-tx .tk-subj-short{display:none}
.tk-subj-count{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 .4rem;border-radius:7px;background:var(--bg-m);color:var(--t2);font:600 .75rem var(--f-b);font-variant-numeric:tabular-nums}
.tk-subj[aria-current="true"] .tk-subj-count,.tk-subj[aria-current="page"] .tk-subj-count{background:var(--tk-action);color:#fff}
.tk-library-controls{background:var(--bg-c);border:1px solid var(--bd);border-radius:14px;box-shadow:var(--sh);margin-bottom:1rem;overflow:hidden}
.tk-hub #tkTopicsCard .tk-library-controls>.tk-card-hd{padding:.75rem 1rem .2rem;min-height:44px;border:0;gap:.65rem}
.tk-hub #tkTopicsCard .tk-library-controls>.tk-card-hd h2{font-size:1.08rem;line-height:1.6}
.tk-library-controls .tk-count{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .6rem;border-radius:7px;background:var(--tk-tint);color:var(--tk-tint-ink);font-size:.8rem;white-space:nowrap}
.tk-library-controls .tk-count b{color:inherit;font-size:.95rem}
.tk-library-controls .tk-catalog-intro{padding:0 1rem .5rem;margin:0;min-height:32px;align-items:center}
.tk-library-controls .tk-catalog-intro p{font-size:.84rem;line-height:1.6;color:var(--t3)}
.tk-library-controls .tk-clear{font-size:.8rem;min-height:32px;padding:0;gap:.4rem;text-decoration:none}
.tk-library-controls .tk-clear:hover{text-decoration:underline}
.tk-library-controls .tk-toolbar{display:flex;flex-wrap:wrap;gap:.65rem 1rem;margin:0;padding:.65rem 1rem .85rem;border:0;border-top:1px solid var(--bd);border-radius:0;background:transparent;align-items:center}
.tk-grade-filter{display:flex;align-items:center;gap:.55rem;min-width:0;flex:1}
.tk-filter-label{font:500 .78rem var(--f-b);color:var(--t3);white-space:nowrap}
.tk-library-controls .tk-chips{display:flex;flex-wrap:nowrap;gap:2px;min-width:0;max-width:100%;flex:0 1 auto;padding:3px;background:var(--bg-m);border-radius:10px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.tk-library-controls .tk-chip{flex:none;min-height:36px;padding:.4rem .65rem;border-radius:7px;white-space:nowrap;font-size:.8rem;border:0;background:transparent;color:var(--t2)}
.tk-library-controls .tk-chip[aria-pressed="true"]{background:var(--tk-action);color:#fff;box-shadow:0 2px 5px rgba(29,78,216,.14)}
.tk-library-controls .tk-chip:hover:not([aria-pressed="true"]){background:var(--bg-c);color:var(--tk-tint-ink)}
.tk-sort-field{display:flex;flex:none;align-items:center;gap:.55rem;min-width:0}
.tk-sort-field .tk-select{min-height:40px;width:158px;font-size:.82rem;border-radius:8px}
.tk-library-controls .tk-recent{display:flex;flex-wrap:nowrap;align-items:center;gap:.8rem;margin:0;padding:.5rem 1rem;border-top:1px solid var(--bd);background:color-mix(in srgb,var(--bg-m) 55%,var(--bg-c));min-width:0}
.tk-recent .tk-recent-label{display:inline-flex;align-items:center;gap:.45rem;flex:none;color:var(--t3);font-size:.77rem;margin:0}
.tk-recent-label>i{color:var(--tk-tint-ink);font-size:.78rem}
.tk-recent-links{display:flex;align-items:center;flex:1;min-width:0;gap:.4rem;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 0;scrollbar-width:thin}
.tk-library-controls .tk-recent a{display:inline-flex;align-items:center;gap:.6rem;min-height:34px;max-width:235px;padding:.3rem .6rem;border-radius:7px;font-size:.78rem;white-space:nowrap;background:var(--bg-c);border-color:var(--bd);color:var(--t2);flex:none}
.tk-recent a>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.tk-library-controls .tk-recent a i{color:var(--tk-tint-ink);font-size:.65rem;flex:none}
.tk-library-controls .tk-recent a:hover{background:var(--tk-tint);border-color:var(--c-300);color:var(--t1)}
@media(min-width:801px) and (max-width:1000px){.tk-grade-filter>.tk-filter-label{display:none}.tk-sort-field .tk-select{width:140px}.tk-library-controls .tk-chip{padding:.4rem .5rem}}
@media(max-width:800px){
  .tk-hub .tk-subject-panel{margin-bottom:0}
  .tk-hub .tk-subject-panel .tk-card-hd{padding:.5rem .7rem;min-height:40px}
  .tk-hub .tk-subject-panel .tk-card-ic{width:26px;height:26px;font-size:.8rem}
  .tk-hub .tk-subject-panel .tk-card-bd{padding:.4rem .5rem .5rem}
  .tk-hub .tk-subjects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;padding:0;overflow:visible}
  .tk-hub .tk-subj{display:flex;align-items:center;justify-content:center;min-height:44px;padding:.4rem .3rem;gap:.4rem;border-color:var(--bd)}
  .tk-hub .tk-subj-ic{width:24px;height:24px;font-size:.72rem;border-radius:6px}
  .tk-hub .tk-subj-tx{flex:0 1 auto}
  .tk-hub .tk-subj-tx .tk-subj-full{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .tk-hub .tk-subj-tx .tk-subj-short{display:block;font-size:.8rem;white-space:nowrap}
  .tk-subj-count{min-width:20px;height:20px;padding:0 .25rem;font-size:.7rem}
  .tk-library-controls .tk-chip{min-height:44px}
}
@media(max-width:680px){
  .tk-hub .tk-library-summary{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:12px}
  .tk-hub .tk-library-summary .tk-stat{min-height:68px;padding:.65rem .75rem;column-gap:.55rem}
  .tk-hub .tk-library-summary .tk-stat:nth-child(odd){border-left:0}
  .tk-hub .tk-library-summary .tk-stat:nth-child(n+3){border-top:1px solid var(--bd)}
  .tk-hub .tk-library-summary .tk-stat-ic{width:30px;height:30px;font-size:.8rem;border-radius:8px}
  .tk-hub .tk-library-summary .tk-stat-val{font-size:1.2rem}
  .tk-hub .tk-library-summary .tk-stat-date{font-size:.9rem}
  .tk-hub .tk-library-summary .tk-stat-lbl{font-size:.75rem}
}
@media(max-width:600px){
  .tk-hub #tkTopicsCard .tk-library-controls>.tk-card-hd{padding:.65rem .8rem .15rem}
  .tk-hub #tkTopicsCard .tk-library-controls>.tk-card-hd h2{font-size:1rem;min-width:100px}
  .tk-library-controls .tk-catalog-intro{padding:0 .8rem .45rem;gap:.5rem}
  .tk-library-controls .tk-catalog-intro p{font-size:.78rem}
  .tk-library-controls .tk-toolbar{padding:.55rem .65rem .7rem;gap:.55rem}
  .tk-grade-filter{flex-basis:100%}
  .tk-grade-filter>.tk-filter-label{display:none}
  .tk-library-controls .tk-chips{flex:1}
  .tk-library-controls .tk-chip{font-size:.77rem;padding:.4rem .6rem}
  .tk-sort-field{width:100%;justify-content:space-between;padding:0 .15rem}
  .tk-sort-field .tk-select{width:calc(100% - 62px);min-height:40px}
  .tk-library-controls .tk-recent{padding:.45rem .75rem;gap:.6rem}
  .tk-recent .tk-recent-label{font-size:.73rem}
  .tk-library-controls .tk-recent a{max-width:190px;font-size:.75rem;min-height:36px}
}
@media(max-width:360px){.tk-hub .tk-subj{gap:.25rem}.tk-hub .tk-subj-ic{display:none}}
@media(pointer:coarse){.tk-library-controls .tk-chip,.tk-sort-field .tk-select,.tk-library-controls .tk-recent a{min-height:44px}}
@media print{.tk-library-controls{display:none}.tk-hub .tk-library-summary{break-inside:avoid}}

/* ★ 5 พ.ย. 2569 (ครูหนึ่ง: "ขยับขึ้นไปให้ชิด และปรับปรุงรูปลูกโลกให้สวย") ── ฉบับก่อนแก้ _local/backup/teachkit-hero-20261105/
   1) ขอบล่างแถบหัวเป็นคลื่นจากกฎกลาง css/tb1-navbar.css (เติมขอบล่างโปร่งใสสูงเท่าคลื่น clamp(32px, 4.5vw, 64px))
      ที่ว่างใต้เนื้อหาเดิม 2.65rem จึงเกิน · ลดลง และให้การ์ดใต้แถบขึ้นไปทับคลื่น เหลือห่างจากเนื้อหาในแถบ ~25 px
      คอนทราสต์สูงไม่มีคลื่น จึงคงระยะเดิม */
@media screen {
  html:not(.tb1-contrast-high) .tk-body .tk-hero--compact { padding-bottom: .7rem; }
  html:not(.tb1-contrast-high) .tk-hub .tk-main,
  html:not(.tb1-contrast-high) .tk-lesson .tk-main { margin-top: calc(16px - clamp(32px, 4.5vw, 64px)); }
}
/* 2) ภาพลูกโลก กล้องจุลทรรศน์ บีกเกอร์ ในหน้ารวม: เดิมอยู่ใต้แผ่นไล่สีน้ำเงิน (ซีด) และย่อ 70% ชิดมุมบน
      จอกว้าง: ขนาดคงที่ 220×110 ชิดขวาของคอลัมน์ข้อความ (ขอบขวาคอลัมน์ ≈ กึ่งกลางแถบ เพราะ .tk-hero-in กว้างสุด 1280 px)
      ข้อความกันที่ไว้ให้ภาพ ไม่วิ่งลอดใต้ภาพ · อยู่เหนือแผ่นไล่สี มีแสงฟ้านวลด้านหลัง เงาใต้ฐาน และลอยขึ้นลงช้า ๆ
      จอแคบภาพอยู่หลังข้อความ คงแบบจางเดิมเพื่อให้อ่านข้อความได้ */
@media screen and (min-width: 1180px) {
  .tk-hub .tk-hero-media {
    top: auto;
    bottom: 4px;
    width: 220px;
    max-width: none;
    height: 110px;
    z-index: 2;
    overflow: visible;
    opacity: 1;
  }
  .tk-hub .tk-hero--compact .tk-hero-copy { max-width: calc(100% - 240px); }
  .tk-hub .tk-hero-media::before {
    content: '';
    position: absolute;
    inset: 4% 2% 0 6%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(219,234,254,.5), rgba(147,197,253,.24) 55%, rgba(147,197,253,0) 100%);
    pointer-events: none;
  }
  .tk-hub .tk-hero-media::after {
    content: '';
    position: absolute;
    left: 14%;
    right: 10%;
    bottom: 3%;
    height: 14%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(2,6,23,.42), rgba(2,6,23,0));
    pointer-events: none;
  }
  .tk-hub .tk-hero-media img {
    width: 100%;
    height: 100%;
    transform: none;
    object-position: center bottom;
    filter: drop-shadow(0 10px 16px rgba(2,6,23,.38)) saturate(1.15) contrast(1.04) brightness(1.06);
  }
}
@media screen and (min-width: 1180px) and (prefers-reduced-motion: no-preference) {
  .tk-hub .tk-hero-media img { animation: tk-globe-float 7s ease-in-out .6s infinite; }
  .tk-hub .tk-hero-media::before { animation: tk-globe-glow 7s ease-in-out .6s infinite; }
}
@keyframes tk-globe-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes tk-globe-glow { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
