/* Maths Teacher Hub, unified refreshed frontend */
:root{
 --mth-bg:#b9f3cf;--mth-bg-soft:#eaf9f0;--mth-paper:#fbfffc;--mth-white:#fff;
 --mth-ink:#102a1d;--mth-text:#294b37;--mth-muted:#5c7767;--mth-deep:#123e2b;
 --mth-green:#26a968;--mth-green-dark:#17643d;--mth-line:rgba(15,91,57,.17);
 --mth-grid:rgba(15,91,57,.11);--mth-shadow:0 14px 34px rgba(16,64,39,.09);
 --mth-display:Inter,Manrope,"Segoe UI",Arial,sans-serif;--mth-body:Inter,Manrope,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;--mth-hand:Inter,Manrope,"Segoe UI",Arial,sans-serif;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--mth-ink);font-family:var(--mth-body);background-color:var(--mth-bg);background-image:linear-gradient(var(--mth-grid) 1px,transparent 1px),linear-gradient(90deg,var(--mth-grid) 1px,transparent 1px);background-size:26px 26px;overflow-x:hidden}body,input,button,select,textarea{font-family:var(--mth-body)}a{color:inherit}img{max-width:100%}.container,.wrap{width:min(1180px,calc(100% - 40px));margin-inline:auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* Header */
.mth-site-header{position:sticky;top:0;z-index:1200;background:rgba(251,255,252,.96);border-bottom:1px solid var(--mth-line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.mth-header-inner{width:min(1280px,calc(100% - 40px));min-height:68px;margin:auto;display:flex;align-items:center;gap:24px}.mth-brand{display:flex;align-items:center;gap:11px;text-decoration:none;white-space:nowrap}.mth-brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:var(--mth-bg);border:2px solid rgba(15,91,57,.22);box-shadow:3px 3px 0 rgba(15,91,57,.08);font-weight:900}.mth-brand-copy{display:grid;line-height:1}.mth-brand-copy strong{font-size:.94rem;letter-spacing:.045em}.mth-brand-copy small{margin-top:4px;color:#6a8373;font-size:.59rem;font-weight:800;letter-spacing:.065em}.mth-header-links{margin-left:auto;display:flex;align-items:center;gap:2px}.mth-header-links a{padding:9px 10px;border-radius:9px;color:#294735;text-decoration:none;font-size:.79rem;font-weight:800}.mth-header-links a:hover,.mth-header-links a.is-active{background:#eaf8ef;color:#123e2b}.mth-header-links .mth-login{margin-left:5px;border:1px solid var(--mth-line);background:#fff}.mth-header-links .mth-signup{padding-inline:15px;background:#c8f5d8;border:1px solid #87d6a7;color:#103522}.mth-menu{display:none;margin-left:auto;width:42px;height:42px;border:1px solid var(--mth-line);border-radius:10px;background:#fff;color:var(--mth-deep);font-size:1.15rem;font-weight:900;cursor:pointer}

/* Main rhythm */
main{min-height:55vh}.hero{padding:34px 0 14px!important}.hero .container{position:relative}.hero-card,.hero-intro{position:relative!important;display:block!important;background:rgba(251,255,252,.93)!important;border:2px solid var(--mth-line)!important;border-radius:18px!important;box-shadow:8px 9px 0 rgba(15,91,57,.075)!important;padding:30px 32px!important;overflow:hidden!important;margin:0!important}.hero-card:after,.hero-intro:after{content:"x²   π   √   ∑";position:absolute;right:20px;top:6px;font:3.7rem var(--mth-hand);letter-spacing:.16em;color:rgba(15,91,57,.055);pointer-events:none}.hero-copy{max-width:900px!important}.hero h1,.hero-card h1,.section-title{font-family:var(--mth-display)!important;color:#101510!important;letter-spacing:.018em!important}.hero h1,.hero-card h1{font-size:clamp(3rem,5.8vw,5.7rem)!important;line-height:.9!important;margin:3px 0 10px!important}.hero h1 .outline,.hero-card h1 .outline,.section-title .outlined{display:inline-block;border:2px solid #2a9d64;padding:0 8px;transform:rotate(-.25deg)}.eyebrow,.hero-kicker,.resource-kicker{font:1rem var(--mth-hand)!important;color:#176840!important;text-transform:none!important;letter-spacing:.01em!important;margin:0 0 5px!important}.lead,.hero-copy p,.section-lead{font-size:.98rem!important;line-height:1.66!important;color:var(--mth-muted)!important;max-width:760px!important}.hero-login{margin-top:18px!important;text-align:left!important}.hero-paper-meta,.hero-note{color:var(--mth-muted)!important}.section{padding:32px 0!important}.section+.section{padding-top:18px!important}.section-head{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:24px!important;margin-bottom:17px!important}.section-head h2,.section-title{font-size:clamp(2.25rem,4vw,3.7rem)!important;line-height:.95!important;margin:0!important}.section-head p{max-width:560px!important;color:var(--mth-muted)!important;font-size:.88rem!important;line-height:1.55!important}.paper,.paper-panel,.card,.form-card,.note,.legal{background:rgba(251,255,252,.94)!important;border:2px solid var(--mth-line)!important;border-radius:16px!important;box-shadow:6px 7px 0 rgba(15,91,57,.065)!important}.paper,.paper-panel{padding:24px!important}.card{padding:20px!important}.card h2,.card h3{margin:0 0 8px!important;color:#142a1c!important}.card p{margin:0;color:var(--mth-muted)!important;line-height:1.6!important;font-size:.87rem!important}
.grid-2,.contact-grid,.founder-grid,.payment-shell{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start!important}.grid-3,.testimonial-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}.grid-4{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important}.actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:16px!important}.btn,.price-btn,.mini-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;text-decoration:none!important;border-radius:10px!important;font-weight:800!important;transition:.16s ease!important}.btn{padding:10px 14px!important;border:2px solid rgba(15,91,57,.18)!important;background:#fff!important;color:#173d29!important;font-size:.82rem!important}.btn:hover,.mini-btn:hover{transform:translateY(-1px);border-color:rgba(15,91,57,.35)!important}.btn.primary,.btn.dark{background:var(--mth-deep)!important;color:#fff!important;border-color:var(--mth-deep)!important}.btn.soft{background:#e7f9ee!important}.btn.outline{background:transparent!important}

/* Homepage */
.page-index .hero{padding-top:22px!important}.page-index .hero-intro{padding:24px 28px!important}.page-index .hero h1{font-size:clamp(3.3rem,6.3vw,6.3rem)!important}.resource-head{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:18px!important;margin:14px 2px 10px!important}.resource-head h2{font:2.25rem/1 var(--mth-display)!important;margin:0}.resource-head p{margin:4px 0 0!important;color:var(--mth-muted)!important;font-size:.86rem!important}.resource-count{font-size:.72rem!important;font-weight:900!important;border:1px solid var(--mth-line)!important;background:#f8fffa!important;padding:7px 10px!important;border-radius:999px!important}.resource-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:11px!important;padding:11px!important;background:rgba(251,255,252,.78)!important;border:2px solid var(--mth-line)!important;border-radius:18px!important;box-shadow:8px 9px 0 rgba(15,91,57,.065)!important}.resource-card{display:flex!important;flex-direction:column!important;min-width:0!important;text-decoration:none!important;background:#fff!important;border:2px solid rgba(15,91,57,.15)!important;border-radius:13px!important;overflow:hidden!important;box-shadow:0 4px 0 rgba(15,91,57,.045)!important}.resource-card:hover{transform:translateY(-3px)!important;border-color:rgba(15,91,57,.34)!important}.resource-media,.resource-symbol{height:108px!important;background:#eaf8ef!important;border-bottom:1px solid var(--mth-line)!important}.resource-media img{width:100%!important;height:100%!important;object-fit:cover!important;filter:saturate(.82) contrast(.98)!important}.resource-symbol{display:grid!important;place-items:center!important;font:2.4rem var(--mth-display)!important;color:#164c31!important;background-image:linear-gradient(rgba(14,96,56,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(14,96,56,.09) 1px,transparent 1px)!important;background-size:18px 18px!important}.resource-body{padding:12px!important;min-height:90px!important}.resource-body h3{font-size:1.03rem!important;margin:0 0 5px!important}.resource-body p{font-size:.82rem!important;line-height:1.38!important;color:#476554!important;margin:0!important}.latest-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:14px!important}.latest-card{background:#fff!important;border:2px solid var(--mth-line)!important;border-radius:15px!important;overflow:hidden!important;box-shadow:var(--mth-shadow)!important}.latest-card img{height:180px!important;width:100%!important;object-fit:cover!important}.latest-body{padding:16px!important}.how-grid{display:grid!important;grid-template-columns:.9fr 1.1fr!important;gap:18px!important;align-items:center!important}.how-copy{padding:24px!important}.video-frame{border-radius:15px!important;overflow:hidden!important;border:2px solid var(--mth-line)!important}.price-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:12px!important}.price-card{padding:19px!important;background:#fff!important;border:2px solid var(--mth-line)!important;border-radius:15px!important;box-shadow:0 5px 0 rgba(15,91,57,.055)!important}.price-card.featured{background:#f1fff6!important;border-color:rgba(38,169,104,.36)!important}.price-value,.price{font:2.85rem/1 var(--mth-display)!important;color:#153d29!important}.school-enquiry{display:grid!important;grid-template-columns:.75fr 1.25fr!important;gap:18px!important;padding:22px!important}.founder-grid{align-items:center!important}.founder-photo{border-radius:16px!important;overflow:hidden!important}.quote-card{background:#fff!important;border:2px solid var(--mth-line)!important;border-radius:14px!important;padding:18px!important}.contact-grid{align-items:start!important}

/* Resource/topic browse */
.category-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:11px!important}.category-card{display:block!important;min-height:142px!important;background:#fff!important;border:2px solid var(--mth-line)!important;border-radius:14px!important;padding:16px!important;text-decoration:none!important;box-shadow:5px 6px 0 rgba(15,91,57,.055)!important;transition:.16s ease!important}.category-card:hover{transform:translateY(-3px)!important;border-color:rgba(15,91,57,.35)!important}.category-icon{width:40px!important;height:40px!important;display:grid!important;place-items:center!important;border-radius:10px!important;background:#dcf7e6!important;color:#12613a!important;font-weight:900!important;margin-bottom:12px!important}.category-card h3{font-size:1rem!important;margin:0 0 5px!important}.category-card p{font-size:.78rem!important;line-height:1.45!important;color:var(--mth-muted)!important;margin:0!important}.searchbar{display:flex!important;align-items:center!important;gap:10px!important;background:#fff!important;border:2px solid var(--mth-line)!important;border-radius:12px!important;padding:10px 13px!important;margin:0 0 15px!important;box-shadow:0 4px 0 rgba(15,91,57,.035)!important}.searchbar input{width:100%!important;border:0!important;background:transparent!important;outline:0!important;font-size:.9rem!important;color:var(--mth-ink)!important}.topic-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}.topic-card{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:62px!important;padding:12px 13px!important;border:2px solid rgba(15,91,57,.14)!important;border-radius:11px!important;background:#fff!important;text-decoration:none!important;color:var(--mth-ink)!important;transition:.14s ease!important}.topic-card:hover{background:#f5fff8!important;border-color:rgba(15,91,57,.32)!important;transform:translateY(-1px)!important}.topic-card strong{font-size:.82rem!important;line-height:1.25!important}.topic-card small{display:block!important;margin-top:2px!important;font-size:.67rem!important;color:#6c8274!important}.topic-arrow{width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#e6f9ed!important;color:#17643d!important;flex:none!important;font-weight:900!important}.tabs{display:flex!important;gap:7px!important;flex-wrap:wrap!important;margin-bottom:13px!important}.tab{padding:8px 12px!important;border:2px solid var(--mth-line)!important;border-radius:999px!important;background:#fff!important;color:#31513e!important;font-size:.75rem!important;font-weight:800!important;cursor:pointer!important}.tab.active{background:#193f2b!important;color:#fff!important;border-color:#193f2b!important}.library-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.library-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:74px!important;padding:13px 14px!important;background:#fff!important;border:2px solid rgba(15,91,57,.14)!important;border-radius:12px!important}.library-row h3{font-size:.86rem!important;margin:0 0 3px!important}.library-row p{margin:0!important;color:var(--mth-muted)!important;font-size:.7rem!important}.row-actions{display:flex!important;gap:6px!important;flex:none!important}.mini-btn{padding:7px 9px!important;border:1px solid var(--mth-line)!important;background:#e9faef!important;color:#17643d!important;font-size:.67rem!important}.mini-btn.dark{background:#173d29!important;color:#fff!important}.callout{display:grid!important;grid-template-columns:1fr auto!important;gap:18px!important;align-items:center!important;padding:20px!important}.callout h3{font:2rem/1 var(--mth-display)!important;margin:0 0 6px!important}.callout p{margin:0!important;color:var(--mth-muted)!important;font-size:.82rem!important}

/* Forms/account pages */
.form-card{padding:22px!important}.form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}.field,.form-group{display:flex!important;flex-direction:column!important;gap:5px!important}.field.full,.form-group.full{grid-column:1/-1!important}.field label,.form-group label{font-size:.73rem!important;font-weight:800!important;color:#294b37!important}.field input,.field textarea,.field select,.input,.form-group input,.form-group textarea,.form-group select{width:100%!important;min-height:44px!important;padding:11px 12px!important;border:2px solid rgba(15,91,57,.19)!important;border-radius:10px!important;background:#fff!important;color:var(--mth-ink)!important;font-size:.85rem!important;outline:0!important}.field textarea,.form-group textarea,textarea.input{min-height:120px!important;resize:vertical!important}.field input:focus,.field textarea:focus,.field select:focus,.input:focus{border-color:#32a96d!important;box-shadow:0 0 0 3px rgba(50,169,109,.11)!important}.payment-shell{grid-template-columns:1.25fr .75fr!important}.order-card{position:sticky!important;top:88px!important}.order-row{display:flex!important;justify-content:space-between!important;gap:12px!important;padding:11px 0!important;border-bottom:1px solid var(--mth-line)!important;font-size:.82rem!important}.order-row.total{font-weight:900!important;font-size:.92rem!important}.provider{display:flex!important;align-items:flex-start!important;gap:10px!important;padding:13px!important;border:2px solid var(--mth-line)!important;border-radius:11px!important;background:#fff!important;margin-top:9px!important;cursor:pointer!important}.provider span{display:grid!important}.provider small{color:var(--mth-muted)!important;margin-top:2px!important}.secure-box{display:flex!important;gap:10px!important;padding:13px!important;margin-top:13px!important;border-radius:11px!important;background:#eaf9f0!important;border:1px solid var(--mth-line)!important;font-size:.78rem!important}.secure-icon{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;border-radius:9px!important;background:#c8f5d8!important;color:#155c38!important;flex:none!important}.check{display:flex!important;align-items:flex-start!important;gap:8px!important;font-size:.78rem!important}.check input{width:auto!important;min-height:0!important;margin-top:3px!important}.success-mark{width:58px!important;height:58px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#c8f5d8!important;color:#116038!important;font-size:1.4rem!important;margin-bottom:13px!important}

/* FAQs / legal */
.faq{display:grid!important;gap:9px!important;max-width:900px!important}.faq details{background:#fff!important;border:2px solid var(--mth-line)!important;border-radius:12px!important;padding:0 15px!important}.faq summary{padding:14px 0!important;font-weight:800!important;cursor:pointer!important}.faq details p{padding:0 0 14px!important;margin:0!important;color:var(--mth-muted)!important;line-height:1.6!important;font-size:.86rem!important}.legal{max-width:920px!important;padding:26px 28px!important}.legal h2{font:2rem/1 var(--mth-display)!important;margin:24px 0 8px!important}.legal h2:first-child{margin-top:0!important}.legal p,.legal li{color:var(--mth-text)!important;line-height:1.72!important;font-size:.89rem!important}.legal ul{padding-left:20px!important}.note{padding:17px 19px!important;color:var(--mth-text)!important;line-height:1.55!important;font-size:.87rem!important}

/* Footer, old-site inspired but cleaner */
.mth-site-footer{margin-top:42px!important;background:#123b28!important;color:#edf7f0!important;padding:0!important;border:0!important}.mth-footer-inner{width:min(1180px,calc(100% - 40px));margin:auto;padding:38px 0 20px}.mth-footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:28px}.mth-footer-brand .mth-brand-mark{background:#b9f3cf;color:#123b28;border-color:#79c99a;box-shadow:none}.mth-footer-brand strong{display:block;font-size:.9rem;letter-spacing:.05em}.mth-footer-brand small{display:block;color:#9fc1ad;margin-top:3px;font-size:.65rem}.mth-footer-grid{display:grid!important;grid-template-columns:1fr 1fr 1fr 1.35fr!important;gap:34px!important;align-items:start!important}.mth-footer-title{margin:0 0 11px!important;font-size:.72rem!important;letter-spacing:.11em!important;text-transform:uppercase!important;color:#fff!important;font-weight:900!important}.mth-footer-links{display:grid!important;gap:7px!important}.mth-footer-links a{margin:0!important;color:#c7dfcf!important;text-decoration:none!important;font-size:.78rem!important;line-height:1.4!important;font-weight:650!important}.mth-footer-links a:hover{color:#fff!important}.mth-socials{display:grid!important;gap:7px!important}.mth-socials a{color:#c7dfcf!important;text-decoration:none!important;font-size:.78rem!important;font-weight:650!important}.mth-newsletter-copy{margin:0 0 10px!important;color:#aecab8!important;font-size:.78rem!important;line-height:1.55!important}.mth-newsletter{display:flex!important;gap:7px!important}.mth-newsletter input{min-width:0!important;flex:1!important;height:42px!important;border:1px solid rgba(255,255,255,.18)!important;background:#fff!important;color:#163724!important;border-radius:9px!important;padding:0 11px!important;font-size:.78rem!important;outline:0!important}.mth-newsletter button{height:42px!important;border:1px solid #6bc693!important;background:#b9f3cf!important;color:#103522!important;border-radius:9px!important;padding:0 13px!important;font-size:.75rem!important;font-weight:900!important;cursor:pointer!important}.mth-footer-bottom{margin-top:27px!important;padding-top:15px!important;border-top:1px solid rgba(255,255,255,.1)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;color:#93b19f!important;font-size:.69rem!important}.mth-footer-bottom a{color:#c9e1d1!important;text-decoration:none!important}.mth-footer-bottom-links{display:flex!important;gap:13px!important;align-items:center!important;flex-wrap:wrap!important}

/* Remove older footer remnants if they survive */
footer.footer:not(.mth-site-footer),footer.mini-footer{display:none!important}

@media(max-width:1050px){.mth-header-links a{padding-inline:7px;font-size:.75rem}.resource-grid{grid-template-columns:repeat(3,1fr)!important}.category-grid{grid-template-columns:repeat(3,1fr)!important}.grid-4,.price-grid{grid-template-columns:repeat(2,1fr)!important}.mth-footer-grid{grid-template-columns:repeat(2,1fr)!important}.mth-footer-grid>div:last-child{grid-column:1/-1!important}}
@media(max-width:820px){.mth-header-inner{min-height:62px}.mth-menu{display:block}.mth-header-links{display:none;position:absolute;left:20px;right:20px;top:66px;padding:10px;background:#fbfffc;border:1px solid var(--mth-line);border-radius:13px;box-shadow:0 14px 35px rgba(16,50,31,.13);flex-direction:column;align-items:stretch}.mth-header-links.is-open{display:flex}.mth-header-links a{padding:11px 12px;font-size:.83rem}.mth-header-links .mth-login{margin-left:0}.mth-brand-copy small{display:none}.topic-grid{grid-template-columns:repeat(2,1fr)!important}.library-list{grid-template-columns:1fr!important}.grid-3,.testimonial-grid{grid-template-columns:1fr 1fr!important}.grid-2,.contact-grid,.founder-grid,.payment-shell,.school-enquiry,.how-grid{grid-template-columns:1fr!important}.order-card{position:static!important}.section-head{align-items:start!important;flex-direction:column!important;gap:8px!important}.resource-grid{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:560px){.container,.wrap,.mth-header-inner,.mth-footer-inner{width:min(100% - 24px,1180px)}.hero{padding-top:22px!important}.hero-card,.hero-intro{padding:22px 18px!important;border-radius:15px!important}.hero h1,.hero-card h1{font-size:3.35rem!important}.section{padding:24px 0!important}.resource-grid,.category-grid,.topic-grid,.grid-3,.testimonial-grid,.grid-4,.price-grid{grid-template-columns:1fr!important}.resource-media,.resource-symbol{height:128px!important}.form-grid{grid-template-columns:1fr!important}.field.full,.form-group.full{grid-column:auto!important}.library-row{align-items:flex-start!important;flex-direction:column!important}.row-actions{width:100%!important}.row-actions .mini-btn{flex:1!important}.callout{grid-template-columns:1fr!important}.mth-footer-grid{grid-template-columns:1fr!important;gap:24px!important}.mth-footer-grid>div:last-child{grid-column:auto!important}.mth-newsletter{display:grid!important;grid-template-columns:1fr!important}.mth-newsletter button{width:100%!important}.mth-footer-bottom{align-items:flex-start!important;flex-direction:column!important}.resource-head{align-items:flex-start!important;flex-direction:column!important}}


/* Uploaded Maths Teacher Hub brand artwork */
.mth-brand-logo{display:block;width:auto;height:34px;max-width:245px;object-fit:contain}
.mth-footer-brand{gap:14px!important}.mth-footer-badge{display:block;width:68px;height:68px;object-fit:contain;flex:0 0 auto}
.mth-category-wordmark{display:block;width:auto;max-width:min(100%,390px);max-height:68px;object-fit:contain;object-position:left center;margin:0 0 13px}
.mth-account-wordmark{display:block;width:auto;max-width:145px;max-height:110px;object-fit:contain;margin:0 0 16px}
.hero-card .mth-category-wordmark + .eyebrow,.hero .mth-category-wordmark + .eyebrow{margin-top:2px!important}
@media(max-width:820px){.mth-brand-logo{height:30px;max-width:205px}.mth-footer-badge{width:58px;height:58px}.mth-category-wordmark{max-width:310px;max-height:58px}}
@media(max-width:480px){.mth-brand-logo{height:27px;max-width:178px}.mth-category-wordmark{max-width:265px;max-height:52px}}

/* =========================================================
   MOBILE POLISH PASS
   Keeps the desktop design intact while improving phones/tablets.
   ========================================================= */
@media (max-width: 820px){
  html{-webkit-text-size-adjust:100%}
  body{background-size:22px 22px}
  .container,.wrap,.mth-header-inner,.mth-footer-inner{width:min(100% - 28px,1180px)!important}
  .mth-site-header{position:sticky;top:0}
  .mth-header-inner{min-height:62px!important;gap:10px!important}
  .mth-brand{min-width:0;max-width:calc(100% - 58px)}
  .mth-brand-logo{height:30px!important;max-width:min(210px,100%)!important}
  .mth-menu{display:grid!important;place-items:center!important;min-width:44px!important;width:44px!important;height:44px!important;padding:0!important;font-size:1.25rem!important;touch-action:manipulation}
  .mth-header-links{left:14px!important;right:14px!important;top:68px!important;max-height:calc(100vh - 86px)!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:10px!important;gap:3px!important;border-radius:14px!important}
  .mth-header-links a{min-height:44px!important;display:flex!important;align-items:center!important;padding:11px 13px!important;font-size:.9rem!important}
  .mth-header-links .mth-login,.mth-header-links .mth-signup{margin-left:0!important;justify-content:center!important;margin-top:2px!important}

  .hero{padding:18px 0 10px!important}
  .hero-card,.hero-intro{padding:22px 20px!important;border-radius:15px!important;box-shadow:5px 6px 0 rgba(15,91,57,.06)!important}
  .hero-card:after,.hero-intro:after{display:none!important}
  .hero h1,.hero-card h1{font-size:clamp(3rem,12vw,4.5rem)!important;line-height:.92!important}
  .hero-copy p,.lead,.section-lead{font-size:1rem!important;line-height:1.6!important}
  .hero-login{margin-top:14px!important}

  .section{padding:30px 0!important}
  .section+.section{padding-top:16px!important}
  .section-head{margin-bottom:15px!important}
  .section-head h2,.section-title{font-size:clamp(2.25rem,10vw,3.35rem)!important}
  .section-head p{font-size:.96rem!important;line-height:1.55!important}
  .paper,.paper-panel,.card,.form-card,.legal{border-radius:14px!important}
  .paper,.paper-panel,.legal{padding:20px!important}

  .resource-head{margin-top:13px!important}
  .resource-head h2{font-size:2rem!important}
  .resource-head p{font-size:.94rem!important;line-height:1.5!important}
  .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:10px!important}
  .resource-card{border-radius:12px!important}
  .resource-media,.resource-symbol{height:auto!important;aspect-ratio:5/2!important;min-height:0!important}
  .resource-media img{width:100%!important;height:100%!important;object-fit:cover!important}
  .resource-body{padding:12px!important;min-height:0!important}
  .resource-body h3{font-size:1.05rem!important;line-height:1.2!important}
  .resource-body p{font-size:.9rem!important;line-height:1.45!important}

  .latest-grid,.grid-3,.testimonial-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .latest-card img{height:auto!important;aspect-ratio:16/9!important}
  .grid-4,.price-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .price-card{padding:18px!important}
  .price-card p{min-height:0!important;font-size:.92rem!important}
  .price-btn,.btn,.mini-btn,.submit{min-height:46px!important;font-size:.9rem!important}

  .grid-2,.contact-grid,.founder-grid,.payment-shell,.school-enquiry,.how-grid{grid-template-columns:1fr!important}
  .founder-photo img{width:180px!important;height:180px!important}
  .tutoring-card{align-items:flex-start!important}
  .order-card{position:static!important}

  .form-grid{grid-template-columns:1fr!important;gap:12px!important}
  .field.full,.form-group.full,.submit{grid-column:auto!important}
  .field input,.field textarea,.field select,.input,.form-group input,.form-group textarea,.form-group select{font-size:16px!important;min-height:48px!important;padding:12px 13px!important}
  .field label,.form-group label{font-size:.8rem!important}
  .field textarea,.form-group textarea,textarea.input{min-height:130px!important}

  .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .library-list{grid-template-columns:1fr!important}
  .library-row{gap:12px!important}
  .row-actions{flex-wrap:wrap!important}
  .row-actions .mini-btn{min-height:44px!important}
  table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

  .mth-footer-inner{padding-top:30px!important}
  .mth-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important}
  .mth-footer-grid>div:last-child{grid-column:1/-1!important}
  .mth-footer-title{font-size:.78rem!important}
  .mth-footer-links a,.mth-socials a,.mth-newsletter-copy{font-size:.86rem!important}
  .mth-newsletter input,.mth-newsletter button{height:46px!important;font-size:16px!important}
  .mth-footer-bottom{align-items:flex-start!important;flex-direction:column!important;gap:10px!important}
}

@media (max-width: 620px){
  .container,.wrap,.mth-header-inner,.mth-footer-inner{width:min(100% - 22px,1180px)!important}
  .hero-card,.hero-intro{padding:19px 16px!important}
  .hero h1,.hero-card h1{font-size:clamp(2.85rem,15vw,3.8rem)!important}
  .section{padding:26px 0!important}

  /* The ten homepage artwork cards stay wide, matching the 800 x 320 artwork ratio. */
  .resource-grid{grid-template-columns:1fr!important;gap:10px!important;padding:9px!important}
  .resource-card{display:flex!important;grid-template-columns:none!important}
  .resource-media,.resource-symbol{width:100%!important;height:auto!important;aspect-ratio:5/2!important;border-right:0!important;border-bottom:1px solid var(--mth-line)!important}
  .resource-body{min-height:0!important;display:block!important;padding:13px 14px 14px!important}
  .resource-body h3{font-size:1.08rem!important;margin-bottom:5px!important}
  .resource-body p{font-size:.94rem!important}

  .latest-grid,.grid-3,.testimonial-grid,.grid-4,.price-grid,.topic-grid,.category-grid{grid-template-columns:1fr!important}
  .latest-body{padding:15px!important}
  .price-value,.price{font-size:2.65rem!important}
  .price-btn{width:100%!important}
  .paper,.paper-panel,.card,.form-card,.legal{padding:17px!important}
  .founder-photo img{width:155px!important;height:155px!important}
  .tutoring-card{flex-direction:column!important;gap:10px!important}
  .tutoring-card a{width:100%!important;min-height:44px!important;display:flex!important;align-items:center!important}

  .mth-footer-brand{align-items:flex-start!important}
  .mth-footer-badge{width:54px!important;height:54px!important}
  .mth-footer-grid{grid-template-columns:1fr!important;gap:22px!important}
  .mth-footer-grid>div:last-child{grid-column:auto!important}
  .mth-newsletter{grid-template-columns:1fr!important;display:grid!important}
  .mth-newsletter button{width:100%!important}
  .mth-footer-bottom-links{gap:10px!important}
}

@media (max-width: 390px){
  .mth-brand-logo{height:26px!important;max-width:168px!important}
  .hero h1,.hero-card h1{font-size:2.8rem!important}
  .section-head h2,.section-title{font-size:2.35rem!important}
  .resource-head h2{font-size:1.85rem!important}
}

/* ============================================================
   MTH BRAND MINT REFINEMENT
   Keeps the original Maths Teacher Hub frontend theme/layout,
   while replacing overly dark CTA/footer colours with logo mint.
   ============================================================ */
:root{
  --mth-logo-green:#a9eed0;
  --mth-logo-green-soft:#e3faf0;
  --mth-logo-green-mid:#82dcb7;
  --mth-logo-green-ink:#123827;
}

.mth-header-links .mth-signup,
.btn.primary,
.btn.dark,
.submit,
.price-btn,
.mini-btn.dark{
  background:var(--mth-logo-green)!important;
  border-color:var(--mth-logo-green-mid)!important;
  color:var(--mth-logo-green-ink)!important;
}
.mth-header-links .mth-signup:hover,
.btn.primary:hover,
.btn.dark:hover,
.submit:hover,
.price-btn:hover,
.mini-btn.dark:hover{
  background:#98e8c7!important;
  border-color:#68cfa4!important;
  color:#0e3021!important;
}
.tab.active{
  background:var(--mth-logo-green)!important;
  border-color:var(--mth-logo-green-mid)!important;
  color:var(--mth-logo-green-ink)!important;
}

/* Keep the original footer structure, but use the actual logo colour. */
.mth-site-footer{
  background:linear-gradient(180deg,#b9f3dc 0%,#a9eed0 100%)!important;
  color:var(--mth-logo-green-ink)!important;
  border-top:1px solid rgba(30,105,72,.13)!important;
}
.mth-footer-brand .mth-brand-mark{
  background:#f8fffb!important;
  color:var(--mth-logo-green-ink)!important;
  border-color:rgba(34,113,77,.15)!important;
}
.mth-footer-brand strong,.mth-footer-title{color:#102f21!important}
.mth-footer-brand small,.mth-newsletter-copy{color:#416e58!important}
.mth-footer-links a,.mth-socials a,.mth-footer-bottom,.mth-footer-bottom a{color:#315f49!important}
.mth-footer-links a:hover,.mth-socials a:hover,.mth-footer-bottom a:hover{color:#0d3a27!important}
.mth-footer-bottom{border-top-color:rgba(18,74,48,.12)!important}
.mth-newsletter input{
  border-color:rgba(21,91,58,.14)!important;
  background:#fff!important;
  color:#153a28!important;
}
.mth-newsletter button{
  background:#fff!important;
  border-color:rgba(28,105,70,.15)!important;
  color:#17452f!important;
}

/* Production finishing */
.mth-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.hero-wordmark{display:block;width:min(720px,92%);height:auto;max-height:150px;object-fit:contain;object-position:left center;margin:2px 0 14px}
.hero-wordmark + .lead{margin-top:0}
.resource-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.member-gate-btn{cursor:pointer}
.member-modal{position:fixed;inset:0;z-index:3000;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(15,42,28,.58);backdrop-filter:blur(4px)}
.member-modal.open{display:flex}.member-modal-card{width:min(480px,100%);background:#fbfffc;border:2px solid rgba(15,91,57,.2);border-radius:20px;padding:26px;box-shadow:0 25px 70px rgba(15,42,28,.22)}.member-modal-card h2{margin:0 0 8px;font-size:1.55rem}.member-modal-card p{color:var(--mth-muted);line-height:1.6;margin:0 0 18px}.member-modal-actions{display:flex;gap:9px;flex-wrap:wrap}.member-modal-actions .btn{flex:1;min-width:140px}
.search-wrap{display:flex;align-items:center;gap:10px;max-width:660px;margin-top:18px;padding:5px 6px 5px 15px;background:#fff;border:2px solid rgba(15,91,57,.17);border-radius:15px;box-shadow:0 7px 22px rgba(16,64,39,.06)}.search-wrap:focus-within{border-color:#6dc89e;box-shadow:0 0 0 4px rgba(109,200,158,.15),0 7px 22px rgba(16,64,39,.06)}.search-wrap svg{width:19px;height:19px;color:#5f7d6b;flex:none}.search-wrap .search{margin:0!important;max-width:none!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:12px 4px!important;min-height:44px!important}.search-clear{display:none;min-width:42px;height:42px;border:0;border-radius:10px;background:#eaf8ef;color:#315b45;font-weight:900;cursor:pointer}.search-wrap.has-value .search-clear{display:block}
.wordmark-heading .title{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
@media(max-width:560px){.hero-wordmark{width:min(520px,100%);max-height:105px}.search-wrap{max-width:none}.member-modal-actions{display:grid;grid-template-columns:1fr}.member-modal-actions .btn{width:100%}}
/* Maths Teacher Hub, UI polish layer (September 2026)
   Presentation only: no application or database logic. */
:root{
  --ui-mint:#a9eed0;
  --ui-mint-strong:#78d8ae;
  --ui-mint-soft:#eafaf3;
  --ui-ink:#173427;
  --ui-text:#355548;
  --ui-muted:#6c8379;
  --ui-line:#d9e9e1;
  --ui-line-strong:#bfd9cc;
  --ui-surface:#ffffff;
  --ui-surface-soft:#f7fcf9;
  --ui-shadow:0 12px 34px rgba(28,70,51,.08);
  --ui-shadow-hover:0 16px 42px rgba(28,70,51,.12);
  --ui-radius:20px;
  --ui-radius-sm:13px;
}

/* ---------- Base ---------- */
html{scroll-padding-top:84px}
body{
  color:var(--ui-ink)!important;
  background-color:#eef9f3!important;
  background-image:
    linear-gradient(rgba(40,113,79,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(40,113,79,.055) 1px,transparent 1px)!important;
  background-size:28px 28px!important;
}
.container,.wrap{width:min(1220px,calc(100% - 44px))!important}
main{min-height:62vh}

/* ---------- Header ---------- */
.mth-site-header{
  background:rgba(255,255,255,.88)!important;
  border-bottom:1px solid rgba(44,104,77,.12)!important;
  box-shadow:0 5px 24px rgba(30,74,53,.045)!important;
}
.mth-header-inner{min-height:72px!important;gap:22px!important}
.mth-brand-logo{height:37px!important;width:auto!important;max-width:250px!important}
.mth-header-links{gap:3px!important}
.mth-header-links a{
  padding:10px 11px!important;
  border-radius:11px!important;
  font-size:.8rem!important;
  color:#375448!important;
  transition:background .16s ease,color .16s ease,transform .16s ease!important;
}
.mth-header-links a:hover{background:#f0faf5!important;color:#16392a!important}
.mth-header-links .mth-login{border-color:#dceae3!important;background:#fff!important}
.mth-header-links .mth-signup{
  margin-left:5px!important;
  padding-inline:17px!important;
  background:var(--ui-mint)!important;
  border:1px solid var(--ui-mint-strong)!important;
  color:#153c2b!important;
  box-shadow:none!important;
}
.mth-header-links .mth-signup:hover{background:#96e6c3!important;transform:translateY(-1px)!important}

/* ---------- Page hero ---------- */
.hero{padding:30px 0 18px!important}
.hero-card,.hero-intro,
.wrap > .hero{
  position:relative!important;
  background:rgba(255,255,255,.94)!important;
  border:1px solid var(--ui-line)!important;
  border-radius:24px!important;
  box-shadow:var(--ui-shadow)!important;
  overflow:hidden!important;
}
.hero-card,.hero-intro{padding:34px 36px!important}
.wrap > .hero{padding:34px 36px!important;margin:30px 0 22px!important}
.hero-card:after,.hero-intro:after,.wrap > .hero:after{
  content:"π   x²   √   ∑";
  position:absolute;right:28px;top:10px;
  font-family:var(--mth-hand,"Patrick Hand",cursive);font-size:3.4rem;letter-spacing:.14em;
  color:rgba(27,110,73,.045);pointer-events:none
}
.hero h1,.hero-card h1,.title{
  font-family:var(--mth-display,"Bebas Neue",sans-serif)!important;
  font-size:clamp(3rem,5vw,5rem)!important;
  line-height:.94!important;
  letter-spacing:.018em!important;
  margin:4px 0 11px!important;
  color:#142d21!important;
}
.eyebrow,.hero-kicker,.resource-kicker{
  color:#337254!important;
  font-weight:800!important;
}
.lead,.hero-copy p,.section-lead{color:var(--ui-text)!important;line-height:1.67!important}

/* ---------- Generic surfaces ---------- */
.paper,.paper-panel,.card,.form-card,.legal,.panel{
  background:rgba(255,255,255,.96)!important;
  border:1px solid var(--ui-line)!important;
  border-radius:var(--ui-radius)!important;
  box-shadow:var(--ui-shadow)!important;
}
.panel{padding:18px!important;margin-bottom:24px!important}
.paper,.paper-panel{box-shadow:var(--ui-shadow)!important}
.section{padding:38px 0!important}
.section+.section{padding-top:22px!important}
.section-head{margin-bottom:20px!important}
.section-head h2,.section-title{color:#183326!important}

/* ---------- Buttons ---------- */
.btn,.mini-btn,.price-btn,.submit{
  border-radius:12px!important;
  box-shadow:none!important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease!important;
}
.btn{min-height:42px!important;padding:9px 15px!important}
.btn.primary,.btn.dark,.mini-btn.dark,.submit,.price-card.featured .price-btn{
  background:var(--ui-mint)!important;
  border-color:var(--ui-mint-strong)!important;
  color:#123b2a!important;
}
.btn.primary:hover,.btn.dark:hover,.mini-btn.dark:hover,.submit:hover,.price-card.featured .price-btn:hover{
  background:#95e6c2!important;border-color:#68c99e!important;transform:translateY(-1px)!important;
}
.btn.light,.btn.soft,.mini-btn{background:#fff!important;border-color:var(--ui-line)!important;color:#2c5d46!important}
.btn.light:hover,.btn.soft:hover,.mini-btn:hover{background:#f0faf5!important;border-color:var(--ui-line-strong)!important;transform:translateY(-1px)!important}

/* ---------- Search: PHP + static pages ---------- */
.search,
.searchbar{
  width:100%!important;
  max-width:680px!important;
  min-height:52px!important;
  border:1px solid var(--ui-line-strong)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 7px 22px rgba(31,77,55,.055)!important;
  transition:border-color .16s ease,box-shadow .16s ease!important;
}
input.search{
  display:block!important;
  margin-top:20px!important;
  padding:0 18px 0 48px!important;
  font-size:.94rem!important;
  font-weight:600!important;
  color:var(--ui-ink)!important;
  outline:0!important;
  background-color:#fff!important;
  background-repeat:no-repeat!important;
  background-position:17px 50%!important;
  background-size:18px 18px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235a7c6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")!important;
}
input.search:focus,.searchbar:focus-within{border-color:#7bcba8!important;box-shadow:0 0 0 4px rgba(120,216,174,.16),0 9px 28px rgba(31,77,55,.07)!important}
.searchbar{display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 22px!important;padding:0 17px!important}
.searchbar span{font-size:0!important;width:20px;height:20px;flex:0 0 20px;background:center/18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235a7c6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")}
.searchbar input{height:50px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:.94rem!important;font-weight:600!important;color:var(--ui-ink)!important}
.searchbar input:focus{outline:0!important}
.search::placeholder,.searchbar input::placeholder{color:#8da097!important;font-weight:500!important}

/* ---------- Board topic/category cards ---------- */
.topic-grid,.category-grid{gap:14px!important}
.panel.topic-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:14px!important}
.panel.topic-grid .topic-card{
  display:block!important;min-height:128px!important;padding:19px!important;
  background:#fff!important;border:1px solid var(--ui-line)!important;border-radius:17px!important;
  box-shadow:none!important;position:relative!important;overflow:hidden!important;
}
.panel.topic-grid .topic-card:after{content:"→";position:absolute;right:17px;bottom:15px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--ui-mint-soft);color:#2b6b4e;font-weight:900}
.panel.topic-grid .topic-card:hover{border-color:#9bd7bc!important;box-shadow:0 10px 28px rgba(30,77,55,.08)!important;transform:translateY(-2px)!important}
.panel.topic-grid .topic-card .count{display:inline-flex!important;padding:5px 8px!important;border-radius:999px!important;background:#eefaf4!important;color:#4d725f!important;font-size:.68rem!important;font-weight:800!important;margin-bottom:11px!important}
.panel.topic-grid .topic-card h3{font-size:1.02rem!important;margin:0 40px 5px 0!important;line-height:1.3!important}
.panel.topic-grid .topic-card p{font-size:.78rem!important;margin:0!important;color:var(--ui-muted)!important}

/* Static card versions */
.category-card,.topic-card{
  border:1px solid var(--ui-line)!important;
  border-radius:17px!important;
  box-shadow:none!important;
}
.category-card:hover,.topic-card:hover{border-color:#9bd7bc!important;box-shadow:0 10px 28px rgba(30,77,55,.07)!important}

/* ---------- Download / PDF resource layout ---------- */
.resource-list{display:grid!important;gap:10px!important;padding:12px!important}
.resource-row{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:18px!important;
  min-height:78px!important;padding:15px 16px!important;background:#fff!important;border:1px solid #e1ece6!important;border-radius:15px!important;
  transition:border-color .15s ease,box-shadow .15s ease!important;
}
.resource-row:hover{border-color:#b9ddcc!important;box-shadow:0 8px 24px rgba(32,76,57,.055)!important}
.resource-row h3{margin:0 0 5px!important;font-size:.94rem!important;line-height:1.35!important;color:#1b382a!important}
.resource-row .meta{font-size:.75rem!important;color:var(--ui-muted)!important;line-height:1.4!important}
.resource-row .actions{display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;flex-wrap:nowrap!important}
.resource-row .btn{white-space:nowrap!important;min-height:38px!important;font-size:.75rem!important;padding:8px 12px!important}
.library-list{gap:12px!important}
.library-row{border:1px solid var(--ui-line)!important;border-radius:15px!important;box-shadow:none!important;padding:16px!important}
.library-row:hover{border-color:#b5d9c8!important;box-shadow:0 9px 25px rgba(31,77,55,.06)!important}
.library-row h3{font-size:.93rem!important}.library-row p{font-size:.75rem!important}

/* ---------- Homepage ---------- */
.home-page .nav-inner{min-height:72px!important;gap:24px!important}.home-page .nav-logo img{height:38px!important}.home-page .nav-links a{padding:10px 11px!important;border-radius:11px!important;color:#375448!important;font-size:.82rem!important}.home-page .nav-links a:hover{background:#f0faf5!important}.home-page .nav-links .signup{background:var(--ui-mint)!important;color:#153c2b!important;border:1px solid var(--ui-mint-strong)!important;box-shadow:none!important}.home-page .nav-links .signup:hover{background:#96e6c3!important}

body.home-page .nav,
body:not([class]) .nav{background:rgba(255,255,255,.88)!important;border-bottom:1px solid rgba(44,104,77,.12)!important;box-shadow:0 5px 24px rgba(30,74,53,.045)!important}
.home-page .hero-intro,
body:not([class]) .hero-intro{border:1px solid var(--ui-line)!important;border-radius:24px!important;box-shadow:var(--ui-shadow)!important;background:rgba(255,255,255,.95)!important;padding:32px 36px!important}
.home-page .resource-grid,
body:not([class]) .resource-grid{padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;gap:14px!important}
.home-page .resource-card,
body:not([class]) .resource-card{border:1px solid var(--ui-line)!important;border-radius:18px!important;box-shadow:0 7px 24px rgba(30,74,53,.055)!important;background:#fff!important}
.home-page .resource-card:hover,
body:not([class]) .resource-card:hover{transform:translateY(-4px)!important;border-color:#9ed9bf!important;box-shadow:var(--ui-shadow-hover)!important}
.home-page .resource-media,
body:not([class]) .resource-media{height:auto!important;aspect-ratio:5/2!important;border-bottom:1px solid var(--ui-line)!important}
.home-page .resource-body,
body:not([class]) .resource-body{padding:15px 16px 17px!important;min-height:96px!important}
.home-page .resource-body h3,
body:not([class]) .resource-body h3{font-size:1rem!important;margin-bottom:6px!important}
.home-page .resource-body p,
body:not([class]) .resource-body p{font-size:.79rem!important;line-height:1.45!important;color:#60796c!important}
.home-page .paper-panel,
body:not([class]) .paper-panel{border:1px solid var(--ui-line)!important;box-shadow:var(--ui-shadow)!important}
.home-page .price-card,
body:not([class]) .price-card,.home-page .latest-card,body:not([class]) .latest-card,.home-page .quote-card,body:not([class]) .quote-card{border:1px solid var(--ui-line)!important;border-radius:18px!important;box-shadow:0 8px 25px rgba(31,77,55,.055)!important}

/* ---------- Forms ---------- */
.input,.field input,.field select,.field textarea,.form-group input,.form-group select,.form-group textarea{
  border:1px solid var(--ui-line-strong)!important;border-radius:13px!important;background:#fff!important;box-shadow:none!important
}
.input:focus,.field input:focus,.field select:focus,.field textarea:focus,.form-group input:focus,.form-group textarea:focus,.form-group select:focus{
  outline:0!important;border-color:#7bcba8!important;box-shadow:0 0 0 4px rgba(120,216,174,.14)!important
}

/* ---------- Footer ---------- */
.mth-site-footer{
  margin-top:44px!important;
  background:linear-gradient(180deg,#c7f5df 0%,#a9eed0 100%)!important;
  border-top:1px solid rgba(39,110,77,.12)!important;
  color:#173e2c!important;
}
.mth-footer-links a,.mth-socials a,.mth-footer-bottom,.mth-footer-bottom a{color:#315f49!important}
.mth-newsletter input{border:1px solid rgba(37,104,73,.16)!important;border-radius:11px 0 0 11px!important}
.mth-newsletter button{border-radius:0 11px 11px 0!important;background:#fff!important;color:#16422e!important}

/* ---------- Responsive ---------- */
@media(max-width:1000px){
  .panel.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
  .container,.wrap{width:min(100% - 26px,1220px)!important}
  .wrap > .hero,.hero-card,.hero-intro{padding:26px 22px!important;border-radius:20px!important}
  .wrap > .hero:after,.hero-card:after,.hero-intro:after{display:none!important}
  .mth-header-links{background:#fff!important;border:1px solid var(--ui-line)!important;border-radius:16px!important;box-shadow:0 18px 50px rgba(24,60,43,.12)!important}
  .search,.searchbar{max-width:none!important}
  .resource-row{grid-template-columns:1fr!important;gap:11px!important}
  .resource-row .actions{flex-wrap:wrap!important}
}
@media(max-width:600px){
  .panel.topic-grid{grid-template-columns:1fr!important;padding:10px!important}
  .panel.topic-grid .topic-card{min-height:112px!important}
  .wrap > .hero{margin-top:18px!important}
  .resource-row .actions .btn{flex:1!important}
  .searchbar{min-height:50px!important}
}

/* ---------- MTH site-wide green paper background ----------
   Keep the green canvas visible on every public page. */
html,
body{
  background-color:#b9f3cf!important;
  background-image:
    linear-gradient(rgba(9,58,38,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(9,58,38,.10) 1px,transparent 1px)!important;
  background-size:24px 24px!important;
  background-attachment:fixed!important;
}
main,
.page,
.page-shell,
.site-page,
.content-shell,
.content-wrap,
.home-page,
body.home-page{
  background-color:transparent!important;
}
/* Keep sections sitting on the green paper rather than creating full-width white bands. */
section,
.section,
.home-page section{
  background-color:transparent;
}

/* ==========================================================
   Production refinement, 2026-09-06
   One cohesive public UI, green paper canvas, lighter controls.
   ========================================================== */
:root{
  --prod-paper:rgba(255,255,255,.94);
  --prod-line:rgba(37,105,73,.15);
  --prod-shadow:0 12px 34px rgba(28,73,52,.08);
  --prod-shadow-hover:0 18px 42px rgba(28,73,52,.11);
}
body{min-height:100vh;background-color:#b9f3cf!important;background-image:linear-gradient(rgba(9,58,38,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(9,58,38,.10) 1px,transparent 1px)!important;background-size:24px 24px!important}
.mth-site-header{background:rgba(248,255,251,.93)!important;box-shadow:0 4px 20px rgba(30,78,56,.045)!important}
.mth-header-inner{min-height:72px}.mth-brand-logo{height:38px;width:auto}.mth-header-links a{border-radius:11px!important;padding:10px 11px!important}.mth-header-links .mth-signup{background:#a9eed0!important;border-color:#75d4ad!important;color:#123827!important;box-shadow:0 5px 14px rgba(51,153,111,.10)!important}

.wrap>.hero,.marketing-hero{margin-top:22px!important;padding:28px 30px!important;border:1px solid var(--prod-line)!important;background:var(--prod-paper)!important;border-radius:22px!important;box-shadow:var(--prod-shadow)!important;overflow:hidden!important;position:relative!important}
.wrap>.hero:after,.marketing-hero:after{content:"π  √  x²  ∑";position:absolute;right:22px;top:5px;font:700 3rem/1 var(--mth-hand);letter-spacing:.16em;color:rgba(35,128,83,.045);pointer-events:none}.wordmark-heading:after{display:none!important}
.wrap>.hero .title,.marketing-hero .title{font-family:var(--mth-body)!important;font-size:clamp(2rem,5vw,3.45rem)!important;line-height:1.05!important;letter-spacing:-.035em!important;font-weight:850!important;margin:4px 0 10px!important;color:#173a29!important}.wrap>.hero .lead,.marketing-hero .lead{font-size:1rem!important;max-width:760px!important;color:#587266!important}
.mth-category-wordmark{max-width:min(100%,430px)!important;max-height:82px!important;margin-bottom:11px!important}
.hero-brand-main{display:block;width:min(720px,100%);height:auto;margin:8px 0 14px}

.panel,.paper,.paper-panel,.card,.form-card,.legal{border:1px solid var(--prod-line)!important;border-radius:18px!important;background:var(--prod-paper)!important;box-shadow:0 8px 28px rgba(28,73,52,.055)!important}
.btn{border-width:1px!important;border-radius:11px!important;min-height:42px!important}.btn.primary,.btn.dark,.price-btn{background:#a9eed0!important;border-color:#75d4ad!important;color:#123827!important}.btn.primary:hover,.btn.dark:hover,.price-btn:hover{background:#98e7c7!important;border-color:#61c89e!important;box-shadow:0 8px 18px rgba(37,139,94,.12)!important}

/* Search fields */
.search-wrap{position:relative!important;display:flex!important;align-items:center!important;width:min(620px,100%)!important;min-height:52px!important;margin-top:18px!important;background:#fff!important;border:1px solid #b9d9c9!important;border-radius:14px!important;box-shadow:0 8px 24px rgba(33,78,58,.055)!important;overflow:hidden!important}.search-wrap:focus-within{border-color:#70c9a4!important;box-shadow:0 0 0 4px rgba(112,201,164,.14),0 9px 26px rgba(33,78,58,.06)!important}.search-wrap>svg{flex:0 0 20px;width:20px;height:20px;margin-left:16px;color:#628170}.search-wrap .search{flex:1!important;width:auto!important;min-width:0!important;height:50px!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;padding:0 12px!important;font-size:16px!important;font-weight:600!important;color:#1d3c2d!important;background-image:none!important}.search-clear{display:none;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;margin-right:6px;border:0;border-radius:10px;background:transparent;color:#718b7e;font-size:22px;cursor:pointer}.search-wrap.has-value .search-clear{display:flex}.search-clear:hover{background:#eff9f4;color:#214e38}

/* Resource/PDF rows */
.resource-list{padding:10px!important;gap:8px!important}.resource-row{min-height:76px!important;border:1px solid #dceae3!important;border-radius:14px!important;padding:14px 15px!important;background:#fff!important}.resource-row:hover{border-color:#acd6c2!important;box-shadow:0 9px 24px rgba(32,76,57,.06)!important}.resource-row h3{font-size:1rem!important}.resource-row .meta{font-size:.78rem!important}.resource-actions .btn{min-width:92px!important}.member-modal{backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.member-modal-card{border:1px solid #9dd8bc!important;border-radius:20px!important;box-shadow:0 28px 80px rgba(19,54,38,.25)!important}

/* Marketing pages consolidated onto the shared shell. */
.marketing-page{padding-bottom:28px}.marketing-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:16px 0 28px}.marketing-resource-card{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:center;min-height:126px;text-decoration:none;background:#fff;border:1px solid var(--prod-line);border-radius:18px;overflow:hidden;box-shadow:0 8px 26px rgba(28,73,52,.055);transition:.16s ease}.marketing-resource-card:hover{transform:translateY(-2px);border-color:#91cfb2;box-shadow:var(--prod-shadow-hover)}.marketing-resource-card>img{width:100%;height:100%;min-height:126px;object-fit:cover}.marketing-resource-copy{display:grid;gap:6px;padding:17px 18px}.marketing-resource-copy strong{font-size:1.08rem;color:#173b2a}.marketing-resource-copy small{font-size:.84rem;line-height:1.5;color:#637b6f}
.marketing-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.marketing-split .panel h2,.marketing-founder h2,.marketing-school h2{margin:0 0 8px;font-size:1.35rem;color:#173b2a}.marketing-split .panel p,.marketing-founder p,.marketing-school p{color:#5c7768;line-height:1.65}
.marketing-founder{display:grid!important;grid-template-columns:230px minmax(0,1fr);gap:24px!important;align-items:center;margin:18px 0 28px;padding:24px!important}.marketing-founder-image{display:grid;place-items:center}.marketing-founder-image img{width:210px;height:210px;object-fit:cover;border-radius:18px;background:#e9f8ef}.marketing-founder blockquote{margin:13px 0;padding:14px 16px;border-left:4px solid #8bdab8;background:#effbf5;border-radius:0 12px 12px 0;color:#2f5844;font-weight:650;line-height:1.6}
.marketing-price-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.marketing-price-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.marketing-price{display:flex;flex-direction:column;min-height:245px;padding:20px;background:#fff;border:1px solid var(--prod-line);border-radius:18px;box-shadow:0 8px 26px rgba(28,73,52,.055)}.marketing-price.featured{background:#f5fff9;border-color:#91d9ba}.marketing-price>span{font-size:.78rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:#527362}.marketing-price>strong{margin-top:13px;font-size:2.75rem;line-height:1;color:#173d2b}.marketing-price>small{margin:4px 0 13px;color:#71877b}.marketing-price>p{flex:1;color:#5f776b;line-height:1.55}.marketing-price>.btn{margin-top:13px}
.marketing-callout,.marketing-school{display:flex!important;align-items:center;justify-content:space-between;gap:24px;margin:18px 0 28px;padding:22px 24px!important;background:rgba(255,255,255,.94);border:1px solid var(--prod-line);border-radius:18px;box-shadow:0 8px 26px rgba(28,73,52,.055)}.marketing-callout strong{font-size:1.12rem;color:#173b2a}.marketing-callout p{margin:5px 0 0;color:#60776b}.marketing-callout .btn,.marketing-school .actions{flex:0 0 auto;margin-top:0!important}
.marketing-faq{display:grid;gap:9px;margin:16px 0 28px}.marketing-faq details{background:#fff;border:1px solid var(--prod-line);border-radius:14px;padding:15px 17px;box-shadow:0 5px 18px rgba(28,73,52,.04)}.marketing-faq summary{cursor:pointer;font-weight:800;color:#1d432f}.marketing-faq p{margin:10px 0 0;color:#60776b;line-height:1.65}.marketing-legal{margin:16px 0 28px;padding:26px!important;max-width:920px}.marketing-legal h2{margin:22px 0 7px;font-size:1.16rem;color:#1b422e}.marketing-legal h2:first-child{margin-top:0}.marketing-legal p,.marketing-legal li{color:#5d7569;line-height:1.7}.marketing-legal a{color:#176b43;font-weight:700}

@media(max-width:860px){.marketing-resource-grid{grid-template-columns:1fr}.marketing-price-grid,.marketing-price-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.marketing-founder{grid-template-columns:1fr}.marketing-founder-image{justify-content:start}.marketing-callout,.marketing-school{align-items:flex-start;flex-direction:column}.marketing-school .actions{width:100%}}
@media(max-width:620px){.wrap>.hero,.marketing-hero{padding:22px 18px!important;border-radius:18px!important}.marketing-resource-card{grid-template-columns:1fr}.marketing-resource-card>img{height:auto;min-height:0;aspect-ratio:5/2}.marketing-split,.marketing-price-grid,.marketing-price-grid.three{grid-template-columns:1fr}.marketing-price{min-height:0}.marketing-founder{padding:18px!important}.marketing-founder-image img{width:160px;height:160px}.marketing-callout,.marketing-school{padding:18px!important}.resource-actions{width:100%!important}.resource-actions .btn{flex:1!important;min-width:0!important}}
/* Topic question preview on hover, refreshed presentation. */
.topic-category-title{font-size:clamp(1.55rem,3vw,2.35rem);font-weight:850;letter-spacing:-.025em;color:#173b2a;margin:4px 0 8px}.topic-grid-preview{overflow:visible!important}.topic-grid-preview .topic-card{position:relative;min-height:118px;overflow:visible!important}.topic-card-copy{display:flex;flex-direction:column;gap:5px;position:relative;z-index:2}.topic-card-copy small{font-size:.72rem;font-weight:800;color:#6b8376}.topic-hover-preview{position:absolute;left:50%;bottom:calc(100% - 8px);width:min(390px,72vw);height:220px;transform:translate(-50%,12px) scale(.98);opacity:0;visibility:hidden;z-index:80;padding:8px;background:#fff;border:1px solid #b8d9c8;border-radius:15px;box-shadow:0 20px 55px rgba(21,64,44,.22);pointer-events:none;transition:opacity .15s ease,transform .15s ease,visibility .15s}.topic-hover-preview img{display:block;width:100%;height:100%;object-fit:contain;background:#fff;border-radius:10px}.topic-hover-preview>span{position:absolute;left:14px;bottom:13px;padding:5px 8px;border-radius:8px;background:rgba(20,60,42,.86);color:#fff;font-size:10px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.topic-card.has-preview:hover{z-index:70}.topic-card.has-preview:hover .topic-hover-preview,.topic-card.has-preview:focus-visible .topic-hover-preview{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1)}.topic-empty{text-align:center;padding:28px;color:#6c8379}.resource-empty{display:none;text-align:center;padding:28px;color:#6c8379}.member-lock{font-size:.78em;margin-left:3px}.resource-group{margin-bottom:22px}.resource-group>h2{font-size:1.22rem;margin:0 0 10px;color:#234536}
@media(max-width:760px){.topic-hover-preview{display:none}.topic-grid-preview .topic-card{min-height:105px}}
/* Production access UI */
.access-note{font-size:.82rem;color:#60786c}.member-modal.open{display:flex!important}

/* =========================================================
   MTH PROFESSIONAL REFRESH v21, 6 Sep 2026
   Consistent, compact, teacher-focused presentation.
   ========================================================= */
:root{
  --pro-ink:#173629;
  --pro-muted:#5b7468;
  --pro-mint:#a9eed0;
  --pro-mint-strong:#72cda6;
  --pro-mint-soft:#effbf5;
  --pro-line:#cfe3d8;
  --pro-paper:rgba(255,255,255,.965);
  --pro-shadow:0 14px 40px rgba(24,71,49,.075);
}
body{color:var(--pro-ink)!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.wrap{width:min(1180px,calc(100% - 40px))!important;margin-inline:auto!important;padding-top:30px!important;padding-bottom:34px!important}
.mth-site-header{background:rgba(255,255,255,.94)!important;border-bottom:1px solid rgba(57,113,86,.12)!important;box-shadow:0 5px 22px rgba(24,70,49,.04)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.mth-header-inner{min-height:70px!important}.mth-brand-logo{max-height:42px!important;width:auto!important}.mth-header-links{gap:3px!important}.mth-header-links a{font-size:.84rem!important;font-weight:750!important;color:#365649!important;border-radius:10px!important;padding:9px 10px!important}.mth-header-links a:hover{background:#eff9f4!important;color:#173a2a!important}.mth-header-links .mth-signup{background:var(--pro-mint)!important;border:1px solid var(--pro-mint-strong)!important;color:#143a29!important;padding-inline:15px!important}.mth-header-links .mth-login{border:1px solid #d6e6de!important;background:#fff!important}

.wrap>.hero,.marketing-hero{padding:28px 30px!important;margin:0 0 22px!important;border:1px solid var(--pro-line)!important;border-radius:22px!important;background:rgba(255,255,255,.94)!important;box-shadow:var(--pro-shadow)!important}.wrap>.hero:after,.marketing-hero:after{opacity:.55}.wrap>.hero .title,.marketing-hero .title{font-size:clamp(2.15rem,4vw,3.35rem)!important;font-weight:850!important;letter-spacing:-.04em!important}.wrap>.hero .lead,.marketing-hero .lead{font-size:.98rem!important;line-height:1.65!important;color:var(--pro-muted)!important}.mth-category-wordmark{max-width:min(100%,390px)!important;max-height:72px!important}

.panel,.paper,.paper-panel,.card,.form-card,.legal{border-color:var(--pro-line)!important;border-radius:18px!important;background:var(--pro-paper)!important;box-shadow:0 10px 32px rgba(24,71,49,.055)!important}.field label,.form-group label{font-size:.76rem!important;font-weight:800!important;letter-spacing:.02em!important;text-transform:none!important;color:#315744!important}.field input,.field textarea,.field select,.professional-form input,.professional-form textarea,.professional-form select,.input{border:1px solid #bad8c9!important;border-radius:11px!important;background:#fff!important;color:#18382a!important;min-height:46px!important;padding:11px 13px!important;box-shadow:none!important;transition:border-color .15s ease,box-shadow .15s ease!important}.field input:focus,.field textarea:focus,.field select:focus,.professional-form input:focus,.professional-form textarea:focus,.professional-form select:focus,.input:focus{border-color:#70c7a1!important;outline:0!important;box-shadow:0 0 0 4px rgba(112,199,161,.14)!important}.field textarea,.professional-form textarea,textarea.input{min-height:110px!important}.btn,.submit,.price-btn{font-weight:800!important;border-radius:11px!important}.btn.primary,.submit,.price-btn{background:var(--pro-mint)!important;border:1px solid var(--pro-mint-strong)!important;color:#123928!important}.btn.primary:hover,.submit:hover,.price-btn:hover{background:#96e5c2!important;transform:translateY(-1px)!important}

/* Homepage, remove the clunky paper feel while keeping the old-site concept. */
body:not([class]) .hero-intro{padding:34px 38px!important;border-radius:22px!important;border:1px solid var(--pro-line)!important;box-shadow:var(--pro-shadow)!important}.hero-brand-main{width:min(610px,100%)!important;max-height:112px!important;margin:0 0 14px!important}.hero-copy>p{font-size:1.02rem!important;max-width:720px!important}.hero-note{margin-top:12px!important;color:#376a52!important;font-size:1rem!important}.hero-login{padding:13px 15px!important;border-radius:12px!important;background:#f1fbf6!important;border:1px solid #d2e9dd!important;text-align:left!important}.resource-head{margin-top:8px!important;margin-bottom:14px!important}.resource-head h2{font-size:1.9rem!important;letter-spacing:-.025em!important}.resource-grid{gap:14px!important}.resource-card{border-radius:17px!important;box-shadow:0 8px 24px rgba(28,74,53,.055)!important}.resource-card:hover{transform:translateY(-3px)!important;box-shadow:0 14px 30px rgba(28,74,53,.09)!important}.resource-body{min-height:90px!important}.section{padding:46px 0!important}.section-title{font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;font-size:clamp(2rem,3.6vw,3.2rem)!important;letter-spacing:-.04em!important;line-height:1.02!important;font-weight:850!important}.section-title .outlined{border:0!important;padding:0!important;transform:none!important;color:#153b29!important}.latest-card,.price-card,.quote-card{border-radius:17px!important;box-shadow:0 8px 25px rgba(28,74,53,.05)!important}.school-enquiry{grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr)!important;align-items:start!important;gap:30px!important}.school-form-wrap{min-width:0}.home-inline-form{width:100%}.home-form-success{padding:11px 13px;margin-bottom:12px;border-radius:10px;background:#eaf9f1;border:1px solid #acd9c1;color:#23583d;font-weight:750;font-size:.85rem}.home-contact-panel{display:grid!important;grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr)!important;gap:34px!important;align-items:start!important;padding:28px!important}.home-contact-form{min-width:0}.contact-links span{padding-left:0!important}.contact-links span:before{content:"✓";display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e4f8ed;color:#1b7548;margin-right:8px;font-size:.72rem}.footer-newsletter-form,.mth-newsletter{max-width:100%}

/* Professional account access pages. */
.auth-page{padding-top:34px!important;padding-bottom:50px!important}.auth-shell{display:grid;grid-template-columns:minmax(0,.92fr) minmax(380px,.78fr);max-width:1040px;margin:0 auto;border:1px solid var(--pro-line);border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 22px 60px rgba(24,70,49,.11)}.auth-intro{position:relative;padding:42px 42px 38px;background:#effbf5;background-image:linear-gradient(rgba(32,110,72,.065) 1px,transparent 1px),linear-gradient(90deg,rgba(32,110,72,.065) 1px,transparent 1px);background-size:26px 26px;border-right:1px solid var(--pro-line)}.auth-intro:after{content:"π  x²  √";position:absolute;right:20px;bottom:14px;font:800 3rem/1 system-ui;color:rgba(40,115,80,.055);letter-spacing:.12em}.auth-logo{display:block;width:min(330px,100%);margin-bottom:36px}.auth-logo img{display:block;width:100%;height:auto}.auth-kicker{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;font-weight:850;color:#397558;margin-bottom:9px}.auth-intro h1{font-size:clamp(2rem,3.5vw,3.1rem);line-height:1.02;letter-spacing:-.045em;margin:0 0 14px;color:#173b2a}.auth-intro>p{max-width:540px;color:#577266;font-size:.96rem;line-height:1.68}.auth-benefits{display:grid;gap:10px;list-style:none;padding:0;margin:25px 0 0}.auth-benefits li{display:flex;gap:10px;color:#315541;font-size:.88rem;font-weight:650}.auth-benefits li:before{content:"✓";flex:0 0 22px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#fff;border:1px solid #b9dfcc;color:#187347;font-size:.74rem;font-weight:900}.auth-price{display:flex;align-items:baseline;gap:9px;margin:20px 0 4px}.auth-price strong{font-size:3rem;line-height:1;color:#173f2c}.auth-price span{font-weight:750;color:#62786d}.auth-card{padding:42px 40px;align-self:stretch}.auth-card-head{display:flex;align-items:center;gap:12px;margin-bottom:28px}.auth-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;background:var(--pro-mint);border:1px solid var(--pro-mint-strong);color:#17402d;font-size:1.1rem;font-weight:900}.auth-card-head .eyebrow{margin:0 0 2px!important;font-size:.68rem!important}.auth-card-head h2{margin:0;color:#173a2a;font-size:1.65rem;letter-spacing:-.03em}.auth-form{display:grid;gap:18px}.auth-form .field{display:grid;gap:7px}.auth-form .field input{height:50px!important;font-size:1rem!important}.auth-form .field small{color:#72877c;font-size:.75rem}.field-label-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.field-label-row a{font-size:.75rem;font-weight:750;color:#2e7653}.auth-submit{width:100%;min-height:50px!important;font-size:.93rem!important;margin-top:2px}.auth-divider{display:flex;align-items:center;gap:10px;margin:24px 0 14px;color:#7a8d83;font-size:.73rem}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#e0ebe5;flex:1}.auth-secondary{display:flex!important;width:100%;justify-content:center!important;background:#fff!important;border:1px solid #c6ddd1!important;color:#2f6048!important}.auth-help{text-align:center;margin:18px 0 0;color:#6b8075;font-size:.79rem;line-height:1.5}.auth-help a{color:#246b49;font-weight:800}.auth-check{display:flex;gap:9px;align-items:flex-start;color:#60776c;font-size:.78rem;line-height:1.45;cursor:pointer}.auth-check input{margin-top:3px;accent-color:#36a36d}.auth-check a{font-weight:800;color:#236b49}.auth-error{margin-bottom:18px!important;border-color:#ebc8c4!important;background:#fff5f4!important;color:#7b3d37!important}

/* Contact page */
.contact-page-card{max-width:850px;margin:0 auto 30px!important;padding:26px!important}.professional-form .form-grid{gap:15px!important}.professional-form .field{display:grid;gap:7px}.professional-form .btn{margin-top:17px}

/* Topic preview uses a cleaner floating preview. */
.topic-hover-preview{width:min(430px,75vw)!important;height:245px!important;border-radius:16px!important;padding:7px!important;box-shadow:0 22px 65px rgba(17,61,42,.23)!important}.topic-hover-preview img{border-radius:11px!important}.panel.topic-grid .topic-card{min-height:112px!important}.topic-card-copy small{color:#557568!important}

/* Resource rows and search stay compact. */
.search-wrap{min-height:48px!important;border-radius:12px!important;box-shadow:none!important}.search-wrap .search{height:46px!important;font-size:.92rem!important}.resource-row{min-height:70px!important;padding:12px 14px!important}.resource-row .btn{min-height:36px!important;padding:7px 11px!important}.resource-group>h2{font-size:1.05rem!important;font-weight:850!important}

@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-intro{border-right:0;border-bottom:1px solid var(--pro-line);padding:30px}.auth-logo{margin-bottom:24px}.auth-card{padding:30px}.school-enquiry,.home-contact-panel{grid-template-columns:1fr!important}}
@media(max-width:700px){.wrap{width:min(100% - 24px,1180px)!important;padding-top:18px!important}.mth-header-inner{min-height:62px!important}.mth-brand-logo{max-height:35px!important}.wrap>.hero,.marketing-hero{padding:21px 18px!important;border-radius:17px!important}.section{padding:34px 0!important}body:not([class]) .hero-intro{padding:24px 20px!important}.hero-login{margin-top:18px}.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.auth-page{padding-top:18px!important}.auth-shell{border-radius:18px}.auth-intro,.auth-card{padding:24px 20px}.auth-intro h1{font-size:2rem}.home-contact-panel{padding:20px!important}.school-enquiry{padding:20px!important}.form-grid{grid-template-columns:1fr!important}.form-group.full,.submit{grid-column:auto!important}}
@media(max-width:430px){.resource-grid{grid-template-columns:1fr!important}.auth-logo{width:240px}.auth-card-head h2{font-size:1.4rem}}

/* 2026-09-08 topic Q/A hover preview */
.topic-hover-preview.topic-hover-preview-pair{width:min(620px,82vw)!important;height:255px!important;display:grid!important;grid-template-columns:1fr 1fr;gap:7px;padding:8px!important}
.topic-hover-preview-pair .topic-preview-half{position:relative;display:block;min-width:0;overflow:hidden;border:1px solid #dceae3;border-radius:11px;background:#fff}
.topic-hover-preview-pair .topic-preview-half img{width:100%!important;height:100%!important;object-fit:contain!important;border-radius:10px!important;background:#fff}
.topic-hover-preview-pair .topic-preview-half b{position:absolute;left:8px;top:8px;z-index:2;padding:4px 7px;border-radius:7px;background:rgba(22,61,43,.86);color:#fff;font-size:9px;letter-spacing:.04em;text-transform:uppercase}
@media(max-width:760px){.topic-hover-preview.topic-hover-preview-pair{display:none!important}}

/* 2026-09-08 member-state navigation + instant search */
.mth-header-links .mth-search-trigger{appearance:none;border:1px solid #d7e8df;background:#fff;color:#365649;border-radius:10px;padding:9px 11px;font:inherit;font-size:.84rem;font-weight:800;cursor:pointer;white-space:nowrap}.mth-header-links .mth-search-trigger:hover{background:#eff9f4;color:#173a2a;border-color:#b9d9c9}.mth-header-links .mth-account{display:inline-flex;align-items:center;gap:7px;margin-left:4px;background:#effaf4!important;border:1px solid #bfe2d0!important;color:#1c5b3d!important}.mth-account-dot{width:8px;height:8px;border-radius:50%;background:#2aac6b;box-shadow:0 0 0 3px rgba(42,172,107,.12)}.mth-header-links .mth-logout{background:#fff!important;border:1px solid #d7e5de!important;color:#4f685c!important}.mth-header-links .mth-logout:hover{background:#f8fbf9!important;color:#1e4633!important}
body.mth-search-open{overflow:hidden}.mth-search-modal{position:fixed;inset:0;z-index:5000;display:none;align-items:flex-start;justify-content:center;padding:11vh 20px 30px;background:rgba(13,39,26,.56);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.mth-search-modal.open{display:flex}.mth-search-dialog{width:min(720px,100%);max-height:min(690px,78vh);overflow:hidden;background:#fbfffc;border:1px solid #a9d9bf;border-radius:22px;box-shadow:0 30px 90px rgba(13,48,30,.27)}.mth-search-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 14px}.mth-search-kicker{display:block;margin-bottom:3px;color:#478064;font-size:.69rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.mth-search-head h2{margin:0;color:#173b2a;font-size:1.55rem;letter-spacing:-.03em}.mth-search-close{width:38px;height:38px;display:grid;place-items:center;flex:none;border:1px solid #d7e7df;border-radius:10px;background:#fff;color:#456253;font-size:1.35rem;cursor:pointer}.mth-search-input-wrap{display:flex;align-items:center;gap:10px;margin:0 24px 16px;padding:0 14px;border:1.5px solid #aed7c3;border-radius:13px;background:#fff;box-shadow:0 0 0 4px rgba(169,238,208,.15)}.mth-search-input-wrap>span{font-size:1.45rem;color:#4c7b64}.mth-search-input-wrap input{width:100%;height:52px;border:0;outline:0;background:transparent;color:#183a2b;font:inherit;font-size:1rem}.mth-search-results{max-height:480px;overflow:auto;padding:0 12px 14px}.mth-search-result{display:flex;align-items:center;gap:12px;padding:12px;border-radius:13px;text-decoration:none;color:#1b3f2e;border:1px solid transparent}.mth-search-result:hover,.mth-search-result:focus-visible{background:#effaf4;border-color:#c6e3d3;outline:0}.mth-search-result-icon{flex:0 0 42px;height:42px;display:grid;place-items:center;border-radius:11px;background:#dff6e9;border:1px solid #bee5d1;color:#286749;font-size:.72rem;font-weight:900}.mth-search-result-copy{display:grid;gap:3px;min-width:0}.mth-search-result-copy strong{font-size:.94rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mth-search-result-copy small{font-size:.75rem;color:#6b8176}.mth-search-hint,.mth-search-empty{padding:20px 14px 24px;text-align:center;color:#6a8175;font-size:.86rem}

/* Board topic cards now use the same clear, boxed visual language as Starters. */
.board-topic-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important}.board-topic-card{min-height:190px!important;display:grid!important;grid-template-columns:minmax(150px,36%) 1fr!important;padding:0!important;overflow:hidden!important;border:1px solid #cfe5da!important;border-radius:20px!important;background:#fff!important;box-shadow:0 10px 30px rgba(19,76,49,.07)!important}.board-topic-card:after{display:none!important}.board-topic-card:hover{transform:translateY(-3px)!important;box-shadow:0 17px 38px rgba(19,76,49,.12)!important;border-color:#92d2b3!important}.board-topic-thumb{display:flex;align-items:center;justify-content:center;min-height:190px;background:#f2faf6;border-right:1px solid #dcebe4;overflow:hidden}.board-topic-thumb img{width:100%;height:100%;object-fit:cover;background:#fff}.board-topic-thumb-empty{font-weight:850;font-size:.75rem;color:#789087;text-align:center;padding:18px}.board-topic-card .topic-card-copy{padding:22px;justify-content:center}.board-topic-card .topic-card-copy h3{font-size:1.14rem!important;margin:0!important}.board-topic-card .topic-card-copy .count{margin-bottom:4px!important}.board-topic-card .topic-card-copy small{margin-top:7px}.board-category-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}.board-category-card{min-height:160px!important;padding:22px!important;border:1px solid #cfe5da!important;border-radius:19px!important;background:#fff!important;box-shadow:0 10px 28px rgba(19,76,49,.07)!important}.board-category-card:after{display:grid!important}.board-category-card:hover{transform:translateY(-3px)!important;box-shadow:0 16px 34px rgba(19,76,49,.11)!important;border-color:#96d3b6!important}

@media(max-width:980px){.board-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.board-topic-grid{grid-template-columns:1fr!important}}
@media(max-width:820px){.mth-header-links .mth-search-trigger{min-height:44px;text-align:left;padding:11px 13px;font-size:.9rem}.mth-header-links .mth-account,.mth-header-links .mth-logout{margin-left:0!important;justify-content:center!important}.mth-search-modal{padding:8vh 14px 20px}}
@media(max-width:560px){.mth-search-dialog{border-radius:17px}.mth-search-head{padding:18px 18px 12px}.mth-search-input-wrap{margin:0 18px 12px}.board-category-grid{grid-template-columns:1fr!important}.board-topic-card{grid-template-columns:1fr!important}.board-topic-thumb{min-height:145px;max-height:180px;border-right:0;border-bottom:1px solid #dcebe4}.board-topic-card .topic-card-copy{padding:18px}}


/* Professional typography refresh */
.hero h1,.hero-card h1,.section-title,.resource-head h2,.price-value,.price,.resource-symbol{font-family:var(--mth-display)!important;font-weight:900!important;letter-spacing:-.035em!important}
.eyebrow,.hero-kicker,.resource-kicker{font-family:var(--mth-body)!important;font-weight:850!important;text-transform:uppercase!important;letter-spacing:.08em!important}
.wrap>.hero:after,.hero-card:after,.hero-intro:after{font-family:var(--mth-body)!important;font-weight:900!important;letter-spacing:.12em!important}

/* Shared boxed visual cards for Starters and Board Questions */
.starter-grid,.board-topic-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;margin-top:22px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important}
.starter-card,.board-topic-card{min-height:220px!important;display:grid!important;grid-template-columns:minmax(180px,40%) 1fr!important;overflow:hidden!important;border:1px solid #cfe5da!important;border-radius:22px!important;background:#fff!important;color:#183c2c!important;text-decoration:none!important;box-shadow:0 12px 34px rgba(19,76,49,.08)!important;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease!important;padding:0!important}
.starter-card:hover,.board-topic-card:hover{transform:translateY(-3px)!important;box-shadow:0 18px 42px rgba(19,76,49,.13)!important;border-color:#92d2b3!important}
.starter-preview,.board-topic-thumb{min-height:220px!important;background:#f1faf5!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;border-right:1px solid #dcebe4!important}
.starter-preview img,.board-topic-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;background:#fff!important}
.starter-card-body,.board-topic-card .topic-card-copy{padding:24px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:8px!important}
.starter-card-body strong,.board-topic-card .topic-card-copy h3{font-size:1.35rem!important;line-height:1.1!important;margin:0!important;color:#173b2a!important}
.starter-card-body>span:not(.starter-badge),.board-topic-card .topic-card-copy p{color:#60786b!important;line-height:1.45!important}
.starter-card-body small,.board-topic-card .topic-card-copy small{margin-top:8px!important;font-weight:850!important;color:#2e6f50!important}
.starter-badge,.board-topic-badge,.board-access-badge{padding:5px 9px!important;border-radius:999px!important;background:#b9f3cf!important;color:#1d563b!important;font-size:11px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.04em!important;display:inline-flex!important;align-items:center!important;gap:4px!important}
.board-access-badge.members{background:#eef5ff!important;color:#2a5981!important}.board-access-badge.free{background:#e8fbef!important;color:#246243!important}.board-topic-thumb-empty{font-weight:850;font-size:.75rem;color:#789087;text-align:center;padding:18px}.starter-card-missing{grid-template-columns:1fr!important;opacity:.72}.starter-card-missing .starter-card-body{min-height:220px!important}
@media(max-width:850px){.starter-grid,.board-topic-grid{grid-template-columns:1fr!important}.starter-card,.board-topic-card{grid-template-columns:150px 1fr!important}}
@media(max-width:560px){.starter-card,.board-topic-card{grid-template-columns:1fr!important}.starter-preview,.board-topic-thumb{min-height:150px!important;max-height:190px!important;border-right:0!important;border-bottom:1px solid #dcebe4!important}.starter-card-body,.board-topic-card .topic-card-copy{padding:20px!important}}
.board-category-card:after{display:none!important}

/* Targeted polish release: cleaner image cards and automatic search pages */
.board-topic-thumb,.starter-preview{background:#fff!important;background-image:linear-gradient(135deg,rgba(169,238,208,.28),rgba(255,255,255,.95))!important}
.board-topic-thumb img,.starter-preview img{object-fit:contain!important;padding:8px!important;background:#fff!important}
.board-category-card .board-topic-thumb img,.latest-card .board-topic-thumb img{object-fit:cover!important;padding:0!important}
.latest-card-grid{margin-bottom:50px!important}.latest-card .starter-card-body strong{font-size:1.18rem!important;line-height:1.2!important}.latest-card .starter-card-body small{color:#557568!important}
.account-resource-grid{margin-bottom:18px!important}.account-membership-panel{margin-bottom:70px!important}.account-page .marketing-resource-card{min-height:245px!important}
.pricing-page .marketing-price .btn{width:100%!important}.pricing-enquiry-card{width:min(640px,100%)!important}.pricing-enquiry-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pricing-enquiry-card .field.full{grid-column:1/-1!important}
.search-wrap .search::placeholder{color:#6b8176!important}.search-clear{display:none}.search-wrap.has-value .search-clear{display:inline-grid;place-items:center}
.topic-card .count,.starter-total{display:none!important}.board-category-card small,.board-topic-card small,.starter-card-body small{font-size:.8rem!important;letter-spacing:0!important;text-transform:none!important}
@media(max-width:680px){.pricing-enquiry-card .form-grid{grid-template-columns:1fr!important}.account-page .marketing-resource-grid{grid-template-columns:1fr!important}}


/* Search/account/category correction pass, 2026-09-09 */
.account-page .account-hero{margin-bottom:14px!important}.account-page .account-hero .title{font-size:clamp(2.1rem,4vw,3.8rem)!important}
.account-home-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;margin:12px 0 18px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;gap:12px!important}.account-home-grid .resource-card{min-height:0!important}.account-home-grid .resource-media{height:98px!important}.account-home-grid .resource-body{min-height:82px!important;padding:11px!important}.account-home-grid .resource-body h3{font-size:.98rem!important}.account-home-grid .resource-body p{font-size:.78rem!important;line-height:1.32!important}.account-membership-panel{margin-top:16px!important;margin-bottom:32px!important;padding:18px!important}.account-membership-panel h2{font-size:1.2rem!important;margin-top:0!important}
.board-category-card .starter-card-body small,.board-topic-card .topic-card-copy small,.latest-card .starter-card-body small{display:inline-flex!important}.starter-total,.topic-card .count{display:none!important}
.search-wrap input[type=search]{-webkit-appearance:none!important;appearance:none!important}.search-wrap{isolation:isolate}.search-wrap .search-clear{z-index:2}.search-wrap .search{z-index:1}
.board-category-card .board-topic-thumb img,.latest-card .board-topic-thumb img{object-fit:cover!important}.board-topic-thumb img[src*="category-image.php"]{object-fit:cover!important;padding:0!important}
@media(max-width:980px){.account-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media(max-width:700px){.account-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.account-home-grid .resource-media{height:110px!important}}@media(max-width:430px){.account-home-grid{grid-template-columns:1fr!important}}


/* Board/Search/Account correction pass, 2026-09-09 */
.search-wrap input[type="search"]::-webkit-search-decoration,
.search-wrap input[type="search"]::-webkit-search-cancel-button,
.search-wrap input[type="search"]::-webkit-search-results-button,
.search-wrap input[type="search"]::-webkit-search-results-decoration,
.mth-search-input-wrap input[type="search"]::-webkit-search-cancel-button{display:none!important;-webkit-appearance:none!important;appearance:none!important}
.search-wrap input[type="search"]::-ms-clear,.search-wrap input[type="search"]::-ms-reveal{display:none!important;width:0!important;height:0!important}.search-wrap .search{padding-right:6px!important}.search-wrap .search-clear{display:none!important}.search-wrap.has-value .search-clear{display:inline-grid!important;place-items:center!important}
.board-questions-page .hero,.board-topics-page .hero{padding:18px 0 8px!important;margin-bottom:0!important}.board-questions-page .mth-category-wordmark,.board-topics-page .mth-category-wordmark{width:min(250px,74vw)!important;height:auto!important}.board-questions-page .eyebrow,.board-topics-page .eyebrow{font-size:.72rem!important;margin-top:2px!important}.board-questions-page .lead,.board-topics-page .lead{max-width:650px!important;font-size:.9rem!important;line-height:1.45!important;margin:4px 0 0!important}.board-questions-page .search-wrap,.board-topics-page .search-wrap{margin-top:10px!important;min-height:46px!important;width:min(560px,100%)!important}.board-questions-page .search-wrap .search,.board-topics-page .search-wrap .search{height:44px!important;min-height:44px!important}.board-questions-page .starter-grid,.board-topics-page .board-topic-grid{margin-top:13px!important}
.board-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}.board-category-card{min-height:132px!important;grid-template-columns:112px 1fr!important;border-radius:18px!important}.board-category-card .board-topic-thumb{min-height:132px!important;border-right:1px solid #dcebe4!important;border-bottom:0!important}.board-category-card .starter-card-body{padding:14px!important;gap:6px!important}.board-category-card .starter-card-body strong{font-size:1.05rem!important}.board-category-card .starter-card-body>span:not(.starter-badge){font-size:.78rem!important;line-height:1.35!important}.board-category-card .starter-card-body small{display:inline-flex!important;font-size:.75rem!important;margin-top:2px!important}
.board-topics-page .board-topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:13px!important}.board-topics-page .board-topic-card{min-height:158px!important;grid-template-columns:118px 1fr!important;border-radius:18px!important}.board-topics-page .board-topic-thumb{min-height:158px!important}.board-topics-page .board-topic-card .topic-card-copy{padding:16px!important;gap:6px!important}.board-topics-page .board-topic-card .topic-card-copy h3{font-size:1.02rem!important;line-height:1.16!important}.board-topics-page .board-topic-card .topic-card-copy p{font-size:.78rem!important;line-height:1.35!important}.board-topics-page .board-topic-card .topic-card-copy small{font-size:.74rem!important;margin-top:2px!important}.board-topic-graphic img,.board-category-card .board-topic-thumb img{object-fit:cover!important;padding:0!important;background:#fff!important}
.starters-page .starter-preview img{object-fit:contain!important;padding:6px!important;background:#fff!important}.starters-page .starter-preview{min-height:230px!important}.starters-page .starter-card{min-height:230px!important}.starters-page .starter-card-body small{display:inline-flex!important}
.home-style-account .compact-account-hero{padding:20px 0 6px!important}.home-style-account .compact-account-hero .title{font-size:clamp(2rem,3.4vw,3.3rem)!important;margin-bottom:4px!important}.home-style-account .compact-account-hero .lead{font-size:.88rem!important;line-height:1.45!important;max-width:720px!important}.home-style-account .account-resource-section{padding:12px 0 10px!important}.home-style-account .resource-head{margin-bottom:10px!important}.home-style-account .resource-head h2{font-size:2rem!important;line-height:1!important}.home-style-account .resource-head p{font-size:.82rem!important}.home-style-account .account-home-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;padding:12px!important;background:rgba(251,255,252,.78)!important;border:2px solid rgba(10,78,46,.22)!important;border-radius:18px!important;box-shadow:8px 9px 0 rgba(8,60,36,.07)!important}.home-style-account .account-home-grid .resource-card{display:flex!important;flex-direction:column!important;min-height:0!important;border-radius:13px!important}.home-style-account .account-home-grid .resource-media{height:102px!important}.home-style-account .account-home-grid .resource-body{min-height:84px!important;padding:11px 11px 12px!important}.home-style-account .account-home-grid .resource-body h3{font-size:1rem!important;line-height:1.12!important}.home-style-account .account-home-grid .resource-body p{font-size:.77rem!important;line-height:1.35!important}.home-style-account .account-membership-panel{margin:14px 0 34px!important;padding:16px 18px!important}.home-style-account .account-membership-panel h2{font-size:1.15rem!important}.home-style-account .account-membership-panel p,.home-style-account .account-membership-panel .notice{font-size:.86rem!important;line-height:1.45!important}.home-style-account .account-membership-panel .actions{margin-top:10px!important}
@media(max-width:1050px){.board-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.board-topics-page .board-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.home-style-account .account-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:720px){.board-category-grid,.board-topics-page .board-topic-grid{grid-template-columns:1fr!important}.board-category-card,.board-topics-page .board-topic-card{grid-template-columns:118px 1fr!important}.home-style-account .account-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.home-style-account .resource-head{display:block!important}}
@media(max-width:480px){.board-category-card,.board-topics-page .board-topic-card{grid-template-columns:1fr!important}.board-category-card .board-topic-thumb,.board-topics-page .board-topic-thumb{min-height:135px!important;border-right:0!important;border-bottom:1px solid #dcebe4!important}.home-style-account .account-home-grid{grid-template-columns:1fr!important}}


/* ---------- Targeted search + board layout repair (2026-09-09) ---------- */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration{
  -webkit-appearance:none!important;appearance:none!important;display:none!important;width:0!important;height:0!important;
}
input[type="search"]{appearance:textfield!important;-webkit-appearance:textfield!important;}
[hidden],.mth-filter-hidden{display:none!important;}
.search-wrap{position:relative!important;}
.search-wrap .search{background-image:none!important;margin:0!important;padding:10px 4px!important;min-height:42px!important;height:auto!important;border:0!important;box-shadow:none!important;}
.search-wrap svg{display:block!important;}
.search-clear{font-size:18px!important;line-height:1!important;}
.search-wrap:not(.has-value) .search-clear{display:none!important;}
.search-wrap.has-value .search-clear{display:grid!important;place-items:center!important;}

.board-questions-page .hero,
.board-topics-page .hero,
.board-hero-compact{
  padding:18px 24px!important;
  margin:18px 0 14px!important;
  border-radius:22px!important;
}
.board-questions-page .mth-category-wordmark,
.board-topics-page .mth-category-wordmark{width:min(245px,70vw)!important;margin-bottom:4px!important;}
.board-questions-page .lead,
.board-topics-page .lead{margin:3px 0 0!important;max-width:720px!important;font-size:.9rem!important;line-height:1.45!important;}
.board-questions-page .search-wrap,
.board-topics-page .search-wrap{margin-top:10px!important;max-width:560px!important;min-height:44px!important;}

.board-six-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:12px!important;
}
.board-six-card{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  border-radius:15px!important;
  padding:0!important;
  box-shadow:0 7px 20px rgba(19,76,49,.07)!important;
}
.board-six-card .board-topic-thumb{
  width:100%!important;
  min-height:78px!important;
  height:78px!important;
  max-height:78px!important;
  border-right:0!important;
  border-bottom:1px solid #dcebe4!important;
  background:#fff!important;
}
.board-six-card .board-topic-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  padding:0!important;
  background:#fff!important;
}
.board-six-card .starter-card-body{
  padding:10px 11px 12px!important;
  gap:4px!important;
  min-height:104px!important;
  justify-content:flex-start!important;
}
.board-six-card .starter-badge{font-size:.64rem!important;padding:4px 7px!important;}
.board-six-card strong{font-size:.92rem!important;line-height:1.13!important;}
.board-six-card .starter-card-body>span:not(.starter-badge){font-size:.72rem!important;line-height:1.28!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.board-six-card small{font-size:.7rem!important;margin-top:auto!important;}

.board-topics-page .board-preview-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  margin-top:12px!important;
}
.board-topics-page .board-preview-card{
  display:grid!important;
  grid-template-columns:210px 1fr!important;
  min-height:170px!important;
  border-radius:20px!important;
  padding:0!important;
  overflow:hidden!important;
}
.board-topics-page .board-preview-card .board-topic-thumb{
  min-height:170px!important;
  height:170px!important;
  background:#fff!important;
  border-right:1px solid #dcebe4!important;
  border-bottom:0!important;
}
.board-topics-page .board-preview-card .board-topic-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  padding:0!important;
  background:#fff!important;
}
.board-topics-page .board-preview-card .topic-card-copy{padding:18px!important;gap:7px!important;}
.board-topics-page .board-preview-card .topic-card-copy h3{font-size:1.16rem!important;line-height:1.15!important;}
.board-topics-page .board-preview-card .topic-card-copy p{font-size:.82rem!important;line-height:1.38!important;}

.starters-page .starter-preview{background:#fff!important;min-height:230px!important;max-height:none!important;}
.starters-page .starter-preview img{width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important;background:#fff!important;}

.home-style-account .account-hero{padding:20px 24px!important;margin:18px 0 12px!important;}
.home-style-account .account-hero .title{font-size:clamp(2.1rem,4vw,3.4rem)!important;margin-bottom:5px!important;}
.home-style-account .account-resource-section{padding-top:8px!important;}
.home-style-account .account-resource-head{align-items:center!important;margin-bottom:12px!important;}
.home-style-account .account-resource-head h2{font-size:clamp(1.8rem,3vw,2.6rem)!important;margin:0!important;}
.home-style-account .account-search{margin-top:0!important;width:min(390px,100%)!important;}
.home-style-account .account-home-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:11px!important;}
.home-style-account .account-home-grid .resource-media{height:auto!important;aspect-ratio:5/2!important;}
.home-style-account .account-home-grid .resource-body{padding:11px 12px!important;min-height:82px!important;}
.home-style-account .account-home-grid .resource-body h3{font-size:.92rem!important;margin-bottom:4px!important;}
.home-style-account .account-home-grid .resource-body p{font-size:.72rem!important;line-height:1.32!important;}
.home-style-account .account-membership-panel{margin-top:16px!important;padding:18px!important;}

@media(max-width:1180px){.board-six-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.home-style-account .account-home-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:900px){.board-six-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.board-topics-page .board-preview-grid{grid-template-columns:1fr!important}.home-style-account .account-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.home-style-account .account-resource-head{display:block!important}.home-style-account .account-search{margin-top:12px!important;width:100%!important}}
@media(max-width:650px){.board-six-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.board-topics-page .board-preview-card{grid-template-columns:120px 1fr!important;min-height:136px!important}.board-topics-page .board-preview-card .board-topic-thumb{height:136px!important;min-height:136px!important}.home-style-account .account-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:460px){.board-six-grid,.home-style-account .account-home-grid{grid-template-columns:1fr!important}.board-topics-page .board-preview-card{grid-template-columns:1fr!important}.board-topics-page .board-preview-card .board-topic-thumb{border-right:0!important;border-bottom:1px solid #dcebe4!important}}


/* 2026-09-10: Board Questions now deliberately matches the Starters listing. */
.board-questions-page .hero,
.board-topics-page .hero{
  padding:28px 30px 24px!important;
  margin:18px 0 18px!important;
  border-radius:22px!important;
}
.board-questions-page .mth-category-wordmark,
.board-topics-page .mth-category-wordmark{width:min(390px,82vw)!important;margin-bottom:8px!important;}
.board-questions-page .lead,
.board-topics-page .lead{font-size:1rem!important;line-height:1.55!important;max-width:760px!important;margin:8px 0 0!important;}
.board-questions-page .search-wrap,
.board-topics-page .search-wrap{margin-top:18px!important;width:min(660px,100%)!important;min-height:52px!important;}
.board-as-starters-grid,
.board-topic-listing{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
  margin-top:22px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  overflow:visible!important;
}
.board-as-starters-card,
.board-questions-page .board-as-starters-card,
.board-topics-page .board-as-starters-card{
  min-height:230px!important;
  display:grid!important;
  grid-template-columns:minmax(180px,40%) 1fr!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #cfe5da!important;
  border-radius:22px!important;
  background:#fff!important;
  color:#183c2c!important;
  text-decoration:none!important;
  box-shadow:0 12px 34px rgba(19,76,49,.08)!important;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease!important;
}
.board-as-starters-card:hover{transform:translateY(-3px)!important;box-shadow:0 18px 42px rgba(19,76,49,.13)!important;border-color:#92d2b3!important;}
.board-as-starters-card .starter-preview{
  min-height:230px!important;
  max-height:none!important;
  height:auto!important;
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  border-right:1px solid #dcebe4!important;
  border-bottom:0!important;
}
.board-as-starters-card .starter-preview img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  padding:0!important;
  background:#fff!important;
}
.board-as-starters-card .starter-card-body{
  padding:24px!important;
  min-height:230px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:8px!important;
}
.board-as-starters-card .starter-card-body strong{font-size:1.35rem!important;line-height:1.1!important;margin:0!important;color:#173b2a!important;}
.board-as-starters-card .starter-card-body>span:not(.starter-badge){font-size:.95rem!important;line-height:1.45!important;color:#60786b!important;display:block!important;overflow:visible!important;-webkit-line-clamp:unset!important;}
.board-as-starters-card .starter-card-body small{margin-top:8px!important;font-size:.8rem!important;font-weight:850!important;color:#2e6f50!important;}
@media(max-width:850px){.board-as-starters-grid,.board-topic-listing{grid-template-columns:1fr!important}.board-as-starters-card{grid-template-columns:150px 1fr!important;}}
@media(max-width:560px){.board-as-starters-card{grid-template-columns:1fr!important}.board-as-starters-card .starter-preview{min-height:150px!important;max-height:190px!important;border-right:0!important;border-bottom:1px solid #dcebe4!important}.board-as-starters-card .starter-card-body{min-height:0!important;padding:20px!important}}

/* 2026-09-10 image-fill patch: make list preview images fill the full card image area cleanly */
.starters-page .starter-card .starter-preview,
.board-questions-page .board-as-starters-card .starter-preview,
.board-topics-page .board-as-starters-card .starter-preview,
.latest-card .starter-preview,
.board-topics-page .board-preview-card .board-topic-thumb{
  align-items:stretch!important;
  justify-content:stretch!important;
  overflow:hidden!important;
  background:#eef7f1!important;
}

.starters-page .starter-card .starter-preview img,
.board-questions-page .board-as-starters-card .starter-preview img,
.board-topics-page .board-as-starters-card .starter-preview img,
.latest-card .starter-preview img,
.board-topics-page .board-preview-card .board-topic-thumb img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  padding:0!important;
  margin:0!important;
  background:#fff!important;
}

/* keep missing / text-only placeholders readable */
.board-topic-thumb-empty{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  padding:18px!important;
}

/* 2026-09-10 zoom follow-up: keep Board Questions as-is, zoom other list images to match the stronger look */
.starters-page .starter-card .starter-preview img,
.board-topics-page .board-as-starters-card .starter-preview img,
.board-topics-page .board-preview-card .board-topic-thumb img,
.latest-card .starter-preview img{
  transform:scale(1.08)!important;
  transform-origin:center center!important;
}

.starters-page .starter-card:hover .starter-preview img,
.board-topics-page .board-as-starters-card:hover .starter-preview img,
.board-topics-page .board-preview-card:hover .board-topic-thumb img,
.latest-card:hover .starter-preview img{
  transform:scale(1.12)!important;
}

/* 2026-09-10 algebra/topics stronger zoom patch */
.board-topics-page .board-as-starters-card .starter-preview img{
  transform:scale(1.22)!important;
  transform-origin:center center!important;
  object-fit:cover!important;
  object-position:center top!important;
}
.board-topics-page .board-as-starters-card:hover .starter-preview img{
  transform:scale(1.28)!important;
}


/* 2026-09-10 final category preview crop: all /topics.php?category=... pages */
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{
  background:#fff!important;
  overflow:hidden!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:scale(1.08)!important;
  transform-origin:center center!important;
  padding:0!important;
  margin:0!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card:hover .starter-preview img{
  transform:scale(1.12)!important;
}


/* 2026-09-10 real fix: all /topics.php category cards use square cropped previews with no bottom white gap */
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{
  aspect-ratio:1/1!important;
  min-height:230px!important;
  height:230px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center top!important;
  transform:none!important;
  padding:0!important;
  margin:0!important;
  max-width:none!important;
  max-height:none!important;
  background:#fff!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card:hover .starter-preview img{
  transform:scale(1.04)!important;
}
@media(max-width:560px){
  .board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{
    aspect-ratio:16/9!important;
    height:auto!important;
    min-height:170px!important;
  }
}

/* 2026-09-10 fallback crop: if the server cannot crop the original image, CSS still zooms from the top */
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview img{
  transform:scale(1.35)!important;
  transform-origin:center top!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card:hover .starter-preview img{
  transform:scale(1.40)!important;
  transform-origin:center top!important;
}


/* Favourites - small member utility, keeps existing frontend style */
.favourite-form{display:inline-flex;margin:0}.favourite-btn.is-on{background:#fff7d7;border-color:#e8cc64;color:#4f3d05}.account-favourites-panel .favourite-list{display:grid;gap:0}.account-favourites-panel .favourite-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-top:1px solid #e2eee7}.account-favourites-panel .favourite-row:first-child{border-top:0}.account-favourites-panel .favourite-row small{color:#6b7d73}.account-favourites-panel .actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}@media(max-width:720px){.account-favourites-panel .favourite-row{align-items:flex-start;flex-direction:column}.account-favourites-panel .actions{justify-content:flex-start}}

/* 2026-09-14: simple Free / Members tags without changing the frontend layout */
.mth-access-tags{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:6px}
.mth-access-tag{display:inline-flex;align-items:center;gap:4px;width:auto;max-width:max-content;padding:3px 8px;border-radius:999px;border:1px solid #c8dfd1;background:#f5fbf7;color:#315343;font-size:.72rem;line-height:1.15;font-weight:850;letter-spacing:.01em;white-space:nowrap}
.mth-access-tag-free{background:#eefaf3;border-color:#b8e2c7;color:#216845}
.mth-access-tag-members{background:#fff8e6;border-color:#ead48e;color:#79570d}
.mth-access-tag-mixed{background:#f4f0ff;border-color:#d3c5ff;color:#4f3a87}
.resource-row-copy{min-width:0}
.resource-row .mth-access-tags{margin-top:7px}
.starter-card-body>.mth-access-tags{margin-top:4px;margin-bottom:1px}
.latest-card .mth-access-tags{margin-top:5px}
@media(max-width:620px){.mth-access-tag{font-size:.68rem;padding:3px 7px}.resource-row .mth-access-tags{margin-bottom:4px}}


/* 2026-09-14 launch hardening/mobile polish */
html,body{max-width:100%;overflow-x:hidden}img{max-width:100%}img[data-protect-media],.resource-media img,.starter-preview img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
.mth-breadcrumbs{margin:6px 0 20px}.mth-breadcrumbs ol{list-style:none;display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0;padding:0}.mth-breadcrumbs li{display:flex;align-items:center;gap:7px;font-size:.78rem;font-weight:800;color:#5d7468}.mth-breadcrumbs li+li:before{content:"/";color:#a4b6ad;font-weight:700}.mth-breadcrumbs a{display:inline-flex;align-items:center;padding:5px 9px;border:1px solid #d9e8e0;border-radius:999px;background:#f9fdfb;color:#365846;text-decoration:none}.mth-breadcrumbs a:hover{background:#eef8f2;border-color:#bfdccc}.mth-breadcrumbs span{display:inline-flex;padding:5px 9px;border-radius:999px;background:#173f2a;color:#fff;font-weight:850}
.account-discovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 0 20px}.account-discovery-grid>.panel{padding:22px}.account-mini-list{display:grid;gap:10px;margin-top:14px}.account-mini-list .account-mini-card{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:12px;padding:8px;border:1px solid #dceae2;border-radius:14px;background:#fbfffc;text-decoration:none;color:#173629;transition:.18s ease}.account-mini-list .account-mini-card:hover{background:#f0faf4;transform:translateY(-1px);border-color:#bad9c8}.account-mini-card img{width:92px;height:66px;object-fit:cover;border-radius:10px;border:1px solid #d8e8df;background:#edf8f2}.account-mini-copy{display:flex;min-width:0;flex-direction:column;gap:4px}.account-mini-copy strong{font-size:.9rem;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-mini-copy small{font-size:.75rem;color:#698075;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mth-hp{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.mth-cookie-note{position:fixed;left:16px;right:16px;bottom:16px;z-index:9999;margin:auto;max-width:820px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid #b9d8c8;border-radius:14px;background:#fff;box-shadow:0 14px 45px rgba(18,54,37,.18);font-size:.86rem;color:#29483a}.mth-cookie-note[hidden]{display:none}.mth-cookie-note button{border:0;border-radius:9px;background:#a9eed0;padding:8px 13px;font-weight:850;color:#123e2b;cursor:pointer}
@media(max-width:760px){.account-discovery-grid{grid-template-columns:1fr}.mth-cookie-note{left:8px;right:8px;bottom:8px;align-items:flex-start}.resource-row{min-width:0}.resource-row-copy{min-width:0}.resource-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.resource-actions .btn,.resource-actions form,.resource-actions button{width:100%}.mth-breadcrumbs{margin-top:4px}.panel,.card{max-width:100%}}
@media(max-width:430px){.resource-actions{grid-template-columns:1fr}.mth-cookie-note{font-size:.78rem;gap:8px}.mth-cookie-note button{flex:none}}

.related-resources{margin-top:18px}.related-resource-links{display:flex;flex-wrap:wrap;gap:8px}.related-resource-links a{display:inline-flex;padding:9px 12px;border:1px solid #cfe2d7;border-radius:999px;background:#f7fcf9;color:#244b38;text-decoration:none;font-weight:800;font-size:.84rem}.related-resource-links a:hover{background:#eaf8f0}@media(max-width:520px){.related-resource-links{display:grid;grid-template-columns:1fr 1fr}.related-resource-links a{justify-content:center;text-align:center}}

@media(max-width:520px){.mth-breadcrumbs ol{gap:5px}.mth-breadcrumbs li{font-size:.72rem}.mth-breadcrumbs a,.mth-breadcrumbs span{padding:4px 7px}.account-mini-list .account-mini-card{grid-template-columns:76px minmax(0,1fr)}.account-mini-card img{width:76px;height:58px}}

.favourite-row-with-image{display:grid!important;grid-template-columns:112px minmax(0,1fr) auto;gap:14px;align-items:center}.favourite-thumb{width:112px;height:72px;object-fit:cover;border-radius:10px;border:1px solid #d7e7de;background:#fff}.favourite-copy{min-width:0}@media(max-width:680px){.favourite-row-with-image{grid-template-columns:84px minmax(0,1fr)}.favourite-thumb{width:84px;height:60px}.favourite-row-with-image .actions{grid-column:1/-1}}

/* 2026-09-15 compact Saved account cards */
.account-favourites-panel .saved-compact-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;margin-top:12px}
.account-favourites-panel .saved-compact-card{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;grid-template-areas:"img copy" "img actions";gap:4px 10px!important;align-items:center!important;padding:8px!important;border:1px solid #dceae2!important;border-radius:12px;background:#fbfffc}
.saved-compact-card .favourite-thumb{grid-area:img;width:72px!important;height:52px!important;border-radius:8px!important}
.saved-compact-card .favourite-copy{grid-area:copy;min-width:0}.saved-compact-card .favourite-copy strong{display:block;font-size:.86rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.saved-compact-card .favourite-copy br{display:none}.saved-compact-card .favourite-copy small{display:block;font-size:.69rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saved-compact-card .actions{grid-area:actions;display:flex!important;gap:6px!important;justify-content:flex-start!important;flex-wrap:nowrap!important}.saved-compact-card .actions .btn,.saved-compact-card .actions button{min-height:30px;padding:5px 8px;font-size:.72rem;line-height:1}.saved-compact-card .favourite-form{display:inline-flex!important}
@media(max-width:720px){.account-favourites-panel .saved-compact-grid{grid-template-columns:1fr}.account-favourites-panel .saved-compact-card{grid-template-columns:64px minmax(0,1fr)!important}.saved-compact-card .favourite-thumb{width:64px!important;height:48px!important}}


/* 2026-09-18 video feedback pass: cleaner category visuals + denser resource browsing */
.board-questions-page .board-category-visual{
  position:relative!important;display:grid!important;place-items:center!important;min-height:190px!important;
  background:linear-gradient(145deg,#effbf4,#e6f4ff)!important;overflow:hidden!important;border-right:1px solid #dcebe4!important;
}
.board-category-gridlines{position:absolute;inset:0;background-image:linear-gradient(rgba(19,98,61,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(19,98,61,.07) 1px,transparent 1px);background-size:24px 24px;opacity:.85}
.board-category-symbol{position:relative;z-index:2;display:grid;place-items:center;width:86px;height:86px;border-radius:24px;background:#fff;border:2px solid rgba(20,104,64,.14);box-shadow:0 10px 28px rgba(22,82,53,.10);font:900 2.65rem/1 var(--mth-display);color:#17633f}
.board-category-visual-name{position:absolute;z-index:2;left:14px;bottom:12px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.92);border:1px solid rgba(20,104,64,.12);font-size:.7rem;font-weight:900;color:#285f46}
.board-questions-page .board-as-starters-card{min-height:190px!important;grid-template-columns:minmax(150px,35%) 1fr!important}
.board-questions-page .board-as-starters-card .starter-card-body{min-height:190px!important;padding:19px!important}.board-questions-page .board-as-starters-card .starter-card-body strong{font-size:1.18rem!important}.board-questions-page .board-as-starters-card .starter-card-body>span:not(.starter-badge){font-size:.85rem!important}
.board-topics-page .board-as-starters-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.board-topics-page .board-as-starters-card{display:flex!important;flex-direction:column!important;min-height:0!important;border-radius:16px!important}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{width:100%!important;height:145px!important;min-height:145px!important;aspect-ratio:auto!important;border-right:0!important;border-bottom:1px solid #dcebe4!important}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview img{transform:none!important;object-fit:contain!important;object-position:center center!important;background:#fff!important;padding:6px!important}
.board-topics-page .board-as-starters-card .starter-card-body{min-height:0!important;padding:14px!important;gap:5px!important}.board-topics-page .board-as-starters-card .starter-card-body strong{font-size:1rem!important}.board-topics-page .board-as-starters-card .starter-card-body>span:not(.starter-badge):not(.mth-access-tags){font-size:.78rem!important;line-height:1.35!important}.board-topics-page .board-as-starters-card .starter-card-body small{font-size:.72rem!important;margin-top:4px!important}
.resource-column-grid{display:grid;align-items:start;gap:14px;margin-top:14px}.resource-column-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.resource-column-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-column .resource-list{padding:8px!important;gap:7px!important}.resource-column .resource-row{grid-template-columns:1fr!important;gap:8px!important;min-height:0!important;padding:11px 12px!important}.resource-column .resource-row h3{font-size:.88rem!important}.resource-column .resource-row .meta{font-size:.7rem!important}.resource-column .resource-row .actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:6px!important;flex-wrap:wrap!important}.resource-column .resource-row .actions .btn,.resource-column .resource-row .actions form,.resource-column .resource-row .actions button{width:100%!important;min-width:0!important}.compact-resource-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}.compact-resource-list .resource-row{grid-template-columns:1fr!important;gap:9px!important}.compact-resource-list .resource-actions{width:100%!important}.resource-row .mth-access-tags{display:none!important}
@media(max-width:1050px){.board-topics-page .board-as-starters-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.resource-column-grid-three{grid-template-columns:1fr 1fr}.resource-column-grid-three .resource-column:last-child{grid-column:1/-1}}
@media(max-width:720px){.board-topics-page .board-as-starters-grid,.resource-column-grid-three,.resource-column-grid-two,.compact-resource-list{grid-template-columns:1fr!important}.resource-column-grid-three .resource-column:last-child{grid-column:auto}.board-questions-page .board-as-starters-card{grid-template-columns:118px 1fr!important;min-height:150px!important}.board-questions-page .board-category-visual{min-height:150px!important}.board-category-symbol{width:66px;height:66px;font-size:2rem;border-radius:18px}.board-questions-page .board-as-starters-card .starter-card-body{min-height:150px!important;padding:15px!important}}
@media(max-width:480px){.board-questions-page .board-as-starters-card{grid-template-columns:1fr!important}.board-questions-page .board-category-visual{min-height:128px!important;border-right:0!important;border-bottom:1px solid #dcebe4!important}.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{height:135px!important;min-height:135px!important}}

/* =========================================================
   2026-09-18 PUBLIC TITLE CONSISTENCY PASS
   Match the uploaded TREASURE HUNTS wordmark treatment.
   ========================================================= */
:root{--mth-title-mint:#a9eed0;--mth-title-deep:#102a1d}

/* Existing category wordmark artwork already uses the desired type + colour. */
.wordmark-heading{
  text-align:center!important;
}
.wordmark-heading .mth-category-wordmark{
  display:block!important;
  width:auto!important;
  max-width:min(88%,440px)!important;
  max-height:80px!important;
  margin:0 auto 12px!important;
  object-position:center center!important;
  filter:drop-shadow(1px 0 0 #111) drop-shadow(-1px 0 0 #111) drop-shadow(0 1px 0 #111) drop-shadow(0 -1px 0 #111)!important;
}
.wordmark-heading .eyebrow,
.wordmark-heading .lead{
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}
.wordmark-heading .search-wrap{
  margin-left:auto!important;
  margin-right:auto!important;
}
.wordmark-heading .topic-category-title{
  text-align:center!important;
}

/* Text-only public page titles use the same visual language as the artwork. */
.marketing-page > .marketing-hero .title,
.latest-page > .hero .title,
.wrap > .hero:not(.account-hero) > .title:not(.sr-only),
.topic-category-title{
  color:var(--mth-title-mint)!important;
  font-family:"Arial Black",Inter,Manrope,"Segoe UI",Arial,sans-serif!important;
  font-style:italic!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.035em!important;
  line-height:.94!important;
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
  -webkit-text-stroke:1px #111!important;
  paint-order:stroke fill!important;
  text-shadow:0 1px 0 rgba(0,0,0,.08)!important;
  font-size:clamp(2rem,4.3vw,4rem)!important;
}
.marketing-page > .marketing-hero,
.latest-page > .hero{
  text-align:center!important;
}
.marketing-page > .marketing-hero .lead,
.latest-page > .hero .lead,
.marketing-page > .marketing-hero .eyebrow,
.latest-page > .hero .eyebrow{
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.marketing-page > .marketing-hero .search-wrap,
.latest-page > .hero .search-wrap{
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Keep secondary group headings clean and centred on grouped resource pages. */
.resource-column .resource-group>h2,
.resource-column>h2,
.resource-group>h2{
  text-align:center!important;
}

@media(max-width:560px){
  .wordmark-heading .mth-category-wordmark{max-width:min(94%,360px)!important;max-height:72px!important}
  .marketing-page > .marketing-hero .title,
  .latest-page > .hero .title,
  .wrap > .hero:not(.account-hero) > .title:not(.sr-only),
  .topic-category-title{font-size:clamp(2rem,10vw,3rem)!important}
}

/* 2026-09-18 topic preview fit + title refinement */
.wordmark-heading .topic-category-title{font-size:clamp(1.65rem,3.1vw,2.65rem)!important;-webkit-text-stroke:.8px #111!important;text-shadow:none!important;}
@media(max-width:560px){.wordmark-heading .mth-category-wordmark{max-width:min(90%,320px)!important;max-height:62px!important}.wordmark-heading .topic-category-title{font-size:clamp(1.45rem,7.5vw,2.15rem)!important}}

/* 2026-09-18 full-image topic cards: never crop or zoom */
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{
  height:180px!important;
  min-height:180px!important;
  aspect-ratio:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#f8fcfa!important;
  padding:6px!important;
  overflow:hidden!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview img,
.board-topics-page #topicGrid .topic-card.board-as-starters-card:hover .starter-preview img,
.board-topics-page #topicGrid .topic-card.board-as-starters-card:focus-visible .starter-preview img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
  transform-origin:center center!important;
  padding:0!important;
  margin:0!important;
  background:#fff!important;
}
@media(max-width:560px){
  .board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{
    height:160px!important;
    min-height:160px!important;
    aspect-ratio:auto!important;
  }
}

/* 2026-09-18 client video correction: topic cards use a full-width, uncropped preview */
.board-topics-page .hero{ text-align:center!important; }
.board-topics-page .topic-category-title{
  color:#a9eed0!important;
  font-family:"Arial Black",Inter,Manrope,"Segoe UI",Arial,sans-serif!important;
  font-style:italic!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.025em!important;
  line-height:1!important;
  text-align:center!important;
  font-size:clamp(1.8rem,3.2vw,2.8rem)!important;
  -webkit-text-stroke:.55px #111!important;
  paint-order:stroke fill!important;
  text-shadow:1px 1px 0 #111!important;
}
.board-topics-page .lead{margin-left:auto!important;margin-right:auto!important;text-align:center!important}
.board-topics-page .search-wrap{margin-left:auto!important;margin-right:auto!important}
.board-topics-page #topicGrid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  grid-template-columns:none!important;
  overflow:hidden!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{
  width:100%!important;
  height:210px!important;
  min-height:210px!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  padding:0!important;
  border-right:0!important;
  border-bottom:1px solid #dcebe4!important;
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview img,
.board-topics-page #topicGrid .topic-card.board-as-starters-card:hover .starter-preview img,
.board-topics-page #topicGrid .topic-card.board-as-starters-card:focus-visible .starter-preview img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
  scale:1!important;
  padding:0!important;
  margin:0!important;
  background:#fff!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-card-body{
  width:100%!important;
  min-height:0!important;
  padding:16px 17px 17px!important;
  justify-content:flex-start!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-card-body strong{font-size:1.08rem!important}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-card-body>span:not(.starter-badge):not(.mth-access-tags){font-size:.82rem!important}
@media(max-width:900px){.board-topics-page #topicGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){
  .board-topics-page #topicGrid{grid-template-columns:1fr!important}
  .board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{height:190px!important;min-height:190px!important}
  .board-topics-page .topic-category-title{font-size:clamp(1.65rem,9vw,2.3rem)!important}
}

/* Past papers: clear Foundation / Higher columns, then year groups */
.exam-paper-organised{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important;align-items:start!important}
.exam-paper-tier{min-width:0!important;background:#f8fcfa!important;border:1px solid #d8e9e1!important;border-radius:18px!important;padding:14px!important}
.exam-paper-tier>h2{margin:0 0 12px!important;text-align:center!important;color:#173b2a!important;font-size:1.25rem!important}
.exam-paper-year{margin:0 0 14px!important}
.exam-paper-year:last-child{margin-bottom:0!important}
.exam-paper-year>h3{margin:0 0 7px!important;padding:7px 10px!important;border-radius:10px!important;background:#eaf8f1!important;color:#285b43!important;font-size:.88rem!important;text-align:left!important}
.exam-paper-year .resource-list{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.exam-paper-year .resource-row{padding:11px 12px!important;min-height:64px!important;gap:10px!important}
.exam-paper-year .resource-row h3{font-size:.9rem!important}
.exam-paper-year .resource-actions{gap:5px!important}
.exam-paper-year .resource-row .btn{padding:7px 9px!important;font-size:.7rem!important;min-height:34px!important}
@media(max-width:900px){.exam-paper-organised{grid-template-columns:1fr!important}}

/* =========================================================
   2026-09-18 USER UX PASS — compact resource hub, organised
   worksheets/booklets, stronger topic headings, natural images.
   ========================================================= */
.resource-hub-hero{
  padding:14px 22px!important;
  margin-bottom:12px!important;
  min-height:0!important;
}
.resource-hub-hero .title{
  font-size:clamp(1.55rem,3vw,2.45rem)!important;
  margin:0 0 4px!important;
  line-height:1!important;
}
.resource-hub-hero .lead{
  font-size:.82rem!important;
  line-height:1.35!important;
  margin:0 auto!important;
  max-width:620px!important;
}
.marketing-page .marketing-resource-grid{margin-top:10px!important;gap:10px!important}
.marketing-page .marketing-resource-card{min-height:108px!important}
.marketing-page .marketing-resource-card>img{min-height:108px!important}
.marketing-page .marketing-resource-copy{padding:13px 15px!important;gap:4px!important}
.marketing-page .marketing-resource-copy strong{font-size:1rem!important}
.marketing-page .marketing-resource-copy small{font-size:.78rem!important;line-height:1.35!important}

/* Worksheets grouped by their actual topic for faster scanning. */
.worksheet-organised{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:start!important;
}
.worksheet-topic-group{
  margin:0!important;
  min-width:0!important;
}
.worksheet-topic-group>h2{
  margin:0 0 7px!important;
  padding:8px 11px!important;
  border-radius:10px!important;
  background:#eaf8f1!important;
  color:#285b43!important;
  font-size:.92rem!important;
  text-align:left!important;
}
.worksheet-topic-group .resource-list{padding:7px!important;gap:6px!important}
.worksheet-topic-group .resource-row{grid-template-columns:1fr!important;gap:8px!important;padding:10px 11px!important;min-height:0!important}
.worksheet-topic-group .resource-actions{width:100%!important}

/* Topic booklets sit side by side on desktop. */
.booklet-columns{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
.booklet-columns .resource-column{min-width:0!important}

/* Stronger black outline on category titles, including Number. */
.board-topics-page .topic-category-title{
  -webkit-text-stroke:1.35px #0b0b0b!important;
  paint-order:stroke fill!important;
  text-shadow:1px 1px 0 #0b0b0b!important;
}

/* Topic preview = natural full-width image. No fixed-height box, crop or zoom. */
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  padding:0!important;
  display:block!important;
  overflow:hidden!important;
  background:#fff!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview img,
.board-topics-page #topicGrid .topic-card.board-as-starters-card:hover .starter-preview img,
.board-topics-page #topicGrid .topic-card.board-as-starters-card:focus-visible .starter-preview img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:initial!important;
  object-position:initial!important;
  transform:none!important;
  scale:1!important;
  padding:0!important;
  margin:0!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-card-body>span:not(.starter-badge):not(.mth-access-tags){
  min-height:2.7em!important;
}

@media(max-width:900px){
  .worksheet-organised,.booklet-columns{grid-template-columns:1fr!important}
}
@media(max-width:620px){
  .resource-hub-hero{padding:12px 14px!important}
  .resource-hub-hero .title{font-size:1.55rem!important}
  .resource-hub-hero .lead{font-size:.78rem!important}
}


/* =========================================================
   2026-09-18 FINAL VIDEO/UX CORRECTION PASS
   ========================================================= */
/* Compact outlined resource-hub heading. */
.resource-hub-hero .title{
  font-family:"Arial Black",Inter,"Segoe UI",Arial,sans-serif!important;
  font-style:italic!important;
  text-transform:uppercase!important;
  letter-spacing:.01em!important;
  color:#a9eed0!important;
  font-size:clamp(1.55rem,2.8vw,2.15rem)!important;
  line-height:1.05!important;
  -webkit-text-stroke:5px #111!important;
  paint-order:stroke fill!important;
  text-shadow:none!important;
  margin:0 0 4px!important;
}
.resource-hub-hero .lead{font-size:.72rem!important;line-height:1.25!important;max-width:540px!important}

/* Board Questions category landing: descriptions are the CTA; no filler labels. */
.board-questions-page .board-as-starters-card .starter-card-body{justify-content:center!important}
.board-questions-page .board-as-starters-card .starter-card-body>strong{font-size:1.08rem!important}
.board-questions-page .board-as-starters-card .starter-card-body>span{font-size:.82rem!important;line-height:1.4!important}

/* Category topic pages: wide, shallow preview strip. Full canvas width, no zoom/crop. */
.board-topics-page .topic-category-title{
  -webkit-text-stroke:2.25px #050505!important;
  paint-order:stroke fill!important;
  text-shadow:none!important;
}
.board-topics-page #topicGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{
  display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  aspect-ratio:720/260!important;overflow:hidden!important;padding:0!important;background:#fff!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview img,
.board-topics-page #topicGrid .topic-card.board-as-starters-card:hover .starter-preview img,
.board-topics-page #topicGrid .topic-card.board-as-starters-card:focus-visible .starter-preview img{
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;padding:0!important;margin:0!important;transform:none!important;scale:1!important;background:#fff!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-card-body{padding:12px 14px 13px!important;gap:6px!important}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-card-body strong{font-size:1rem!important}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-card-body>span:not(.mth-access-tags){font-size:.76rem!important;line-height:1.35!important;min-height:0!important}
@media(max-width:900px){.board-topics-page #topicGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.board-topics-page #topicGrid{grid-template-columns:1fr!important}}

/* Exam-paper fallback must remain visible if legacy metadata lacks tier/year. */
.exam-paper-unclassified{margin-top:18px!important}.exam-paper-fallback-year{font-size:1rem!important;margin:12px 0 7px!important;color:#285b43!important}

/* 2026-09-18 resource consistency cleanup */
.library-page .hero,
main.wrap > .hero.wordmark-heading,
.board-questions-page .hero,
.starters-page .hero{
  text-align:center!important;
  align-items:center!important;
}
main.wrap > .hero.wordmark-heading .lead,
.board-questions-page .hero .lead,
.starters-page .hero .lead{
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Tier/level words live in resource titles or organisational section headings; don't repeat them as little tags. */
.resource-row .meta{font-size:.76rem!important;color:#70847a!important;margin-top:3px!important}

/* Starters: same compact visual language as the rest of the resource pages. */
.starters-page .starter-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
}
.starters-page .starter-card{
  grid-template-columns:1fr!important;
  min-height:0!important;
  overflow:hidden!important;
}
.starters-page .starter-preview{
  width:100%!important;
  height:145px!important;
  min-height:145px!important;
  border-right:0!important;
  border-bottom:1px solid #dcebe4!important;
  background:#fff!important;
}
.starters-page .starter-preview img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  transform:none!important;
}
.starters-page .starter-card:hover .starter-preview img{transform:none!important}
.starters-page .starter-card-body{
  min-height:0!important;
  padding:14px 16px 16px!important;
  gap:6px!important;
  text-align:left!important;
}
.starters-page .starter-card-body strong{font-size:1rem!important}
.starters-page .starter-card-body>span{font-size:.82rem!important;line-height:1.38!important}

/* Board Questions: centered and compact, matching the modern resource card rhythm. */
.board-questions-page .hero{padding-bottom:12px!important}
.board-questions-page .board-as-starters-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  margin-top:16px!important;
}
.board-questions-page .board-as-starters-card{
  grid-template-columns:1fr!important;
  min-height:0!important;
  overflow:hidden!important;
}
.board-questions-page .board-category-visual{
  min-height:118px!important;
  height:118px!important;
  border-right:0!important;
  border-bottom:1px solid #dcebe4!important;
}
.board-questions-page .board-as-starters-card .starter-card-body{
  min-height:0!important;
  padding:14px 16px 16px!important;
  justify-content:flex-start!important;
  gap:6px!important;
}
.board-questions-page .board-as-starters-card .starter-card-body>strong{font-size:1rem!important}
.board-questions-page .board-as-starters-card .starter-card-body>span{font-size:.8rem!important;line-height:1.38!important}

@media(max-width:900px){
  .starters-page .starter-grid,
  .board-questions-page .board-as-starters-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:580px){
  .starters-page .starter-grid,
  .board-questions-page .board-as-starters-grid{grid-template-columns:1fr!important}
  .starters-page .starter-preview{height:125px!important;min-height:125px!important}
  .board-questions-page .board-category-visual{height:105px!important;min-height:105px!important}
}

/* =========================================================
   2026-09-18 cumulative visual polish requested in review
   ========================================================= */
/* Public text headings: smaller with a stronger black edge. */
.marketing-page > .marketing-hero .title,
.latest-page > .hero .title,
.wrap > .hero:not(.account-hero) > .title:not(.sr-only),
.topic-category-title{
  font-size:clamp(1.65rem,3vw,2.75rem)!important;
  -webkit-text-stroke:2.5px #080808!important;
  paint-order:stroke fill!important;
  text-shadow:none!important;
}
/* The resource hub's requested RESOURCES title gets the same family but a deliberate heavier outline. */
.resource-hub-hero .title{
  font-size:clamp(1.5rem,2.55vw,2rem)!important;
  -webkit-text-stroke:5px #080808!important;
  letter-spacing:.025em!important;
}
.resource-hub-hero .lead{font-size:.68rem!important;line-height:1.3!important;max-width:520px!important}
/* About/pricing hero copy should not dominate the page. */
.about-page .marketing-hero .title,
.pricing-page .marketing-hero .title{font-size:clamp(1.55rem,2.65vw,2.35rem)!important}
.marketing-page > .marketing-hero .lead{font-size:.86rem!important;line-height:1.48!important;max-width:700px!important}
/* Wordmark artwork must be truly centred, including Starters and Tutoring. */
.wordmark-heading .mth-category-wordmark,
.starters-page .mth-category-wordmark,
.tutoring-page .mth-category-wordmark{
  display:block!important;
  margin-left:auto!important;
  margin-right:auto!important;
  object-position:center center!important;
  float:none!important;
}
/* Board Questions no longer has a filter. */
.board-questions-page .search-wrap{display:none!important}
/* Topic previews: no fixed canvas ratio in the browser; use the tighter server-rendered image itself. */
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{
  aspect-ratio:auto!important;
  height:auto!important;
  min-height:0!important;
  line-height:0!important;
}
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview img{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  object-fit:contain!important;
}
/* Reduce exterior horizontal whitespace around topic cards without making them cramped. */
.board-topics-page{width:min(1240px,calc(100% - 24px))!important;max-width:1240px!important}
/* Full starter preview, no crop, while retaining compact cards. */
.starters-page .starter-preview{
  height:auto!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  line-height:0!important;
}
.starters-page .starter-preview img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:210px!important;
  object-fit:contain!important;
  object-position:center!important;
}
/* Centre resource/card headings. */
.library-page .resource-row-copy,
.library-page .resource-row h3,
.resource-column>h2,
.resource-group>h2,
.booklet-columns .resource-column>h2{
  text-align:center!important;
}
/* Questions / Answers / Save stay on one compact centred row. */
.library-page .resource-actions,
.resource-column .resource-row .actions,
.compact-resource-list .resource-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  gap:6px!important;
}
.library-page .resource-actions .btn,
.library-page .resource-actions form,
.library-page .resource-actions button,
.resource-column .resource-row .actions .btn,
.resource-column .resource-row .actions form,
.resource-column .resource-row .actions button{
  width:auto!important;
  min-width:0!important;
  flex:0 1 auto!important;
  white-space:nowrap!important;
  padding:7px 9px!important;
  font-size:.72rem!important;
}
/* Latest uses the same compact centred public-page introduction. */
.latest-page > .hero{padding:18px 22px!important;margin-bottom:15px!important}
.latest-page > .hero .title{margin:0 0 5px!important}
.latest-page > .hero .lead{font-size:.78rem!important;line-height:1.4!important}
@media(max-width:520px){
  .library-page .resource-actions,.resource-column .resource-row .actions{gap:4px!important}
  .library-page .resource-actions .btn,.library-page .resource-actions button{padding:6px 7px!important;font-size:.66rem!important}
  .board-topics-page{width:min(100% - 14px,1240px)!important}
}
nn/* 2026-09-18 targeted UX corrections: resources, worksheets, topic previews, hover polish */n.resource-hub-hero .title{n  font-size:clamp(1.38rem,2.25vw,1.82rem)!important;n  -webkit-text-stroke:6px #080808!important;n  paint-order:stroke fill!important;n}n.resource-hub-hero .lead{font-size:.60rem!important;line-height:1.28!important;max-width:470px!important;margin-top:4px!important}n.resource-hub-hero{padding-top:15px!important;padding-bottom:12px!important}nn/* Worksheets: ordered maths sections, compact and scan-friendly. */n.worksheet-organised{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start!important}n.worksheet-topic-group{margin:0!important}n.worksheet-topic-group>h2{n  text-align:center!important;font-size:1rem!important;margin:0 0 7px!important;padding:7px 10px!important;n  border-radius:10px!important;background:#eaf9f1!important;border:1px solid #cfe9da!important;color:#174b31!importantn}n.worksheet-topic-group .resource-list{padding:6px!important;gap:5px!important}n.worksheet-topic-group .resource-row{padding:9px 10px!important;border-radius:9px!important}n.worksheet-topic-group .resource-row h3{font-size:.82rem!important;line-height:1.25!important}n.worksheet-topic-group .meta{font-size:.66rem!important}nn/* Topic preview itself should fill the card width: no browser padding or extra white frame. */n.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview{background:transparent!important;border:0!important;padding:0!important}n.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview img{n  display:block!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;background:transparent!important;n  transform:scale(1)!important;transition:transform .18s ease!important;transform-origin:center center!importantn}n.board-topics-page #topicGrid .topic-card.board-as-starters-card:hover .starter-preview img{transform:scale(1.025)!important}nn/* Board Questions gets the same restrained hover life as the starter cards. */n.board-questions-page .board-category-visual{overflow:hidden!important;transition:transform .18s ease!important}n.board-questions-page .board-as-starters-card:hover .board-category-visual{transform:scale(1.025)!important}nn@media(max-width:760px){.worksheet-organised{grid-template-columns:1fr!important}.resource-hub-hero .title{-webkit-text-stroke:4.5px #080808!important}}n

/* 2026-09-18 final copy + public page consistency pass */
/* Homepage hero copy follows the compact client-video treatment. */
.page-index .hero-summary{
  font-size:clamp(.92rem,1.45vw,1.18rem)!important;
  line-height:1.4!important;
  margin:8px auto 3px!important;
  max-width:720px!important;
  text-align:center!important;
}
.page-index .hero-note{
  font-size:.76rem!important;
  line-height:1.35!important;
  margin:2px auto 8px!important;
  max-width:620px!important;
  text-align:center!important;
}
/* Latest matches the other public pages: centred, compact, outlined heading, no filter block. */
.latest-page>.hero{
  text-align:center!important;
  padding:16px 20px 13px!important;
  margin-bottom:14px!important;
}
.latest-page>.hero .title{
  color:#a9eed0!important;
  font-family:var(--mth-display)!important;
  font-style:italic!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  font-size:clamp(1.55rem,2.7vw,2.2rem)!important;
  -webkit-text-stroke:3.5px #080808!important;
  paint-order:stroke fill!important;
  letter-spacing:.02em!important;
  margin:0 0 5px!important;
}
.latest-page>.hero .lead{
  font-size:.72rem!important;
  line-height:1.35!important;
  max-width:560px!important;
  margin:0 auto!important;
}
.latest-page>.hero .search-wrap,.latest-page>.hero .eyebrow{display:none!important}
/* Starters: no hover zoom or card movement at all. */
.starters-page .starter-card,
.starters-page .starter-card:hover,
.starters-page .starter-card:focus-visible{
  transform:none!important;
}
.starters-page .starter-preview,
.starters-page .starter-card:hover .starter-preview,
.starters-page .starter-preview img,
.starters-page .starter-card:hover .starter-preview img{
  transform:none!important;
  transition:none!important;
}


/* 2026-09-18 worksheet three-section rebuild + title cleanup */
.library-page>.hero{
  text-align:center!important;
  padding:16px 18px 12px!important;
  margin-bottom:14px!important;
}
.library-page>.hero .mth-category-wordmark{
  display:block!important;
  width:min(310px,72vw)!important;
  height:auto!important;
  margin:0 auto 5px!important;
}
.library-page>.hero .lead{
  margin:0 auto!important;
  max-width:620px!important;
  font-size:.74rem!important;
  line-height:1.38!important;
  text-align:center!important;
}
.worksheet-three-sections{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:15px!important;
  align-items:start!important;
  margin-top:14px!important;
}
.worksheet-section{
  min-width:0!important;
  margin:0!important;
}

.worksheet-section-list{
  display:grid!important;
  gap:6px!important;
  padding:7px!important;
  border-radius:14px!important;
}
.worksheet-section .resource-row{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  padding:10px!important;
  min-height:0!important;
  border-radius:10px!important;
}
.worksheet-section .resource-row-copy,
.worksheet-section .resource-row h3{
  text-align:center!important;
}
.worksheet-section .resource-row h3{
  margin:0!important;
  font-size:.82rem!important;
  line-height:1.25!important;
  font-weight:800!important;
  color:#173d29!important;
}
.worksheet-section .resource-row .meta{
  margin-top:3px!important;
  text-align:center!important;
  font-size:.64rem!important;
  line-height:1.25!important;
  color:#657a6d!important;
}
.worksheet-section .resource-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:center!important;
  gap:5px!important;
}
.worksheet-section .resource-actions .btn,
.worksheet-section .resource-actions button{
  padding:6px 8px!important;
  font-size:.68rem!important;
}
.worksheet-empty{
  padding:16px!important;
  text-align:center!important;
  font-size:.75rem!important;
  color:#667b6e!important;
}
@media(max-width:980px){
  .worksheet-three-sections{grid-template-columns:1fr!important;gap:13px!important}
  .worksheet-section-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  .worksheet-section-list{grid-template-columns:1fr!important}
  
}

/* 2026-09-18 functional-only fixes retained after visual rollback */
.board-topics-page .topic-category-title{
  -webkit-text-stroke:5.25px #050505 !important;
  paint-order:stroke fill !important;
  text-shadow:none !important;
}
.topic-back-button{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin:12px 0 2px!important;
  padding:8px 11px!important;
  border:1px solid rgba(38,111,73,.18)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#315f46!important;
  font-size:.76rem!important;
  font-weight:800!important;
  text-decoration:none!important;
}
.topic-back-button:hover{background:#f4fbf7!important;border-color:rgba(38,111,73,.34)!important}
.starers-page .mth-category-wordmark,
.starters-page .mth-category-wordmark,
.tutoring-page .mth-category-wordmark,
.library-page>.hero .mth-category-wordmark{
  display:block!important;
  margin-left:auto!important;
  margin-right:auto!important;
  float:none!important;
  object-position:center center!important;
}
.starters-page .hero.wordmark-heading,
.tutoring-page .hero.wordmark-heading,
.library-page>.hero.wordmark-heading{text-align:center!important}


/* Shared, predictable browser-history back control. */
.mth-back-button{
  appearance:none;border:1px solid rgba(38,111,73,.20);background:#fff;color:#315f46;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  margin:12px 0 4px;padding:8px 12px;border-radius:9px;
  font:800 .76rem/1.1 var(--mth-body);cursor:pointer;text-decoration:none;
  box-shadow:0 2px 8px rgba(35,75,54,.05);transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.mth-back-button:hover{background:#f4fbf7;border-color:rgba(38,111,73,.36);transform:translateY(-1px)}
.mth-back-button:focus-visible{outline:3px solid rgba(61,164,107,.24);outline-offset:2px}
@media(max-width:620px){.mth-back-button{margin-top:9px;padding:8px 10px;font-size:.72rem}}


/* One predictable visual language for every downloadable PDF library. */
.library-page .resource-column-grid,
.library-page .exam-paper-organised{
  display:grid!important;gap:15px!important;align-items:start!important;margin-top:14px!important;
}
.library-page .resource-column-grid-two,.library-page .exam-paper-organised{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.library-page .resource-column-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))!important}

.library-page .resource-column>.resource-list,
.library-page .exam-paper-year>.resource-list,
.library-page .booklet-extra>.resource-list,
.library-page .compact-resource-list{
  display:grid!important;gap:6px!important;padding:7px!important;border-radius:14px!important;
}
.library-page .resource-column .resource-row,
.library-page .exam-paper-year .resource-row,
.library-page .booklet-extra .resource-row,
.library-page .compact-resource-list .resource-row{
  display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding:10px!important;min-height:0!important;border-radius:10px!important;
}
.library-page .resource-row-copy,.library-page .resource-row h3{text-align:center!important}
.library-page .resource-row h3{margin:0!important;font-size:.82rem!important;line-height:1.25!important;font-weight:800!important;color:#173d29!important}
.library-page .resource-row .meta{text-align:center!important;font-size:.64rem!important;line-height:1.25!important}
.library-page .resource-actions{display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;gap:5px!important;width:100%!important}
.library-page .resource-actions .btn,.library-page .resource-actions button{padding:6px 8px!important;font-size:.68rem!important;width:auto!important;min-width:0!important}
.library-page .resource-actions form{width:auto!important}
.library-page .exam-paper-year{margin:0 0 10px!important}
.library-page .exam-paper-year>h3{text-align:center!important;margin:3px 0 6px!important;font-size:.82rem!important;color:#4c6859!important}
@media(max-width:980px){.library-page .resource-column-grid-three{grid-template-columns:1fr 1fr!important}.library-page .resource-column-grid-two,.library-page .exam-paper-organised{grid-template-columns:1fr!important}}
@media(max-width:620px){.library-page .resource-column-grid-three{grid-template-columns:1fr!important}}

/* 2026-09-18: compact library search + tighter Starters header */



.library-page #resourceSearch{flex:1;min-width:0;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;padding:8px 4px!important;font:inherit;color:#173b2a}
.library-page #resourceSearch::placeholder{color:#82958c}



.library-page [hidden]{display:none!important}

.starters-page .hero.wordmark-heading{padding-top:12px!important;padding-bottom:10px!important;margin-bottom:12px!important}
.starters-page .hero.wordmark-heading .mth-category-wordmark{margin-bottom:4px!important}
.starters-page .starters-lead{font-size:.9rem!important;line-height:1.35!important;max-width:620px!important;margin:4px auto 0!important}
.starters-page .starter-grid{margin-top:10px!important}
@media(max-width:700px){
  
  .starters-page .hero.wordmark-heading{padding-top:8px!important;padding-bottom:6px!important}
}


/* 2026-09-18: visible in-header quick filter + reliable Back + compact white Starters hero */
.library-page .library-compact-header{
  position:relative!important;
  padding:12px 18px 14px!important;
  margin-bottom:16px!important;
}
.library-page .library-header-tools{
  display:grid!important;
  grid-template-columns:auto minmax(220px,420px)!important;
  align-items:start!important;
  gap:12px!important;
  margin-bottom:6px!important;
}
.library-page .library-header-tools .mth-back-button{
  margin:0!important;
  align-self:center!important;
}


.library-page .library-header-tools #resourceSearch{
  padding:6px 2px!important;
  font-size:.82rem!important;
}


.library-page .library-compact-header .mth-category-wordmark{
  margin:2px auto 3px!important;
  max-height:54px!important;
  width:auto!important;
}
.library-page .library-compact-header .lead{
  margin:2px auto 0!important;
  font-size:.82rem!important;
  line-height:1.35!important;
}

.starters-page .starters-compact-header{
  background:#fff!important;
  border:1px solid #dce8e1!important;
  border-radius:12px!important;
  padding:8px 14px 9px!important;
  margin:8px 0 10px!important;
  box-shadow:0 3px 10px rgba(20,55,38,.04)!important;
  min-height:0!important;
}
.starters-page .starters-header-tools{
  display:flex!important;justify-content:flex-start!important;margin:0 0 2px!important;
}
.starters-page .starters-header-tools .mth-back-button{margin:0!important;padding:6px 9px!important;font-size:.7rem!important}
.starters-page .starters-compact-header .mth-category-wordmark{
  display:block!important;margin:0 auto 1px!important;max-height:42px!important;width:auto!important;
}
.starters-page .starters-compact-header .starters-lead{
  margin:0 auto!important;font-size:.76rem!important;line-height:1.25!important;
}
.starters-page .starter-grid{margin-top:8px!important;gap:12px!important}

@media(max-width:700px){
  .library-page .library-header-tools{grid-template-columns:1fr!important;gap:7px!important}
  .library-page .library-header-tools .mth-back-button{justify-self:start!important}
  .library-page .library-compact-header{padding:10px 12px 12px!important}
  .starters-page .starters-compact-header{padding:7px 10px 8px!important}
}

.page-header-back{display:flex!important;justify-content:flex-start!important;margin:0 0 6px!important}
.page-header-back .mth-back-button{margin:0!important;padding:7px 10px!important;font-size:.72rem!important}


/* 2026-09-18: verified visible PDF-library filter */

.library-page .library-header-tools{display:grid!important;grid-template-columns:auto minmax(260px,460px)!important;align-items:end!important;gap:14px!important}


.library-page #resourceSearch{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;min-width:0!important;font-size:.86rem!important}
@media(max-width:700px){.library-page .library-header-tools{grid-template-columns:1fr!important;align-items:stretch!important}}


/* 2026-09-18: polished resource header controls */
.library-page .library-compact-header{
  padding:14px 18px 16px!important;
}
.library-page .library-header-tools{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin:0 0 8px!important;
}
.library-page .library-header-tools .mth-back-button{
  margin:0!important;
  min-height:38px!important;
  padding:9px 13px!important;
  border-radius:10px!important;
  border:1px solid #d7e6dd!important;
  background:#fff!important;
  color:#244a35!important;
  box-shadow:none!important;
  font-size:.75rem!important;
  white-space:nowrap!important;
}
.library-page .library-header-tools .mth-back-button:hover{
  background:#f5faf7!important;
  border-color:#b9d2c2!important;
  transform:none!important;
}




.library-page #resourceSearch{
  flex:1!important;
  min-width:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  padding:6px 2px!important;
  font-size:.8rem!important;
  color:#183d2a!important;
}
.library-page #resourceSearch::placeholder{color:#91a299!important}





.library-page .library-compact-header .mth-category-wordmark{
  margin:4px auto 4px!important;
}
.library-page .library-compact-header .lead{
  margin-top:3px!important;
  font-size:.8rem!important;
}
@media(max-width:700px){
  .library-page .library-header-tools{
    align-items:stretch!important;
    flex-direction:column!important;
    gap:8px!important;
  }
  
  
}
nn/* 2026-09-18 final compact library controls: Algebra-style live search */
.library-page .library-header-tools{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 8px!important;
}
.library-page .library-header-tools .mth-back-button{
  margin:0!important;
  min-height:40px!important;
  padding:9px 13px!important;
  border:1px solid #69b68e!important;
  border-radius:10px!important;
  background:#a9eed0!important;
  color:#173d2a!important;
  box-shadow:none!important;
  font-size:.75rem!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
.library-page .library-header-tools .mth-back-button:hover{
  background:#98e4c2!important;
  border-color:#56a87d!important;
  transform:none!important;
}
.library-page .library-live-search{
  flex:0 1 430px!important;
  width:min(430px,100%)!important;
  max-width:430px!important;
  min-height:44px!important;
  margin:0!important;
  padding:3px 5px 3px 13px!important;
  border:1px solid #b9d9c9!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.library-page .library-live-search:focus-within{
  border-color:#70c9a4!important;
  box-shadow:0 0 0 4px rgba(112,201,164,.14)!important;
}
.library-page .library-live-search>svg{
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  margin-left:1px!important;
  color:#628170!important;
}
.library-page .library-live-search .search{
  flex:1!important;
  width:auto!important;
  min-width:0!important;
  height:40px!important;
  min-height:40px!important;
  margin:0!important;
  padding:0 9px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#1d3c2d!important;
  font-size:.84rem!important;
  font-weight:600!important;
}
.library-page .library-live-search .search::placeholder{color:#7d9186!important}
.library-page .library-live-search .search-clear{
  flex:0 0 34px!important;
  width:34px!important;
  height:34px!important;
  margin:0!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#718b7e!important;
  font-size:20px!important;
}
.library-page .library-live-search.has-value .search-clear{display:grid!important;place-items:center!important}
.library-page .library-live-search:not(.has-value) .search-clear{display:none!important}
.library-page .library-live-search .search-clear:hover{background:#eff9f4!important;color:#214e38!important}
.board-topics-page .topic-fixed-back{
  background:#a9eed0!important;
  border-color:#69b68e!important;
  color:#173d2a!important;
}
.board-topics-page .topic-fixed-back:hover{background:#98e4c2!important;border-color:#56a87d!important;transform:none!important}
@media(max-width:700px){
  .library-page .library-header-tools{align-items:stretch!important;flex-direction:column!important;gap:7px!important}
  .library-page .library-live-search{width:100%!important;max-width:none!important}
  .library-page .library-header-tools .mth-back-button{align-self:flex-start!important}
}

/* MTH v102: legacy library controls must never render */



/* v103 — shared navigation back + real text resource headings ================= */
.mth-header-inner{gap:10px!important}
.mth-nav-back{
  flex:0 0 auto;display:inline-flex!important;align-items:center;justify-content:center;
  min-height:30px;padding:5px 9px;border:1px solid #46aa72;border-radius:9px;
  background:#69c98f;color:#10251a!important;font-size:.72rem;font-weight:850;
  line-height:1;text-decoration:none!important;white-space:nowrap;
  box-shadow:0 2px 6px rgba(40,123,78,.12);transition:.16s ease;
}
.mth-nav-back:hover{background:#7bd59f;border-color:#3f9f69;transform:translateY(-1px)}
.mth-nav-back:focus-visible{outline:3px solid rgba(61,164,107,.25);outline-offset:2px}

.text-heading-hero{text-align:center!important}
.text-heading-hero .mth-text-heading{
  position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important;
  margin:0 auto 5px!important;text-align:center!important;
  font-size:clamp(1.65rem,3vw,2.55rem)!important;font-style:italic!important;font-weight:950!important;
  line-height:1.02!important;letter-spacing:.015em!important;text-transform:uppercase!important;
  color:#91deb0!important;-webkit-text-stroke:3px #0b0b0b!important;paint-order:stroke fill!important;text-shadow:none!important;
}
.text-heading-hero .lead{margin:4px auto 0!important;text-align:center!important;max-width:720px!important}
.library-page .library-compact-header .library-live-search{
  width:min(560px,100%)!important;margin:12px auto 0!important;display:flex!important;
}
.library-page .library-compact-header{padding-top:17px!important;padding-bottom:16px!important}
.starers-page .starters-compact-header,.starters-page .starters-compact-header{padding:12px 18px 10px!important;margin-bottom:12px!important;background:#fff!important}
.starers-page .starters-compact-header .lead,.starters-page .starters-compact-header .lead{margin-top:3px!important}
.page-header-back,.starters-header-tools,.library-header-tools{display:none!important}
@media(max-width:820px){
  .mth-nav-back{min-height:28px;padding:5px 8px;font-size:.68rem;border-radius:8px}
  .mth-header-inner{gap:7px!important}
  .text-heading-hero .mth-text-heading{-webkit-text-stroke:2.4px #0b0b0b!important;font-size:clamp(1.5rem,7vw,2.15rem)!important}
  .library-page .library-compact-header .library-live-search{margin-top:10px!important}
}
@media(max-width:560px){
  .mth-nav-back{order:-2}
  .mth-brand{min-width:0}
}


/* v104 — compact resource search + stable nav back ========================= */
.library-page .library-compact-header{
  display:block!important;
  min-height:0!important;
  height:auto!important;
  padding:16px 22px 15px!important;
}
.library-page .library-compact-header .library-live-search{
  position:relative!important;
  display:flex!important;
  flex:none!important;
  align-items:center!important;
  align-self:center!important;
  width:min(440px,calc(100% - 24px))!important;
  max-width:440px!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:10px auto 0!important;
  padding:0 7px 0 12px!important;
  overflow:hidden!important;
  border:1px solid #b9d9c9!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.library-page .library-compact-header .library-live-search:focus-within{
  border-color:#70c9a4!important;
  box-shadow:0 0 0 3px rgba(112,201,164,.13)!important;
}
.library-page .library-compact-header .library-live-search>svg{
  display:block!important;flex:0 0 17px!important;width:17px!important;height:17px!important;margin:0 7px 0 0!important;
}
.library-page .library-compact-header .library-live-search .search{
  display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:0 4px!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;font-size:.84rem!important;line-height:40px!important;
}
.library-page .library-compact-header .library-live-search .search-clear{
  flex:0 0 30px!important;width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:8px!important;box-shadow:none!important;
}
.library-page .library-compact-header .lead{margin:4px auto 0!important}
@media(max-width:560px){
  .library-page .library-compact-header{padding:13px 14px 12px!important}
  .library-page .library-compact-header .library-live-search{width:100%!important;max-width:100%!important;margin-top:9px!important}
}


/* v105 — hero headings only */
.text-heading-hero .mth-text-heading{
  -webkit-text-stroke:5.5px #000000 !important;
  paint-order:stroke fill !important;
  text-shadow:none !important;
}
@media(max-width:820px){
  .text-heading-hero .mth-text-heading{
    -webkit-text-stroke:5.5px #000000 !important;
  }
}


/* v106: compact green back button inside page heroes ======================== */
.hero{position:relative!important}
.hero .hero-back-button{
  position:absolute!important;
  left:14px!important;
  top:14px!important;
  z-index:4!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:30px!important;
  margin:0!important;
  padding:5px 9px!important;
  border:1px solid #4daf73!important;
  border-radius:8px!important;
  background:#69c98f!important;
  color:#0b2f1d!important;
  font-size:.72rem!important;
  font-weight:800!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:0 2px 6px rgba(26,86,53,.10)!important;
  transition:transform .15s ease,background .15s ease,box-shadow .15s ease!important;
}
.hero .hero-back-button:hover{
  background:#7bd49d!important;
  border-color:#419f67!important;
  color:#082719!important;
  transform:translateY(-1px)!important;
  box-shadow:0 4px 9px rgba(26,86,53,.14)!important;
}
.hero .hero-back-button:focus-visible{outline:3px solid rgba(74,169,112,.25)!important;outline-offset:2px!important}
.hero.text-heading-hero>.title,
.hero.board-hero-like-starters>.topic-category-title,
.hero.wordmark-heading>.title{padding-left:64px!important;padding-right:64px!important}
@media(max-width:620px){
  .hero .hero-back-button{left:9px!important;top:9px!important;min-height:28px!important;padding:5px 8px!important;font-size:.68rem!important;border-radius:7px!important}
  .hero.text-heading-hero>.title,
  .hero.board-hero-like-starters>.topic-category-title,
  .hero.wordmark-heading>.title{padding-left:52px!important;padding-right:52px!important}
}


/* v107 — exact Sign Up green back buttons + stable images + Latest parity */
.hero .hero-back-button{
  background:var(--pro-mint,#a9eed0)!important;
  border-color:var(--pro-mint-strong,#72cda6)!important;
  color:#143a29!important;
  box-shadow:none!important;
}
.hero .hero-back-button:hover{
  background:#96e6c3!important;
  border-color:var(--pro-mint-strong,#72cda6)!important;
  color:#143a29!important;
  box-shadow:none!important;
}
.latest-page .hero{
  display:block!important;
  min-height:0!important;
  height:auto!important;
  padding:18px 22px 16px!important;
}
.latest-page .hero .lead{margin:4px auto 0!important}
.latest-page .latest-live-search{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  width:min(440px,calc(100% - 24px))!important;
  max-width:440px!important;
  height:42px!important;
  min-height:42px!important;
  margin:10px auto 0!important;
  padding:0 7px 0 12px!important;
  border:1px solid #b9d9c9!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.latest-page .latest-live-search:focus-within{border-color:#70c9a4!important;box-shadow:0 0 0 3px rgba(112,201,164,.13)!important}
.latest-page .latest-live-search>svg{display:block!important;flex:0 0 17px!important;width:17px!important;height:17px!important;margin-right:7px!important}
.latest-page .latest-live-search .search{flex:1 1 auto!important;min-width:0!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:.84rem!important}
.latest-page .latest-live-search .search-clear{flex:0 0 30px!important;width:30px!important;height:30px!important;min-height:30px!important;margin:0!important;padding:0!important;border:0!important;border-radius:8px!important}
@media(max-width:560px){.latest-page .hero{padding:14px 14px 12px!important}.latest-page .latest-live-search{width:100%!important;max-width:100%!important}}


/* v108 Board Questions cleanup */
.board-questions-page .starter-badge,
.board-questions-page .mth-access-tags,
.board-topics-page .starter-badge,
.board-topics-page .mth-access-tags{display:none!important;}


/* 2026-09-18 Board Questions category artwork v109 */
.board-questions-page .board-category-visual{
  background:#eaf8f1!important;
  position:relative!important;
}
.board-questions-page .board-category-visual .board-category-art{
  width:100%!important;
  height:100%!important;
  min-height:230px!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
  transition:transform .22s ease!important;
}
.board-questions-page .board-as-starters-card:hover .board-category-art{transform:scale(1.025)!important;}
.board-questions-page .board-category-symbol,
.board-questions-page .board-category-gridlines,
.board-questions-page .board-category-visual-name{display:none!important;}
@media(max-width:560px){
  .board-questions-page .board-category-visual .board-category-art{min-height:170px!important;}
}

/* v110 Board Questions — HTML/CSS generated category artwork (no image assets) */
.board-questions-page .board-category-visual{
  position:relative!important;display:block!important;overflow:hidden!important;
  min-height:150px!important;background:linear-gradient(145deg,#e9fbf2 0%,#dff5ea 55%,#f8fffb 100%)!important;
  border-right:1px solid #d2e9dd!important;isolation:isolate!important;
}
.board-questions-page .board-category-visual::before{
  content:"";position:absolute;inset:0;z-index:0;opacity:.6;
  background-image:linear-gradient(rgba(38,128,83,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(38,128,83,.09) 1px,transparent 1px);
  background-size:22px 22px;
}
.board-questions-page .board-category-visual::after{
  content:"";position:absolute;z-index:0;width:115px;height:115px;right:-38px;top:-42px;border-radius:50%;
  background:rgba(122,220,169,.22);box-shadow:-155px 115px 0 rgba(255,255,255,.45);
}
.board-art-grid{position:absolute;inset:0;z-index:0}
.board-art-content{position:absolute;inset:0;z-index:2;display:block;color:#164d34;font-weight:900;font-family:var(--mth-display,Arial,sans-serif)}
.board-art-spark{position:absolute;z-index:1;width:8px;height:8px;border-radius:50%;background:#75d5a6;opacity:.55}
.board-art-spark.spark-one{right:18px;bottom:20px}.board-art-spark.spark-two{left:18px;top:18px;width:5px;height:5px}


/* A Level */
.board-art-alevel .alevel-calc{position:absolute;left:10%;top:17%;font-size:1.15rem;color:#17633f}
.board-art-alevel .alevel-func{position:absolute;left:12%;bottom:15%;font-size:.78rem;color:#3d7459;white-space:nowrap}
.board-art-alevel .alevel-vector{position:absolute;right:13%;top:17%;font-size:2.1rem;color:#6bc99b;transform:rotate(-8deg)}
.board-art-alevel .alevel-vector b{font-size:1.05rem;color:#17633f;margin-left:-8px}
.board-art-alevel .alevel-graph{position:absolute;right:10%;bottom:16%;width:82px;height:62px;border-left:2px solid #2f704f;border-bottom:2px solid #2f704f}
.board-art-alevel .alevel-graph::before{content:"";position:absolute;left:7px;right:3px;bottom:10px;height:32px;border-top:3px solid #72cfa1;border-radius:50%;transform:rotate(-8deg) skewX(-16deg)}
.board-art-alevel .alevel-graph i,.board-art-alevel .alevel-graph b,.board-art-alevel .alevel-graph em{position:absolute;width:7px;height:7px;border-radius:50%;background:#17633f}
.board-art-alevel .alevel-graph i{left:12px;bottom:18px}.board-art-alevel .alevel-graph b{left:39px;bottom:36px}.board-art-alevel .alevel-graph em{right:8px;bottom:24px}

/* Number */
.board-art-number .math-chip{position:absolute;display:grid;place-items:center;border-radius:15px;background:#fff;border:2px solid #7ed6ab;box-shadow:0 7px 15px rgba(32,100,65,.10);color:#17633f}
.board-art-number .chip-a{width:58px;height:58px;left:14%;top:18%;font-size:1.7rem;transform:rotate(-5deg)}
.board-art-number .chip-b{width:52px;height:52px;right:13%;top:16%;font-size:1.2rem;transform:rotate(6deg)}
.board-art-number .chip-c{width:48px;height:48px;left:43%;bottom:13%;font-size:1.45rem;transform:rotate(3deg)}
.board-art-number .math-op{position:absolute;left:12%;right:12%;bottom:16%;font-size:1.05rem;letter-spacing:.16em;color:#3a7558;text-align:center}

/* Algebra */
.board-art-algebra .formula-main{position:absolute;left:10%;top:23%;font-size:1.25rem;white-space:nowrap}
.board-art-algebra .formula-sub{position:absolute;left:18%;bottom:20%;font-size:.92rem;color:#3f765b}
.board-art-algebra .math-x{position:absolute;right:10%;bottom:8%;font-size:4rem;line-height:1;color:#72cfa1;opacity:.52;font-style:italic}

/* Geometry */
.geo-triangle{position:absolute;width:82px;height:68px;left:12%;top:23%;border-left:3px solid transparent;border-right:3px solid transparent}
.geo-triangle::before,.geo-triangle::after,.geo-triangle i{content:"";position:absolute;background:#17633f;height:3px;transform-origin:left center;border-radius:2px}
.geo-triangle::before{width:74px;left:4px;bottom:3px}.geo-triangle::after{width:77px;left:5px;bottom:4px;transform:rotate(-62deg)}
.geo-triangle i{width:77px;left:77px;bottom:4px;transform:rotate(-118deg)}
.geo-triangle b,.geo-triangle em,.geo-triangle strong{position:absolute;font-size:.68rem;font-style:normal}.geo-triangle b{top:-10px;left:36px}.geo-triangle em{bottom:-14px;left:-2px}.geo-triangle strong{bottom:-14px;right:-4px}
.geo-circle{position:absolute;width:58px;height:58px;right:14%;top:24%;border:3px solid #72cfa1;border-radius:50%}.geo-circle::before,.geo-circle::after{content:"";position:absolute;background:#72cfa1}.geo-circle::before{width:2px;height:72px;left:27px;top:-9px}.geo-circle::after{height:2px;width:72px;top:27px;left:-9px}
.geo-angle{position:absolute;right:18%;bottom:13%;font-size:1rem;color:#3e7459}

/* Ratio */
.ratio-main{position:absolute;left:9%;top:22%;font-size:1.7rem}.ratio-second{left:auto;right:9%;top:auto;bottom:20%;font-size:1.25rem}
.ratio-arrow{position:absolute;left:45%;top:42%;font-size:2rem;color:#6cc99b}
.ratio-dot{position:absolute;width:14px;height:14px;border-radius:50%;background:#6dcc9d;box-shadow:18px 0 0 #a9eed0}.dot-1{left:16%;bottom:20%}.dot-2{left:31%;bottom:20%}.dot-3{right:25%;top:22%}

/* Statistics */
.chart-bars{position:absolute;left:11%;bottom:20%;width:88px;height:74px;border-left:2px solid #2c674a;border-bottom:2px solid #2c674a;display:flex;align-items:flex-end;gap:6px;padding:0 5px}
.chart-bars i{display:block;width:13px;height:var(--h);background:linear-gradient(#75d5a6,#2d9f6a);border-radius:4px 4px 0 0}
.chart-line{position:absolute;right:9%;top:20%;width:85px;height:58px;border-bottom:2px solid #87cbaa;transform:skewY(-10deg)}
.chart-line i{position:absolute;width:9px;height:9px;border-radius:50%;background:#17633f}.chart-line i:nth-child(1){left:2px;bottom:8px}.chart-line i:nth-child(2){left:27px;bottom:27px}.chart-line i:nth-child(3){left:53px;bottom:18px}.chart-line i:nth-child(4){right:1px;bottom:45px}
.chart-label{position:absolute;right:13%;bottom:15%;font-size:.88rem;color:#3f765b}

/* Probability */
.dice{position:absolute;width:48px;height:48px;border-radius:11px;background:#fff;border:2px solid #75cf9f;box-shadow:0 8px 18px rgba(32,100,65,.12)}
.dice-one{left:14%;top:20%;transform:rotate(-8deg)}.dice-two{left:34%;top:34%;transform:rotate(8deg)}
.dice i{position:absolute;width:7px;height:7px;border-radius:50%;background:#17633f}.dice i:nth-child(1){left:8px;top:8px}.dice i:nth-child(2){right:8px;top:8px}.dice i:nth-child(3){left:20px;top:20px}.dice i:nth-child(4){left:8px;bottom:8px}.dice i:nth-child(5){right:8px;bottom:8px}
.probability-formula{position:absolute;right:7%;bottom:18%;font-size:.72rem;max-width:92px;text-align:center;color:#3f765b}

/* Measures */
.ruler{position:absolute;left:10%;right:10%;bottom:22%;height:28px;border:2px solid #65c796;border-radius:6px;background:#fff;transform:rotate(-4deg)}
.ruler i{position:relative;display:inline-block;width:10%;height:11px;border-left:2px solid #17633f;margin-top:0}.ruler i:nth-child(even){height:17px}
.measure-units{position:absolute;left:11%;top:19%;font-size:.92rem;letter-spacing:.05em}.measure-weight{position:absolute;right:9%;top:38%;font-size:.8rem;color:#3f765b}

/* Trigonometry */
.trig-angle{position:absolute;left:12%;bottom:18%;width:90px;height:70px;border-left:3px solid #17633f;border-bottom:3px solid #17633f;transform:skewX(-18deg)}
.trig-angle::after{content:"";position:absolute;width:93px;height:3px;background:#17633f;left:0;bottom:0;transform:rotate(-39deg);transform-origin:left center}.trig-angle b{position:absolute;left:17px;bottom:8px;font-size:1rem;transform:skewX(18deg)}
.trig-functions{position:absolute;right:13%;top:20%;font-size:.82rem;line-height:1.45;color:#346f53}.trig-degree{position:absolute;right:34%;bottom:13%;font-size:.86rem}

/* Algebraic fractions */
.fraction-visual,.fraction-small{position:absolute;display:grid;grid-template-rows:auto 2px auto;text-align:center;gap:3px}.fraction-visual{left:12%;top:19%;font-size:1.05rem}.fraction-small{right:15%;bottom:18%;font-size:.82rem}.fraction-visual i,.fraction-small i{height:2px;background:#17633f;border-radius:2px}.fraction-plus{position:absolute;left:53%;top:43%;font-size:1.7rem;color:#6bc99b}

/* Sequences */
.sequence-values{position:absolute;left:8%;right:8%;top:24%;display:flex;justify-content:space-between;align-items:center}.sequence-values b{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#fff;border:2px solid #87d9b1;box-shadow:0 6px 13px rgba(32,100,65,.08);font-size:.95rem}.sequence-arrow{position:absolute;left:43%;bottom:24%;font-size:1.65rem;color:#67c698}.sequence-rule{position:absolute;right:8%;bottom:17%;font-size:.68rem;color:#3f765b}

/* Indices */
.indices-main{position:absolute;left:10%;top:19%;font-size:1.2rem}.indices-sub{position:absolute;left:17%;bottom:18%;font-size:1rem;color:#397456}.indices-extra{position:absolute;right:7%;top:49%;font-size:.68rem;color:#397456}

/* Generic / newly added categories */
.generic-initials{position:absolute;left:12%;top:17%;display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#fff;border:2px solid #7bd3a6;box-shadow:0 8px 18px rgba(32,100,65,.10);font-size:1.35rem;color:#17633f}
.generic-formula{position:absolute;right:10%;top:27%;font-size:1rem;color:#367153}.generic-topic{position:absolute;left:10%;right:10%;bottom:16%;font-size:.7rem;text-align:center;color:#4b7c64;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.board-questions-page .board-as-starters-card:hover .board-category-visual{transform:none!important}
.board-questions-page .board-as-starters-card:hover .board-art-content{transform:translateY(-2px) scale(1.015)}
.board-questions-page .board-art-content{transition:transform .18s ease!important}
.board-questions-page .board-category-art{display:none!important}
@media(max-width:720px){.board-questions-page .board-category-visual{min-height:145px!important}}
@media(max-width:480px){.board-questions-page .board-category-visual{min-height:128px!important}}
.board-art-generic .generic-initials{transform:translateX(var(--board-art-shift,0px)) rotate(-3deg)}

/* v112 — exact hero heading sizing + stroke */
.marketing-page > .marketing-hero .title,
.latest-page > .hero .title,
.wrap > .hero:not(.account-hero) > .title:not(.sr-only),
.topic-category-title {
  font-size: clamp(1.65rem, 3vw, 2.75rem) !important;
  -webkit-text-stroke: 5.5px #080808 !important;
}


/* v113 — Latest matches Starters formatting */
.latest-page .latest-compact-header{
  background:#fff!important;
  border:1px solid #dce8e1!important;
  border-radius:12px!important;
  padding:8px 14px 9px!important;
  margin:8px 0 10px!important;
  box-shadow:0 3px 10px rgba(20,55,38,.04)!important;
  min-height:0!important;
  height:auto!important;
}
.latest-page .latest-compact-header .title{margin:0!important}
.latest-page .latest-compact-header .starters-lead{
  margin:0 auto!important;
  font-size:.76rem!important;
  line-height:1.25!important;
}
.latest-page .latest-search-row{
  display:flex!important;
  justify-content:center!important;
  margin:0 0 8px!important;
}
.latest-page .latest-search-row .latest-live-search{
  width:min(440px,100%)!important;
  max-width:440px!important;
  margin:0 auto!important;
}
.latest-page .latest-card-grid{
  margin-top:8px!important;
  gap:12px!important;
}
@media(max-width:700px){
  .latest-page .latest-compact-header{padding:7px 10px 8px!important}
  .latest-page .latest-search-row{padding:0 2px!important}
}


/* v114 — Latest cards now genuinely match Starters */
.latest-page .latest-card-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  margin-top:8px!important;
}
.latest-page .latest-card{
  display:grid!important;
  grid-template-columns:1fr!important;
  min-height:0!important;
  overflow:hidden!important;
  border:1px solid #dcebe4!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 3px 10px rgba(20,55,38,.04)!important;
  text-decoration:none!important;
}
.latest-page .latest-card .starter-preview{
  display:block!important;
  width:100%!important;
  height:145px!important;
  min-height:145px!important;
  overflow:hidden!important;
  border:0!important;
  border-bottom:1px solid #dcebe4!important;
  background:#fff!important;
}
.latest-page .latest-card .starter-preview img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  background:#fff!important;
  transform:none!important;
}
.latest-page .latest-card:hover .starter-preview img,
.latest-page .latest-card:focus-visible .starter-preview img{transform:none!important}
.latest-page .latest-card .starter-card-body{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  padding:14px 16px 16px!important;
  gap:6px!important;
  text-align:left!important;
}
.latest-page .latest-card .starter-card-body strong{
  font-size:1rem!important;
  line-height:1.25!important;
  color:#173d2d!important;
}
.latest-page .latest-card .starter-card-body>span{
  font-size:.82rem!important;
  line-height:1.38!important;
  color:#5f766a!important;
}
.latest-page .latest-card .starter-badge,
.latest-page .latest-card .mth-access-tags,
.latest-page .latest-card small{display:none!important}
@media(max-width:900px){.latest-page .latest-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){
  .latest-page .latest-card-grid{grid-template-columns:1fr!important}
  .latest-page .latest-card .starter-preview{height:125px!important;min-height:125px!important}
}


/* v115 access tags restored on public discovery cards */
.board-questions-page .mth-access-tags,
.board-topics-page .mth-access-tags,
.starters-page .mth-access-tags,
.latest-page .latest-card .mth-access-tags{
  display:flex!important;align-items:center!important;gap:5px!important;margin-top:5px!important;
}
.board-questions-page .mth-access-tag,
.board-topics-page .mth-access-tag,
.starters-page .mth-access-tag,
.latest-page .mth-access-tag{font-size:.68rem!important;padding:3px 7px!important;line-height:1!important}
.latest-page .latest-card small{display:none!important}


/* v116 — faithful question previews + access tag cleanup */
.starers-page .starter-preview img,
.starters-page .starter-preview img,
.board-topics-page #topicGrid .topic-card.board-as-starters-card .starter-preview img,
.latest-page .latest-card .starter-preview img{
  object-fit:contain!important;object-position:center center!important;background:#fff!important;transform:none!important;
}
.mth-access-tag-mixed{display:none!important;}

/* v117: failed question previews stay visibly unavailable instead of showing one repeated image */
.mth-preview-unavailable{display:grid!important;place-items:center;background:#f6fbf8!important;min-height:120px}
.mth-preview-unavailable::after{content:"Preview unavailable";font-size:.78rem;font-weight:800;color:#62766b}


/* 2026-09-20 v120: lighter hero outline + text-only Starter cards */
.marketing-page > .marketing-hero .title,
.latest-page > .hero .title,
.wrap > .hero:not(.account-hero) > .title:not(.sr-only),
.topic-category-title {
  font-size: clamp(1.65rem, 3vw, 2.75rem) !important;
  -webkit-text-stroke: 3px #080808 !important;
  paint-order: stroke fill !important;
}
@media (max-width:760px){
  .marketing-page > .marketing-hero .title,
  .latest-page > .hero .title,
  .wrap > .hero:not(.account-hero) > .title:not(.sr-only),
  .topic-category-title{-webkit-text-stroke:3px #080808!important;}
}
.starters-page .starter-card-text-only{
  display:block!important;
  min-height:0!important;
  background:#fff!important;
}
.starters-page .starter-card-text-only .starter-card-body{
  min-height:118px!important;
  padding:18px 18px 16px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:7px!important;
}
.starters-page .starter-card-text-only .starter-card-body strong{font-size:1.02rem!important;}
.starters-page .starter-card-text-only .starter-card-body>span:not(.mth-access-tags){font-size:.82rem!important;line-height:1.4!important;}
.starters-page .starter-card-text-only .mth-access-tags{margin-top:3px!important;}
@media(max-width:640px){.starters-page .starter-card-text-only .starter-card-body{min-height:98px!important;padding:15px!important;}}

/* v126 Revision Lists: simple 50/50 two-column layout */






/* v125 — final centred live library search + two-row GCSE Revision */




.library-page .library-compact-header #resourceSearch{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  flex:1 1 auto!important;
  width:100%!important;
  min-width:0!important;
  height:32px!important;
  padding:4px 2px!important;
  margin:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:.86rem!important;
  color:#173d2a!important;
}









/* v127: lighter library section heading stroke */



/* v128: Revision Lists true col-6 desktop split */

/* v130 — one authoritative library layout/search/title block.
   Deliberately simple and prefixed where useful for Safari compatibility. */
.library-page .library-compact-header .resource-search-wrap{
  display:block!important;
  width:100%!important;
  max-width:560px!important;
  margin:12px auto 0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.library-page .library-compact-header .resource-search-box{
  display:-webkit-flex!important;
  display:flex!important;
  -webkit-align-items:center!important;
  align-items:center!important;
  width:100%!important;
  min-height:42px!important;
  padding:5px 7px 5px 12px!important;
  background:#fff!important;
  border:1px solid #c7ddd1!important;
  border-radius:12px!important;
  box-shadow:0 4px 14px rgba(23,59,42,.05)!important;
}
.library-page .library-compact-header .resource-search-box:focus-within{
  border-color:#70c9a4!important;
  box-shadow:0 0 0 3px rgba(112,201,164,.13)!important;
}
.library-page .library-compact-header .resource-search-icon{
  display:inline-block!important;
  -webkit-flex:0 0 auto!important;
  flex:0 0 auto!important;
  margin-right:8px!important;
  color:#638171!important;
  font-size:1rem!important;
  line-height:1!important;
}
.library-page .library-compact-header #resourceSearch{
  display:block!important;
  -webkit-flex:1 1 auto!important;
  flex:1 1 auto!important;
  width:100%!important;
  min-width:0!important;
  height:32px!important;
  margin:0!important;
  padding:4px 2px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#173d2a!important;
  font:inherit!important;
  font-size:.86rem!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
.library-page .library-compact-header #resourceSearch::-webkit-search-cancel-button{-webkit-appearance:none!important;}
.library-page .library-compact-header .resource-search-clear{
  display:-webkit-flex!important;
  display:flex!important;
  -webkit-align-items:center!important;
  align-items:center!important;
  -webkit-justify-content:center!important;
  justify-content:center!important;
  -webkit-flex:0 0 30px!important;
  flex:0 0 30px!important;
  width:30px!important;
  height:30px!important;
  padding:0!important;
  border:0!important;
  border-radius:8px!important;
  background:#f1f7f3!important;
  color:#4e6d5d!important;
  cursor:pointer!important;
}
.library-page .library-compact-header .resource-search-clear[hidden]{display:none!important;}
.library-page .library-compact-header .resource-search-status{
  display:block!important;
  min-height:1em!important;
  margin:4px 0 0!important;
  text-align:center!important;
  font-size:.68rem!important;
  color:#718278!important;
}
.library-page .resource-filter-label,.library-page .resource-search-submit{display:none!important;}

/* Shared true col-6 layout for Revision Lists and GCSE Revision. */
.library-page .library-two-col{
  display:-webkit-flex!important;
  display:flex!important;
  -webkit-flex-wrap:wrap!important;
  flex-wrap:wrap!important;
  width:auto!important;
  margin:18px -9px 0!important;
  padding:0!important;
}
.library-page .library-two-col>.library-col-6{
  display:block!important;
  -webkit-flex:0 0 50%!important;
  flex:0 0 50%!important;
  width:50%!important;
  max-width:50%!important;
  min-width:0!important;
  margin:0!important;
  padding:0 9px!important;
  box-sizing:border-box!important;
}
.library-page .library-two-col>.library-col-6>.resource-list{width:100%!important;}

/* Single library section-title rule: 3px black stroke. */
.library-page .resource-group>h2,
.library-page .resource-column>h2,
.library-page .exam-paper-tier>h2,
.library-page .worksheet-section>h2{
  margin:0 0 8px!important;
  text-align:center!important;
  color:#a9eed0!important;
  font-family:var(--mth-display)!important;
  font-style:italic!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  font-size:clamp(1.15rem,1.8vw,1.5rem)!important;
  line-height:1!important;
  letter-spacing:.02em!important;
  -webkit-text-stroke:3px #080808!important;
  paint-order:stroke fill!important;
}

@media(max-width:760px){
  .library-page .library-two-col{margin:14px 0 0!important;}
  .library-page .library-two-col>.library-col-6{
    -webkit-flex-basis:100%!important;
    flex-basis:100%!important;
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    margin-bottom:14px!important;
  }
  .library-page .library-compact-header .resource-search-wrap{max-width:100%!important;margin-top:10px!important;}
}
