/*
 * Salesforce Hub — design system.
 *
 * Ported from the DynamicsHub design system (premium glassmorphism: frosted cards over
 * soft washes, -4px hover lift, gradient accents) with the palette re-based on Salesforce
 * blue instead of Microsoft teal. The structure, component names and rules are theirs; the
 * colours are not, because a teal-and-navy Salesforce site reads as a Dynamics site.
 *
 * ONE DELIBERATE DEPARTURE, and it is a correctness fix rather than taste: their primary
 * button is a light-accent gradient carrying white text. Salesforce cyan #00A1E0 scores
 * 2.93:1 against white — well under the 4.5:1 their own DESIGN.md calls non-negotiable —
 * and their teal has the same problem. So the primary gradient here runs #0176D3 -> #0B5CAB
 * (4.63:1 and 6.70:1), and cyan is used for accents, highlights and gradient stops on dark,
 * never as a background for white text.
 *
 * Rules that come with this system:
 *   - Use the tokens. Never introduce a foreign palette, and never inline a brand colour.
 *   - Cards hover at -4px, buttons at -2px. Nothing else moves.
 *   - Never remove a focus outline without an equal replacement.
 *   - Body text stays at or above 4.5:1. The text tokens are tuned for it.
 */

/* ============================================================================
   TOKENS
   ========================================================================== */

:root {
  /* --- Brand ------------------------------------------------------------- */
  --primary-navy: #032d60;
  --primary-navy-light: #0b5cab;
  --primary-navy-dark: #01203f;

  --primary-blue: #0176d3;        /* 4.63:1 on white — the link and CTA colour */
  --primary-blue-light: #00a1e0;  /* accent only: fails AA behind white text */
  --primary-blue-bright: #6fd3ff;
  --primary-blue-dark: #0b5cab;

  --primary-color: var(--primary-blue);
  --secondary-dark: var(--primary-navy-dark);

  /* --- Gradients --------------------------------------------------------- */
  --accent-gradient: linear-gradient(135deg, #0176d3 0%, #0b5cab 100%);
  --accent-gradient-hover: linear-gradient(135deg, #0b5cab 0%, #084a8b 100%);
  --navy-gradient: linear-gradient(135deg, #032d60 0%, #0b5cab 100%);
  --hero-gradient: linear-gradient(135deg, #01203f 0%, #032d60 45%, #0b5cab 100%);

  /*
   * SKY. The page header and the washes behind content are a light sky blue, taken from the
   * cyan accent, with NAVY text on them — never white. White on #00A1E0 is 2.93:1; navy on
   * the deepest stop of this gradient is 8.47:1 and the sub text 5.41:1. Light sky with dark
   * text is what makes the site read as sky blue and stay readable; Salesforce's cyan behind
   * white text would do neither, and copying their logo colour outright would also say
   * "official" more loudly than the footer's disclaimer says otherwise.
   */
  --sky-gradient: linear-gradient(135deg, #e3f5fd 0%, #bfe8fa 55%, #8fd6f5 100%);
  --sky-wash: #eef9fe;
  --sky-text: #032d60;     /* 8.47:1 on the deepest stop */
  --sky-text-soft: #1f4e79; /* 5.41:1 on the deepest stop */

  --mesh-gradient:
    radial-gradient(at 40% 20%, rgba(0, 161, 224, 0.15) 0, transparent 50%),
    radial-gradient(at 80% 0%, rgba(1, 118, 211, 0.12) 0, transparent 50%),
    radial-gradient(at 0% 50%, rgba(3, 45, 96, 0.08) 0, transparent 50%);

  --glass-mesh-bg:
    radial-gradient(ellipse at 15% 0%, rgba(0, 161, 224, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(111, 211, 255, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 65%, rgba(0, 161, 224, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 35%, rgba(111, 211, 255, 0.22) 0%, transparent 45%);

  /* Sanctioned accents. ONLY for .icon-tile colour modifiers. */
  --grad-blue: linear-gradient(135deg, #0176d3 0%, #00a1e0 100%);
  --grad-navy: linear-gradient(135deg, #032d60 0%, #0b5cab 100%);
  --grad-navyblue: linear-gradient(135deg, #032d60 0%, #00a1e0 100%);
  --grad-violet: linear-gradient(135deg, #5b6abf 0%, #8b7fd4 100%);
  --grad-amber: linear-gradient(135deg, #c97a00 0%, #e8a33d 100%);
  --grad-success: linear-gradient(135deg, #1d6f4f 0%, #2e9e6b 100%);
  --grad-info: linear-gradient(135deg, #0a7ea4 0%, #35b0d3 100%);
  --grad-rose: linear-gradient(135deg, #b3364a 0%, #e0637a 100%);

  /* --- Glass surfaces ---------------------------------------------------- */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-light: rgba(255, 255, 255, 0.5);
  --glass-bg-heavy: rgba(255, 255, 255, 0.85);
  --glass-bg-tinted: rgba(1, 118, 211, 0.08);
  --glass-bg-navy: rgba(3, 45, 96, 0.75);
  --glass-bg-dark: rgba(1, 32, 63, 0.85);
  --glass-bg-frost: rgba(247, 250, 252, 0.8);

  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-border-light: rgba(255, 255, 255, 0.2);
  --glass-border-heavy: rgba(255, 255, 255, 0.6);
  --glass-border-tinted: rgba(1, 118, 211, 0.2);
  --glass-border-dark: rgba(255, 255, 255, 0.1);

  --glass-blur-sm: blur(8px);
  --glass-blur-md: blur(16px);
  --glass-blur-lg: blur(24px);
  --glass-blur-xl: blur(40px);

  /* An open menu: wider and fainter than the glass shadows, so it floats rather than presses. */
  --shadow-menu: 0 12px 32px rgba(3, 45, 96, 0.1);
  --glass-shadow:
    0 8px 32px rgba(3, 45, 96, 0.08),
    0 2px 8px rgba(3, 45, 96, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --glass-shadow-lg:
    0 16px 48px rgba(3, 45, 96, 0.1),
    0 4px 16px rgba(3, 45, 96, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --glass-shadow-glow:
    0 8px 32px rgba(1, 118, 211, 0.15),
    0 2px 8px rgba(1, 118, 211, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --glass-shadow-dark:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --glass-shadow-inset:
    inset 0 2px 4px rgba(3, 45, 96, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5);

  --glass-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 40%);

  /* --- Text -------------------------------------------------------------- */
  /* Every tier below passes 4.5:1 on white except --text-muted, which is for
     large text and non-essential marks only. Verified, not assumed. */
  --text-dark: #16191d;    /* 17.63:1 */
  --text-medium: #444c56;  /*  8.70:1 */
  --text-light: #5a6673;   /*  5.86:1 */
  --text-muted: #8a94a0;   /*  3.08:1 — large text only */
  --text-on-glass: var(--primary-navy);
  --text-on-glass-dark: rgba(255, 255, 255, 0.95);

  /* --- Backgrounds and borders ------------------------------------------- */
  --bg-light: #f6f8fa;
  --bg-white: #ffffff;
  --bg-dark: var(--primary-navy-dark);
  --bg-glass: rgba(255, 255, 255, 0.8);

  --border-color: #e2e8f0;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.2);

  /* --- Shadows ----------------------------------------------------------- */
  --shadow-xs: 0 1px 2px 0 rgba(3, 45, 96, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(3, 45, 96, 0.1), 0 1px 2px -1px rgba(3, 45, 96, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(3, 45, 96, 0.1), 0 2px 4px -2px rgba(3, 45, 96, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(3, 45, 96, 0.1), 0 4px 6px -4px rgba(3, 45, 96, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(3, 45, 96, 0.1), 0 8px 10px -6px rgba(3, 45, 96, 0.1);
  --shadow-glow: 0 0 40px rgba(1, 118, 211, 0.3);

  /* --- Spacing ----------------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* --- Radii ------------------------------------------------------------- */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.75rem;
  --radius-full: 9999px;

  /* --- Motion ------------------------------------------------------------ */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-glass: 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Bootstrap remap: .text-primary, .bg-primary, .badge.bg-primary and friends
     become on-brand globally, so a view can safely use them. */
  --bs-primary: #0176d3;
  --bs-primary-rgb: 1, 118, 211;
  --bs-link-color: #0176d3;
  --bs-link-color-rgb: 1, 118, 211;
  --bs-link-hover-color: #0b5cab;
}

/* ============================================================================
   BASE
   ========================================================================== */

* { box-sizing: border-box; }

/*
 * The body is a clean base, NOT a permanent wash.
 *
 * A fixed mesh behind every page greys the whole app and leaves a white card sitting on
 * pale grey, which reads as washed out rather than as frosted. Glass only reads as glass
 * when there is something with colour behind it, so the mesh is applied deliberately per
 * section with .glass-section, exactly as the system this was ported from does.
 */
body {
  font-family: var(--font-sans);
  color: var(--text-medium);
  background: var(--sky-wash);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--primary-blue); color: #fff; }
html { scroll-behavior: smooth; }

/* ============================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
/* Links DARKEN on hover, never lighten — a lighter link on white loses contrast. */
a:hover { color: var(--primary-blue-dark); text-decoration: underline; }

.lead { font-size: 1.125rem; color: var(--text-light); }
.text-muted-2 { color: var(--text-light); }
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================================
   SKIP LINK
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--primary-navy);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ============================================================================
   GLASSMORPHISM COMPONENT SYSTEM
   ========================================================================== */

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border: 1px solid var(--glass-border-dark);
  box-shadow: var(--glass-shadow-dark);
}

/* The primary surface. */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition-glass);
}

/* Bootstrap's .card-header/.card-body/.card-footer take their padding from
   --bs-card-* variables that only .card defines. Inside a bare .glass-card those
   resolve to 0 and the content sits flush against the rounded corner. Give them
   real padding; utility overrides like .p-0 still win. */
.glass-card > .card-header { padding: var(--space-4) var(--space-5) var(--space-2); border-bottom: 1px solid var(--border-color); background: transparent; }
.glass-card > .card-body { padding: var(--space-5); }
.glass-card > .card-header + .card-body { padding-top: var(--space-3); }
.glass-card > .card-footer { padding: var(--space-3) var(--space-5); background: transparent; border-top: 1px solid var(--border-color); }

/* The top-edge shine that makes the frost read as glass rather than as grey. */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
  opacity: 0.8;
}

.glass-card:hover { box-shadow: var(--glass-shadow-lg); border-color: var(--glass-border-heavy); }
/* Only a card that is itself a link lifts — a static panel that moves under the
   cursor suggests an affordance that is not there. */
a.glass-card:hover, .glass-card-hover:hover { transform: translateY(-4px); text-decoration: none; }

.glass-card-tinted {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(1, 118, 211, 0.08) 100%);
  border-color: var(--glass-border-tinted);
  box-shadow: var(--glass-shadow-glow);
}

.glass-card-dark {
  background: var(--glass-bg-navy);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-2xl);
  box-shadow: var(--glass-shadow-dark);
  color: var(--text-on-glass-dark);
}
.glass-card-dark h1, .glass-card-dark h2, .glass-card-dark h3,
.glass-card-dark h4, .glass-card-dark h5, .glass-card-dark h6 { color: #fff; }
.glass-card-dark p { color: rgba(255, 255, 255, 0.8); }

/* Selected state: blue border + blue tint. Never a navy wash. */
.glass-card.is-selected {
  border-color: var(--primary-blue);
  background: rgba(1, 118, 211, 0.06);
}

/*
 * Put the wash behind a run of content. Anything frosted on top then has colour to blur,
 * which is the whole point of the effect.
 */
.glass-section {
  position: relative;
  background: var(--bg-light);
}
.glass-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-mesh-bg);
  pointer-events: none;
}
.glass-section > * { position: relative; z-index: 1; }

/* Full-height wash, for pages whose content does not fill the viewport — an auth form on
   a bare white page has nothing behind it and the card stops looking like glass. */
.glass-section-tall {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}
/* The wash runs from the header band to the footer, so both meet it without a seam. */
.glass-section { padding-top: var(--space-8); padding-bottom: var(--space-10); }
.glass-section-tall { padding-top: 0; }

.glass-panel {
  background: var(--glass-bg-frost);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--glass-shadow-lg);
  padding: var(--space-6);
  position: relative;
}

/* ============================================================================
   NAVIGATION
   ========================================================================== */

.navbar-hub {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 20px rgba(3, 45, 96, 0.06);
}

/*
 * 80px plus the hairline, matching Dynamics Hub's 81px. The extra height is padding around
 * the same row, not a taller row: `min-height` on the container means a collapsed menu
 * still grows below it.
 *
 * The padding is zeroed explicitly, not only through `--bs-navbar-padding-y`: the rule above
 * used to add 0.85rem top and bottom on top of the 80px, and the bar measured 108px while
 * this comment said 80.
 */
.navbar-hub { --bs-navbar-padding-y: 0; padding-top: 0; padding-bottom: 0; }
.navbar-hub > .container { min-height: 80px; }
@media (max-width: 991.98px) {
  /* The bar has no padding of its own now, so the opened menu needs its own bottom edge —
     otherwise the last button sits flush against the hairline. */
  .navbar-hub .navbar-collapse { padding-bottom: 1rem; }
}

.navbar-hub .navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--primary-navy);
}

/*
 * The mark sits on a white tile with a hairline and a soft shadow, so it reads as one
 * object rather than a loose shape beside the wordmark — and so the navy half of the mark
 * keeps its edge on the footer's navy ground, where the same tile is reused.
 */
.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(3, 45, 96, 0.08);
}
.navbar-hub .navbar-brand .cloud {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-hub .navbar-nav {
  gap: 0.2rem;
}
@media (min-width: 992px) {
  .navbar-hub .navbar-nav.mx-lg-auto { gap: 0.35rem; }
}

/*
 * `.navbar-nav` is in the selector deliberately. Bootstrap sets the horizontal padding with
 * `.navbar-expand-lg .navbar-nav .nav-link`, three classes, so a two-class rule here loses
 * and the padding below is silently ignored — which is exactly what happened the first time
 * this was trimmed.
 */
.navbar-hub .navbar-nav .nav-link {
  color: var(--text-medium);
  font-weight: 500;
  /*
   * Tighter than the 0.8rem it was. Six dropdowns, a brand, a search and two buttons is a
   * lot for one bar, and the alternative to trimming this is collapsing to a hamburger at a
   * width where there is visibly room for a menu.
   */
  padding: 0.45rem 0.6rem;
  transition: var(--transition-fast);
  /*
   * Icon and label on ONE line.
   *
   * Without this the plain links — Home and About — wrapped their icon above the text and
   * stood 62px tall while every dropdown beside them was 38px, because a dropdown toggle
   * gets `display: flex` from Bootstrap and a plain link does not. The bar looked ragged and
   * nobody could see why.
   */
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  position: relative;
}
.navbar-hub .nav-link:hover {
  color: var(--primary-blue);
  text-decoration: none;
}
.navbar-hub .nav-link.active { color: var(--primary-blue); }

/*
 * The current section is UNDERLINED, not filled. A pill behind the active item competed
 * with the pill-shaped Sign Up button at the other end of the bar; an underline marks the
 * place without looking like something to press. Drawn as a pseudo-element so it sits
 * inside the link's own padding and moves nothing when it appears.
 */
.navbar-hub .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.navbar-hub .navbar-nav .nav-link.active::after { transform: scaleX(1); }
/* The account toggle is a menu, not a section of the site: it is never "where you are". */
.navbar-hub .navbar-nav .nav-link.d-flex::after { display: none; }

/*
 * AN OPEN MENU IS OPAQUE. This is the one place the frost is wrong.
 *
 * It was `--glass-bg-heavy` (white at 85%) with a blur behind it, which reads well over a
 * pale page and fails completely over the home hero: the h1 showed straight through the
 * panel and ran across the item labels. A blur cannot save it either — the menu opens over
 * whatever the page happens to be, so the only background that works everywhere is one that
 * lets nothing through.
 *
 * The border and the shadow stay; they are what separate the panel from a white page now
 * that translucency no longer does it.
 */
.navbar-hub .dropdown-menu {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-menu);
  padding: var(--space-3);
  min-width: 15rem;
}
.navbar-hub .dropdown-item {
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.navbar-hub .dropdown-item .bi { color: var(--primary-blue); }
.navbar-hub .dropdown-item:hover { background: rgba(1, 118, 211, 0.08); color: var(--primary-blue); }

.navbar-hub .avatar {
  border-radius: 50%;
  object-fit: cover;
}

/*
 * The account menu: a header card, a notifications preview, quick-link icons, a
 * role-specific section and a footer — wider than a plain dropdown, so it gets its own
 * width and internal spacing rather than stretching .dropdown-item everywhere.
 */
.account-menu {
  width: 22rem;
  max-width: calc(100vw - 2rem);
  max-height: min(34rem, calc(100vh - 6rem));
  overflow-y: auto;
  padding: var(--space-3) 0;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-blue) transparent;
}
/* Chrome/Edge/Safari — a visible right-hand scrollbar in the brand blue rather than the
   browser's default grey, so the panel reads as deliberately scrollable, not just cut off. */
.account-menu::-webkit-scrollbar { width: 8px; }
.account-menu::-webkit-scrollbar-track { background: transparent; }
.account-menu::-webkit-scrollbar-thumb {
  background-color: var(--primary-blue);
  border-radius: var(--radius-full);
}
.account-menu-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 var(--space-3) var(--space-3);
}
.account-menu-identity { min-width: 0; flex: 1 1 auto; }
.account-menu-name { font-weight: 700; color: var(--primary-navy); }
.account-menu-email {
  font-size: 0.8rem;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.account-menu-badges .badge-hub { font-size: 0.65rem; letter-spacing: 0.02em; }

.account-menu-notifications {
  padding: var(--space-3);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.account-menu-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}
.account-menu-notif-actions { font-size: 0.75rem; font-weight: 400; }
.account-menu-notif-actions a,
.account-menu-notif-actions .btn-link { color: var(--primary-blue); text-decoration: underline; font-size: 0.75rem; }
.account-menu-notif-empty {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0.5rem 0;
}
.account-menu-notif-empty i { display: block; font-size: 1.4rem; margin-bottom: 0.25rem; }
.account-menu-notif-item {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-dark);
}
.account-menu-notif-item:hover { background: rgba(1, 118, 211, 0.08); text-decoration: none; }
.account-menu-notif-item.is-unread { font-weight: 600; }

.account-menu-quicklinks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: var(--space-3);
  border-bottom: 1px solid var(--glass-border);
}
.account-menu-quicklinks a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-md);
  color: var(--text-medium);
  font-size: 0.75rem;
  text-align: center;
  position: relative;
}
.account-menu-quicklinks a i { font-size: 1.15rem; color: var(--primary-blue); }
.account-menu-quicklinks a:hover { background: rgba(1, 118, 211, 0.08); color: var(--primary-blue); text-decoration: none; }

.account-menu-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem var(--space-3);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  background: rgba(1, 118, 211, 0.1);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-blue-dark);
}
.account-menu-section-label i { font-size: 1rem; }

.account-menu-signout {
  width: 100%;
  text-align: left;
  color: #d1242f;
  border: none;
  background: none;
  margin-top: 0.25rem;
}
.account-menu-signout:hover { background: rgba(209, 36, 47, 0.08); color: #d1242f; }
.account-menu-signout i { color: inherit; }

.notif-dot {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  border-radius: var(--radius-full);
  background: var(--grad-rose);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(179, 54, 74, 0.35);
}

/* ============================================================================
   BUTTONS
   ========================================================================== */

.btn {
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.btn-sm { padding: var(--space-2) var(--space-4); font-size: 0.875rem; }

.btn-primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-md), 0 4px 14px rgba(1, 118, 211, 0.3);
  --bs-btn-focus-shadow-rgb: 1, 118, 211;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-normal);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 8px 25px rgba(1, 118, 211, 0.4);
  color: #fff;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

/* Bootstrap compiles outline buttons with hardcoded blue, so the global --bs-primary
   remap never reaches them. Re-point the per-button vars too, which also covers the
   :active and :focus states that a colour literal would miss. */
.btn-outline-primary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
  --bs-btn-color: #0176d3;
  --bs-btn-border-color: #0176d3;
  --bs-btn-hover-bg: #0176d3;
  --bs-btn-hover-border-color: #0176d3;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #0b5cab;
  --bs-btn-active-border-color: #0b5cab;
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 1, 118, 211;
}
.btn-outline-primary:hover { transform: translateY(-2px); }

.btn-navy {
  background: var(--navy-gradient);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-navy:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline-light:hover { transform: translateY(-2px); }

.btn-linkedin { background-color: #0077b5; border: 1px solid #0077b5; color: #fff; }
.btn-linkedin:hover, .btn-linkedin:focus { background-color: #005f91; border-color: #005f91; color: #fff; }

/* Focus is always visible. Removing the outline is never the fix for how it looks. */
:focus-visible { outline: 3px solid var(--primary-blue-light); outline-offset: 2px; }

/* ============================================================================
   HERO AND PAGE HEADERS
   ========================================================================== */

.hero {
  position: relative;
  background: var(--sky-gradient);
  color: var(--sky-text);
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mesh-gradient);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1, .hero h2, .hero h3 { color: var(--sky-text); }
.hero p { color: var(--sky-text-soft); }
.hero a:not(.btn) { color: var(--sky-text); text-decoration: underline; }

.page-header {
  position: relative;
  background: var(--sky-gradient);
  color: var(--sky-text);
  padding: var(--space-10) 0 var(--space-8);
  /* No bottom margin: the washed section that follows supplies the gap. A margin here
     leaves a bare white strip between the navy band and the wash. */
  margin-bottom: 0;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mesh-gradient);
  pointer-events: none;
}
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--sky-text); margin: 0; }
.page-header p { color: var(--sky-text-soft); margin: var(--space-2) 0 0; max-width: 62ch; }
.page-header a { color: var(--sky-text); text-decoration: underline; }

/*
 * THE HUB LANDING PAGES (Consultant Hub, Companies Hub).
 *
 * Dark, unlike the sky page header, because a hub is a landing page and was reported as
 * looking unfinished next to Dynamics Hub's: the heading sat in one band and its intro in
 * another. Heading, intro, the "free" line and both actions now live in one block.
 * White text on --hero-gradient: the lightest stop, #0b5cab, is 6.6:1.
 */
.hub-hero {
  position: relative;
  background: var(--hero-gradient);
  color: #fff;
  padding: var(--space-16) 0;
  overflow: hidden;
}
.hub-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(111, 211, 255, 0.18), transparent 45%);
  pointer-events: none;
}
.hub-hero > .container { position: relative; z-index: 1; }
.hub-hero h1 { color: #fff; margin-bottom: var(--space-4); }
.hub-hero .lead { color: rgba(255, 255, 255, 0.88); max-width: 40rem; }
.hub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
/* --primary-blue-bright is an accent on dark grounds only (DESIGN.md): 8.9:1 on navy. */
.hub-hero-free { color: var(--primary-blue-bright); font-weight: 600; margin: var(--space-3) 0 0; }
.hub-hero-free .bi { margin-right: 0.35rem; }

/* Sized to fill its half of the hero: at 300px it sat small against the right edge and
   left a wide empty band between it and the text. */
.hub-hero-art { position: relative; width: 400px; height: 400px; }
.hub-hero-glow {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 211, 255, 0.35), transparent 70%);
}
.hub-hero-tile {
  position: absolute;
  inset: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 24px 60px rgba(1, 32, 63, 0.45);
  animation: hub-float 6s ease-in-out infinite;
}
.hub-hero-tile img { width: 150px; height: 150px; }
.hub-hero-chip {
  position: absolute;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 12px 28px rgba(1, 32, 63, 0.4);
  animation: hub-float 6s ease-in-out infinite;
}
.hub-hero-chip.chip-a { top: 30px; left: 30px; animation-delay: -1.5s; }
.hub-hero-chip.chip-b { top: 64px; right: 14px; animation-delay: -3s; }
.hub-hero-chip.chip-c { bottom: 34px; left: 64px; animation-delay: -4.5s; }
/* Between the expand breakpoint and a wide screen the half-column is narrower than 400px. */
@media (max-width: 1199.98px) { .hub-hero-art { transform: scale(0.8); } }
@keyframes hub-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .hub-hero-tile, .hub-hero-chip { animation: none; }
}

