/* Shared learning surfaces, September 2026. Existing data and routes stay authoritative. */
.fh-polished{--fh-ink:#162731;--fh-green:#11392c;--fh-orange:#f1663d;--fh-mint:#dbf0e7;--fh-peach:#ffe5c1;--fh-lilac:#e7dfff;--fh-blue:#dceaff;color:var(--fh-ink)}
.fh-polished :is(button,.button,a,input,select,textarea,summary):focus-visible{outline:3px solid #256bba;outline-offset:3px}
.fh-polished :is(.button,button,summary,.home-shortcuts a,.home-secondary-link,.resource-row,.fh-update-card){transition:background-color .16s ease,box-shadow .16s ease,transform .16s ease}
@media(hover:hover){.fh-polished :is(.home-shortcuts a,.fh-update-card,.home-secondary-link):hover{transform:translateY(-2px);box-shadow:0 5px 16px #173d2b12}}
.fh-polished :is(.button,button):active{transform:scale(.98)}
.fh-polished :is(.card,.account-panel,.comparison-card,.product-card,.topic-test-hub,.qa-card,.store-empty){border-radius:16px;border:1px solid #173d2b20;box-shadow:0 3px 12px #173d2b06}
.fh-polished :is(.section,.detail-section,.page-section){padding-block:clamp(16px,3vw,32px)}
.fh-polished :is(h1,h2,h3){text-wrap:balance;line-height:1.2;letter-spacing:-.025em}
.fh-polished :is(.button,.store-filter select,.filter-bar select){min-height:40px;padding:9px 12px;border-radius:10px;line-height:1.25}
.fh-polished .brand{min-width:0}.fh-polished .brand span{text-transform:uppercase}
.fh-intro{padding-block:16px 10px}.fh-intro h1{font-size:clamp(26px,3.7vw,40px);margin:0;color:var(--fh-green);font-weight:800}.fh-intro p{font-size:clamp(14px,1.5vw,17px);line-height:1.5;color:#52686d;margin:6px 0 0;max-width:650px}
.fh-polished .home-shortcuts{padding-block:0 8px}.fh-polished .home-shortcuts .shell{gap:10px}.fh-polished .home-shortcuts a{padding:12px 14px;min-height:68px;border-radius:14px;display:flex;justify-content:center;flex-direction:column;gap:4px}.fh-polished .home-shortcuts strong{font-size:17px;line-height:1.25}.fh-polished .home-shortcuts span{font-size:13px;line-height:1.35}
.fh-polished .home-shortcuts a:nth-child(4n+1),.fh-update-card:nth-child(4n+1){background:var(--fh-mint)}.fh-polished .home-shortcuts a:nth-child(4n+2),.fh-update-card:nth-child(4n+2){background:var(--fh-peach)}.fh-polished .home-shortcuts a:nth-child(4n+3),.fh-update-card:nth-child(4n+3){background:var(--fh-lilac)}.fh-polished .home-shortcuts a:nth-child(4n+4),.fh-update-card:nth-child(4n+4){background:var(--fh-blue)}
.fh-polished .home-secondary-links{padding-block:0 8px}.fh-polished .home-secondary-links .shell{gap:8px}.fh-polished .home-secondary-link{min-height:40px;padding:9px 12px;border-radius:12px;background:#fff;border:1px solid #173d2b20}
.fh-polished .top-search{padding-block:2px 12px}.fh-polished .filter-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;border-radius:16px;align-items:start}.fh-polished .filter-bar .search-field{min-width:0;grid-column:1}.fh-polished .filter-bar .search-field input{min-height:42px;padding:10px 10px 10px 38px;font-size:15px}.fh-polished .filter-bar>.button{grid-column:2;grid-row:1;align-self:center}.fh-polished .filter-reset{grid-row:auto!important}.fh-filter-details{grid-column:1/-1;min-width:0}.fh-filter-details>summary{font-weight:700;font-size:13px;color:var(--fh-green);cursor:pointer;min-height:32px;display:flex;align-items:center;gap:8px}.fh-filter-details>summary:after{content:'⌄';margin-left:auto}.fh-filter-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding-top:6px}.fh-filter-fields select{width:100%;min-width:0;font-size:13px}.fh-filter-fields .advanced-filters{grid-column:1/-1}
.fh-polished .resource-groups{gap:12px}.fh-polished .class-resource-heading{padding:14px;gap:8px;min-height:0}.fh-polished .class-resource-label{font-size:20px}.fh-polished .class-resource-box{border-radius:16px}.fh-polished .resource-grid{gap:8px}.fh-polished .resource-row{min-height:44px;padding:10px 12px;border-radius:10px}
.fh-sort{display:flex;justify-content:flex-end;align-items:center;gap:8px;font-size:12px;font-weight:700;margin:8px 0;color:var(--fh-green)}.fh-sort select{font:inherit;min-height:38px;max-width:210px;background:var(--fh-blue);border:1px solid #173d2b20;border-radius:9px;padding:8px 10px}.fh-question-context{margin:8px 0;padding:8px 12px;border-left:3px solid var(--fh-orange);background:var(--fh-mint);font-size:15px;line-height:1.6}
.fh-updates{padding-block:10px 14px}.fh-updates h2{font-size:20px;margin:0 0 10px}.fh-update-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px}.fh-update-card{display:flex;flex-direction:column;gap:5px;border-radius:14px;padding:14px;text-decoration:none;color:var(--fh-ink);border:1px solid #173d2b20;min-width:0}.fh-update-card strong{font-size:16px}.fh-update-card p{font-size:13px;line-height:1.5;margin:0;white-space:pre-line}.fh-update-card small{font-size:11px;letter-spacing:.06em;color:#3e6054;font-weight:700;text-transform:uppercase}
.fh-polished .topic-test-hub{background:linear-gradient(110deg,#fff1df,#f1edff);margin:16px 0 0;padding:14px}.fh-polished .topic-test-hub h2{font-size:22px}.fh-polished .topic-test-hub>p{font-size:14px;margin:5px 0 10px}.fh-polished .topic-test-card{background:#ffffffb3;border-radius:12px;padding:10px}.fh-polished .topic-test-card .button{background:var(--fh-orange);color:var(--fh-ink);min-height:40px}
.fh-polished .resource-actions-top{z-index:20;top:var(--fh-header-bottom,0px);padding:6px;display:flex;gap:6px;background:#faf7effa;isolation:isolate}.fh-polished .resource-actions-top>.button,.fh-polished .resource-actions-top>form{flex:1;min-width:0}.fh-polished .resource-actions-top .button{width:100%;font-size:11px;padding:7px 3px;min-height:28px;white-space:nowrap}.fh-polished .resource-actions-top>form{margin:0}.fh-polished .resource-actions-top>[data-resume-reading]{display:none}
.fh-polished .continue-studying-popup{position:fixed!important;right:16px;left:auto;bottom:calc(16px + env(safe-area-inset-bottom));width:min(380px,calc(100vw - 32px));min-height:48px;max-height:none;padding:8px 10px;background:var(--fh-orange)!important;border:0;border-radius:14px;box-shadow:0 6px 25px #11392c22;z-index:70;display:flex;align-items:center;gap:8px}.fh-polished .continue-studying-label{color:var(--fh-ink);font-size:10px;letter-spacing:.06em}.fh-polished .continue-studying-link{color:var(--fh-ink);font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.fh-polished .continue-studying-dismiss{color:var(--fh-ink);background:transparent;min-width:36px;min-height:36px;padding:0;font-size:22px}.fh-has-resume main{padding-bottom:80px}.fh-polished .mobile-bottom-nav{display:none!important}
.fh-polished .site-footer{padding-block:22px calc(22px + env(safe-area-inset-bottom))}.fh-polished .footer-nav{gap:10px 20px}.fh-polished .footer-nav a{font-size:14px;padding:5px 0}.fh-polished .footer-nav a[href^="mailto:"]{color:#ffd6aa;font-weight:700}
@media(max-width:720px){.fh-polished .home-shortcuts .shell{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.fh-polished .home-shortcuts strong{font-size:15px}.fh-polished .home-shortcuts span{font-size:12px}.fh-polished .home-secondary-links .shell{grid-template-columns:repeat(2,minmax(0,1fr))}.fh-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.fh-polished .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fh-polished .resource-row{font-size:13px}.fh-polished .brand span{font-size:clamp(10px,2.8vw,14px)}.fh-polished .topic-test-modes{gap:6px}.fh-polished .topic-test-card h3{font-size:13px}.fh-polished .topic-test-card .button{font-size:11px;white-space:normal}.fh-polished .topic-test-card{padding:7px}.fh-polished .site-header{padding-top:env(safe-area-inset-top)}.fh-polished .footer-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.fh-polished *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.fh-polished .fh-sort:has(+[hidden]){display:none}

.fh-polished .home-secondary-link{white-space:normal;overflow:visible;text-overflow:clip;font-size:12px;line-height:1.3;min-height:44px}.fh-polished .home-secondary-link span{white-space:normal;overflow:visible;text-overflow:clip}
.fh-polished.fh-has-resume .ai-floating-launcher{bottom:calc(82px + env(safe-area-inset-bottom))!important}.fh-polished.fh-has-resume .ai-floating-panel{bottom:calc(136px + env(safe-area-inset-bottom))!important}
.fh-polished .home-secondary-link span:first-child{white-space:normal;overflow:visible;text-overflow:clip}
.fh-polished .next-step[hidden],.fh-polished .qa-paper-section[hidden],.fh-polished .qa-extract-heading[hidden]{display:none!important}
