:root {
  --bg: #eef4fc;
  --bg-soft: #f8fbff;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --ink: #123567;
  --muted: #5b6f93;
  --line: rgba(23, 71, 157, 0.13);
  --accent: #ee6823;
  --accent-soft: rgba(238, 104, 35, 0.12);
  --secondary: #17479d;
  --secondary-deep: #073484;
  --secondary-soft: rgba(23, 71, 157, 0.12);
  --gold: #ffde00;
  --shadow: 0 24px 64px rgba(10, 44, 112, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  /* Compact spacing scale — tune density here, all sections inherit. */
  --space-section: 0.55rem;   /* gap between panels/sections */
  --space-panel: 0.9rem;      /* inner padding of a panel */
  --space-grid: 0.6rem;       /* gap inside grids */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(23, 71, 157, 0.14), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(238, 104, 35, 0.18), transparent 22%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 42%, #e8f0fb 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.page-glow {
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.page-glow--left {
  top: -8rem;
  left: -10rem;
  background: rgba(23, 71, 157, 0.28);
}

.page-glow--right {
  top: 14rem;
  right: -12rem;
  background: rgba(238, 104, 35, 0.24);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: var(--space-panel);
  margin-bottom: var(--space-section);
}

.hero {
  position: relative;
  padding: 1rem 1.2rem;
  margin-bottom: var(--space-section);
  background: linear-gradient(135deg, var(--secondary-deep) 0%, var(--secondary) 62%, #2f65bf 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 72px rgba(7, 52, 132, 0.28);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 26rem;
  height: 26rem;
  right: -6rem;
  top: -9rem;
  background: radial-gradient(circle, rgba(238, 104, 35, 0.34), transparent 62%);
}

.hero::after {
  width: 22rem;
  height: 22rem;
  left: -7rem;
  bottom: -8rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 64%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

/* Official HUFLIT seal (assets/HUFLITLogoEnglish.png, transparent
   background). Size via height only — never stretch or recolor. */
.brand-logo {
  display: inline-block;
  height: 46px;
  width: auto;
  flex: none;
}

.brand-logo--sm {
  height: 30px;
}

.brand-logo--lg {
  height: 64px;
}

/* Logo + kicker/wordmark sitting together on one line. */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.hero .eyebrow {
  color: rgba(255, 222, 0, 0.92);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Mulish", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 0.2rem;
  font-size: clamp(1.6rem, 2.9vw, 2.45rem);
  line-height: 1.02;
  max-width: 24ch;
  color: #ffffff;
}

h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
  color: var(--secondary-deep);
}

h3 {
  font-size: 1.1rem;
  color: var(--secondary-deep);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: end;
  margin-top: 0.7rem;
}

.hero-copy,
.hero-note p,
.overview-card p,
.paper-card__summary,
.track-card p,
.missing-entry p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy {
  max-width: 56ch;
  margin: 0.55rem 0 0;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-note {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 32px rgba(8, 41, 108, 0.16);
}

.hero-note__title {
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--secondary);
}

.hero-note p {
  color: var(--muted);
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.9rem 0 0.2rem;
}

.quick-nav a,
.button,
.segmented button,
.text-button {
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.quick-nav a {
  text-decoration: none;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.quick-nav a:hover,
.button:hover,
.segmented button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.quick-nav a:hover {
  background: rgba(238, 104, 35, 0.18);
  border-color: rgba(255, 222, 0, 0.42);
}

.lang-toggle {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.lang-toggle button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 0.46rem 0.76rem;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.lang-toggle button.is-active {
  background: var(--accent);
  color: #ffffff;
}

.stats-grid,
.overview-grid,
.theme-layout,
.missing-layout,
.tracks-grid {
  display: grid;
  gap: var(--space-grid);
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card,
.overview-card,
.theme-card,
.missing-card,
.track-card {
  padding: 0.62rem 0.72rem;
  border-radius: calc(var(--radius-sm) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(23, 71, 157, 0.05);
}

.hero .stat-card {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 32px rgba(10, 42, 104, 0.18);
}

.stat-card__label {
  color: var(--muted);
  font-size: 0.84rem;
}

.stat-card__value {
  font-size: 1.65rem;
  font-weight: 800;
  margin-top: 0.25rem;
  color: var(--secondary-deep);
}

.stat-card__hint {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.section-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(23, 71, 157, 0.16);
  color: var(--secondary);
}

.button--solid {
  background: var(--accent);
  color: #fff9f2;
  box-shadow: 0 12px 24px rgba(238, 104, 35, 0.22);
}

.overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-focus {
  margin-top: 0.7rem;
}

.key-findings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.65rem;
}

.toolbar {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) minmax(200px, 260px);
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.segmented button {
  border: 1px solid rgba(23, 71, 157, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 0.62rem 0.92rem;
  cursor: pointer;
}

.segmented button.is-active {
  background: var(--secondary-deep);
  border-color: var(--secondary-deep);
  color: #effbfb;
}

.search-box input,
.select-box select {
  width: 100%;
  border: 1px solid rgba(23, 71, 157, 0.14);
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.results-meta {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.paper-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(23, 71, 157, 0.05);
}

.paper-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.paper-card__rank {
  min-width: 3.2rem;
  text-align: center;
  padding: 0.5rem 0.65rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.paper-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge--stream-ai {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.badge--stream-foundational {
  background: rgba(238, 104, 35, 0.12);
  color: var(--accent);
}

.badge--theme,
.pill {
  background: rgba(23, 71, 157, 0.08);
  color: var(--muted);
}

.badge--positive {
  background: rgba(255, 222, 0, 0.16);
  color: #7a6400;
}

.badge--muted {
  background: rgba(91, 111, 147, 0.12);
  color: var(--muted);
}

.paper-card__title {
  margin-top: 0.15rem;
  font-size: 1.12rem;
  line-height: 1.24;
}

.paper-card__authors {
  color: var(--muted);
  font-size: 0.94rem;
}

.paper-card__dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.paper-card__dl dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.paper-card__dl dd {
  margin: 0.18rem 0 0;
  font-weight: 600;
  line-height: 1.35;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.card-links a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 700;
}

.theme-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-bars {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.theme-bar__row {
  display: grid;
  gap: 0.28rem;
}

.theme-bar__label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.theme-bar__track {
  height: 12px;
  border-radius: 999px;
  background: rgba(23, 71, 157, 0.08);
  overflow: hidden;
}

.theme-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary-deep), var(--secondary) 64%, var(--accent));
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.paper-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: rgba(255, 255, 255, 0.92);
}

.paper-table thead {
  background: rgba(23, 71, 157, 0.06);
}

.paper-table th,
.paper-table td {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.paper-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.table-title {
  font-weight: 700;
  line-height: 1.4;
}

.table-meta {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-links {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.table-links a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
}

.missing-layout {
  grid-template-columns: 1fr 1fr;
}

.missing-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.missing-list {
  display: grid;
  gap: 0.8rem;
}

.missing-entry {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.missing-entry__title {
  font-weight: 700;
  line-height: 1.45;
}

.missing-entry__meta {
  color: var(--muted);
  margin: 0.25rem 0;
  font-size: 0.92rem;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font-weight: 700;
  padding: 0;
}

.tracks-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.track-card {
  position: relative;
  overflow: hidden;
}

.track-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(238, 104, 35, 0.18), transparent 60%);
}

.track-card__fit {
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.6rem;
}

.workflow-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.2rem;
  margin: 0;
}

.workflow-list li {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-up 500ms ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 80ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 140ms;
}

.reveal:nth-of-type(4) {
  animation-delay: 200ms;
}

.reveal:nth-of-type(5) {
  animation-delay: 260ms;
}

.reveal:nth-of-type(6) {
  animation-delay: 320ms;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .stats-grid,
  .overview-grid,
  .tracks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paper-grid,
  .theme-layout,
  .missing-layout,
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 1rem, 100%);
    padding: 0.75rem 0 2rem;
  }

  .panel,
  .hero {
    padding: 1rem;
    border-radius: 20px;
  }

  .toolbar,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .stats-grid,
  .overview-grid,
  .tracks-grid,
  .paper-grid {
    grid-template-columns: 1fr;
  }

  .paper-card__dl {
    grid-template-columns: 1fr;
  }

    h1 {
    max-width: none;
    line-height: 1;
  }
}

.section-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.7rem;
}

.coverage-grid,
.approaches-grid,
.principles-grid,
.roadmap-grid,
.status-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.65rem;
}

.coverage-grid,
.principles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.approaches-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coverage-card,
.approach-card,
.principle-card,
.roadmap-card,
.status-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.95rem;
}

.coverage-card__title,
.approach-card__name,
.roadmap-card__window,
.status-card__rank {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}

.coverage-card__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.coverage-card__row span,
.status-card__meta {
  color: var(--muted);
}

.coverage-card__row {
  margin-top: 0.5rem;
}

.insight-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.65rem;
}

.table-wrap--funnel {
  margin-top: 0.65rem;
}

.funnel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: rgba(255, 255, 255, 0.94);
}

.funnel-table th,
.funnel-table td {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.funnel-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(23, 71, 157, 0.06);
}

.funnel-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.brief-card {
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.brief-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.brief-card__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}

.insight-item {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  line-height: 1.55;
  color: var(--muted);
}

.approach-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.approach-card h3,
.principle-card h4,
.theme-card h3,
.missing-card h3 {
  margin-top: 0.2rem;
}

.principle-card h4 {
  margin-bottom: 0.45rem;
  font-family: "Mulish", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1rem;
  color: var(--secondary-deep);
}

.principle-card p,
.roadmap-card p,
.detail-block p,
.status-card__file {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.roadmap-card__window {
  margin-bottom: 0.55rem;
}

.note-details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.7rem 0.9rem;
}

.note-details + .note-details {
  margin-top: 0.7rem;
}

.note-details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.note-details summary::-webkit-details-marker {
  display: none;
}

.note-details summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.note-details[open] summary::after {
  content: "−";
}

.details-stack {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.65rem;
}

.detail-block {
  padding-top: 0.1rem;
}

.detail-block__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.theme-layout--quad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
}

.status-card__title {
  font-weight: 700;
  line-height: 1.45;
  margin-top: 0.45rem;
}

.status-card__file {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  word-break: break-word;
}

.lane-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.lane-item {
  text-decoration: none;
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.lane-item span {
  font-weight: 700;
  line-height: 1.45;
}

.lane-item small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.75rem;
}

.hero-actions .button {
  align-self: flex-start;
}

.recruit-intro {
  margin: 1rem 0;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.6;
}

#recruitment .recruit-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.recruit-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: 0 18px 32px rgba(7, 52, 132, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recruit-card__meta {
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid rgba(23, 71, 157, 0.1);
  padding-top: 0.75rem;
}

