@font-face {
  font-family: "IBM Plex Sans";
  src: url("/ibm-plex-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --ink: #10283f;
  --ink-soft: #5c6f80;
  --navy: #040a1b;
  --navy-2: #071738;
  --blue: #005eb8;
  --blue-dark: #004784;
  --orange: #f28c28;
  --aqua: #43b9e7;
  --aqua-dark: #005eb8;
  --sky: #eaf4fb;
  --line: #d8dee6;
  --paper: #f3f5f7;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(8, 35, 56, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4, 10, 27, 0.96);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
}

.headerInner { min-height: 88px; display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 214px; height: auto; }
.headerProduct { display: grid; gap: 4px; margin-left: 6px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.2); line-height: 1; }
.headerProduct span { color: #8da2bb; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.headerProduct b { color: var(--white); font-size: 16px; font-weight: 600; }

.headerStatus { display: flex; align-items: center; gap: 9px; margin-left: auto; color: #aebbd0; font-size: 12px; }
.headerStatus > span, .pulseDot { width: 8px; height: 8px; background: #49d69c; border-radius: 50%; box-shadow: 0 0 0 5px rgba(73,214,156,.12); }

.hero {
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0,94,184,.2) 1px, transparent 1px) 0 0 / 80px 100%,
    radial-gradient(circle at 82% 0%, rgba(0,94,184,.44), transparent 34%),
    linear-gradient(135deg, var(--navy) 0%, #081333 100%);
  padding: 56px 0 62px;
}

.heroGrid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 72px; align-items: end; }
.eyebrow { margin: 0 0 15px; color: #74c6ea; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: var(--blue); margin-bottom: 9px; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(42px, 5.2vw, 62px); line-height: 1.01; letter-spacing: -.04em; font-weight: 650; }
.heroCopy { max-width: 680px; margin: 22px 0 0; color: #bdc7d7; font-size: 16px; line-height: 1.6; }

.summaryPanel { background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.15); border-top: 3px solid var(--orange); border-radius: 2px; padding: 21px 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; box-shadow: inset 0 1px rgba(255,255,255,.05); }
.summaryPanel div { display: grid; gap: 4px; }
.summaryPanel strong { font-size: 27px; letter-spacing: -.03em; }
.summaryPanel div span { color: #9eb6c5; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.summaryPanel p { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 7px 0 0; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.12); color: #c7d7e1; font-size: 13px; }

.content { padding: 48px 0 72px; }
.sectionIntro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.sectionIntro h2 { margin: 0; color: var(--navy); font-size: 31px; letter-spacing: -.035em; }
.sectionIntro > p { max-width: 420px; margin: 0; color: var(--ink-soft); line-height: 1.6; }

.region { margin-top: 30px; }
.regionHeading { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 13px; }
.regionHeading h3 { margin: 0; color: #445367; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.regionHeading span { color: #8092a0; font-size: 12px; }
.circuitList { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 7px 24px rgba(4,10,27,.055); }
.circuitRow { display: grid; grid-template-columns: 132px minmax(270px, 1fr) auto; gap: 22px; align-items: center; min-height: 88px; padding: 16px 20px; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); transition: background .18s ease, border-color .18s ease; }
.circuitRow:last-child { border-bottom: 0; }
.circuitRow:hover { border-left-color: var(--orange); background: #f8fbfd; }

.routeGraphic { display: flex; align-items: center; gap: 8px; }
.routeGraphic span { min-width: 40px; padding: 6px 5px; border: 1px solid #cad5e0; border-radius: 2px; color: #263c55; background: #f7f9fb; text-align: center; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.routeGraphic i { position: relative; flex: 1; height: 2px; background: var(--blue); }
.routeGraphic i::before, .routeGraphic i::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }
.routeGraphic i::before { left: 0; }
.routeGraphic i::after { right: 0; }

.circuitInfo h4 { margin: 0 0 6px; color: var(--navy); font-size: 16px; letter-spacing: -.01em; }
.circuitInfo p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.circuitInfo p span { padding: 0 4px; color: #aab7c0; }

.periodLinks { display: flex; align-items: center; gap: 7px; }
.periodLinks a { padding: 8px 10px; border-radius: 2px; color: #4b5f74; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .18s, color .18s, transform .18s; }
.periodLinks a:hover { color: var(--aqua-dark); background: var(--sky); transform: translateY(-1px); }
.periodLinks .primaryPeriod { padding-inline: 13px; background: var(--blue); color: var(--white); }
.periodLinks .primaryPeriod:hover { background: var(--blue-dark); color: var(--white); }

footer { border-top: 3px solid var(--blue); background: var(--navy); color: #9bb0bf; }
.footerInner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; }
.footerInner a { color: #d4e2ea; text-decoration: none; }
.footerInner a:hover { color: var(--aqua); }

.detailHero { color: var(--white); background: radial-gradient(circle at 85% 0%, rgba(0,94,184,.4), transparent 32%), linear-gradient(145deg, var(--navy), var(--navy-2)); padding: 34px 0 0; }
.backLink { display: inline-block; margin-bottom: 28px; color: #9fb4cd; font-size: 12px; font-weight: 700; text-decoration: none; }
.backLink:hover { color: var(--white); }
.detailTitleRow { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.detailTitleRow h1 { margin: 0; font-size: clamp(34px, 4.2vw, 50px); line-height: 1.04; letter-spacing: -.04em; }
.detailTitleRow > div > p:last-child { margin: 18px 0 0; color: #aac0ce; }
.refreshButton { margin-bottom: 3px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 2px; color: #d8e5ec; font-size: 12px; font-weight: 700; text-decoration: none; }
.refreshButton:hover { background: rgba(255,255,255,.08); color: var(--white); }

.periodTabs { display: flex; gap: 3px; margin-top: 36px; }
.periodTabs a { min-width: 120px; padding: 12px 16px 14px; border-radius: 2px 2px 0 0; color: #96adbc; text-decoration: none; transition: background .18s, color .18s; }
.periodTabs a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.periodTabs a.active { box-shadow: inset 0 3px var(--orange); color: var(--navy); background: var(--paper); }
.periodTabs span, .periodTabs small { display: block; }
.periodTabs span { font-size: 14px; font-weight: 750; }
.periodTabs small { margin-top: 3px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }

.graphContent { padding: 28px 0 72px; }
.metricLegend { display: flex; align-items: center; gap: 26px; padding: 14px 17px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 2px; background: var(--white); color: var(--ink-soft); font-size: 12px; }
.metricLegend p { display: flex; align-items: center; gap: 7px; margin: 0; white-space: nowrap; }
.metricLegend p i { width: 9px; height: 9px; border-radius: 50%; }
.metricLegend b { color: var(--ink); }
.metricLegend > span { margin-left: auto; color: #7d8f9c; }
.legendBer { background: var(--orange); }
.legendSnr { background: var(--blue); }

.directionSection { margin-top: 40px; }
.directionHeading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 2px 15px; }
.directionHeading p { margin: 0 0 7px; color: var(--aqua-dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.directionHeading h2 { margin: 0; color: var(--navy); font-size: 24px; letter-spacing: -.025em; }
.directionHeading > span { padding: 6px 8px; border-radius: 2px; background: #e8eef2; color: #667d8c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.graphGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.graphCard { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--white); box-shadow: 0 7px 24px rgba(4,10,27,.055); }
.graphCard--ber { grid-column: 1; }
.graphCard--snr { grid-column: 2; }
.graphCard figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 73px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.graphCard figcaption > div { display: flex; align-items: center; gap: 11px; }
.graphCard figcaption b, .graphCard figcaption small { display: block; }
.graphCard figcaption b { color: var(--navy); font-size: 13px; }
.graphCard figcaption small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; }
.graphCard figcaption a { color: var(--aqua-dark); font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.metricIcon { width: 8px; height: 34px; border-radius: 1px; }
.metricIcon.ber { background: var(--orange); }
.metricIcon.snr { background: var(--blue); }
.graphFrame { position: relative; min-height: 220px; padding: 15px; background: #fbfcfd; }
.graphFrame img { display: block; width: 100%; min-height: 190px; object-fit: contain; }
.graphUnavailable { min-height: 190px; display: grid; place-content: center; gap: 7px; border: 1px dashed #c9d6de; border-radius: 9px; background: repeating-linear-gradient(-45deg,#f7fafb,#f7fafb 10px,#f2f6f8 10px,#f2f6f8 20px); color: #536b7b; text-align: center; }
.graphUnavailable span { font-weight: 750; }
.graphUnavailable small { color: #8495a1; }

@media (max-width: 900px) {
  .heroGrid { grid-template-columns: 1fr; gap: 42px; }
  .summaryPanel { max-width: 560px; }
  .circuitRow { grid-template-columns: 118px 1fr; }
  .periodLinks { grid-column: 2; flex-wrap: wrap; }
  .metricLegend { align-items: flex-start; flex-wrap: wrap; }
  .metricLegend > span { width: 100%; margin-left: 0; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .headerInner { min-height: 78px; }
  .brand img { width: 200px; }
  .headerProduct, .headerStatus { display: none; }
  .hero { padding: 44px 0 48px; }
  .hero h1 { font-size: 43px; }
  .heroCopy { font-size: 16px; }
  .summaryPanel { padding: 20px 17px; }
  .sectionIntro { align-items: start; flex-direction: column; }
  .sectionIntro h2 { font-size: 31px; }
  .content { padding: 54px 0 70px; }
  .circuitRow { grid-template-columns: 1fr; gap: 16px; padding: 22px 18px; }
  .routeGraphic { max-width: 160px; }
  .periodLinks { grid-column: 1; }
  .periodLinks a { padding: 9px 10px; }
  .footerInner { align-items: flex-start; flex-direction: column; justify-content: center; }
  .detailHero { padding-top: 34px; }
  .detailTitleRow { align-items: flex-start; flex-direction: column; }
  .refreshButton { margin-bottom: 0; }
  .periodTabs { width: calc(100% + 14px); margin-top: 34px; margin-left: -7px; overflow-x: auto; }
  .periodTabs a { min-width: 104px; padding-inline: 13px; }
  .metricLegend { gap: 12px 20px; }
  .metricLegend p { white-space: normal; }
  .directionHeading { align-items: flex-start; flex-direction: column; }
  .graphGrid { grid-template-columns: 1fr; }
  .graphCard--ber, .graphCard--snr { grid-column: 1; }
  .graphCard figcaption { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
