/* School subject directory, in the approved emerald visual system. */
.subjects-hub{--sh-line:var(--border)}
.subjects-hub .commercial-block,.subjects-hub .sh-sources{max-width:1240px;margin:58px auto 0}
.subjects-hub .commercial-heading{gap:24px;align-items:end;margin-bottom:24px}
.subjects-hub .commercial-heading h2{font-size:clamp(26px,3vw,38px);line-height:1.2;margin:16px 0 0}
.subjects-hub .commercial-heading .section-context{max-width:460px;margin:0}
.subjects-hub .commercial-heading .editorial-label--note{font-size:13px}
.sh-hero-frame{position:relative;border-radius:28px;overflow:hidden}
.sh-hero-frame picture,.sh-hero-frame img{display:block;width:100%;height:auto}
.sh-hero-heading{position:absolute;left:5%;top:25%;width:42%}
.sh-hero-heading h1{font-size:clamp(32px,4.4vw,68px);line-height:1.08;color:#fff0cc;letter-spacing:-.04em;margin:0}
.sh-hero-heading h1>span{display:block;font-size:.48em;line-height:1.45;margin-top:20px;color:#ffcf87;letter-spacing:-.02em;max-width:360px}
.sh-intro{display:flex;align-items:center;gap:24px;justify-content:space-between;margin-top:20px;padding:22px;border:1px solid var(--border);border-radius:22px;background:var(--surface)}
.sh-intro-copy{display:flex;align-items:center;gap:16px;max-width:720px}
.sh-intro-copy>.art{width:48px;height:48px;object-fit:contain;flex:none}
.sh-intro p{font-size:15px;line-height:1.8;margin:0;color:var(--muted)}
.sh-actions{display:flex;gap:12px;flex-wrap:wrap}
.subjects-hub .button-primary{background:linear-gradient(135deg,#ffdfaa,#ffcb7c);color:#402614;border:1px solid #ffe2b3;font-weight:650;box-shadow:inset 0 1px 0 #fff7;min-height:46px;font-size:13px;border-radius:13px}
.subjects-hub .button-primary:is(:visited,:active,:hover,:focus-visible){color:#402614}
.subjects-hub .button-primary:hover{filter:brightness(1.05)}
.subjects-hub :is(a,button,input,summary):focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.sh-filters{padding:22px;border:1px solid var(--border);border-radius:22px;background:var(--surface);margin-bottom:18px}
.sh-search{max-width:620px}
.sh-search label{display:block;font-size:13px;font-weight:650;color:var(--text);margin-bottom:9px}
.sh-search>div{display:flex;gap:10px}
.sh-search input{min-width:0;flex:1;appearance:none;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:13px;padding:13px 15px;font:inherit;font-size:14px;min-height:48px}
.sh-search input::placeholder{color:var(--muted);opacity:1}
.sh-search input::-webkit-search-cancel-button,.sh-search input::-webkit-search-decoration{appearance:none;display:none}
.sh-search button,.sh-group-buttons button{appearance:none;cursor:pointer;min-height:44px;padding:11px 15px;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:13px;font:inherit;font-size:12px;font-weight:600;line-height:1.5}
.sh-group-buttons{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}
.sh-group-buttons button[aria-pressed=true]{background:#ffd28c;color:#402614;border-color:#ffe2b3}
.sh-count{font-size:13px;color:var(--muted);margin:0 0 20px;padding:9px 0}
.sh-count>span:first-child{font-weight:650;color:var(--text)}
.sh-subject-grid,.sh-offer-grid,.sh-format-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.sh-subject-card,.sh-offer,.sh-format-grid>article{min-width:0;padding:22px;background:var(--surface);border:1px solid var(--border);border-radius:23px}
.sh-card-top{display:flex;gap:14px;align-items:center}
.sh-card-scene{width:110px;height:72px;object-fit:contain;flex:none;border-radius:12px;background:var(--bg)}
.sh-card-top>div{min-width:0}
.sh-card-group{display:block;color:var(--accent);font-size:10px;line-height:1.6;margin-bottom:6px}
.sh-card-top h3{font-size:20px;line-height:1.3;margin:0;color:var(--text);letter-spacing:-.025em;overflow-wrap:anywhere}
.sh-card-lead{font-size:14px;line-height:1.8;color:var(--muted);margin:18px 0 20px}
.sh-subject-card>.button{width:100%}
.sh-card-details{margin-top:16px;padding-top:0;border-top:1px solid var(--border)}
.sh-card-details>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:58px;padding-top:10px;font-size:13px;font-weight:650;color:var(--text)}
.sh-card-details>summary::-webkit-details-marker{display:none}
.sh-card-details>summary>.art{width:29px;height:29px;flex:none;object-fit:contain}
.sh-card-details>summary>span:not(.sh-toggle){min-width:0}
.sh-toggle{position:relative;display:inline-block;flex:none;margin-left:auto;width:27px;height:27px;border:1px solid var(--border);border-radius:50%;background:var(--surface2);color:var(--accent)}
.sh-toggle::before,.sh-toggle::after{content:'';position:absolute;left:8px;top:12px;width:9px;height:1px;background:currentColor}
.sh-toggle::after{transform:rotate(90deg)}
.sh-card-details[open] .sh-toggle::after{transform:none}
.sh-card-details .lp-details-body{padding-top:14px}
.sh-subject-card[hidden]{display:none}
.sh-subject-grid.sh-grid-one{grid-template-columns:1fr;max-width:640px;margin:auto}
.sh-subject-grid.sh-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.sh-subject-grid>.sh-card-wide{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:28px}
.sh-card-wide .sh-card-top{grid-row:1/3;align-items:center}
.sh-card-wide .sh-card-scene{width:180px;height:auto;max-height:120px}
.sh-card-wide>.sh-card-lead{margin-top:0}
.sh-card-wide>.sh-card-details{grid-column:1/-1}
.sh-more{display:flex;justify-content:center;margin-top:22px}
.sh-more button{min-width:220px}
.sh-empty{padding:20px 0;text-align:center}
.subjects-hub .learning-check{max-width:1100px}
.subjects-hub .sh-table{table-layout:fixed}
.subjects-hub .sh-table th,.subjects-hub .sh-table td{padding:20px;font-size:14px;line-height:1.75;vertical-align:top;overflow-wrap:anywhere}
.subjects-hub .sh-table thead th{font-size:12px;color:var(--accent);background:var(--surface2)}
.subjects-hub .sh-table thead .art{width:30px;height:30px;display:block;object-fit:contain;margin-bottom:9px}
.subjects-hub .sh-table tbody th{width:30%;color:var(--text)}
.subjects-hub .sh-table tbody th>span{display:flex;align-items:flex-start;gap:12px}
.subjects-hub .sh-table tbody .art{width:34px;height:34px;flex:none;object-fit:contain}
.sh-offer h3,.sh-format-grid h3{display:flex;align-items:flex-start;gap:12px;font-size:21px;line-height:1.35;margin:0 0 16px;color:var(--text)}
.sh-offer h3>.art,.sh-format-grid h3>.art{width:40px;height:40px;flex:none;object-fit:contain}
.sh-offer h3>span,.sh-format-grid h3>span{min-width:0;overflow-wrap:anywhere}
.sh-offer p,.sh-format-grid p{font-size:14px;line-height:1.85;color:var(--muted);margin:0 0 18px}
.sh-offer .sh-teacher{font-size:12px;color:var(--accent)}
.sh-offer-price{display:flex;gap:9px;align-items:baseline;padding-top:16px;margin:20px 0 18px;border-top:1px solid var(--border)}
.sh-offer-price strong{font-size:28px;line-height:1.3;color:var(--text)}
.sh-offer-price span{font-size:12px;color:var(--muted)}
.sh-offer>.button,.sh-format-grid .button{width:100%}
.sh-note{max-width:940px;margin:18px auto 0;text-align:center}
.sh-format-grid>article>strong{display:block;font-size:14px;line-height:1.8;color:var(--text);margin-bottom:12px}
.subjects-hub .sh-next{display:flex;align-items:center;gap:24px;justify-content:space-between;padding:24px;border:1px solid var(--border);border-radius:24px;background:var(--surface)}
.sh-next>div:first-child{position:relative;padding-left:66px;max-width:720px}
.sh-next .art{position:absolute;left:0;top:2px;width:46px;height:46px;object-fit:contain}
.sh-next h2{font-size:26px;line-height:1.3;margin:0 0 10px;color:var(--text)}
.sh-next p{font-size:14px;line-height:1.8;color:var(--muted);margin:0}
.subjects-hub .oge-premium-faq .faq-heading{max-width:900px;margin:auto}
.subjects-hub .oge-premium-faq h2{font-size:clamp(28px,3vw,40px);line-height:1.2;margin:20px 0}
.subjects-hub .oge-premium-faq .section-context{max-width:740px;margin:20px auto 0}
.subjects-hub .oge-premium-faq .faq-list{max-width:1140px}
.subjects-hub .sh-sources{display:flex;align-items:center;gap:16px;padding:21px 24px;border:1px solid var(--border);border-radius:22px;background:var(--surface)}
.sh-sources>.art{width:36px;height:36px;flex:none;object-fit:contain}
.sh-sources p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}
@media(max-width:1100px){.sh-subject-grid,.sh-offer-grid,.sh-format-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sh-offer-grid>.sh-offer:last-child,.sh-format-grid>article:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.sh-offer-grid>.sh-offer:last-child>.sh-card-details{grid-column:1/-1}.sh-intro{align-items:flex-start;flex-direction:column}.subjects-hub .commercial-heading{align-items:start}.sh-hero-heading{top:22%}.sh-card-top{align-items:flex-start;gap:12px}.sh-card-scene{width:96px;height:64px}.sh-card-top h3{font-size:19px}}
@media(max-width:700px){.subjects-hub .commercial-block,.subjects-hub .sh-sources{margin-top:42px}.subjects-hub .commercial-heading{display:block}.subjects-hub .commercial-heading .section-context{margin-top:18px;max-width:none}.sh-subject-grid,.sh-subject-grid.sh-grid-two,.sh-offer-grid,.sh-format-grid{grid-template-columns:1fr}.sh-subject-grid>.sh-card-wide,.sh-offer-grid>.sh-offer:last-child,.sh-format-grid>article:last-child{display:block;grid-column:1}.sh-card-wide .sh-card-scene{width:96px;height:64px}.sh-card-wide>.sh-card-lead{margin-top:18px}.sh-subject-card,.sh-offer,.sh-format-grid>article{padding:19px}.sh-hero-frame{border-radius:20px}.sh-hero-heading{top:24%;left:5%;width:43%}.sh-hero-heading h1{font-size:clamp(17px,4.5vw,31px);line-height:1.13;letter-spacing:-.03em}.sh-hero-heading h1>span{font-size:clamp(11px,2.3vw,17px);margin-top:10px;line-height:1.5}.sh-intro{padding:17px 15px;gap:18px}.sh-intro-copy{gap:11px}.sh-intro-copy>.art{width:34px;height:34px}.sh-intro p{font-size:13px}.sh-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}.sh-actions .button{padding:11px 10px;font-size:12px;text-align:center}.sh-filters{padding:16px}.sh-group-buttons{gap:8px}.sh-group-buttons button{padding:10px 12px}.sh-search button{padding:10px}.subjects-hub .sh-next{display:block;padding:20px}.sh-next>div:first-child{padding-left:48px}.sh-next .art{width:34px;height:34px}.sh-next h2{font-size:23px}.sh-next .sh-actions{margin-top:20px}.subjects-hub .sh-sources{padding:18px;align-items:flex-start}.subjects-hub .sh-table,.subjects-hub .sh-table tbody{display:block;width:100%}.subjects-hub .sh-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.subjects-hub .sh-table tr{display:block;padding:18px;border-bottom:1px solid var(--border)}.subjects-hub .sh-table tbody th:first-child,.subjects-hub .sh-table th,.subjects-hub .sh-table td{display:block;width:100%;padding:0;border:none;font-size:13px}.subjects-hub .sh-table td{margin-top:14px}.subjects-hub .sh-table td::before{content:attr(data-label);display:block;font-size:11px;font-weight:650;color:var(--accent);margin-bottom:5px}.subjects-hub .sh-table th{font-size:15px}.subjects-hub .sh-table caption{display:block;width:100%;font-size:12px;line-height:1.8;padding:16px}}
@media(prefers-reduced-motion:reduce){.subjects-hub *{scroll-behavior:auto!important;transition:none!important}}
