/* ============================================================
   OpenCard — shared chrome (header / footer / scenario strip)
   Used across all prototype pages.
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: height .2s ease, box-shadow .2s ease;
}
.site-header .bar {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--s-6);
  transition: height .2s ease;
}
.site-header.compact { box-shadow: var(--shadow-sm); }
.oc-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.oc-logo .oc-mark { width: 34px; height: 34px; }
.oc-logo .oc-word { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--ink-900); }
.oc-logo .oc-word .b { color: var(--brand-primary); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav a {
  padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: 15px;
  color: var(--ink-700); transition: background .14s, color .14s; white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-1); color: var(--ink-900); }
.site-nav a.active { color: var(--brand-primary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* header search (shared across pages) */
.header-search { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; margin-left: auto; width: 280px; background: var(--surface-1); border: 1.5px solid var(--border); border-radius: var(--r-pill); transition: border-color .14s, box-shadow .14s, background .14s; }
.header-search:focus-within { background: #fff; border-color: var(--brand-primary); box-shadow: var(--shadow-ring); }
.header-search svg { width: 18px; height: 18px; color: var(--ink-500); flex: none; }
.header-search input { border: 0; outline: 0; background: transparent; width: 100%; font-family: var(--font-ui); font-size: 14px; color: var(--ink-900); }
.header-search input::placeholder { color: var(--ink-300); }
.header-search + .header-actions { margin-left: 0; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; align-items: center; justify-content: center; color: var(--ink-900); }

/* mobile drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(14,17,22,.4); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); z-index: 201;
  background: #fff; transform: translateX(100%); transition: transform .26s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; padding: 18px;
}
.drawer.open { transform: translateX(0); }
.drawer .d-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer a.d-link { padding: 14px 12px; border-radius: 12px; font-weight: 600; font-size: 17px; color: var(--ink-900); }
.drawer a.d-link:hover { background: var(--surface-1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #B9C0CC; padding: 56px 0 32px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer h5 { color: #fff; font-family: var(--font-display); font-size: 14px; font-weight: 700; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #B9C0CC; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-blurb { font-size: 14px; line-height: 1.6; color: #8A93A3; max-width: 30ch; margin-top: 14px; }
.site-footer .oc-word { color: #fff; }
.footer-bottom { border-top: 1px solid #232833; margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #6B7484; }
.footer-disclaimer { background: #161A22; border: 1px solid #232833; border-radius: var(--r-card); padding: 16px 18px; font-size: 13px; line-height: 1.6; color: #8A93A3; margin-top: 28px; }
.footer-disclaimer b { color: #C7CDD8; }

@media (max-width: 1100px) { .header-search { width: 200px; } }
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .header-search { display: none; }
  .burger { display: inline-flex; }
  .header-actions .btn-desktop { display: none; }
}
@media (max-width: 880px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .brand-col { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer .cols { grid-template-columns: 1fr; }
}

/* mobile sticky CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
@media (max-width: 767px) {
  .mobile-cta { display: block; }
  body.has-mobile-cta { padding-bottom: 76px; }
}
