/* Orbital Overview shared shell: glass top nav, mobile menu, footer and bottom tab bar.
   Used by the 7-day, hourly and legal pages (the radar page has its own map-first nav).
   Markup is the same on every page; site-shell.js runs the mobile menu. */
:root {
  --oo-ink: #e8f0ff;
  --oo-muted: #93a1b8;
  --oo-mint: #9ffcb9;
  --oo-mint-dim: rgba(159, 252, 185, 0.18);
  --oo-bg: #04050b;
  --oo-glass: rgba(10, 13, 22, 0.78);
  --oo-line: rgba(255, 255, 255, 0.08);
  --oo-nav-h: 60px;
}

body.ooShell {
  padding-top: var(--oo-nav-h);
  background: var(--oo-bg);
}

/* ---------- Top nav ---------- */
.ooShell-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--oo-nav-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(14px, 3vw, 28px);
  background: var(--oo-glass);
  border-bottom: 1px solid var(--oo-line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  font-family: 'Inter', 'Roboto', system-ui, sans-serif;
}

.ooShell-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--oo-mint-dim), transparent);
}

.ooShell-logo { display: inline-flex; align-items: center; margin-right: auto; }
.ooShell-logo::after { display: none !important; }
.ooShell-logo img { height: 34px; width: auto; display: block; }

.ooShell-links { display: flex; align-items: center; gap: 4px; }

.ooShell-links a,
.ooShell-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ooShell-links a::after,
.ooShell-menu a::after,
.ooShell-footLinks a::after,
.ooShell-tabs a::after { display: none !important; }

.ooShell-links a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.ooShell-links a[aria-current="page"] {
  color: #fff;
  background: rgba(159, 252, 185, 0.12);
  box-shadow: inset 0 0 0 1px var(--oo-mint-dim), 0 0 18px rgba(159, 252, 185, 0.12);
}

.ooShell-menuBtn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--oo-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ooShell-menuBtn span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.ooShell-menuBtn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ooShell-menuBtn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ooShell-menuBtn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ooShell-menu {
  position: absolute;
  top: calc(var(--oo-nav-h) + 8px);
  right: 12px;
  width: min(260px, calc(100vw - 24px));
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 18px;
  border: 1px solid var(--oo-line);
  background: rgba(10, 12, 18, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: ooMenuIn 0.2s ease;
}

.ooShell-menu[hidden] { display: none; }
.ooShell-menu a { padding: 11px 14px; border-radius: 12px; }
.ooShell-menu a:hover, .ooShell-menu a[aria-current="page"] { background: rgba(159, 252, 185, 0.1); color: #fff; }

.ooShell-af {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--oo-line);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes ooMenuIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Footer ---------- */
.ooShell-footer {
  padding: 34px clamp(16px, 4vw, 40px) calc(96px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #05070f, #000);
  border-top: 1px solid var(--oo-line);
  color: var(--oo-muted);
  font-family: 'Inter', 'Roboto', system-ui, sans-serif;
}

.ooShell-footInner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 40px;
}

.ooShell-brand strong { display: block; color: #fff; font-size: 1.1rem; font-weight: 600; }
.ooShell-brand span { font-size: 0.85rem; }

.ooShell-footLinks { display: flex; flex-wrap: wrap; gap: 6px 18px; max-width: 560px; }

.ooShell-footLinks a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ooShell-footLinks a:hover { color: var(--oo-mint); }

.ooShell-legal { max-width: 1120px; margin: 22px auto 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }

.ooShell-america {
  margin: 14px auto 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9e9e9e;
}

.ooShell-flag {
  display: block;
  width: min(220px, 60%);
  height: 2px;
  margin: 0 auto 8px;
  background: linear-gradient(90deg, #b22234 0 33%, #ffffff 33% 66%, #3c3b6e 66% 100%);
  opacity: 0.8;
}

/* ---------- Bottom tab bar ---------- */
.ooShell-tabs {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--oo-line);
  background: rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  font-family: 'Inter', 'Roboto', system-ui, sans-serif;
}

.ooShell-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ooShell-tabs a .material-icons { font-size: 18px; margin: 0; }
.ooShell-tabs a:hover { color: #fff; }

.ooShell-tabs a[aria-current="page"] {
  color: #04050b;
  background: var(--oo-mint);
  box-shadow: 0 0 18px rgba(159, 252, 185, 0.45);
}

/* ---------- NWS alert banner (7-day + hourly) ---------- */
.ooAlerts { display: grid; gap: 10px; margin: 18px 0 4px; }
.ooAlerts[hidden] { display: none; }

.ooAlert {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--alert) 45%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--alert) 16%, transparent), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 24px color-mix(in srgb, var(--alert) 18%, transparent);
  overflow: hidden;
  font-family: 'Inter', 'Roboto', system-ui, sans-serif;
}

.ooAlert summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

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

.ooAlertIcon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--alert) 25%, transparent);
  color: var(--alert);
  font-size: 16px;
}

