/* =========================================================================
   CERA® Hazard Guide — BirdsEyeView design system (Draft 0.5)
   "A navy canvas. Pink for emphasis."
   Navy #000615 · Hot pink #FF6CAA (accent only) · Mist Grey #C6C8CD · Mulish
   Hybrid: dark navy chrome everywhere; Home is a dark canvas; content pages
   read on white. Pink is highlight only — eyebrows, the headline rule,
   card/peril accents, key numbers and CTAs.
   ========================================================================= */

:root {
  --navy: #000615;
  --navy-800: #04102a;
  --navy-700: #09233a;
  --navy-600: #0e2c4a;
  --mid: #164F86;

  --pink: #FF6CAA;
  --pink-bright: #FF89BC;
  --pink-deep: #E24E8C;

  --white: #FFFFFF;
  --mist: #C6C8CD;
  --sky: #0BA7FC;

  --ink: #000615;        /* body text on light */
  --ink-soft: #3a414e;   /* secondary text on light */

  --green: #00882B;
  --gold: #DCBD23;
  --orange: #DE6A10;
  --purple: #773F9B;

  --line: rgba(0, 6, 21, 0.12);     /* hairline on light */
  --line-2: rgba(0, 6, 21, 0.08);
  --hair-d: rgba(255, 255, 255, 0.14); /* hairline on dark */

  --gradient: linear-gradient(180deg, #000615 0%, #08233f 55%, #164F86 100%);
  --glow-card: 0 0 0 1px rgba(255,255,255,.06), 0 18px 50px rgba(0,0,0,.45), 0 0 40px rgba(255,255,255,.04);
  --shadow: 0 2px 10px rgba(0, 6, 21, 0.06);
  --shadow-lg: 0 14px 38px rgba(0, 6, 21, 0.14);

  --font: "Mulish", "Avenir Next", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --radius: 10px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s;
}
/* Home is a dark canvas (full-bleed) */
body.home { background: var(--gradient); background-attachment: fixed; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: 2rem; letter-spacing: -.01em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
sup { font-size: .58em; vertical-align: super; }
em { font-style: italic; }
strong { font-weight: 600; }

/* ---- Signature: ALL-CAPS pink eyebrow + hot-pink headline rule ---- */
.kicker {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--pink-deep); font-weight: 600; margin-bottom: 12px;
}
.view h1 { position: relative; }
.view h1::after {
  content: ""; display: block; width: 34%; max-width: 230px; height: 3px;
  background: var(--pink); border-radius: 2px; margin-top: 16px;
}
.view h1 svg { width: 1.05em; height: 1.05em; vertical-align: -0.16em; color: var(--pink-deep); margin-right: .35em; }

/* dark-context eyebrow/headline */
body.home .kicker { color: var(--pink); }
body.home .view h1, body.home h1, body.home h2, body.home h3 { color: #fff; }

/* =========================================================================
   PASSWORD GATE
   ========================================================================= */
.gate {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: var(--gradient); padding: 24px;
}
.gate__card {
  width: 100%; max-width: 390px; text-align: center; background: var(--white);
  border-radius: 14px; padding: 34px 32px; box-shadow: var(--shadow-lg);
}
.gate__logo { height: 34px; width: auto; margin-bottom: 16px; }
.gate__title { margin: 6px 0 4px; font-size: 1.5rem; }
.gate__sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 20px; }
.gate__input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: 1rem; margin-bottom: 12px;
}
.gate__input:focus { outline: 2px solid var(--pink); border-color: var(--pink); }
.gate__btn {
  width: 100%; padding: 12px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--pink); color: var(--navy); font-family: inherit; font-weight: 600; font-size: 1rem;
}
.gate__btn:hover { background: var(--pink-bright); }
.gate__error { color: var(--pink-deep); font-size: .85rem; margin: 12px 0 0; }
.gate__note { color: var(--ink-soft); font-size: .76rem; line-height: 1.4; margin: 14px 0 0; }

/* =========================================================================
   TOP BAR / NAV  (always dark navy chrome)
   ========================================================================= */
