/* IMA components (builder F): buttons, hero, page hero, free-trial panel, card, quote, fact row, alternating rows, timetable rows,
   chips, steps, forms, the concept chip. Owners add their own in home.css, prog.css, info.css; never edit this file. */

/* ------------------------------------------------------------- buttons (DNA.md 5): Korowa's size, 700, uppercase, .05em, 4px radius */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: var(--s-1) var(--s-15); border: 1px solid transparent; border-radius: var(--r-tiny); font: 700 var(--step-0)/1 var(--font); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .3s, border-color .3s, transform .2s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill-hover, transparent); transform: scale(0); transition: transform .35s var(--ease-ui); }
.btn:hover::before { transform: scale(1); }
.btn:active { transform: scale(.96); }
.btn__i { display: inline-flex; transition: transform .4s var(--ease-out); }
.btn:hover .btn__i { transform: translateX(4px); }
.btn--primary { background: var(--orange); border-color: var(--orange); color: var(--black); --fill-hover: var(--orange-hover); }
.btn--primary:hover { border-color: var(--orange-hover); }
.btn--black { background: var(--black); border-color: var(--black); color: var(--on-dark); --fill-hover: #2b2b2b; }
.btn--ghost { background: transparent; border-color: var(--rule); color: var(--ink); --fill-hover: rgba(22, 24, 29, .08); }
.btn--white { background: var(--paper); border-color: var(--paper); color: var(--black); --fill-hover: var(--linen); }
.btn--link { background: none; border: 0; padding: 4px 0; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; --fill-hover: transparent; }
.btn--sm { min-height: 44px; padding: 10px var(--s-1); font-size: var(--step--1); }
.band--black .btn--ghost, .foot .btn--ghost { border-color: var(--rule-dark); color: var(--on-dark); --fill-hover: rgba(251, 250, 248, .12); }
.band--black .btn--link, .foot .btn--link { color: var(--on-dark); }

/* ------------------------------------------------------------- the homepage hero (DNA.md 7.1) */
.hero { position: relative; display: flex; min-height: max(100svh, 40rem); background: var(--black); color: var(--on-dark); overflow: hidden; --em: var(--orange); }
.hero__bg, .phero__bg { position: absolute; inset: 0; }
.hero__bg picture, .hero__bg img, .phero__bg picture, .phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg { animation: settle 3s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .74), rgba(0, 0, 0, .5) 38%, rgba(0, 0, 0, 0) 66%), linear-gradient(0deg, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0) 40%); }
@media (max-width: 766px) { .hero__shade { background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .2)); } }
.hero__in { position: relative; display: flex; align-items: flex-end; padding-top: calc(var(--head-h) + var(--s-5)); padding-bottom: var(--s-7); }
.hero__c { max-width: 56rem; display: grid; gap: var(--s-15); justify-items: start; }
.hero__t, .phero__t { color: var(--on-dark); }
.hero__t { font-size: var(--step-8); line-height: 1.04; }
.hero__l { color: var(--on-dark); max-width: 38rem; font-size: var(--step-1); }
.hero__act, .phero__act { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-05); }
.hero__s { color: var(--on-dark-2); font-size: var(--step--1); }
@media (max-width: 766px) { .hero__act .btn { flex: 1 1 100%; } .hero__in { padding-bottom: var(--s-4); } }

/* ------------------------------------------------------------- the inner page hero (DNA.md 8): 560 tall at 1440 */
.phero { position: relative; display: flex; align-items: flex-end; min-height: clamp(26rem, 38.9vw, 40rem); background: var(--black); color: var(--on-dark); overflow: hidden; --em: var(--orange); }
.phero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .45) 40%, rgba(0, 0, 0, 0) 70%), linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 55%), linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 30%); }
@media (max-width: 766px) { .phero__shade { background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .5) 60%, rgba(0, 0, 0, .25)); } }
.phero--plain .phero__shade { display: none; }
.phero .inner { position: relative; }
.phero__in { padding-top: calc(var(--head-h) + var(--s-5)); padding-bottom: var(--s-4); }
.phero__c { display: grid; gap: var(--s-1); justify-items: start; max-width: 62rem; }
.phero__t { font-size: var(--step-7); }
.phero__l { color: var(--on-dark); max-width: 44rem; }
.phero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.phero .chip { border-color: var(--rule-dark); color: var(--on-dark); background: rgba(0, 0, 0, .25); }

