/* =====================================================================
   Apprenticeships at Exeter College — site styles.
   Brand carried over from THEXETER: navy #000E7A, cyan #26E0FF, pink #FF2D87, sky #0088c7,
   aqua #5CE1E6; League Gothic display headings, Gilroy body.
   Pink and cyan fail contrast as TEXT on white — accents and fills only; text/buttons use navy.
   ===================================================================== */

/* font-weight 100–900: League Gothic has one weight. Declared as "regular only", every bold use of the
   display font (the account and apply pages ask for 700) got the browser's fake bold — smeared, blobby
   headings. Covering the whole range makes those uses draw the real face instead. */
@font-face { font-family: "League Gothic"; src: url("../fonts/LeagueGothic-Regular.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/Gilroy-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/Gilroy-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/Gilroy-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #000E7A;
  --navy-dark: #00095a;
  --footer: #18183d;
  --endc-blue: #0085CA;      /* the ENDC Group logo blue */
  --endc-blue-deep: #006da6; /* same hue, dark enough for white body text (5.6:1) */
  --cyan: #26E0FF;
  --sky: #0088c7;
  --pink: #FF2D87;
  --cerise-deep: #D4145A; /* cerise dark enough for white body text (5.2:1); #FF2D87 is only 3.3:1 */
  --aqua: #5CE1E6;
  --ink: #001b5e;
  --grey-50: #f7f7f9;
  --grey-200: #d1d1dc;
  --ok: #0f7b4b;
  --error: #b00045;

  --font-display: "League Gothic", "Arial Narrow", Impact, sans-serif;
  --font-body: "Gilroy", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem;
  --radius: .6rem; --radius-lg: 1rem; --radius-pill: 999px;
  --shadow: 0 2px 10px rgba(0, 14, 122, .08);
  --shadow-lg: 0 10px 30px rgba(0, 14, 122, .18);
  --fnt-small: .875rem; --fnt-h2: 1.6rem; --fnt-h3: 1.3rem;

  /* Token names the apply wizard (ported from gmfj-website) and the lock dialog expect. */
  --surface: #fff;
  --surface-alt: #eef1ff;
  --surface-soft: var(--grey-50);
  --line: var(--grey-200);
  --text-strong: var(--ink);
  --text-muted: #4a5578;
  --indigo-300: var(--navy);
  --brand-accent: var(--pink);
  --brand-gradient: linear-gradient(90deg, var(--navy), var(--sky));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.55;
}
/* Footer at the bottom of the window on a page shorter than the window ("Page not found",
   "Application sent"): it used to sit mid-screen with blank page under it. Longer pages are unchanged. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--sky); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
/* FocusOnNavigate (Routes.razor) moves focus to the page's h1 on every load so screen readers announce
   it. Since .NET 9 that also runs on statically rendered pages, which drew the ring above around every
   page heading. A heading isn't a control, so it takes the focus without showing it. */
h1:focus { outline: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--navy); line-height: 1.05; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; margin: 0 0 var(--space-4); }
h2 { font-size: var(--fnt-h2); margin: var(--space-6) 0 var(--space-3); }
h3 { font-size: var(--fnt-h3); margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-3); }
code { font-size: .9em; }

.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1rem; }
.page { padding-block: var(--space-6) var(--space-7); }
.page--narrow { max-width: 46rem; }
.section { padding-block: var(--space-6) var(--space-7); }
.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.cluster--center { justify-content: center; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.3rem; border-radius: var(--radius-pill); border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); color: #fff; box-shadow: 0 0 0 3px var(--cyan); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--surface-alt); color: var(--navy); }
.btn--link { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; font-weight: 500; }
.btn--sm { padding: .45rem .9rem; font-size: var(--fnt-small); }
.btn--lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; box-shadow: none; }

/* ---- Header ---- */
.site-header { background: #fff; border-top: 4px solid var(--navy); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: 5rem; }
.site-header__brand img { display: block; width: auto; height: 56px; }
.site-header__colleges { display: flex; gap: var(--space-4); align-items: center; margin-inline: auto; }
.site-header__colleges img { display: block; height: 42px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav a:not(.btn) { color: var(--navy); font-weight: 700; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--pink); }
.site-nav--desktop { display: flex; gap: var(--space-5); align-items: center; }
.site-nav--mobile { display: none; }
.site-nav__toggle { list-style: none; cursor: pointer; padding: .5rem; }
.site-nav__toggle::-webkit-details-marker { display: none; }
.site-nav__toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--pink); border-radius: 2px; }
@media (max-width: 899px) {
  .site-header__colleges, .site-nav--desktop { display: none; }
  .site-nav--mobile { display: block; }
  .site-nav--mobile .site-nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    display: flex; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: var(--space-3) 1rem;
  }
  .site-nav--mobile .site-nav__links a { padding: .75rem 0; border-bottom: 1px solid var(--grey-50); }
  .site-nav--mobile .site-nav__links .btn { margin-top: var(--space-3); }
}

