.home-faq-list details[open] summary::after { content: "\2212"; }
@media (min-width: 860px) { .home-faq-list { grid-template-columns: repeat(2, 1fr); } }
.cat-card.is-active { background: var(--gold); border-color: var(--gold); }
.cat-card-icon svg { width: 30px; height: 30px; }
@media (max-width: 600px) { .cat-card { padding: 12px 8px; } }
.side-icon svg { width: 19px; height: 19px; }
.shop-main .woocommerce-ordering { margin: 0; }
@media (min-width: 1100px) { .edu-free-cta { grid-column: 1; grid-row: 2; justify-self: start; margin-top: 10px; } }
.eduminate-shop-container { padding-top: 26px; }
.cat-card--orange { background: rgba(249, 115, 22, 0.09); border-color: rgba(249, 115, 22, 0.30); }
.cat-card--red    { background: rgba(239, 68, 68, 0.09);  border-color: rgba(239, 68, 68, 0.30); }
.cat-card--blue   { background: rgba(47, 155, 255, 0.10); border-color: rgba(47, 155, 255, 0.32); }
.cat-card--green  { background: rgba(22, 163, 74, 0.09);  border-color: rgba(22, 163, 74, 0.30); }
.cat-card--teal   { background: rgba(20, 184, 166, 0.10); border-color: rgba(20, 184, 166, 0.32); }
.cat-card--indigo { background: rgba(79, 110, 247, 0.10); border-color: rgba(79, 110, 247, 0.30); }
.cat-card--purple { background: rgba(139, 92, 246, 0.10); border-color: rgba(139, 92, 246, 0.30); }
.cat-card-row { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
.hero-browse-cta { box-shadow: 0 8px 26px rgba(255, 198, 51, 0.45), 0 2px 6px rgba(10, 37, 77, 0.12); }
@media (min-width: 1100px) { .cat-card-row { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 1099px) { .cat-card-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.benefits { margin-top: 31px; }
@media (max-width: 760px) {
  .benefits { margin-top: 22px; }
}
.cat-card-icon { width: 46px !important; height: 46px !important; border-radius: 13px; }
.cat-card-icon svg { width: 26px !important; height: 26px !important; }
.cat-card.is-active .cat-card-icon { background: rgba(9, 37, 77, 0.13); color: var(--navy); }

.cat-card-icon.tone-orange  { color: var(--pal-orange-500c); background: rgba(249,115,22,.16); }
.cat-card-icon.tone-red     { color: var(--pal-red-400b); background: rgba(239,68,68,.16); }
.cat-card-icon.tone-blue    { color: var(--pal-sky-400b); background: rgba(47,155,255,.17); }
.cat-card-icon.tone-green   { color: var(--pal-green-600b); background: rgba(22,163,74,.16); }
.cat-card-icon.tone-teal    { color: var(--pal-teal-600c); background: rgba(20,184,166,.17); }
.cat-card-icon.tone-indigo  { color: var(--pal-blue-400); background: rgba(79,110,247,.17); }
.cat-card-icon.tone-rose    { color: var(--pal-red-500); background: rgba(225,29,72,.15); }
.cat-card-icon.tone-cyan    { color: var(--pal-cyan-600); background: rgba(6,182,212,.17); }
.cat-card-icon.tone-violet  { color: var(--pal-violet-400); background: rgba(124,58,237,.18); }
.cat-card-icon.tone-fuchsia { color: var(--pal-purple-400); background: rgba(217,70,239,.16); }
.cat-card-icon.tone-amber   { color: var(--pal-orange-500d); background: rgba(245,158,11,.18); }
.cat-card-icon.tone-purple  { color: var(--pal-indigo-300); background: rgba(139,92,246,.17); }
.cat-card-icon.tone-slate   { color: var(--pal-slate-500); background: rgba(100,116,139,.17); }

.cat-card--orange  { background: rgba(249,115,22,.09);  border-color: rgba(249,115,22,.30); }
.cat-card--red     { background: rgba(239,68,68,.09);   border-color: rgba(239,68,68,.30); }
.cat-card--blue    { background: rgba(47,155,255,.10);  border-color: rgba(47,155,255,.32); }
.cat-card--green   { background: rgba(22,163,74,.09);   border-color: rgba(22,163,74,.30); }
.cat-card--teal    { background: rgba(20,184,166,.10);  border-color: rgba(20,184,166,.32); }
.cat-card--indigo  { background: rgba(79,110,247,.10);  border-color: rgba(79,110,247,.30); }
.cat-card--rose    { background: rgba(225,29,72,.09);   border-color: rgba(225,29,72,.30); }
.cat-card--cyan    { background: rgba(6,182,212,.10);   border-color: rgba(6,182,212,.32); }
.cat-card--violet  { background: rgba(124,58,237,.10);  border-color: rgba(124,58,237,.30); }
.cat-card--fuchsia { background: rgba(217,70,239,.09);  border-color: rgba(217,70,239,.30); }
.cat-card--amber   { background: rgba(245,158,11,.12);  border-color: rgba(245,158,11,.32); }
.cat-card--purple  { background: rgba(139,92,246,.10);  border-color: rgba(139,92,246,.30); }
[data-theme="dark"] .cat-card-icon svg [fill="#fff"] { fill: var(--pal-sky-900b); } .side-icon.tone-cyan { color: var(--pal-cyan-600); }
.side-icon.tone-violet { color: var(--pal-violet-400); }
.side-icon.tone-amber { color: var(--pal-orange-500d); }
.side-icon.tone-slate { color: var(--pal-slate-500); }

/* Season categories: one new hue each, built from the palette. */
.cat-card-icon.tone-berry { color: var(--pal-pink-400); background: rgba(207,83,132,.17); }
.cat-card-icon.tone-copper { color: var(--pal-orange-500); background: rgba(191,118,62,.17); }
.cat-card-icon.tone-forest { color: var(--pal-green-600); background: rgba(66,136,90,.17); }
.cat-card-icon.tone-tangerine { color: var(--pal-orange-400); background: rgba(255,159,26,.17); }
.cat-card-icon.tone-steel { color: var(--pal-sky-500); background: rgba(52,135,203,.17); }
.cat-card--berry { background: rgba(207,83,132,.09); border-color: rgba(207,83,132,.30); }
.cat-card--copper { background: rgba(191,118,62,.09); border-color: rgba(191,118,62,.30); }
.cat-card--forest { background: rgba(66,136,90,.09); border-color: rgba(66,136,90,.30); }
.cat-card--tangerine { background: rgba(255,159,26,.09); border-color: rgba(255,159,26,.30); }
.cat-card--steel { background: rgba(52,135,203,.09); border-color: rgba(52,135,203,.30); }
.side-icon.tone-berry { color: var(--pal-pink-400); } .side-icon.tone-copper { color: var(--pal-orange-500); } .side-icon.tone-forest { color: var(--pal-green-600); } .side-icon.tone-tangerine { color: var(--pal-orange-400); } .side-icon.tone-steel { color: var(--pal-sky-500); }
.shop-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 36px 0 12px; }
.shop-more-count { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.shop-more-button { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; padding: 14px 28px; border-radius: 999px; background: var(--coral); color: var(--pal-white); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .15s ease, opacity .15s ease; }


/* ==========================================================================
   Freebies and Bundles pages (Batch 9). Scoped to .page-freebies / .page-bundles.
   ========================================================================== */
.page-freebies, .page-bundles { --edu-gap: 12px; --edu-cols: 2; }

/* Page head: H1 + lead, optional art on the right (freebies, desktop only) */
.page-freebies .edu-page-head, .page-bundles .edu-page-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: center; padding-block: var(--s-6) var(--s-4); }
.page-freebies .edu-page-head h1, .page-bundles .edu-page-head h1 { margin: 0; font-size: var(--fs-h1); line-height: var(--lh-h1); color: var(--text); }
.page-freebies .edu-lead, .page-bundles .edu-lead { margin: var(--s-3) 0 0; max-width: 62ch; font-size: var(--fs-base); line-height: var(--lh-body); color: var(--text-body); }
.page-freebies .edu-page-head-art { display: none; width: 320px; max-width: 100%; height: auto; border-radius: var(--r-lg); }
@media (min-width: 1100px) {
  .page-freebies .edu-page-head.has-art { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-7); }
  .page-freebies .edu-page-head-art { display: block; justify-self: end; }
}

/* Sections */
.page-freebies .edu-section, .page-bundles .edu-section { padding-block: var(--s-5); }
.page-freebies .edu-section h2, .page-bundles .edu-section h2 { margin: 0 0 var(--s-4); font-size: var(--fs-h2); line-height: var(--lh-h2); color: var(--text); }
.page-freebies .edu-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); }
.page-freebies .edu-section-head h2 { margin: 0; }
.page-freebies .edu-section-head .text-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 700; color: var(--link); }