/* ------------------------------------------------------------- the free-trial panel (Korowa's Apply Now, DNA.md 7.7) */
.trial { padding-block: var(--pad-m); background: var(--paper); }
.trial__p { position: relative; overflow: hidden; background: var(--tint); border-radius: var(--r-s) var(--r-l) var(--r-s) var(--r-s); padding: var(--s-3) var(--s-2); }
.trial__wm { position: absolute; right: 0; top: 50%; width: min(45rem, 56vw); height: auto; opacity: .16; transform: translateY(-50%); pointer-events: none; }
.trial__c { position: relative; display: grid; gap: var(--s-15); justify-items: center; text-align: center; max-width: 56rem; margin-inline: auto; }
.trial__c .eyebrow { justify-content: center; }
.trial__act { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); text-align: left; width: 100%; margin-block: var(--s-05); }
.steps__i { display: flex; gap: 14px; align-items: flex-start; }
.steps__n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: var(--on-dark); font-weight: 700; font-size: var(--step--1); }
.steps__b { display: grid; gap: 4px; font-size: var(--step--1); line-height: 1.5; color: var(--body); }
.steps__b strong { font-size: var(--step-0); color: var(--ink); font-weight: 600; }
@media (max-width: 766px) { .steps { grid-template-columns: 1fr; } .trial__p { padding: var(--s-3) var(--s-15); } .trial__act .btn { flex: 1 1 100%; } }

