/* The Tutoring Hub — V7 brand system.
   Brand teal stays exact in the mark. Dark teal is the accessible text colour.
   Fraunces is reserved for the homepage's editorial headline and image captions. */
:root {
  --brand-navy: #143352;
  --brand-teal: #009baa;
  --ink: var(--brand-navy);
  --ink-deep: var(--brand-navy);
  --paper: #fff;
  --soft: #f5f9fa;
  --mist: #eff7f8;
  --mist-ink: #007580;
  --accent: #007580;
  --accent-hover: #005d66;
  --accent-light: #b0e4e8;
  --text: #4b6275;
  --slate: var(--text);
  --line: #dce6eb;
  --radius: 5px;
  --container: 1240px;
}

body { background: var(--paper); }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { font-size: clamp(40px, 4.5vw, 62px); line-height: 1.12; }
h2 { font-size: clamp(31px, 3.4vw, 43px); line-height: 1.2; }
h3 { font-size: 23px; line-height: 1.3; }
.eyebrow { line-height: 1.6; letter-spacing: .13em; }
.section-intro p, .prose p, .policy-content p, .policy-content li { font-size: 16px; }
.text-link { font-size: 14px; font-weight: 600; min-height: 44px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { font-size: 14px; font-weight: 600; }
.button-secondary { color: var(--ink); border-color: #90a9b6; background: transparent; }
.button-secondary:hover { background: var(--mist); border-color: #7895a4; color: var(--ink); }

/* The new logo is taller. Its own white space plus this padding protects the mark. */
.header-inner { height: 92px; }
.site-header .brand { padding-block: 9px; }
.site-header .brand-lockup { width: 230px; height: auto; }
.site-header nav > a { font-size: 13px; font-weight: 500; }
.site-header .header-cta { border-radius: var(--radius); min-height: 46px; font-size: 13px; }
.announcement a, .announcement .portal-link { color: #fff; }
.announcement { font-size: 12px; }
.announcement-programme { border-left: 1px solid #6d879d; padding-left: 18px; }
.site-header nav > a::after { background: var(--brand-teal); height: 2px; }

/* A single quiet brand motif; it never sits behind text or receives focus. */
.parent-hero { position: relative; isolation: isolate; padding-block: 42px; }
.parent-hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: max(-120px, calc((100vw - 1640px) / 2)); bottom: 0;
  width: 250px; height: 253px; opacity: .045;
  background: url('/assets/tth-symbol-primary.svg') center / contain no-repeat;
}
.parent-hero-copy h1 { font-family: var(--serif); font-weight: 500; }
.parent-hero-copy h1 em { font-style: italic; font-weight: 400; }
.parent-hero-copy .eyebrow { color: var(--accent); }
.parent-hero-copy .parent-hero-lead { font-size: 24px!important; line-height: 1.45!important; }
.parent-hero-copy > p:not(.eyebrow,.quiet,.stage-line) { font-size: 17px; line-height: 1.65; }
.parent-hero-copy .stage-line { font-size: 12px; color: var(--text); }
.parent-hero-copy .button { font-size: 14px; min-height: 54px; }
.parent-hero-copy .quiet { font-size: 12px; }
.parent-hero-copy .text-link { font-size: 13px; }
.hero-story { border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px #14335208, 0 12px 36px #14335209; }
.hero-story .parent-hero-art picture { aspect-ratio: 1.9; }
.hero-story .parent-hero-art figcaption { padding: 3px 26px 0; }
.parent-hero-art .caption-rule { border-color: var(--brand-teal); }
.student-journey { padding: 21px 26px 23px; }
.journey-caption { color: var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.student-journey strong { font-size: 13px; font-weight: 600; }
.student-journey small { font-size: 12px; }
.student-journey li { padding-bottom: 12px; }
.journey-number { color: var(--text); font-size: 11px; }
.journey-note { font-size: 11px; }
.line-icon { color: var(--accent); }
.quality-section { background: var(--mist); }
.quality-points strong { font-weight: 600; }
.quality-points span { font-size: 12px; }
.membership-home { padding-top: 10px; }

/* Cleaner secondary headings let the student stories carry the warmth. */
.parent-support-copy .section-intro h2, .growth-copy .section-intro h2 { font-size: clamp(31px, 3.3vw, 42px); }
.parent-support-copy .section-intro h2+p, .growth-copy .section-intro h2+p, .support-followup { font-size: 16px; }
.support-points dd, .growth-signs dd, .benefit-grid p { font-size: 14px; }
.growth-signs dt { font: 600 19px/1.35 var(--sans); }
.story-figure picture, .partnership-hero-art picture, .about-art picture, .classroom-art, .programme-hero-art { border-radius: 8px; }
.story-figure figcaption, .partnership-hero-art figcaption { font: 400 13px/1.6 var(--sans); }
.benefit-grid h3, .standards-list h3, .delivery-steps h3, .parent-process-steps h3 { font-size: 23px; }
.institution-types h3 { font-size: 25px; }
.level-links strong, .subject-name { font-family: var(--sans); font-weight: 600; letter-spacing: -.035em; }
.level-links strong { font-size: 27px; }
.subject-name { font-size: 24px; }
.year-eleven-inner h2, .partnership-teaser h2 { font-size: clamp(31px, 3.4vw, 43px); }
.year-eleven-inner p:not(.eyebrow), .partnership-teaser p:not(.eyebrow), .partnership-teaser li { font-size: 16px; }
.term-track { border-color: var(--line); }
.term-track b { font-weight: 600; }
.partnership-hero h1 { font-size: clamp(39px, 4.5vw, 60px); }
.partnership-hero-art figcaption { margin-top: 12px; }
.closing { border-color: #33516b; }
.closing h2 { font-size: clamp(32px, 3.6vw, 46px); }
.closing p:not(.eyebrow) { font-size: 16px; }
.closing .button { color: var(--ink); }
.closing .button:hover { background: #e6f1f3; }
.dark-section .text-link, .footer-credentials a { color: var(--accent-light); }

/* Brand presence without increasing the footer's visual weight. */
.site-footer .brand-lockup { width: 238px; height: auto; }
.site-footer .brand { padding-block: 10px; }
.footer-brand > p { font-size: 16px; line-height: 1.65; color: #e0edf3; }
.footer-grid h2 { font-size: 13px; font-weight: 600; }
.footer-grid > div > a:not(.brand) { min-height: 40px; display: flex; align-items: center; }
.footer-grid > div:last-child { min-width: 0; }
.footer-bottom { font-size: 11px; }
.cookie-preferences { background: var(--ink); }

/* Enquiry and account pages use the same controls as the rest of the brand. */
.page-hero { padding-block: 58px 42px; }
.page-hero h1 { font-size: clamp(38px, 4.5vw, 60px); }
.contact-grid { gap: 64px; }
.enquiry-panel { border-radius: 8px; padding: 32px; background: var(--paper); }
.enquiry-panel h2 { font-size: 28px; }
.field label { font-size: 14px; }
.field label span, .field-help, .consent-field > label { font-size: 13px; }
.field input, .field select, .field textarea { border-radius: 4px; background: var(--paper); }
.field input[aria-invalid=true], .field select[aria-invalid=true], .field textarea[aria-invalid=true] { border-color: var(--error); }
.contact-aside h2 { font-size: 34px; }
.contact-aside .contact-phone { font: 500 24px/1.5 var(--sans)!important; }
.login-intro h1 { font-size: clamp(40px, 4.5vw, 62px); }
.login-panel { border-radius: 8px; }
.login-panel > h2 { font-size: 27px; }
.cookie-notice { background: #fff; border-color: #90a9b6; }
.cookie-actions button { background: #fff; color: var(--ink); border-color: #7895a4; }
.cookie-actions button:hover { background: var(--mist); }

@media (min-width: 1100px) {
  .parent-hero-grid { gap: 54px; grid-template-columns: 1fr 1.04fr; }
  .parent-hero-copy h1 { font-size: clamp(58px, 4.9vw, 67px); }
  .parent-hero-copy .button-row { gap: 18px; }
  .quality-points li+li { padding-left: 22px; border-left: 1px solid #cbdfe5; }
}
@media (min-width: 931px) and (max-width: 1099px) {
  .site-header .brand-lockup { width: 190px; }
  .site-header nav > a { font-size: 11px; }
  .site-header .header-cta { font-size: 11px; padding-inline: 12px; }
  .header-inner { gap: 16px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 930px) {
  .header-inner { height: 86px; }
  .site-header .brand-lockup { width: 215px; }
  .site-header nav.is-open { height: calc(100dvh - 130px); }
  .site-header nav.is-open > a { font: 500 23px/1.4 var(--sans); min-height: 60px; }
  .site-header nav.is-open > .mobile-login { font: 500 17px/1.4 var(--sans); }
  .site-header nav.is-open > .mobile-contact { margin-top: 24px; padding: 12px 18px; min-height: 50px; justify-content: space-between; font: 600 14px/1.4 var(--sans); background: var(--ink); color: #fff; border-radius: var(--radius); }
  .announcement-programme { border-left: 0; padding-left: 0; }
  .parent-hero-copy .parent-hero-lead { font-size: 21px!important; }
  .contact-grid { gap: 32px; }
}
@media (max-width: 700px) {
  :root { --gutter: 22px; --section: 56px; }
  .header-inner { height: 80px; }
  .site-header .brand-lockup { width: 200px; }
  .site-header nav.is-open { height: calc(100dvh - 124px); }
  .site-header nav.is-open > a { min-height: 56px; font-size: 22px; }
  .parent-hero { padding-block: 30px 32px; }
  .parent-hero::before { display: none; }
  .parent-hero-copy h1 { font-size: clamp(34px, 9.7vw, 49px); }
  .parent-hero-copy .parent-hero-lead { font-size: 20px!important; margin-top: 19px; }
  .parent-hero-copy > p:not(.eyebrow,.quiet,.stage-line) { font-size: 16px; }
  .parent-hero-copy .button-row { margin-top: 22px; }
  .parent-hero-copy .text-link { min-height: 44px; }
  .parent-hero-grid { gap: 27px; }
  .hero-story .parent-hero-art picture { aspect-ratio: 1.6; }
  .hero-story .parent-hero-art figcaption { padding: 0 18px; font-size: 13px; }
  .student-journey { padding: 20px 18px; }
  .student-journey li { gap: 10px; }
  .student-journey small { font-size: 12px; }
  .quality-points { padding-block: 23px; gap: 22px 17px; }
  .quality-points strong { font-size: 12px; }
  .quality-points span { font-size: 11px; }
  .membership-panel { gap: 10px 18px; padding-block: 20px; }
  .membership-brand img { width: 175px; }
  .parent-support-copy .section-intro h2, .growth-copy .section-intro h2 { font-size: 31px; }
  .growth-signs { gap: 24px 18px; }
  .growth-signs dt { font-size: 18px; }
  .level-links strong { font-size: 24px; }
  .subject-name { font-size: 21px; }
  .benefit-grid h3, .standards-list h3, .delivery-steps h3 { font-size: 22px; }
  .page-hero { padding-block: 34px 32px; }
  .page-hero h1 { font-size: clamp(34px, 9.5vw, 43px); }
  .page-hero .lead { font-size: 16px; margin-top: 20px; }
  .enquiry-panel { padding: 24px 19px; }
  .enquiry-panel h2 { font-size: 25px; }
  .contact-grid { gap: 36px; }
  .field label { font-size: 14px; }
  .login-intro h1 { font-size: 40px; }
  .site-footer .brand-lockup { width: 235px; }
  .closing .button { width: 100%; justify-content: space-between; }
  .closing-action > a:last-child { min-height: 44px; }
}
@media (max-width: 360px) {
  :root { --gutter: 18px; }
  .site-header .brand-lockup { width: 180px; }
  .parent-hero-copy h1 { font-size: 33px; }
  .parent-hero-copy .parent-hero-lead { font-size: 19px!important; }
  .parent-hero-copy .button { padding-inline: 15px; font-size: 13px; }
  .parent-support-copy .section-intro h2, .growth-copy .section-intro h2 { font-size: 29px; }
  .growth-signs { grid-template-columns: 1fr; }
  .student-journey { padding-inline: 14px; }
  .level-links strong { font-size: 21px; }
}
