/* Shared account row: one horizontal balance and clear separation from navigation. */
@layer vip-header-repair {
 body a.vip-points-pill, body a.vip-points-pill:hover {display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:7px!important;background:transparent!important;color:#202b43!important;border:0!important;box-shadow:none!important;padding:8px 10px!important;min-height:44px!important;height:auto!important;white-space:nowrap!important;line-height:1.3!important}
 body a.vip-points-pill::before{margin:0!important;flex-shrink:0!important}
 body a.vip-points-pill>small,body [data-points-pending]{display:none!important}
 body .vip-header-actions .vip-account-actions>.points-link{display:none!important}
 body .vip-header-actions{position:static!important;inset:auto!important;display:flex!important;align-items:center!important;gap:20px!important;flex-wrap:wrap!important;margin-left:auto!important}
 body .vip-header-actions .vip-account-actions{display:flex!important;align-items:center!important;gap:20px!important;flex-wrap:wrap!important}
 body .vip-header-actions :is(.account-nav-link,.vip-rewards-link){display:inline-flex!important;align-items:center!important;min-height:44px!important;white-space:nowrap!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:8px 10px!important;font-size:15px!important;line-height:1.3!important;color:#202b43!important}
 body .vip-header-actions .vip-rewards-link{color:#df0055!important}
 body .selective-header{display:block!important;padding-block:16px 0!important}
 body .selective-header .study-masthead{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;min-height:76px!important;padding:0 0 18px!important;width:100%!important;max-width:none!important;margin:0!important}
 body .selective-header .study-nav-band{position:relative!important;width:100%!important;margin:0!important}
 body .selective-header .study-nav{width:100%!important;margin:0!important;padding:0!important}
 body .selective-header .device-nav-links{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;gap:12px 20px!important;font-size:16px!important}
 body .selective-header .device-nav-links>a{min-height:48px!important;padding:12px 0!important}
 @media(max-width:760px){
 body .selective-header{padding-inline:20px!important}
 body .selective-header .study-masthead{flex-wrap:wrap!important;gap:12px!important;padding-bottom:16px!important}
 body .vip-header-actions{width:100%!important;justify-content:flex-start!important;margin:0!important;gap:8px!important}
 body .vip-header-actions .vip-account-actions{gap:8px!important}
 body .vip-header-actions :is(.account-nav-link,.vip-rewards-link),body a.vip-points-pill{font-size:13px!important;padding:8px 4px!important}
 body .selective-header .device-nav-links{font-size:14px!important;gap:4px 18px!important}
 }
}

.maths-shared-header{box-sizing:border-box;width:calc(100% - 48px);max-width:1344px;margin:auto;color:#142744;font-family:'Atkinson Hyperlegible Next',Arial,sans-serif}
.maths-shared-header a{text-decoration:none;color:inherit}
.maths-shared-header .brand{display:flex;align-items:center;gap:12px;white-space:nowrap}
.maths-shared-header .device-menu-toggle{display:none}
.maths-shared-header .device-nav-links>a[aria-current=page]{color:#df0055;border-bottom:2px solid #df0055}
@media(max-width:760px){.maths-shared-header{width:100%}}

/* Match Writing Studio: one centred 1200px header container on every page. */
@layer vip-header-repair {
 html body{--vip-header-width:1200px;--vip-header-gutters:64px}
 html body :is(.selective-header,.maths-shared-header,.studio-header,.vip-standard-header){width:100%!important;max-width:none!important;margin-inline:0!important;padding-inline:0!important;box-sizing:border-box!important}
 html body .study-nav-band{width:100%!important;max-width:none!important;margin-inline:0!important;padding-inline:0!important;box-sizing:border-box!important}
 html body :is(.study-masthead,.selective-header .study-masthead,.study-nav,.selective-header .study-nav,.studio-nav){box-sizing:border-box!important;width:calc(100% - var(--vip-header-gutters))!important;max-width:var(--vip-header-width)!important;margin-inline:auto!important;padding-inline:0!important;min-width:0!important}
 html body .studio-nav>.studio-container{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-inline:0!important;padding-inline:0!important}
 @media(min-width:1181px) and (pointer:fine),(min-width:1367px){
  html body :is(.study-nav .device-nav-links,.studio-nav .studio-nav-links){width:100%!important;justify-content:space-between!important;column-gap:16px!important;padding-inline:0!important;margin-inline:0!important}
  html body :is(.study-nav .device-nav-links,.studio-nav .studio-nav-links)>:is(a,.product-menu){flex:0 1 auto!important;margin-inline:0!important}
  html body :is(.study-nav .device-nav-links>a,.study-nav .product-menu>summary,.studio-nav .studio-nav-links>a){padding-inline:12px!important}
 }
 @media(max-width:650px){html body{--vip-header-gutters:28px}}
}
@layer vip-header-repair {
 /* Outer content containers share the navigation boundaries; inner card padding stays intact. */
 html body :is(main.activity-main,main.page-width,main.r-page,main.ms-main,main.pd-main,main>.page-width,main>.wrap,main>section>.wrap,.hb-hero-grid){box-sizing:border-box!important;width:calc(100% - var(--vip-header-gutters))!important;max-width:var(--vip-header-width)!important;margin-inline:auto!important}
}

@layer vip-header-repair {html body main.activity-main{padding-inline:0!important}}

/* All public headers: no full-width divider beneath the navigation. */
@layer vip-header-repair {
 html body :is(.vip-standard-header,.selective-header,.maths-shared-header,.studio-header,.study-nav-band,.study-nav,.studio-nav){border-bottom:0!important;box-shadow:none!important}
}

/* Footer and resource divider follow the same outer edges as their content. */
@layer vip-header-repair {
 html body footer.vip-site-footer {
  box-sizing:border-box!important;width:calc(100% - var(--vip-header-gutters))!important;
  max-width:var(--vip-header-width)!important;margin-inline:auto!important;padding-inline:0!important;
 }
 html body.resources-design .selective-header::after {
  width:calc(100% - var(--vip-header-gutters))!important;max-width:var(--vip-header-width)!important;
 }
}

/* Use the masthead edges for product bands as well as the page footer. */
@layer vip-header-repair {
 html body main>:is(.growth-journey,#first-course-banner,.ref-course-band){box-sizing:border-box!important;width:calc(100% - var(--vip-header-gutters))!important;max-width:var(--vip-header-width)!important;margin-inline:auto!important}
 html body main:is(.wrap,.page-width,.sc-main)>:is(.growth-journey,#growth-journey,#first-course-banner,.ref-course-band),
 html body main>.ref-course-band>.wrap{width:100%!important;max-width:none!important;margin-inline:0!important}
 html body .vip-header-actions .vip-rewards-link{padding-right:0!important}
 html body .vip-standard-header{display:block!important}
 html body .vip-standard-header .study-masthead{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important}
 html body main.sc-main{box-sizing:border-box!important;width:calc(100% - var(--vip-header-gutters))!important;max-width:var(--vip-header-width)!important;margin-inline:auto!important}
}

@layer vip-header-repair {
 html body :is(.selective-header,.vip-standard-header,.maths-shared-header,.studio-header,.study-nav-band,.study-nav,.studio-nav,.lp-header,.b-header)::after{content:none!important;display:none!important;border:0!important;box-shadow:none!important}
 html body :is(.lp-header,.b-header,.device-nav-links,.studio-nav-links){border-bottom:0!important;box-shadow:none!important}
}

/* Mobile layout contract. Keep these in the first shared layer so legacy
   important desktop rules cannot override menu visibility or masthead flow. */
@layer vip-header-repair {
 @media screen and (max-width:1180px), screen and (pointer:coarse) and (max-width:1366px) {
  html body .study-nav-band{position:relative!important;height:auto!important;min-height:0!important;background:#fff!important}
  html body .study-nav{position:relative!important;display:flex!important;flex-wrap:wrap!important;height:auto!important;min-height:0!important;padding-block:8px!important;background:#fff!important;transform:none!important}
  html body .study-nav .device-menu-toggle{
   position:static!important;inset:auto!important;transform:none!important;
   display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;gap:9px!important;
   width:max-content!important;min-width:44px!important;max-width:none!important;height:auto!important;min-height:44px!important;
   padding:10px 16px!important;margin:0!important;border:1px solid #d7dfeb!important;border-radius:12px!important;
   background:#fff!important;color:#142744!important;font:700 15px/1.3 'Atkinson Hyperlegible Next',Arial,sans-serif!important;white-space:nowrap!important
  }
  html body .study-nav .device-menu-toggle>span{display:inline-block!important;flex-shrink:0!important}
  html body .study-nav .device-menu-toggle::after{content:none!important}
  html body .study-nav .device-menu-toggle[hidden]{display:none!important}
  html body .study-nav .device-nav-links{position:static!important;inset:auto!important;transform:none!important;display:none!important;width:100%!important;min-width:0!important;max-width:100%!important;flex:1 1 100%!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;margin:8px 0 0!important;padding:8px!important;background:#fff!important;border:1px solid #e1e5ec!important;border-radius:14px!important;max-height:60dvh!important;overflow-y:auto!important;box-sizing:border-box!important}
  html body .study-nav[data-menu-open=true] .device-nav-links{display:flex!important}
  html body .study-nav .device-nav-links>:is(a,.product-menu){flex:0 0 auto!important;width:100%!important;min-width:0!important;margin:0!important}
  html body .study-nav .device-nav-links>a,html body .study-nav .product-menu>summary{display:flex!important;justify-content:flex-start!important;white-space:normal!important;text-align:left!important;padding:12px!important;min-height:44px!important;height:auto!important;font:600 15px/1.4 'Atkinson Hyperlegible Next',Arial,sans-serif!important;color:#142744!important;background:#fff!important;border:0!important;border-radius:8px!important}
  html body .study-nav .device-nav-links>a:hover{background:#fff2f6!important;color:#d91457!important}
  html body .study-nav .menu-panel{position:static!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  html body .study-nav .hf-mobile-account{display:none!important}
 }
 @media screen and (max-width:760px){
  html body .study-masthead,html body .selective-header .study-masthead{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:10px!important;min-height:0!important;height:auto!important;padding:14px 0 4px!important;position:relative!important}
  html body .study-brand-slot{position:static!important;min-width:0!important;width:100%!important}
  html body .vip-header-actions{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:4px!important;width:100%!important;min-width:0!important;height:auto!important;margin:0!important;padding:0!important;flex:0 1 auto!important}
  html body .vip-header-actions .vip-account-actions{display:contents!important}
  html body .vip-header-actions :is(.vip-points-pill,.account-nav-link,.vip-rewards-link){display:inline-flex!important;position:static!important;flex:0 1 auto!important;min-width:0!important;min-height:44px!important;height:auto!important;padding:6px 2px!important;font:600 12px/1.3 'Atkinson Hyperlegible Next',Arial,sans-serif!important;gap:5px!important;white-space:nowrap!important}
  html body .vip-header-actions a::before{width:16px!important;height:16px!important;flex-basis:16px!important;margin:0!important}
  html body .r-page .r-hero{grid-template-columns:minmax(0,1fr)!important;padding:22px!important;gap:16px!important}
  html body .r-hero-copy{min-width:0!important;max-width:100%!important}
  html body .r-page h1{font-size:clamp(28px,7.6vw,38px)!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:break-word!important;letter-spacing:-.02em!important}
  html body .r-page .r-search{min-width:0!important;max-width:100%!important;flex-wrap:wrap!important}
  html body .r-page .r-search input{width:0!important;min-width:70px!important;flex:1 1 70px!important}
  html body .r-page .r-search .r-button{padding-inline:12px!important}
 }
}

/* OC alignment baseline: apply gutters once at the outer page boundary. */
@font-face{font-family:'Atkinson Hyperlegible Next';src:url('./fonts/AtkinsonHyperlegibleNext-latin.woff2') format('woff2');font-style:normal;font-weight:200 800;font-display:swap}

@layer vip-header-repair {
 html body :is(main.h-page,main.amc-page,main.sc-main,main.catalogue,main.r-page,main.ms-main,main.pd-main,main.guide-main,main.worksheet-main,main>.vip-free-product,main>.vip-free-banner,main>.lp-free-offer,main>.b-home-hero,main>.b-report-band,main>.resource-hero,main>.year-hero){box-sizing:border-box!important;width:calc(100% - var(--vip-header-gutters))!important;max-width:var(--vip-header-width)!important;margin-inline:auto!important;min-width:0!important}
 html body main:is(.h-page,.amc-page,.sc-main,.catalogue,.r-page,.ms-main,.pd-main,.guide-main,.worksheet-main,.page-width,.wrap)>:is(.wrap,.page-width,.vip-free-product,.vip-free-banner,.lp-free-offer,.growth-journey,#growth-journey,#first-course-banner,.ref-course-band,footer.vip-site-footer){width:100%!important;max-width:none!important;margin-inline:0!important}
 html body main:is(.h-page,.amc-page,.sc-main,.catalogue,.r-page,.ms-main,.pd-main,.guide-main,.worksheet-main,.page-width,.wrap)>section>.wrap{width:100%!important;max-width:none!important;margin-inline:0!important}
 html body :is(.study-nav .device-nav-links,.studio-nav .studio-nav-links)>:first-child{padding-left:0!important}
 html body :is(.study-nav .device-nav-links,.studio-nav .studio-nav-links)>:last-child{padding-right:0!important}
 html body.hast-design{font-family:'Atkinson Hyperlegible Next',Arial,sans-serif!important;font-size:16px!important;line-height:1.65!important;color:#0b1739!important}
 html body.hast-design :is(h1,h2,h3,h4,.h-level strong){font-family:'Atkinson Hyperlegible Next',Arial,sans-serif!important;letter-spacing:-.02em!important;line-height:1.2!important}
 html body.hast-design .h-page h1{font-size:clamp(32px,4vw,46px)!important;font-weight:800!important}
 html body.hast-design .h-page h2{font-size:clamp(24px,2.5vw,30px)!important;font-weight:800!important}
 html body.hast-design .h-page h3{font-size:21px!important;font-weight:750!important}
 html body.hast-design .h-page{padding-inline:0!important}
 html body.hast-design .h-hero{padding:28px!important;gap:28px!important;border-radius:20px!important;align-items:stretch!important}
 html body.hast-design .h-hero>div{padding:0!important;align-self:center!important;min-width:0!important}
 html body.hast-design .h-hero>img{height:100%!important;min-height:280px!important;max-height:380px!important;border-radius:20px!important;object-fit:cover!important}
 html body.hast-design .h-hero p:not(.h-eyebrow){font-size:18px!important;line-height:1.65!important}
 html body.hast-design :is(button,input,select,.h-button,.h-outline){font-family:'Atkinson Hyperlegible Next',Arial,sans-serif!important}
 html body.hast-design :is(.h-button,.h-outline){box-sizing:border-box!important;min-height:48px!important;border-radius:14px!important;padding:12px 20px!important;font-size:15px!important;line-height:1.35!important}
 html body.hast-design .vip-free-product{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;background:#edf7f4!important;border:1px solid #d1e5de!important;border-radius:20px!important;padding:24px!important;margin-block:24px!important;box-sizing:border-box!important}
 html body.hast-design .vip-free-product h2{font-size:24px!important;margin:6px 0 10px!important}
 html body.hast-design .vip-free-product p{margin:0!important;max-width:760px!important}
 html body.hast-design .vip-free-product>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0!important;background:#e60050!important;color:#fff!important;border-radius:14px!important;min-height:48px!important;padding:12px 20px!important;font-weight:700!important;box-sizing:border-box!important}
 html body.hast-design :is(.h-pathways>a,.h-level,.h-areas article,.h-routine article){border-radius:20px!important;min-width:0!important}
 html body.hast-design :is(.h-pathways>a,.h-level,.h-areas article,.h-routine article):hover{background:#fff2f6!important}
 @media(max-width:700px){
  html body.hast-design .vip-free-product{align-items:stretch!important;flex-direction:column!important;padding:20px!important;gap:16px!important}
  html body.hast-design .h-hero{padding:20px!important;gap:20px!important}
  html body.hast-design .h-hero>img{height:240px!important;min-height:0!important}
 }
}

/* The Opportunity Class content frame is the site-wide 1120px reference. */
@layer vip-header-repair {
 html body{--vip-header-width:1120px;--vip-page-width:1120px!important;--vip-page-gutter:var(--vip-header-gutters)!important}
 html body :is(main>.oc-hero,main>.oc-learning,main>.oc-method,main>.membership-plan-section,main>.amc-hero,main>.amc-section,main>.exam-section,main>.ref-product-hero,main>.resource-intro-band),
 html body.practice-setup-page main.exam-app>:is(.vip-free-banner,.exam-breadcrumb){box-sizing:border-box!important;width:calc(100% - var(--vip-header-gutters))!important;max-width:var(--vip-header-width)!important;margin-inline:auto!important}
}
@layer vip-header-repair {
 html body main:is(#amc-page,#oc-page),html body.vip-studio main>:is(#setup-screen,#writing-screen,#report-screen){box-sizing:border-box!important;width:calc(100% - var(--vip-header-gutters))!important;max-width:var(--vip-header-width)!important;margin-inline:auto!important}
 html body main:is(#amc-page,#oc-page)>:is(section,.wrap,.vip-free-product,.growth-journey,#growth-journey,#first-course-banner){width:100%!important;max-width:none!important;margin-inline:0!important}
}
@layer vip-header-repair {
 html body main.ms-main{padding-inline:0!important}
 html body main.activity-main>.exam-section{width:100%!important;max-width:none!important;margin-inline:0!important}
 html body :is(.lp-main,.ac-main){box-sizing:border-box!important;width:calc(100% - var(--vip-header-gutters))!important;max-width:var(--vip-header-width)!important;margin-inline:auto!important}
}


/* Design slice 3: former eyebrow kickers now sit under their heading as a plain meta line (category, years, date).
   Sentence case, no tracking, no chip; colour follows the surrounding text so it stays legible on any panel.
   Inside the first-declared layer: its !important beats the later page layers (vip-b-design). */
@layer vip-header-repair{body .heading-meta{display:block!important;position:static!important;margin:10px 0 14px!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:inherit!important;font-size:16px!important;font-weight:600!important;line-height:1.45!important;letter-spacing:0!important;text-transform:none!important;width:auto!important;min-height:0!important;height:auto!important}}
@layer vip-header-repair{body .resource-article-hero>.heading-meta{order:2!important}body .ref-start-box:has(>.ref-start-facts)>.heading-meta{grid-area:title!important}body .ref-start-box:has(>.ref-start-facts)>.heading-meta+h2,body .ref-start-box:has(>.ref-start-facts)>h2:has(+.heading-meta){grid-area:eyebrow!important}}
@layer vip-header-repair{body .heading-meta::before,body .heading-meta::after{content:none!important}}

/* Design slice 3: icons sit beside their card heading instead of in a tile stacked above it. */
@layer vip-header-repair{body #practice.vip-finder .vp-category .vp-art{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:14px!important;padding:0!important;min-height:0!important;text-align:left!important}}
@layer vip-header-repair{body #practice.vip-finder .vp-category .vp-art .b-product-icon{position:static!important;flex:none!important;width:48px!important;height:48px!important;margin:0!important;border-radius:12px!important}}
@layer vip-header-repair{body #practice.vip-finder .vp-category .vp-art h3{margin:0!important;text-align:left!important}}
@layer vip-header-repair{body #y3-layout .y3-head{display:flex!important;align-items:center!important;gap:14px!important}}
@layer vip-header-repair{body #y3-layout .y3-head .y3-icon{margin:0!important;width:52px!important;height:52px!important}}
@layer vip-header-repair{body #y3-layout .y3-head .y3-icon svg{width:32px!important;height:32px!important}}
@layer vip-header-repair{body #y3-layout .y3-head h3{margin:0!important}}
@layer vip-header-repair{body.vip-ui-b[data-pathway=scholarship] .sc-provider .sc-provider-icon{background:none!important;width:auto!important;height:auto!important;border-radius:0!important;margin:0 auto 16px!important}}