/* Card grid: 2 columns phone, 3 tablet, 5 (freebies, 6 with 6+ packs) or 4 (bundles) desktop.
   Flex so a short row stays centred (freebies) and no empty slots show. */
.page-freebies .edu-grid, .page-bundles .edu-grid { display: flex; flex-wrap: wrap; gap: var(--edu-gap); margin-bottom: 0; }
.page-freebies .edu-grid { justify-content: center; }
.page-bundles .edu-grid { justify-content: flex-start; }
.page-freebies .edu-grid > .product-card, .page-bundles .edu-grid > .product-card {
  flex: 0 0 calc((100% - (var(--edu-cols) - 1) * var(--edu-gap)) / var(--edu-cols));
  min-width: 0;
}
.page-freebies .edu-grid > .edu-empty, .page-bundles .edu-grid > .edu-empty { flex: 1 1 100%; }
@media (min-width: 768px) {
  .page-freebies, .page-bundles { --edu-gap: 18px; --edu-cols: 3; }
}
@media (min-width: 1100px) {
  .page-freebies { --edu-gap: 20px; --edu-cols: 5; }
  .page-bundles { --edu-gap: 22px; --edu-cols: 4; }
  .page-freebies .edu-grid--6 { --edu-cols: 6; }
}

/* Empty state */
.page-freebies .edu-empty, .page-bundles .edu-empty { padding: var(--s-7) var(--s-5); text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r); }
.page-freebies .edu-empty p, .page-bundles .edu-empty p { max-width: 48ch; margin: 0 auto var(--s-4); color: var(--text-body); }
.page-bundles .edu-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }

