/*
Theme Name: BIOS.ie Launch Landing
Version: 0.2.0
Author: Avant Garde Web
Description: Static launch landing page for BIOS.ie with dynamic data placeholders.
*/

:root {
  --bios-ocean: #0B1D33;
  --bios-ink: #071827;
  --bios-surface: #F5F7F9;
  --bios-card: rgba(11, 29, 51, 0.78);
  --bios-card-strong: rgba(6, 18, 32, 0.92);
  --bios-line: rgba(228, 233, 238, 0.18);
  --bios-cloud: #E6EBEF;
  --bios-muted: #A7B4C1;
  --bios-teal: #0E4A5A;
  --bios-sea: #1FA79A;
  --bios-aurora: #72F0BA;
  --bios-moss: #2E6B4E;
  --bios-amber: #E2A84A;
  --bios-warning: #FFAA2B;
  --bios-max: 1180px;
  --bios-radius: 26px;
  --bios-shadow: 0 24px 70px rgba(0, 0, 0, .26);
  --bios-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --bios-sans: "Montserrat", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bios-ocean);
}

body {
  margin: 0;
  color: white;
  font-family: var(--bios-sans);
  background:
    radial-gradient(circle at 82% 12%, rgba(31, 167, 154, .24), transparent 28rem),
    radial-gradient(circle at 12% 45%, rgba(114, 240, 186, .1), transparent 25rem),
    linear-gradient(180deg, #061526 0%, #0B1D33 54%, #061526 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

.site-shell {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 80%);
  opacity: .55;
}

.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 74% 42%, rgba(31, 167, 154, .14), transparent 18rem),
    radial-gradient(circle at 56% 36%, rgba(226, 168, 74, .07), transparent 18rem);
  pointer-events: none;
}

.skip-link {
  position: absolute;
  top: -44px;
  left: 1rem;
  padding: .75rem 1rem;
  z-index: 50;
  background: var(--bios-aurora);
  color: var(--bios-ocean);
  border-radius: 999px;
  transition: top .2s ease;
}

.skip-link:focus { top: 1rem; }

.container {
  width: min(calc(100% - 2rem), var(--bios-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(4, 18, 32, .78);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .78rem;
  min-width: 196px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
}

.brand-wordmark {
  display: grid;
  line-height: .9;
}

.brand-wordmark strong {
  font-family: var(--bios-serif);
  font-size: clamp(2.15rem, 4vw, 3rem);
  letter-spacing: .02em;
  font-weight: 600;
}

.brand-wordmark span {
  margin-top: .3rem;
  font-size: .52rem;
  letter-spacing: .035em;
  color: rgba(255,255,255,.82);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  color: rgba(255,255,255,.88);
  font-size: .95rem;
}

.main-nav a {
  position: relative;
  padding-block: .5rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .1rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bios-sea), var(--bios-aurora));
  transition: width .2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,.85);
}

.domain-chip {
  padding: .52rem .8rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  font-weight: 600;
}

.status-bar {
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 25, 41, .75);
}

.status-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: auto;
  scrollbar-width: none;
  color: rgba(255,255,255,.76);
  font-size: .85rem;
  white-space: nowrap;
}

.status-inner::-webkit-scrollbar { display: none; }

.status-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.status-item + .status-item {
  border-left: 1px solid rgba(255,255,255,.16);
  padding-left: 1rem;
}

.live-dot {
  width: .62rem;
  height: .62rem;
  border-radius: 999px;
  background: #24E070;
  box-shadow: 0 0 0 .35rem rgba(36,224,112,.08);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 .25rem rgba(36,224,112,.08); }
  50% { transform: scale(1.14); box-shadow: 0 0 0 .6rem rgba(36,224,112,.02); }
}

.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7.5rem) 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr);
  gap: clamp(2rem, 5vw, 4.8rem);
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: var(--bios-aurora);
  letter-spacing: .17em;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 700;
}

.kicker::before {
  content: "";
  width: 38px;
  height: 2px;
  background: linear-gradient(90deg, var(--bios-sea), var(--bios-aurora));
  border-radius: 999px;
}

