/* BlueHorizon institutional layer for the career explorer (2026-12-03).
   Brings the explorer in line with the main site: same header, footer,
   navy primary buttons, plain page background and the shared dark palette. */

/* ── Tokens: match css/hub.css + css/theme.css ── */
html[data-theme="light"]:root, html:not([data-theme]):root {
  --c-page: #F7FAFD; --c-surface: #FFFFFF; --c-surface2: #EEF4FA; --c-field: #F7FAFD;
  --c-line: #D5E1EE; --c-line2: #E6EEF6;
  --c-ink: #0C2340; --c-muted: #48607C; --c-faint: #6F849C;
  --c-primary: #0C2340; --c-primary-h: #1D4E89; --c-accent: #1D4E89; --c-accent-h: #163E6F;
  --n-navy: #0C2340; --n-ocean: #1D4E89; --n-foam: #0E7586; --n-sand: #F7FAFD; --n-coral: #0C2340; --n-coral-h: #1D4E89;
  --hx-bg: #EEF4FA; --hx-bg2: #EEF4FA; --hx-ink: #0C2340; --hx-muted: #48607C; --hx-accent: #1D4E89; --hx-line: #D5E1EE; --hx-panel: #FFFFFF;
  --veil: transparent; --sea-halo: transparent; --halo: transparent;
  --ih-navy: #0C2340; --ih-cta-fg: #FFFFFF;
}
html[data-theme="dark"]:root {
  --c-page: #08172B; --c-surface: #0D2038; --c-surface2: #132B48; --c-field: #0F243E;
  --c-line: #1F3B5E; --c-line2: #182F4D;
  --c-ink: #E9F1FA; --c-muted: #A6BBD2; --c-faint: #8299B3;
  --c-primary: #7FB0EA; --c-primary-h: #9CC3F0; --c-accent: #7FB0EA; --c-accent-h: #9CC3F0;
  --n-navy: #06121F; --n-ocean: #7FB0EA; --n-foam: #4FC3D1; --n-sand: #08172B; --n-coral: #E9F1FA; --n-coral-h: #FFFFFF;
  --hx-bg: #0D2038; --hx-bg2: #0D2038; --hx-ink: #E9F1FA; --hx-muted: #A6BBD2; --hx-accent: #7FB0EA; --hx-line: #1F3B5E; --hx-panel: #132B48;
  --veil: transparent; --sea-halo: transparent; --halo: transparent;
  --ih-navy: #06121F; --ih-cta-fg: #08172B;
}

/* ── Plain backgrounds: no chart paper ── */
body, [data-theme="dark"] body { background: var(--c-page) !important; background-image: none !important; }
.vy-sea-bg, [data-theme="dark"] .vy-sea-bg { background-image: none !important; background-color: var(--c-surface2) !important; }
.view, .view * { text-shadow: none !important; }

/* ── Buttons: navy primary, 10px radius, no glow ── */
.nv-btn { border-radius: 10px; box-shadow: none !important; }
.nv-btn-cta, .bt-btn-coral { background: var(--n-coral) !important; color: var(--ih-cta-fg) !important; box-shadow: none !important; }
.nv-btn-cta:hover, .bt-btn-coral:hover { background: var(--n-coral-h) !important; color: var(--ih-cta-fg) !important; transform: none; }
.nv-btn-2 { background: transparent; border: 1.5px solid var(--c-ink); color: var(--c-ink); }
.nv-btn-2:hover { background: var(--c-ink); color: var(--c-page); border-color: var(--c-ink); }
.nv-m-cta { background: var(--n-coral) !important; color: var(--ih-cta-fg) !important; border-radius: 10px !important; }
.bt-btn { border-radius: 10px; }

