/* AULA LISTA · dirección de arte global. Los componentes mantienen sus datos y acciones. */
:root {
  --navy: #0F4C5C;
  --ink: #143c49;
  --muted: #526d76;
  --cream: #F9F4EA;
  --line: #dae6e3;
  --blue: #e6f4fa;
  --sky: #A7D8F0;
  --coral: #ffe5df;
  --coral-bright: #FF8B7E;
  --yellow: #FFD86B;
  --mint: #e5f4ec;
  --lavender: #edf0f3;
  --white: #FFFFFF;
  color: var(--ink);
  background: var(--cream);
}

body { font-family: 'Nunito', 'Trebuchet MS', sans-serif; font-size: 1rem; background: var(--cream); }
h1, h2, h3, h4 { color: var(--navy); letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 4vw, 4.1rem); line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 2.3vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.3rem; }
p { line-height: 1.62; }
.wrap { width: 100%; max-width: 1480px; padding-inline: 42px; }
.topbar { border-color: var(--line); box-shadow: 0 3px 22px #0f4c5c08; }
.header { min-height: 92px; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand-mark { width: 43px; height: 49px; flex: none; stroke-width: initial; }
.brand-words { display: block; }
.brand strong { display: block; font-size: 1.66rem; line-height: .97; color: var(--navy); letter-spacing: -.058em; }
.brand strong span { color: var(--navy); box-shadow: inset 0 -.18em 0 #ffd86b8c; }
.brand small { display: block; color: var(--navy); font-family: 'Nunito', sans-serif; font-size: .67rem; font-weight: 700; letter-spacing: -.01em; margin-top: 5px; }
.header nav { gap: 32px; font-size: .98rem; }
.header nav a { padding: 17px 0; }
.header nav a.active { color: var(--navy); border-color: var(--coral-bright); }
.btn { min-height: 50px; padding: 13px 21px; border-radius: 13px; font-size: .96rem; border-color: var(--line); box-shadow: 0 2px 7px #0f4c5c08; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: white; }
.btn.primary:hover { background: #0b6171; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline-color: var(--coral-bright); }
.textlink { color: var(--navy); font-size: .96rem; font-weight: 800; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Portada clara y editorial: la búsqueda es el primer trabajo visual. */
.hero { position: relative; isolation: isolate; overflow: hidden; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 36px; align-items: center; min-height: 540px; margin-top: 30px; padding: 55px 54px; border-radius: 32px; background: #e7f5f9; }
.hero::before { content: ''; position: absolute; width: 440px; height: 540px; border-radius: 48% 0 0 52%; background: #f8eee1; right: -130px; top: -60px; z-index: -1; transform: rotate(-13deg); }
.hero::after { content: ''; position: absolute; width: 115px; height: 115px; border-radius: 50%; background: #ffd86b80; left: -69px; bottom: -52px; z-index: -1; }
.hero-copy { min-width: 0; position: relative; z-index: 1; }
.hero .eyebrow { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 23px; color: var(--navy); font-size: .98rem; font-weight: 800; letter-spacing: 0; }
.hero .eyebrow::before { display: none; }
.hero .eyebrow b { display: inline-flex; padding: 7px 12px; border-radius: 8px; color: var(--navy); background: var(--yellow); font-size: .75rem; letter-spacing: .1em; }
.hero h1 { color: var(--navy); font-size: clamp(3.3rem, 5.25vw, 5.4rem); letter-spacing: -.058em; line-height: .99; max-width: 760px; text-wrap: balance; }
.hero h1::after { content: ''; display: block; width: 90px; height: 8px; margin-top: 18px; border-radius: 50%; background: var(--yellow); transform: rotate(-3deg); }
.hero p { color: #315c68; max-width: 650px; font-size: clamp(1.13rem, 1.55vw, 1.32rem); line-height: 1.5; margin-top: 26px; }
.hero .search-form { max-width: 760px; min-height: 75px; padding: 8px 9px 8px 22px; margin-top: 35px; border: 1px solid #d0e2e5; border-radius: 18px; box-shadow: 0 13px 31px #0f4c5c17; }
.hero .search-form > svg { width: 24px; height: 24px; color: var(--navy); }
.hero .search-form input { font-size: 1.13rem; font-weight: 600; padding: 12px 0; }
.hero .search-form input::placeholder { color: #657e87; opacity: 1; }
.hero .search-form .btn { min-height: 55px; padding-inline: 28px; font-size: 1rem; }
.hero .grades { margin-top: 26px; gap: 10px; }
.hero .grades .label { color: var(--navy); font-size: .95rem; font-weight: 800; margin-right: 8px; }
.hero .chip { min-height: 46px; padding: 9px 16px; border: 1px solid #e6deda; border-radius: 12px; background: white; color: var(--navy); font-size: .97rem; font-weight: 900; box-shadow: 0 3px 10px #0f4c5c09; }
.hero .chip:nth-of-type(2), .hero .chip:nth-of-type(7) { background: #ffe8e4; border-color: #ffe8e4; }
.hero .chip:nth-of-type(3), .hero .chip:nth-of-type(4) { background: #fff0c5; border-color: #fff0c5; }
.hero .chip:nth-of-type(5) { background: #e4f2e9; border-color: #e4f2e9; }
.hero .chip:nth-of-type(6) { background: #d7ecf6; border-color: #d7ecf6; }
.hero .chip:hover, .hero .chip:focus-visible { color: white; background: var(--navy); border-color: var(--navy); }
.hero-art { align-self: center; max-width: 510px; }
.hero-art img { height: 400px; border-radius: 120px 26px 26px 120px; border: 0; object-position: 72% center; box-shadow: 0 22px 40px #0f4c5c16; }
.art-label { left: 18px; bottom: -20px; right: 18px; border: 0; border-radius: 15px; padding: 14px 15px; font-size: .91rem; box-shadow: 0 13px 28px #0f4c5c20; }
.art-label b { line-height: 1.3; }
.art-label > svg { margin-left: auto; }

/* Recorridos de la portada. */
.home-page > .section { padding: 55px 0 0; }
.home-needs { padding-top: 55px !important; }
.home-featured { padding-bottom: 18px !important; }
.section-head { margin-bottom: 25px; align-items: end; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin-top: 7px; }
.needs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.need { min-height: 88px; gap: 14px; padding: 19px 21px; border-radius: 17px; border-color: var(--line); font-size: 1rem; font-weight: 800; line-height: 1.3; box-shadow: 0 4px 18px #0f4c5c06; }
.need:nth-child(-n+3) { min-height: 107px; background: #e7f4f9; border-color: #d3e9ee; font-size: 1.08rem; }
.need:nth-child(2) { background: #fff1ca; border-color: #f6e4b0; }
.need:nth-child(3) { background: #e7f4ec; border-color: #d1e9dd; }
.need:nth-child(-n+3) .iconbox { width: 54px; height: 54px; background: white; }
.need .iconbox { width: 46px; height: 46px; border-radius: 13px; background: var(--blue); }
.need .iconbox svg { width: 23px; height: 23px; }
.need:hover, .subject:hover { border-color: #7db6c6; box-shadow: 0 8px 25px #0f4c5c12; transform: translateY(-2px); }
.subject.pending, .need.pending { background: #fffdf9; color: #63747a; box-shadow: none; }
.pending small { color: #6b7d81; font-size: .82rem; }
.subjects { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.subject { min-height: 139px; justify-content: center; padding: 20px 12px; border-radius: 18px; border-color: var(--line); font-size: .98rem; font-weight: 800; box-shadow: 0 4px 18px #0f4c5c06; }
.subject .iconbox { width: 52px; height: 52px; border-radius: 15px; }
.subject .iconbox svg { width: 27px; height: 27px; }
.ribbon { margin: 42px 0 10px; padding: 30px 34px; border-radius: 22px; background: #fff1c9; border-color: #efdca8; }
.ribbon .iconbox { background: var(--yellow); }
.ribbon h3 { font-size: 1.25rem; }
.ribbon p { font-size: 1rem; }
.home-note { margin: 38px 0 8px; text-align: center; }
.access-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.access-card { min-width: 0; display: flex; align-items: center; gap: 14px; min-height: 115px; padding: 19px; border: 1px solid #e8e4dc; border-radius: 18px; background: #fff6e3; color: var(--navy); box-shadow: 0 4px 18px #0f4c5c08; }
.access-card:nth-child(2) { background: #e8f5f8; border-color: #dbeaec; }
.access-card:nth-child(3) { background: #ffece9; border-color: #f8e1df; }
.access-card:nth-child(4) { background: #e8f5f0; border-color: #d9e9e2; }
.access-card .iconbox { width: 48px; height: 48px; flex: none; background: white; }
.access-card > span:nth-child(2) { min-width: 0; flex: 1; }
.access-card b, .access-card small { display: block; }
.access-card b { font-size: 1.05rem; }
.access-card small { margin-top: 5px; font-size: .85rem; color: #456b74; line-height: 1.35; }
.access-card > svg { width: 17px; height: 17px; }
.access-card:hover { transform: translateY(-2px); border-color: #93bdc4; box-shadow: 0 9px 25px #0f4c5c14; }
.footer { margin-top: 65px; border-color: var(--line); }
.footer-inner { padding-block: 14px; }
.footer-inner .brand strong { font-size: 1.38rem; }
.footer-inner .brand-mark { width: 34px; height: 40px; }

/* Un único componente para todo el catálogo y Mi Aula. */
.cards { gap: 24px; }
.card { min-width: 0; border-color: var(--line); border-radius: 22px; box-shadow: 0 6px 24px #0f4c5c0b; }
.card:hover { box-shadow: 0 18px 36px #0f4c5c1c; transform: translateY(-4px); }
.card .cover { height: 184px; }
.card .cover::after { content: ''; position: absolute; right: 25px; bottom: 18px; width: 52px; height: 52px; border: 1px solid #0f4c5c30; border-radius: 50%; pointer-events: none; }
.card .cover:has(img)::after { display: none; }
.cover .cover-type { top: 16px; bottom: auto; left: 16px; padding: 7px 10px; border-radius: 8px; background: white; box-shadow: 0 3px 12px #0f4c5c12; color: var(--navy); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; }
.save-icon { width: 39px; height: 39px; top: 13px; right: 13px; background: white; border-color: var(--line); box-shadow: 0 3px 10px #0f4c5c18; }
.save-icon.saved { color: #b54848; background: #fff3f0; }
.typographic { color: var(--navy); gap: 16px; }
.typographic .big svg { width: 68px; height: 68px; }
.typographic .small-note { color: var(--navy); max-width: 155px; font-size: .84rem; letter-spacing: .08em; line-height: 1.45; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 25px 25px 23px; }
.card h3 { font-size: clamp(1.22rem, 1.45vw, 1.48rem); line-height: 1.23; letter-spacing: -.035em; overflow-wrap: anywhere; }
.card-meta { margin: 14px 0 0; color: #426573; font-size: .92rem; font-weight: 750; }
.card-duration { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--navy); font-size: .88rem; font-weight: 800; }
.card-duration svg { width: 17px; height: 17px; }
.card p { margin-top: 16px; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.card-footer { padding: 17px 25px; border-color: var(--line); color: var(--navy); font-size: .96rem; font-weight: 900; }
.card-footer .arrow { margin-left: auto; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--yellow); }
.card-footer .arrow svg { width: 17px; height: 17px; }

/* Biblioteca: filtros principales al frente, secundarios plegables. */
.breadcrumb { padding: 30px 0 18px; font-size: .9rem; }
.page-title { padding: 12px 0 35px; }
.page-title h1 { font-size: clamp(2.55rem, 3.6vw, 3.75rem); }
.page-title p { max-width: 820px; font-size: 1.08rem; }
.page-title .search-form { max-width: 850px; min-height: 65px; margin-top: 25px; border-radius: 15px; }
.page-title .search-form input { font-size: 1.02rem; }
.library-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 34px; padding-bottom: 40px; }
.filters { padding: 24px; border-radius: 20px; border-color: var(--line); box-shadow: 0 5px 20px #0f4c5c08; align-self: start; }
.filter-heading { margin-bottom: 20px; }
.filter-heading h3 { font-size: 1.25rem; }
.filter-heading a { font-size: .85rem; color: var(--navy); }
.filter-primary, .filter-advanced { min-width: 0; }
.field { gap: 8px; margin-bottom: 17px; color: var(--navy); font-size: .92rem; font-weight: 800; }
.field select, .field input, select { min-height: 48px; border-radius: 10px; border-color: #bfd4d7; font-size: .94rem; }
.more-filters { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 3px; }
.more-filters summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; color: var(--navy); cursor: pointer; font-size: .92rem; font-weight: 800; padding: 5px 0 11px; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary svg { width: 18px; height: 18px; transition: transform .2s; }
.more-filters[open] summary svg { transform: rotate(45deg); }
.filter-advanced { padding-top: 10px; }
.apply-filter { width: 100%; margin-top: 10px; }
.library-results .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.results-head { margin-bottom: 24px; }
.results-head p { font-size: 1rem; }
.results-head strong { font-size: 1.28rem; }
.results-head .pill { background: #e3f1f7; color: var(--navy); }
.filter-chip { border-color: #c7dddf; border-radius: 10px; font-size: .88rem; padding: 9px 12px; }
.empty { border-color: #b8d1d3; border-radius: 22px; padding: 56px 30px; }

/* Fichas docentes y bloque de descargas. */
.detail-layout { grid-template-columns: minmax(0, 1fr) 335px; gap: 38px; }
.detail-intro { position: relative; overflow: hidden; padding: 33px 35px 38px; margin-bottom: 20px; border-radius: 24px; background: #eaf5f8; }
.detail-intro::after { content: ''; position: absolute; width: 170px; height: 170px; border-radius: 50%; right: -87px; top: -90px; background: #ffd86b9c; pointer-events: none; }
.detail-intro h1 { font-size: clamp(2.6rem, 3.8vw, 4.2rem); line-height: 1.07; margin-top: 16px; overflow-wrap: anywhere; }
.detail-intro > p { max-width: 820px; font-size: 1.12rem; line-height: 1.58; }
.pill { border-radius: 10px; padding: 8px 12px; font-size: .86rem; font-weight: 800; }
.warm { background: var(--yellow); color: var(--navy); font-size: .81rem; letter-spacing: .06em; }
.badges { gap: 9px; margin-top: 22px; }
.badges .pill { background: #e7f3f8; color: var(--navy); }
.detail-actions { margin-top: 28px; gap: 11px; }
.detail-actions > .btn { min-height: 52px; font-size: .96rem; padding: 12px 17px; }
.secondary-actions { margin-top: 19px; gap: 20px; }
.secondary-actions .textlink { font-size: .92rem; }
.detail-grid { gap: 18px; align-items: stretch; }
.detail-grid > .detail-block:first-child { grid-column: 1 / -1; background: #f1f8f9; border-color: #cfe5e8; }
.detail-block { border-color: var(--line); border-radius: 20px; padding: 25px 23px; gap: 16px; box-shadow: 0 4px 18px #0f4c5c07; }
.detail-block > .iconbox { width: 42px; height: 42px; border-radius: 13px; }
.detail-block h2 { font-size: 1.24rem; margin: 5px 0 12px; letter-spacing: -.025em; }
.detail-block p, .checklist, .steps { font-size: 1rem; line-height: 1.64; color: #345762; }
.checklist { gap: 11px; }
.checklist li { align-items: flex-start; }
.steps li + li { margin-top: 9px; }
.detail-aside { position: sticky; top: 112px; align-self: start; }
.summary-card { padding: 16px; border-radius: 21px; box-shadow: 0 7px 25px #0f4c5c0a; }
.summary-card > .cover { height: 160px; border-radius: 14px; }
.summary-data { padding: 22px 9px; gap: 16px; }
.summary-data b { font-size: .9rem; }
.summary-data small { font-size: .9rem; line-height: 1.35; }
.teacher-note { border-radius: 13px; }
.teacher-note p { font-size: .91rem; }
.downloads-box { margin-top: 18px; padding: 22px; background: #e7f3f8; border-color: #cfe4e9; border-radius: 19px; }
.downloads-box h3 { font-size: 1.27rem; }
.downloads-box p { color: #466b76; font-size: .9rem; line-height: 1.5; margin: 6px 0 14px; }
.downloads-box a { display: flex; min-height: 58px; margin-top: 9px; padding: 12px 13px; border: 1px solid #c9dfe3; border-radius: 12px; background: white; color: var(--navy); font-size: .94rem; font-weight: 800; line-height: 1.35; }
.downloads-box a:last-child { padding-bottom: 12px; }
.downloads-box a:hover { border-color: var(--navy); box-shadow: 0 5px 14px #0f4c5c12; }
.downloads-box a:nth-of-type(1) { border-left: 4px solid var(--coral-bright); }
.downloads-box a:nth-of-type(2) { border-left: 4px solid var(--sky); }
.downloads-box a:nth-of-type(3) { border-left: 4px solid var(--yellow); }
.downloads-box svg { width: 21px; height: 21px; }
.downloads-box a small { font-size: .82rem; }
.aside-quote { position: relative; background: #fff0c2; color: var(--navy); }
.aside-quote::before { content: '“'; position: absolute; left: 22px; top: -10px; color: #e8b42f; font-size: 4.5rem; line-height: 1; }
.systems-sources { margin: 0; padding-left: 18px; line-height: 1.6; }
.systems-sources li + li { margin-top: 7px; }
.systems-sources a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.lesson-box { background: #edf5f4; border-color: #d4e7e3; border-radius: 21px; padding: 31px; }
.lesson-box h2 { font-size: 1.8rem; }
.lesson-box > p, .lesson-timeline p { font-size: 1rem; }
.lesson-timeline h3 { font-size: 1.08rem; }

/* Mi Aula y planificador: un espacio personal docente. */
.local-note { border-radius: 13px; font-size: .92rem; padding: 15px 18px; }
.aula-tabs { gap: 9px; border: 0; margin: 22px 0 33px; padding: 7px; border-radius: 16px; background: #e6efee; }
.aula-tabs a { border: 0; border-radius: 11px; padding: 13px 15px; color: #42626e; font-size: .92rem; font-weight: 800; }
.aula-tabs a.active { background: white; color: var(--navy); box-shadow: 0 3px 12px #0f4c5c12; }
.aula-tabs span { background: #e6f2f4; font-size: .78rem; }
.folder-card { min-height: 210px; padding: 27px; border-radius: 20px; border-color: var(--line); box-shadow: 0 5px 19px #0f4c5c09; }
.folder-card h3 { font-size: 1.35rem; }
.folder-card p { font-size: .96rem; }
.folder-card:hover { border-color: #8ab8c2; }
.day-column { padding: 19px; border-radius: 18px; }
.day-title h2 { font-size: 1.17rem; }
.day-title small, .day-empty, .plan-card p { font-size: .86rem; }
.plan-card { padding: 15px; }
.plan-card h3 { font-size: 1.05rem; }
.add-day { min-height: 45px; font-size: .9rem; }
dialog { border-color: var(--line); }

/* Modo clase: contraste y escala visibles desde un proyector. */
.classroom { background: #f7f5ef; }
.class-header { min-height: 78px; border-color: var(--line); }
.class-header > span { font-size: 1rem; font-weight: 800; color: var(--navy); }
.class-progress { height: 9px; background: #cddfe2; }
.class-progress > span { background: var(--coral-bright); }
.class-content { max-width: 1080px; padding: 52px 34px 65px; }
.class-content h1 { max-width: 980px; font-size: clamp(2.2rem, 3.3vw, 3.25rem); line-height: 1.22; color: var(--navy); }
.class-count { color: var(--navy); font-size: .95rem; font-weight: 900; letter-spacing: .1em; }
.class-lead { max-width: 850px; font-size: 1.22rem; }
.options { max-width: 800px; gap: 17px; }
.answer-option { padding: 24px; min-height: 78px; border-color: #c9dfe2; border-radius: 17px; font-size: 1.32rem; font-weight: 700; }
.answer-option > span { background: var(--yellow); color: var(--navy); }
.answer-option:hover, .answer-option.chosen { border-color: var(--navy); background: #e8f5fb; }
.answer-option.correct { border-color: #257a5c; background: #e8f6ee; }
.answer-option.incorrect { border-color: #bd6c38; background: #fff1db; }
.feedback { max-width: 820px; border-radius: 16px; padding: 23px 27px; font-size: 1.07rem; }
.feedback p { font-size: 1.05rem; }
.class-buttons .btn, .class-content > .btn { min-height: 56px; font-size: 1.1rem; }
.class-hint, .class-response { font-size: 1.03rem; }
.class-bottom { color: #526d76; font-size: .85rem; }
.map-class .class-content h1 { font-size: clamp(1.8rem, 2.6vw, 2.35rem); }
.vowel-class .class-content h1 { font-size: clamp(1.8rem, 2.7vw, 2.35rem); }

/* 768 px: búsqueda y contenidos conservan prioridad, sin columna estrecha. */
@media (max-width: 1100px) {
  .wrap { padding-inline: 30px; }
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); gap: 28px; padding: 48px; min-height: 470px; }
  .hero h1 { font-size: clamp(3.1rem, 5vw, 4.2rem); }
  .hero-art img { height: 295px; }
  .needs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .subjects { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-layout { grid-template-columns: 1fr; gap: 26px; }
  .filters { position: static; }
  .filter-primary, .filter-advanced { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 15px; }
  .filters .apply-filter { width: auto; min-width: 190px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-aside { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .detail-aside > .note { grid-column: 1 / -1; }
  .downloads-box { margin-top: 0; }
}

@media (max-width: 820px) {
  .header { gap: 18px; }
  .header nav { gap: 16px; }
  .header nav a { font-size: .86rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { display: none; }
  .hero .search-form { max-width: none; }
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subjects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-featured .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aula-tabs { overflow-x: auto; }
}

/* 390 px y móviles: acciones táctiles, una columna y filtros manejables. */
@media (max-width: 740px) {
  .wrap { padding-inline: 19px; }
  .header { min-height: 75px; gap: 11px; }
  .header nav { top: 75px; padding: 18px; }
  .header .brand-mark { width: 33px; height: 40px; }
  .header .brand strong { font-size: 1.3rem; }
  .header .brand small { font-size: .56rem; }
  .header > .btn { min-height: 41px; padding: 9px 10px; font-size: .8rem; }
  .hero { margin-top: 16px; padding: 34px 25px 31px; border-radius: 23px; }
  .hero .eyebrow { font-size: .87rem; margin-bottom: 23px; }
  .hero h1 { font-size: clamp(2.5rem, 9vw, 3.35rem); line-height: 1.03; }
  .hero p { font-size: 1.08rem; margin-top: 18px; }
  .hero .search-form { margin-top: 25px; min-height: 61px; padding: 6px 6px 6px 14px; gap: 8px; }
  .hero .search-form input { font-size: .98rem; }
  .hero .search-form .btn { min-height: 48px; padding-inline: 15px; font-size: .9rem; }
  .hero .grades { margin-top: 22px; gap: 8px; }
  .hero .grades .label { width: 100%; }
  .hero .chip { min-height: 42px; padding: 8px 13px; font-size: .9rem; }
  .home-page > .section { padding-top: 42px; }
  .home-needs { padding-top: 48px !important; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 1.75rem; }
  .section-head p { font-size: .98rem; }
  .needs, .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .need { min-height: 83px; padding: 13px; gap: 9px; font-size: .91rem; }
  .need .iconbox { width: 39px; height: 39px; flex: none; }
  .subject { min-height: 120px; padding: 17px 8px; font-size: .9rem; }
  .access-grid { grid-template-columns: 1fr; gap: 10px; }
  .access-card { min-height: 82px; padding: 15px 18px; }
  .home-featured .cards, .cards, .library-results .cards { grid-template-columns: 1fr; }
  .card .cover { height: 185px; }
  .card h3 { font-size: 1.34rem; }
  .card-body { padding: 23px; }
  .card-footer { padding-inline: 23px; }
  .ribbon { margin-top: 32px; padding: 21px; }
  .ribbon .btn { margin-left: 0; width: 100%; }
  .page-title h1 { font-size: 2.5rem; }
  .page-title p { font-size: 1rem; }
  .page-title .search-form { min-height: 58px; }
  .filters { padding: 0; background: none; border: 0; box-shadow: none; }
  .filter-toggle { display: flex; width: 100%; min-height: 50px; border-radius: 12px; font-size: 1rem; }
  .filters form { display: none; margin-top: 12px; padding: 20px; border-radius: 17px; background: white; }
  .filters.expanded form { display: block; }
  .filter-primary, .filter-advanced { grid-template-columns: 1fr; }
  .filters .apply-filter { width: 100%; }
  .results-head { align-items: flex-start; }
  .results-head .pill { display: none; }
  .detail-intro { padding: 26px 21px 29px; }
  .detail-intro h1 { font-size: clamp(2.38rem, 8vw, 3rem); }
  .detail-intro > p { font-size: 1.04rem; }
  .detail-actions { display: grid; grid-template-columns: 1fr; }
  .detail-actions > .btn { width: 100%; font-size: .98rem; }
  .secondary-actions .textlink { font-size: .94rem; }
  .detail-grid { grid-template-columns: 1fr; gap: 14px; }
  .detail-block { padding: 22px 19px; }
  .detail-block h2 { font-size: 1.2rem; }
  .detail-block p, .checklist, .steps { font-size: .98rem; }
  .detail-aside { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .summary-card > .cover { height: 170px; }
  .summary-data { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .downloads-box { margin-top: 0; }
  .aula-tabs { gap: 6px; margin-bottom: 25px; padding: 5px; }
  .aula-tabs a { font-size: .9rem; padding: 12px 13px; }
  .folder-card { min-height: 185px; }
  .class-header { padding: 13px 16px; }
  .class-content { padding: 30px 18px 45px; }
  .class-content h1 { font-size: clamp(1.8rem, 7vw, 2.35rem); }
  .class-count { font-size: .85rem; }
  .answer-option { min-height: 65px; padding: 17px; font-size: 1.1rem; }
  .feedback { padding: 18px; }
  .class-lead { font-size: 1.08rem; }
  .map-class .class-content h1, .vowel-class .class-content h1 { font-size: clamp(1.7rem, 6vw, 2rem); }
}

@media (max-width: 420px) {
  .hero .search-form > svg { display: none; }
  .hero .search-form input { font-size: .94rem; }
  .hero .search-form .btn { padding-inline: 13px; }
  .hero .eyebrow span { width: 100%; }
  .need { flex-direction: column; align-items: flex-start; min-height: 111px; }
  .need:nth-child(-n+3) { min-height: 126px; font-size: .97rem; }
  .need:nth-child(-n+3) .iconbox { width: 42px; height: 42px; }
  .header .brand-mark { width: 29px; height: 36px; }
  .header .brand strong { font-size: 1.17rem; }
  .header .brand small { font-size: .52rem; }
  .header > .btn { padding-inline: 8px; }
  .subject { min-height: 116px; }
  .summary-data { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