/* The counts sit under the actions, separated by a hairline, as one row of figures. */
.hub-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin: var(--space-8) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hub-hero-stats a { color: #fff; text-decoration: none; display: flex; flex-direction: column; }
.hub-hero-stats a:hover span { text-decoration: underline; }
.hub-hero-stats strong { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.hub-hero-stats span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/*
 * The social rail: fixed to the left edge, vertically centred, on wide screens only — on a
 * phone it would sit on top of the content, and the footer row carries the same links.
 */
.social-rail { display: none; }
@media (min-width: 1200px) {
  .social-rail {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1020;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(3, 45, 96, 0.08);
    border-left: 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-menu);
  }
  .social-rail a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--primary-navy);
    font-size: 1.1rem;
    transition: var(--transition-fast);
  }
  .social-rail a:hover, .social-rail a:focus-visible { background: var(--primary-blue); color: #fff; }
}
@media (min-width: 1200px) { .social-rail-empty { border: 1px dashed rgba(3, 45, 96, 0.35); border-left: 0; } .social-rail-empty a { color: var(--primary-blue); } }
@media print { .social-rail { display: none !important; } }

/* A card that is a link says so: "Explore" with an arrow that moves on hover. */
.hub-tool { transition: var(--transition-fast); }
.hub-tool:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow-lg); }
.hub-tool-more { color: var(--primary-blue); font-weight: 600; font-size: 0.9rem; }
.hub-tool-more .bi { display: inline-block; transition: transform 0.2s ease; }
.hub-tool:hover .hub-tool-more .bi,
.hub-tool:focus-visible .hub-tool-more .bi { transform: translateX(4px); }

.hub-benefits { background: #fff; padding: var(--space-16) 0; }
.hub-benefits h2 { color: var(--primary-navy); }

.hub-closing {
  background: var(--navy-gradient);
  color: #fff;
  padding: var(--space-16) 0;
}
.hub-closing h2 { color: #fff; margin-bottom: var(--space-3); }
.hub-closing .lead { color: rgba(255, 255, 255, 0.88); max-width: 42rem; margin-bottom: var(--space-6); }
.hub-closing .btn-light { color: var(--primary-navy); font-weight: 600; }

@media (max-width: 767.98px) {
  .hub-hero, .hub-benefits, .hub-closing { padding: var(--space-10) 0; }
}

/*
 * The dropdown toggles' caret. Bootstrap draws it as `.dropdown-toggle::after`, which the
 * active-section underline above takes over, so the three hub menus looked like plain
 * links. The chevron is an element instead, and turns when its menu is open.
 */
.navbar-hub .nav-caret { font-size: 0.7rem; margin-left: 0.15rem; transition: transform 0.2s ease; }
.navbar-hub .dropdown-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  /* On the sky header. The darker blue, not --primary-blue: at this size the badge is small
     bold text, and --primary-blue on the near-white fill measured 4.14:1. */
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 161, 224, 0.35);
  color: var(--primary-blue-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-badge-light {
  background: rgba(1, 118, 211, 0.1);
  border-color: rgba(1, 118, 211, 0.2);
  color: var(--primary-blue);
}

.section-padding { padding: var(--space-12) 0; }

/* ============================================================================
   ICON MEDALLIONS
   ========================================================================== */

.icon-tile, .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  background: var(--grad-blue);
  border-radius: var(--radius-xl);
  box-shadow: 0 6px 16px rgba(1, 118, 211, 0.22);
}
.icon-circle { border-radius: var(--radius-full); }

.icon-tile-sm, .icon-circle-sm { width: 44px; height: 44px; font-size: 1.15rem; border-radius: var(--radius-lg); }
.icon-circle-sm { border-radius: var(--radius-full); }
.icon-tile-lg, .icon-circle-lg { width: 72px; height: 72px; font-size: 1.9rem; border-radius: var(--radius-2xl); }
.icon-circle-lg { border-radius: var(--radius-full); }

.icon-blue { background: var(--grad-blue); }
.icon-navy { background: var(--grad-navy); box-shadow: 0 6px 16px rgba(3, 45, 96, 0.25); }
.icon-navyblue { background: var(--grad-navyblue); box-shadow: 0 6px 16px rgba(3, 45, 96, 0.22); }
.icon-violet { background: var(--grad-violet); box-shadow: 0 6px 16px rgba(91, 106, 191, 0.25); }
.icon-amber { background: var(--grad-amber); box-shadow: 0 6px 16px rgba(201, 122, 0, 0.25); }
.icon-success { background: var(--grad-success); box-shadow: 0 6px 16px rgba(29, 111, 79, 0.25); }
.icon-info { background: var(--grad-info); box-shadow: 0 6px 16px rgba(10, 126, 164, 0.25); }
.icon-rose { background: var(--grad-rose); box-shadow: 0 6px 16px rgba(179, 54, 74, 0.25); }

/* ============================================================================
   STATS AND FEATURE TILES
   ========================================================================== */

.stat-tile {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  padding: var(--space-5);
  transition: var(--transition-glass);
}
.stat-tile:hover { box-shadow: var(--glass-shadow-lg); }
/* DESIGN.md: the lift is for a surface that is ITSELF a link. A static tile that moved
   under the cursor would promise an affordance that is not there — and one that does
   navigate has to say so before it is clicked. */
a.stat-tile:hover { transform: translateY(-4px); }
a.stat-tile:hover .value { color: var(--primary-blue); }
.stat-tile .value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--primary-navy);
}
.stat-tile .label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: var(--space-1);
}

/* ============================================================================
   BADGES
   ========================================================================== */