.recruit-card__label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--secondary);
}

.recruit-card__meta p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.recruit-detail-card {
  margin-top: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(23, 71, 157, 0.08);
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
}

.recruit-detail-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.recruit-detail-card p {
  margin: 0.4rem 0;
  color: var(--muted);
  line-height: 1.5;
}

.recruit-detail-card ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.recruit-detail-footnote {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-top: 0.65rem;
}

@media (max-width: 1080px) {
  .section-split,
  .approaches-grid,
  .coverage-grid,
  .principles-grid,
  .roadmap-grid,
  .status-grid,
  .theme-layout--quad,
  .funnel-brief,
  .key-findings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-topbar {
    flex-direction: column;
    align-items: start;
  }
}

/* ============================================================
   COMPACT HERO PACK
   A dense, space-efficient hero that stacks eyebrow+chip,
   title, one-line subtitle, an inline KPI row, and a segmented
   standard/tab selector into a single tight block. Use these
   instead of the airy .hero-grid layout when you want maximum
   information density at the top of a dashboard.
   ============================================================ */

/* Eyebrow row: kicker on the left, status/identity chip on the
   right — reclaims the otherwise-empty top-right corner. */
.hero-eye {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hero-eye > span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 222, 0, 0.92);
}

.who-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* One-line descriptor under the title. */
.hero-sub {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

/* Inline KPI strip — plain numbers, no card chrome, so several
   fit on one line and cost almost no vertical space. */
.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.7rem;
  margin-top: 0.65rem;
}

.kpi {
  display: flex;
  flex-direction: column;
}

.kpi b {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.kpi small {
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

/* Segmented selector: packs many icon + label + status controls
   into one slim bar with hairline separators. Ideal for tabs,
   standards, modules, or view switches. */
.std-selector {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 0.7rem;
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  overflow-x: auto;
}

.std-btn {
  flex: 1 1 0;
  min-width: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.45rem 0.4rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  text-align: center;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.std-btn:hover:not(.active):not(.disabled) {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.std-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.std-name {
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.std-tag {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.std-sep {
  flex: 0 0 1px;
  align-self: stretch;
  margin: 0.4rem 0;
  background: rgba(255, 255, 255, 0.14);
}

.std-btn.active {
  background: var(--panel-strong);
  color: var(--secondary-deep);
  box-shadow: inset 0 -3px 0 var(--accent), 0 8px 20px rgba(7, 52, 132, 0.2);
}

.std-btn.active .std-tag {
  background: var(--accent);
  color: #ffffff;
}

.std-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.std-btn.disabled .std-icon {
  filter: grayscale(1);
}

@media (max-width: 760px) {
  .std-selector {
    margin-top: 0.75rem;
  }
  .kpi-row {
    gap: 1rem 1.6rem;
  }
}
