/* The shared header, footer and logo of every ohmybug.ai page (#3727). The markup comes from scripts/site-chrome.mjs
   only; colours and fonts are tokens (tokens.css loads first). Every rule is scoped to the chrome's own classes and
   resets what page styles commonly set on header, nav, footer and a, so a page's CSS cannot reshape it. */
.omb-header, .omb-footer { font-family: var(--font-sans); color: var(--text); -webkit-font-smoothing: antialiased; }
.omb-header *, .omb-footer * { box-sizing: border-box; }
.omb-chrome-frame { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.omb-header :focus-visible, .omb-footer :focus-visible { outline: 2px solid var(--brand-text); outline-offset: 4px; border-radius: 2px; }

/* The sticky header covers the top 64px, so in-page anchors and focus stop below it. */
html:has(.omb-header) { scroll-padding-top: 80px; }
.omb-header { position: sticky; top: 0; z-index: 50; margin: 0; padding: 0; border: 0; background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.omb-header .omb-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.omb-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font: 600 1.05rem/1.2 var(--font-wordmark); letter-spacing: -.01em; text-transform: none; text-decoration: none; white-space: nowrap; border: 0; }
.omb-brand .logo { display: block; flex: none; width: 30px; height: 30px; transition: transform .7s cubic-bezier(.22, .68, .36, 1); }
.omb-brand:hover .logo { transform: rotate(-10deg) scale(1.08); }
.omb-brand .logo .lb { fill: var(--logo-badge-bg); }
.omb-brand .logo .li { fill: var(--logo-badge-ink); }
.omb-brand .logo .lh { fill: var(--logo-badge-hi); }
.omb-header .omb-header-nav { display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; font: 500 var(--type-small-size)/1 var(--font-sans); }
.omb-header .omb-header-nav a { color: var(--muted); text-decoration: none; border: 0; background: none; padding: 0; white-space: nowrap; transition: color .3s; }
.omb-header .omb-header-nav a:hover, .omb-header .omb-header-nav a[aria-current=page] { color: var(--text); }
.omb-header .omb-header-nav a[aria-current=page] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--brand); }
.omb-header .omb-header-nav .omb-count { margin-left: .35rem; padding: .28rem .45rem; border-radius: var(--radius-pill); background: var(--brand); color: var(--cta-ink); font: 700 .7rem/1 var(--font-mono); }
.omb-header .omb-header-nav .omb-count:empty { display: none; }
/* A signed-in API page puts the login where Start free is: cut long logins, and drop it on phones (Sign out stays). */
.omb-header .omb-header-nav .omb-account { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.omb-header .omb-header-nav .omb-small-cta { background: var(--text); color: var(--bg); padding: .62rem 1rem; border-radius: var(--radius-pill); }
.omb-header .omb-header-nav .omb-small-cta:hover { color: var(--cta-ink); background: var(--brand); }
/* Light / Dark / System (#3870): three icon buttons, the pressed one the reader's pick; where the header is narrower
   (the media rules below) one button instead, showing the current theme and moving to the next. */
.omb-header .omb-theme { display: inline-flex; align-items: center; }
.omb-header .omb-theme[hidden] { display: none; }
.omb-header .omb-theme-set { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-pill); }
.omb-header .omb-theme button { appearance: none; display: grid; place-items: center; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color .3s, background-color .3s; }
.omb-header .omb-theme button:hover { color: var(--text); }
.omb-header .omb-theme button[aria-pressed=true], .omb-header .omb-theme .omb-theme-next { background: var(--surface-alt); color: var(--text); }
.omb-header .omb-theme .omb-theme-next { display: none; }
.omb-header .omb-theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* #3992: OMBench sits in the header on wide screens only. Up to 1100 px the row has no room for it: a signed-in API
   page (a 14ch login and Sign out in place of Start free) overflowed by 6 px at 1001 px. */
