/* ===========================================================================
   SOCIAL CAPITAL — site stylesheet
   ===========================================================================

   Every page loads this one file. Until October 2026 each page carried its
   own copy of these rules, which had quietly drifted apart; this is the
   single source of truth.

   HOW TO CHANGE THINGS
   -------------------
   Colours, the content width and the fonts are all defined once, in the
   :root block immediately below. Change a value there and it changes
   everywhere, in both light and dark mode.

   Dark mode is handled by redefining the same tokens further down. If you
   add a colour, add it in BOTH places or the dark theme will break.

   The rules below are grouped by the page that introduced them. Anything
   under "Shared foundations" affects the whole site; the rest is scoped to
   its own page by class name.

   WHAT NOT TO BREAK
   -----------------
   - Class names are referenced by the JavaScript in /js and by the CMS
     templates. Renaming one will silently break a page.
   - Media queries live at the bottom and must stay there to keep working.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   DESIGN TOKENS — change these, not the rules below
   --------------------------------------------------------------------------- */
:root {
  --paper: #FAFAF8;
  --paper-dim: #F1F0EC;
  --card: #FFFFFF;
  --ink: #17181A;
  --ink-soft: #54575A;
  --ink-faint: #8B8E90;
  --green: #0E9A63;
  --green-deep: #0B7A4F;
  --green-tint: #E9F6EF;
  /* Second accent, chosen October 2026. Warm against a cool green, so the
     two never compete: green stays the brand and the action, ochre marks the
     thing worth noticing. Deliberately dark and earthy rather than flag
     orange - green and orange together is the tricolour, and the pair is
     never used in adjacent equal blocks for the same reason. */
  --ochre: #C9731B;
  --ochre-deep: #A55C12;
  --ochre-tint: #FBF0E2;
  --line: #E3E2DD;
  --line-soft: #ECEBE6;
  --white: #FFFFFF;
  --content-width: 920px;
}
:root[data-theme="dark"] {
  --paper: #17181A;
  --paper-dim: #121314;
  --card: #1E2021;
  --ink: #F2F1EC;
  --ink-soft: #B7BAB6;
  --ink-faint: #82858A;
  --green: #37C68A;
  --green-deep: #52D69C;
  --green-tint: #16281F;
  --ochre: #E09A4A;
  --ochre-deep: #EDB06A;
  --ochre-tint: #2B2113;
  --line: #34373A;
  --line-soft: #2A2C2E;
  --white: #232527;
}

/* ---------------------------------------------------------------------------
   Shared foundations — used by every page
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* The hidden attribute must win. A class that sets display (.signin-page is
   display:flex) otherwise beats the browser's own [hidden] rule, and the
   element stays visible with hidden set on it - which is exactly what
   happened on the admin page's sign-in screens. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: 'Public Sans', sans-serif; font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--paper); }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: 'Source Serif 4', serif; color: var(--ink); font-weight: 600; }
nav { display: flex; align-items: baseline; justify-content: space-between; padding: 1.5rem 2rem; border-bottom: 1px solid var(--line); max-width: var(--content-width); margin: 0 auto; }
.nav-logo { font-family: 'Source Serif 4', serif; font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; align-items: baseline; gap: 1.75rem; list-style: none; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-block; background: var(--green); color: var(--white) !important; padding: 0.75rem 1.5rem; text-decoration: none; font-size: 0.9rem; font-weight: 600; border-radius: 3px; border: 1px solid var(--green); cursor: pointer; }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-outline { display: inline-block; background: transparent; color: var(--ink) !important; padding: 0.75rem 1.5rem; text-decoration: none; font-size: 0.9rem; font-weight: 600; border-radius: 3px; border: 1px solid var(--ink-faint); cursor: pointer; }
.btn-outline:hover { border-color: var(--ink); }
.text-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; font-size: 0.95rem; }
.text-link:hover { text-decoration-color: var(--ink); }
.hero { max-width: var(--content-width); margin: 0 auto; padding: 5rem 2rem 3.5rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.18; max-width: 14ch; margin-bottom: 1.5rem; }
.hero p { font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.value-strip { max-width: var(--content-width); margin: 0 auto; padding: 0 2rem 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-bottom: 1px solid var(--line); }
.value-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.value-item p { font-size: 0.9rem; color: var(--ink-soft); }
section { max-width: var(--content-width); margin: 0 auto; padding: 3.75rem 2rem; border-bottom: 1px solid var(--line); }
.section-tag { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-bottom: 1rem; max-width: 26ch; }
.section-body { font-size: 1rem; color: var(--ink-soft); max-width: 58ch; margin-bottom: 2.25rem; }
.mentor-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mentor-teaser { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1.5rem; }
.mentor-teaser-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: 'Source Serif 4', serif; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.9rem; }
.mentor-teaser h4 { font-size: 0.95rem; margin-bottom: 0.1rem; }
.mentor-teaser .role { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 0.75rem; }
.mentor-teaser blockquote { font-size: 0.9rem; color: var(--ink-soft); font-style: italic; border-left: 2px solid var(--green); padding-left: 0.75rem; }
.teaser-note { font-size: 0.875rem; color: var(--ink-faint); margin-top: 1.5rem; }
.teaser-note a { color: var(--ink-faint); }
.teaser-note a:hover { color: var(--ink); }
.industries-line { font-size: 1rem; color: var(--ink-soft); max-width: 62ch; }
.industries-line strong { color: var(--ink); font-weight: 600; }
.bottom-cta { max-width: var(--content-width); margin: 0 auto; padding: 3.75rem 2rem; background: var(--green-tint); }
.bottom-cta h2 { margin-bottom: 0.75rem; }
.bottom-cta p { color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.75rem; font-size: 1rem; }
.cta-group { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
footer { max-width: var(--content-width); margin: 0 auto; padding: 2.5rem 2rem 3.5rem; font-size: 0.875rem; color: var(--ink-faint); display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; }
footer a { color: var(--ink-faint); text-decoration: none; }
footer a:hover { color: var(--ink); }
.footer-logo { font-family: 'Source Serif 4', serif; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.3rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(23, 24, 26, 0.55); z-index: 200; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.active { display: flex; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 2.25rem; max-width: 440px; width: 100%; position: relative; }
.modal h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.modal p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.5rem; line-height: 1.6; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.form-group input, .form-group select { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 3px; font-family: 'Public Sans', sans-serif; font-size: 0.9rem; color: var(--ink); background: var(--white); outline: none; }
.form-group input:focus, .form-group select:focus { border-color: var(--green); }
.modal-submit { width: 100%; background: var(--green); color: var(--white); border: none; padding: 0.8rem; border-radius: 3px; font-family: 'Public Sans', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer; margin-top: 0.4rem; }
.modal-submit:hover { background: var(--green-deep); }
.modal-close { position: absolute; top: 1rem; right: 1.1rem; background: none; border: none; font-size: 1.3rem; color: var(--ink-faint); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--ink); }
.form-consent { font-size: 0.75rem; color: var(--ink-faint); margin: 0.85rem 0 0; line-height: 1.5; }
.form-consent a { color: var(--ink-faint); text-decoration: underline; }
.form-consent a:hover { color: var(--ink); }
.nav-logo { display: inline-flex; align-items: center; line-height: 1; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-logo .logo-dark { display: none; }
:root[data-theme="dark"] .nav-logo .logo-light { display: none; }
:root[data-theme="dark"] .nav-logo .logo-dark { display: block; }

/* ---------------------------------------------------------------------------
   Schools page, the mentor directory, modals and forms
   --------------------------------------------------------------------------- */