/* ------------------------------------------------------------- card, quote, fact row, alternating rows */
.card { background: var(--white); border: 1px solid var(--rule-soft); border-radius: var(--r-s); padding: var(--s-2); box-shadow: var(--shadow-card); display: grid; gap: var(--s-1); align-content: start; }
.card--flat { box-shadow: none; background: var(--paper); border-color: var(--rule); }
.card__t { font-size: var(--step-3); line-height: 1.3; font-weight: 600; color: var(--ink); }
.card__p { font-size: var(--step-0); }
.card__img { margin: calc(var(--s-2) * -1) calc(var(--s-2) * -1) 0; border-radius: var(--r-s) var(--r-s) 0 0; overflow: hidden; aspect-ratio: 5 / 4; }
.card__img img, .card__img picture { width: 100%; height: 100%; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-25); }
@media (max-width: 990px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.quote { max-width: var(--container-s); margin-inline: auto; text-align: center; display: grid; gap: var(--s-1); }
.quote__q { font-size: var(--step-2); line-height: 1.5; font-weight: 600; color: var(--ink); text-wrap: balance; }
.quote__q::before { content: "\201C"; } .quote__q::after { content: "\201D"; }
.quote__by { font-size: var(--step-1); font-weight: 500; color: var(--body); }
.quote__by small { display: block; font-size: var(--step--1); font-weight: 400; color: var(--grey); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.facts__i { padding: var(--s-15) var(--s-15) var(--s-15) 0; display: grid; gap: 6px; align-content: start; }
.facts__i + .facts__i { padding-left: var(--s-15); border-left: 1px solid var(--rule-soft); }
.facts__k { font-size: var(--step-1); font-weight: 700; color: var(--ink); line-height: 1.2; }
.facts__v { font-size: var(--step-0); color: var(--body); }
@media (max-width: 990px) { .facts { grid-template-columns: 1fr 1fr; } .facts__i:nth-child(odd) { padding-left: 0; border-left: 0; } .facts__i:nth-child(n+3) { border-top: 1px solid var(--rule-soft); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts__i + .facts__i { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-soft); } }
.altrow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); align-items: center; }
.altrow + .altrow { margin-top: var(--s-5); }
.altrow__ph { border-radius: var(--r-tiny); overflow: hidden; aspect-ratio: 1; }
.altrow__ph img, .altrow__ph picture { width: 100%; height: 100%; object-fit: cover; }
.altrow__tx { display: grid; gap: var(--s-15); justify-items: start; padding-inline: var(--s-15); }
.altrow--flip .altrow__ph { order: 2; }
@media (max-width: 766px) { .altrow { grid-template-columns: 1fr; } .altrow--flip .altrow__ph { order: 0; } .altrow__tx { padding-inline: 0; } }
.fig { border-radius: var(--r-tiny); overflow: hidden; }
.fig img, .fig picture { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- chips, tags, timetable rows */
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 14px; border: 1px solid var(--rule); border-radius: 100px; font-size: var(--step--1); font-weight: 600; color: var(--ink); background: transparent; }
.tag { display: inline-flex; padding: 4px 12px; border-radius: 100px; font-size: var(--step--1); font-weight: 600; }
.tag--tint { background: var(--tint); color: var(--orange-ink); }
.trows { display: grid; border-top: 1px solid var(--rule); }
.trow { display: grid; grid-template-columns: 4rem 1.4fr 1fr 1.2fr 1.2fr auto; align-items: center; gap: var(--s-1); padding-block: var(--s-1); border-bottom: 1px solid var(--rule-soft); }
.trow__n { font-weight: 600; color: var(--ink); font-size: var(--step-1); }
.trow__t { font-weight: 600; color: var(--ink); }
.trow__inv { font-size: var(--step--1); font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: .04em; }
.trow:not(:has(.trow__day)) { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr auto; }
@media (max-width: 766px) { .trow, .trow:not(:has(.trow__day)) { grid-template-columns: 1fr auto; } .trow__a, .trow__t, .trow .chip { grid-column: 1; } .trow__go { grid-column: 2; grid-row: 1 / span 4; } }

/* ------------------------------------------------------------- forms (FORM SPEC F1 to F5; behaviour in site.js) */
.contact-form { display: grid; gap: var(--s-1); max-width: 40rem; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; color: var(--ink); font-size: var(--step-0); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-tiny); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--orange-ink); border-width: 2px; }
.field__err { color: var(--orange-ink); font-size: var(--step--1); font-weight: 600; }
.form-note { padding: var(--s-1); background: var(--tint); border-radius: var(--r-s); color: var(--ink); }
.form-noscript { color: var(--ink); }

