/* Physics Lab catalog 2026 — concise scientific gallery, same identifiers and cards. */
:root{
  --ink:#172c3e;--muted:#768796;--line:#dee7ed;--line-dark:#c8d7e0;
  --paper:#fff;--bg:#eff3f6;--accent:#0e7da7;
}
body{
  background:#eff3f6;color:#182e40;
  background-image:linear-gradient(180deg,#f4f7f9 0,#eff3f6 280px);
}
.topbar{background:rgba(15,35,51,.98);border-bottom:1px solid #1b3a4b;height:62px}
.brand{color:#f1f7fa;font-size:12px}
.brand img{width:32px;height:32px;border-radius:7px;border:1px solid rgba(255,255,255,.2)}
.brand i{color:#7795a9}.back{color:#c5d7e3;font-size:12px}
.back:hover{color:white}
.page{padding:27px 0 56px;width:min(1230px,calc(100% - 50px))}
.page-heading{
  position:relative;overflow:hidden;
  align-items:center;gap:24px;margin-bottom:17px;padding:32px 36px;
  background:linear-gradient(110deg,#112c40,#20475c);
  border:1px solid #234a60;border-radius:18px;min-height:120px;
  box-shadow:0 9px 22px rgba(24,50,69,.1);
}
.page-heading:before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(199,232,245,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(199,232,245,.045) 1px,transparent 1px);
  background-size:33px 33px;mask-image:linear-gradient(90deg,transparent 40%,#000 100%);
}
.page-heading h1{position:relative;font-size:32px;letter-spacing:-.035em;font-weight:800;color:white}
.page-heading .total{
  position:relative;color:#c5e1ec;background:rgba(255,255,255,.085);
  border:1px solid rgba(212,242,250,.17);border-radius:8px;
  padding:7px 12px;font-size:11px;font-weight:750;
}
.controls{
  position:sticky;top:0;z-index:15;
  display:flex;align-items:center;gap:15px;padding:10px 11px;
  border:1px solid #d9e4eb;border-radius:14px;background:rgba(253,254,255,.95);
  box-shadow:0 4px 20px rgba(26,58,80,.055);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  margin:0 0 24px;
}
.tablist{gap:3px;min-width:0;background:#edf3f6;border:1px solid #e0e9ee;border-radius:10px;padding:4px;flex-wrap:nowrap}
.tab{min-height:37px;padding:8px 15px 8px;font-size:12px;font-weight:700;border-radius:8px;color:#647989;gap:6px}
.tab:after,.tab.active:after{content:none;display:none}
.tab:hover{color:#244355;background:rgba(255,255,255,.7)}
.tab.active{background:#fff;box-shadow:0 2px 7px rgba(20,56,75,.09);color:#075e82}
.tab-count{color:#98a8b1;font-size:10px}
.tab.active .tab-count{color:#0c86af}
.search-wrap{width:236px;min-width:185px;margin:0}
.search-wrap input{
  height:41px;background:#f8fafb;border:1px solid #dfE8ed;
  border-radius:9px;font-size:12px;color:#234154;
}
.search-wrap input:focus{background:#fff;border-color:#90c0d6;box-shadow:0 0 0 3px rgba(17,122,161,.11)}
.search-wrap svg{top:12px}
.search-wrap button{top:7px}
.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px 16px}
.demo{
  border:1px solid #dee8ee;border-radius:14px;overflow:hidden;background:#fff;
  box-shadow:0 2px 9px rgba(22,58,81,.032);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.demo:hover{transform:translateY(-3px);border-color:#99c7da;box-shadow:0 10px 25px rgba(25,69,94,.1)}
.demo:focus-visible{outline:2px solid #158bb9;outline-offset:3px}
.thumb{
  position:relative;aspect-ratio:16/9;padding:9px;
  background:#eaf1f5;border-bottom:1px solid #e0e9ee;
}
.thumb svg{display:block;width:100%;height:100%;border-radius:8px;overflow:hidden;background:#f4f8fa}
.demo:hover .thumb{background:#e0eef4}
.card-body{min-height:59px;padding:13px 13px 12px;align-items:center;gap:10px}
.demo-title{font-size:13px;line-height:1.42;font-weight:750;color:#1c3546}
.lesson{
  font-size:10px;line-height:1.4;color:#8a9ba5;font-weight:570;
  border-radius:5px;white-space:nowrap;flex:none;
}
.audio-icon{
  display:inline-flex;align-items:center;justify-content:center;margin-left:7px;
  color:#1688af;font-size:14px;font-weight:700;
}
.wave-subgroup{margin:0 0 30px}
.wave-subtitle{
  display:flex;align-items:center;gap:10px;
  margin:0 0 12px;padding:1px 0 1px 1px;
  color:#526d7f;font-size:12px;font-weight:760;
}
.wave-subtitle::before{content:"";height:13px;width:3px;border-radius:2px;background:#3a91b2}
.empty{background:#fff;border:1px solid var(--line);border-radius:13px;padding:58px 0;color:#748998}
.empty button{border-radius:8px;min-height:35px}
.foot{margin-top:45px;padding-top:18px;color:#8da0ab}
@media(max-width:1200px){
 .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .controls{gap:8px}
 .tab{padding:8px 11px}
}
@media(max-width:900px){
 .controls{display:flex;flex-direction:column-reverse;align-items:stretch;gap:9px;top:0;padding:11px}
 .search-wrap{width:100%;min-width:0}
 .tablist{overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap;max-width:100%;gap:3px}
 .tablist::-webkit-scrollbar{display:none}
 .tab{flex:none}
}
@media(max-width:670px){
 .page{width:calc(100% - 28px);padding:18px 0 37px}
 .topbar-inner{width:calc(100% - 28px)}
 .topbar{height:55px}
 .page-heading{padding:23px 20px;border-radius:14px;min-height:92px;margin-bottom:12px}
 .page-heading h1{font-size:26px}
 .page-heading .total{font-size:10px;padding:6px 8px}
 .controls{margin-bottom:18px;position:relative;padding:8px;top:auto}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .thumb{padding:6px}
 .card-body{display:block;min-height:65px;padding:10px}
 .demo-title{font-size:12px}
 .lesson{display:block;margin-top:5px;font-size:10px}
 .wave-subgroup{margin-bottom:22px}
 .tab{min-height:35px;padding:7px 10px}
 .search-wrap input{height:39px}
 .search-wrap svg{top:11px}
}
@media(max-width:355px){.grid{grid-template-columns:1fr}.card-body{display:flex}.lesson{margin:0}}
@media(prefers-reduced-motion:reduce){.demo{transition:none}.demo:hover{transform:none}}


/* 2026-10-26 · Catalog: designed for reading, not miniature labels. */
:root{--ink:#182e40;--muted:#526879;--line:#d3e0e8;--line-dark:#bed1dc;--accent:#08749a}
body{font-size:16px;line-height:1.6;color:#1b3344;background:#f2f6f8}
.topbar{height:65px}
.topbar-inner,.page{width:min(1260px,calc(100% - 48px))}
.brand{font-size:14.5px;letter-spacing:.003em}
.brand img{width:36px;height:36px}
.brand i{color:#b4c8d4}
.back{font-size:13.5px;color:#e1eef4}
.page{padding:27px 0 54px}
.page-heading{
  border-radius:15px;min-height:130px;padding:28px 32px;margin-bottom:19px;
  background:linear-gradient(114deg,#142f43,#234d61);border-color:#29546b
}
.page-heading:before{opacity:.46}
.page-heading h1{font-size:clamp(29px,3.1vw,37px);line-height:1.3;letter-spacing:-.03em}
.page-heading .total{font-size:13px;line-height:1.4;font-weight:720;color:#ebf6fb;padding:8px 13px}
.controls{padding:11px 12px;gap:12px;margin-bottom:23px;box-shadow:0 3px 16px rgba(32,70,93,.05)}
.tablist{gap:5px;padding:5px}
.tab{font-size:14px;line-height:1.4;font-weight:720;padding:10px 14px;min-height:44px;color:#436176}
.tab.active{color:#075f84}
.tab-count{font-size:12px;color:#5d7687;font-weight:750}
.tab.active .tab-count{color:#066990}
.search-wrap{width:255px;min-width:210px}
.search-wrap input{height:46px;font-size:14px;color:#233f52;background:white;border-color:#c9d9e2}
.search-wrap input::placeholder{color:#526c7d}
.search-wrap svg{top:15px;color:#506e80}
.search-wrap button{top:10px;min-width:28px;min-height:28px;color:#42677b}
.result-label{font-size:13px;color:#425d6e}
.grid{gap:19px 17px}
.demo{border-radius:13px;border-color:#d6e2e9;box-shadow:0 2px 7px rgba(25,61,83,.035)}
.thumb{padding:10px;background:#edf4f8}
.card-body{min-height:76px;padding:14px 15px;gap:11px}
.demo-title{font-size:15px;line-height:1.5;color:#1c3749;font-weight:770;overflow-wrap:anywhere}
.lesson{font-size:12px;color:#536c7d;line-height:1.45;font-weight:630}
.audio-icon{font-size:15px;color:#096f96}
.wave-subgroup{margin-bottom:34px}
.wave-subtitle{font-size:15px;color:#31596e;margin-bottom:15px;font-weight:790}
.wave-subtitle::before{height:18px;width:3px}
.empty{font-size:14px;color:#426073}
.empty button{font-size:14px;min-height:42px}
.foot{font-size:12.5px;color:#587081}
@media(max-width:1200px){
 .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .tab{padding:10px 12px}
}
@media(max-width:920px){
 .controls{flex-direction:column-reverse;align-items:stretch;position:static}
 .tablist{overflow-x:auto;max-width:100%;scrollbar-width:thin}
 .tab{white-space:nowrap;flex:none}
 .search-wrap{width:100%;min-width:0}
 .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
 .topbar{height:61px}
 .topbar-inner,.page{width:calc(100% - 28px)}
 .page{padding:17px 0 35px}
 .brand{font-size:13px}
 .back{font-size:12.5px}
 .page-heading{min-height:105px;padding:22px 19px;margin-bottom:14px}
 .page-heading h1{font-size:27px}
 .page-heading .total{font-size:12px;padding:7px 9px;white-space:normal;text-align:right}
 .controls{padding:9px;margin-bottom:18px}
 .tab{min-height:44px;font-size:13.5px;padding:9px 12px}
 .search-wrap input{height:44px;font-size:16px}
 .search-wrap svg{top:14px}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .thumb{padding:7px}
 .card-body{padding:12px;min-height:83px}
 .demo-title{font-size:14px;line-height:1.5}
 .lesson{display:block;font-size:12px;margin-top:6px;white-space:normal}
 .wave-subtitle{font-size:14.5px}
 .wave-subgroup{margin-bottom:24px}
 .foot{font-size:12.5px}
}
@media(max-width:365px){
 .grid{grid-template-columns:1fr}
 .card-body{display:flex;min-height:70px}
 .lesson{margin:0}
}

/* Catalog learning path and per-section counts — compact, no extra cards. */
.heading-copy{min-width:0}
.page-heading .heading-copy h1{margin:0}
.page-heading .catalog-lead{
  margin:6px 0 0;color:#d6e7ef;font-size:14px;
  font-weight:490;line-height:1.65;letter-spacing:0;
}
.wave-subtitle{justify-content:flex-start}
.wave-group-count{
  display:inline-flex;align-items:center;
  color:#567184;background:#e9f0f4;border-radius:6px;
  font-size:12px;line-height:1.4;font-weight:680;padding:3px 8px;
  letter-spacing:0;
}
@media(max-width:700px){
  .page-heading .catalog-lead{font-size:13px;line-height:1.6;margin-top:5px}
  .wave-group-count{font-size:11.5px;padding:3px 7px}
}
