/* Homepage and general-exam hub only. Shared note and mock styles are unchanged. */
.hub-home-intro,.hub-page .hub-intro{padding-block:clamp(42px,6vw,82px)}
.hub-home-intro{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);align-items:end;gap:clamp(24px,5vw,72px)}
.hub-home-heading h1,.hub-intro h1{font-family:var(--serif);font-weight:400;letter-spacing:-.055em;line-height:1.02;font-size:clamp(45px,6.9vw,88px);margin:16px 0 20px;color:#183b32}
.hub-home-heading h1 em,.hub-intro h1 em{color:#66825c;font-weight:400}
.hub-home-heading>p:last-child,.hub-intro>p:not(.eyebrow){font-size:16px;line-height:1.75;max-width:59ch;color:#4f6056}
.hub-home-search{padding:22px 0 5px;min-width:0}
.hub-home-search .search-large{max-width:none;margin:12px 0 0}
.hub-home-search .intent-switch{flex-wrap:wrap;gap:10px}
.hub-home-search .search-form{border-radius:14px}
.hub-home-paths,.hub-section{padding-block:clamp(26px,4vw,50px)}
.hub-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.hub-section-heading>p,.hub-section>p:not(.eyebrow){color:#52635a;line-height:1.65;font-size:14px;max-width:62ch}
.hub-section h2,.hub-section-heading h2,.hub-home-footer h2{font-family:var(--serif);font-weight:400;font-size:clamp(29px,3.8vw,46px);letter-spacing:-.035em;line-height:1.16;margin:10px 0 13px}
.hub-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.hub-feature{position:relative;overflow:hidden;isolation:isolate;min-width:0;display:flex;flex-direction:column;padding:clamp(22px,3.4vw,40px);border-radius:24px;min-height:360px;box-shadow:0 12px 35px #173b3212}
.hub-science{background:#183e33;color:#eef4e6;border:1px solid #234d3d}
.hub-general{background:#efe8d9;color:#2e3b37;border:1px solid #dfd3bc}
.hub-feature-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hub-feature-label{font-size:11px;font-weight:650;letter-spacing:.075em;text-transform:uppercase;line-height:1.4}
.hub-feature-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid currentColor;border-radius:50%;opacity:.85;flex-shrink:0}
.hub-feature-copy{z-index:1;position:relative;max-width:72%;margin-block:24px 22px}
.hub-feature h3{font-family:var(--serif);font-weight:400;color:inherit;letter-spacing:-.045em;font-size:clamp(35px,4.4vw,61px);line-height:1.01;margin-bottom:16px}
.hub-feature p{font-size:14px;line-height:1.7;color:inherit;max-width:37ch}
.hub-feature-art{position:absolute;z-index:-1;right:-4%;top:16%;width:48%;opacity:.32;pointer-events:none}
.hub-feature-art svg{width:100%;height:auto;display:block}
.hub-exam-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto;margin-bottom:24px}
.hub-exam-links>a,.hub-exam-links>span{display:inline-flex;align-items:center;min-height:32px;padding:6px 11px;border:1px solid currentColor;border-radius:30px;font-size:12px;line-height:1.2;color:inherit}
.hub-science .hub-exam-links>a{border-color:#b4ceab75;background:#234b3d}
.hub-general .hub-exam-links>span{border-color:#ad9d7e70;background:#f6f0e5}
.hub-primary-link{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid currentColor;padding-top:17px;font-size:15px;font-weight:650;min-height:48px;color:inherit}
.hub-primary-link>span{display:grid;place-items:center;border-radius:50%;width:36px;height:36px;border:1px solid currentColor;flex-shrink:0}
.hub-primary-link .icon{width:19px;height:19px}
.hub-quick-grid,.hub-beyond-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:22px}
.hub-quick-card,.hub-item{border:1px solid #d7ddd1;background:#fffefa;border-radius:17px;padding:20px;min-width:0;color:#183b32;transition:box-shadow .2s,border-color .2s,transform .2s}
.hub-quick-card,.hub-quick-card.home-practice-card{display:grid;grid-template-columns:42px minmax(0,1fr) 22px;gap:15px;align-items:center}
.hub-quick-card>.icon:first-child,.hub-letter{display:grid;place-items:center;width:42px;height:42px;padding:9px;border-radius:12px;background:#e8efe1;color:#315c43}
.hub-letter{font-family:var(--serif);font-size:19px;line-height:1}
.hub-quick-card h3,.hub-item h3{font-size:19px;font-weight:600;line-height:1.25;margin:0 0 7px;overflow-wrap:anywhere}
.hub-quick-card p,.hub-item p,.hub-quick-card.home-practice-card p{font-size:13px;line-height:1.6;color:#52635a;margin:0}
.hub-item{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:24px}
.hub-item>.icon{width:28px;height:28px;margin-bottom:6px;color:#55734e}
.hub-item-link{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:12px;color:#245a3b;font-size:13px;font-weight:650}
.hub-item-link .icon{width:18px;height:18px}
.hub-home-footer{background:#eef1e7;border-block:1px solid #dfe4d5;margin-top:34px;padding:40px 0}
.hub-home-footer>.container,.hub-bottom{display:flex;justify-content:space-between;align-items:center;gap:22px;flex-wrap:wrap}
.hub-home-footer p:not(.eyebrow),.hub-bottom p{font-size:15px;line-height:1.7;color:#52635a}
.hub-page .hub-intro{border-bottom:1px solid #d7ddd1}
.hub-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:24px}
.hub-item-pending{background:#f4f3ed}
.hub-status{color:#5c645c;font-size:12px;margin-top:auto;padding-top:12px}
.hub-bottom{padding-block:25px;border-top:1px solid #d7ddd1}
.hub-home-paths a:focus-visible,.hub-page a:focus-visible,.hub-quick-card:focus-visible,.hub-beyond a:focus-visible{outline:3px solid #718e53;outline-offset:4px}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){a.hub-item:hover,.hub-quick-card:hover{transform:translateY(-3px);border-color:#8ba684;box-shadow:0 12px 26px #173b3210}.hub-primary-link:hover>span{background:#ffffff26;transform:translateX(3px)}.hub-exam-links>a:hover{background:#40674f}}
@media(max-width:900px){.hub-home-intro{grid-template-columns:1fr;gap:14px}.hub-home-search{max-width:650px}.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.hub-duo,.hub-quick-grid,.hub-beyond-grid,.hub-grid{grid-template-columns:1fr}.hub-feature{min-height:310px;border-radius:19px}.hub-feature-copy{max-width:80%}.hub-feature-art{right:-6%;width:45%;top:22%}.hub-section-heading{display:block}.hub-section-heading>p{margin-top:6px}.hub-home-intro,.hub-page .hub-intro{padding-block:36px}.hub-quick-card,.hub-quick-card.home-practice-card{padding:16px;gap:11px}.hub-quick-card h3{font-size:17px}.hub-home-heading h1,.hub-intro h1{font-size:clamp(39px,10.5vw,58px)}.hub-home-footer{padding:30px 0}}
@media(prefers-reduced-motion:reduce){.hub-item,.hub-quick-card,.hub-primary-link>span{transition:none;transform:none}}

/* Clean homepage portals: each card has a single destination. */
.home-page .hub-home-intro{padding-block:clamp(28px,4vw,56px)}
.home-page .hub-home-paths{padding-top:12px}
.home-page .hub-feature{min-height:310px;padding:clamp(22px,3vw,36px);text-decoration:none;transition:box-shadow .22s ease,border-color .22s ease}
.home-page .hub-feature-copy{max-width:75%;margin:24px 0 16px}
.home-page .hub-feature h3{font-size:clamp(32px,4vw,53px);margin:0;line-height:1.06}
.home-page .hub-feature-art{top:47px;right:-3%;width:44%;opacity:.8}
.home-page .hub-feature .hub-card-exams{position:relative;z-index:1;max-width:100%;margin:10px 0 22px;font-size:14px;font-weight:500;line-height:1.85}
.home-page .hub-primary-link{border-color:#ffffff40;margin-top:auto}
.home-page .hub-general .hub-primary-link{border-color:#9c886c66}
@media(hover:hover) and (pointer:fine){.home-page .hub-feature:hover{box-shadow:0 16px 40px #173b3226}.home-page .hub-feature:hover .hub-primary-link>span{transform:translateX(3px);background:#ffffff26}}
@media(max-width:680px){.home-page .hub-feature{min-height:275px}.home-page .hub-feature-copy{max-width:76%;margin-top:18px}.home-page .hub-feature-art{top:52px;right:-3%;width:43%}.home-page .hub-feature h3{font-size:clamp(30px,7vw,42px)}}
@media(prefers-reduced-motion:reduce){.home-page .hub-feature,.home-page .hub-primary-link>span{transition:none;transform:none}.home-page .hub-feature:hover .hub-primary-link>span{transform:none}}

/* Approved transparent career illustration, isolated from the Biology portal. */
.home-page .hub-general .hub-feature-art:has(.hub-job-illustration){opacity:1;right:1%;top:49px;width:41%}
.home-page .hub-job-illustration{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:680px){.home-page .hub-general .hub-feature-art:has(.hub-job-illustration){width:39%;right:0;top:57px}}

/* Editorial, ink-style visual for the homepage section introduction. */
.home-page .hub-illustrated-heading{display:flex;align-items:center;justify-content:space-between;gap:clamp(12px,4vw,36px);margin-bottom:18px}
.home-page .hub-illustrated-heading h2{max-width:22ch;margin:0}

@media(max-width:680px){.home-page .hub-illustrated-heading{gap:10px;margin-bottom:15px}.home-page .hub-illustrated-heading h2{font-size:clamp(25px,5.7vw,34px)}}

/* Biology entry: three independent learning destinations. */
.biology-pathway-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:6px 0 58px}
.biology-pathways .biology-pathway-card{padding:clamp(20px,3vw,32px);min-height:255px;gap:12px}
.biology-pathway-symbol{display:grid;place-items:center;width:58px;height:58px;border-radius:15px;background:#e8efe1;color:#376447;margin-bottom:8px}
.biology-pathway-symbol .icon{width:32px;height:32px}
.biology-pathways .biology-pathway-card h2{font-family:var(--serif);font-weight:400;font-size:clamp(26px,3vw,35px);line-height:1.15;margin:0;color:inherit;overflow-wrap:anywhere}
.biology-pathways .biology-pathway-card:focus-visible{outline:3px solid #718e53;outline-offset:4px}
html[data-reading-dark=true] .biology-pathway-card{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-reading-dark=true] .biology-pathway-card :is(p,.hub-item-link,.eyebrow){color:var(--body)}
@media(max-width:900px){.biology-pathway-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.biology-pathway-grid{grid-template-columns:1fr;gap:12px;padding-bottom:36px}.biology-pathways .biology-pathway-card{min-height:0}.biology-pathway-symbol{width:46px;height:46px}}

/* The general hub has three entry choices and reuses the shared subject library. */
.general-hub-page .general-hub-search{max-width:680px;margin-top:24px}
.general-hub-page .ge-home-catalogue .directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.general-hub-page .general-prep-card{min-height:200px}
@media(max-width:900px){.general-hub-page .ge-home-catalogue .directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.general-hub-page .ge-home-catalogue .directory-grid{grid-template-columns:1fr}.general-hub-page .general-prep-card{min-height:0}}