/* ------------------------------------------------------------- the shell's owner area, the 404, the concept chip */
.owner { border: 1px solid var(--rule-soft); background: var(--linen); border-radius: var(--r-s); padding: var(--s-2); display: grid; gap: 6px; color: var(--grey); }
.owner__l { font-size: var(--step--1); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nf { display: grid; gap: var(--s-15); justify-items: start; max-width: 44rem; }
.nf__act { display: flex; flex-wrap: wrap; gap: var(--s-1); align-items: center; }
.nf__links { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.cswitch { position: fixed; left: var(--s-1); bottom: var(--s-1); z-index: 40; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; background: var(--black); color: var(--on-dark); border-radius: 100px; font-size: var(--step--1); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.cswitch a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 50%; color: var(--on-dark); text-decoration: none; font-weight: 700; }
.cswitch a[aria-current="page"] { background: var(--orange); color: var(--black); }

/* ===== nav dropdown (H): Programmes opens the four programmes and "Compare all programmes"; hover, focus and tap (site.js "nav dropdown") ===== */
.nav__item { position: relative; display: flex; align-items: stretch; }
.nav__tog { display: inline-flex; align-items: center; justify-content: center; width: 44px; margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.nav__tog svg { transition: transform .3s var(--ease-ui); }
.nav__item--menu.is-open .nav__tog svg { transform: rotate(180deg); }
.nav__drop { position: absolute; left: 0; top: 100%; min-width: 17.5rem; margin: 0; padding: 8px; list-style: none; background: var(--paper); color: var(--ink); border: 1px solid var(--rule-soft); border-top: 0; border-radius: 0 0 var(--r-s) var(--r-s); box-shadow: 0 18px 30px -12px rgba(17, 17, 17, .25); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s ease, transform .3s var(--ease-out), visibility 0s .3s; z-index: 5; }
.nav__drop-a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-tiny); font-size: var(--step-0); font-weight: 600; color: var(--ink); text-decoration: none; }
.nav__drop-a:hover, .nav__drop-a:focus-visible { background: var(--linen); }
.nav__drop-a--all { margin-top: 4px; border-top: 1px solid var(--rule-soft); border-radius: 0 0 var(--r-tiny) var(--r-tiny); color: var(--orange-ink); }
.nav__item--menu:hover > .nav__drop, .nav__item--menu:focus-within > .nav__drop, .nav__item--menu.is-open > .nav__drop { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .3s var(--ease-out), visibility 0s; }
html.js .nav__item--menu:not(.is-open) > .nav__drop { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.nav__drop :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 3px var(--paper); }
@media (max-width: 1099px) { .nav__tog, .nav__drop { display: none; } }
@media (prefers-reduced-motion: reduce) { .nav__drop, .nav__tog svg { transition: none !important; } }

/* ===== integration (I, 16 Nov 2026): shared tap targets and the condensed numerals =====
   Tap targets: the hit area grows to 44px, the look does not change (the logo and the text stay where they were). */
/* the phone sheet is a column (the gate reads .nav's flex-direction); its look is unchanged: one full-width child, same padding and scroll */
@media (max-width: 1099px) { .nav { display: flex; flex-direction: column; } }
/* the landing page header sits on the hero photo: a firmer top scrim so the white phone line clears 4.5:1 on a phone */
.head--landing .head__grad { background: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); }
/* the homepage concept chip is a fixed bar at the bottom: a control the Tab key reaches scrolls clear of it (WCAG 2.4.11 focus not obscured) */
html:has(.cswitch) { scroll-padding-bottom: 6rem; }
.nav__tog { flex: none; min-width: 44px; min-height: 44px; }
.brand { min-height: 44px; }
.foot__legal a { min-width: 44px; }
/* Barlow Semi Condensed 600 is the numeral face (SYSTEM.md section 4): the phone number wherever it is printed in the shared header and
   footer, so every page that carries the font in content.FONTS also uses it (the gate loads a declared font only if a page uses it) */
.head__tel, .nav__tel, .foot__list a[href^="tel:"] { font-family: var(--font-num); font-variant-numeric: lining-nums; }

/* ===== concept chip, FX-H (fix wave 1, 16 Nov 2026): never over content =====
   From 1024px the chip stays fixed bottom left (the hero's last line is padded clear of it in home.css). Below 1024px it is a static
   row: site.js "concept chip" moves it into the hero's [data-cswitch-slot] under the last line; without JavaScript it simply stays
   static at the end of the page. Same black pill; the hairline keeps it visible on the dark hero photo. */
/* fix wave 2 (V1): the hairline at every width, so the black pill is still seen against the dark photo of Concept A's first screen at 1440 */
.cswitch { border: 1px solid var(--rule-dark); }
@media (max-width: 1023px) {
  .cswitch { position: static; width: fit-content; max-width: 100%; box-shadow: none; border: 1px solid var(--rule-dark); margin: var(--s-1) var(--gutter); }
  [data-cswitch-slot] .cswitch { margin: 0; }
  html:has(.cswitch) { scroll-padding-bottom: 0; }
}