.nav-cta { text-decoration: none; color: var(--green) !important; border: 1px solid var(--green); border-radius: 3px; padding: 0.3rem 0.7rem; font-weight: 600; }
.nav-cta:hover { background: var(--green); color: var(--white) !important; }
/* `.hero p` (0,1,1) outranked a bare `.hero-kicker` (0,1,0), so this colour
   never applied and the kicker silently took the body colour instead. Scoped
   to match, which is the fix rather than an !important. */
.hero .hero-kicker, .alum-hero .hero-kicker {
  font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.25rem;
}
.fact-strip { max-width: var(--content-width); margin: 0 auto; padding: 1.75rem 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-strip p { font-size: 1rem; color: var(--ink-soft); max-width: 62ch; }
.fact-strip strong { color: var(--ink); font-weight: 700; }
.how-list { display: flex; flex-direction: column; }
/* Three columns now the icon is a child: icon, heading, body. Adding the
   icon to a two-column grid pushed the body onto a second row, which is the
   same mistake the sector cards made. */
.how-item {
  display: grid; grid-template-columns: 28px 190px 1fr;
  column-gap: 1.25rem; row-gap: 0.4rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line-soft);
}
.how-item:first-child { border-top: 1px solid var(--line); }
.how-item h3 { font-size: 1rem; font-weight: 600; color: var(--ink); }
.how-item p { font-size: 0.95rem; color: var(--ink-soft); max-width: 48ch; }
.industry-list { display: flex; flex-direction: column; }
.industry-row { display: grid; grid-template-columns: 170px 1fr; gap: 2rem; padding: 1rem 0; border-top: 1px solid var(--line-soft); }
.industry-row:first-child { border-top: 1px solid var(--line); }
.industry-row dt { font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 1rem; color: var(--ink); }
.industry-row dd { font-size: 0.9rem; color: var(--ink-soft); max-width: 50ch; }
.lock-note { margin-top: 1.5rem; font-size: 0.9rem; color: var(--ink-faint); }
.login-page { display: none; min-height: 100vh; background: var(--paper-dim); align-items: center; justify-content: center; padding: 2rem; }
.login-page.active { display: flex; }
.login-box { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 2.75rem 2.25rem; max-width: 400px; width: 100%; }
.login-box h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.login-box p { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 1.75rem; }
.directory-page { display: none; min-height: 100vh; background: var(--paper-dim); }
.directory-page.active { display: block; }
.dir-nav { border-bottom: 1px solid var(--line); padding: 1.1rem 2rem; display: flex; align-items: center; justify-content: space-between; max-width: var(--content-width); margin: 0 auto; }
.dir-nav-logo { font-family: 'Source Serif 4', serif; color: var(--ink); font-size: 1.1rem; font-weight: 600; text-decoration: none; }
.dir-nav-user { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 1.25rem; }
.dir-logout { color: var(--ink-faint); font-size: 0.8rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dir-logout:hover { color: var(--ink); }
.dir-header { border-bottom: 1px solid var(--line); padding: 2rem 2rem 1.5rem; }
.dir-header-inner { max-width: 860px; margin: 0 auto; }
.dir-header h2 { font-size: 1.5rem; }
.dir-header p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.35rem; }
.dir-body { padding: 2rem; max-width: 860px; margin: 0 auto; }
.dir-section-title { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 0.75rem; }
.industry-cards { display: flex; flex-direction: column; margin-bottom: 2.5rem; }
.industry-card { background: transparent; border-top: 1px solid var(--line-soft); padding: 1.1rem 0.25rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.industry-card:first-child { border-top: 1px solid var(--line); }
.industry-card:last-child { border-bottom: 1px solid var(--line); }
.industry-card:hover { background: var(--card); }
.industry-card-left h4 { font-size: 0.975rem; font-weight: 600; color: var(--ink); margin-bottom: 0.15rem; }
.industry-card-left span { font-size: 0.8rem; color: var(--ink-faint); }
.industry-card-arrow { color: var(--ink-faint); font-size: 1.2rem; font-family: 'Source Serif 4', serif; }
.mentor-view { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1.75rem; margin-top: 0.5rem; margin-bottom: 1.5rem; }
.mentor-view.active { display: block; }
.mentor-view-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem; }
.mentor-view-title { font-family: 'Source Serif 4', serif; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.back-btn { font-size: 0.8rem; color: var(--ink-faint); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.back-btn:hover { color: var(--ink); }
.sector-summary { border-left: 2px solid var(--green); padding: 0.2rem 1.25rem; margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; }
.mentor-list { display: flex; flex-direction: column; }
.mentor-card { border-top: 1px solid var(--line-soft); padding: 1.1rem 0.25rem; }
.mentor-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.55rem; }
.mentor-head h4 { font-size: 1rem; font-weight: 600; color: var(--ink); }
.mentor-list .mentor-card:first-child { border-top: 1px solid var(--line); }
.mentor-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: 'Source Serif 4', serif; font-size: 1rem; font-weight: 600; flex-shrink: 0; overflow: hidden; }
.mentor-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mentor-avatar.has-photo { background: var(--line-soft); }
.mentor-info p { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.25rem; }
.mentor-badge { font-size: 0.78rem; color: var(--ink-faint); }
.mentor-badge.junior { color: var(--green); }
.main-site { display: block; }
.main-site.hidden { display: none; }
.form-status { font-size: 0.85rem; margin-top: 0.85rem; line-height: 1.5; }
.form-status.ok { color: var(--green-deep); }
.form-status.error { color: var(--ink); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dir-empty { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; max-width: 52ch; }
.mentor-alum { display: block; font-size: 0.75rem; color: var(--ink-faint); margin-top: 0.3rem; }
.mentor-alum-own { color: var(--green-deep); font-weight: 600; }
.mentor-talks { display: block; font-size: 0.75rem; color: var(--green-deep); margin-top: 0.3rem; }
.founding-line { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.75rem; max-width: 62ch; }

/* ---------------------------------------------------------------------------
   Mentor signup page
   --------------------------------------------------------------------------- */
.nav-links a.current { color: var(--green); }
.quote-block { border-left: 2px solid var(--green); padding-left: 1.25rem; font-size: 1.05rem; font-style: italic; color: var(--ink-soft); max-width: 52ch; margin-bottom: 0.75rem; }
.quote-attr { font-size: 0.85rem; color: var(--ink-faint); font-style: normal; }
.signup { max-width: var(--content-width); margin: 0 auto; padding: 3.75rem 2rem; background: var(--green-tint); }
.signup h2 { margin-bottom: 0.5rem; }
.signup > p { color: var(--ink-soft); max-width: 52ch; margin-bottom: 2rem; font-size: 1rem; }
.signup-form { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 2rem; max-width: 480px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signup-submit { width: 100%; background: var(--green); color: var(--white); border: none; padding: 0.8rem; border-radius: 3px; font-family: 'Public Sans', sans-serif; font-size: 0.95rem; font-weight: 600; cursor: pointer; margin-top: 0.4rem; }
.signup-submit:hover { background: var(--green-deep); }
.signup-confirm { display: none; font-size: 0.95rem; color: var(--green-deep); padding: 1rem 0 0; }
.signup-confirm.active { display: block; }

/* ---------------------------------------------------------------------------
   Alumni (left school?) pages
   --------------------------------------------------------------------------- */
.alum-hero { max-width: 760px; margin: 0 auto; padding: 4rem 2rem 2rem; }
.alum-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.18; margin-bottom: 0.9rem; }
.alum-hero p { font-size: 1.05rem; color: var(--ink-soft); max-width: 54ch; margin-bottom: 1rem; }
.alum-box { max-width: 760px; margin: 0 auto 4rem; padding: 0 2rem; }
.alum-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 2rem; }
.alum-card h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.alum-card > p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 52ch; }
.alum-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mentor-contact { display: block; margin-top: 0.5rem; }
.mentor-contact button { background: none; border: 1px solid var(--line); border-radius: 3px; padding: 0.3rem 0.65rem; font-family: 'Public Sans', sans-serif; font-size: 0.75rem; color: var(--ink); cursor: pointer; }
.mentor-contact button:hover { border-color: var(--green); color: var(--green-deep); }
.mentor-contact .revealed { display: block; font-size: 0.8rem; color: var(--green-deep); word-break: break-all; }