/* Filter + sort chips (plain links) */
.page-bundles .edu-controls { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-5); }
.page-bundles .edu-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.page-bundles .edu-sort-label { font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); margin-right: var(--s-1); }
.page-bundles .edu-chip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 var(--s-4); border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; transition: background var(--duration), border-color var(--duration); }
.page-bundles .edu-chip:hover { background: var(--surface-2); border-color: var(--action); }
.page-bundles .edu-chip[aria-current] { background: var(--action); border-color: var(--action); color: var(--on-action); }
.page-bundles .edu-chip-count { font-weight: 600; opacity: .8; }
@media (min-width: 900px) {
  .page-bundles .edu-controls { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Numbered steps */
.page-freebies .edu-steps, .page-bundles .edu-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin: 0; padding: 0; list-style: none; counter-reset: edu-step; }
.page-freebies .edu-steps li, .page-bundles .edu-steps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: var(--s-4) var(--s-4) var(--s-4) 68px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); counter-increment: edu-step; min-height: 72px; }
.page-freebies .edu-steps li::before, .page-bundles .edu-steps li::before { content: counter(edu-step); position: absolute; left: var(--s-4); top: var(--s-4); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--action); color: var(--on-action); font-weight: 800; font-size: var(--fs-base); }
.page-freebies .edu-step-title, .page-bundles .edu-step-title { font-size: var(--fs-lg); font-weight: 800; line-height: var(--lh-h3); color: var(--text); }
.page-freebies .edu-step-text, .page-bundles .edu-step-text { font-size: var(--fs-base); line-height: var(--lh-body); color: var(--text-body); }
.page-freebies .edu-step-text a, .page-bundles .edu-step-text a, .page-freebies .edu-prose a { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 768px) {
  .page-freebies .edu-steps, .page-bundles .edu-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
  .page-freebies .edu-steps li, .page-bundles .edu-steps li { padding: 72px var(--s-4) var(--s-4); }
}