.badge-hub {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(3, 45, 96, 0.07);
  color: var(--text-medium);
  white-space: nowrap;
}
.badge-hub.cloud { background: rgba(1, 118, 211, 0.12); color: var(--primary-blue-dark); }
.badge-hub.ok { background: rgba(29, 111, 79, 0.12); color: #1d6f4f; }
.badge-hub.warn { background: rgba(201, 122, 0, 0.14); color: #96590a; }
.badge-hub.danger { background: rgba(179, 54, 74, 0.12); color: #9e2b3d; }
.badge-hub.muted { background: rgba(3, 45, 96, 0.06); color: var(--text-light); }

/*
 * A paid featured placement.
 *
 * Amber rather than a brand blue, and it carries the WORD "Featured" — a paid position
 * in a list has to be labelled as one, and a colour alone is neither a label nor
 * something a colour-blind reader can act on.
 */
.badge-hub.featured { background: rgba(201, 122, 0, 0.16); color: #8a5100; }

/*
 * The card of a featured job. A warm left edge and a slightly stronger shadow, so the
 * placement is visible while scanning without shouting over the content.
 */
.job-featured { border-left: 3px solid rgba(201, 122, 0, 0.55); }
.job-featured:hover { border-left-color: rgba(201, 122, 0, 0.85); }

/* Work-mode pills, mirroring the reference's .job-badge family. */
.job-badge { display: inline-block; padding: 0.25rem 0.7rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-remote { background: rgba(1, 118, 211, 0.12); color: var(--primary-blue-dark); }
.badge-hybrid { background: rgba(91, 106, 191, 0.14); color: #4a58a8; }
.badge-onsite { background: rgba(201, 122, 0, 0.14); color: #96590a; }

/* Pipeline stages. Colour is never the only signal — the stage name is in the pill. */
.status-submitted { background: rgba(3, 45, 96, 0.08); color: var(--text-medium); }
.status-reviewing { background: rgba(1, 118, 211, 0.12); color: var(--primary-blue-dark); }
.status-shortlisted { background: rgba(10, 126, 164, 0.14); color: #0a7ea4; }
.status-interviewing { background: rgba(201, 122, 0, 0.14); color: #96590a; }
.status-offered { background: rgba(91, 106, 191, 0.14); color: #4a58a8; }
.status-hired { background: rgba(29, 111, 79, 0.14); color: #1d6f4f; }
.status-rejected { background: rgba(179, 54, 74, 0.12); color: #9e2b3d; }
.status-withdrawn { background: rgba(3, 45, 96, 0.06); color: var(--text-light); }

/* ============================================================================
   FORMS
   ========================================================================== */

.form-label { font-weight: 600; font-size: 0.875rem; color: var(--text-dark); margin-bottom: var(--space-2); }

.form-control, .form-select {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 0.6rem 0.9rem;
  font-size: 0.925rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}
.form-control:focus, .form-select:focus {
  background: #fff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(1, 118, 211, 0.15);
}
.form-control::placeholder { color: var(--text-muted); }
.form-text { color: var(--text-light); font-size: 0.8rem; }

.form-check-input:checked { background-color: var(--primary-blue); border-color: var(--primary-blue); }
.form-check-input:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 4px rgba(1, 118, 211, 0.15); }

.input-group-text { background: rgba(255, 255, 255, 0.6); border-color: var(--border-color); border-radius: var(--radius-xl); }

/* ============================================================================
   TABLES, LISTS, ACCORDION, ALERTS, PAGINATION
   ========================================================================== */

.table { --bs-table-bg: transparent; color: var(--text-medium); }
.table > thead { color: var(--primary-navy); }
.table > :not(caption) > * > * { border-bottom-color: var(--border-color); }
.table-hover > tbody > tr:hover > * { background-color: rgba(1, 118, 211, 0.04); }

.list-group-item { background: transparent; border-color: var(--border-color); }

.accordion-item { background: transparent; border-color: var(--border-color); }
.accordion-button { background: transparent; color: var(--primary-navy); font-weight: 600; }
.accordion-button:not(.collapsed) { background: rgba(1, 118, 211, 0.06); color: var(--primary-blue-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 4px rgba(1, 118, 211, 0.15); }

.alert {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
}

.page-link { color: var(--primary-blue); border-radius: var(--radius-md); border-color: var(--border-color); }
.page-item.active .page-link { background: var(--accent-gradient); border-color: transparent; }

.nav-pills .nav-link { color: var(--text-medium); border-radius: var(--radius-full); font-weight: 600; }
.nav-pills .nav-link:hover { background: rgba(1, 118, 211, 0.08); color: var(--primary-blue); }
.nav-pills .nav-link.active { background: var(--accent-gradient); color: #fff; }

/* ============================================================================
   AVATARS AND LOGOS
   ========================================================================== */

.avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}
.avatar-lg { width: 96px; height: 96px; }

.logo-tile {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--glass-border);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

/* ============================================================================
   DOMAIN COMPONENTS
   ========================================================================== */

.rate-figure {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-navy);
}
.suppressed { color: var(--text-light); font-style: italic; font-weight: 500; }

/* A suppressed trend point is a GAP, never a zero. The bar is simply not drawn —
   the hatch marks the absence so it cannot be mistaken for a low value. */
.trend { display: flex; align-items: flex-end; gap: 4px; height: 96px; }
.trend .bar { flex: 1; background: var(--accent-gradient); border-radius: var(--radius-sm) var(--radius-sm) 0 0; min-height: 3px; }
.trend .bar.gap {
  background: repeating-linear-gradient(45deg, rgba(3, 45, 96, 0.1), rgba(3, 45, 96, 0.1) 3px, transparent 3px, transparent 7px);
  border: 1px dashed rgba(3, 45, 96, 0.15);
}
.trend-labels { display: flex; gap: 4px; font-size: 10px; color: var(--text-light); }
.trend-labels span { flex: 1; text-align: center; }

.meter { height: 10px; background: rgba(3, 45, 96, 0.08); border-radius: var(--radius-full); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent-gradient); border-radius: var(--radius-full); transition: width var(--transition-glass); }
.meter.ready > i { background: var(--grad-success); }

.match-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary-navy);
  background: conic-gradient(var(--primary-blue-light) calc(var(--pct) * 1%), rgba(3, 45, 96, 0.1) 0);
  position: relative;
}
.match-ring::after { content: ''; position: absolute; inset: 5px; border-radius: var(--radius-full); background: #fff; }
.match-ring span { position: relative; z-index: 1; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border-color); }
.timeline li { position: relative; padding: 0 0 var(--space-5) var(--space-5); }
.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(1, 118, 211, 0.15);
}

/*
 * The board's sidebar (filters and the CV box) is ONE sticky block, and the page is its only
 * scroll. The panel used to scroll inside itself, with the role and country lists scrolling
 * inside that — a scroll in a scroll in a scroll, which a trackpad hands from one to the next
 * unpredictably. Now only the two long lists scroll.
 *
 * A sidebar taller than the window cannot simply stick at the top, or its bottom is never
 * reachable. main.js sets `top` to (window height − sidebar height) in that case, so the
 * sidebar scrolls with the page until its bottom is in view and then holds there — the
 * column never empties out as the list goes on.
 */
.filter-panel { padding: 0; }
.filter-panel-body { padding: var(--space-5); }
@media (min-width: 992px) {
  .job-sidebar { position: sticky; top: calc(81px + var(--space-4)); }
}
.filter-panel-actions {
  padding: 0 var(--space-5) var(--space-5);
}
.filter-check-hidden { display: none; }
.filter-count { color: var(--text-light); }
.form-check.is-empty .form-check-label { color: var(--text-muted); }
.form-check.is-empty .filter-count { color: var(--text-muted); }
.filter-disclosure > summary { list-style: none; }
.filter-disclosure > summary::-webkit-details-marker { display: none; }
@media (min-width: 992px) { .filter-disclosure > summary { display: none; } }
.filter-group { border: 0; padding: 0; margin: 0 0 var(--space-4); }
.filter-group legend {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: var(--space-2);
  float: none;
  width: auto;
}
.filter-group .form-check-label { font-size: 0.875rem; }
.filter-scroll { max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; padding-right: 0.25rem; }
.filter-scroll-sm { max-height: 11rem; }
.filter-subhead {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: var(--space-2) 0 var(--space-1, 0.25rem);
}
.filter-subgroup:first-child .filter-subhead { margin-top: 0; }

/* The board's search box: big, first, and with its icon inside the field. */
.job-search-field { position: relative; }
.job-search-field .bi {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}
.job-search-field .form-control { padding-left: 2.6rem; }
.popular-roles .badge-hub.is-active { background: var(--primary-blue); color: #fff; }

/*
 * THE CONSULTANT PROFILE PAGE.
 *
 * Without scripting the sections are one long page and the tab bar is a contents bar of
 * anchors. With scripting (`.profile-tabs-ready`, set by main.js) only the active section
 * shows. The save bar sticks to the bottom of the window so Save is never a scroll away.
 */
.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(3, 45, 96, 0.1);
  border-radius: var(--radius-xl);
}
/* On a wide screen the sections are a sticky menu down the left, as the spec asks. */
@media (min-width: 992px) {
  .profile-tabs {
    flex-direction: column;
    flex-wrap: nowrap;
    position: sticky;
    top: calc(81px + 1rem);
    padding: 0.5rem;
  }
  .profile-tab { width: 100%; }
}
.profile-tab-preview { border-top: 1px solid rgba(3, 45, 96, 0.08); border-radius: 0 0 var(--radius-lg) var(--radius-lg); margin-top: 0.25rem; }
.profile-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-lg);
  color: var(--text-medium);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.profile-tab:hover { background: rgba(1, 118, 211, 0.08); color: var(--primary-blue-dark); text-decoration: none; }
.profile-tab.is-active:hover { background: var(--primary-blue); color: #fff; }
.profile-tab.is-active { background: var(--primary-blue); color: #fff; }
.profile-tab .tab-done { color: #1d6f4f; }
.profile-tab.is-active .tab-done { color: #fff; }
.profile-tabs-ready .profile-section:not(.is-active) { display: none; }
body[data-active-tab="account"] .profile-savebar { display: none; }
.profile-section { scroll-margin-top: calc(81px + 4.5rem); }

.profile-savebar {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid rgba(3, 45, 96, 0.12);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -8px 24px rgba(3, 45, 96, 0.08);
}
.profile-savebar .is-dirty { color: #8a5300; font-weight: 600; }

@media (max-width: 767.98px) {
  /* On a phone: one row of tabs that scrolls sideways, not sticky, and a two-button save bar —
     together they were taking half the screen. */
  .profile-tabs { position: static; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tab { white-space: nowrap; }
  .profile-savebar { padding: 0.5rem; gap: 0.4rem; }
  .profile-savebar [data-unsaved-note]:not(.is-dirty) { display: none; }
  .profile-savebar .btn { flex: 1 1 0; padding: 0.45rem 0.5rem; font-size: 0.9rem; }
}

.req { color: #a8323f; font-weight: 700; }
.text-warning-strong { color: #8a5300; font-weight: 600; }
.profile-section#account > .h5 { margin-left: 0.25rem; }
.setup-consultant { border-left: 4px solid var(--primary-blue); }

/* Projects and experience: a handle to drag, and an Edit disclosure under each entry. */
.entry-item { border-top: 1px solid rgba(3, 45, 96, 0.08); padding: 0.6rem 0; background: transparent; }
.entry-item.is-dragging { opacity: 0.45; }
.entry-item.is-drop-target { box-shadow: inset 0 2px 0 var(--primary-blue); }
.entry-handle { cursor: grab; color: var(--text-light); padding: 0 0.15rem; }
.entry-actions .btn-link { color: var(--text-medium); }
.entry-actions .btn-link:disabled { opacity: 0.3; }
.entry-edit > summary { cursor: pointer; color: var(--primary-blue); margin: 0.25rem 0 0 1.4rem; width: fit-content; }
.entry-add > summary { list-style: none; width: fit-content; }
.entry-add > summary::-webkit-details-marker, .entry-edit > summary::-webkit-details-marker { display: none; }
.entry-add[open] > summary { display: none; }

.privacy-row { padding: 0 0 var(--space-4); margin-bottom: var(--space-4); border-bottom: 1px solid rgba(3, 45, 96, 0.08); }
.privacy-row .form-text, .privacy-row p { margin-top: 0.35rem; }
.whats-next { padding-left: 1.2rem; margin: 0; }
.whats-next li { margin-bottom: 0.35rem; }

/* The filters in force, above the list. Each chip is a link that removes its one value. */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem 0.3rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(1, 118, 211, 0.35);
  color: var(--primary-navy);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}
.filter-chip .bi { font-size: 0.7rem; color: var(--text-light); }
.filter-chip:hover, .filter-chip:focus-visible { border-color: var(--primary-blue); color: var(--primary-blue-dark); }
.filter-chip:hover .bi { color: var(--primary-blue-dark); }

/*
 * While the next filtered list loads, the current one fades and a thin bar runs along its
 * top — so a click visibly did something before the new page arrives. Purely a cue: the
 * navigation is a normal page load, and the class is gone the moment it lands.
 */
.job-results { position: relative; transition: opacity 0.2s ease; }
.job-results.is-loading { opacity: 0.45; pointer-events: none; }
.job-results.is-loading::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  height: 3px;
  width: 35%;
  border-radius: 3px;
  background: var(--primary-blue);
  animation: results-loading 1s ease-in-out infinite;
}
@keyframes results-loading { 0% { left: 0; width: 15%; } 50% { left: 40%; width: 45%; } 100% { left: 100%; width: 0; } }
@media (prefers-reduced-motion: reduce) {
  .job-results { transition: none; }
  .job-results.is-loading::before { animation: none; width: 100%; }
}

/* Job cards. The title link is stretched over the card; the save control sits above it. */
.job-card { position: relative; transition: var(--transition-fast); }
.job-card:hover { box-shadow: var(--glass-shadow-lg); transform: translateY(-2px); }
.job-card-side { position: relative; z-index: 2; }
.job-card-snippet {
  color: var(--text-medium);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.logo-initials {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
/* Six solid tones, each 4.5:1 or better behind white (measured with utils/contrast.js). */
.logo-initials.tone-1 { background: #032d60; }
.logo-initials.tone-2 { background: #0176d3; }
.logo-initials.tone-3 { background: #1d6f4f; }
.logo-initials.tone-4 { background: #4b5aa8; }
.logo-initials.tone-5 { background: #a8323f; }
.logo-initials.tone-6 { background: #8a5300; }
.match-badge { background: #1d6f4f; color: #fff; font-weight: 700; }
.btn-save {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(3, 45, 96, 0.15);
  border-radius: 50%;
  background: #fff;
  color: var(--primary-navy);
  font-size: 1rem;
  padding: 0;
  transition: var(--transition-fast);
}
.btn-save:hover, .btn-save:focus-visible { border-color: var(--primary-blue); color: var(--primary-blue); }
.btn-save.is-saved { background: var(--primary-blue); border-color: var(--primary-blue); color: #fff; }
.job-save { margin: 0; }
.filter-panel h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); font-weight: 700; }

/* Empty states: an icon, one line, one action. Never a braggy zero. */
.empty-state { text-align: center; padding: var(--space-12) var(--space-4); color: var(--text-light); }
.empty-state .bi { font-size: 2.75rem; color: var(--text-muted); display: block; margin-bottom: var(--space-3); }

/* ============================================================================
   FOOTER
   ========================================================================== */

.footer-hub {
  position: relative;
  /*
   * Bluer than the navy it was, to sit under the sky pages, but it starts from #0b5cab and
   * not from the CTA blue: the links are small text, and on #0176d3 they measured 3.28:1.
   * Here they are 5.33:1 at the top of the footer and higher as it darkens.
   */
  background: linear-gradient(180deg, var(--primary-navy-light) 0%, var(--primary-navy) 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-12) 0 var(--space-6);
  /* No top margin. Every page ends in a padded section, and a margin here leaves a bare
     white seam between the washed content and the footer. */
  margin-top: 0;
  overflow: hidden;
}
.footer-hub::after { content: ''; position: absolute; inset: 0; background: var(--mesh-gradient); pointer-events: none; opacity: 0.6; }
.footer-hub > .container { position: relative; z-index: 1; }
/* The accent rule along the top edge: where the page ends and the footer begins. */
.footer-hub::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
  z-index: 2;
}
.footer-hub h3 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
/* A short rule under each column heading, so a column reads as a group from a distance. */
.footer-grid h3::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: var(--primary-blue-light);
}
.footer-hub .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-3);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}
.footer-hub .footer-logo:hover { color: #fff; text-decoration: none; }
.footer-disclaimer { color: rgba(255, 255, 255, 0.75); } /* the bluer footer needs more than .55 to clear 4.5:1 */
.footer-hub a { color: rgba(255, 255, 255, 0.85); }
.footer-hub a:hover { color: #fff; }

/* The owner's actions belong to the card above them, which carries its own bottom
   margin — without this they read as a detached row between two cards. */
.job-card-actions { margin-top: -0.5rem; }

/* ============================================================================
   THE APPLICANT BOARD
   ==========================================================================

   Eight stages side by side. It SCROLLS sideways rather than shrinking each column
   towards nothing: a name and a role title need a readable width, and eight columns
   squeezed into a phone is eight columns nobody can read. Each column keeps its own
   minimum and the row carries the overflow.

   There is no drag and drop, and that is deliberate rather than unfinished. A move
   between stages is a declared transition that writes an audit event and notifies the
   other party in one transaction, on the application's own page. A board that moved rows
   itself would be a second write path into the same table. */
.applicant-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(13.5rem, 1fr);
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-3);
}

.applicant-column {
  min-width: 0;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

/* The cards are links, so they get the same lift a linked card gets everywhere else. */
.applicant-card { transition: var(--transition-fast); }
.applicant-card:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow-lg); }

@media (max-width: 767.98px) {
  /* One column at a time on a phone: a sideways scroll containing a sideways scroll is
     a thing nobody can operate. */
  .applicant-board { grid-auto-flow: row; grid-auto-columns: auto; overflow-x: visible; }
}

/*
 * SEVEN COLUMNS, AND NOT A 12-COLUMN GRID.
 *
 * The footer carries the brand plus one column per menu group, which is seven — a number
 * the Bootstrap grid cannot divide, so `col-lg-2` six times leaves the brand a column of
 * the same width as "Legal". A named grid says what the layout is: the brand gets the wide
 * track and the six link columns share the rest evenly.
 */
.footer-grid {
  display: grid;
  gap: var(--space-4) var(--space-4);
  grid-template-columns: 1fr;
}
.footer-grid h3 { margin-bottom: var(--space-3); }
.footer-grid li + li { margin-top: 0.35rem; }

@media (min-width: 576px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  /*
   * All seven on one row, and not before 1400px: inside the 1140px container that Bootstrap
   * gives the range below it, a seventh track is narrow enough to wrap "Consultant Hub"
   * across two lines while the column beside it has room to spare.
   *
   * The brand track is wider because it holds a sentence, not a list of two-word links.
   */
  .footer-grid { grid-template-columns: 1.7fr repeat(6, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}

/* ============================================================================
   MOTION
   ========================================================================== */

/* Scroll reveal. Above-the-fold content renders instantly — do not add a second
   reveal system, and never a full-screen page loader: it makes a 25ms server feel slow. */
/* The hidden start state is gated behind .js-reveal, which only JavaScript sets. With
   scripting off the content is simply visible — an animation must never be the reason
   someone cannot read the page. */
.js-reveal .animate-on-scroll { opacity: 0; transform: translateY(16px); transition: opacity 0.35s ease, transform 0.35s ease; }
.js-reveal .animate-on-scroll.is-visible { opacity: 1; transform: none; }

@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fade-up 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) both; }

/* ============================================================================
   RESPONSIVE — Bootstrap's .98 breakpoints, never integer max-widths
   ========================================================================== */

@media (max-width: 991.98px) {
  .filter-panel { position: static; margin-bottom: var(--space-4); }
}

@media (max-width: 767.98px) {
  /* The scale steps down IN FULL, so hierarchy can never invert. */
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.875rem; }

  .hero { padding: var(--space-10) 0 var(--space-8); }
  .page-header { padding: var(--space-8) 0 var(--space-6); }
  .section-padding { padding: var(--space-8) 0; }
  .glass-panel { padding: var(--space-4); border-radius: var(--radius-2xl); }
  .stat-tile .value { font-size: 1.5rem; }
}

@media (max-width: 575.98px) {
  .glass-card > .card-body { padding: var(--space-4); }
  .btn { padding: var(--space-2) var(--space-4); }
}

/* ============================================================================
   ACCESSIBILITY AND OUTPUT MODES
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal .animate-on-scroll { opacity: 1; transform: none; }
}

/* Frosted glass over a busy background can drop effective contrast. In forced-colours
   and high-contrast modes the blur is dropped for a solid surface. */
@media (prefers-contrast: more), (forced-colors: active) {
  .glass, .glass-card, .glass-panel, .stat-tile, .navbar-hub {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: var(--text-medium);
  }
  body { background-image: none; }
}

@media print {
  body { background: #fff; background-image: none; }
  .navbar-hub, .footer-hub, .btn, .skip-link { display: none !important; }
  .glass-card, .glass-panel, .stat-tile { box-shadow: none; border: 1px solid #ccc; backdrop-filter: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}

/* A browser without backdrop-filter would render the frost as flat translucency,
   which loses the separation between card and background. Give it a solid surface. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-card, .glass-panel, .stat-tile, .navbar-hub { background: rgba(255, 255, 255, 0.97); }
}

/* ============================================================================
   MESSAGE BUBBLES
   ========================================================================== */

/* These were inline styles carrying brand colours, which the design rules forbid —
   a token can then be renamed without silently leaving a dead `var()` behind. */
.msg-bubble {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-2xl);
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(3, 45, 96, 0.06);
  color: var(--text-dark);
}
.msg-bubble-mine {
  background: rgba(1, 118, 211, 0.12);
  color: var(--primary-navy);
}
.msg-column { max-width: 78%; }

/* ============================================================================
   FOOTER DETAILS
   ========================================================================== */

.footer-rule { border-color: rgba(255, 255, 255, 0.15); }
.footer-blurb { max-width: 38ch; }
/* The wordmark's accent half, on a dark ground where the gradient would disappear. */
.brand-accent { color: var(--primary-blue-bright); }

/* ============================================================================
   INVOICE
   ==========================================================================

   An invoice is a document before it is a page: people print it and file it. The
   print rules strip the chrome rather than opening a second, drifting "printable
   version" template — one source for the figures, here as everywhere else.
 */
.invoice-sheet { max-width: 46rem; margin: 0 auto; }
.invoice-sheet .invoice-total { font-size: 1.5rem; font-weight: 700; color: var(--primary-blue-dark); }
.invoice-meta dt { font-weight: 600; color: var(--text-medium); }
.invoice-meta dd { margin-bottom: var(--space-2); }

@media print {
  .navbar-hub, .footer-hub, .page-header, .skip-link, .no-print { display: none !important; }
  .glass-section, body { background: #fff !important; }
  .invoice-sheet { max-width: none; }
  .glass-card { border: 1px solid #ccc !important; box-shadow: none !important; backdrop-filter: none !important; }
}

/* ============================================================================
   NAVIGATION SEARCH
   ==========================================================================

   A <details> disclosure: the browser owns the open/closed state, so a filled circular
   toggle opens a small card underneath it with no JavaScript required. The old
   inline-expanding input is gone — this is what actually matches the reference layout,
   not an approximation of it.
 */
.nav-search { position: relative; }
.nav-search summary {
  list-style: none;
  cursor: pointer;
}
.nav-search summary::-webkit-details-marker { display: none; }
.nav-search summary::marker { content: ''; }

.nav-search-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.nav-search-toggle:hover,
.nav-search[open] .nav-search-toggle {
  background: var(--primary-blue-dark);
}

.nav-search-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 18rem;
  max-width: calc(100vw - 2rem);
  /* Opaque for the same reason `.navbar-hub .dropdown-menu` is: it opens over the home
     hero, and a translucent panel let the h1 read straight through the field. */
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-lg);
  padding: var(--space-3);
  z-index: 1050;
}
.nav-search-panel .form-control {
  background: #fff;
  border-color: rgba(1, 118, 211, 0.25);
  color: var(--text-dark);
}
.nav-search-panel .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(1, 118, 211, 0.15);
}
.nav-search-hint {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--text-light);
}

@media (max-width: 991.98px) {
  .nav-search-panel { position: static; width: 100%; margin-top: 0.5rem; box-shadow: none; }
}

/*
 * The auth buttons, as a matched pair that never wraps.
 *
 * "Sign in" and "Join free" were breaking onto two lines at 1377px — a text link beside a
 * filled button, each sized differently, in a bar with no room left. Two pills of the same
 * shape read as one control pair and `nowrap` keeps each on its own line whatever the width.
 */
.navbar-hub .btn-auth {
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

@media (max-width: 991.98px) {
  /* Collapsed, each item is a full-width row, and an underline that wide reads as a
     divider rather than a marker. A short bar on the left edge says "you are here". */
  .navbar-hub .navbar-nav .nav-link { padding-left: 0.75rem; }
  .navbar-hub .navbar-nav .nav-link::after {
    left: 0;
    right: auto;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3px;
    height: auto;
    transform: scaleY(0);
  }
  .navbar-hub .navbar-nav .nav-link.active::after { transform: scaleY(1); }

}

/*
 * THE NARROW END OF THE EXPANDED BAR.
 *
 * The menu expanded at 1200px, and at exactly 1200px it did not fit: brand, six items, the
 * search and two buttons measured 1196px inside a 1140px container, so "Sign up" hung off
 * the right edge. Collapsing to a hamburger instead would hide a menu at a width where a
 * laptop plainly has room for one.
 *
 * It now expands at 992px, as SAP Hub's does — until then everything from 992 to 1199px,
 * which is most small laptops and a landscape tablet, got only the hamburger. Bootstrap's
 * container there is 960px, 180px less than the bar was measured against, so that range has
 * a second, tighter band below.
 *
 * So the band between the expand breakpoint and a comfortable width trims what costs
 * nothing to read: the padding around each item and a little off the wordmark. Nothing is
 * hidden and nothing moves.
 */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .navbar-hub .navbar-brand { font-size: 1.15rem; }
  .navbar-hub .navbar-nav .nav-link { padding: 0.45rem 0.4rem; gap: 0.3rem; }
  .navbar-hub .navbar-nav .nav-link::after { left: 0.4rem; right: 0.4rem; }
  .navbar-hub .btn-auth { padding: 0.4rem 0.9rem; }

  /*
   * Signed in, the account name is the widest thing in the bar and it was the piece that
   * overflowed at 1200px — the avatar beside it already identifies the account. It is
   * CLIPPED rather than `display: none`, so the link keeps an accessible name; a bare avatar
   * with an empty alt announces as nothing at all.
   */
  .nav-user-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/*
 * 992px to 1199px: the 960px container. Measured signed out at 992px with only the band
 * above, the bar was 41px too wide and "Sign Up" hung off the edge exactly as it once did at
 * 1200px. The cuts are the same kind — a slightly smaller label, less padding round each
 * item, a smaller wordmark, a closer search button — and again nothing is hidden: every item
 * keeps its icon and its full label, because a menu that drops words to fit is a different
 * menu at every width.
 */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-hub .navbar-brand { font-size: 1.05rem; margin-right: 0.5rem; }
  .navbar-hub .navbar-nav .nav-link { padding: 0.45rem 0.3rem; gap: 0.25rem; font-size: 0.875rem; }
  .navbar-hub .navbar-nav .nav-link::after { left: 0.3rem; right: 0.3rem; }
  .navbar-hub .nav-search { margin-right: 0.5rem !important; }
  .navbar-hub .btn-auth { padding: 0.35rem 0.75rem; font-size: 0.875rem; }
}

/* ============================================================================
   SITE NOTICE
   ==========================================================================

   The operational banner. Amber, in the flow of the document rather than fixed, and it
   carries an icon AND words — a coloured bar with no label is decoration, not a notice.
 */
.site-notice {
  background: rgba(201, 122, 0, 0.14);
  color: #8a5100;
  border-bottom: 1px solid rgba(201, 122, 0, 0.3);
  padding: var(--space-2) 0;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ============================================================================
   ASSISTANT WIDGET
   ==========================================================================

   A floating launcher bottom-right and a panel above it. Present on every page when
   an API key is configured, and absent from the markup entirely when one is not.

   The panel is a plain element toggled with `hidden`, not a Bootstrap offcanvas: it has
   to sit above page content without trapping focus or locking the body's scroll, because
   people ask it where to go while reading the page behind it.
 */

.sf-assistant { position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 1045; }

.sf-assistant-teaser {
  position: absolute;
  right: 0;
  bottom: 5.5rem;
  width: 14.5rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-lg);
  padding: 0.7rem 1.9rem 0.7rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-dark);
  cursor: pointer;
}
.sf-assistant-teaser strong { color: var(--primary-navy); }
.sf-assistant-teaser-close {
  position: absolute; top: 4px; right: 4px; border: 0; background: transparent;
  color: var(--text-light); font-size: 1rem; line-height: 1; padding: 0.15rem;
}

.sf-assistant-launcher {
  /* The mascot is the button: transparent, so the robot's own outline is the shape. */
  width: 68px;
  height: 78px;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: var(--transition-normal);
}
.sf-assistant-launcher-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(3, 45, 96, 0.45)) drop-shadow(0 0 12px rgba(1, 118, 211, 0.35));
}
.sf-assistant-launcher:hover,
.sf-assistant-launcher:focus-visible { transform: translateY(-3px) scale(1.04); }

/* The label says "AI" in words, not by implication. A floating orb that turns out to be
   a language model is a small dishonesty people notice. */
.sf-assistant-launcher-tag {
  position: absolute;
  right: -0.25rem;
  bottom: -0.25rem;
  background: #fff;
  color: var(--primary-blue-dark);
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  box-shadow: var(--glass-shadow);
}

.sf-assistant-panel {
  position: absolute;
  right: 0;
  bottom: 5.25rem;
  width: min(22rem, calc(100vw - 2 * var(--space-5)));
  max-height: min(32rem, calc(100vh - 8rem));
  display: flex;
  flex-direction: column;
  /* Opaque, not glass: text over a translucent panel sitting on arbitrary page
     content is the one place the design system's wash costs legibility. */
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-lg);
  overflow: hidden;
}

.sf-assistant-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color);
}
.sf-assistant-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-navy); object-fit: cover; flex-shrink: 0; }
.sf-assistant-sub { font-weight: 500; font-size: 0.78rem; color: var(--text-light); }
.sf-assistant-title { font-weight: 600; flex-grow: 1; display: flex; align-items: center; gap: var(--space-2); }
.sf-assistant-close { border: 0; background: transparent; color: var(--text-light); line-height: 1; }
.sf-assistant-close:hover { color: var(--text-dark); }

.sf-assistant-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sf-assistant-msg {
  max-width: 90%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  /* The model emits newlines and they carry meaning; the renderer inserts real text
     nodes rather than <br>, so the whitespace has to survive. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sf-assistant-msg-assistant { align-self: flex-start; background: rgba(3, 45, 96, 0.06); color: var(--text-dark); }
.sf-assistant-msg-user { align-self: flex-end; background: var(--primary-blue); color: #fff; }
.sf-assistant-link { color: var(--primary-blue-dark); text-decoration: underline; }
.sf-assistant-msg-user .sf-assistant-link { color: #fff; }

.sf-assistant-typing { display: inline-flex; gap: 0.25rem; align-items: center; }
.sf-assistant-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: var(--radius-full);
  background: var(--text-light);
  animation: sf-assistant-bounce 1.2s infinite ease-in-out;
}
.sf-assistant-dot:nth-child(2) { animation-delay: 0.15s; }
.sf-assistant-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes sf-assistant-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-0.25rem); opacity: 1; }
}
/* Never let an animation be the reason something cannot be read or understood. */
@media (prefers-reduced-motion: reduce) {
  .sf-assistant-dot { animation: none; opacity: 0.7; }
  .sf-assistant-launcher { transition: none; }
}

.sf-assistant-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-4) var(--space-2); }
.sf-assistant-chip {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-medium);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
}
.sf-assistant-chip:hover { border-color: var(--primary-blue); color: var(--primary-blue-dark); }

.sf-assistant-form { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-2); }
.sf-assistant-input {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}
.sf-assistant-input:focus { outline: 2px solid var(--primary-blue); outline-offset: 1px; }
.sf-assistant-send {
  border: 0;
  border-radius: var(--radius-full);
  width: 2.25rem;
  height: 2.25rem;
  background: var(--grad-blue);
  color: #fff;
  flex-shrink: 0;
}

.sf-assistant-footnote {
  margin: 0;
  padding: 0 var(--space-4) var(--space-3);
  font-size: 0.7rem;
  color: var(--text-light);
}

@media (max-width: 575.98px) {
  .sf-assistant { right: var(--space-3); bottom: var(--space-3); }
  .sf-assistant-panel { width: calc(100vw - 2 * var(--space-3)); bottom: 4.5rem; }
  /* Smaller on a phone, so the robot does not sit over a form's last button. */
  .sf-assistant-launcher { width: 56px; height: 64px; }
}

@media print {
  .sf-assistant { display: none !important; }
}

/* The S-cube mark beside the wordmark. Fixed box so the navbar cannot reflow while the SVG
   loads — a brand that jumps on every page load is the first thing people notice. */
.navbar-hub .navbar-brand .brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: block;
}

/* ============================================================================
   ROLE CARDS — the "I am" question on the sign-up form
   ==========================================================================*/

/*
 * Big targets instead of a column of 13px checkboxes. The first question on the form is
 * the one people misread, and a card is both easier to hit on a phone and easier to scan.
 *
 * THE INPUT IS STILL THE CONTROL. It is moved out of sight with `opacity: 0`, NOT with
 * `display: none` or `visibility: hidden` — either of those drops it from the tab order and
 * from the accessibility tree, which would make this keyboard-unusable and invisible to a
 * screen reader. The label is its face, tied by `for`, so a click or a space bar both work
 * and the page needs no JavaScript at all.
 */
.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.role-card {
  position: relative;
}

.role-card-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.role-card-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 1.1rem 0.75rem;
  height: 100%;
  border: 2px solid var(--border-color, rgba(3, 45, 96, 0.14));
  border-radius: var(--radius-md, 12px);
  background: var(--glass-bg-light, rgba(255, 255, 255, 0.5));
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.role-card-face i {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.role-card-title {
  font-weight: 600;
  color: var(--primary-navy);
}

.role-card-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.3;
}

.role-card-input:hover + .role-card-face {
  border-color: var(--primary-blue);
}

.role-card-input:checked + .role-card-face {
  border-color: var(--primary-blue);
  background: var(--glass-bg-tinted, rgba(1, 118, 211, 0.08));
}

/*
 * The focus ring is on the FACE, driven by focus on the hidden input — otherwise a keyboard
 * user tabbing through sees nothing move. `:focus-visible` rather than `:focus` so it does
 * not appear on a mouse click.
 */
.role-card-input:focus-visible + .role-card-face {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/*
 * A tick in the corner of a chosen card.
 *
 * Colour alone must not carry the answer: somebody who cannot distinguish the tinted
 * background from the plain one still needs to see which cards are selected.
 */
.role-card-input:checked + .role-card-face::after {
  content: '\f26e'; /* bi-check-lg */
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  font-size: 0.95rem;
  color: var(--primary-blue);
}

@media (prefers-reduced-motion: reduce) {
  .role-card-face { transition: none; }
}

/* The show/hide control public/js/main.js adds to a password field. */
.password-field { position: relative; }

.password-field .form-control { padding-right: 2.75rem; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-light);
  padding: 0.35rem 0.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

.password-toggle:hover { color: var(--primary-blue); }

.password-toggle:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 1px;
}

/* ============================================================================
   ADMIN ANALYTICS, THE ANALYTICS CONSENT BAR, SALES AGENTS (ported from SAP Hub)
   ========================================================================== */

/* A headline figure on the analytics and sales-agent screens. */
.stat-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--primary-navy); }

