/* ═══════════════════════════════════════════════════════════
   NuclearReady — shared brand stylesheet
   Tokens taken from the live nuccol.co.uk site (services.html),
   so the directory reads as part of the same site rather than
   a lookalike.

   Used by: NuclearReady_Landing (B), NuclearReady (A),
            NuclearReady_Company (C), NuclearReady_Map (D),
            NuclearReady_Compare (E)

   Type scale tightened 2026-10-14: this is a working directory,
   not a brochure. You need to see whether a company matches a
   filter without scrolling, so density beats presence.

   Each page must also load the fonts:
   <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600;700&display=swap" rel="stylesheet">
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Live site tokens */
  --navy:      #0a1628;
  --navy2:     #0e2040;
  --cyan:      #29b6e8;   /* on navy only — fails contrast on light */
  --cyan2:     #1a96c8;   /* cyan for text on light backgrounds */
  --light:     #e8eef6;
  --white:     #fff;
  --grey:      #8a9bb0;   /* on navy only */
  --border:    rgba(41,182,232,0.18);
  --border-strong: rgba(41,182,232,0.35);

  /* Extensions for this directory */
  --wash:      #f4f7fb;
  --wash2:     #f8fafd;
  --ink:       #1a1a2e;
  --ink-mute:  #5c6f85;   /* 4.6:1 on --wash, replaces --grey on light */
  --ink-soft:  #2b3b4f;
  --rule:      #eef3f8;
  --rule2:     #dfe7f0;
  --line:      #c8d6e4;
  --chip-bg:   #eaf5fc;
  --chip-ink:  #15314d;
  --on-navy:   rgba(232,238,246,0.78);

  --r:         4px;
  --pill:      999px;
  --gut:       56px;
  --maxw:      1360px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  background: var(--wash);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan2); }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Bands ───────────────────────────────────────────────── */
.band       { padding: 46px var(--gut); }
.band-dark  { background: var(--navy); color: var(--white); }
.band-light { background: var(--wash); color: var(--ink); }
.band-white { background: var(--white); color: var(--ink); }

.band-grid {
  background-image:
    linear-gradient(rgba(41,182,232,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,182,232,0.055) 1px, transparent 1px);
  background-size: 60px 60px;
}

.inner { max-width: var(--maxw); margin: 0 auto; }

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 15px;
  padding: 11px var(--gut);
  background: var(--navy);
  border-bottom: 1px solid var(--border);
}
.topbar-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.topbar-logo img { height: 27px; width: auto; }
.topbar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(232,238,246,0.7);
}
.topbar-pipe { width: 1px; height: 22px; background: var(--border-strong); }
.topbar-spacer { flex: 1 1 auto; }

.topbar-stats { display: flex; gap: 18px; }
.tstat { text-align: center; }
.tstat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px; font-weight: 800; line-height: 1; color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.tstat-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey); margin-top: 2px;
}

.nav-link {
  font-size: 13.5px; font-weight: 500; text-decoration: none;
  color: var(--light); padding: 9px 2px;
}
.nav-link:hover { color: var(--white); }
.nav-link.is-current { color: var(--cyan); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Barlow', sans-serif; font-size: 14.5px; font-weight: 600;
  padding: 11px 20px; min-height: 40px;
  border-radius: var(--r); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-sm { font-size: 13.5px; padding: 9px 15px; min-height: 36px; }
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: #4fc4ef; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--light); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--white); border-color: var(--cyan); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Eyebrow + headings ──────────────────────────────────── */
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--cyan); flex-shrink: 0; }
.eyebrow-text {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan);
}
.band-light .eyebrow::before, .band-white .eyebrow::before { background: var(--cyan2); }
.band-light .eyebrow-text, .band-white .eyebrow-text { color: var(--cyan2); }

h1, h2, h3, .h1, .h2, .h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.015em; line-height: 1; margin: 0;
}
h1, .h1 { font-size: clamp(34px, 4.2vw, 58px); line-height: 0.98; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(25px, 2.6vw, 36px); }
h3, .h3 { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: 0.005em; line-height: 1.12; }