/* Prose block (freebies) */
.page-freebies .edu-prose { max-width: 72ch; margin-inline: auto; }
.page-freebies .edu-prose p { margin: 0 0 var(--s-4); font-size: var(--fs-base); line-height: var(--lh-body); color: var(--text-body); }
.page-freebies .edu-prose-list { margin: 0 0 var(--s-4); padding-left: 1.2em; color: var(--text-body); line-height: var(--lh-body); }
.page-freebies .edu-prose-list li { padding-block: 4px; }
.page-freebies .edu-prose-grade { color: var(--text-muted); font-size: var(--fs-sm); }

/* ==========================================================================
   Shop, category archives and search (Batch 7). Scoped to .edu-shop.
   One filter form: sticky sidebar from 1000px, bottom sheet below.
   ========================================================================== */
.edu-shop { padding-top: var(--s-5); }
.edu-shop-frame { display: block; }
.edu-shop-main { min-width: 0; }

/* Buttons and chips */
.edu-shop .edu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 var(--s-5); border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 700; text-decoration: none; cursor: pointer; }
.edu-shop .edu-btn:hover { border-color: var(--action); }
.edu-shop .edu-btn--primary { background: var(--action); border-color: var(--action); color: var(--on-action); }
.edu-shop .edu-btn--primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--on-action); }
.edu-shop .edu-btn .icon { width: 16px; height: 16px; }
.edu-shop .edu-chip { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: var(--tap); padding: 0 var(--s-4); border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.edu-shop .edu-chip:hover { border-color: var(--action); background: var(--surface-2); }
.edu-shop .edu-chip.is-active { background: var(--action); border-color: var(--action); color: var(--on-action); }
.edu-shop .edu-chip--active { background: var(--surface-2); }
.edu-shop .edu-chip--active span[aria-hidden] { font-size: var(--fs-lg); line-height: 1; }

/* Head */
.edu-shop-head { margin-bottom: var(--s-4); }
.edu-shop-head .shop-title { margin: 0 0 var(--s-2); text-align: left; font-size: var(--fs-h1); line-height: var(--lh-h1); color: var(--text); }
.edu-shop-head .shop-subtitle { margin: 0; max-width: 72ch; text-align: left; font-size: var(--fs-base); line-height: var(--lh-body); color: var(--text-body); }
.edu-also { margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.edu-also a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding-inline: 6px; color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Chip rows: one scrolling line with a fading edge on phones and tablets */
.edu-chip-row { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding: 2px 2px var(--s-2); }
.edu-chip-row::-webkit-scrollbar { display: none; }
.edu-chip-row--cats { margin-bottom: var(--s-2); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); cursor: grab; }
.edu-chip-row--wrap { flex-wrap: wrap; overflow: visible; }
.edu-chip-row--grades { margin-top: var(--s-2); }

/* Toolbar */
.edu-bar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); padding-block: var(--s-2); }
.edu-nomatch { margin: 0 0 var(--s-4); font-size: var(--fs-base); font-weight: 600; color: var(--text); }
.edu-count { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edu-sort { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.edu-shop .edu-sort label { display: block; margin: 0 !important; font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted) !important; }
.edu-sort select { min-height: var(--tap); padding: 0 34px 0 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; background-color: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23889' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; }
.edu-sort select { height: var(--tap); padding: 0 34px 0 14px !important; border-radius: 999px !important; }
.edu-filter-open { height: var(--tap); font-size: var(--fs-input); }
.edu-active { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); }
.edu-grade-note { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.edu-grade-note a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.edu-clear { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--s-2); color: var(--link); font-size: var(--fs-sm); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Grid pieces */
.edu-shop-grid { margin-bottom: var(--s-6); }
.edu-shop-band { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--free-bg); border: 1px solid var(--free-line); }
.edu-shop-band h2 { margin: 0 0 6px; font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--text); }
.edu-shop-band p { margin: 0 0 var(--s-3); max-width: 52ch; font-size: var(--fs-sm); color: var(--text-body); }
.edu-shop-band img { display: none; height: 120px; width: auto; border-radius: var(--r); }
@media (min-width: 700px) { .edu-shop-band img { display: block; } }

