/* Livicode Tech Solutions — Redesign Prototype — Design System
   "Civic Modernism" (Concept 02 — The Network), selected 6 Aug 2026.
   British public-information clarity: transport-map wayfinding, thick
   rules, solid colour fields, numbered routes. No gradients, no purple,
   no glow/blur, no pill buttons, no rounded corners. */
:root {
  --navy: #0F2A44;
  --navy-deep: #0A1E33;
  --white: #FFFFFF;
  --off: #F4F6F9;
  --ink: #15202E;
  --grey-solid: #516072;
  --orange: #E85D0F;      /* bands, borders, large text only (~3.5:1) */
  --orange-ink: #B94500;  /* buttons, body-size text on white/navy (5.4:1 AA) */
  --cyan: #1FB6FF;
  --green: #166B3E;

  --f-head: 'Archivo', 'Helvetica Neue', sans-serif;
  --f-body: 'Public Sans', 'Segoe UI', sans-serif;

  --border: 4px solid var(--navy);
  --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem;
  --content-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 800; line-height: 1.05; margin: 0 0 0.4em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; max-width: 64ch; }
a { color: var(--navy); }
img { max-width: 100%; display: block; }
mark { background: var(--orange-ink); color: #fff; padding: 1px 6px; font-weight: 700; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: 12px 20px; z-index: 200; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px;
}

