.discovery-page { --discovery-ink:var(--tn-ink,#071d36); --discovery-line:var(--tn-line,#d9e6f0); --discovery-green:#176756; width:100%; min-width:0; clear:both; background:linear-gradient(180deg,#f2f8fc 0,#fff 440px); color:var(--discovery-ink); padding:28px 0 64px; }
.discovery-wrap { width:min(1180px,calc(100% - 40px)); margin:0 auto; }
.discovery-page * { box-sizing:border-box; }
.discovery-page :is(h1,h2,h3,h4,p,ul,ol) { margin:0 0 16px; }
.discovery-page h1 { font-size:clamp(30px,4vw,48px); line-height:1.15; letter-spacing:-.025em; }
.discovery-page h2 { font-size:26px; line-height:1.25; }
.discovery-page h3 { font-size:21px; line-height:1.3; }
.discovery-page h4 { font-size:18px; line-height:1.45; }
.discovery-page p { line-height:1.7; max-width:78ch; }
.discovery-page a { color:#145f93; text-underline-offset:3px; }
.discovery-page a:hover { text-decoration:underline; }
.discovery-page :is(a,button,input,select):focus-visible { outline:3px solid #a65b00; outline-offset:3px; }
.discovery-breadcrumb { font-size:14px; margin-bottom:28px; line-height:1.7; }
.discovery-heading { max-width:860px; margin-bottom:24px; }
.discovery-search { display:grid; grid-template-columns:minmax(180px,2fr) minmax(150px,1fr) minmax(160px,1fr); align-items:end; gap:20px; padding:24px; background:#fff; border:1px solid var(--discovery-line); border-bottom:3px solid var(--discovery-green); border-radius:8px; }
.discovery-facets { grid-column:1/-1; min-width:0; margin:0; padding:16px 0 0; border:0; border-top:1px solid var(--discovery-line); }
.discovery-facets legend { padding:0 10px 0 0; font-size:15px; font-weight:700; }
.discovery-facet-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.discovery-search-actions { grid-column:1/-1; display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.discovery-search-actions a { display:inline-flex; min-height:44px; align-items:center; }
.discovery-active-filters { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:20px 0; font-size:14px; }
.discovery-active-filters a { display:inline-flex; align-items:center; gap:12px; min-height:44px; padding:8px 12px; border:1px solid #71869a; border-radius:4px; background:#fff; max-width:100%; overflow-wrap:anywhere; }
.discovery-active-filters a:hover { background:#eaf5f1; }
.discovery-search label { display:block; margin:0; font-size:14px; font-weight:700; min-width:0; }
.discovery-search :is(input,select) { display:block; width:100%; min-width:0; height:48px; padding:10px 12px; margin-top:8px; border:1px solid #71869a; border-radius:4px; background:#fff; color:var(--discovery-ink); font:400 16px/1.4 "Lato",sans-serif; }
.discovery-page button,.discovery-button { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:11px 20px; border:1px solid var(--discovery-green); border-radius:4px; background:var(--discovery-green); color:#fff!important; font-weight:700; line-height:1.5; }
.discovery-filter-note { color:#4e6278; font-size:14px; margin-top:14px!important; }
.discovery-start { margin-top:38px; }
.discovery-start-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.discovery-start-grid a { display:block; background:#fff; border:1px solid var(--discovery-line); border-radius:6px; padding:24px; }
.discovery-start-grid strong { display:block; font-size:20px; margin-bottom:10px; }
.discovery-start-grid span { color:#4e6278; line-height:1.6; }
.discovery-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:30px 0; }
.discovery-tabs a { padding:10px 14px; min-height:44px; background:#fff; border:1px solid var(--discovery-line); border-radius:4px; }
.discovery-tabs a[aria-current=page] { color:#fff; background:var(--discovery-ink); border-color:var(--discovery-ink); }
.discovery-results-heading,.discovery-result-section>header { display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.discovery-results-heading h2 { overflow-wrap:anywhere; }
.discovery-result-section { margin:28px 0 38px; }
.discovery-result-section h3 small { font-size:15px; font-weight:400; margin-left:8px; color:#4e6278; }
.discovery-result-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.discovery-result { display:flex; flex-direction:column; padding:22px; background:#fff; border:1px solid var(--discovery-line); border-radius:6px; min-width:0; }
.discovery-meta { color:#4e6278; font-size:13px; margin-bottom:8px!important; }
.discovery-action { margin-top:auto; display:inline-block; padding:10px 0; font-weight:700; min-height:44px; }
.discovery-result :is(h4,p) { overflow-wrap:anywhere; }
.discovery-empty { padding:24px; margin:24px 0; border-left:4px solid #b67b12; background:#fff8e9; }
.discovery-book-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.discovery-book { border:1px solid var(--discovery-line); border-radius:6px; overflow:hidden; background:#fff; display:flex; flex-direction:column; }
.discovery-book-image { display:flex; justify-content:center; background:#f4f7f9; padding:18px; }
.discovery-book-image img { width:100%; max-width:180px; height:220px; object-fit:contain; }
.discovery-book>div { display:flex; flex:1; flex-direction:column; padding:18px; }
.discovery-price { font-size:20px; font-weight:700; }
.discovery-pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:20px; margin-top:32px; }
.discovery-pagination a { padding:12px 18px; border:1px solid var(--discovery-line); border-radius:4px; }
.subject-learning-hero { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:40px; align-items:center; padding:10px 0 36px; }
.subject-learning-label { color:var(--discovery-green); font-weight:700; }
.subject-learning-hero>aside { border-left:4px solid var(--discovery-green); padding:24px; background:#eaf5f1; }
.subject-learning-hero>aside h2 { font-size:24px; }
.subject-learning-hero ol { padding-left:20px; line-height:1.8; }
.subject-prerequisite { background:#fff; border:1px solid var(--discovery-line); border-radius:6px; padding:24px; margin-bottom:36px; }
.subject-prerequisite h2 { font-size:21px; }
.subject-learning-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:36px; align-items:start; }
.subject-unit-nav { position:sticky; top:115px; padding:20px; background:#f1f6fa; border-radius:6px; }
.subject-unit-nav h2 { font-size:20px; }
.subject-unit-nav ol { padding-left:22px; line-height:1.6; }
.subject-unit-nav a { display:inline-block; padding:8px 0; }
.subject-unit { scroll-margin-top:115px; padding:0 0 28px; margin-bottom:28px; border-bottom:1px solid var(--discovery-line); }
.subject-unit header>span { color:var(--discovery-green); font-weight:700; display:block; margin-bottom:8px; }
.subject-unit-resources { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.subject-unit-resources>div { padding:20px; border-radius:4px; background:#f6f9fb; }
.subject-unit-resources>div:last-child { background:#eef7f3; }
.subject-unit-resources h3 { font-size:18px; }
.subject-unit-resources ul { padding-left:18px; }
.subject-unit-resources li { padding:6px 0; line-height:1.65; }
.subject-unit-resources a { display:inline-block; padding:3px 0; }
.subject-unit-resources p { font-size:14px; color:#4e6278; }
.subject-unit-check { margin:18px 0 0!important; }
.subject-next { display:grid; grid-template-columns:1.5fr 1fr; gap:32px; border-top:2px solid var(--discovery-green); padding:28px 0; }
.subject-next>div>a { display:inline-block; margin:0 18px 8px 0; padding:10px 0; font-weight:700; }
.subject-next aside { padding:24px; background:#fff8e9; border-radius:6px; }
@media(max-width:1000px) { .discovery-search { grid-template-columns:repeat(2,minmax(0,1fr)); } .discovery-book-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .subject-learning-layout { grid-template-columns:210px minmax(0,1fr); gap:24px; } .subject-unit-resources { grid-template-columns:1fr; gap:14px; } }
@media(max-width:700px) { .discovery-wrap { width:calc(100% - 32px); } .discovery-page { padding-top:20px; } .discovery-search { padding:18px; gap:18px; grid-template-columns:1fr; } .discovery-facet-fields { grid-template-columns:1fr; gap:18px; } .discovery-start-grid,.discovery-result-grid,.subject-learning-hero,.subject-learning-layout,.subject-next { grid-template-columns:1fr; gap:20px; } .discovery-book-grid { gap:12px; } .discovery-book>div { padding:14px; } .discovery-book h4 { font-size:16px; } .discovery-book-image { padding:12px; } .discovery-book-image img { height:180px; } .subject-unit-nav { position:static; } .subject-unit-nav ol { columns:2; column-gap:24px; } .subject-unit-nav li { break-inside:avoid; } .subject-learning-hero { padding-bottom:20px; } .discovery-tabs a { padding:10px; } }
@media(max-width:380px) { .discovery-book-grid { grid-template-columns:1fr; } .subject-unit-nav ol { columns:1; } }
@media(prefers-reduced-motion:reduce) { .discovery-page * { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
@media print { .subject-unit-nav,.discovery-button { display:none!important; } .subject-learning-layout,.subject-learning-hero,.subject-next { display:block; } .subject-unit { break-inside:avoid; } }