/* The ranked lists on the analytics screens: one bar per row, scaled to the largest. */
.analytics-bar { display: block; height: 4px; margin-top: 3px; border-radius: var(--radius-full); background: var(--grad-navyblue); opacity: 0.55; }
.analytics-scroll { max-height: 420px; overflow-y: auto; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-success); vertical-align: middle; }

/* "Analytics choices" in the footer is a button, because it changes a setting and goes
   nowhere; it is dressed as the links beside it. */
.footer-hub .footer-link-button { color: inherit; opacity: 0.85; text-decoration: none; font-size: inherit; vertical-align: baseline; border: 0; }
.footer-hub .footer-link-button:hover, .footer-hub .footer-link-button:focus { opacity: 1; text-decoration: underline; }

/*
 * The analytics consent bar. Appended to <body> by public/js/analytics.js, and only when
 * GA4 is configured — without it this site has nothing to ask about. Opaque, not glass:
 * it floats over arbitrary page content (DESIGN.md, "Where the wash goes").
 */
.cookie-notice {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1040;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  max-width: 56rem; margin: 0 auto; padding: 0.875rem 1rem;
  border-radius: 0.75rem; border: 1px solid var(--border-color);
  background: #fff; box-shadow: var(--shadow-menu);
}
.cookie-notice-text { margin: 0; flex: 1 1 18rem; font-size: 0.9rem; line-height: 1.45; }
.cookie-notice-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cookie-notice .btn { flex: 0 0 auto; }
/* The bar is fixed, so it cannot push anything out of its way: `body` reserves the space
   while it is up, or the form buttons underneath are unreachable until it is answered. */