/* Load more: secondary (navy), not coral */
.edu-shop .shop-more-button { min-height: 52px; }
.edu-shop .shop-more-back { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--s-2); }

/* Empty, thin and "about" blocks */
.edu-empty, .edu-soon { margin: var(--s-5) 0; padding: var(--s-6) var(--s-5); text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r); }
.edu-empty h2, .edu-soon h2 { margin: 0 0 var(--s-2); font-size: var(--fs-h3); color: var(--text); }
.edu-empty p, .edu-soon p { max-width: 52ch; margin: 0 auto var(--s-3); color: var(--text-body); }
.edu-empty .edu-empty-label { margin: var(--s-4) 0 var(--s-2); font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); }
.edu-empty .edu-chip-row--wrap, .edu-soon .edu-chip-row--wrap { justify-content: center; }
.edu-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-4); }
.edu-featured h2, .edu-related h2, .edu-about h2 { margin: 0 0 var(--s-3); font-size: var(--fs-h2); line-height: var(--lh-h2); color: var(--text); }
.edu-about { max-width: 72ch; margin: var(--s-6) 0; }
.edu-about p { margin: 0 0 var(--s-3); font-size: var(--fs-base); line-height: var(--lh-body); color: var(--text-body); }
.edu-about .edu-about__faq-title { margin: var(--s-6) 0 var(--s-3); font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--text); }
.edu-about .edu-about__q { margin: var(--s-4) 0 var(--s-1); font-size: var(--fs-base); line-height: var(--lh-body); font-weight: 700; color: var(--text); }
.edu-about .edu-about__a { margin: 0 0 var(--s-3); }
.edu-related { margin: var(--s-6) 0; }

/* Filter panel: bottom sheet under 1000px */
.edu-filter-panel { display: none; }
.edu-filter-panel.is-open { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sheet); max-height: 85vh; max-height: 85dvh; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -12px 40px rgba(9, 37, 77, .28); }
.edu-sheet-backdrop { position: fixed; inset: 0; z-index: calc(var(--z-sheet) - 1); background: rgba(9, 37, 77, .5); }
.edu-sheet-backdrop[hidden] { display: none; }
html.edu-sheet-lock { overflow: hidden; }
.edu-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.edu-sheet-head h2 { margin: 0; font-size: var(--fs-h3); color: var(--text); }
.edu-sheet-close { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.edu-sheet-close .icon { width: 22px; height: 22px; }
.edu-filter-form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.edu-filter-scroll { overflow-y: auto; padding: var(--s-2) var(--s-4); flex: 1 1 auto; }
.edu-sheet-foot { display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); background: var(--surface); }
.edu-sheet-foot .edu-btn { flex: 1 1 0; }
.edu-fgroup { margin: 0; padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.edu-fgroup > summary, .edu-fgroup > h3 { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); margin: 0; font-size: var(--fs-base); font-weight: 800; color: var(--text); cursor: pointer; list-style: none; }
.edu-fgroup > summary::-webkit-details-marker { display: none; }
.edu-fgroup > summary::after { content: "+"; font-size: var(--fs-lg); font-weight: 600; }
.edu-fgroup[open] > summary::after { content: "\2212"; }
.edu-fgroup--cats { display: none; }
.edu-flist { list-style: none; margin: 0; padding: 0; }
.edu-flist a, .edu-flist label { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 10px; border-radius: 9px; color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; cursor: pointer; }
.edu-shop .edu-flist label { display: flex !important; margin: 0 !important; color: var(--text) !important; }
.edu-flist a em { flex: 1 1 auto; font-style: normal; }
.edu-flist a span { font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted); }
.edu-flist a:hover, .edu-flist label:hover { background: var(--surface-2); }
.edu-flist a.is-active { background: var(--action); color: var(--on-action); }
.edu-flist a.is-active span { color: inherit; opacity: .85; }
.edu-flist input[type=radio] { width: 20px; height: 20px; margin: 0; accent-color: var(--action); flex: 0 0 auto; }

