/* OnlyAIWork — shared base stylesheet, loaded on every page.
   Scope today: the accessibility layer (keyboard focus, reduced-motion, skip link),
   which was identical across all pages. Uses var(--primary) from each page's :root.

   NOTE: the marketing header/nav/footer/button rules are still duplicated across the
   4 marketing pages (index/network/solutions/engagement). Consolidating those here is
   the recommended next refactor — deferred deliberately because it needs a full visual
   regression pass, and they diverge from the report/diagnosis chrome (different .btn
   sizing, .topbar vs header). See HANDOFF.md. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
a:focus-visible, button:focus-visible, .chip:focus-visible, .fc:focus-visible, input:focus-visible, .offer:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 8px;
}
.skip-link {
  position: absolute; left: 8px; top: -44px; z-index: 100;
  background: var(--primary); color: #fff; padding: 8px 14px;
  border-radius: 8px; font-size: 13px; font-weight: 600; transition: top .15s;
}
.skip-link:focus { top: 8px; outline: 2px solid #fff; }

/* ---- OAW brand mark (shared header logo across marketing pages + cert portal) ---- */
.oaw-mark { height: 28px; width: auto; display: block; color: currentColor; flex: none; }
.oaw-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.oaw-brand-text small { display: block; font-family: "Inter", sans-serif; font-weight: 600; font-size: 11px; color: var(--muted, #5b6678); letter-spacing: .02em; margin-top: 2px; }

/* ---- mobile hamburger + drawer (shared across marketing pages) ---- */
body.oaw-no-scroll { overflow: hidden; }
.oaw-hamburger {
  display: none; height: 40px; width: 40px; border: 1px solid var(--line, #e6e8ef);
  border-radius: 10px; background: #fff; padding: 0; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.oaw-hamburger span { display: block; width: 18px; height: 2px; background: var(--text, #131a2b); border-radius: 1px; }
.oaw-hamburger.close span { display: none; }
.oaw-hamburger.close::before { content: "✕"; font-size: 18px; font-weight: 600; color: var(--text, #131a2b); }
.oaw-drawer-bg {
  position: fixed; inset: 0; background: rgba(11, 16, 32, .45); z-index: 98;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.oaw-drawer-bg.open { opacity: 1; pointer-events: auto; }
.oaw-drawer {
  position: fixed; top: 0; right: 0; width: min(320px, 86vw); height: 100vh;
  background: #fff; z-index: 99; display: flex; flex-direction: column; gap: 4px;
  padding: 18px; box-shadow: -12px 0 40px rgba(11, 16, 32, .18);
  transform: translateX(100%); transition: transform .22s ease; overflow-y: auto;
}
.oaw-drawer.open { transform: translateX(0); }
.oaw-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line, #e6e8ef);
}
.oaw-drawer-head .brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 9px; color: var(--text, #131a2b); }
.oaw-drawer a, .oaw-drawer button.oaw-link {
  display: block; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 600;
  color: var(--text, #131a2b); text-decoration: none; background: transparent; border: none; cursor: pointer; text-align: left; width: 100%;
}
.oaw-drawer a:hover, .oaw-drawer button.oaw-link:hover { background: #f1f2f6; }
.oaw-drawer .oaw-cta { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.oaw-drawer .oaw-cta .btn { width: 100%; justify-content: center; }
.oaw-drawer-divider { height: 1px; background: var(--line, #e6e8ef); margin: 6px 0; }

@media (max-width: 860px) {
  .oaw-hamburger { display: flex; margin-left: auto; }
  /* Hide the existing desktop CTA on mobile; the drawer has the same links */
  .nav-cta { display: none !important; }
  /* Slightly tighter brand on mobile */
  .oaw-mark { height: 24px; }
  .oaw-brand-text { font-size: 14px; }
  .oaw-brand-text small { display: none; }
}

/* ---- Brand reveal (OAW + AOAI parent) — shared across marketing pages ---- */
.oaw-foot-container { background: var(--ink, #0b1020); color: #aeb6c8; padding: 44px 0 36px; margin-top: 24px; }
.oaw-foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px; }
.oaw-foot-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: #fff; }
.oaw-foot-mark { flex: none; }
.oaw-foot-svg { height: 54px; width: auto; display: block; color: #fff; }
.oaw-foot-tag { font-size: 13.5px; color: #aeb6c8; max-width: 280px; line-height: 1.45; }
.oaw-foot-parent { display: flex; align-items: center; gap: 12px; color: #fff; }
.oaw-foot-parent-lbl { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #aeb6c8; }
.aoai-foot-svg { height: 42px; width: auto; display: block; color: #fff; opacity: .92; }
/* AOAI lockup: shapes-only SVG + native HTML tagline. Keeps tagline readable at any size. */
.aoai-lockup-html { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; line-height: 1; color: #fff; opacity: .95; }
.aoai-mark-svg { height: 26px; width: auto; display: block; color: currentColor; }
.aoai-tagline { font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 10px; letter-spacing: .03em; text-align: center; color: inherit; white-space: nowrap; }
.parent-mark { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted, #5b6678); }
.parent-mark-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #5b6678); }
.aoai-mini { height: 20px; width: auto; display: block; color: var(--text, #131a2b); opacity: .7; }
@media (max-width: 860px) {
  .oaw-foot-row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .oaw-foot-svg { height: 46px; }
  .aoai-foot-svg { height: 36px; }
  .aoai-mark-svg { height: 22px; }
  .aoai-tagline { font-size: 9.5px; }
}