h1 {
  margin: 0;
  font-family: var(--bios-serif);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.045em;
  font-size: clamp(3.8rem, 9vw, 7.9rem);
  max-width: 760px;
}

.hero-copy {
  max-width: 650px;
  margin: 1.35rem 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 54px;
  padding: 0 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }

.button.primary {
  background: linear-gradient(135deg, #129e91, #1FA79A 50%, #72F0BA);
  color: var(--bios-ocean);
  box-shadow: 0 14px 38px rgba(31,167,154,.26);
}

.button.secondary {
  border-color: rgba(114,240,186,.45);
  background: rgba(255,255,255,.04);
  color: white;
}

.orbital-panel {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.ireland-orb {
  position: absolute;
  width: min(96vw, 620px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(114,240,186,.16), transparent 17%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 58px, rgba(114,240,186,.08) 60px 62px),
    radial-gradient(circle at 50% 50%, rgba(31,167,154,.12), transparent 60%);
  opacity: .95;
  animation: slowspin 52s linear infinite;
}

@keyframes slowspin { to { transform: rotate(360deg); } }

.ireland-shape {
  position: relative;
  width: min(72vw, 390px);
  aspect-ratio: .72;
  border-radius: 54% 46% 48% 52% / 62% 48% 52% 38%;
  transform: rotate(-10deg);
  background:
    radial-gradient(circle at 45% 20%, rgba(242, 224, 143, .55), transparent 18%),
    linear-gradient(135deg, rgba(114,240,186,.82), rgba(31,167,154,.72) 42%, rgba(46,107,78,.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M0 45 Q22 34 45 45 T90 45 M0 63 Q22 52 45 63 T90 63 M0 27 Q22 16 45 27 T90 27' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='2'/%3E%3C/svg%3E");
  box-shadow: 0 0 90px rgba(114,240,186,.2), inset 0 0 60px rgba(11,29,51,.2);
}

.ireland-shape::before,
.ireland-shape::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--bios-aurora);
  box-shadow: 0 0 18px var(--bios-aurora);
}

.ireland-shape::before { width: 11px; height: 11px; left: 48%; top: 24%; }
.ireland-shape::after { width: 8px; height: 8px; left: 62%; top: 55%; }

.co2-card {
  position: absolute;
  right: 0;
  bottom: 24px;
  width: min(100%, 400px);
  padding: 1.45rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 72% 0%, rgba(31,167,154,.18), transparent 16rem),
    rgba(6,18,32,.88);
  box-shadow: var(--bios-shadow);
  backdrop-filter: blur(16px);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--bios-aurora);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.co2-value {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: 1.1rem 0 .6rem;
}

.co2-value strong {
  font-family: var(--bios-serif);
  font-size: clamp(4.6rem, 8vw, 6.5rem);
  line-height: .9;
  font-weight: 600;
  letter-spacing: -.04em;
}

.co2-value span {
  font-size: 1.3rem;
  color: rgba(255,255,255,.88);
}

.sparkline {
  width: 100%;
  height: 62px;
  margin: .5rem 0 1rem;
}

.source-note {
  color: rgba(255,255,255,.65);
  font-size: .86rem;
  line-height: 1.55;
}

.signal-strip {
  padding: 1rem 0 4.2rem;
}

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

.signal-card {
  min-height: 170px;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(8, 24, 39, .72);
  box-shadow: 0 14px 48px rgba(0,0,0,.16);
  backdrop-filter: blur(14px);
}

.signal-card .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255,255,255,.68);
  font-size: .8rem;
}