/* Desktop: sticky sidebar, no sheet */
/* Desktop: sticky sidebar under the sticky header (64 px up to 1199, 76 px from 1200), no sheet.
   The sidebar scrolls on its own when it is taller than the space left. */
@media (min-width: 1000px) {
  .edu-shop-frame { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
  .edu-filter-panel, .edu-filter-panel.is-open { display: block; position: sticky; top: calc(64px + var(--s-4)); max-height: calc(100vh - 64px - var(--s-6)); overflow-y: auto; overscroll-behavior: contain; z-index: auto; margin-bottom: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .edu-filter-panel::after { content: ""; position: sticky; bottom: 0; display: block; height: 28px; margin-top: -28px; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }
  .edu-sheet-head, .edu-sheet-foot, .edu-sheet-backdrop, .edu-filter-open, .edu-chip-row--cats { display: none !important; }
  .edu-filter-scroll { overflow: visible; padding: var(--s-2) var(--s-4) var(--s-6); }
  .edu-fgroup--cats { display: block; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .edu-shop-main .edu-shop-grid:not(.edu-featured .edu-shop-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .edu-filter-panel, .edu-filter-panel.is-open { top: calc(76px + var(--s-4)); max-height: calc(100vh - 76px - var(--s-6)); }
}

/* Tablet and phone: the toolbar sticks under the header (64 px tablet; 52 px on phones,
   where the header shrinks once the page scrolls) and runs edge to edge. */
@media (max-width: 999px) {
  .edu-bar { position: sticky; top: 64px; z-index: var(--z-sticky); flex-wrap: nowrap; margin-inline: calc(50% - 50vw); padding: var(--s-2) calc(50vw - 50%); background: var(--bg); border-bottom: 1px solid var(--line); }
  .edu-shop .edu-sort label { display: none !important; }
  .edu-count { flex: 1 1 auto; min-width: 0; text-align: center; }
  .edu-filter-open, .edu-sort { flex: 0 0 auto; white-space: nowrap; }
  .edu-sort { margin-left: 0; }
}
@media (max-width: 767px) {
  .edu-shop { padding-top: var(--s-4); }
  .edu-bar { top: 52px; }
}
@media (max-width: 520px) {
  .edu-shop-band { flex-direction: column; align-items: flex-start; }
  .edu-count { font-size: var(--fs-xs); line-height: 1.25; }
  .edu-bar { gap: var(--s-2); }
  .edu-sort select { max-width: 150px; padding-left: 12px; padding-right: 28px; font-size: var(--fs-xs); text-overflow: ellipsis; }
}
@media (max-width: 359px) {
  .edu-count { display: none; }
}

/* No search match: the count of fallback products would mislead. */
body:has(.edu-empty) .shop-subtitle, body:has(.edu-empty) .edu-count { display: none; }
.cover-badge--owned { background: var(--free); color: var(--on-free); }