/* ---------------------------------------------------------------------------
   Guides hub
   --------------------------------------------------------------------------- */
.pw-wrap { max-width: 760px; margin: 0 auto; padding: 4rem 2rem 3rem; }
.pw-kicker { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 0.6rem; }
.pw-wrap h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.18; margin-bottom: 0.75rem; }
.pw-summary { font-size: 1.1rem; color: var(--ink-soft); max-width: 50ch; margin-bottom: 1rem; }
.pw-wrap h2 { font-size: 1.2rem; margin: 2.75rem 0 0.75rem; max-width: none; }
.pw-wrap > p, .pw-wrap p { font-size: 0.975rem; color: var(--ink-soft); line-height: 1.7; max-width: 62ch; }
.pw-note { font-size: 0.875rem !important; color: var(--ink-faint) !important; margin-bottom: 1.25rem; }
.route { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.route:last-of-type { border-bottom: 1px solid var(--line); }
.route-head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.route-head h3 { font-size: 1.05rem; margin: 0; }
.route-tag { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--green-deep); background: var(--green-tint); padding: 0.2rem 0.5rem; border-radius: 3px; }
.route-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.route-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 0.15rem; }
.route-facts dd { font-size: 0.9rem; color: var(--ink); }
.myth { border-left: 2px solid var(--line); padding-left: 1rem; margin-bottom: 1.5rem; }
.myth-claim { font-style: italic; color: var(--ink-faint) !important; margin-bottom: 0.35rem; }
.myth-reality { color: var(--ink) !important; }
.pw-links { margin: 0 0 1rem 1.1rem; }
.pw-links li { font-size: 0.95rem; margin-bottom: 0.5rem; line-height: 1.6; }
.pw-cta { background: var(--green-tint); border-radius: 4px; padding: 2rem; margin: 3rem 0 2rem; }
.pw-cta h2 { margin-top: 0; }
.pw-cta p { margin-bottom: 1.5rem; }
.pw-checked { font-size: 0.8rem !important; color: var(--ink-faint) !important; border-top: 1px solid var(--line-soft); padding-top: 1.25rem; }
.pathway-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
.pathway-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1.5rem; text-decoration: none; }
.pathway-card:hover { border-color: var(--ink-faint); }
.pathway-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.pathway-sector { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.pathway-arrow { color: var(--ink-faint); font-size: 1.2rem; font-family: 'Source Serif 4', serif; }
.pathway-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.pathway-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.pw-wrap p { margin-bottom: 1rem; }
.pw-wrap .pw-summary { margin-bottom: 1.5rem; }
.pw-wrap h2 + p, .pw-wrap .route p { margin-bottom: 0.85rem; }
.guide-group { margin-bottom: 4rem; }
.guide-group h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 0.6rem; }
.guide-intro { font-size: 1rem; color: var(--ink-soft); max-width: 58ch; margin-bottom: 2rem; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
.guide-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1.5rem; text-decoration: none; }
.guide-card:hover { border-color: var(--ink-faint); }
.guide-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; gap: 1rem; }
.guide-sub { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.guide-arrow { color: var(--ink-faint); font-size: 1.2rem; font-family: 'Source Serif 4', serif; }
.guide-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.guide-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; background: var(--paper-dim); border-radius: 4px; padding: 1.5rem; margin: 1.5rem 0 2rem; }
.fact-grid dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 0.2rem; }
.fact-grid dd { font-size: 0.95rem; color: var(--ink); font-weight: 500; }
.related { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2.5rem; }
.related ul { list-style: none; margin: 0.5rem 0 0; }
.related li { margin-bottom: 0.45rem; font-size: 0.95rem; }