.signal-card h2 {
  margin: 1rem 0 .4rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

.signal-card .metric {
  font-family: var(--bios-serif);
  font-size: 2.35rem;
  line-height: 1;
  color: var(--bios-aurora);
}

.signal-card .metric.warning { color: var(--bios-amber); }

.signal-card p {
  margin: .6rem 0 0;
  color: rgba(255,255,255,.66);
  line-height: 1.55;
  font-size: .92rem;
}

.repository {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, rgba(245,247,249,.98), #ffffff);
  color: var(--bios-ocean);
}

.repository-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.section-kicker {
  color: #0D8B80;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 800;
}

.repository h2 {
  margin: .8rem 0 0;
  font-family: var(--bios-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: .96;
  letter-spacing: -.035em;
}

.repository p {
  color: #435465;
  line-height: 1.75;
  font-size: 1.05rem;
}

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

.source-card {
  padding: 1.25rem;
  border-radius: 18px;
  background: #F5F7F9;
  border: 1px solid #E3E9EF;
}

.source-card strong {
  display: block;
  margin-bottom: .4rem;
  color: var(--bios-ocean);
}

.source-card span {
  color: #56616D;
  line-height: 1.6;
  font-size: .92rem;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.68);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .92rem;
}

.footer-inner a { color: var(--bios-aurora); }

.version {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.version::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: var(--bios-aurora);
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero-grid, .repository-grid { grid-template-columns: 1fr; }
  .orbital-panel { min-height: 460px; }
  .co2-card { position: relative; right: auto; bottom: auto; margin-top: 2rem; }
  .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .header-inner { min-height: 72px; }
  .brand-wordmark strong { font-size: 2rem; }
  .brand-wordmark span { display: none; }
  .domain-chip { display: none; }
  .hero { padding-top: 3rem; }
  .orbital-panel { min-height: 360px; }
  .ireland-shape { width: min(72vw, 270px); }
  .signal-grid, .source-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
}


/* ─────────────────────────────────────────────
   v0.1.1 refinement
   - Removed the ambiguous oval/island shape in the hero.
   - Replaced it with a subtle BIOS globe watermark/radar field.
   - Improved header logo legibility at small sizes.
   ───────────────────────────────────────────── */

.brand-icon {
  object-fit: contain;
  background: rgba(255,255,255,.03);
  padding: 2px;
}

.orbital-panel {
  min-height: 500px;
}

.ireland-shape {
  display: none !important;
}

.ireland-orb {
  width: min(92vw, 560px);
  opacity: .72;
  background:
    radial-gradient(circle at 50% 50%, rgba(114,240,186,.12), transparent 17%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 58px, rgba(114,240,186,.085) 60px 62px),
    radial-gradient(circle at 50% 50%, rgba(31,167,154,.08), transparent 60%);
}

.orbital-panel::before {
  content: "";
  position: absolute;
  width: min(70vw, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("../img/bios-icon.svg") center / contain no-repeat;
  opacity: .135;
  filter: saturate(1.15);
  transform: translate(-7%, -5%);
  pointer-events: none;
}

.orbital-panel::after {
  content: "";
  position: absolute;
  width: min(82vw, 520px);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(114,240,186,.12);
  box-shadow:
    0 0 0 48px rgba(31,167,154,.025),
    0 0 0 96px rgba(114,240,186,.018);
  pointer-events: none;
}

.co2-card {
  right: 6px;
  bottom: 46px;
}

@media (max-width: 980px) {
  .orbital-panel::before {
    width: min(78vw, 330px);
  }

  .co2-card {
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .orbital-panel {
    min-height: auto;
    padding: 2rem 0 .4rem;
  }

  .orbital-panel::before,
  .orbital-panel::after,
  .ireland-orb {
    opacity: .32;
  }
}


/* ─────────────────────────────────────────────
   v0.1.3 lean asset/header logo refinement
   - Uses a dedicated optimised header logo PNG.
   - Removes clipped icon/text split in the header.
   - Keeps the rest of the landing page layout unchanged.
   ───────────────────────────────────────────── */

.brand--image {
  min-width: 0;
  width: clamp(148px, 19vw, 245px);
  gap: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 620px) {
  .brand--image {
    width: 150px;
  }

  .brand-logo {
    max-height: 56px;
  }
}


/* ─────────────────────────────────────────────
   v0.1.4 navigation / brand identity refinement
   - Removes the mismatched raster header-logo background.
   - Uses SVG icon + CSS-rendered BIOS wordmark and strapline.
   - Gives the header a stronger, cleaner brand presence.
   ───────────────────────────────────────────── */

.site-header {
  background: linear-gradient(180deg, rgba(4, 18, 32, .98) 0%, rgba(4, 18, 32, .92) 100%);
  border-bottom: 1px solid rgba(114, 240, 186, .12);
}

.header-inner {
  min-height: 92px;
  align-items: center;
}

.brand,
.brand:visited {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 260px;
  width: auto;
  color: #ffffff;
}

.brand-icon {
  width: 68px;
  height: 68px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center;
  flex: 0 0 68px;
  filter: drop-shadow(0 0 18px rgba(31, 167, 154, .22)) drop-shadow(0 8px 24px rgba(0, 0, 0, .22));
}

.brand-wordmark {
  display: grid;
  line-height: 1;
  transform: translateY(1px);
}

.brand-wordmark strong {
  display: block;
  font-family: var(--bios-serif);
  font-size: clamp(2.45rem, 3.4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: .035em;
  color: #ffffff;
  text-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.brand-wordmark span {
  display: block;
  margin-top: .24rem;
  font-family: var(--bios-sans);
  font-size: .54rem;
  font-weight: 600;
  letter-spacing: .075em;
  color: rgba(230, 235, 239, .76);
  white-space: nowrap;
}

.brand--image,
.brand-logo {
  all: unset;
}

.main-nav {
  margin-left: auto;
  gap: clamp(1.35rem, 2.3vw, 2.45rem);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.main-nav a { color: rgba(255, 255, 255, .84); }

.main-nav a:hover,
.main-nav a:focus-visible { color: #ffffff; }

.domain-chip {
  border-color: rgba(114, 240, 186, .22);
  background: rgba(255, 255, 255, .055);
  color: #ffffff;
  font-weight: 800;
  padding: .62rem .95rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.status-bar {
  background: rgba(5, 21, 36, .82);
  border-top: 1px solid rgba(255,255,255,.035);
  border-bottom: 1px solid rgba(114, 240, 186, .12);
}

.status-inner { min-height: 46px; }

@media (max-width: 980px) {
  .header-inner { min-height: 84px; }
  .brand { min-width: 0; }
  .brand-icon { width: 58px; height: 58px; flex-basis: 58px; }
  .brand-wordmark strong { font-size: 2.35rem; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 76px; }
  .brand { gap: .72rem; }
  .brand-icon { width: 50px; height: 50px; flex-basis: 50px; }
  .brand-wordmark strong { font-size: 2rem; letter-spacing: .025em; }
  .brand-wordmark span { display: none; }
}


/* ─────────────────────────────────────────────
   v0.1.5 locked brand + CO₂ hero refinement
   - Restores the locked BIOS logo direction using a transparent nav logo.
   - Removes the off-centre globe/oval/radar object behind the CO₂ card.
   - Keeps the CO₂ card as the clean visual anchor on the landing page.
   ───────────────────────────────────────────── */

.brand--locked,
.brand--locked:visited {
  display: flex;
  align-items: center;
  min-width: 0;
  width: clamp(230px, 23vw, 330px);
  color: #fff;
}

.brand-logo-locked {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .28));
}

.brand-icon,
.brand-wordmark,
.brand--image,
.brand-logo {
  display: none !important;
}

.header-inner {
  min-height: 92px;
}

.main-nav {
  margin-left: auto;
}

.orbital-panel {
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.ireland-shape,
.ireland-orb,
.orbital-panel::before,
.orbital-panel::after {
  display: none !important;
  content: none !important;
}

.co2-card {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(100%, 390px);
  z-index: 2;
  transform: translateX(8%);
}

.co2-card::before {
  content: "";
  position: absolute;
  inset: -46px;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(31, 167, 154, .10), transparent 62%),
    repeating-radial-gradient(circle, rgba(114,240,186,.10) 0 1px, transparent 2px 54px);
  opacity: .48;
  pointer-events: none;
}

@media (max-width: 980px) {
  .brand--locked {
    width: 250px;
  }

  .orbital-panel {
    min-height: auto;
    padding: 2rem 0 .8rem;
  }

  .co2-card {
    transform: none;
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .brand--locked {
    width: 190px;
  }

  .brand-logo-locked {
    max-height: 56px;
  }

  .header-inner {
    min-height: 76px;
  }

  .co2-card::before {
    inset: -28px;
  }
}


/* ─────────────────────────────────────────────
   v0.1.6 brand scale refinement
   - Enlarges the locked BIOS header logo by roughly 50%.
   - Keeps the CO₂ transparency / signal-field treatment.
   - Adjusts nav spacing so the enlarged brand has room to breathe.
   ───────────────────────────────────────────── */

.header-inner {
  min-height: 122px;
}

.brand--locked,
.brand--locked:visited {
  width: clamp(345px, 34vw, 495px);
  flex: 0 0 auto;
}

.brand-logo-locked {
  max-height: 112px;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  gap: clamp(1rem, 1.75vw, 1.9rem);
  font-size: .98rem;
}

.header-actions {
  flex-shrink: 0;
}

.status-inner {
  min-height: 44px;
}

@media (max-width: 1180px) {
  .brand--locked,
  .brand--locked:visited {
    width: clamp(300px, 32vw, 410px);
  }

  .brand-logo-locked {
    max-height: 96px;
  }

  .main-nav {
    gap: 1.05rem;
    font-size: .92rem;
  }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 96px;
  }

  .brand--locked,
  .brand--locked:visited {
    width: 300px;
  }

  .brand-logo-locked {
    max-height: 82px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 84px;
  }

  .brand--locked,
  .brand--locked:visited {
    width: 230px;
  }

  .brand-logo-locked {
    max-height: 66px;
  }
}


/* ─────────────────────────────────────────────
   v0.1.7 mobile footer cleanup
   - Prevents footer items breaking awkwardly on mobile.
   - Stacks copyright, author credit and version/update line cleanly.
   - Keeps the desktop footer unchanged apart from safer wrapping.
   ───────────────────────────────────────────── */

.site-footer {
  padding: 1.65rem 0;
}

.footer-inner {
  align-items: center;
  line-height: 1.45;
}

.footer-inner > span {
  min-width: 0;
}

.footer-inner .version {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-footer {
    padding: 2rem 0 calc(2.2rem + env(safe-area-inset-bottom));
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .72rem;
    font-size: .95rem;
    line-height: 1.45;
  }

  .footer-inner > span {
    display: block;
    width: 100%;
  }

  .footer-inner > span:first-child {
    max-width: 18rem;
  }

  .footer-inner a {
    font-weight: 600;
  }

  .footer-inner .version {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    white-space: normal;
    max-width: 100%;
  }

  .footer-inner .version::before {
    flex: 0 0 .45rem;
    margin-right: .1rem;
  }

  .footer-inner .version [data-version] {
    white-space: nowrap;
    font-weight: 600;
    color: rgba(255,255,255,.78);
  }

  .footer-inner .version [data-last-updated] {
    display: inline;
    white-space: normal;
    color: rgba(255,255,255,.72);
  }
}

@media (max-width: 420px) {
  .footer-inner {
    font-size: .9rem;
  }

  .footer-inner > span:first-child {
    max-width: 16.5rem;
  }
}


/* ─────────────────────────────────────────────
   v0.2.0 JSON-driven signal system
   - Signal, source and briefing cards now have render states.
   - Adds briefing pills and source-link affordances.
   ───────────────────────────────────────────── */

.signal-card--loading {
  opacity: .72;
}

.signal-card .status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .8rem;
  padding: .32rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.signal-card a.card-link,
.source-card a.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: .85rem;
  color: var(--bios-aurora);
  font-size: .82rem;
  font-weight: 700;
}

.signal-card .metric span.unit-small {
  margin-left: .25rem;
  font-family: var(--bios-sans);
  font-size: .92rem;
  color: rgba(255,255,255,.72);
}

.source-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.source-card .source-type {
  display: inline-flex;
  width: fit-content;
  margin-top: .8rem;
  padding: .28rem .5rem;
  border-radius: 999px;
  background: rgba(31, 167, 154, .10);
  color: #0D8B80;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.briefing-list {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.4rem;
}

.briefing-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--bios-ocean);
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(11, 29, 51, .16);
}

.briefing-pill:hover {
  background: #102B48;
}

@media (max-width: 620px) {
  .briefing-list {
    flex-direction: column;
  }

  .briefing-pill {
    justify-content: center;
    width: 100%;
  }
}
