/* ==========================================================================
   C7 — hero, page banners, and the recurring section patterns
   --------------------------------------------------------------------------
   The C7 banner language, in one place so every page shares it:

     · An asymmetric split on the homepage rather than a centred photo with type
       on top. Centred-over-photo is the default every template reaches for; the
       split gives the headline a real measure and lets the imagery carry depth.
     · A "meridian" motif — thin concentric arcs suggesting lines of longitude —
       drawn in CSS. It ties the pages together without another image request.
     · A directional scrim on interior banners, so white type stays legible over
       whatever photograph the client uploads, without dimming the whole image.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared decorative motif
   -------------------------------------------------------------------------- */
.c7-meridian-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.c7-meridian-lines::before,
.c7-meridian-lines::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.14;
}

.c7-meridian-lines::before {
  width: 46rem;
  height: 46rem;
  inset-block-start: -14rem;
  inset-inline-end: -12rem;
}

.c7-meridian-lines::after {
  width: 30rem;
  height: 30rem;
  inset-block-start: -6rem;
  inset-inline-end: -4rem;
}

/* --------------------------------------------------------------------------
   Homepage hero
   --------------------------------------------------------------------------
   A full-bleed cinematic banner rather than a photo boxed beside the text. The
   boxed treatment is what every consultancy template does; letting a single
   strong photograph run edge to edge, with the type sitting in a deep directional
   scrim over it, is what makes it read as a brand campaign instead.

   The scrim is directional, not a flat wash: it is heavy where the headline sits
   and clears towards the far edge, so the photograph is still visible as a
   photograph while every word over it stays well past AA contrast.
   -------------------------------------------------------------------------- */
.c7-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  min-height: clamp(32rem, 84vh, 46rem);
  background: var(--c7-meridian-950);
  color: var(--c7-text-inverse-muted);
  isolation: isolate;
}

/* Fallback wash for the case where no photograph has been uploaded yet. */
.c7-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 90% at 82% 12%, rgb(27 114 144 / 0.5) 0%, transparent 58%),
    radial-gradient(80% 70% at 0% 100%, rgb(145 99 19 / 0.32) 0%, transparent 60%),
    var(--c7-meridian-950);
}

.c7-hero__backdrops {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.c7-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* A rotating banner crossfades between photographs. Every slide is stacked in
   place and only the current one is opaque, so nothing reflows as it changes —
   and with the script off, slide one carries `is-current` from Blade and simply
   stays, which is a complete banner rather than a broken slideshow. */
.c7-hero__backdrops .c7-hero__backdrop {
  z-index: auto;
  opacity: 0;
  transition: opacity 1100ms var(--c7-ease-out);
}

.c7-hero__backdrops .c7-hero__backdrop.is-current {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .c7-hero__backdrops .c7-hero__backdrop {
    transition-duration: 1ms;
  }
}

/* The dots sit above the trust strip, clear of the headline column. They are
   real buttons at a comfortable size on every screen — the same lesson the
   carousel arrows taught: a control nobody can see is not a control. */
.c7-hero__dots {
  position: absolute;
  z-index: 3;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(6.5rem, 12vw, 8.5rem);
  display: flex;
  align-items: center;
  gap: var(--c7-space-2);
}

.c7-hero__dot {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.75);
  border-radius: var(--c7-radius-pill);
  background: rgb(255 255 255 / 0.25);
  cursor: pointer;
  transition: background var(--c7-duration-fast) var(--c7-ease),
    border-color var(--c7-duration-fast) var(--c7-ease);
}

.c7-hero__dot:hover {
  background: rgb(255 255 255 / 0.6);
}

.c7-hero__dot.is-active {
  background: var(--c7-gold-400);
  border-color: var(--c7-gold-400);
}

.c7-hero__dot:focus-visible {
  outline: 2px solid var(--c7-gold-400);
  outline-offset: 3px;
}

/* A thumb needs more than 12px. The hit area grows without the dot itself
   changing size, so nothing shifts and the row stays the same height. */
.c7-hero__dot::before {
  content: "";
  position: absolute;
  inset: -0.75rem;
}