/* ---------------------------------------------------------------------------
   Long-form documents (About, Terms, Privacy)
   --------------------------------------------------------------------------- */
.doc blockquote { background: var(--green-tint); border-radius: 4px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.doc blockquote p { margin-bottom: 0.5rem; color: var(--ink); }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc h1 + p em, .doc > p:first-of-type em { font-style: normal; }
.doc em { color: var(--ink-faint); }
.doc { max-width: 720px; margin: 0 auto; padding: 4rem 2rem 3rem; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.2; margin-bottom: 0.75rem; }
.doc .updated { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 2.5rem; }
.doc h2 { font-size: 1.2rem; margin: 2.5rem 0 0.75rem; max-width: none; }
.doc h3 { font-size: 1rem; margin: 1.75rem 0 0.5rem; }
.doc p, .doc li { font-size: 0.975rem; color: var(--ink-soft); line-height: 1.7; }
.doc p { margin-bottom: 1rem; max-width: 64ch; }
.doc ul { margin: 0 0 1rem 1.25rem; }
.doc li { margin-bottom: 0.4rem; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9rem; }
.doc th { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.85rem; }
.doc td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); vertical-align: top; }
.doc .callout { background: var(--green-tint); border-radius: 4px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.doc .callout p { margin-bottom: 0; color: var(--ink); }
.doc .todo { border-left: 2px solid var(--green); padding-left: 1rem; color: var(--ink-faint); font-size: 0.9rem; }

/* ---------------------------------------------------------------------------
   RESPONSIVE — phone and tablet overrides. Must stay last.
   --------------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --ochre: #E09A4A; --ochre-deep: #EDB06A; --ochre-tint: #2B2113; --paper: #17181A; --paper-dim: #121314; --card: #1E2021; --ink: #F2F1EC; --ink-soft: #B7BAB6; --ink-faint: #82858A; --green: #37C68A; --green-deep: #52D69C; --green-tint: #16281F; --line: #34373A; --line-soft: #2A2C2E; --white: #232527; }
  :root:not([data-theme="light"]) .nav-logo .logo-light { display: none; }
  :root:not([data-theme="light"]) .nav-logo .logo-dark { display: block; }
}

@media (max-width: 720px) {
  .value-strip, .mentor-teaser-grid { grid-template-columns: 1fr; }
  .pathway-grid { grid-template-columns: 1fr; }
  .guide-grid, .fact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav { padding: 1.1rem 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
  .nav-links { gap: 1.1rem; font-size: 0.85rem; }
  .hero { padding: 3rem 1.25rem 2.25rem; }
  section, .bottom-cta { padding: 2.75rem 1.25rem; }
  .value-strip { padding: 0 1.25rem 2.75rem; }
  footer { flex-direction: column; align-items: flex-start; }
  .how-item, .industry-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .fact-strip { padding: 1.5rem 1.25rem; }
  section, .signup { padding: 2.75rem 1.25rem; }
  .how-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .alum-hero, .alum-box { padding-left: 1.25rem; padding-right: 1.25rem; }
  .alum-split { grid-template-columns: 1fr; }
  .pw-wrap { padding: 2.5rem 1.25rem 2rem; }
  .route-facts { grid-template-columns: 1fr; }
  .doc { padding: 2.5rem 1.25rem 2rem; }
}

/* ---------------------------------------------------------------------------
   PHONE-FIRST CORRECTIONS (October 2026)

   Reading size, gutters and tap targets. The nav is handled separately,
   under "PHONE MENU" below.
   --------------------------------------------------------------------------- */
@media (max-width: 640px) {

  /* Reading size. 15.6px is small on a phone held at arm's length. */
  body { font-size: 16.5px; }
  .pw-wrap p, .pw-wrap li, .doc p, .doc li { font-size: 1rem; }

  /* A little more room from the screen edge. */
  .hero, .pw-wrap, .doc, section, .bottom-cta, footer, .alum-hero, .alum-box {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  /* Thumb-sized controls. */
  .btn, .btn-outline { padding: 0.85rem 1.4rem; }
  .modal-submit, .signup-submit { min-height: 48px; }
  .hero-actions, .cta-group { gap: 1rem; }

  /* Stop nav labels breaking mid-phrase, which looked broken rather than tight. */
  .nav-links a { white-space: nowrap; }
}

/* ---------------------------------------------------------------------------
   PHONE MENU
   ---------------------------------------------------------------------------
   On a phone the nav is three things: the logo, a "Sign in" button and a
   menu button. The list of links moves into a drop-down.

   The ".js-nav" class is added by /js/nav.js, NOT by the HTML. That is
   deliberate: if that script fails to load the links stay visible as a
   plain list, so nobody is left with a menu button that does nothing.
   Do not move these rules out from under .js-nav.
   --------------------------------------------------------------------------- */
.nav-toggle { display: none; }

@media (max-width: 640px) {
  .js-nav {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
  }

  /* The button: 44px square, which is the smallest comfortable tap target. */
  .js-nav .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    margin-right: -0.5rem;   /* optically aligns the bars with the gutter */
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--ink);
  }

  /* Three bars, drawn rather than imported so there is no icon dependency. */
  .js-nav .nav-toggle-bars,
  .js-nav .nav-toggle-bars::before,
  .js-nav .nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
  .js-nav .nav-toggle-bars { position: relative; }
  .js-nav .nav-toggle-bars::before,
  .js-nav .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .js-nav .nav-toggle-bars::before { top: -6px; }
  .js-nav .nav-toggle-bars::after  { top: 6px; }

  /* Open state: the bars become an X. */
  .js-nav .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .js-nav .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .js-nav .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

  /* The drop-down. Hidden until the button sets data-open. */
  .js-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1.35rem 0.75rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }
  .js-nav .nav-links[data-open] { display: flex; }

  .js-nav .nav-links li { border-top: 1px solid var(--line-soft); }
  .js-nav .nav-links li:first-child { border-top: 0; }
  .js-nav .nav-links a {
    display: block;
    padding: 0.95rem 0;
    font-size: 1.02rem;
    color: var(--ink);
  }

  /* "Sign in" stays out on the bar - it is the one action, not navigation. */
  .js-nav .nav-signin {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }
  .js-nav .nav-logo img { height: 34px; }
  .js-nav { padding-top: 0.9rem; padding-bottom: 0.9rem; }
}