body.has-cookie-notice { padding-bottom: 7rem; }
@media (min-width: 576px) { body.has-cookie-notice { padding-bottom: 5.5rem; } }
@media (max-width: 575.98px) {
  .cookie-notice { padding: 0.625rem 0.75rem; gap: 0.5rem; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
  .cookie-notice-text { font-size: 0.8125rem; line-height: 1.35; flex-basis: 100%; }
}
@media print { .cookie-notice { display: none !important; } }

/* Sales agents: the country ring (views/admin/_country-donut.ejs). Slice colours are SVG
   attributes from utils/chartColors.js, so nothing here is a hex. */
.country-donut .cd-track { stroke: var(--border-color); }
.country-donut .cd-total { font-size: 6px; font-weight: 700; fill: var(--primary-navy); }
.country-donut .cd-total-label { font-size: 2.6px; fill: var(--text-light); text-transform: uppercase; letter-spacing: .08em; }
.country-donut .cd-legend { flex: 1 1 215px; min-width: 215px; max-width: 340px; max-height: 200px; overflow-y: auto; }
.country-donut .cd-row {
  display: grid; grid-template-columns: 9px 1fr auto 42px; align-items: center; gap: .45rem;
  padding: .17rem .3rem; font-size: .8rem;
}
.country-donut .cd-row + .cd-row { border-top: 1px solid var(--border-color); }
.country-donut .cd-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.country-donut .cd-count { font-variant-numeric: tabular-nums; font-weight: 600; }
.country-donut .cd-pct { font-variant-numeric: tabular-nums; text-align: right; }
.agent-country-btn { white-space: nowrap; }
.agent-modal-scroll { max-height: 280px; overflow-y: auto; }

/* The Hub's own social accounts in the footer — rendered only for those configured. */
.footer-social .list-inline-item a { font-size: 1.15rem; display: inline-flex; padding: 0.25rem; }

/* /admin/users, ported from SAP Hub. Wider than the site's container: thirteen columns do not
   fit in 1140px without the actions falling off the edge. */
.admin-wide { max-width: 1640px; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (max-width: 575.98px) { .admin-wide { padding-left: 1rem; padding-right: 1rem; } }
.admin-users-table { font-size: 0.875rem; }
.admin-users-table th { white-space: nowrap; font-weight: 600; }
.admin-users-table td { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.admin-user-actions { white-space: nowrap; }
.admin-user-actions form { display: inline-block; }
.admin-user-actions .btn { padding: 0.3rem 0.55rem; margin-left: 0.15rem; }
/* The roles and listing panels open with Bootstrap's collapse and the delete dialogs are
   modals, and both need scripting. Without it `.js-reveal` is never set, so the panels are
   simply open and the dialogs sit in the page as ordinary forms — every action still works. */
html:not(.js-reveal) .admin-users-page .admin-user-panel.collapse { display: table-row; }
html:not(.js-reveal) .admin-user-modal { display: block; position: static; opacity: 1; }
html:not(.js-reveal) .admin-user-modal .modal-dialog { transform: none; }

/* Import from CV: the review panel the consultant ticks through before anything is kept. */
.cv-review .cv-review-chip { border: 1px solid var(--border-color); border-radius: 999px; padding: .2rem .75rem .2rem 2rem; margin: 0; }
.cv-review .form-check { padding-left: 1.75rem; }

/* Countries picker on the profile: chips with ×, and a suggestion list under the search box. */
.country-chip {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.35rem 0.2rem 0.7rem; border-radius: 999px;
  background: rgba(1, 118, 211, 0.1); color: var(--primary-blue); font-size: 0.85rem; font-weight: 500;
}
.country-chip-x {
  border: 0; background: transparent; color: inherit; line-height: 1; font-size: 1.05rem;
  width: 1.4rem; height: 1.4rem; border-radius: 50%; padding: 0;
}
.country-chip-x:hover, .country-chip-x:focus-visible { background: rgba(1, 118, 211, 0.18); }
.country-suggest {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0;
  max-height: 16rem; overflow-y: auto; padding: 0.25rem;
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg, 12px);
  box-shadow: 0 12px 30px rgba(3, 45, 96, 0.12);
}
.country-suggest button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 0.45rem 0.75rem; border-radius: 8px;
}
.country-suggest button:hover, .country-suggest button:focus-visible { background: rgba(1, 118, 211, 0.08); }
.country-suggest-empty { padding: 0.45rem 0.75rem; color: var(--text-light); font-size: 0.9rem; }
[data-country-eu].active { background: var(--primary-blue); color: #fff; }

/* Build your profile: progress text on the left, "Import from CV" held on the right. */
.profile-progress-head { display: flex; align-items: flex-start; gap: 1rem; }
.profile-progress-text { flex: 1 1 auto; min-width: 0; }
.profile-progress-actions { flex: 0 0 auto; text-align: right; }
@media (max-width: 575.98px) {
  .profile-progress-head { flex-direction: column; gap: 0.75rem; }
  .profile-progress-actions { width: 100%; text-align: left; }
  .profile-progress-actions .btn { width: 100%; }
}
.profile-progress-actions p { max-width: 16rem; margin-left: auto; }
@media (max-width: 575.98px) { .profile-progress-actions p { max-width: none; } }

/* CV Generator: hero tags, a decorative sheet, choice cards and the on-page preview. */
.cv-hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; }
.cv-hero-tags li { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.cv-hero-sheet {
  width: 220px; height: 290px; background: #fff; border-radius: 12px; padding: 26px 22px;
  box-shadow: 0 30px 60px rgba(3, 45, 96, 0.35); display: flex; flex-direction: column; gap: 10px;
}
.cv-hero-sheet span { display: block; height: 8px; border-radius: 4px; background: var(--border-color); }
.cv-hero-sheet .l1 { width: 70%; height: 14px; background: var(--primary-blue-dark); }
.cv-hero-sheet .l2 { width: 50%; background: var(--primary-blue); }
.cv-hero-sheet .h { width: 40%; height: 6px; margin-top: 8px; background: var(--primary-blue-dark); }
.cv-hero-sheet .l3 { width: 90%; } .cv-hero-sheet .l4 { width: 100%; } .cv-hero-sheet .l5 { width: 60%; }
.cv-choice {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem; margin-bottom: 0.5rem;
  border: 1px solid var(--border-color); border-radius: var(--radius-lg); cursor: pointer; background: #fff;
}
.cv-choice:has(input:checked) { border-color: var(--primary-blue); box-shadow: 0 0 0 2px rgba(1, 118, 211, 0.15); }
.cv-choice .form-check-input { margin-top: 0.3rem; flex-shrink: 0; }
.cv-choice.is-static { cursor: default; background: transparent; border-style: dashed; }
.cv-preview { position: relative; transition: opacity 0.15s; }
.cv-preview.is-loading { opacity: 0.5; }
.cv-page {
  background: #fff; border: 1px solid var(--border-color); border-radius: 6px;
  box-shadow: 0 12px 30px rgba(3, 45, 96, 0.1); padding: 2.25rem 2.5rem; font-size: 0.86rem; color: #1f2937;
  max-height: 900px; overflow-y: auto;
}
.cv-name { font-size: 1.6rem; font-weight: 700; color: var(--primary-blue-dark); }
.cv-headline { color: var(--primary-blue); margin-bottom: 0.35rem; }
.cv-contact { color: var(--text-light); font-size: 0.78rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border-color); }
.cv-heading {
  margin: 1.1rem 0 0.4rem; padding-bottom: 0.2rem; border-bottom: 1px solid var(--border-color);
  font-weight: 700; color: var(--primary-blue-dark); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem;
}
.cv-fact { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem; }
.cv-fact span:first-child { font-weight: 600; }
.cv-bullet { padding-left: 1rem; position: relative; margin-bottom: 0.15rem; }
.cv-bullet::before { content: '•'; position: absolute; left: 0.2rem; }
.cv-entry { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; }
.cv-entry span { color: var(--text-light); white-space: nowrap; font-size: 0.78rem; }
.cv-subtitle { color: var(--text-light); font-size: 0.8rem; }
.cv-para { margin: 0 0 0.35rem; white-space: pre-line; }
.cv-step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-bottom: 0.5rem;
  border-radius: 50%; background: var(--primary-blue); color: #fff; font-weight: 700;
}
@media (max-width: 575.98px) {
  .cv-page { padding: 1.25rem; }
  .cv-fact { grid-template-columns: 6rem 1fr; }
  .cv-entry { flex-direction: column; gap: 0; }
}
.cv-page { position: relative; }
.cv-sample .cv-heading { color: var(--text-light); opacity: 0.6; }
.cv-sample-line { display: block; height: 0.55rem; margin: 0.45rem 0; border-radius: 4px; background: var(--border-color); }
.cv-sample-note {
  position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%);
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(3, 45, 96, 0.12); padding: 1rem 1.25rem; text-align: center; width: min(90%, 20rem);
}
.form-check.is-empty .form-check-label { color: var(--text-light); }
.cv-benefits { margin-top: -1rem; margin-bottom: 2rem; }