.c7-hero__dot {
  position: relative;
}

/* <picture> is an inline element, so it takes its width from the image's natural
   size rather than its container — which pushed the whole page sideways on a
   phone. It has to be a block that fills the backdrop before the img's 100%
   means anything useful. */
.c7-hero__backdrop picture {
  display: block;
  width: 100%;
  height: 100%;
}

.c7-hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias the crop upward: on a wide campus photograph the subject and the sky
     are what matter, and centring drags the frame down into empty foreground. */
  object-position: center 38%;
}

/* Two passes: a directional wash for the headline, and a base wash so the trust
   strip stays legible over whatever the photograph happens to be doing there. */
.c7-hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Heavy behind the headline, which sits in the left ~44% and is white on
       whatever the photograph happens to be doing there; then opening up
       sharply so the picture is actually part of the design rather than a
       texture nobody can make out. The earlier curve held 0.58 as far as 58%
       and never dropped below 0.28, which on a mid-tone photograph read as a
       flat navy panel — the hero looked like it had no photograph at all. */
    linear-gradient(
      100deg,
      rgb(4 18 27 / 0.92) 0%,
      rgb(4 18 27 / 0.78) 28%,
      rgb(4 18 27 / 0.34) 55%,
      rgb(4 18 27 / 0.06) 100%
    ),
    /* A lighter base wash: enough to seat the trust strip at the foot and stop
       a bright sky bleaching the top edge, without re-darkening the middle. */
    linear-gradient(180deg, rgb(4 18 27 / 0.42) 0%, transparent 30%, rgb(4 18 27 / 0.60) 100%);
}

.c7-hero .c7-meridian-lines {
  z-index: -1;
  color: var(--c7-meridian-200);
}

.c7-hero__inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem);
}

.c7-hero__content {
  max-width: 42rem;
  min-width: 0;
}

.c7-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--c7-space-2);
  padding: 0.4rem var(--c7-space-4);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--c7-radius-pill);
  background: rgb(255 255 255 / 0.07);
  color: var(--c7-gold-300);
  font-size: var(--c7-text-xs);
  font-weight: var(--c7-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.c7-hero__title {
  margin-block-start: var(--c7-space-5);
  color: var(--c7-white);
  font-size: var(--c7-text-display-1);
  font-weight: var(--c7-weight-extrabold);
  letter-spacing: var(--c7-tracking-display);
  line-height: 1.03;
}

/* The client's headline is three short clauses. Colouring the last one keeps the
   full sentence intact for a screen reader while giving the eye a focal point. */
.c7-hero__title-accent {
  display: block;
  background: var(--c7-gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.c7-hero__lede {
  max-width: 34rem;
  margin-block-start: var(--c7-space-5);
  color: var(--c7-white);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.375rem);
  font-weight: var(--c7-weight-medium);
  line-height: var(--c7-leading-snug);
}

.c7-hero__supporting {
  max-width: 36rem;
  margin-block-start: var(--c7-space-4);
  font-size: var(--c7-text-base);
  line-height: var(--c7-leading-relaxed);
}

.c7-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--c7-space-3);
  margin-block-start: var(--c7-space-8);
}

/* --- Trust strip ----------------------------------------------------------
   Anchored to the base of the banner and separated by a hairline, so it reads
   as part of the composition rather than a floating decoration. */
.c7-hero__strip {
  position: relative;
  z-index: 1;
  border-block-start: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(4 18 27 / 0.34);
  backdrop-filter: blur(10px);
}

.c7-hero__trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.c7-hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--c7-space-3);
  min-width: 0;
  padding: var(--c7-space-5) var(--c7-space-5) var(--c7-space-5) 0;
  color: var(--c7-white);
  font-size: var(--c7-text-sm);
  font-weight: var(--c7-weight-medium);
}

/* Hairlines between the cells, but never a trailing one after the last. */
.c7-hero__trust-item + .c7-hero__trust-item {
  padding-inline-start: var(--c7-space-5);
  border-inline-start: 1px solid rgb(255 255 255 / 0.14);
}