/* ---------------------------------------------------------------------------
   THE SIGN-IN PAGE (signin.html)

   One box, centred. Three states live in the markup at once and
   /js/signin.js shows one of them: the form, "signing you in", or
   "we don't recognise that address".
   --------------------------------------------------------------------------- */
.signin-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.35rem;
}
.signin-page .login-box { width: 100%; max-width: 440px; }
.signin-page h1 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.signin-page > .login-box > p { color: var(--ink-soft); font-size: 0.95rem; }
.signin-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.signin-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .signin-routes { flex-direction: column; }
  .signin-routes .btn, .signin-routes .btn-outline { text-align: center; }
}

.signin-page .login-box p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   MENTOR ADMIN (admin-mentors.html)

   Jack's own page, not a visitor's. Density over elegance: the point is to
   see everybody on the list at once and know who is live.
   --------------------------------------------------------------------------- */
.admin-wrap { max-width: var(--content-width); margin: 0 auto; padding: 2rem 2rem 4rem; }
.admin-panel { margin-bottom: 3rem; }
.admin-panel h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.admin-note { color: var(--ink-soft); font-size: 0.875rem; margin-bottom: 1.5rem; }

.admin-private {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem 1.25rem 0.25rem;
  margin: 0.5rem 0 1.5rem;
  background: var(--paper-dim);
}
.admin-private-title {
  /* Was a <legend>. Browsers lay legends out specially and a legend that
     wraps to two lines on a phone sits across the box's own border, which
     no amount of CSS fixes cleanly. This is a plain line of text, with
     role="group" and aria-labelledby doing the same job for screen readers. */
  margin-bottom: 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.admin-checks { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.admin-checks label {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.9rem; color: var(--ink); cursor: pointer;
}
.admin-checks input { margin-top: 0.2rem; }

.admin-actions { display: flex; gap: 0.75rem; align-items: center; }

/* One mentor. A left edge in green means a school can see them. */
.admin-row {
  display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between;
  padding: 1rem 1rem 1rem 0.85rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 4px;
  margin-bottom: 0.6rem;
  background: var(--card);
}
.admin-row.is-live { border-left-color: var(--green); }
.admin-row-main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.admin-row-role { font-size: 0.9rem; color: var(--ink); }
.admin-row-meta { font-size: 0.8rem; color: var(--ink-soft); }
.admin-row-private { font-size: 0.78rem; color: var(--ink-faint); word-break: break-word; }
.admin-row-actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }

.admin-badge {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.admin-row.is-live .admin-badge { color: var(--green); }
.btn-outline.admin-small { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

@media (max-width: 640px) {
  .admin-wrap { padding: 1.5rem 1.35rem 3rem; }
  .dir-nav { padding: 1rem 1.35rem; gap: 0.75rem; }
  .dir-nav-logo { white-space: nowrap; font-size: 1rem; }
  .dir-nav-user { font-size: 0.8rem; gap: 0.9rem; }
  .dir-logout { white-space: nowrap; }
  .admin-row { flex-direction: column; }
  .admin-row-actions { width: 100%; justify-content: flex-end; }
  .btn-outline.admin-small { min-height: 40px; }
}

/* The link across to the CMS at /admin, which edits page wording rather than
   mentors. Two admin pages is confusing enough without hiding either one. */
.dir-admin-link { color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.dir-admin-link:hover { color: var(--ink); text-decoration: underline; }

/* The pending queue. Amber left edge: somebody is waiting on Jack, which is
   a different state from a mentor who is simply hidden. */
.pending-row {
  border: 1px solid var(--line);
  border-left: 3px solid #C98A1B;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 0.6rem;
  background: var(--card);
}
.pending-head { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; }
.pending-who { flex: 1 1 auto; min-width: 0; }
.pending-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; align-self: center; background: var(--line-soft); }
.admin-photo-row { display: flex; align-items: center; gap: 0.85rem; }
.admin-photo-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--line-soft); }
.admin-photo-remove { display: block; font-size: 0.85rem; margin-top: 0.5rem; font-weight: 400; }
.pending-kind {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: #C98A1B; flex: 0 0 auto;
}
.pending-meta { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.15rem; }
.pending-said { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.15rem; }
.pending-fields {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 0.6rem;
  margin: 0.9rem 0 0.75rem;
}
.pending-fields input, .pending-fields select {
  width: 100%; padding: 0.55rem 0.6rem; font-size: 0.85rem;
  font-family: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
}
.pending-actions { display: flex; gap: 0.5rem; align-items: center; }
.pending-status { font-size: 0.8rem; margin-left: 0.25rem; }
.pending-status.error { color: #B3261E; }
:root[data-theme="dark"] .pending-status.error { color: #F2B8B5; }

@media (max-width: 640px) {
  .pending-fields { grid-template-columns: 1fr; }
  .pending-head { flex-direction: column-reverse; align-items: flex-start; gap: 0.25rem; }
}

/* The route block on the admin form. Boxed like the private fields so the
   form reads as three groups rather than one long run of inputs. */
.admin-route {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem 1.25rem 0.25rem;
  margin: 0.5rem 0 1.5rem;
}

/* The route line on a mentor card. Same weight as everything else about
   them on purpose: an apprenticeship should not look like a lesser entry
   than a master's. */
.mentor-route { display: block; font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.3rem; }

/* Bio box on the admin form. */
#m_bio {
  width: 100%; padding: 0.7rem 0.75rem; font: inherit; font-size: 0.9rem;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 3px; resize: vertical;
}
.bio-count { font-size: 0.75rem; color: var(--ink-faint); text-align: right; margin-top: 0.3rem; }
.bio-count.over { color: #B3261E; font-weight: 600; }
.bio-warn {
  margin-top: 0.5rem; padding: 0.7rem 0.8rem; font-size: 0.82rem;
  color: var(--ink); background: #FDF3E0; border-left: 3px solid #C98A1B;
  border-radius: 3px;
}
:root[data-theme="dark"] .bio-warn { background: #2B2313; }

/* Bio on a mentor card. */
.mentor-bio {
  display: block; margin-top: 0.5rem; font-size: 0.875rem;
  line-height: 1.55; color: var(--ink-soft);
}

/* ---------------------------------------------------------------------------
   A SCHOOL INVITING ITS OWN STUDENTS (the panel on the school dashboard)
   --------------------------------------------------------------------------- */
.invite-panel { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.invite-note { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.25rem; max-width: 60ch; }
.invite-row { display: flex; gap: 0.6rem; margin-bottom: 0.75rem; }
.invite-row input {
  flex: 1 1 auto; min-width: 0; padding: 0.7rem 0.75rem; font: inherit;
  font-size: 0.9rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 3px;
}
.invite-attest {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.875rem; color: var(--ink); cursor: pointer;
}
.invite-attest input { margin-top: 0.2rem; }

.invite-link {
  margin: 1.25rem 0; padding: 1rem 1.1rem;
  background: var(--green-tint); border-left: 3px solid var(--green);
  border-radius: 3px;
}
.invite-link p { font-size: 0.85rem; margin-bottom: 0.6rem; }
.invite-link input {
  width: 100%; padding: 0.6rem 0.7rem; margin-bottom: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 3px;
}
.invite-link .invite-note { margin: 0.75rem 0 0; }

.invite-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1rem; margin-bottom: 0.5rem;
  border: 1px solid var(--line); border-left: 3px solid var(--line-soft);
  border-radius: 4px; background: var(--card);
}
.invite-item.is-joined  { border-left-color: var(--green); }
.invite-item.is-waiting { border-left-color: #C98A1B; }
.invite-item.is-expired, .invite-item.is-revoked { opacity: 0.65; }
.invite-item strong { display: block; font-size: 0.92rem; }
.invite-meta { display: block; font-size: 0.78rem; color: var(--ink-soft); }

@media (max-width: 640px) {
  .invite-row { flex-direction: column; }
  .invite-item { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .invite-item button { align-self: flex-end; }
}

/* Mentor load, on the admin page. */
.load-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1rem; margin-bottom: 0.4rem;
  border: 1px solid var(--line); border-radius: 4px; background: var(--card);
}
.load-meta { display: block; font-size: 0.78rem; color: var(--ink-soft); }
.load-figures { display: flex; gap: 1.25rem; font-size: 0.82rem; color: var(--ink-soft); flex: 0 0 auto; }
.load-figures b { color: var(--ink); font-size: 1rem; }
@media (max-width: 640px) {
  .load-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* The three ways in, on the Join page. Equal weight on purpose: somebody who
   left school in 2014 should not feel like the afterthought. */
.join-routes { max-width: var(--content-width); margin: 0 auto; padding: 0 2rem 1rem; }
.join-routes h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.join-rule { color: var(--ink-soft); margin-bottom: 1.75rem; max-width: 60ch; }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.join-card {
  padding: 1.25rem 1.35rem;
  background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--green); border-radius: 4px;
}
.join-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.join-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 720px) {
  .join-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .join-routes { padding-left: 1.35rem; padding-right: 1.35rem; }
}

/* Hint under a form field, where the label alone is not enough. */
.field-hint { margin-top: 0.3rem; font-size: 0.78rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------------------
   ICONS (js/icons.js)

   Lucide, drawn at 24px and scaled by font-size so an icon always matches the
   text it sits beside. currentColor throughout, so they follow the theme with
   no dark-mode rules of their own.
   --------------------------------------------------------------------------- */
.sc-icon {
  width: 1.5em; height: 1.5em;
  flex: 0 0 auto;
  vertical-align: middle;
}

/* On a sector card: a green tile on the left, so ten cards read as a list of
   things rather than ten paragraphs.

   The card is justify-content: space-between and now has three children
   instead of two, so without this the icon and the title get pushed to
   opposite ends. Letting the text block take the slack keeps the icon
   beside its own label and the arrow on the right where it was. */
.industry-card { gap: 1rem; }
.industry-card-left { margin-right: auto; }
.industry-icon {
  width: 42px; height: 42px; padding: 9px;
  color: var(--green);
  background: var(--green-tint);
  border-radius: 8px;
  box-sizing: border-box;
}

/* On a guide card: small and quiet, next to the subtitle. */
.guide-card-top { display: flex; align-items: center; gap: 0.5rem; }
.guide-icon { width: 1.15rem; height: 1.15rem; color: var(--green); }
.guide-card-top .guide-sub { flex: 1 1 auto; min-width: 0; }

@media (max-width: 640px) {
  .industry-icon { width: 36px; height: 36px; padding: 7px; }
}

/* ---------------------------------------------------------------------------
   THE ROUTE MAP (guides.html)

   Line colours live here, in both themes, so the drawing itself carries no
   hard-coded colour. If the palette changes, these five tokens are the only
   thing to touch.
   --------------------------------------------------------------------------- */
:root {
  --route-1: var(--green);        /* higher education */
  --route-2: var(--green-deep);   /* further education, into the same hub */
  --route-3: var(--ochre);        /* trades and training */
  --route-4: var(--ink-faint);    /* straight to work - deliberately neutral */
  --route-5: var(--ochre-deep);   /* coming back later */
}

.route-map { margin: 3rem 0 0; }
.route-map-caption {
  font-size: 0.95rem; color: var(--ink-soft);
  max-width: 62ch; margin-bottom: 1.25rem;
}
.route-map-caption strong { color: var(--ink); }

/* Six branches need width for six labels, so the drawing keeps its own and
   scrolls inside its box on a phone. A diagram is one of the few things
   allowed that. The words underneath carry the same content for anyone who
   will not drag it. */
.route-map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.route-map-svg { display: block; width: 100%; min-width: 620px; height: auto; }

.route-map-words { display: none; margin-top: 1.25rem; }
.route-map-words p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.route-map-words strong { color: var(--ink); }
@media (max-width: 700px) { .route-map-words { display: block; } }

/* Boxes rather than dots: a line stops at the edge instead of crossing the
   label. The tint fills come from the route colours, so a box and the line
   feeding it are obviously the same thing. */
.rm-box { fill: var(--card); stroke: var(--line); stroke-width: 2; }
.rm-box.rm-r1 { stroke: var(--green); }
.rm-box.rm-r2 { stroke: var(--green-deep); }
.rm-box.rm-r3 { stroke: var(--ochre); }
.rm-box.rm-r4 { stroke: var(--ink-faint); }
.rm-box.rm-hub { stroke-width: 3; }
/* A dashed BOX means "you may or may not do this". A dashed LINE means
   "later". Two different ideas, so they must not share a treatment. */
.rm-box.rm-optional { stroke-dasharray: 7 5; fill: var(--paper); }
.rm-box.rm-start, .rm-box.rm-end { fill: var(--ink); stroke: var(--ink); }

.rm-label text {
  font-family: 'Public Sans', sans-serif;
  font-size: 13px; fill: var(--ink);
}
.rm-label .rm-label-big { font-size: 17px; font-weight: 700; fill: var(--ink); }
/* Labels sitting on the two dark boxes: the start and the Working bar. */
.rm-label text:first-child, .rm-label text:nth-last-child(2) { fill: var(--paper); }
.rm-label .rm-label-note {
  font-size: 13px; fill: var(--route-5);
  font-style: italic;
}

/* ---------------------------------------------------------------------------
   THE SECOND ACCENT AT WORK

   Green keeps every job it has: the logo, the primary button, links, the
   Sign in control. Ochre takes the jobs green was doing badly - the small
   labels above a heading, the secondary link beside a primary button, and
   the number in a fact strip. On a page where everything was green, nothing
   stood out; now one thing does.
   --------------------------------------------------------------------------- */

/* Small labels above a heading.
   .hero-kicker is deliberately not here: it carries a whole sentence rather
   than a short label, and a sentence in accent colour is shouting. Its own
   colour rule is now scoped as `.hero .hero-kicker` so that it actually
   applies - it had been losing to `.hero p` on specificity. */
.section-tag, .pw-kicker, .dir-section-title {
  color: var(--ochre);
}

/* The quieter of two actions, so it stops competing with the green button. */
.text-link { color: var(--ochre); }
.text-link:hover { color: var(--ochre-deep); }

/* The numbers a school is meant to notice. */
.fact-strip strong, .founding-line strong { color: var(--ochre-deep); }

/* Guide card icons, so the public hub is not a single-colour page. */
.guide-icon { color: var(--ochre); }

/* ---------------------------------------------------------------------------
   SMALL PATTERNS THAT WERE INLINE STYLES

   These were repeated style="" attributes across several pages. Pulled into
   classes so a designer can find them, and so changing the small print in one
   place changes it everywhere.
   --------------------------------------------------------------------------- */

/* A control that looks like a link and behaves like a button. These were
   <span onclick> - clickable with a mouse and completely unreachable with a
   keyboard. A real <button> is focusable, announced as a button, and fires on
   Enter and Space without any of that being written by hand. */
.link-button {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--green); }
.link-button.is-quiet { color: var(--ink-soft); }
.link-button.is-quiet:hover { color: var(--ink); }

/* The grey "Optional" beside a field label. */
.label-optional { font-weight: 400; color: var(--ink-faint); }

/* Centred small print under a form. */
.small-print {
  margin-top: 1rem; font-size: 0.8rem;
  color: var(--ink-soft); text-align: center;
}
.small-print.is-tight { margin-top: 0.5rem; }

/* A note sitting under a block of content. */
.note-under { margin-top: 1.5rem; font-size: 0.9rem; color: var(--ink-soft); }

/* A hero that runs straight into the section below it. */
.hero--flush { border-bottom: none; }

/* dir-logout and back-btn were also <span onclick> - including "Sign out",
   which a keyboard user could not reach at all. Now buttons, with the browser
   chrome reset so they look exactly as they did. */
.dir-logout, .back-btn {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}

/* An icon on each "what the school gets" card. The icon name is a CMS field,
   so which one a card shows is Jack's choice, not a code change. */
.how-icon { display: block; color: var(--ochre); line-height: 1; }
.how-icon .sc-icon { width: 26px; height: 26px; }