.accent { color: var(--cyan); }
.band-light .accent, .band-white .accent { color: var(--cyan2); }

.lede { font-size: 15.5px; line-height: 1.6; max-width: 66ch; margin: 14px 0 0; }
.band-dark .lede { color: var(--on-navy); }
.band-light .lede, .band-white .lede { color: var(--ink-mute); }

/* ── Surfaces ────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.card-accent { border-top: 3px solid var(--cyan); }
.note {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--cyan);
  border-radius: var(--r);
  padding: 16px 20px;
}

/* ── Pills ───────────────────────────────────────────────── */
.pill {
  display: inline-block;
  font-size: 12px; line-height: 1.3; font-weight: 500;
  padding: 4px 10px; border-radius: var(--pill);
  background: var(--chip-bg); border: 1px solid var(--border-strong); color: var(--chip-ink);
}
.pill-granted { background: var(--cyan); border-color: var(--cyan); color: var(--navy); font-weight: 600; }
.pill-journey { background: var(--white); border-color: var(--line); color: var(--ink-soft); }
.band-dark .pill { background: rgba(255,255,255,0.07); border-color: var(--border-strong); color: var(--light); }
.pill-row { display: flex; flex-wrap: wrap; gap: 5px; }

/* ── Forms ───────────────────────────────────────────────── */
.field {
  width: 100%;
  font-family: 'Barlow', sans-serif; font-size: 15px;
  padding: 11px 14px; min-height: 40px;
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--white); color: var(--ink);
}
.band-dark .field {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-strong);
  color: var(--white);
}
.band-dark .field::placeholder { color: var(--grey); }
.searchbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; max-width: 680px; }
.searchbar .field { flex: 999 1 340px; min-width: 0; width: auto; }
.searchbar .btn { flex: 1 0 auto; }

.check { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.check input { width: 14px; height: 14px; margin: 2px 0 0; accent-color: var(--cyan); flex-shrink: 0; }
.check label { font-size: 13px; line-height: 1.35; color: var(--ink-soft); cursor: pointer; }

/* ── Filter group headings ───────────────────────────────── */
.rail-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy);
}
.rail-count { font-size: 12px; color: var(--ink-mute); }

/* ── Data table ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.thead {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute);
  background: var(--wash2); border-bottom: 1px solid var(--rule2);
}
.trow { border-bottom: 1px solid var(--rule); }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: #fbfdff; }
.co-name {
  font-family: 'Barlow', sans-serif;
  font-size: 15.5px; font-weight: 600; line-height: 1.25;
  color: var(--navy); text-decoration: none; display: block;
}
.co-name:hover { color: var(--cyan2); text-decoration: underline; }
.co-meta { font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
.co-mark {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--ink-mute);
  object-fit: contain;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--navy); color: var(--light); padding: 42px var(--gut) 28px; }
.footer h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cyan);
  margin: 0 0 10px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; }
.footer a { color: var(--light); text-decoration: none; font-size: 13.5px; }
.footer a:hover { color: var(--cyan); text-decoration: underline; }
.footer-tagline { font-size: 13.5px; line-height: 1.55; color: var(--on-navy); max-width: 44ch; margin-top: 10px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; }
.disclaimer { font-size: 12px; line-height: 1.6; color: var(--grey); max-width: 112ch; }
.disclaimer strong { color: var(--light); }
.footer-powered { font-size: 12.5px; color: var(--grey); margin-top: 13px; }

/* ── Empty / loading ─────────────────────────────────────── */
.empty { padding: 44px 24px; text-align: center; color: var(--ink-mute); font-size: 15px; }
.spinner {
  width: 24px; height: 24px; margin: 0 auto 12px;
  border: 3px solid var(--border-strong); border-top-color: var(--cyan);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --gut: 18px; }
  .band { padding: 34px var(--gut); }
  .topbar { gap: 10px; }
  .topbar-title, .topbar-pipe { display: none; }
  .topbar-stats { gap: 14px; order: 3; width: 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