/* Document Generator (SOW pack): three file tiles in the hero, a sample Gantt, a closing band. */
.sow-hero-files { position: relative; width: 310px; height: 230px; }
.sow-file {
  position: absolute; width: 120px; height: 160px; border-radius: 14px; background: #fff;
  box-shadow: 0 24px 50px rgba(3, 45, 96, 0.35); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem; color: var(--primary-blue-dark);
}
.sow-file i { font-size: 2.75rem; }
.sow-file b { font-size: 1rem; }
.sow-file.f-docx { left: 0; top: 50px; transform: rotate(-8deg); }
.sow-file.f-xlsx { left: 95px; top: 10px; z-index: 2; }
.sow-file.f-pptx { left: 190px; top: 50px; transform: rotate(8deg); }
.sow-gantt { display: grid; gap: 0.35rem; }
.sow-gantt-row { display: grid; grid-template-columns: 11rem 1fr; gap: 0.75rem; align-items: center; font-size: 0.8rem; }
.sow-gantt-track { position: relative; height: 0.9rem; background: rgba(1, 118, 211, 0.06); border-radius: 4px; }
.sow-gantt-bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--primary-blue); }
.sow-gantt-axis .sow-gantt-track { background: none; display: flex; justify-content: space-between; color: var(--text-light); font-size: 0.72rem; height: auto; }
.sow-cta { background: var(--hero-gradient); color: #fff; padding: 2.5rem 0; }
.sow-cta h2 { color: #fff; }
@media (max-width: 575.98px) {
  .sow-gantt-row { grid-template-columns: 7.5rem 1fr; }
}

/* Consultant applications tracker. */
.apps-stat { font-size: 1.6rem; font-weight: 700; color: var(--primary-blue-dark); line-height: 1.1; }
.apps-status-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.apps-status-chip {
  display: inline-flex; align-items: baseline; gap: 0.35rem; padding: 0.4rem 0.85rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--border-color); color: var(--text-medium); text-decoration: none; font-size: 0.875rem;
}
.apps-status-chip strong { font-size: 1rem; }
.apps-status-chip.is-active { outline: 2px solid var(--primary-blue); outline-offset: 1px; }
.apps-tabs .nav-link { padding: 0.35rem 0.85rem; }
.apps-tabs .nav-link .badge-hub { margin-left: 0.25rem; }
.apps-filters .form-control, .apps-filters .form-select { width: auto; min-width: 11rem; }
.apps-row { margin-bottom: 0.75rem; }
.apps-title { font-size: 1.05rem; }
.apps-facts { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; color: var(--text-medium); }
.apps-timeline { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.6rem 0 0; font-size: 0.8rem; }
.apps-timeline li { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--text-medium); }
.apps-timeline li span { color: var(--text-light); }
.apps-timeline li + li::before { content: '→'; color: var(--text-light); margin-right: 0.15rem; }
.apps-timeline li.step-viewed { color: #1d6f4f; }
.apps-followup {
  display: inline-flex; gap: 0.4rem; align-items: center; margin-top: 0.5rem; padding: 0.3rem 0.65rem;
  border-radius: 8px; background: rgba(201, 122, 0, 0.12); color: #96590a; font-weight: 600;
}
.apps-note summary { cursor: pointer; color: var(--primary-blue); }
.apps-actions { min-width: 9.5rem; }
.apps-saved-row { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); }
.apps-saved-row:last-child { border-bottom: 0; }
.min-w-0 { min-width: 0; }
@media (max-width: 767.98px) {
  .apps-row .card-body > .d-flex { flex-wrap: wrap; }
  .apps-actions { flex-direction: row !important; flex-wrap: wrap; width: 100%; min-width: 0; }
  .apps-actions > * { flex: 1 1 auto; }
  .apps-filters { width: 100%; }
  .apps-filters .form-control, .apps-filters .form-select { flex: 1 1 100%; min-width: 0; }
}
.apps-tabs .nav-link.active .badge-hub { background: rgba(255, 255, 255, 0.22); color: #fff; }

.apps-ready-line { color: var(--text-medium); }
.apps-ready-line i { color: #96590a; }
.rec-reasons { color: #1d6f4f; }

/* Hub pages: grouped tool cards, engagement-model points, the hiring-now strip. */
.hub-tool-points li { display: flex; gap: 0.4rem; margin-bottom: 0.25rem; color: var(--text-medium); }
.hub-tool-points i { color: #1d6f4f; }
.hub-proof { padding: 2.5rem 0; }
.hub-proof-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.5rem; margin: 0; }
.hub-proof-logos a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-medium); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.hub-proof-logos a:hover span { color: var(--primary-blue); }
.hub-proof blockquote { font-size: 0.95rem; color: var(--text-medium); }
/* Three or four counts sit on one line: a long label wraps under its number instead of the
   whole figure dropping to a second row on its own. */
.hub-hero-stats { gap: var(--space-4) var(--space-5); }
.hub-hero-stats span { max-width: 10rem; }

/* ---------- Browse Talent (/consultants) ---------- */
.talent-stats li {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-medium);
}
.talent-stats strong { color: var(--text-dark); font-weight: 700; }
.talent-stats a { color: inherit; text-decoration: none; }
.talent-stats a:hover strong, .talent-stats a:focus-visible strong { color: var(--primary-blue); }
.talent-card h3 a { text-decoration: none; }
.talent-card h3 a:hover, .talent-card h3 a:focus-visible { color: var(--primary-blue) !important; text-decoration: underline; }
/* People are round; a company mark is a rounded square. The tones are the same solid set. */
.talent-initials { border-radius: var(--radius-full); }
.talent-rate { color: var(--text-dark); }
.talent-certs { color: var(--text-medium); }
.btn-shortlist {
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-dark);
}
.btn-shortlist:hover, .btn-shortlist:focus-visible { border-color: var(--primary-blue); color: var(--primary-blue); }
.btn-shortlist .bi-star-fill { color: #8a5300; }
.btn-shortlist.is-saved { border-color: #8a5300; color: #8a5300; background: rgba(138, 83, 0, 0.06); }
#approach.anchor-target { scroll-margin-top: calc(81px + 1rem); }
/* Buttons share the row; when three do not fit, the third takes a full row rather than ragged. */
.talent-actions > * { flex: 1 1 auto; }
.talent-actions form .btn { width: 100%; }

/* ---------- New estimate (/quotes/new) ---------- */
.quote-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.quote-step-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  color: var(--text-medium);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}
.quote-step-tab:hover, .quote-step-tab:focus-visible { border-color: var(--primary-blue); color: var(--primary-blue-dark); }
.quote-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(1, 118, 211, 0.1);
  color: var(--primary-blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
}
.quote-step-tab.is-current { border-color: var(--primary-blue); background: #fff; color: var(--text-dark); box-shadow: var(--shadow-sm); }
.quote-step-tab.is-current .quote-step-n { background: var(--primary-blue); color: #fff; }
.quote-step-tab.is-done .quote-step-n { background: #1d6f4f; color: #fff; }
.quote-step h2 .quote-step-n { margin-right: 0.35rem; vertical-align: 0.1em; }
.quote-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-color);
}
.quote-step-nav[hidden] { display: none; }

.scope-cloud { border-bottom: 1px solid var(--border-color); padding: 0.6rem 0; }
.scope-cloud:last-child { border-bottom: 0; }
.scope-cloud-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.scope-cloud-toggle {
  border: 0;
  background: none;
  color: var(--primary-blue);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-lg);
}
.scope-cloud-toggle:hover, .scope-cloud-toggle:focus-visible { background: rgba(1, 118, 211, 0.08); }
.scope-cloud-toggle .bi { display: inline-block; transition: transform 0.15s ease; }
.scope-cloud-toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }
.scope-cloud.has-picks .scope-cloud-toggle { color: var(--primary-blue-dark); }
.scope-modules[hidden], [data-scope-item][hidden], .scope-cloud[hidden] { display: none !important; }

/* Radio cards: the description of each option sits on its own card, not in one paragraph. */
.choice-card-input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
}
.choice-card-title { font-weight: 700; color: var(--text-dark); }
.choice-card-desc { font-size: 0.82rem; color: var(--text-medium); line-height: 1.35; }
.choice-card:hover { border-color: var(--primary-blue); }
.choice-card-input:checked + .choice-card { border-color: var(--primary-blue); box-shadow: 0 0 0 2px rgba(1, 118, 211, 0.25); background: rgba(1, 118, 211, 0.04); }
.choice-card-input:focus-visible + .choice-card { outline: 2px solid var(--primary-blue); outline-offset: 2px; }

.quote-summary { position: sticky; top: calc(81px + var(--space-4)); }
.quote-summary-figure { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); line-height: 1.15; }
.quote-summary-sub { color: var(--text-medium); }
.quote-summary-counts { display: flex; gap: var(--space-3); color: var(--text-medium); }
.quote-summary-counts span { font-weight: 700; color: var(--text-dark); }
.quote-review { display: grid; grid-template-columns: 8rem 1fr; gap: 0.35rem var(--space-3); margin: 0; }
.quote-review dt { font-weight: 600; color: var(--text-medium); }
.quote-review dd { margin: 0; color: var(--text-dark); }
.quote-total-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  padding: 0.6rem 1rem;
  background: var(--primary-navy);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 -2px 8px rgba(3, 45, 96, 0.2);
}
@media (max-width: 991.98px) {
  .quote-summary { position: static; }
}
@media (max-width: 575.98px) {
  .quote-step-label { display: none; }
  .quote-step-tab { justify-content: center; }
  .quote-review { grid-template-columns: 1fr; }
  .quote-review dd { margin-bottom: 0.4rem; }
}
.quote-days-input { width: 5.5rem; }

/* "What's included in the SOW": two columns of checks; optional sections marked as such. */
.sow-contents { columns: 2; column-gap: var(--space-5); }
.sow-contents li { display: flex; gap: 0.5rem; break-inside: avoid; margin-bottom: 0.55rem; }
.sow-contents .bi { color: #1d6f4f; margin-top: 0.15rem; }
.sow-contents .is-optional .bi { color: var(--text-light); }
@media (max-width: 767.98px) { .sow-contents { columns: 1; } }

/* ---------- SOW quote generator landing (/services/document-generator) ---------- */
.sow-pack-card {
  background: #fff;
  color: var(--text-dark);
  border-radius: var(--radius-xl, 1rem);
  box-shadow: 0 18px 40px rgba(1, 32, 63, 0.35);
  padding: var(--space-6, 1.5rem) var(--space-6, 1.5rem);
  max-width: 20rem;
  width: 100%;
  text-align: center;
}
.sow-pack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(1, 118, 211, 0.1);
  color: var(--primary-blue-dark);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.sow-pack-title { font-size: 1.35rem; font-weight: 800; color: var(--primary-navy); }
.sow-pack-files { font-weight: 700; color: var(--primary-blue-dark); letter-spacing: 0.02em; }
.sow-pack-note { margin-top: 0.75rem; font-size: 0.875rem; color: var(--text-medium); }
.sow-cloud-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
/* Coloured heads in the Hub's own blues; each clears 4.5:1 behind white text. */
.sow-cloud-head { color: #fff; font-weight: 700; padding: 0.75rem 1rem; }
.sow-cloud-head.tone-1 { background: #032d60; }
.sow-cloud-head.tone-2 { background: #0176d3; }
.sow-cloud-head.tone-3 { background: #0b5cab; }
.sow-cloud-card ul { padding: 0.5rem 1rem 0.75rem; }
.sow-cloud-card li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border-color); }
.sow-cloud-card li:last-child { border-bottom: 0; }
.sow-ready {
  background: linear-gradient(135deg, #032d60, #0b5cab);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.sow-ready .sow-pack-icon { background: rgba(255, 255, 255, 0.15); color: #fff; align-self: center; }
.sow-ready p { color: rgba(255, 255, 255, 0.9); }
.sow-contents.list-unstyled { columns: 1; }

/* ---------- SOW Quote Generator form, round 2: light page, icon steps ---------- */
.quote-page {
  background: #f4f7fb;
  padding: var(--space-8, 2rem) 0 var(--space-12, 3rem);
  min-height: 60vh;
}
.quote-head { margin-bottom: var(--space-6, 1.5rem); }
.quote-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--primary-navy); margin-bottom: 0.25rem; }
.quote-head p { color: var(--text-medium); margin-bottom: 0.5rem; }
.quote-head-links { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; font-size: 0.9rem; font-weight: 600; }
.quote-page .glass-card { background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); border-radius: var(--radius-xl, 1rem); }

/* The step bar: icons in circles joined by a line, as on the wizard it mirrors. */
.quote-page .quote-steps { position: relative; gap: 0; margin-bottom: var(--space-6, 1.5rem); }
.quote-page .quote-steps li { position: relative; }
.quote-page .quote-steps li + li::before {
  content: '';
  position: absolute;
  top: 1.4rem;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}
.quote-page .quote-step-tab {
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
  color: var(--text-medium);
}
.quote-page .quote-step-tab:hover .quote-step-icon,
.quote-page .quote-step-tab:focus-visible .quote-step-icon { border-color: var(--primary-blue); }
.quote-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-color);
  color: var(--text-light);
  font-size: 1.15rem;
}
.quote-step-done { display: none; }
.quote-page .quote-step-tab.is-current { color: var(--text-dark); background: none; box-shadow: none; }
.quote-page .quote-step-tab.is-current .quote-step-icon { background: var(--primary-blue); border-color: var(--primary-blue); color: #fff; }
.quote-page .quote-step-tab.is-done .quote-step-icon { background: #1d6f4f; border-color: #1d6f4f; color: #fff; }
.quote-page .quote-step-tab.is-done .quote-step-icon .bi:first-child { display: none; }
.quote-page .quote-step-tab.is-done .quote-step-done { display: inline; }
.quote-page .quote-step-label { font-size: 0.85rem; font-weight: 600; }

/* Client info and Review take the whole width; the running total is for Scope and Shape. */
[data-quote-form][data-current-step="1"] .quote-aside-col,
[data-quote-form][data-current-step="4"] .quote-aside-col { display: none; }
@media (min-width: 992px) {
  [data-quote-form][data-current-step="1"] .quote-main-col,
  [data-quote-form][data-current-step="4"] .quote-main-col { flex: 0 0 100%; max-width: 920px; margin: 0 auto; }
}

.quote-figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3, 0.75rem);
  margin-bottom: var(--space-4, 1rem);
}
.quote-figures > div { background: #f4f7fb; border-radius: var(--radius-lg); padding: 0.75rem 0.85rem; }
.quote-figure-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-medium); text-transform: uppercase; letter-spacing: 0.03em; }
.quote-figure { display: block; font-size: 1.15rem; font-weight: 800; color: var(--text-dark); }
.quote-review-table { font-size: 0.875rem; }
.quote-review-table th { font-weight: 600; color: var(--text-medium); }
@media (max-width: 767.98px) {
  .quote-figures { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .quote-page .quote-step-label { display: none; }
  .quote-step-icon { width: 2.4rem; height: 2.4rem; font-size: 1rem; }
  .quote-page .quote-steps li + li::before { top: 1.2rem; }
}
/* The offer and the notices line up with the form, which is centred on Client info and Review. */
.quote-page .quote-reuse, .quote-page > .container > .alert { max-width: 920px; margin-left: auto; margin-right: auto; }
.quote-page .quote-reuse { margin-bottom: var(--space-4, 1rem); }

/* ---------- /quotes/new as the SOW Quote Generator landing ---------- */
.sow-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; line-height: 1.1; }
/* The accent sits on the dark hero, never behind white text. */
.hero-accent { color: var(--primary-blue-bright); }
.sow-glass-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl, 1rem);
  padding: var(--space-6, 1.5rem);
  max-width: 22rem;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}
.sow-glass-card .sow-pack-icon { background: rgba(255, 255, 255, 0.15); color: #fff; }
.sow-glass-card .sow-pack-title { color: #fff; }
.sow-intro { padding-top: var(--space-12, 3rem); padding-bottom: var(--space-8, 2rem); }
.sow-block { margin-bottom: var(--space-12, 3rem); }
.sow-block:last-child { margin-bottom: 0; }
.sow-block-title { text-align: center; font-size: 1.6rem; font-weight: 700; color: var(--primary-navy); margin-bottom: var(--space-6, 1.5rem); }
.sow-white-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl, 1rem);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6, 1.5rem);
}
.sow-tick { color: #1d6f4f; margin-right: 0.25rem; }
.quote-head-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--primary-navy); margin-bottom: 0.25rem; }
#wizard { scroll-margin-top: 81px; }
/* The active step is underlined, as well as filled — colour alone is not the only signal. */
.quote-page .quote-step-tab.is-current .quote-step-label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35rem; text-decoration-color: var(--primary-blue); }
.sow-included-title { font-size: 1.6rem; font-weight: 700; color: var(--primary-navy); margin-bottom: var(--space-4, 1rem); }
/* Lines up with the form card, which sits inside the column's gutters. */
.quote-page .quote-reuse { max-width: calc(920px - 1.5rem); }
/* Step 1's Previous is there to keep the buttons where they are, not to be pressed. */
.quote-step-nav .btn:disabled { opacity: 0.4; }
/* Shares the row with the icon and the buttons instead of claiming a full line and stacking them. */
.quotes-empty-text { flex: 1 1 18rem; min-width: 0; }

/*
 * Tax optimization (/tax-advisory). The hero reuses .hub-hero; the calculator is a white card
 * on it. Gains are the same green as .badge-hub.ok, and only ever text on white.
 */