.c7-hero__trust-item svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--c7-gold-400);
  flex: none;
}

/* Once the cells wrap onto their own rows the vertical rule points the wrong
   way, so it becomes a rule above instead. */
@media (max-width: 64rem) {
  .c7-hero__trust-item + .c7-hero__trust-item {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .c7-hero__trust-item {
    padding-block: var(--c7-space-4);
  }
}

/* On a tall phone viewport the wide crop leaves the subject tiny, so the banner
   gives back some height and the scrim turns vertical to keep type legible. */
@media (max-width: 48rem) {
  .c7-hero {
    min-height: clamp(30rem, 78vh, 38rem);
  }

  .c7-hero__backdrop img {
    object-position: center 30%;
  }

  .c7-hero__backdrop::after {
    background: linear-gradient(
      180deg,
      rgb(4 18 27 / 0.72) 0%,
      rgb(4 18 27 / 0.82) 45%,
      rgb(4 18 27 / 0.95) 100%
    );
  }
}

/* Stacked full-width buttons on phones: a row of half-width buttons is both hard
   to hit accurately and the thing that overflows first. */
@media (max-width: 40rem) {
  .c7-hero__actions {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }

  .c7-hero__actions .c7-btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Interior page banner
   -------------------------------------------------------------------------- */
.c7-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: clamp(16rem, 30vw, 24rem);
  background: var(--c7-meridian-900);
  color: var(--c7-text-inverse-muted);
  isolation: isolate;
}

.c7-banner__image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.c7-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two scrims: a side wash so type has contrast at the start edge, and a base
   wash so the breadcrumb row stays readable whatever the photo does. */
.c7-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c7-scrim-side);
}

.c7-banner::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: -1;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgb(4 18 27 / 0.75));
}

.c7-banner .c7-meridian-lines {
  z-index: -1;
  color: var(--c7-white);
}

.c7-banner__inner {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.c7-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--c7-space-2);
  margin-block-end: var(--c7-space-3);
  color: var(--c7-gold-400);
  font-size: var(--c7-text-xs);
  font-weight: var(--c7-weight-bold);
  letter-spacing: var(--c7-tracking-caps);
  text-transform: uppercase;
}

.c7-banner__title {
  max-width: 26ch;
  color: var(--c7-white);
  font-size: var(--c7-text-display-2);
  font-weight: var(--c7-weight-extrabold);
  letter-spacing: var(--c7-tracking-display);
}

.c7-banner__lede {
  max-width: 46ch;
  margin-block-start: var(--c7-space-4);
  font-size: var(--c7-text-lg);
  line-height: var(--c7-leading-normal);
}

.c7-banner__breadcrumbs {
  margin-block-start: var(--c7-space-6);
  color: rgb(255 255 255 / 0.8);
}

/* Facts docked to the banner base — used on destination and university pages. */
.c7-banner__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--c7-space-4) var(--c7-space-10);
  margin-block-start: var(--c7-space-8);
  padding-block-start: var(--c7-space-6);
  border-block-start: 1px solid rgb(255 255 255 / 0.18);
}

.c7-banner__fact-label {
  color: rgb(255 255 255 / 0.65);
  font-size: var(--c7-text-2xs);
  font-weight: var(--c7-weight-semibold);
  letter-spacing: var(--c7-tracking-caps);
  text-transform: uppercase;
}

.c7-banner__fact-value {
  margin-block-start: 0.15rem;
  color: var(--c7-white);
  font-size: var(--c7-text-lg);
  font-weight: var(--c7-weight-bold);
}

/* Compact variant for utility pages with no photograph of their own. */
.c7-banner--compact {
  min-height: auto;
  background: var(--c7-gradient-brand);
}

.c7-banner--compact::before,
.c7-banner--compact::after {
  display: none;
}

/* --------------------------------------------------------------------------
   Split feature block (image beside content)
   -------------------------------------------------------------------------- */
.c7-split {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}

.c7-split__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--c7-radius-xl);
  box-shadow: var(--c7-shadow-lg);
  aspect-ratio: 4 / 3.2;
}

.c7-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c7-split--reverse .c7-split__media {
  order: 2;
}

