/* ── Hero Title (institutional name) ───────────────────── */
.hero__title {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.hero__title::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero__tagline {
  font-family: var(--font-mono);
  /* Larger, editorial display size for the banner. */
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  font-weight: 500;
  font-style: normal;
  color: var(--heading);
  margin-bottom: var(--s5);
  line-height: var(--lh-display);
  letter-spacing: -0.02em;
}
.hero__tagline .t-accent  { color: var(--accent-bright); }
.hero__tagline .t-amber   { color: var(--amber); }
.hero__tagline .t-teal    { color: var(--teal); }
.tagline__line { display: block; }
.hero__links {
  margin-top: var(--s6);
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
}
.hero__links a {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  padding: var(--s2) var(--s4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
  background: var(--surface);
}
.hero__links a:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-dim);
  box-shadow: var(--glow-accent);
  text-decoration: none;
}

/* ── Active Work Cards ─────────────────────────────────── */
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.work-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--teal) 100%);
  /* Static, category-coloured top bar (was hover-only) so card grids carry a
     visible accent rhythm; brightens fully on hover. */
  opacity: 0.7;
  transition: opacity 0.25s;
}
.work-card--amber::before {
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber-bright) 100%);
}
.work-card:hover {
  border-color: rgba(var(--accent-rgb),0.35);
  background: var(--grad-card-hover);
  box-shadow: var(--glow-accent);
  transform: translateY(-3px);
}
.work-card:hover::before {
  opacity: 1;
}
.work-card__status {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  margin-bottom: var(--s3);
}
.work-card__title {
  font-family: var(--font-sans);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: var(--lh-title);
  letter-spacing: -0.01em;
  margin-bottom: var(--s3);
  color: var(--heading);
}
.work-card__body {
  font-size: var(--fs-base);
  color: var(--text-soft);
  line-height: var(--lh-body);
}
.work-card__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--s4);
  border: 1px solid var(--border);
  transition: filter 0.25s;
}
.work-card:hover .work-card__image {
  filter: brightness(1.08);
}

/* ── Pipeline List ─────────────────────────────────────── */
.pipeline-subhead {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-group-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: var(--s6);
  margin-bottom: var(--s4);
  padding: 4px 12px;
  background: var(--surface-2);
  border-radius: 99px;
  border: 1px solid var(--border);
}
.status-group-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-group-label .dot--active { background: var(--green); }
.status-group-label .dot--building { background: var(--amber); }
.status-group-label .dot--planned { background: transparent; border: 1px solid var(--text-muted); }

.pipeline-list {
  list-style: none;
  margin-top: var(--s3);
}
.pipeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s3);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  color: var(--text-muted);
  align-items: baseline;
}
.pipeline-item__icon {
  color: var(--accent);
  text-align: center;
  font-weight: 700;
}
.pipeline-item__name {
  color: var(--heading);
  font-weight: 600;
}
.pipeline-item__desc {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: var(--s3);
}

/* ── Education Cards ───────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s4);
  margin-top: var(--s5);
}

/* ── CTA Section ───────────────────────────────────────── */
.cta-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s3) var(--s5);
  margin-top: var(--s5);
}
.cta-label {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.cta-text {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: var(--lh-body);
}

/* ── Map Container ─────────────────────────────────────── */
.map-wrap {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: var(--s5);
  background: var(--surface);
}

/* Tooltip for the D3 station map */
.map-station-tip {
  display: none;
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: var(--lh-body);
  max-width: 220px;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.map-station-tip strong { color: var(--text); }
.map-station-tip a { color: var(--accent); }

/* Pulse animation for live station markers on the D3 map */
@keyframes station-pulse {
  0%   { transform: scale(0.8); opacity: 0.75; }
  100% { transform: scale(2.8); opacity: 0; }
}
.pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: station-pulse 2s ease-out infinite;
}

/* ── Notice / Alert ────────────────────────────────────────
   Usage: <div role="note" class="notice notice--warning">
            <span class="notice__icon" aria-hidden="true">⚠</span>
            <div> … </div>
          </div>                                                    */
.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  border-left: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s5);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--text-muted);
}
.notice--warning {
  background: rgba(var(--amber-rgb), 0.07);
  border-left-color: var(--amber);
}
.notice__icon {
  flex-shrink: 0;
  color: var(--amber);
}
.notice strong { color: var(--amber); }
.notice a      { color: var(--amber); }

