.subject-page{
 --subject-hero-fade:linear-gradient(90deg,rgba(var(--brand-shell-rgb),.73) 0%,rgba(var(--brand-shell-rgb),.72) 39%,rgba(var(--brand-shell-rgb),.69) 45%,rgba(var(--brand-shell-rgb),.16) 61%,transparent 80%);
}
.subject-page main{background:var(--brand-shell,#faf7f0)}
.subject-page .top-bar{--nav-fade-opacity:.74}
.subject-visual-hero{
 position:relative;
 min-height:clamp(610px,49vw,730px);
 display:flex;
 align-items:center;
 isolation:isolate;
 overflow:hidden;
 background:var(--brand-shell,#faf7f0);
 color:var(--brand-ink);
}
.subject-hero-media{position:absolute;inset:0;z-index:-2}
.subject-hero-media picture{display:block;width:100%;height:100%}
.subject-hero-image{width:100%;height:100%;max-height:none!important;object-fit:cover;border-radius:0!important}
.subject-hero-media:has(.subject-hero-image-focus)>:is(.subject-hero-image-muted,picture:has(.subject-hero-image-muted)){
 position:absolute;inset:0;width:100%;height:100%;overflow:hidden;
}
.subject-hero-image-muted{filter:blur(4px) saturate(.85);transform:scale(1.04)}
.subject-hero-media:has(.subject-hero-image-focus)>:is(.subject-hero-image-focus,picture:has(.subject-hero-image-focus)){
 position:absolute;inset:0 0 0 auto;z-index:1;width:min(68vw,1080px);height:100%;
 -webkit-mask-image:linear-gradient(to right,transparent 0,#000 24%,#000 100%);
 mask-image:linear-gradient(to right,transparent 0,#000 24%,#000 100%);
}
.subject-hero-image-focus{object-fit:cover}
.subject-visual-hero::after{
 content:'';
 position:absolute;
 inset:0;
 z-index:-1;
 background:var(--subject-hero-fade);
 pointer-events:none;
}
.subject-hero-content{
 width:min(1120px,calc(100% - 48px));
 margin:auto;
 padding:clamp(64px,8vw,112px) 0;
}
.subject-hero-content h1{
 width:100%;
 max-width:12ch;
 margin:0 0 18px;
 color:var(--brand-ink);
 font:500 clamp(48px,6.2vw,82px)/1.02 var(--font-display);
 letter-spacing:-.035em;
 text-wrap:balance;
 overflow-wrap:normal;
 word-break:normal;
 hyphens:manual;
}
.subject-hero-level{
 display:inline-block;
 max-width:min(40vw,42ch);
 margin:0 0 24px;
 padding-bottom:10px;
 border-bottom:2px solid var(--brand-blue-deep);
 color:var(--brand-ink);
 font:700 13px/1.2 var(--font-body);
 letter-spacing:.18em;
 text-transform:uppercase;
}
.subject-hero-summary{max-width:min(36ch,40vw);margin:0;color:var(--brand-ink);font:400 clamp(17px,1.6vw,21px)/1.55 var(--font-body)}
.subject-visual-hero .hero-first-question{margin-top:28px}
.subject-visual-hero .hero-first-question-controls{grid-template-columns:minmax(0,1fr) auto}
.subject-visual-hero .hero-enquiry-continue{width:auto}
body[data-page="subjects/physics"] .subject-hero-image{object-position:50% 76%}
body[data-page="subjects/chemistry"] .subject-hero-image{object-position:58% 28%}
body[data-page="subjects/biology"] .subject-hero-image{object-position:54% 70%}
body[data-page="subjects/english"] .subject-hero-image{object-position:55% 45%}
body[data-page="subjects/history"] .subject-hero-image{object-position:52% 78%}
body[data-page="subjects/physics"] .subject-hero-image-muted,
body[data-page="subjects/biology"] .subject-hero-image-muted,
body[data-page="subjects/history"] .subject-hero-image-muted{object-position:50% 0}
body[data-page="subjects/physics"] .subject-hero-image-focus{object-position:50% 65%}
body[data-page="subjects/biology"] .subject-hero-image-focus{object-position:55% 48%}
body[data-page="subjects/history"] .subject-hero-image-focus{object-position:52% 69%}
@media(min-width:901px){
 body[data-page="subjects/biology"] .subject-hero-media>:is(.subject-hero-image-focus,picture:has(.subject-hero-image-focus)){width:min(62vw,940px)}
}
.subject-editorial{
 padding-block:clamp(36px,4.5vw,64px) clamp(28px,3vw,44px)!important;
 border:0!important;
 border-radius:0!important;
 background:var(--brand-shell,#faf7f0)!important;
 box-shadow:none!important;
}
.subject-editorial>.section-inner{
 /* The section already supplies the responsive gutters. Size the reading
    column in rem so inherited small text does not shrink the whole layout. */
 width:100%;
 max-width:52rem;
 padding:0!important;
 border:0!important;
 border-radius:0!important;
 background:transparent!important;
 box-shadow:none!important;
}
.subject-editorial .dmRespColsWrapper,
.subject-editorial .dmRespCol,
.subject-editorial .dmNewParagraph,
.subject-editorial [class*="card"]{
 display:block;
 width:100%;
 max-width:100%;
 padding:0!important;
 border:0!important;
 border-radius:0!important;
 background:transparent!important;
 box-shadow:none!important;
}
.subject-page .subject-editorial p{
 max-width:none!important;
 font:400 clamp(17px,1.25vw,18px)/1.75 var(--font-body);
 margin:0 0 1.25em;
}
.subject-editorial p:last-child{margin-bottom:0!important}
.subject-editorial+:is(.subject-tutors,.exam-approach){padding-top:20px!important}
.subject-page .exam-approach,.subject-page .subject-tutors,.subject-page .subject-reviews{background:var(--brand-shell,#faf7f0)}
.subject-page main>.section{border-color:var(--brand-divider)}
.subject-features{padding-block:38px 48px!important;background:var(--brand-shell,#faf7f0)!important;border-top:1px solid var(--brand-divider)}
.subject-features>.section-inner{max-width:1120px}
.subject-features .feature-row{grid-template-columns:repeat(4,minmax(0,1fr));padding-top:0;border-top:0}
.subject-features .feature-row>.dmRespCol{display:block}

@media(max-width:900px){
 .subject-visual-hero{display:flex;flex-direction:column;align-items:stretch;min-height:0!important}
 .subject-visual-hero::after{display:none}
 .subject-hero-media{position:relative;inset:auto;z-index:auto;width:100%;height:clamp(285px,77vw,470px);-webkit-mask-image:linear-gradient(to bottom,#000 88%,transparent);mask-image:linear-gradient(to bottom,#000 88%,transparent)}
 .subject-hero-media:has(.subject-hero-image-focus)>:is(.subject-hero-image-muted,picture:has(.subject-hero-image-muted)){display:none}
 .subject-hero-media:has(.subject-hero-image-focus)>:is(.subject-hero-image-focus,picture:has(.subject-hero-image-focus)){
  position:absolute;inset:0;display:block;width:100%;height:100%;
  -webkit-mask-image:none;mask-image:none;
 }
 .subject-hero-image{object-position:center}
 .subject-hero-content{width:calc(100% - 40px);padding:16px 0 40px}
 .subject-hero-content h1{max-width:none;font-size:clamp(30px,9.2vw,44px);line-height:1.08}
 .subject-hero-summary{max-width:48ch;font-size:16px;line-height:1.5}
 .subject-hero-level{max-width:100%}
 .subject-visual-hero .hero-first-question{margin-top:20px}
 body[data-page="subjects/physics"] .subject-hero-image{object-position:52% 43%}
 body[data-page="subjects/chemistry"] .subject-hero-image{object-position:68% 66%}
 body[data-page="subjects/biology"] .subject-hero-image{object-position:55% 43%}
 body[data-page="subjects/english"] .subject-hero-image{object-position:61% 72%}
 body[data-page="subjects/history"] .subject-hero-image{object-position:54% 72%}
 .subject-features .feature-row{grid-template-columns:1fr 1fr;row-gap:0}
 .subject-features .feature-row>.dmRespCol{padding:24px 14px}
 .subject-features .feature-row>.dmRespCol:nth-child(n+3){border-top:1px solid var(--brand-divider)}
}

@media(max-width:360px){
 .subject-hero-content{width:calc(100% - 32px)}
 .subject-hero-content h1{font-size:clamp(28px,9vw,33px)}
}

@media(max-width:440px){
 .subject-visual-hero .hero-first-question-controls{grid-template-columns:1fr}
 .subject-visual-hero .hero-enquiry-continue{width:100%}
}

@media(prefers-reduced-motion:reduce){
 .subject-visual-hero *{scroll-behavior:auto}
}