@media (max-width: 48rem) {
  .c7-split--reverse .c7-split__media {
    order: 0;
  }
}

/* --- About band ----------------------------------------------------------- */
.c7-about-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: var(--c7-space-3) var(--c7-space-5);
  margin-block-start: var(--c7-space-6);
  list-style: none;
  padding: 0;
}

.c7-about-list__item {
  display: flex;
  align-items: center;
  gap: var(--c7-space-3);
  min-width: 0;
  color: var(--c7-text-strong);
  font-size: var(--c7-text-sm);
  font-weight: var(--c7-weight-medium);
}

.c7-about-list__icon {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}

.c7-about-list__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.c7-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--c7-space-3);
  margin-block-start: var(--c7-space-8);
}

@media (max-width: 30rem) {
  .c7-about-actions .c7-btn {
    width: 100%;
  }
}

/* A small stat panel overlapping the image corner. */
.c7-split__overlay {
  position: absolute;
  inset-block-end: var(--c7-space-5);
  inset-inline-start: var(--c7-space-5);
  padding: var(--c7-space-4) var(--c7-space-5);
  border-radius: var(--c7-radius-md);
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(10px);
  box-shadow: var(--c7-shadow-md);
}

/* --------------------------------------------------------------------------
   Process / timeline
   -------------------------------------------------------------------------- */
.c7-steps {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  counter-reset: c7-step;
}

.c7-step {
  position: relative;
  counter-increment: c7-step;
  padding-block-start: var(--c7-space-10);
}

.c7-step::before {
  content: counter(c7-step, decimal-leading-zero);
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  color: var(--c7-gold-500);
  font-size: var(--c7-text-2xl);
  font-weight: var(--c7-weight-extrabold);
  letter-spacing: var(--c7-tracking-display);
}

/* The connector runs between cards, so it is suppressed on the last one and
   whenever the cards have wrapped to a single column. */
.c7-step::after {
  content: "";
  position: absolute;
  inset-block-start: 0.9rem;
  inset-inline-start: 3.5rem;
  width: calc(100% - 2rem);
  height: 1px;
  background: linear-gradient(90deg, var(--c7-border-strong), transparent);
}

.c7-step:last-child::after {
  display: none;
}

@media (max-width: 60rem) {
  .c7-step::after {
    display: none;
  }
}

.c7-step__title {
  font-size: var(--c7-text-lg);
}

.c7-step__text {
  margin-block-start: var(--c7-space-2);
  color: var(--c7-text-muted);
  font-size: var(--c7-text-sm);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.c7-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--c7-radius-2xl);
  background: var(--c7-gradient-brand);
  color: var(--c7-text-inverse-muted);
  isolation: isolate;
}

.c7-cta--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgb(7 36 51 / 0.94) 0%, rgb(7 36 51 / 0.7) 60%, rgb(7 36 51 / 0.4) 100%);
}

.c7-cta__image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.c7-cta__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c7-cta .c7-meridian-lines {
  z-index: -1;
  color: var(--c7-gold-300);
}

.c7-cta__inner {
  display: grid;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.5fr) auto;
  padding: clamp(2.5rem, 5vw, 4rem);
}

.c7-cta__title {
  color: var(--c7-white);
  font-size: var(--c7-text-display-3);
}

.c7-cta__text {
  margin-block-start: var(--c7-space-3);
  font-size: var(--c7-text-lg);
}

.c7-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--c7-space-3);
}

@media (max-width: 56rem) {
  .c7-cta__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .c7-cta__actions .c7-btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Filter bar (universities, courses, scholarships)
   -------------------------------------------------------------------------- */
.c7-filters {
  position: sticky;
  inset-block-start: calc(var(--c7-header-height-compact) + var(--c7-space-2));
  z-index: var(--c7-z-sticky);
  padding: var(--c7-space-4);
  border: 1px solid var(--c7-border-subtle);
  border-radius: var(--c7-radius-lg);
  background: var(--c7-surface);
  box-shadow: var(--c7-shadow-sm);
}

.c7-filters__grid {
  display: grid;
  gap: var(--c7-space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  align-items: end;
}

.c7-filters__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--c7-space-3);
  margin-block-start: var(--c7-space-4);
  padding-block-start: var(--c7-space-4);
  border-block-start: 1px solid var(--c7-border-subtle);
}