/* ── Hero: navy band like the main site ── */
.nv-hero { position: relative; background: var(--ih-navy) !important; color: #fff; border-bottom: 0 !important; }
.nv-hero :is(.bt-display, h1) { color: #fff !important; }
html[data-theme] .nv-hero .bt-display em, html[data-theme] .nv-hero h1 em { color: #BFDBF7 !important; }
.nv-hero .bt-hero-lead { color: #C9D7E6 !important; }
.nv-hero .nv-kicker { color: #9FC3E6; }
.nv-hero .nv-kicker::before { background: #9FC3E6; }
.nv-hero .nv-btn-cta { background: #fff !important; color: #0C2340 !important; }
.nv-hero .nv-btn-cta:hover { background: #E6EEF6 !important; }
.nv-hero .nv-btn-2 { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.nv-hero .nv-btn-2:hover { background: #fff; color: #0C2340; }
.nv-hero .nv-stats { border-top-color: rgba(255,255,255,.18); }
.nv-hero .nv-stats dd { color: #fff; }
.nv-hero .nv-stats dt { color: #B5C7DA; }
.nv-hero :is(.nv-chart, .bt-hero-art, figure) { box-shadow: none; }
.nv-hero::after, [data-theme="dark"] .nv-hero::after { background: linear-gradient(90deg, rgba(10,31,58,.95) 0%, rgba(10,31,58,.86) 36%, rgba(10,31,58,.4) 60%, rgba(10,31,58,.1) 100%) !important; }
[data-theme="dark"] .nv-hero::after { background: linear-gradient(90deg, rgba(6,18,31,.96) 0%, rgba(6,18,31,.88) 36%, rgba(6,18,31,.45) 60%, rgba(6,18,31,.15) 100%) !important; }
.nv-hero-pic img { opacity: .8; }

/* ── Panels and cards ── */
.nv-panel { border-radius: 14px !important; border: 1px solid var(--c-line) !important; box-shadow: 0 18px 40px -24px rgba(12,35,64,.35) !important; }
section.bg-seafloor, .bt-hero:not(.nv-hero) { background: var(--c-surface2) !important; border-bottom: 1px solid var(--c-line); }
footer.ifoot { color: #C9D7E6; }

/* ── Institutional colour line ── */
.ih-line { display: flex; height: 5px; }
.ih-line i { flex: 1; background: var(--c); }

/* ── Institutional header (copy of .top, scoped) ── */
.ih-top { background: var(--c-page); border-bottom: 1px solid var(--c-line); font-family: 'Satoshi', 'Inter', system-ui, sans-serif; }
.ih-in { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); display: flex; align-items: center; gap: 24px; height: 68px; }
.ih-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); font: 700 1.3rem 'Zodiak', Georgia, serif; }
.ih-brand svg { flex: none; }
.ih-nav { display: flex; gap: 4px; margin-left: auto; }
.ih-nav a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; color: var(--c-muted); }
.ih-nav a:hover { color: var(--c-ink); background: var(--c-surface2); }
.ih-theme { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 6px; border-radius: 10px; border: 1.5px solid var(--c-line); background: transparent; color: var(--c-muted); cursor: pointer; }
.ih-theme:hover { color: var(--c-ink); border-color: var(--c-muted); background: var(--c-surface2); }
.ih-theme:focus-visible, .ih-nav a:focus-visible, .ih-brand:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (max-width: 980px) {
  .ih-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; row-gap: 4px; }
  .ih-theme { margin-left: auto; }
  .ih-nav { order: 3; width: 100%; margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
  .ih-nav::-webkit-scrollbar { display: none; }
  .ih-nav a { white-space: nowrap; }
}

/* ── Career explorer sub-bar ── */
.ih-sub { background: color-mix(in srgb, var(--c-page) 92%, transparent) !important; backdrop-filter: blur(10px); }
.ih-sub-label { font: 700 1.05rem 'Zodiak', Georgia, serif; color: var(--c-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ih-sub-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0E7586; }
[data-theme="dark"] .ih-sub-label::before { background: #4FC3D1; }
.ih-m-inst { border-top: 1px solid var(--c-line2) !important; margin-top: .3rem; }

/* ── Institutional footer (copy of .ifoot, scoped) ── */
.ifoot { background: #0C2340; color: #C9D7E6; padding: 56px 0 32px; font-family: 'Satoshi', 'Inter', system-ui, sans-serif; font-size: 1rem; line-height: 1.6; }
[data-theme="dark"] .ifoot { background: #050F1C; }
.ifoot-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.ifoot a { color: #E6EEF6; }
.ifoot .fam-home { color: #fff; text-decoration: none; display: inline-block; margin-bottom: 12px; font: 700 1.15rem 'Zodiak', Georgia, serif; }
.ifoot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.14); }
.ifoot-about p { max-width: 40ch; font-size: .95rem; margin: 0 0 10px; }
.ifoot .small { color: #9FB4CB; font-size: .88rem; }
.ifoot nav { display: flex; flex-direction: column; gap: 8px; font-size: .94rem; }
.ifoot nav a { text-decoration: none; }
.ifoot nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ifoot-h { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9FB4CB; margin: 0 0 4px; }
.ifoot .foot-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; font-size: .85rem; color: #9FB4CB; }
.ifoot .foot-small p { margin: 0; max-width: 70ch; }
.ifoot .foot-small a { margin-left: 18px; }
@media (max-width: 900px) { .ifoot-grid { grid-template-columns: 1fr 1fr; } .ifoot-about { grid-column: 1 / -1; } }
@media (max-width: 620px) { .ifoot-grid { grid-template-columns: 1fr; } .ifoot .foot-small a { margin: 0 18px 0 0; } }