/* ── Sim note — small honest footnote for simulated data ── */
.sim-note {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--border);
  line-height: var(--lh-body);
}
.sim-note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── "Where HICS is now" status board (homepage, under hero) ──────────────────
   Honest, no-PR snapshot of the institution's stage, grouped Running / Building
   / Planned. A deliberate band between the calm hero and the live-data panel —
   replaces the old single-line mono ticker. */
.status-board {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(var(--accent-rgb), 0.04);
  padding: var(--s6) 0 var(--s7);
}
.status-board__head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.status-board__title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.status-board__gloss {
  font-size: var(--fs-sm);
  color: var(--text-dim);
}
.status-board__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.status-group__head {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: var(--s3);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--border);
}
.status-group--active .status-group__head { color: var(--green); }
.status-group--building .status-group__head { color: var(--amber); }
.status-group--planned .status-group__head { color: var(--text-muted); }
.status-group__count {
  margin-left: auto;
  color: var(--text-dim);
  font-weight: 400;
}
.status-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.status-item__label {
  display: inline-block;
  color: var(--heading);
  font-weight: 600;
  font-size: var(--fs-base);
}
a.status-item__label {
  text-decoration: none;
  border-bottom: 1px dashed var(--border-light);
}
a.status-item__label:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.status-item__detail {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}
@media (max-width: 760px) {
  .status-board__grid { grid-template-columns: 1fr; gap: var(--s6); }
}

/* ── Station Card (home-page live-data widget) ──────────── */
.station-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
}
.station-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--s4);
}
.station-card__id {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.station-card__id--green { color: var(--green); }
.station-card__name {
  font-weight: 600;
  font-size: var(--fs-base);
  margin-top: var(--s1);
}
.station-card__coords {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--s1);
}
.station-card__meta { text-align: right; }
.station-card__ts {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.station-card__freq {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: var(--s1);
}
.station-card__footer {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
}
.station-card__accuracy {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}
.station-card__openmeteo {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.station-card__openmeteo .om-label { font-family: var(--font-mono); color: var(--text-dim); }
.station-card__openmeteo .om-value { color: var(--text); font-weight: 500; }

/* ── Altitude gradient bar ──────────────────────────────── */
.alt-bar {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--s5);
}
.alt-bar__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.alt-bar__track {
  flex: 1;
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-sm);
}
.alt-bar__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: var(--radius-sm);
}
.alt-bar__delta {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--accent);
  padding-left: var(--s3);
  border-left: 1px solid var(--border);
  white-space: nowrap;
}
.alt-bar__unit {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  white-space: nowrap;
}

/* ── Chart legend / accuracy note ───────────────────────── */
.chart-legend {
  display: flex;
  gap: var(--s4);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.chart-legend__swatch {
  display: inline-block;
  width: 10px;
  height: 2px;
  vertical-align: middle;
  margin-right: 3px;
}
.chart-accuracy {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: var(--s2);
}

.map-summary {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--s4);
  text-align: center;
}

/* ── Data Gap Panels (homepage) ────────────────────────── */
.gap-panels {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.gap-panel {
  padding: var(--s5) var(--s6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--s6);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.gap-panel:hover {
  background: var(--surface);
}
.gap-panel--atmos { border-left: 3px solid var(--accent); }
.gap-panel--cosmic { border-left: 3px solid var(--amber); }
.gap-panel--building { border-left: 3px solid var(--green); }

.gap-panel__icon {
  flex-shrink: 0;
  margin-bottom: 0;
  margin-top: var(--s1);
}
.gap-panel__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.gap-panel__label {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--heading);
  margin-bottom: var(--s3);
}
.gap-panel__text {
  color: var(--text-soft);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

