.maths-reviews{
 background:var(--brand-sand)!important;
}

.maths-section-heading{
 display:flex;
 align-items:flex-end;
 justify-content:space-between;
 gap:28px;
 margin-bottom:clamp(30px,4vw,48px);
}

.maths-section-heading h2{
 max-width:16ch;
 margin:0;
 font-size:clamp(32px,4vw,52px);
}

.maths-google-link{
 display:flex;
 flex:none;
 align-items:center;
 gap:12px;
 min-height:48px;
 color:var(--brand-ink);
 font:500 14px/1.4 var(--font-body);
 text-decoration:none;
}

.maths-google-link:hover>span:first-of-type,
.maths-google-link:focus-visible>span:first-of-type{
 text-decoration:underline;
 text-underline-offset:4px;
}

.maths-google-link:focus-visible{
 outline:2px solid currentColor;
 outline-offset:6px;
}

.maths-review-grid{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));
 border-top:1px solid color-mix(in srgb,var(--brand-ink) 25%,transparent);
}

.maths-review-grid figure{
 margin:0;
 padding:clamp(25px,3vw,38px);
 border-right:1px solid color-mix(in srgb,var(--brand-ink) 25%,transparent);
}

.maths-review-grid figure:first-child{padding-left:0}
.maths-review-grid figure:last-child{padding-right:0;border-right:0}
.maths-review-grid blockquote{
 margin:0 0 22px;
 color:var(--brand-ink);
 font:400 clamp(19px,1.8vw,25px)/1.55 var(--font-display);
}
.maths-review-grid figcaption{
 display:flex;
 align-items:center;
 gap:10px;
 color:var(--brand-ink-mid);
 font:600 14px/1.4 var(--font-body);
}
.maths-review-grid figcaption::before{
 content:'';
 width:28px;
 height:1px;
 background:currentColor;
}

.maths-reviews>.section-inner{max-width:var(--content-width)}
@media(max-width:800px){
 .maths-section-heading{align-items:flex-start;flex-direction:column}
 .maths-review-grid{grid-template-columns:1fr}
 .maths-review-grid figure,
 .maths-review-grid figure:first-child,
 .maths-review-grid figure:last-child{padding:25px 0;border-right:0;border-bottom:1px solid color-mix(in srgb,var(--brand-ink) 25%,transparent)}
 .maths-review-grid figure:last-child{border-bottom:0}
}