.wrap { max-width: var(--content-width); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding: clamp(32px, 4vw, 48px) 0; }
.section--surface { background: var(--off); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #C9D6E4; }

/* Header — solid navy bar, no blur */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 100; }
.site-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 0; }
.logo { display: flex; align-items: center; text-decoration: none; padding: 6px 0; }
.logo img { height: 64px; width: auto; }
nav.route-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
nav.route-nav a { display: inline-flex; align-items: center; color: #fff; text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: 0.95rem; padding: 12px 14px; min-height: 44px; border-bottom: 4px solid transparent; }
nav.route-nav a:hover { border-bottom-color: var(--cyan); }
nav.route-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav-toggle { display: none; }

/* Mega-menu — Services expands to all 4 lines, Areas We Serve expands to the borough grid */
.has-mega { position: relative; }
.mega-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 0.95rem; padding: 12px 14px; min-height: 44px; border: none; border-bottom: 4px solid transparent; cursor: pointer; }
.mega-toggle::after { content: "▾"; font-size: 0.65rem; }
.mega-toggle:hover, .mega-toggle[aria-expanded="true"] { border-bottom-color: var(--cyan); }
.mega-toggle.current { border-bottom-color: var(--orange); }
.mega-panel { display: none; position: absolute; top: 100%; left: 0; z-index: 150; background: var(--navy-deep); border: 2px solid #24466B; padding: 14px; min-width: 340px; }
.mega-panel.open { display: flex; flex-direction: column; }
.mega-panel a { display: block; padding: 10px 12px; text-decoration: none; border-bottom: 1px solid #1B3A5C; }
.mega-panel a:last-child { border-bottom: none; }
.mega-panel a strong { display: block; font-family: var(--f-head); font-weight: 700; font-size: 0.92rem; color: #fff; }
.mega-panel a span { display: block; font-size: 0.82rem; color: #C9D6E4; margin-top: 3px; }
.mega-panel a:hover strong, .mega-panel a[aria-current="page"] strong { color: var(--cyan); }
.mega-panel--grid.open { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); min-width: 260px; }
.mega-panel--grid a { font-family: var(--f-head); font-weight: 700; font-size: 0.92rem; color: #fff; }
.mega-panel--grid a[aria-current="page"] { color: var(--cyan); }
@media (max-width: 860px) {
  .logo img { height: 44px; }
  .site-inner .btn { padding: 11px 16px; font-size: 0.9rem; }
  .nav-toggle { display: inline-flex; align-items: center; background: none; border: 3px solid #fff; color: #fff; font-family: var(--f-head); font-weight: 800; padding: 9px 16px; min-height: 44px; cursor: pointer; }
  nav.route-nav { display: none; width: 100%; }
  nav.route-nav.open { display: block; }
  nav.route-nav ul { flex-direction: column; }
  nav.route-nav a { width: 100%; border-bottom: 2px solid #24466B; }
  .mega-toggle { width: 100%; justify-content: space-between; border-bottom: 2px solid #24466B; }
  .mega-panel { position: static; border: none; border-bottom: 2px solid #24466B; min-width: 0; padding: 4px 14px 10px 24px; }
  .mega-panel--grid.open { grid-template-columns: 1fr 1fr; }
}

/* Buttons — square, solid fields, no gradients, no pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--orange-ink); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 1rem; text-decoration: none; padding: 14px 24px; min-height: 48px; border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 0.02em; }
.btn:hover { background: #8F3500; }
.btn--navy { background: var(--navy); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--line { background: #fff; color: var(--navy); border: 3px solid var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--line-inverse { background: transparent; color: #fff; border: 3px solid #fff; }
.btn--line-inverse:hover { background: #fff; color: var(--navy); }
.btn--full { width: 100%; }

/* Hero — stacked wayfinding words */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-bottom: 8px solid var(--orange); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(40px, 7vw, 90px); }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 .go { color: var(--cyan); }
.hero .sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #C9D6E4; max-width: 56ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
@media (max-width: 780px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Hero background motion — animated transit routes, solid colour, no gradients/blur */
.hero-motion { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-motion svg { width: 100%; height: 100%; display: block; }
.route-line { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 26 22; opacity: 0.16; animation: route-travel linear infinite; }
.route-line--1 { stroke: var(--cyan); animation-duration: 18s; }
.route-line--2 { stroke: var(--orange); animation-duration: 24s; animation-direction: reverse; }
.route-line--3 { stroke: #ffffff; animation-duration: 32s; }
@keyframes route-travel { to { stroke-dashoffset: -960; } }

/* Page hero — smaller, for inner pages */
.page-hero { background: var(--navy); color: #fff; border-bottom: 8px solid var(--orange); }
.page-hero .wrap { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(28px, 4vw, 48px); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3rem); }
.page-hero .sub { color: #C9D6E4; font-size: 1.1rem; max-width: 60ch; }
.breadcrumb-bar { background: var(--off); border-bottom: 2px solid var(--navy); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; font-size: 0.85rem; color: var(--grey-solid); margin: 0; padding: 10px 0; max-width: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--grey-solid); }
.breadcrumb a { color: var(--navy); font-weight: 700; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Dest board — navy information panel, reused for "who we serve", contact details, sticky CTA */
.dest-board { background: var(--navy-deep); border: 2px solid #24466B; padding: 20px; }
.dest-board h2, .dest-board h3 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 2px solid #24466B; padding-bottom: 10px; }
.dest-board ul { list-style: none; margin: 0; padding: 0; }
.dest-board li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #1B3A5C; font-family: var(--f-head); font-weight: 600; font-size: 0.95rem; }
.dest-board li:last-child { border-bottom: none; }
.dest-board li span:last-child { color: var(--cyan); text-align: right; }
.dest-board p { color: #C9D6E4; font-size: 0.92rem; }
.dest-board label { display: block; font-family: var(--f-head); font-weight: 700; margin: 14px 0 6px; color: #C9D6E4; font-size: 0.88rem; }
.dest-board input, .dest-board select, .dest-board textarea { width: 100%; padding: 11px 12px; border: 2px solid #33456B; background: #16304F; color: #fff; font-family: var(--f-body); font-size: 0.95rem; }
.dest-board input:focus-visible, .dest-board select:focus-visible, .dest-board textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.dest-board .btn { margin-top: 18px; }
.dest-board .hint { font-size: 0.82rem; color: #8FA1B3; margin: 0 0 8px; }
.dest-board .field-error { display: none; color: #FFB199; font-weight: 700; font-size: 0.85rem; margin-top: 4px; }
.dest-board .field-error::before { content: "✕ "; }
.dest-board .invalid input, .dest-board .invalid select { border-color: #FF8A65; }
.dest-board .invalid .field-error { display: block; }
.sticky-aside .dest-board { position: sticky; top: 84px; }
@media (max-width: 860px) { .sticky-aside .dest-board { position: static; } }

/* Route cards — asymmetric signed routes */
.route { display: grid; grid-template-columns: 110px minmax(0, 1fr); border: var(--border); margin-bottom: 24px; background: #fff; }
.route-badge { background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 800; padding: 20px 8px; text-align: center; }
.route-badge .no { font-size: 2.4rem; line-height: 1; }
.route-badge .lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 6px; }
.route-body { padding: clamp(20px, 3vw, 36px); }
.route--flagship { grid-template-columns: 110px minmax(0, 1.4fr) minmax(0, 1fr); }
.route--flagship .route-badge { background: var(--orange); }
.route--flagship .route-media { min-height: 240px; overflow: hidden; border-left: var(--border); }
.route--flagship .route-media img { width: 100%; height: 100%; object-fit: cover; }
.route-meta { font-size: 0.95rem; color: var(--grey-solid); margin: 0 0 10px; font-style: italic; }
a.go-link { font-family: var(--f-head); font-weight: 800; text-decoration: none; color: var(--orange-ink); }
a.go-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.routes-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) {
  .routes-pair { grid-template-columns: 1fr; }
  .route--flagship { grid-template-columns: 80px minmax(0, 1fr); }
  .route--flagship .route-media { display: none; }
  .route { grid-template-columns: 80px minmax(0, 1fr); }
  .route-badge .no { font-size: 1.7rem; }
}

/* Info / proof grid — bordered data panel, reused for stats and "who it's for" */
.info-panel { background: var(--off); border-top: 8px solid var(--navy); padding: clamp(48px, 7vw, 96px) 0; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: var(--border); background: #fff; }
.proof-grid--3 { grid-template-columns: repeat(3, 1fr); }
.proof-cell { padding: clamp(18px, 2.5vw, 32px); border-right: var(--border); }
.proof-cell:last-child { border-right: none; }
.proof-cell .big { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.6rem); color: var(--navy); line-height: 1; }
.proof-cell h3 { font-size: 1.05rem; margin-bottom: 8px; }
.proof-cell p { font-size: 0.95rem; color: var(--grey-solid); margin: 0.5em 0 0; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr 1fr; } .proof-grid--3 { grid-template-columns: 1fr; } .proof-grid:not(.proof-grid--3) .proof-cell:nth-child(2) { border-right: none; } .proof-grid:not(.proof-grid--3) .proof-cell:nth-child(1), .proof-grid:not(.proof-grid--3) .proof-cell:nth-child(2) { border-bottom: var(--border); } }
@media (max-width: 480px) { .proof-grid { grid-template-columns: 1fr; } .proof-cell { border-right: none; border-bottom: var(--border); } .proof-cell:last-child { border-bottom: none; } }

/* Trusted-by marquee */
.marquee-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--navy); color: var(--navy); font-family: var(--f-head); font-weight: 700; font-size: 0.85rem; padding: 8px 14px; min-height: 40px; cursor: pointer; margin-bottom: 20px; }
.marquee-toggle:hover { background: var(--navy); color: #fff; }
.marquee-toggle .icon { font-size: 0.75rem; }
.marquee-track-wrap { overflow: hidden; border-top: var(--border); border-bottom: var(--border); padding: 28px 0; }
.marquee-track { display: flex; align-items: center; gap: 48px; list-style: none; margin: 0; padding: 0; width: max-content; animation: marquee-scroll 46s linear infinite; }
.marquee-track.paused { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.org-item { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.org-item a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.org-item a:hover .org-name, .org-item a:focus-visible .org-name { text-decoration: underline; }
.org-badge { width: 44px; height: 44px; flex-shrink: 0; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.01em; }
.org-name { font-family: var(--f-head); font-weight: 700; font-size: 0.95rem; color: var(--ink); white-space: nowrap; }
@media (max-width: 620px) {
  .marquee-track { gap: 32px; }
  .org-badge { width: 38px; height: 38px; font-size: 0.7rem; }
  .org-name { font-size: 0.85rem; }
  /* Auto-scroll fights a swipe gesture (content keeps moving under your
     finger), so on mobile this becomes a normal touch-scrollable strip
     instead: animation off, native overflow scrolling on, the aria-hidden
     duplicate (only there to make the seamless animated loop) hidden so a
     scrolling visitor doesn't hit the same 21/7 logos twice, and the
     pause/play toggle hidden since there's nothing left to pause. */
  .marquee-track-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .marquee-track { animation: none; }
  .marquee-track .org-item[aria-hidden="true"] { display: none; }
  .marquee-toggle { display: none; }
}

/* Network map (boroughs) */
.network-map { border: var(--border); background: #fff; padding: clamp(16px, 3vw, 32px); }
.network-map svg { width: 100%; height: auto; display: block; }
.map-legend { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; font-family: var(--f-head); font-weight: 600; font-size: 0.9rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 18px; height: 8px; display: inline-block; }
.stop-detail { margin-top: 20px; border-top: 2px solid var(--navy); padding-top: 16px; min-height: 64px; }
.stop-detail p { margin: 0; }
.stop-detail strong { font-family: var(--f-head); }

/* Steps — numbered process, vertical stack */
.steps { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 76px 1fr; border: var(--border); border-top: none; }
.steps .step:first-child { border-top: var(--border); }
.step-badge { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; }
.step-body { padding: 18px 22px; }
.step-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-body p { color: var(--grey-solid); font-size: 0.95rem; margin: 0; }

/* Media frame — fixed-ratio, cropped photo container (image only, no caption); prevents stretching regardless of source image dimensions */
.media-frame { border: var(--border); aspect-ratio: 3 / 2; overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Caption media — fixed-height, cropped photo with a caption below; the figcaption stays outside the cropped box */
.caption-media { margin: 0; border: var(--border); }
.caption-media img { display: block; width: 100%; height: 260px; object-fit: cover; }

/* Team profile card */
.team-card { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; border: var(--border); padding: clamp(24px, 3vw, 40px); background: #fff; }
.team-card__photo { border: 2px solid var(--navy); aspect-ratio: 4 / 5; overflow: hidden; }
.team-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-card__role { font-family: var(--f-head); font-weight: 700; color: var(--orange-ink); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; margin: 4px 0 14px; }
@media (max-width: 620px) { .team-card { grid-template-columns: 1fr; } .team-card__photo { max-width: 220px; } }

/* Secondary team grid — compact cards for the wider team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-mini-card { border: var(--border); background: #fff; }
.team-mini-card__photo { aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 2px solid var(--navy); }
.team-mini-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-mini-card__body { padding: 18px 20px; }
.team-mini-card__role { font-family: var(--f-head); font-weight: 700; color: var(--orange-ink); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem; margin: 2px 0 10px; }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* Work / evidence notice */
.work-notice { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.work-notice figure { margin: 0; border: var(--border); }
.work-notice figure img { display: block; width: 100%; height: 260px; object-fit: cover; }
.work-notice figcaption { font-size: 0.82rem; padding: 10px 14px; background: var(--navy); color: #C9D6E4; }
@media (max-width: 860px) { .work-notice { grid-template-columns: 1fr; } }

/* Reading grid — local-SEO article cards */
.reading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .reading-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .reading-grid { grid-template-columns: 1fr; } }
.reading-card { border: var(--border); background: #fff; }
.reading-card__media { height: 150px; overflow: hidden; border-bottom: var(--border); }
.reading-card__media img { width: 100%; height: 100%; object-fit: cover; }
.reading-card__tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--orange-ink); font-family: var(--f-head); padding: 14px 16px 0; }
.reading-card h3 { font-size: 1rem; padding: 6px 16px 16px; margin: 0; }
.reading-card__body { padding: 0 16px 12px; margin: 0; color: var(--grey-solid); font-size: 0.92rem; }
.reading-card__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--grey-solid); border: 2px solid var(--grey-solid); padding: 3px 8px; display: inline-block; margin: 0 16px 16px; }

/* Process panel — dark band variant of .steps, used to break up section rhythm */
.process-panel { background: var(--navy); color: #fff; border-top: 8px solid var(--cyan); padding: clamp(48px, 7vw, 96px) 0; }
.process-panel h2 { color: #fff; }
.process-panel p { color: #C9D6E4; }
.process-panel .step { border-color: rgba(255,255,255,0.3); }
.process-panel .steps .step:first-child { border-top-color: rgba(255,255,255,0.3); }
.process-panel .step-badge { background: var(--cyan); color: var(--navy); }
.process-panel .step-body h3 { color: #fff; }
.process-panel .step-body p { color: #C9D6E4; }

/* Contrast table — used on the brand & accessibility style guide page */
.table-scroll { overflow-x: auto; }
.contrast-table { width: 100%; min-width: 480px; border-collapse: collapse; background: #fff; color: var(--ink); }
.contrast-table caption { color: #C9D6E4; text-align: left; padding-bottom: 12px; font-size: 0.92rem; }
.contrast-table th, .contrast-table td { border: 2px solid var(--navy); padding: 12px 14px; text-align: left; font-size: 0.95rem; }
.contrast-table th { font-family: var(--f-head); background: var(--off); }
.swatch-pair { display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 800; width: 110px; height: 44px; }
.pass { font-family: var(--f-head); font-weight: 800; color: var(--green); }
.pass::before { content: "✓ "; }
.large-only { font-family: var(--f-head); font-weight: 800; color: var(--orange-ink); }
.large-only::before { content: "◆ "; }

/* Draft/legal-review callout — distinct from marketing .notice, flags unfinished content */
.draft-notice { border: 3px solid var(--orange); background: #FFF6EE; padding: clamp(18px, 3vw, 28px); }
.draft-notice p { margin: 0; max-width: 70ch; }
.draft-notice p + p { margin-top: 10px; }
.draft-notice strong { color: var(--orange-ink); }
.todo { background: #FFF6EE; color: var(--orange-ink); font-weight: 700; padding: 1px 5px; }

/* Talent noticeboard */
.noticeboard { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); }
.notice { border: var(--border); padding: clamp(20px, 3vw, 32px); background: var(--off); }
.notice h3 { border-bottom: 4px solid var(--orange); display: inline-block; padding-bottom: 6px; }
.notice ul { margin: 0; padding-left: 20px; }
.notice li { padding: 3px 0; }
@media (max-width: 860px) { .noticeboard { grid-template-columns: 1fr; } }

/* CMS quiet strip */
.cms-strip { border-top: 2px solid var(--grey-solid); border-bottom: 2px solid var(--grey-solid); padding: 20px 0; }
.cms-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cms-strip p { margin: 0; font-size: 0.95rem; color: var(--grey-solid); max-width: none; }
.cms-strip a { color: var(--navy); font-weight: 700; }

/* FAQ / accordion */
.faq-item { border-bottom: 2px solid var(--navy); }
.faq-item:first-child { border-top: var(--border); }
.faq-item button { width: 100%; text-align: left; background: none; border: none; padding: 18px 4px; font-family: var(--f-head); font-size: 1.02rem; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.faq-item .chevron { color: var(--orange-ink); font-family: var(--f-head); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[data-open="true"] .chevron { transform: rotate(180deg); }
.faq-item__panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item[data-open="true"] .faq-item__panel { max-height: 400px; }
.faq-item__panel p { padding: 0 4px 18px; color: var(--grey-solid); }

/* Lead capture / general forms */
.lead-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .lead-block { grid-template-columns: 1fr; } }
.lead-form, .form-panel { border: var(--border); padding: clamp(20px, 3vw, 32px); background: #fff; }
.lead-form label, .form-panel label { display: block; font-family: var(--f-head); font-weight: 700; margin: 16px 0 6px; }
.lead-form label:first-of-type, .form-panel label:first-of-type { margin-top: 0; }
.lead-form .hint, .form-panel .hint { font-size: 0.88rem; color: var(--grey-solid); margin: 0 0 8px; }
.lead-form input, .lead-form select, .lead-form textarea,
.form-panel input, .form-panel select, .form-panel textarea { width: 100%; padding: 13px 14px; border: 3px solid var(--navy); font-family: var(--f-body); font-size: 1rem; background: #fff; }
.lead-form input:focus-visible, .form-panel input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.field-error { display: none; color: #A21818; font-weight: 700; font-size: 0.92rem; margin-top: 6px; }
.field-error::before { content: "✕ "; }
.ff.invalid input, .ff.invalid select, .ff.invalid textarea { border-color: #A21818; }
.ff.invalid .field-error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: none; border: var(--border); border-color: var(--green); background: #EFF7F0; padding: 20px 24px; }
.form-success p { margin: 0; }

/* GDPR consent checkbox row — used inside .lead-form / .form-panel forms */
.consent-field { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 18px 0 4px; }
.consent-field input[type="checkbox"] { width: 20px !important; height: 20px; min-width: 20px; padding: 0 !important; margin: 2px 0 0; accent-color: var(--navy); border: 2px solid var(--navy) !important; flex-shrink: 0; }
.consent-field label { font-family: var(--f-body); font-weight: 400; font-size: 0.88rem; color: var(--grey-solid); margin: 0 !important; flex: 1; }
.consent-field label a { color: var(--orange-ink); font-weight: 700; }
.consent-field .field-error { flex-basis: 100%; margin: 4px 0 0 30px; }
.consent-field.invalid input[type="checkbox"] { outline: 3px solid #A21818; outline-offset: 2px; }

/* Timed audit-offer popup */
.popup-overlay { display: none; position: fixed; inset: 0; background: rgba(10,30,51,0.78); z-index: 1000; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.popup-overlay.open { display: flex; }
.popup-box { position: relative; background: #fff; border: var(--border); max-width: 460px; width: 100%; padding: clamp(28px, 4vw, 40px); max-height: calc(100vh - 40px); overflow-y: auto; }
.popup-box h2 { margin: 0 0 10px; font-size: 1.4rem; padding-right: 32px; }
.popup-box > p:first-of-type { color: var(--grey-solid); margin: 0 0 4px; }
.popup-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; min-height: 0; background: none; border: 2px solid var(--navy); color: var(--navy); font-weight: 800; font-size: 1rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.popup-close:hover { background: var(--navy); color: #fff; }
.popup-note { font-size: 0.8rem; color: var(--grey-solid); margin: 14px 0 0; text-align: center; }
body.popup-locked { overflow: hidden; }

/* Multi-step form (contact page) */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--f-head); font-weight: 700; margin: 0 0 6px; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: #A21818; }
.form-field.invalid .field-error { display: block; }
.step-indicator { display: flex; gap: 8px; margin-bottom: 24px; }
.step-indicator span { flex: 1; height: 6px; background: var(--off); border: 2px solid var(--navy); }
.step-indicator span.done, .step-indicator span.active { background: var(--orange-ink); border-color: var(--orange-ink); }
.form-step { display: none; }
.form-step.active { display: block; }
.confirm-panel { background: var(--off); border: var(--border); border-color: var(--green); padding: 28px; }

/* Terminus / final CTA */
.terminus { background: var(--orange-ink); color: #fff; text-align: center; padding: clamp(48px, 7vw, 96px) 0; }
.terminus .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.terminus h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; margin: 0; }
.terminus p { margin: 0 auto; color: #FFEDE0; }

/* Footer */
footer.site-footer { background: var(--navy); color: #C9D6E4; padding: clamp(36px, 5vw, 60px) 0 24px; }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .f-grid { grid-template-columns: 1fr; } }
footer.site-footer h3 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { padding: 4px 0; }
footer.site-footer a { color: #C9D6E4; text-decoration: none; font-size: 0.95rem; }
footer.site-footer a:hover { color: #fff; text-decoration: underline; }
footer.site-footer .logo img { height: 60px; width: auto; margin-bottom: 14px; }
.f-bottom { border-top: 2px solid #24466B; margin-top: 32px; padding-top: 16px; font-size: 0.83rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.f-bottom a { color: #C9D6E4; }

/* Style guide */
.two-col-type { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 620px) { .two-col-type { grid-template-columns: 1fr; } }
.swatch { height: 84px; border: var(--border); }
.swatch-label { font-family: var(--f-body); font-size: 0.85rem; margin-top: 8px; }
.swatch-label b { display: block; color: var(--navy); font-family: var(--f-head); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img.img-fallback { display: none; }
figure.fell { background: var(--off); min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--grey-solid); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