.c7-filters__count {
  color: var(--c7-text-muted);
  font-size: var(--c7-text-sm);
}

.c7-filters__count strong {
  color: var(--c7-text-strong);
}

.c7-filters__active {
  display: flex;
  flex-wrap: wrap;
  gap: var(--c7-space-2);
}

.c7-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--c7-space-2);
  padding: 0.3rem var(--c7-space-3);
  border: 1px solid var(--c7-meridian-200);
  border-radius: var(--c7-radius-pill);
  background: var(--c7-meridian-050);
  color: var(--c7-meridian-800);
  font-size: var(--c7-text-xs);
  font-weight: var(--c7-weight-medium);
}

.c7-filter-chip button {
  display: grid;
  place-items: center;
  color: inherit;
  opacity: 0.65;
  line-height: 1;
}

.c7-filter-chip button:hover {
  opacity: 1;
}

.c7-filter-chip svg {
  width: 0.8rem;
  height: 0.8rem;
}

@media (max-width: 60rem) {
  .c7-filters {
    position: static;
  }
}

/* A tall filter panel over a table that has its own sticky header would cover
   the rows it filters (the course finder). */
.c7-filters--static {
  position: static;
}

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */
.c7-quote {
  display: flex;
  flex-direction: column;
  gap: var(--c7-space-5);
  height: 100%;
  padding: var(--c7-space-6);
  border: 1px solid var(--c7-border-subtle);
  border-radius: var(--c7-radius-lg);
  background: var(--c7-surface);
}

.c7-quote__mark {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--c7-gold-300);
}

.c7-quote__text {
  flex: 1;
  color: var(--c7-text-strong);
  font-family: var(--c7-font-serif);
  font-size: var(--c7-text-lg);
  line-height: var(--c7-leading-relaxed);
}

.c7-quote__person {
  display: flex;
  align-items: center;
  gap: var(--c7-space-3);
  padding-block-start: var(--c7-space-4);
  border-block-start: 1px solid var(--c7-border-subtle);
}

.c7-quote__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.c7-quote__name {
  color: var(--c7-text-strong);
  font-weight: var(--c7-weight-semibold);
}

.c7-quote__detail {
  color: var(--c7-text-muted);
  font-size: var(--c7-text-xs);
}

/* --------------------------------------------------------------------------
   Detail page shell — sticky aside beside long content
   -------------------------------------------------------------------------- */
.c7-detail {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) 20rem;
  align-items: start;
}

.c7-detail__aside {
  position: sticky;
  inset-block-start: calc(var(--c7-header-height-compact) + var(--c7-space-4));
  display: flex;
  flex-direction: column;
  gap: var(--c7-space-4);
}

@media (max-width: 64rem) {
  .c7-detail {
    /* minmax(0, 1fr), not 1fr: a bare `1fr` track takes its automatic minimum
       from its content, so the horizontally scrolling jump-nav inside it would
       widen the column past the viewport and push the whole page sideways. */
    grid-template-columns: minmax(0, 1fr);
  }

  .c7-detail__aside {
    position: static;
  }
}

.c7-panel {
  padding: var(--c7-space-5);
  border: 1px solid var(--c7-border-subtle);
  border-radius: var(--c7-radius-lg);
  background: var(--c7-surface);
  box-shadow: var(--c7-shadow-xs);
}

.c7-panel--brand {
  border-color: transparent;
  background: var(--c7-gradient-brand);
  color: var(--c7-text-inverse-muted);
}

.c7-panel--brand .c7-panel__title {
  color: var(--c7-white);
}

.c7-panel__title {
  margin-block-end: var(--c7-space-4);
  font-size: var(--c7-text-lg);
}

.c7-facts {
  display: flex;
  flex-direction: column;
}

.c7-facts__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--c7-space-4);
  padding-block: var(--c7-space-3);
  border-block-end: 1px solid var(--c7-border-subtle);
  font-size: var(--c7-text-sm);
}