/* ---- Footer ---- */
.site-footer { background: var(--footer); color: #fff; margin-top: var(--space-7); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--cyan); }
.site-footer__inner { display: grid; gap: var(--space-5); padding-block: var(--space-6); grid-template-columns: 1fr; }
.site-footer__brand { display: flex; gap: var(--space-3); align-items: center; font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; }
.site-footer__brand p { margin: 0; }
.site-footer__brand img { width: 56px; height: auto; background: #fff; border-radius: var(--radius); padding: 4px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; font-size: var(--fnt-small); border-top: 1px solid rgba(255,255,255,.2); padding-top: var(--space-4); }
.site-footer__meta p { margin: 0; }
/* Partner logo links — small, in a row, white on the footer. */
.site-footer__partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.site-footer__partners a { display: block; opacity: .9; transition: opacity .15s ease; }
.site-footer__partners a:hover, .site-footer__partners a:focus-visible { opacity: 1; }
.partner-logo { display: block; height: 26px; width: auto; }
/* The ENDC mark has a black wordmark — render it all-white so it reads on the dark footer. */
.partner-logo--endc { height: 36px; filter: brightness(0) invert(1); }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: auto 1fr; align-items: center; }
  .site-footer__links { justify-content: flex-end; }
  .site-footer__meta { grid-column: 1 / -1; }
}

/* ---- Cookie banner ---- */
.cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: #fff; border-top: 4px solid var(--pink); box-shadow: var(--shadow-lg); padding-block: var(--space-4); }
.cookie-consent__inner { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; }
.cookie-consent p { margin: 0; flex: 1 1 22rem; }

/* ---- Hero (home) — photo with the old site's navy/aqua overlay ---- */
.hero { position: relative; min-height: clamp(18rem, 30vw, 30rem); display: flex; align-items: center; overflow: hidden; background: var(--endc-blue-deep); }
/* Anchored near the top: a centred crop cut the students' heads off on wide screens. */
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
/* ENDC blue overlay — deepest behind the text (white body copy needs the darker shade for contrast),
   fading out so the students stay visible on the right. */
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,109,166,.95) 0%, rgba(0,133,202,.82) 42%, rgba(0,133,202,.25) 72%, rgba(0,133,202,0) 90%); }
@media (max-width: 699px) { .hero__overlay { background: linear-gradient(180deg, rgba(0,109,166,.9) 0%, rgba(0,133,202,.75) 100%); } }
.hero__overlay::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 7rem 7rem; border-color: transparent transparent var(--aqua) transparent; opacity: .9; }
.hero__content { position: relative; color: #fff; padding-block: var(--space-7); }
.hero__title { color: #fff; font-size: clamp(2.8rem, 8vw, 5rem); margin: 0; }
.hero__sub { font-size: 1.2rem; margin: var(--space-2) 0 0; max-width: 28rem; }
.hero__sub::before { content: ""; display: block; width: 4rem; height: 4px; background: var(--pink); margin-bottom: var(--space-3); }

/* ---- Search ---- */
.search { margin-top: calc(-1 * var(--space-6)); position: relative; }
.filters {
  display: grid; gap: var(--space-3); grid-template-columns: 1fr;
  background: #fff; border-radius: 0; box-shadow: var(--shadow-lg); padding: var(--space-5);
  border-top: 4px solid var(--cyan);
}
@media (min-width: 700px) { .filters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .filters { grid-template-columns: 2fr repeat(4, 1fr); } .filters__actions { grid-column: 1 / -1; } }
.filters__field label { display: block; font-weight: 700; font-size: var(--fnt-small); text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--space-1); }
.filters__actions { display: flex; gap: var(--space-3); align-items: end; }
.filters input, .filters select { border-radius: 0; }
/* Cerise, square Search button (the old site's). White text on cerise is large/bold UI text. */
.filters__actions .btn { border-radius: 0; }
.filters__actions .btn--primary { background: var(--pink); border-color: var(--pink); color: #fff; padding-inline: 2rem; font-size: 1.2rem; }
.filters__actions .btn--primary:hover { background: #e01a73; border-color: #e01a73; box-shadow: none; }

input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius); padding: .6rem .75rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(38,224,255,.45); }
input[disabled] { background: var(--grey-50); color: var(--text-muted); }
input[type=checkbox] { width: auto; }

.results { margin-top: var(--space-6); }
.results__title { margin-top: 0; }
.notice { background: var(--surface-alt); border-left: 4px solid var(--navy); padding: var(--space-4); border-radius: var(--radius); margin-bottom: var(--space-4); }
.notice--error { background: #fff0f6; border-left-color: var(--pink); }

/* Flat navy boxes, square corners — white title, cerise employer (the old Exeter card), employer
   logo on a square white tile top-right. Content is top-aligned with fixed gaps, so cards in the same
   row line up and a taller neighbour never opens a hole in the middle of a shorter one. */
.vacancy-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-5); background: var(--navy); color: #fff; text-decoration: none;
  transition: background .15s ease;
}
.vacancy-card:hover, .vacancy-card:focus-visible { background: var(--navy-dark); color: #fff; }
.vacancy-card:hover .vacancy-card__employer { text-decoration: underline; }
.vacancy-card__head { display: flex; align-items: flex-start; gap: var(--space-4); }
.vacancy-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.vacancy-card__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.3rem; line-height: 1.1; color: #fff; margin: 0; overflow-wrap: anywhere; }
.vacancy-card__employer { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.75rem; line-height: 1.05; color: var(--pink); margin: 0; overflow-wrap: anywhere; }
.vacancy-card__logo {
  flex: none; width: 56px; height: 56px; background: #fff; display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); letter-spacing: .04em;
}
.vacancy-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.vacancy-card__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); font-size: var(--fnt-small); color: #fff; }
.vacancy-card__closing { margin: 0; font-size: var(--fnt-small); font-weight: 700; color: var(--cyan); }