.tax-hero-accent { display: block; color: var(--primary-blue-bright); }
.tax-hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.75rem;
  margin: var(--space-6) 0 0;
}
.tax-hero-stats li {
  display: flex; flex-direction: column; padding: 0.85rem 1rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
}
.tax-hero-stats strong { font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: #fff; }
.tax-hero-stats span { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
.tax-calc-card {
  background: rgba(255, 255, 255, 0.94); color: var(--text-dark); border-radius: 1.5rem; padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 24px 60px rgba(1, 32, 63, 0.28);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.tax-calc-title { text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--primary-navy); margin-bottom: 1.5rem; }
.tax-calc-card .form-label { font-weight: 600; color: var(--primary-navy); }
.tax-calc-privacy { margin: 0.75rem 0 0; text-align: center; font-size: 0.8rem; color: var(--text-light); }
.tax-result-gains { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; margin-bottom: 0.5rem; }
.tax-result-gains strong { font-size: 1.2rem; color: var(--primary-navy); }
.tax-result-gains strong.is-gain { color: #1d6f4f; }
.tax-result-gains strong.is-loss { color: #b42318; }
.tax-result-gains span { color: var(--text-light); font-size: 0.9rem; }
.tax-result-sep { margin: 0 0.35rem; }
.tax-unavailable { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-lg); background: var(--sky-wash); border: 1px solid var(--border-color); color: var(--text-medium); }
.tax-unavailable .bi { color: var(--primary-blue); font-size: 1.1rem; }
.tax-result { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-lg); background: var(--sky-wash); border: 1px solid var(--border-color); }
.tax-result-main { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.75rem; }
.tax-result-label, .tax-result-diff span { font-size: 0.8rem; color: var(--text-light); }
.tax-result-net { font-size: 1.6rem; color: var(--primary-navy); }
.tax-result-diff > div { display: flex; flex-direction: column; }
.tax-result-diff strong { font-size: 1.15rem; color: var(--primary-navy); }
.tax-result-diff strong.is-gain, .tax-story-figures .is-after { color: #1d6f4f; }
.tax-result-diff strong.is-loss { color: #b42318; }
.tax-result-lines { margin: 0.75rem 0; }
.tax-result-lines summary { cursor: pointer; color: var(--primary-blue); }
.tax-result-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; border-bottom: 1px dashed var(--border-color); }
.tax-result-note { color: var(--text-medium); }
.tax-soon { display: flex; gap: 0.75rem; padding: 0.9rem 1rem; border-radius: var(--radius-lg); background: var(--sky-wash); border: 1px solid var(--border-color); }
.tax-soon > .bi { font-size: 1.25rem; color: var(--primary-blue); }
.tax-more { display: flex; gap: 0.5rem; margin-top: 1rem; padding: 0 0.5rem; color: rgba(255, 255, 255, 0.85); }
.tax-more a { color: var(--primary-blue-bright); }
.tax-more .bi { color: var(--primary-blue-bright); }
.tax-section { padding: 3.5rem 0; }
.tax-section-alt { background: var(--sky-wash); }
.tax-info-box { display: flex; gap: 0.75rem; padding: 1rem 1.25rem; border-radius: var(--radius-lg); background: #fff; border-left: 4px solid var(--primary-blue); box-shadow: var(--shadow-sm); }
.tax-info-box > .bi { color: var(--primary-blue); font-size: 1.15rem; }
.tax-eligible { max-width: 40rem; }
.tax-eligible li { display: flex; gap: 0.6rem; margin-bottom: 0.6rem; }
.tax-eligible li .bi { color: var(--primary-blue); margin-top: 0.15rem; }
.tax-slider-nav { display: flex; gap: 0.5rem; }
.tax-story-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2rem) / 3); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem;
}
.tax-story-card { scroll-snap-align: start; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.tax-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  border-radius: 50%; background: var(--accent-gradient); color: #fff; font-weight: 700;
}
.tax-story-figures { display: grid; gap: 0.35rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
.tax-story-figures > div { display: flex; justify-content: space-between; gap: 0.75rem; }
.tax-story-figures dt { font-weight: 500; color: var(--text-light); }
.tax-story-figures dd { margin: 0; font-weight: 600; }
.tax-pill { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; background: rgba(29, 111, 79, 0.12); color: #1d6f4f; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.75rem; }
.tax-quote { color: var(--text-medium); font-style: italic; }
.tax-trust-figure { font-size: 1.75rem; font-weight: 800; color: var(--primary-navy); }
.tax-disclaimer { padding: 1.25rem; border: 2px solid var(--primary-blue); border-radius: var(--radius-lg); background: #fff; }
.tax-disclaimer h3 { color: var(--primary-navy); }
.tax-cta-note { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 767.98px) {
  .tax-story-track { grid-auto-columns: 85%; }
  .tax-section { padding: 2.5rem 0; }
}
.tax-hero h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem); }
@media (min-width: 768px) and (max-width: 991.98px) { .tax-story-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
/* /tax-optimization/enquire: the same band and cards as the page it comes from. */
.tax-enquire-hero { padding: 2.5rem 0 3rem; }
.tax-enquire-hero h1 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); }
.tax-back-link { display: block; width: fit-content; margin-bottom: 1rem; color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 0.875rem; }
.tax-back-link:hover { color: #fff; text-decoration: underline; }
.tax-enquire-card { box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }
.tax-next li { display: flex; gap: 0.75rem; margin-bottom: 0.9rem; }
.tax-next li:last-child { margin-bottom: 0; }
.tax-next .cv-step-n { flex-shrink: 0; margin-bottom: 0; }
.tax-fee { color: var(--text-medium); padding-top: 0.5rem; border-top: 1px dashed var(--border-color); }
.tax-fee .bi { color: var(--primary-blue); }

/*
 * Rate & Salary Index (/rates). Community figures, editorial figures and job figures carry
 * different tags so a reader always knows which kind of number they are looking at.
 */
.rates-hero { padding: 3.5rem 0 3rem; }
.rates-hero h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
.rates-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 1.5rem 0 1rem; padding: 0; }
.rates-pills li { padding: 0.5rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; }
.rates-pills .bi { color: var(--primary-blue-bright); }
.rates-hero-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); margin: 0; }
.rates-hero-note a { color: var(--primary-blue-bright); }
.rates-card { background: #fff; border: 1px solid var(--border-color); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.rates-tag { display: inline-block; white-space: nowrap; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; background: rgba(29, 111, 79, 0.12); color: #1d6f4f; }
.rates-tag-editorial { background: rgba(1, 118, 211, 0.1); color: var(--primary-blue-dark); }
.rates-tag-jobs { background: rgba(3, 45, 96, 0.08); color: var(--primary-navy); }
.rates-segmented .btn { flex: 1 1 0; }
.rates-result { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.rates-empty-result { display: flex; gap: 0.6rem; margin-top: 1.25rem; padding: 0.9rem 1rem; border-radius: var(--radius-lg); background: var(--sky-wash); color: var(--text-medium); font-size: 0.9rem; }
.rates-empty-result .bi { color: var(--primary-blue); }
.rates-confidence { font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 999px; }
.rates-confidence-high { background: rgba(29, 111, 79, 0.12); color: #1d6f4f; }
.rates-confidence-medium { background: rgba(1, 118, 211, 0.1); color: var(--primary-blue-dark); }
.rates-confidence-low { background: #fff4e5; color: #8a4b00; }
.rates-tile { border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 0.75rem 0.5rem; display: flex; flex-direction: column; }
.rates-tile span { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.rates-tile strong { font-size: 1.35rem; color: var(--primary-navy); }
.rates-tile small { color: var(--text-light); }
.rates-tile.is-main { background: var(--accent-gradient); border-color: transparent; }
.rates-tile.is-main span, .rates-tile.is-main strong, .rates-tile.is-main small { color: #fff; }
.rates-subhead { font-size: 0.85rem; font-weight: 700; color: var(--primary-navy); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.rates-position { position: relative; height: 0.9rem; border-radius: 999px; background: rgba(1, 118, 211, 0.08); margin: 1.4rem 0 0.4rem; }
.rates-position-band { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: rgba(1, 118, 211, 0.35); }
.rates-position-median { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1px; background: var(--primary-navy); border-radius: 2px; }
.rates-position-you { position: absolute; top: -1.35rem; transform: translateX(-50%); color: var(--primary-blue); }
.rates-mini { background: var(--sky-wash); border-radius: var(--radius-lg); padding: 0.6rem 0.4rem; display: flex; flex-direction: column; }
.rates-mini span { font-size: 0.75rem; color: var(--text-light); }
.rates-mini strong { color: var(--primary-navy); }
.rates-note { display: flex; gap: 0.6rem; padding: 0.8rem 1rem; border-radius: var(--radius-lg); background: var(--sky-wash); font-size: 0.85rem; color: var(--text-medium); margin-bottom: 0.75rem; }
.rates-note .bi { color: var(--primary-blue); }
.rates-note-tip { background: #fff8e6; }
.rates-note-tip .bi { color: #8a4b00; }
.rates-working summary { cursor: pointer; color: var(--primary-blue); }
.rates-working li, .rates-method-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; border-bottom: 1px dashed var(--border-color); }
.rates-method-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.rates-keep { display: flex; gap: 1rem; align-items: flex-start; }
.rates-chart { width: 100%; height: auto; display: block; }
.rates-chart .grid { stroke: var(--border-color); stroke-width: 1; }
.rates-chart .axis { fill: var(--text-light); font-size: 11px; }
.rates-chart .axis-count { fill: #1d6f4f; }
.rates-chart .count-bar { fill: rgba(29, 111, 79, 0.25); }
.rates-chart .count-bar.is-gap { fill: rgba(138, 75, 0, 0.18); }
.rates-chart .median-line { fill: none; stroke: var(--primary-blue); stroke-width: 2.5; stroke-linejoin: round; }
.rates-chart .median-dot { fill: #fff; stroke: var(--primary-blue); stroke-width: 2; }
.rates-legend { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--text-medium); }
.rates-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 0.3rem; vertical-align: middle; }
.lg-line { background: var(--primary-blue); height: 3px !important; }
.lg-bar { background: rgba(29, 111, 79, 0.35); }
.lg-p25, .rates-bar-group .b-p25 { background: rgba(1, 118, 211, 0.25); }
.lg-median, .rates-bar-group .b-median { background: var(--primary-blue); }
.lg-p75, .rates-bar-group .b-p75 { background: var(--primary-navy); }
.rates-bars { display: grid; gap: 0.6rem; }
.rates-bar-row { display: grid; grid-template-columns: 9.5rem 1fr 6rem; gap: 0.75rem; align-items: center; font-size: 0.85rem; }
.rates-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rates-bar-group { display: grid; gap: 2px; }
.rates-bar-group span { display: block; height: 6px; border-radius: 3px; }
.rates-bar-figure { text-align: right; color: var(--primary-navy); font-weight: 600; }
.rates-bar-figure small { color: var(--text-light); font-weight: 400; }
.rates-table .suppressed { color: var(--text-light); font-style: italic; }
.rates-asked { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border-color); color: var(--text-medium); }
.rates-asked .bi { color: var(--primary-blue); }
.rates-range { position: relative; height: 0.6rem; border-radius: 999px; background: rgba(3, 45, 96, 0.06); }
.rates-range span { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--primary-blue); }
.rates-stat-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); }
.rates-stat { display: block; font-size: 1.5rem; color: var(--primary-navy); }
.rates-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rates-chip { padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--border-color); background: #fff; color: var(--primary-navy); text-decoration: none; font-size: 0.85rem; }
.rates-chip:hover, .rates-chip.is-active { border-color: var(--primary-blue); color: var(--primary-blue); }
@media (max-width: 575.98px) {
  .rates-bar-row { grid-template-columns: 7rem 1fr 4.5rem; }
  .rates-card { padding: 1.1rem; }
}
/* "Export PDF": only the benchmark card is printed. */
@media print {
  body.rates-printing header, body.rates-printing footer, body.rates-printing nav, body.rates-printing section:not(.glass-section),
  body.rates-printing .col-lg-6:not(#benchmark), body.rates-printing .rates-keep, body.rates-printing .rates-bench-form .d-flex { display: none !important; }
  body.rates-printing #benchmark { width: 100%; }
  body.rates-printing .rates-card { box-shadow: none; border: 0; }
}
.rates-trend-empty { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--radius-lg); background: var(--sky-wash); border: 1px dashed var(--border-color); color: var(--text-medium); }
.rates-trend-empty > .bi { font-size: 1.5rem; color: var(--primary-blue); }
.rates-trend-empty strong { color: var(--primary-navy); }
.rates-mini small { font-size: 0.7rem; color: var(--text-light); }
.rates-share-card { background: var(--sky-wash); border-color: rgba(1, 118, 211, 0.25); }
.rates-all-roles summary { cursor: pointer; color: var(--primary-blue); font-weight: 600; display: inline-block; }
@media (min-width: 992px) {
  /* The charts stay beside the benchmark while its result is read. */
  .rates-side { position: sticky; top: 96px; }
}

/* My documents (/profile/documents). */
.docs-card { background: #fff; border: 1px solid var(--border-color); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.docs-chip { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(1, 118, 211, 0.1); color: var(--primary-blue-dark); font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.docs-chip-muted { background: var(--bg-light); color: var(--text-medium); font-weight: 500; }
.docs-subhead { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin: 1.5rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.docs-rows li { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--border-color); }
.docs-badge { flex-shrink: 0; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(3, 45, 96, 0.08); color: var(--primary-navy); }
.docs-count { font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--bg-light); color: var(--text-medium); }
.docs-count.is-full { background: #fff4e5; color: #8a4b00; }
.docs-empty { text-align: center; padding: 1.5rem 1rem; color: var(--text-medium); }
.docs-empty > .bi { display: block; font-size: 2rem; color: var(--primary-blue); margin-bottom: 0.5rem; }
.docs-files li + li { border-top: 1px solid var(--border-color); }
.docs-file { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; }
.docs-file-icon { font-size: 1.6rem; color: var(--primary-blue); flex-shrink: 0; }
.docs-file .min-w-0 { min-width: 0; }
.docs-actions { display: flex; gap: 0.25rem; flex-shrink: 0; }
.docs-rename { padding-bottom: 0.7rem; }
.docs-upload > summary { display: none; }
.docs-upload:not([open]) { display: none; }
.docs-ext { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 4px; margin-left: 0.2rem; text-decoration: none; color: #fff; background: var(--primary-navy); }
.docs-ext-docx { background: var(--primary-blue-dark); }
.docs-ext-xlsx { background: #1d6f4f; }
.docs-ext-pptx { background: #8a4b00; }
.docs-tips { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-lg); background: var(--sky-wash); color: var(--text-medium); font-size: 0.875rem; margin: 0; }
.docs-tips .bi { color: var(--primary-blue); margin-right: 0.35rem; }

/*
 * Saved jobs (/dashboard/saved). The card is the board's own job card; these only add the
 * labelled star, the action row and the "no longer open" state.
 */
.saved-hero { padding: 3rem 0 2.75rem; }
.saved-hero h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem); margin-bottom: 0.5rem; }
.saved-toolbar .form-select { width: auto; }
/* .d-flex is !important, so it would win over [hidden] when the last card is removed. */
.saved-toolbar[hidden] { display: none !important; }
.btn-save.btn-save-label { width: auto; border-radius: 999px; padding: 0 0.85rem; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; }
/* Above the title's stretched link, which otherwise swallows every click on the card. */
.job-card-foot { position: relative; z-index: 2; }
.job-card-closed { background: var(--bg-light); box-shadow: none; }
.job-card-closed:hover { transform: none; box-shadow: none; }
.job-card-closed h3, .job-card-closed .job-card-snippet, .job-card-closed .badge-hub:not(.muted) { color: var(--text-light); }
.job-card-closed .logo-tile, .job-card-closed .logo-initials { filter: grayscale(1); opacity: 0.6; }
.app-status-chip { text-decoration: none; font-weight: 600; }
.app-status-chip:hover { text-decoration: underline; }
.saved-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--primary-navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 2rem);
}
.saved-toast[hidden] { display: none; }
.saved-toast-undo { color: #fff; font-weight: 700; text-decoration: underline; padding: 0 0.25rem; }
.saved-toast-undo:hover, .saved-toast-undo:focus-visible { color: #fff; }
/* An icon named inside the empty-state sentence is text-sized, not the state's big icon. */
.empty-state p .bi { display: inline; font-size: 1em; margin: 0; opacity: 1; color: var(--primary-blue); }

/*
 * Daily challenges (/challenges). Topic colours are the sanctioned .icon-* gradients, used
 * as a band across the top of each card. The floating terms are decoration: aria-hidden,
 * and still when the visitor asks for reduced motion.
 */
.challenges-hero { padding: 3.25rem 0 3rem; }
.challenges-hero h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
.challenges-hero-sm { padding: 2.25rem 0 2.5rem; }
.challenges-hero-sm h1 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.3rem); margin-bottom: 0.5rem; }
.challenges-terms { position: relative; height: 210px; }
.challenges-term {
  position: absolute;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  animation: challenges-float 7s ease-in-out infinite;
}
.challenges-term.t0 { top: 4%; left: 6%; }
.challenges-term.t1 { top: 0; left: 46%; animation-delay: -1s; }
.challenges-term.t2 { top: 22%; left: 74%; animation-delay: -2s; }
.challenges-term.t3 { top: 30%; left: 24%; animation-delay: -3s; }
.challenges-term.t4 { top: 46%; left: 52%; animation-delay: -4s; }
.challenges-term.t5 { top: 56%; left: 2%; animation-delay: -5s; }
.challenges-term.t6 { top: 66%; left: 70%; animation-delay: -1.5s; }
.challenges-term.t7 { top: 80%; left: 30%; animation-delay: -2.5s; }
.challenges-term.t8 { top: 88%; left: 60%; animation-delay: -3.5s; }
.challenges-term.t9 { top: 40%; left: 80%; animation-delay: -4.5s; opacity: 0.7; }
@keyframes challenges-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .challenges-term { animation: none; } }
/*
 * Topic cards: a full gradient with white text, like a game tile. Every stop is dark enough
 * for white text at 4.5:1 — tests/unit/challenges.test.js reads these two lines per tone and
 * measures them, so a lighter stop fails the suite rather than a reader.
 */
.challenge-card { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--radius-xl); color: #fff; box-shadow: var(--glass-shadow-lg); transition: var(--transition-fast); }
.challenge-card:hover { transform: translateY(-2px); }
.challenge-card h2, .challenge-card h3, .challenge-card p { color: #fff; }
.challenge-card-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 1.5rem; }
.challenge-featured .challenge-card-body { flex-direction: row; }
.challenge-card-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.challenge-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.18); font-size: 1.2rem; }
.challenge-icon-lg { width: 56px; height: 56px; font-size: 1.5rem; }
.challenge-kicker { display: inline-block; margin-bottom: 0.25rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.challenge-done { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 0.82rem; font-weight: 700; }
.challenge-tone-mix { background: linear-gradient(135deg, #01203f 0%, #0b5cab 100%); }
.challenge-tone-navy { background: linear-gradient(135deg, #032d60 0%, #0b5cab 100%); }
.challenge-tone-blue { background: linear-gradient(135deg, #0b5cab 0%, #0176d3 100%); }
.challenge-tone-green { background: linear-gradient(135deg, #14573d 0%, #1d7a55 100%); }
.challenge-tone-teal { background: linear-gradient(135deg, #075a75 0%, #0a6f8f 100%); }
.challenge-tone-violet { background: linear-gradient(135deg, #3d4a8f 0%, #5361b0 100%); }
.challenge-tone-amber { background: linear-gradient(135deg, #6e4200 0%, #8a5300 100%); }
.challenge-resources li { margin-bottom: 0.45rem; }
.challenge-resources li:last-child { margin-bottom: 0; }
.challenge-resources .bi { margin-right: 0.35rem; color: var(--primary-blue); }

/*
 * Referrals (/referrals) and the sales agent dashboard (/referrals/agent). Stage colours are
 * the existing badge tones: won is the success green, lost the danger red.
 */
.ref-mini { padding: 0.75rem 0.5rem; border-radius: var(--radius-lg); background: var(--bg-light); border: 1px solid var(--border-color); }
.ref-mini .value { font-size: 1.35rem; font-weight: 700; color: var(--primary-navy); line-height: 1.2; }
.ref-mini .label { font-size: 0.78rem; color: var(--text-light); }
.ref-earn-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--border-color); }
.ref-earn-list li:first-child { border-top: 0; }
.ref-earn-none { color: var(--text-light); }
.ref-quick li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.35rem 0; }
/* A code is read aloud and typed: the same colour and size as the values beside it, spaced. */
.ref-code { color: inherit; font-weight: 600; letter-spacing: 0.06em; }
.agent-hero { padding: 2.5rem 0 2.75rem; }
.agent-hero h1 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); }
.agent-code { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); letter-spacing: 0.04em; }
.agent-pipeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; }
@media (max-width: 767.98px) { .agent-pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.agent-stage { display: flex; flex-direction: column; align-items: center; padding: 0.75rem 0.25rem; border-radius: var(--radius-lg); border: 1px solid var(--border-color); background: var(--bg-light); color: var(--primary-navy); text-decoration: none; transition: var(--transition-fast); }
.agent-stage:hover, .agent-stage:focus-visible { border-color: var(--primary-blue); color: var(--primary-navy); }
.agent-stage.is-active { border-color: var(--primary-blue); box-shadow: 0 0 0 2px rgba(1, 118, 211, 0.25); }
.agent-stage-n { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.agent-stage-label { font-size: 0.78rem; color: var(--text-medium); }
.agent-stage-won { background: rgba(29, 111, 79, 0.10); border-color: rgba(29, 111, 79, 0.35); }
.agent-stage-won .agent-stage-n, .agent-stage-won .agent-stage-label { color: #1d6f4f; }
.agent-stage-lost { background: rgba(179, 54, 74, 0.08); border-color: rgba(179, 54, 74, 0.30); }
.agent-stage-lost .agent-stage-n, .agent-stage-lost .agent-stage-label { color: #9e2b3d; }
.agent-stage-select { min-width: 8.5rem; }
.agent-stage-select.tone-won { color: #1d6f4f; font-weight: 600; }
.agent-stage-select.tone-lost { color: #9e2b3d; font-weight: 600; }
.agent-progress { background: var(--primary-blue); }
.agent-people { max-height: 22rem; overflow-y: auto; }
/* Without scripting, the Add lead button's #addLeadModal target shows the modal itself. */
.agent-modal:target { display: block; opacity: 1; background: rgba(1, 32, 63, 0.5); }

/* /about. The hero reuses the hub hero; everything below is cards and plain counts. */
.about-hero { padding: 4rem 0 3.5rem; }
.about-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2vw, 3.1rem); line-height: 1.15; }
.about-checks li { display: flex; gap: 0.5rem; padding: 0.2rem 0; }
.about-checks .bi { color: var(--primary-blue); }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.about-stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.25rem 0.75rem; text-decoration: none; color: inherit; }
a.about-stat:hover { color: inherit; transform: translateY(-2px); }
.about-stat .bi { font-size: 1.4rem; color: var(--primary-blue); margin-bottom: 0.35rem; }
.about-stat-value { font-size: 1.9rem; font-weight: 700; color: var(--primary-navy); line-height: 1.1; }
.about-stat-label { font-size: 0.85rem; color: var(--text-light); }
.about-steps li { display: flex; gap: 0.9rem; margin-bottom: 1.1rem; }
.about-steps li:last-child { margin-bottom: 0; }
.about-step-n { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-blue); color: #fff; font-weight: 700; }
.about-values .about-value { display: flex; align-items: center; gap: 0.6rem; height: 100%; padding: 0.65rem 0.85rem; font-weight: 600; border: 1px solid var(--border-color, #dbe4f0); border-radius: 0.75rem; background: rgba(255, 255, 255, 0.6); }
.about-values .bi { color: var(--primary-blue); }
/* The text column may shrink below its content, and the Draft note wraps, so a long bio never pushes past a phone's card. */
.about-member > div { min-width: 0; flex: 1; }
.about-member .badge-hub { white-space: normal; text-align: left; }
.about-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.about-avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--grad-navy); color: #fff; font-weight: 700; font-size: 1.2rem; }
.about-address { white-space: pre-line; }
/* ------------------------------------------------- Salesforce news of the day (home feed)
   Ported from SAP Hub's news card. Colours are this site's tokens: the frame is the sky
   gradient's cyan-to-blue, and the only colour that is not a token is the live red, which
   carries white text on the "New" chip at 4.9:1. */
.sf-news { position: relative; padding: 2px; border-radius: calc(var(--radius-lg) + 2px); background: linear-gradient(120deg, var(--primary-blue-light), var(--primary-blue), var(--primary-navy-light), var(--primary-blue-light)); background-size: 300% 300%; animation: sf-news-sky 12s ease-in-out infinite; box-shadow: 0 14px 34px -18px rgba(3, 45, 96, .5); }
@keyframes sf-news-sky { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.sf-news-inner { border-radius: var(--radius-lg); background: #fff; padding: 1.25rem 1.4rem 1.1rem; }
.sf-news-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.sf-news-badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-navy); background: rgba(1, 118, 211, .08); padding: .3rem .7rem; border-radius: 99px; }
.sf-news-dot { width: 8px; height: 8px; border-radius: 50%; background: #d92d20; animation: sf-news-live 1.8s ease-out infinite; }
@keyframes sf-news-live { 0% { box-shadow: 0 0 0 0 rgba(217, 45, 32, .55); } 100% { box-shadow: 0 0 0 9px rgba(217, 45, 32, 0); } }
.sf-news-controls { display: inline-flex; align-items: center; gap: .4rem; }
.sf-news-nav { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-color); background: #fff; color: var(--primary-navy); display: grid; place-items: center; transition: background .15s ease, border-color .15s ease; }
.sf-news-nav:hover { border-color: var(--primary-blue); background: rgba(1, 118, 211, .06); }
.sf-news-count { color: var(--text-light); font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: center; }
.sf-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .78rem; margin-bottom: .4rem; }
.sf-news-new { font-weight: 800; color: #fff; background: #d92d20; padding: .1rem .5rem; border-radius: 99px; }
.sf-news-chip { font-weight: 700; color: var(--primary-blue-dark); background: rgba(0, 161, 224, .12); padding: .1rem .55rem; border-radius: 99px; }
.sf-news-source { color: var(--text-light); }
.sf-news-title { font-size: 1.2rem; font-weight: 800; line-height: 1.3; margin-bottom: .45rem; }
.sf-news-title a { color: var(--primary-navy); text-decoration: none; }
.sf-news-title a:hover { color: var(--primary-blue); text-decoration: underline; }
.sf-news-summary { color: var(--text-medium); font-size: .93rem; margin-bottom: .8rem; }
.sf-news-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.sf-news-read { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .88rem; padding: .45rem 1rem; border-radius: 99px; color: #fff; background: var(--primary-blue); text-decoration: none; }
.sf-news-read:hover { color: #fff; background: var(--primary-navy); text-decoration: none; }
.sf-news-share { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .88rem; padding: .45rem .9rem; border-radius: 99px; color: var(--primary-blue-dark); border: 1px solid rgba(1, 118, 211, .35); text-decoration: none; }
.sf-news-share:hover { color: var(--primary-navy); background: rgba(1, 118, 211, .06); text-decoration: none; }
.sf-news-slide.is-entering { animation: sf-news-in .35s ease-out both; }
@keyframes sf-news-in { from { opacity: 0; transform: translateX(14px); } }
.sf-news-dots { display: flex; justify-content: center; gap: .35rem; margin-top: .9rem; }
.sf-news-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--border-color); transition: width .2s ease, background .2s ease; }
.sf-news-dots button.on { width: 22px; background: var(--primary-blue); }
.sf-news-list { margin-top: .8rem; padding-left: 1.1rem; }
@media (prefers-reduced-motion: reduce) {
  .sf-news, .sf-news-dot, .sf-news-slide.is-entering { animation: none; }
  .sf-news-dots button, .sf-news-nav { transition: none; }
}

/* Admin overview, laid out as SAP Hub's. A card that links to a list shows its figure in
   the link colour, which is what says it can be clicked. */
.admin-stat-link .stat-value { color: var(--primary-blue); }
.admin-stat-link:hover .stat-value { color: var(--primary-blue-dark); }
.admin-quick-title {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-medium); margin-bottom: 1rem;
}
.admin-quick-btn { font-weight: 600; padding-top: 0.55rem; padding-bottom: 0.55rem; }

/* Admin > Referrals > Sales agents: 13 columns, set compact enough to fit the page without a
   sideways scroll (owner, 2026-11-12, as on dynamicshub.net). Headers may wrap, the two links
   show their short path (Copy puts the full address on the clipboard), and an email stays on
   ONE line in a smaller size rather than splitting. */
.agents-table { font-size: 0.85rem; }
.agents-table > :not(caption) > * > * { padding: 0.45rem 0.35rem; }
.agents-table th { white-space: normal; vertical-align: bottom; line-height: 1.2; font-size: 0.8rem; }
.agents-table .agent-email { font-size: 0.75rem; white-space: nowrap; }
.agents-table .agent-link-row { white-space: nowrap; line-height: 1.7; align-items: center; gap: 0.3rem;
  border: 0; background: none; padding: 0 0.15rem; margin: 0 -0.15rem; border-radius: 0.25rem;
  color: inherit; cursor: pointer; text-align: left; }
.agents-table .agent-link-row:hover,
.agents-table .agent-link-row.is-copied { background: rgba(0, 169, 157, 0.08); }
.agents-table .agent-link-row code { font-size: 0.75rem; }
.agents-table .agent-breakdown { max-width: 7rem; margin-left: auto; line-height: 1.3; }
.agents-table .agent-country-btn { white-space: nowrap; padding: 0.15rem 0.5rem; font-size: 0.8rem; }
.agents-table .btn-sm { padding: 0.2rem 0.5rem; font-size: 0.8rem; }

/* "More filters" on /jobs and /consultants (2026-11-18): the rarely-set groups, one click away. */
.filter-more { margin-top: 0.5rem; }
.filter-more > summary { cursor: pointer; list-style: revert; }

/* Feed card conversation (2026-11-19, as on dynamicshub.net): pill actions, comments, @ tags. */
.post-actions .post-action { border-radius: 999px; }
.post-comment { background: var(--glass-bg-frost); border-radius: 0.75rem; padding: 0.4rem 0.75rem; }
.post-comment-form textarea { resize: vertical; min-height: 2.25rem; }
/* Opens ABOVE the box: below it, the card's rounded, clipped edge cuts the list off. */
.mention-menu { top: auto; bottom: 100%; left: 0; margin-bottom: 0.25rem; max-height: 14rem; overflow-y: auto; }
.mention { font-weight: 600; color: var(--primary-blue); }

/* Home feed: "For you" / "Latest" (utils/feedRanking.js). */
.feed-sort { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.feed-sort-pills { display: inline-flex; background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 999px; padding: 2px; }
.feed-sort-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.8rem;
  border-radius: 999px; text-decoration: none; color: inherit;
}
.feed-sort-pill.active { background: rgba(1, 118, 211, 0.12); color: var(--primary-blue); }