.c7-facts__row:last-child {
  border-block-end: 0;
}

.c7-facts__label {
  color: var(--c7-text-muted);
}

.c7-facts__value {
  color: var(--c7-text-strong);
  font-weight: var(--c7-weight-semibold);
  text-align: end;
}

/* --------------------------------------------------------------------------
   Anchored in-page navigation on long detail pages
   -------------------------------------------------------------------------- */
.c7-jumpnav {
  position: sticky;
  inset-block-start: var(--c7-header-height-compact);
  z-index: var(--c7-z-sticky);
  display: flex;
  gap: var(--c7-space-1);
  overflow-x: auto;
  margin-block-end: var(--c7-space-8);
  padding-block: var(--c7-space-3);
  border-block-end: 1px solid var(--c7-border-subtle);
  background: var(--c7-canvas);
  scrollbar-width: none;
}

.c7-jumpnav::-webkit-scrollbar {
  display: none;
}

.c7-jumpnav a {
  padding: var(--c7-space-2) var(--c7-space-4);
  border-radius: var(--c7-radius-pill);
  color: var(--c7-text-muted);
  font-size: var(--c7-text-sm);
  font-weight: var(--c7-weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--c7-duration-fast) var(--c7-ease),
    color var(--c7-duration-fast) var(--c7-ease);
}

.c7-jumpnav a:hover,
.c7-jumpnav a.is-active {
  background: var(--c7-meridian-050);
  color: var(--c7-meridian-800);
}

/* --------------------------------------------------------------------------
   "From Confusion to Clarity" banner (change request §7)
   -------------------------------------------------------------------------- */
.c7-clarity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--c7-gradient-brand);
  color: var(--c7-white);
}

/* The dark overlay the client asked for, so the white headline reads on any
   brand colour the admin chooses. */
.c7-clarity__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% 50%, rgb(255 255 255 / 0.07), transparent 60%),
    linear-gradient(90deg, rgb(4 18 27 / 0.72), rgb(4 18 27 / 0.35));
}

.c7-clarity__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.c7-clarity__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--c7-space-5);
}

.c7-clarity__title {
  margin: 0;
  color: var(--c7-white);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
}

.c7-clarity__text {
  max-width: 34rem;
  margin: 0;
  color: rgb(255 255 255 / 0.84);
  font-size: var(--c7-text-lg);
}

.c7-clarity__media {
  overflow: hidden;
  border-radius: var(--c7-radius-xl, 1.25rem);
  box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.35);
  aspect-ratio: 4 / 3;
}