.vacancy-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .vacancy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .vacancy-grid { grid-template-columns: repeat(3, 1fr); } }

.pager { display: flex; gap: var(--space-4); align-items: center; justify-content: center; margin-top: var(--space-6); }

/* ---- Bands (legal / welcome headers) ---- */
.band { background: var(--navy); color: #fff; padding-block: var(--space-6); }
.band--pink { background: var(--pink); }
.band__title { color: #fff; margin: 0 0 var(--space-2); }
.band p { margin: 0; max-width: 40rem; }

/* ---- Vacancy detail ----
   Navy band, centred, cerise triangle bottom-left and light-blue triangle top-right (the old site). */
.opp-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-block: var(--space-6) var(--space-7); min-height: 22rem; display: flex; align-items: center; }
.opp-hero__tri { position: absolute; top: 0; bottom: 0; width: 35%; pointer-events: none; }
.opp-hero__tri--left { left: 0; background: var(--pink); clip-path: polygon(0 40%, 0 100%, 40% 100%); }
.opp-hero__tri--right { right: 0; background: var(--aqua); clip-path: polygon(60% 0, 100% 0, 100% 60%); }
.opp-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); }
.back-link { color: #fff; text-decoration: none; font-size: var(--fnt-small); }
.back-link:hover { color: var(--cyan); }
.opp-hero__employer { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: 1.1rem; color: var(--cyan); }
.opp-hero__title { color: #fff; margin: 0; letter-spacing: .06em; max-width: 48rem; overflow-wrap: anywhere; }
.opp-hero__logo { max-height: 6rem; max-width: 14rem; width: auto; height: auto; object-fit: contain; margin-top: var(--space-2); }
.opp { display: grid; gap: var(--space-6); grid-template-columns: 1fr; padding-block: var(--space-6); }
@media (min-width: 900px) { .opp { grid-template-columns: minmax(0, 1fr) 22rem; } .opp__side { position: sticky; top: var(--space-4); align-self: start; } }
/* Phone: the centred employer line is cyan and the top-right triangle is aqua, so a long employer name
   ran under the triangle and its last letters vanished. Narrower triangles and wider gutters keep them apart. */
@media (max-width: 640px) {
  .opp-hero__tri { width: 20%; }
  .opp-hero__inner { padding-inline: 2rem; }
}
/* Below the two-column layout the facts and the Apply button used to land under the whole advert and its
   map: a phone visitor had to scroll to the very end to find how to apply. (The old site pinned an Apply
   bar to the screen.) They now come first, straight under the band. */
@media (max-width: 899px) { .opp__side { order: -1; } }
.prose { overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.tick-list { padding-left: 1.2rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--space-5); }
.opp__side .panel { border-top: 5px solid var(--cyan); }
/* Vacancy side box: square, flat cerise, white text. */
.opp__side .panel { background: var(--cerise-deep); color: #fff; border: 0; border-radius: 0; box-shadow: none; }
.opp__side .facts dt { color: #fff; }
.opp__side .facts > div { border-bottom-color: rgba(255,255,255,.25); }
.opp__side a:not(.btn) { color: #fff; }
.opp__side .btn { border-radius: 0; }
.opp__side .btn--primary { background: #fff; border-color: #fff; color: var(--navy); }
.opp__side .btn--primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }
.opp__side .btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.opp__side .btn--ghost:hover { background: #fff; color: var(--navy); }
.opp__side .course-note { background: rgba(0,0,0,.14); border-left-color: #fff; border-radius: 0; color: #fff; }
.opp__side .applied-chip { background: #fff; color: var(--ok); border-radius: 0; }
.facts { margin: 0 0 var(--space-5); display: grid; gap: var(--space-2); }
.facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--space-2); border-bottom: 1px solid var(--grey-50); padding-bottom: var(--space-2); }
.facts dt { font-weight: 700; color: var(--navy); }
/* pre-line: age-banded wages arrive on separate lines ("Under 18: £8.00 / 18 to 20: £10.85 / …"); keep the breaks. */
.facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.applied-chip { background: #e6f6ee; color: var(--ok); font-weight: 700; border-radius: var(--radius); padding: var(--space-2) var(--space-3); }
.course-note { margin: var(--space-4) 0 0; font-size: var(--fnt-small); background: var(--grey-50); border-left: 4px solid var(--pink); padding: var(--space-3); border-radius: var(--radius); }

/* ---- Forms ---- */
.fieldset { border: 0; padding: 0; margin: 0 0 var(--space-5); }
.fieldset legend { font-family: var(--font-display); font-size: var(--fnt-h3); color: var(--navy); text-transform: uppercase; margin-bottom: var(--space-3); padding: 0; }
.field-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .field-grid { grid-template-columns: repeat(2, 1fr); } }
.field label { display: block; font-weight: 700; margin-bottom: var(--space-1); }
.field__note { font-size: var(--fnt-small); color: var(--text-muted); margin: var(--space-1) 0 0; }
.field__error { font-size: var(--fnt-small); color: var(--error); margin: var(--space-1) 0 0; font-weight: 700; }
.field__ok { font-size: var(--fnt-small); color: var(--ok); margin: 0; font-weight: 700; }
/* Save/Cancel row under a form. account.css says this moved here, but it never arrived, so the
   buttons sat flush against each other and against the last field's button. */
.form-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.optional { font-weight: 500; color: var(--text-muted); }
.check-row { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-3); }
.check-row input { margin-top: .3rem; flex: none; }
/* Ethnicity select only once its explicit opt-in is ticked (no JS; without :has() it simply shows). */
.fieldset:has(input[name=ethnicityConsent]:not(:checked)) .eth-reveal { display: none; }

/* ---- Account ---- */
.account-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.account-nav a { padding: .45rem 1rem; border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; border: 2px solid var(--line); }
.account-nav a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs { display: flex; gap: var(--space-2); border-bottom: 2px solid var(--line); margin-bottom: var(--space-4); }
.tabs__tab { background: none; border: 0; font: inherit; font-weight: 700; color: var(--text-muted); padding: .6rem 1rem; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs__tab.is-active { color: var(--navy); border-bottom-color: var(--pink); }
/* minmax(0, 1fr): a card is as wide as the list, never as wide as its longest unbreakable content. */
.app-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow); }
/* The status chip stays on one line, so on a phone it moves under the title instead of squeezing the
   title into a column one word wide (and pushing the card off the right edge of the screen). */
.app-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-3); align-items: flex-start; }
.app-card__head > :first-child { flex: 1 1 14rem; min-width: 0; }
.app-card__title { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin: 0; }
.app-card__employer { color: var(--text-muted); margin: 0; }
.app-card__headline { font-weight: 700; margin: var(--space-3) 0 var(--space-1); }
.app-card__action { background: #fff0f6; border-left: 4px solid var(--pink); padding: var(--space-3); border-radius: var(--radius); }
.app-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); font-size: var(--fnt-small); color: var(--text-muted); }
.status-chip { display: inline-block; white-space: nowrap; font-size: var(--fnt-small); font-weight: 700; border-radius: var(--radius-pill); padding: .2rem .7rem; background: var(--surface-alt); color: var(--navy); }
.status-chip--action { background: #fff0f6; color: var(--error); }
.status-chip--successful { background: #e6f6ee; color: var(--ok); }
.status-chip--unsuccessful, .status-chip--withdrawn { background: var(--grey-50); color: var(--text-muted); }
.profile-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.profile-grid h2 { margin-top: 0; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.doc-list li { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }

/* ---- Apply wizard pieces shared by the profile page ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card__body { padding: var(--space-5); }
.chip { background: var(--surface-alt); border-radius: var(--radius-pill); padding: .2rem .7rem; font-size: var(--fnt-small); }
/* account.css says .chip-set moved here, but it never arrived, so chips sat flush together. */
.chip-set { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Toggle chips (career interests, skill suggestions) are buttons: reset the browser's own font and
   bevelled border. Off = outlined with "+", on = filled brand colour with a tick. */
button.chip {
  appearance: none; display: inline-flex; align-items: center; gap: .4rem;
  min-height: 2.5rem; padding: .45rem 1rem;
  font: inherit; font-size: var(--fnt-small); font-weight: 600; line-height: 1.2;
  color: var(--text-strong); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
button.chip:hover { border-color: var(--navy); color: var(--navy); background: var(--surface-alt); }
button.chip:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
button.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
button.chip[aria-pressed="true"]::before { content: "\2713"; font-weight: 700; }
button.chip[aria-pressed="true"]:hover { background: color-mix(in srgb, var(--navy) 85%, #000); color: #fff; }
@media (prefers-reduced-motion: reduce) { button.chip { transition: none; } }
.apply-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 2rem 1.5rem; text-align: center; cursor: pointer; border: 2px dashed var(--line); border-radius: var(--radius-lg); }
.apply-drop:hover, .apply-drop:focus-within { border-color: var(--navy); background: var(--surface-alt); }
.apply-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.apply-drop__title { font-weight: 700; }
.apply-drop__hint { color: var(--text-muted); font-size: var(--fnt-small); }

/* ---- Confirm dialog (ApplicationLockDialog) ---- */
.confirm-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(0, 9, 90, .55); display: grid; place-items: center; padding: 1rem; }
.confirm-card { background: #fff; border-radius: 0; box-shadow: var(--shadow-lg); padding: var(--space-5); max-width: 32rem; width: 100%; display: grid; gap: var(--space-4); }
.confirm-card__title { margin: 0; font-size: var(--fnt-h3); }
.confirm-card__message { margin: 0; color: var(--text-muted); font-size: var(--fnt-small); }
.confirm-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.confirm-card__actions > .btn { flex: 1 1 8rem; }
.applock-points { margin: 0; padding: 0; font-size: var(--fnt-small); color: var(--text-muted); display: grid; gap: var(--space-2); }
.applock-points li { margin-left: 1rem; }
.applock-points strong { color: var(--text-strong); }

/* ---- Legal ---- */
.legal > * { max-width: 52rem; }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-4); font-size: var(--fnt-small); display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: var(--space-2); text-align: left; vertical-align: top; }
.legal th { background: var(--grey-50); }
.legal h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; }

/* ---- Blazor reconnect / error UI ---- */
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: #fff0f6; border-top: 3px solid var(--pink); padding: .8rem 1rem; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: .6rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- Static map (vacancy page) — OSM tiles composed server-side, cerise pin dead-centre ---- */
.staticmap { position: relative; overflow: hidden; width: 100%; background: var(--surface-alt); border: 1px solid var(--line); }
.staticmap__plane { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
.staticmap__plane img { position: absolute; display: block; width: 256px; height: 256px; max-width: none; }
.staticmap__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--cerise-deep); filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.staticmap__pin svg { width: 2.6rem; height: 2.6rem; stroke-width: 2.5; fill: #fff; }
.staticmap__attr { position: absolute; right: 0; bottom: 0; font-size: .65rem; line-height: 1.6; padding: 0 .4rem; background: rgba(255,255,255,.8); color: #333; }
.staticmap__attr a { color: #333; }

/* =====================================================================
   ONE FOR ONE WITH THE OLD THEXETER SITE (app.css + the Tailwind CDN utilities on NavTop.razor,
   HomeHeroSearch.razor, OpportunityResultsGridExeter.razor and Footer.razor). Values are the old
   site's computed styles.
   ===================================================================== */
:root { --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif; --font-display: "League Gothic", Helvetica, Arial, sans-serif; }
body { font-family: var(--font-body); font-size: 16px; line-height: 24px; font-weight: 400; color: #001B5E; }

/* Pink square button (old .btn-primary): LeagueGothic 0.9rem, 0.85rem 3rem padding, teal on hover. */
.xbtn {
  display: inline-flex; align-items: center; justify-content: center; padding: 13.6px 48px;
  border: 2px solid #ff2d87; border-radius: 0; background-color: #ff2d87; color: #fff;
  font-family: var(--font-display); font-size: 14.4px; font-weight: 500; line-height: 21.6px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.xbtn:hover, .xbtn:focus-visible { background-color: #26e0ff; border-color: #26e0ff; color: #fff; }

/* ---- Header ---- */
.site-header.xhdr { position: relative; z-index: 20; background: #fff; border: 0; }
.xhdr__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.xhdr__row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.xhdr__side { flex: 1 1 0%; }
.xhdr__side--end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.xhdr__nav { display: flex; align-items: center; gap: 48px; }
.xhdr__link {
  font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 30px; text-transform: uppercase;
  color: #000E7A; text-decoration: none; transition: color .15s ease;
}
.xhdr__link:hover { color: #ff2d87; }
.xhdr__logos { display: flex; align-items: center; justify-content: center; gap: 8px; }
.xhdr__logos a { display: block; }
.xhdr__logos img { display: block; height: 56px; width: auto; }
.xhdr__divider { display: block; width: 1px; height: 40px; background: #d1d5db; }
.xhdr__mobile { display: none; }
.xhdr__toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; list-style: none; cursor: pointer;
  background: #FF2D87; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}
.xhdr__toggle:hover { background: #ff126f; }
.xhdr__toggle::-webkit-details-marker { display: none; }
.xhdr__bars { display: flex; flex-direction: column; justify-content: space-between; height: 20px; }
.xhdr__bars span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 4px; }
.xhdr__menu { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; gap: 8px; padding: 12px 24px; background: #fff; border-top: 1px solid #e5e7eb; }
.xhdr__menu a:not(.xbtn) { padding: 4px 0; font-family: var(--font-display); font-size: 16px; text-transform: uppercase; color: #000E7A; text-decoration: none; }
.xhdr__menu-btn { margin-top: 8px; width: 100%; text-align: center; }
@media (max-width: 767px) {
  .xhdr__nav, .xhdr__desktop { display: none; }
  .xhdr__mobile { display: block; }
  .xhdr__logos img { height: 40px; }
  .xhdr__divider { height: 28px; }
}

/* ---- Hero (old .hero-search) ---- */
.xhero-wrap { position: relative; }
.xhero { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 550px; overflow: hidden; }
.xhero__image { position: absolute; inset: 0; z-index: 1; }
.xhero__image::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(1, 34, 61, .55); }
.xhero__image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.xhero__triangle {
  position: absolute; top: 0; left: 0; bottom: 0; width: 70%; z-index: 2; pointer-events: none;
  background-color: rgba(92, 225, 230, .8); clip-path: polygon(0 0, 0 100%, 30% 100%);
}
.xhero__content { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; height: 100%; padding-inline: 1.5rem; text-align: center; }
.xhero__title { margin: 0 0 8px; font-family: var(--font-display); font-size: 84.8px; font-weight: 400; line-height: 1; letter-spacing: normal; text-transform: uppercase; color: #fff; }
.xhero__sub { margin: 0 0 8px; font-family: var(--font-display); font-size: 16px; font-weight: 300; line-height: 24px; letter-spacing: normal; text-transform: uppercase; color: #26E0FF; }
@media (min-width: 768px) { .xhero__sub { font-size: 18px; line-height: 28px; } }
@media (min-width: 1024px) { .xhero__sub { font-size: 20px; line-height: 28px; } }
@media (max-width: 1024px) { .xhero__title { font-size: 64px; } }
@media (max-width: 640px) { .xhero__title { font-size: 48px; } .xhero { height: 340px; } }

/* ---- Filter bar (old .hero-filter): navy, overlapping the photo by 70px ---- */
.xfilter-wrap { position: relative; z-index: 5; margin-top: -70px; }
.xfilter { max-width: 1280px; margin: 0 auto; padding: 28px 24px 33.6px; background-color: #000E7A; color: #fff; }
.xfilter__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19.2px; }
.xfilter__label { font-family: var(--font-display); font-size: 14.4px; line-height: 21.6px; text-transform: uppercase; }
.xfilter__reset { font-family: var(--font-display); font-size: 12px; line-height: 18px; text-transform: uppercase; color: #fff; text-decoration: none; }
.xfilter__reset:hover { color: #fff; text-decoration: underline; }
.xfilter__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .xfilter__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .xfilter__grid { grid-template-columns: repeat(12, 1fr); }
  .xfilter__employer, .xfilter__sector { grid-column: span 4; }
  .xfilter__postcode { grid-column: span 3; }
  .xfilter__go { grid-column: span 1; }
}
.xpill {
  position: relative; display: flex; align-items: center; justify-content: space-between; margin: 0;
  padding: 16.8px 27.2px; background-color: #fff; color: #000E7A; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 16.8px; font-weight: 400; line-height: 25.2px; letter-spacing: normal; text-transform: uppercase;
}
.xpill__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xpill__icon { flex-shrink: 0; margin-left: 22.4px; font-size: 25.6px; line-height: 1; color: #26E0FF; }
.xpill__select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.xpill--postcode { gap: 4px; cursor: text; }
.xpill--postcode input {
  width: 100%; margin: 0; padding: 0; border: none; border-radius: 0; background: transparent; box-shadow: none; outline: none;
  -webkit-appearance: none; appearance: none; font: inherit; letter-spacing: normal; text-transform: uppercase; color: #000E7A; caret-color: #000E7A;
}
.xpill--postcode input:focus { box-shadow: none; border: none; }
.xpill--postcode input::placeholder { color: #9ca3af; opacity: 1; }
/* Keyboard focus. The real <select> lies invisibly over its pill, so its own focus ring is invisible
   too, and the postcode box's ring was a 12% navy shadow on a navy bar: tabbing through the filter
   showed nothing at all until the search button. Ring the pill instead. */
.xpill:has(.xpill__select:focus-visible),
.xpill--postcode:has(input:focus-visible) { outline: 3px solid #26E0FF; outline-offset: 3px; }
/* "Use my location": a button (it was a decorative icon). [hidden] has to be restated because the
   display below would otherwise override it; site.js un-hides the button where geolocation exists. */
.xgeo {
  display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px;
  margin: -8px -12px -8px 0; padding: 10px; border: 0; border-radius: 0; background: none;
  color: #000E7A; opacity: .65; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.xgeo[hidden] { display: none; }
.xgeo:hover, .xgeo:focus-visible { opacity: 1; }
.xgeo .kicon { width: 20px; height: 20px; }
.xfilter__status { margin: 12px 0 0; min-height: 0; font-size: 14px; line-height: 20px; color: #fff; }
.xfilter__status:empty { display: none; }
.xfilter__go { display: flex; align-items: flex-end; justify-content: flex-end; }
.xfilter__search {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 64px; padding: 0 28.8px;
  background-color: #FF2D87; color: #fff; border: none; border-radius: 0; cursor: pointer;
}
.xfilter__search .kicon { flex-shrink: 0; width: 24px; height: 24px; }
@media (min-width: 1024px) { .xfilter__search { width: 100%; max-width: 84px; height: 76px; } }
/* Radius row: closed until a postcode is typed (old .postcode-radius-row). */
.xradius {
  grid-column: 1 / -1; max-height: 0; opacity: 0; overflow: hidden; pointer-events: none; transform: translateY(-4px);
  /* visibility too: while only transparent, the radius choices were still a stop in the Tab order — focus
     went somewhere unseen and the arrow keys changed a radius nobody could see. */
  visibility: hidden;
  transition: max-height 200ms ease, opacity 160ms ease, transform 160ms ease, visibility 0s linear 200ms;
}
.xfilter__grid:has(input[name=postcode]:not(:placeholder-shown)) .xradius {
  max-height: 220px; opacity: 1; pointer-events: auto; transform: translateY(0);
  visibility: visible; transition-delay: 0s;
}
.xpill--range { display: flex; flex-wrap: wrap; gap: 8px; cursor: default; }
.xradius__head { display: flex; align-items: baseline; gap: 12px; }
.xradius__hint { font-family: var(--font-body); font-size: 12px; line-height: 16px; text-transform: none; color: #64748b; }
.xradius__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xchip { cursor: pointer; }
.xchip input { position: absolute; opacity: 0; pointer-events: none; }
.xchip span { display: inline-block; padding: 3px 12px; border: 1px solid rgba(0,14,122,.25); border-radius: 999px; font-size: 12px; line-height: 16px; color: #000E7A; }
.xchip input:checked + span { background: #000E7A; border-color: #000E7A; color: #fff; }
.xchip input:focus-visible + span { outline: 2px solid #000E7A; outline-offset: 2px; }

/* ---- Results (old OpportunityResultsGridExeter) ---- */
.xresults { background: #fff; padding-bottom: 48px; scroll-margin-top: 1rem; }
.xresults__inner { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }
@media (min-width: 768px) { .xresults__inner { padding: 40px; } }
.xresults__head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
@media (min-width: 768px) { .xresults__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.xresults__label { margin: 0 0 4px; font-size: 12px; line-height: 18px; color: #000E7A; }
.xresults__title { margin: 0 0 8px; font-family: var(--font-display); font-size: 25.6px; font-weight: 400; line-height: 1; letter-spacing: normal; text-transform: uppercase; color: #000E7A; }
@media (min-width: 768px) { .xresults__title { font-size: 30.4px; } }
.xresults__count { margin: 0 0 16px; font-size: 12px; line-height: 16px; color: #6B7AAE; }
@media (min-width: 768px) { .xresults__count { font-size: 14px; line-height: 20px; } }
/* minmax(0, …): a bare 1fr track never shrinks below its content's minimum width, so one wide card
   pushed the whole page sideways on a phone. */
.xgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 768px) { .xgrid { gap: 32px; } }
@media (min-width: 1024px) { .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }

/* Card: navy, 1px #1a2090 border, 48px padding and gaps at desktop. */
.xcard { position: relative; display: flex; flex-direction: column; gap: 48px; padding: 30px; background: #000E7A; border: 1px solid #1a2090; transition: all .5s cubic-bezier(.4, 0, .2, 1); }
@media (min-width: 640px) { .xcard { padding: 36px; } }
@media (min-width: 1024px) { .xcard { padding: 48px; } }
.xcard__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.xcard__text { flex: 1; min-width: 0; padding: 8px 0; }
.xcard__title { margin: 0 0 8px; font-family: var(--font-display); font-size: 20.8px; font-weight: 400; line-height: 24.96px; letter-spacing: normal; text-transform: uppercase; color: #fff; overflow-wrap: break-word; }
.xcard__employer { margin: 0 0 8px; font-family: var(--font-display); font-size: 32px; font-weight: 400; line-height: 40px; letter-spacing: normal; text-transform: uppercase; color: #ff2d87; overflow-wrap: break-word; }
.xcard__logo { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 170px; height: 110px; overflow: hidden; }
.xcard__logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.xcard__meta { margin: 0; }
.xcard__row { display: flex; align-items: baseline; gap: 4px; }
.xcard__row + .xcard__row { margin-top: 12px; }
.xcard__row dt { flex-shrink: 0; width: 176px; font-size: 16px; font-weight: 700; line-height: 24px; color: rgba(255,255,255,.8); }
.xcard__row dd { margin: 0 0 8px; font-size: 16px; font-weight: 400; line-height: 24px; color: #fff; }
.xcard__nowrap { white-space: nowrap; }
.xcard__actions { display: flex; justify-content: flex-end; }
@media (max-width: 639px) { .xcard__row { flex-direction: column; } .xcard__row dt { width: auto; } }
/* The old card stepped its type and logo box down below 1024px (its Tailwind sm / xs / base steps) and
   stacked the logo over the text at 375px and under. Only the desktop sizes had been carried across,
   which left the 170px logo box and 32px employer line fighting for a phone-width card. */
@media (max-width: 1023px) {
  .xcard__title { font-size: 17.6px; line-height: 1.2; }
  .xcard__employer { font-size: 24px; line-height: 30px; }
  .xcard__logo { width: 140px; height: 84px; }
}
@media (max-width: 639px) {
  .xcard__title { font-size: 16px; }
  .xcard__employer { font-size: 20.8px; line-height: 26px; }
  .xcard__logo { width: 120px; height: 72px; }
}
@media (max-width: 375px) {
  .xcard__head { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .xcard__logo { align-self: center; width: 100px; height: 60px; }
}

/* ---- Footer (old Footer.razor) ---- */
.site-footer.xftr { margin-top: 48px; background: #fff; border-top: 1px solid #e5e7eb; color: #001B5E; }
.xftr__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.xftr__row { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; }
@media (min-width: 768px) { .xftr__row { flex-direction: row; } }
.xftr__left { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 14px; line-height: 20px; }
.xftr__logo { display: flex; align-items: center; justify-content: center; }
.xftr__logo img { display: block; height: 32px; width: auto; }
.xftr__links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; text-transform: uppercase; color: #000E7A; }
.site-footer.xftr .xftr__links a { font-family: var(--font-display); font-size: 13.6px; font-weight: 500; line-height: 20px; color: #000E7A; text-decoration: none; transition: color .15s ease; }
.site-footer.xftr .xftr__links a:hover { color: #ff2d87; }
.xftr__right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: #4b5563; }
.site-footer.xftr .xftr__ttp { font-family: var(--font-display); font-size: 13.6px; font-weight: 500; line-height: 20px; color: #000E7A; text-decoration: underline; text-transform: none; }
.site-footer.xftr .xftr__ttp:hover { color: #ff2d87; }
.xftr__copy { margin-top: 4px; }
@media (max-width: 767px) { .xftr__dot { display: none; } }
