/* ==========================================================================
   Omxus shared site chrome — unified header + footer
   Self-contained: all selectors are .omx-* and all values are literal so this
   renders identically regardless of any individual page's inline styles.
   Injected by site.js on every page.
   ========================================================================== */

:root {
  --omx-blue: #1e3a8a;
  --omx-teal: #0d9488;
  --omx-amber: #f59e0b;
  --omx-ink: #111827;
  --omx-muted: #6b7280;
  --omx-border: #e5e7eb;
  --omx-surface: #f9fafb;
  --omx-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --omx-max: 1200px;
}

/* keep injected chrome from inheriting odd page resets */
.omx-nav, .omx-nav *,
.omx-footer, .omx-footer *,
.omx-homepill, .omx-homepill * {
  box-sizing: border-box;
  font-family: var(--omx-sans);
}

/* ---------- HEADER ---------------------------------------------------------- */
.omx-nav {
  position: sticky;
  top: 0;
  z-index: 9000;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--omx-border);
}
.omx-nav__inner {
  max-width: var(--omx-max);
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.omx-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--omx-blue);
  text-decoration: none;
  white-space: nowrap;
}
.omx-nav__logo .omx-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--omx-teal);
  display: inline-block;
}
.omx-nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 0 8px;
  padding: 0;
}
.omx-nav__links a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--omx-ink);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.18s ease-in-out;
}
.omx-nav__links a:hover { color: var(--omx-teal); background: var(--omx-surface); }
.omx-nav__links a.is-active { color: var(--omx-teal); background: rgba(13,148,136,0.10); }
.omx-nav__actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.omx-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
}
.omx-btn--text { color: var(--omx-ink); }
.omx-btn--text:hover { color: var(--omx-teal); }
.omx-btn--primary { color: #fff; background: var(--omx-blue); }
.omx-btn--primary:hover { background: #1b3175; }

/* hamburger (mobile) */
.omx-nav__toggle {
  display: none;
  margin-left: auto;
  background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--omx-ink);
  padding: 4px 8px;
}

@media (max-width: 860px) {
  .omx-nav__toggle { display: inline-block; }
  .omx-nav__links, .omx-nav__actions {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--omx-border);
    padding: 8px 16px;
    display: none;
  }
  .omx-nav.is-open .omx-nav__links,
  .omx-nav.is-open .omx-nav__actions { display: flex; }
  .omx-nav__links a, .omx-btn { padding: 12px; border-radius: 8px; text-align: left; }
  .omx-nav__actions { top: auto; border-bottom: 0; padding-top: 0; }
  .omx-btn--primary, .omx-btn--text { text-align: center; }
}

/* minimal mode: just a home pill, for full-bleed auth pages */
.omx-homepill {
  position: fixed;
  top: 18px; left: 18px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--omx-blue);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--omx-border);
  border-radius: 9999px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.omx-homepill:hover { color: var(--omx-teal); }

/* ---------- FOOTER ---------------------------------------------------------- */
.omx-footer {
  background: var(--omx-ink);
  color: #cbd2dc;
  margin-top: 64px;
}
.omx-footer__inner {
  max-width: var(--omx-max);
  margin: 0 auto;
  padding: 56px 24px 28px;
}
.omx-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(6, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) { .omx-footer__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 980px) { .omx-footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 560px) { .omx-footer__grid { grid-template-columns: 1fr 1fr; } }
.omx-footer__brand .omx-nav__logo { color: #fff; }
.omx-footer__brand p {
  margin: 12px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 26ch;
}
.omx-footer__col h5 {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.omx-footer__col ul { list-style: none; margin: 0; padding: 0; }
.omx-footer__col li { margin-bottom: 9px; }
.omx-footer__col a {
  font-size: 0.85rem;
  color: #cbd2dc;
  text-decoration: none;
  transition: color 0.18s ease-in-out;
}
.omx-footer__col a:hover { color: #fff; }
.omx-footer__bottom {
  max-width: var(--omx-max);
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
}
.omx-footer__bottom a { color: #94a3b8; text-decoration: none; }
.omx-footer__bottom a:hover { color: #fff; }