.c7-clarity__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 56rem) {
  .c7-clarity__inner {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   One banner size on every page (client review, Sept 2026)
   --------------------------------------------------------------------------
   The banner used to grow with its wording, so a page with a long course name
   had a taller banner — and a differently cropped picture — than its
   neighbour. Every photographed banner is now the same frame: a fixed height
   at each screen size, the picture cropped to fill it, the title held to two
   lines and the introduction to three.
   -------------------------------------------------------------------------- */
.c7-banner:not(.c7-banner--compact) {
  --c7-banner-h: 34rem;
  height: var(--c7-banner-h);
  min-height: var(--c7-banner-h);
  align-items: center;
}

.c7-banner:not(.c7-banner--compact) .c7-banner__inner {
  padding-block: var(--c7-space-8);
}

.c7-banner:not(.c7-banner--compact) .c7-banner__title,
.c7-banner:not(.c7-banner--compact) .c7-banner__lede {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c7-banner:not(.c7-banner--compact) .c7-banner__title {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.c7-banner:not(.c7-banner--compact) .c7-banner__lede {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.c7-banner:not(.c7-banner--compact) .c7-banner__facts {
  margin-block-start: var(--c7-space-6);
  padding-block-start: var(--c7-space-4);
}

@media (max-width: 64rem) {
  .c7-banner:not(.c7-banner--compact) {
    --c7-banner-h: 30rem;
  }
}

@media (max-width: 40rem) {
  .c7-banner:not(.c7-banner--compact) {
    --c7-banner-h: 28rem;
  }

  .c7-banner:not(.c7-banner--compact) .c7-banner__title {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .c7-banner:not(.c7-banner--compact) .c7-banner__lede {
    font-size: var(--c7-text-base);
  }

  /* On a phone the facts would push past the frame; the page below repeats
     them in full. */
  .c7-banner:not(.c7-banner--compact) .c7-banner__facts {
    display: none;
  }
}

/* ==========================================================================
   Phones — alignment without anything sliding sideways (client review)
   ========================================================================== */
@media (max-width: 40rem) {
  /* The banner shows all its wording on a phone; only the frame's minimum
     height is shared, so every page still opens on the same size of banner. */
  .c7-banner:not(.c7-banner--compact) {
    --c7-banner-h: auto;
    height: auto;
    min-height: 22rem;
    align-items: end;
  }

  .c7-banner:not(.c7-banner--compact) .c7-banner__title,
  .c7-banner:not(.c7-banner--compact) .c7-banner__lede {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }

  .c7-banner:not(.c7-banner--compact) .c7-banner__inner {
    padding-block: var(--c7-space-10) var(--c7-space-8);
  }

  /* "On this page" links wrap into rows of chips instead of a strip that
     scrolls sideways with its last links cut off. */
  .c7-jumpnav {
    position: static;
    flex-wrap: wrap;
    gap: var(--c7-space-2);
    overflow-x: visible;
  }

  .c7-jumpnav a {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--c7-border-subtle);
    background: var(--c7-surface);
    font-size: var(--c7-text-xs);
  }
}

/* --------------------------------------------------------------------------
   Filters: breathing room above the results, and a drawer on phones
   -------------------------------------------------------------------------- */
.c7-filters {
  margin-block-end: var(--c7-space-6);
}

/* The button that stands in for the panel on a phone. */
.c7-filterbar {
  margin-block-end: var(--c7-space-5);
}

.c7-filterbar__icon {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-inline-end: var(--c7-space-2);
}

.c7-filterbar__icon svg {
  width: 100%;
  height: 100%;
}

.c7-drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--c7-z-modal, 900) - 1);
  background: rgb(9 20 34 / 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--c7-duration-fast) var(--c7-ease), visibility var(--c7-duration-fast);
}

.c7-drawer-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

body.has-drawer {
  overflow: hidden;
}

@media (max-width: 48rem) {
  /* The panel itself becomes the drawer: same form, same listeners. */
  .c7-filters.is-drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: var(--c7-z-modal, 900);
    display: flex;
    flex-direction: column;
    width: min(21rem, 88vw);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: -12px 0 40px rgb(9 20 34 / 0.25);
    transform: translateX(100%);
    transition: transform var(--c7-duration) var(--c7-ease);
    visibility: hidden;
    overscroll-behavior: contain;
  }

  .c7-filters.is-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .c7-filters.is-drawer .c7-filters__grid {
    grid-template-columns: 1fr;
    padding: var(--c7-space-5);
  }

  .c7-filters.is-drawer .c7-filters__foot {
    margin: 0;
    padding: 0 var(--c7-space-5) var(--c7-space-5);
    border: 0;
  }

  .c7-filters__head {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--c7-space-4);
    padding: var(--c7-space-4) var(--c7-space-5);
    border-block-end: 1px solid var(--c7-border-subtle);
    background: var(--c7-surface);
  }

  .c7-filters__title {
    margin: 0;
    font-family: var(--c7-font-display, inherit);
    font-size: var(--c7-text-lg);
    font-weight: 700;
  }

  .c7-filters__close {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--c7-sunken, rgb(18 38 63 / 0.06));
    color: var(--c7-text);
  }

  .c7-filters__close svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  /* "Show results" sits on the bottom edge, always reachable. */
  .c7-filters__apply {
    position: sticky;
    inset-block-end: 0;
    margin-block-start: auto;
    padding: var(--c7-space-4) var(--c7-space-5);
    border-block-start: 1px solid var(--c7-border-subtle);
    background: var(--c7-surface);
  }
}