@media (max-width: 1100px) { .omb-header .omb-header-nav .omb-nav-bench { display: none; } }
/* Under 1000 px the full row (five links, the badge and the button) has no room for three more buttons. The tighter
   gaps here and below apply only to a header that carries the switch (the API pages' header has none). */
@media (max-width: 1000px) {
  .omb-header:has(.omb-theme) .omb-header-nav { gap: 1rem; }
  .omb-header .omb-theme .omb-theme-set { display: none; }
  .omb-header .omb-theme .omb-theme-next { display: grid; }
}

.omb-footer { display: block; margin: 0; padding: 0; width: 100%; max-width: none; border-top: 1px solid var(--border); font-size: var(--type-small-size); }
.omb-footer .omb-footer-inner { padding-block: 32px max(74px, var(--omb-dock-reserve, 0px)); }
.omb-footer .omb-footer-top { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.omb-footer .omb-brand .logo { width: 28px; height: 28px; }
.omb-footer .omb-footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; max-width: 900px; margin: 0; padding: 0; }
.omb-footer .omb-footer-nav a { color: var(--text); font: 500 1em/1.6 var(--font-sans); text-decoration: none; border: 0; background: none; padding: 0; margin: 0; }
.omb-footer .omb-footer-nav a:hover, .omb-footer .omb-footer-nav a[aria-current=page] { text-decoration: underline; text-underline-offset: 4px; }
.omb-footer .omb-footer-nav a[aria-current=page] { text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.omb-footer .omb-footer-compare { justify-content: flex-start; max-width: none; margin-top: 22px; }
.omb-footer .omb-footer-compare a { color: var(--muted); }
.omb-footer .omb-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 13px; border-top: 1px solid var(--border); font: 400 var(--type-label-size)/1.6 var(--font-mono); color: var(--muted); }
.omb-footer .omb-footer-bottom a { color: inherit; text-decoration: none; border: 0; }
.omb-footer .omb-footer-bottom a:hover { color: var(--text); }
.omb-footer .omb-footer-bottom a.omb-ohmyx { color: var(--brand-text); font-weight: 600; }
.omb-discord { width: 1.1em; height: 1em; vertical-align: -.125em; fill: currentColor; }

@media (max-width: 720px) {
  .omb-header .omb-header-nav { gap: 1.1rem; }
  .omb-header:has(.omb-theme) .omb-header-nav { gap: .85rem; }
  .omb-header .omb-header-nav .omb-nav-faq, .omb-header .omb-header-nav .omb-nav-bugarium, .omb-header .omb-header-nav .omb-nav-security { display: none; }
  .omb-footer .omb-footer-top { flex-direction: column; gap: 22px; }
  .omb-footer .omb-footer-nav { justify-content: flex-start; gap: 10px 20px; }
}
/* Under 460 px the header keeps Pricing and the button (people look for prices first, owner #3727); How it works stays in the footer. */
@media (max-width: 460px) {
  .omb-header .omb-header-nav .omb-nav-how, .omb-header .omb-header-nav .omb-account { display: none; }
  .omb-header:has(.omb-theme) .omb-header-inner { gap: 12px; }
  .omb-header:has(.omb-theme) .omb-header-nav { gap: .7rem; }
  .omb-header .omb-header-nav .omb-small-cta { padding: .55rem .85rem; }
}
/* Under 340 px only the mark, the wordmark and the button fit (verify reads 280 px); Pricing stays in the footer, and
   the theme switch is left out: a pick made on a wider screen still applies. */
@media (max-width: 340px) { .omb-header .omb-header-nav .omb-nav-pricing, .omb-header .omb-theme { display: none; } }
@media (prefers-reduced-motion: reduce) { .omb-brand .logo, .omb-header .omb-header-nav a, .omb-header .omb-theme button { transition: none; } }
@media print { .omb-header { position: static; backdrop-filter: none; } .omb-header .omb-header-nav { display: none; } }