.topbar { position: sticky; top: 0; z-index: 100; background: var(--navy); border-bottom: 1px solid var(--hair-d); }
.topbar__inner { max-width: 1360px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand__logo { height: 30px; width: auto; border-radius: 3px; display: block; }
.brand__divider { width: 1px; height: 22px; background: rgba(255,255,255,.25); }
.brand__product { color: var(--pink); font-size: .88rem; font-weight: 600; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  color: rgba(255,255,255,.78); padding: 7px 9px; border-radius: 8px; font-size: .84rem;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__link.is-active { color: var(--navy); background: var(--pink); font-weight: 600; }
.caret { font-size: .7em; opacity: .8; }

.nav__group { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 238px; background: var(--white);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 110;
}
.nav__group:hover .nav__menu, .nav__group.is-open .nav__menu { display: flex; }
/* Invisible bridge across the gap so the cursor can travel from the link to
   the dropdown without the menu closing. Only present while hovering. */
.nav__group::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 10px; display: none; }
.nav__group:hover::after { display: block; }
.nav__menu a { color: var(--ink); padding: 9px 12px; border-radius: 8px; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.nav__menu a:hover { background: rgba(255,108,170,.10); color: var(--pink-deep); }
.nav__menu .menu-ico { width: 18px; height: 18px; flex: 0 0 18px; color: var(--pink-deep); display: inline-flex; }
.nav__menu .menu-ico svg { width: 18px; height: 18px; }

.nav__search { position: relative; margin-left: 6px; }
.nav__search input {
  background: rgba(255,255,255,.09); border: 1px solid var(--hair-d); color: #fff;
  padding: 7px 12px; border-radius: 8px; font-family: inherit; font-size: .82rem; width: 128px;
}
.nav__search input::placeholder { color: rgba(255,255,255,.55); }
.nav__search input:focus { outline: 1px solid var(--pink); width: 168px; }
.nav__results { position: absolute; top: calc(100% + 6px); right: 0; width: 290px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 330px; overflow-y: auto; z-index: 120; }
.nav__results a { display: block; color: var(--ink); padding: 8px 11px; border-radius: 8px; font-size: .88rem; }
.nav__results a:hover { background: rgba(255,108,170,.10); }
.nav__results .nr-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding: 8px 11px 3px; }
.nav__results .nr-empty { padding: 12px; color: var(--ink-soft); font-size: .88rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* =========================================================================
   VIEW / LAYOUT
   ========================================================================= */
.view { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 60px; outline: none; position: relative; }
.crumbs { font-size: .8rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--pink-deep); }
.crumbs .sep { margin: 0 7px; opacity: .55; }
body.home .crumbs, body.home .crumbs a { color: var(--mist); }

.lead { font-size: 1.1rem; color: var(--ink); max-width: 760px; }
.muted { color: var(--ink-soft); }
body.home .lead, body.home .muted { color: var(--mist); }
.center { text-align: center; }
section.block { margin: 30px 0; }
.tight { max-width: 760px; }
.kicker, .lead, p, ul, h1, h2, h3 { position: relative; z-index: 1; }

/* =========================================================================
   HOME — dark hero + mesh + lockup + tiles
   ========================================================================= */
.hero { position: relative; padding: 50px 0 30px; overflow: visible; }
.hero::before {
  content: ""; position: absolute; top: -30px; right: -24px; width: 60%; height: 380px; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(255,108,170,.16) 33px 34px),
    repeating-linear-gradient(60deg, transparent 0 33px, rgba(255,108,170,.16) 33px 34px),
    repeating-linear-gradient(-60deg, transparent 0 33px, rgba(255,108,170,.16) 33px 34px);
  -webkit-mask-image: radial-gradient(120% 120% at 100% 0%, #000 0%, transparent 58%);
          mask-image: radial-gradient(120% 120% at 100% 0%, #000 0%, transparent 58%);
}
.hero__lockup { position: absolute; top: 0; right: 0; width: 196px; opacity: .92; z-index: 1; }
.hero h1 { font-weight: 300; font-size: 2.6rem; max-width: 18ch; color: #fff; }
.hero h1::after { background: var(--pink); }
.hero .lead { color: var(--mist); }
.hook { margin-top: 22px; padding: 16px 20px; border-left: 3px solid var(--pink); background: rgba(255,108,170,.09); border-radius: 0 8px 8px 0; color: #fff; max-width: 62ch; }
.hook strong { color: var(--pink); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 16px; }
.tile { display: block; background: var(--navy-700); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 20px; box-shadow: var(--glow-card); transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-3px); border-color: rgba(255,108,170,.5); }
.tile__ico { width: 30px; height: 30px; color: var(--pink); display: inline-flex; }
.tile__ico svg { width: 30px; height: 30px; stroke-width: 1.6; }
.tile h3 { color: var(--pink); margin: 12px 0 6px; }
.tile p { color: var(--mist); font-size: .9rem; margin: 0; }
.tile .tile__cta { color: #fff; font-size: .86rem; font-weight: 600; margin-top: 12px; display: inline-flex; gap: 6px; align-items: center; }
.tile--primary { background: rgba(255,108,170,.10); border-color: rgba(255,108,170,.4); }
body.home .note { background: rgba(255,255,255,.05); border: 1px solid var(--hair-d); color: var(--mist); }
body.home .note strong { color: #fff; }

/* Tiles that appear on a light page (e.g. the ERA5 feature tile) read light */
body:not(.home) .tile { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
body:not(.home) .tile:hover { border-color: var(--pink); }
body:not(.home) .tile h3 { color: var(--navy); }
body:not(.home) .tile p { color: var(--ink-soft); }
body:not(.home) .tile .tile__cta { color: var(--pink-deep); }
body:not(.home) .tile__ico { color: var(--pink-deep); }
body:not(.home) .tile--primary { background: rgba(255,108,170,.06); border-color: rgba(255,108,170,.35); }

/* =========================================================================
   CLIENTS BAND (home) — logo marquee + geographic map
   ========================================================================= */
.clientsband { position: relative; z-index: 1; margin-top: 30px; }
.clientsband__h { color: #fff; font-size: 1.55rem; max-width: 24ch; margin-bottom: 0; }
.clientsband__h::after { content: ""; display: block; width: 34%; max-width: 200px; height: 3px; background: var(--pink); border-radius: 2px; margin-top: 14px; }
.clientsband__cap { color: var(--mist); font-size: .9rem; max-width: 780px; margin-top: 16px; }

/* rolling logo marquee */
.marquee { overflow: hidden; margin: 22px 0 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* every logo is pre-normalised onto an identical canvas, so a fixed cell width
   gives a genuinely uniform footprint */
.marquee__logo { flex: 0 0 auto; width: 100px; display: inline-flex; align-items: center; justify-content: center; }
.marquee__logo img { width: 100%; height: auto; display: block; opacity: .68; transition: opacity .2s; }
.marquee__logo img:hover { opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* geographic map */
.worldmap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--hair-d); box-shadow: var(--shadow-lg); }
.worldmap__base { display: block; width: 100%; height: auto; }
.worldmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.worldmap__svg path { fill: none; vector-effect: non-scaling-stroke; }
.worldmap__svg .arc-base { stroke: var(--pink); stroke-width: 1; opacity: .22; }
.worldmap__svg .arc-flow { stroke: var(--pink); stroke-width: 1.3; stroke-linecap: round; opacity: .9; stroke-dasharray: 0.7 5.5; filter: drop-shadow(0 0 2px rgba(255,108,170,.9)); animation: arcflow 2.8s linear infinite; }
@keyframes arcflow { to { stroke-dashoffset: -6.2; } }
.wm-marker { position: absolute; transform: translate(-50%, -50%); width: 11px; height: 11px; }
.wm-marker span { position: absolute; inset: 0; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255,108,170,.2), 0 0 10px rgba(255,108,170,.85); animation: wmglow 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.wm-marker::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--pink); animation: wmpulse 2.8s ease-out infinite; animation-delay: var(--d, 0s); }
.wm-marker::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--pink); animation: wmpulse 2.8s ease-out infinite; animation-delay: calc(var(--d, 0s) + 1.4s); }
.wm-marker--hub { width: 15px; height: 15px; }
.wm-marker--hub span { background: #fff; animation-name: wmglowhub; }
@keyframes wmpulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes wmglow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,108,170,.16), 0 0 8px rgba(255,108,170,.7); }
  50%      { box-shadow: 0 0 0 6px rgba(255,108,170,.26), 0 0 16px rgba(255,108,170,1); }
}
@keyframes wmglowhub {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255,108,170,.28), 0 0 12px rgba(255,108,170,.9); }
  50%      { box-shadow: 0 0 0 7px rgba(255,108,170,.4), 0 0 22px rgba(255,255,255,.95); }
}
.wm-label { position: absolute; font-size: .72rem; font-weight: 600; color: #fff; line-height: 1.2; max-width: 160px; pointer-events: none; text-shadow: 0 1px 6px rgba(0,6,21,.9); }
.wm-label--up    { transform: translate(-50%, calc(-100% - 12px)); text-align: center; }
.wm-label--down  { transform: translate(-50%, 12px); text-align: center; }
.wm-label--left  { transform: translate(calc(-100% - 14px), -50%); text-align: right; }
.wm-label--right { transform: translate(14px, -50%); text-align: left; }

/* legend (shown instead of on-map labels on narrow screens) */
.wm-legend { display: none; list-style: none; padding: 0; margin: 16px 0 0; flex-wrap: wrap; gap: 8px 20px; }
.wm-legend li { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--mist); }
.wm-legend__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px rgba(255,108,170,.7); flex: 0 0 auto; }
.wm-legend__dot.is-hub { background: #fff; }
@media (max-width: 760px) {
  .wm-label { display: none; }
  .wm-legend { display: flex; }
  .marquee__track { gap: 28px; }
  .marquee__logo { width: 80px; }
}

/* =========================================================================
   CARDS (peril overview) — light surface
   ========================================================================= */
.tiles, .cardgrid { position: relative; z-index: 1; }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.perilcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.perilcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--pink); }
.perilcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.perilcard__ico { width: 28px; height: 28px; color: var(--pink-deep); display: inline-flex; }
.perilcard__ico svg { width: 28px; height: 28px; }
.perilcard h3 { margin: 12px 0 6px; }
.perilcard p { color: var(--ink-soft); font-size: .9rem; flex: 1; }
.perilcard__meta { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* =========================================================================
   RELIABILITY BADGE + PILLS
   ========================================================================= */
.rel { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.rel::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rel--excellent { background: rgba(0,136,43,.12); color: var(--green); }
.rel--high      { background: rgba(11,167,252,.14); color: #0a6fa8; }
.rel--modhigh   { background: rgba(220,189,35,.18); color: #927c0f; }
.rel--lowmod    { background: rgba(222,106,16,.16); color: var(--orange); }
.rel--contact   { background: rgba(255,108,170,.14); color: var(--pink-deep); }

.pill { display: inline-block; font-size: .76rem; padding: 3px 10px; border-radius: 999px; background: #eef0f4; color: var(--ink-soft); font-weight: 600; }
.pill--pink { background: rgba(255,108,170,.14); color: var(--pink-deep); }
.pill--navy { background: var(--navy); color: #fff; }
body.home .pill { background: rgba(255,255,255,.10); color: var(--mist); }

/* =========================================================================
   TABLES
   ========================================================================= */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 460px; }
thead th { background: var(--navy); color: #fff; font-weight: 600; text-align: left; padding: 12px 14px; text-transform: uppercase; letter-spacing: .04em; font-size: .76rem; }
tbody td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: #f8f9fb; }
tr.is-default td { background: rgba(255,108,170,.10) !important; }
tr.is-default td:first-child { box-shadow: inset 3px 0 0 var(--pink-deep); font-weight: 600; }
.tag-default { font-size: .68rem; color: var(--pink-deep); font-weight: 600; margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; }
table.construction td.center, table.construction th.center { text-align: center; white-space: nowrap; }
table.construction tbody td:first-child { white-space: nowrap; }

/* =========================================================================
   CALLOUTS / HIGHLIGHTS / NOTES
   ========================================================================= */
.callout { border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; border-left: 3px solid var(--pink); background: rgba(255,108,170,.08); }
.callout__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pink-deep); font-weight: 600; display: block; margin-bottom: 4px; }
.highlight { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px 22px; margin: 20px 0; }
.highlight strong { color: var(--pink); }
.note { background: #f4f5f7; border-radius: var(--radius); padding: 14px 16px; font-size: .9rem; color: var(--ink-soft); }
.note strong { color: var(--ink); }

.defaultbox { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,108,170,.08); border: 1px solid rgba(255,108,170,.3); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; }
.defaultbox__chip { flex: 0 0 auto; background: var(--pink); color: var(--navy); font-weight: 600; font-size: .8rem; padding: 5px 12px; border-radius: 999px; }
.defaultbox__body { font-size: .94rem; }
.defaultbox__body .h { font-weight: 600; color: var(--navy); }

/* =========================================================================
   MORE-DETAIL EXPANDER
   ========================================================================= */
.expander { border: 1px solid var(--line); border-radius: var(--radius); margin: 20px 0; overflow: hidden; background: #fff; }
.expander > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 10px; background: #fafbfc; }
.expander > summary::-webkit-details-marker { display: none; }
.expander > summary .plus { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; transition: transform .2s; }
.expander[open] > summary .plus { transform: rotate(45deg); }
.expander__body { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.expander__body p:first-child { margin-top: 14px; }

.metastrip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 22px; }

/* =========================================================================
   TWO-MODEL SPLIT / MODEL CARDS / PRICING APPROACHES
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.split--three { grid-template-columns: repeat(3, 1fr); }
.modelcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); background: #fff; }
.modelcard h4 { margin-bottom: 4px; }
.modelcard .modelcard__meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: 10px; }
.modelcard p { font-size: .92rem; margin: 0; }

/* =========================================================================
   TOGGLES / TOOLS / TABS
   ========================================================================= */
.toggle { display: inline-flex; background: #eef0f4; border-radius: 999px; padding: 3px; gap: 2px; }
.toggle button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: .86rem; color: var(--ink-soft); font-weight: 600; }
.toggle button.is-on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }

.toolcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 18px 0; background: #fff; }
.slider-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.slider-row input[type=range] { flex: 1; min-width: 200px; accent-color: var(--pink); }
.slider-out { font-size: 1.1rem; }
.slider-out .rp { color: var(--navy); font-weight: 600; }
.slider-out .pct { color: var(--pink-deep); font-weight: 600; }
.demo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.demo-cols .dc { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: .9rem; }
.demo-cols .dc h4 { margin-bottom: 6px; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-family: inherit; font-size: .92rem; color: var(--ink-soft); border-bottom: 2px solid transparent; font-weight: 600; }
.tabs button.is-on { color: var(--navy); border-color: var(--pink); }
.tabpane { display: none; }
.tabpane.is-on { display: block; }

/* =========================================================================
   PREV / NEXT PAGER
   ========================================================================= */
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.pager a { flex: 1; max-width: 48%; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); transition: border-color .14s, transform .14s; background: #fff; }
.pager a:hover { border-color: var(--pink); transform: translateY(-1px); }
.pager .dir { font-size: .74rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.pager .ttl { color: var(--navy); font-weight: 600; }
.pager .next { text-align: right; margin-left: auto; }
.pager .spacer { flex: 1; max-width: 48%; }
body.home .pager a { background: var(--navy-700); border-color: var(--hair-d); }
body.home .pager .ttl { color: #fff; }

/* =========================================================================
   SME CARDS / GLOSSARY
   ========================================================================= */
.sme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sme { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); background: #fff; }
.sme__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--pink); display: flex; align-items: center; justify-content: center; font-weight: 600; margin-bottom: 12px; }
.sme h4 { margin-bottom: 4px; }
.sme .role { font-size: .85rem; color: var(--ink-soft); margin-bottom: 12px; }

.gloss { display: grid; gap: 12px; }
.gloss dt { font-weight: 600; color: var(--navy); }
.gloss dd { margin: 4px 0 0; color: var(--ink); }
.gloss .item { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); background: #fff; }

/* =========================================================================
   ROADMAP
   ========================================================================= */
.statband { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--gradient); color: #fff; border-radius: 14px; padding: 26px 30px; margin: 22px 0 30px; }
.statband__item { display: flex; align-items: baseline; gap: 12px; }
.statband__num { font-size: 3rem; font-weight: 600; line-height: 1; color: #fff; }
.statband__item--next .statband__num { color: var(--pink); }
.statband__lbl { color: var(--mist); font-size: .92rem; max-width: 16ch; }
.statband__arrow { font-size: 1.8rem; color: var(--pink); opacity: .85; }
.statband__updated { margin-left: auto; text-align: right; font-size: .76rem; color: var(--mist); }
.statband__updated strong { color: #fff; font-size: .9rem; }

.rm-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rm-section-head h2 { margin: 0; }
.rmgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rmcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rmcard__media { position: relative; aspect-ratio: 16 / 9; background: var(--navy); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rmcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rmcard__media img.rmcard__img2 { position: absolute; right: 10px; bottom: 10px; width: 38%; height: auto; aspect-ratio: auto; border: 2px solid #fff; border-radius: 8px; box-shadow: var(--shadow-lg); object-fit: cover; }
.rmcard__media--placeholder { background: repeating-linear-gradient(45deg, #04102a, #04102a 12px, #09233a 12px, #09233a 24px); }
.rmcard__media--placeholder span { color: rgba(255,255,255,.55); font-size: .85rem; font-weight: 600; letter-spacing: .04em; border: 1px dashed rgba(255,255,255,.3); padding: 8px 16px; border-radius: 999px; }
.rmcard__body { padding: 18px 20px 20px; }
.rmcard__body h3 { margin-bottom: 12px; }
.rmcard__line { font-size: .92rem; margin: 0 0 10px; }
.rmcard__lbl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 600; margin-bottom: 2px; }
.rmcard__lbl--edge { color: var(--pink-deep); }

/* =========================================================================
   ADVANCED TECHNICAL SPECIFICATIONS expander + content
   ========================================================================= */
.expander--tech > summary { background: var(--navy); color: #fff; font-size: 1rem; padding: 16px 18px; }
.expander--tech > summary .plus { background: var(--pink); color: var(--navy); }
.expander--tech[open] > summary { border-bottom: 2px solid var(--pink); }
.tech { font-size: .95rem; }
.tech > *:first-child { margin-top: 6px; }
.tech .tech__h {
  margin: 26px 0 10px; color: var(--navy); font-size: 1.05rem;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.tech .tech__h::after { content: ""; display: block; width: 38px; height: 2px; background: var(--pink); margin-top: 6px; }
.tech p { margin: 0 0 12px; }
.tech ul.clean, .tech ol.tech__ol { margin: 0 0 14px; padding-left: 1.2em; }
.tech ul.clean li, .tech ol.tech__ol li { margin-bottom: 7px; }
.tech ol.tech__ol { list-style: decimal; }
.tech ol.tech__ol li::marker { color: var(--pink-deep); font-weight: 600; }
.tech .note { margin: 14px 0; }

/* spec (2-column) table */
table.spec { min-width: 0; }
table.spec th {
  background: #f4f5f7; color: var(--navy); text-align: left; font-weight: 600;
  width: 30%; white-space: nowrap; vertical-align: top; padding: 11px 14px;
  border-top: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-size: .9rem;
}
table.spec td { font-size: .9rem; }
table.spec tr:first-child th, table.spec tr:first-child td { border-top: 0; }

/* equations */
.eqn {
  margin: 16px 0; padding: 16px 18px; background: #fafbfd; border: 1px solid var(--line);
  border-left: 3px solid var(--pink); border-radius: var(--radius);
  font-family: "Cambria Math", Georgia, "Times New Roman", serif; font-size: 1.05rem;
  text-align: center; overflow-x: auto; color: var(--navy);
}
.eqn i { font-style: italic; }
.eqn__sum { font-size: 1.5em; vertical-align: -0.25em; margin: 0 .1em; }
.eqn__lim { font-size: .7em; vertical-align: -0.7em; margin-right: .35em; }

/* figures */
.tech__fig { margin: 18px 0; }
.tech__fig img {
  width: 100%; max-width: 720px; height: auto; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff;
}
.tech__fig figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 8px; max-width: 720px; font-style: italic; }

/* =========================================================================
   VIDEO GUIDES
   ========================================================================= */
.vidgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.vidcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 84px; transition: border-color .14s, box-shadow .14s; }
.vidcard:hover { border-color: var(--pink); box-shadow: var(--shadow-lg); }
.vidcard__frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.vidcard__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vidcard__body { padding: 16px 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vidcard__body h3 { margin: 0; }
.vidcard__link { color: var(--pink-deep); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.vidcard__link:hover { color: var(--pink); }

/* =========================================================================
   FOOTER  (always dark)
   ========================================================================= */
.sitefoot { background: var(--navy); color: rgba(255,255,255,.7); border-top: 1px solid var(--hair-d); }
.sitefoot__inner { max-width: var(--maxw); margin: 0 auto; padding: 24px; font-size: .82rem; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.sitefoot__col { display: flex; flex-direction: column; gap: 4px; }
.sitefoot__note { color: rgba(255,255,255,.5); }
.sitefoot__lockup { height: 46px; width: auto; opacity: .9; }
.sitefoot sup { color: var(--pink); }

/* =========================================================================
   MISC
   ========================================================================= */
.kicker, .lead, .muted { }
ul.clean { padding-left: 1.1em; }
ul.clean li { margin-bottom: 8px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
/* Nav collapses to the hamburger menu below 1200px — seven primary items
   plus search need real width, so we hand narrower screens the clean menu. */
@media (max-width: 1240px) {
  .hamburger { display: flex; }
  .nav {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 16px; margin: 0;
    transform: translateX(100%); transition: transform .22s; overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: 12px 14px; font-size: 1rem; }
  .nav__group { position: static; }
  .nav__group::after, .nav__group:hover::after { display: none; }
  .nav__menu { position: static; display: flex; box-shadow: none; background: rgba(255,255,255,.06); border-radius: 8px; margin: 2px 0 6px; padding: 4px; }
  .nav__menu a { color: rgba(255,255,255,.85); }
  .nav__menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .nav__menu .menu-ico { color: var(--pink); }
  .nav__search { margin: 6px 0 0; }
  .nav__search input, .nav__search input:focus { width: 100%; }
  .nav__results { width: 100%; }
}
/* In horizontal-nav mode the product label is redundant with the logo — drop it for room. */
@media (min-width: 1241px) { .brand__product { display: none; } }

/* Content reflows for tablet / phone */
@media (max-width: 900px) {
  .split, .split--three, .demo-cols, .rmgrid, .vidgrid { grid-template-columns: 1fr; }
  table.spec th { width: auto; white-space: normal; }
  .hero h1 { font-size: 1.9rem; }
  .hero__lockup { width: 140px; position: static; display: block; margin-bottom: 18px; }
  .hero::before { width: 80%; }
  .statband { gap: 14px; padding: 22px; }
  .statband__num { font-size: 2.4rem; }
  .statband__updated { margin-left: 0; text-align: left; width: 100%; }
  .sitefoot__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
  .marquee__track, .wm-marker span, .wm-marker::after, .wm-marker::before { animation: none !important; }
  .worldmap__svg .arc-flow { display: none; }
}