.ooAlertMain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ooAlertMain b { color: #fff; font-size: 15px; font-weight: 700; }
.ooAlertMain small { color: rgba(232, 240, 255, 0.7); font-size: 12px; }

.ooAlertMore {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
}

.ooAlert[open] .ooAlertMore { color: #04050b; background: var(--alert); border-color: var(--alert); }
.ooAlertBody { padding: 0 16px 14px 58px; }
.ooAlertBody p { margin: 8px 0 0; color: rgba(232, 240, 255, 0.82); font-size: 13.5px; line-height: 1.55; }
.ooAlertExtra { margin: 0; color: var(--oo-muted); font-size: 12.5px; }

@media (max-width: 600px) {
  .ooAlertBody { padding-left: 16px; }
}

/* ---------- Legal pages: dark, readable document layout ---------- */
/* The policy pages carry inline light-theme colors, so these use !important. */
body.ooLegal {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(159, 252, 185, 0.1), transparent 60%),
    linear-gradient(180deg, #04050b 0%, #070b18 60%, #04050b 100%);
  background-attachment: fixed;
  color: var(--oo-ink);
}

body.ooLegal main {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 28px) 48px;
}

body.ooLegal main h1,
body.ooLegal main h2,
body.ooLegal main h3,
body.ooLegal main h4 {
  color: #fff !important;
  font-family: 'Inter', 'Roboto', system-ui, sans-serif !important;
  letter-spacing: -0.01em;
}

body.ooLegal main h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem) !important;
  font-weight: 700;
  text-align: left !important;
  background: linear-gradient(90deg, #fff 0%, var(--oo-mint) 70%, #7fd7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

body.ooLegal main h2 {
  margin-top: 30px;
  padding-left: 12px;
  border-left: 3px solid var(--oo-mint);
  font-size: 1.15rem !important;
  font-weight: 600;
}

body.ooLegal main p,
body.ooLegal main li,
body.ooLegal main ul,
body.ooLegal main label {
  color: rgba(232, 240, 255, 0.8) !important;
  font-family: 'Inter', 'Roboto', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7;
}

body.ooLegal main strong { color: #fff; }
body.ooLegal main a { color: var(--oo-mint) !important; }
body.ooLegal main a::after { background: var(--oo-mint); }

/* Legal hub: the Materialize collection becomes glass link cards */
body.ooLegal .collection {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  display: grid;
  gap: 10px;
}

body.ooLegal .collection .collection-header {
  padding: 0 0 8px;
  border: 0;
  background: transparent;
}

body.ooLegal .collection .collection-header h4 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
}

body.ooLegal .collection .collection-item {
  padding: 0;
  border: 1px solid var(--oo-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.ooLegal .collection .collection-item:hover {
  border-color: rgba(159, 252, 185, 0.35);
  transform: translateY(-2px);
}

body.ooLegal .collection .collection-item a {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
}

body.ooLegal .collection .collection-item a::after {
  content: "→" !important;
  display: inline !important;
  position: static;
  width: auto;
  height: auto;
  background: none;
  color: var(--oo-mint);
}

/* FastCast mini-search on the policy pages */
body.ooLegal .fastcast-card {
  margin-top: 34px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--oo-line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--oo-ink);
}

body.ooLegal .fastcast-card input {
  color: #fff !important;
  border-bottom-color: rgba(159, 252, 185, 0.4) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  :root { --oo-nav-h: 56px; }
  .ooShell-links { display: none; }
  .ooShell-menuBtn { display: inline-flex; }
  .ooShell-logo img { height: 30px; }
  .ooShell-footInner { flex-direction: column; }
}

@media (max-width: 380px) {
  .ooShell-tabs a { padding: 9px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ooShell-menu { animation: none; }
}
