/* EB Systems: shared site components, loaded by every public page.
   - Footer (.sf):         the markup is repeated verbatim in each page; keep the copies in sync.
   - Mobile CTA bar (.sbar): driven by assets/js/shared.js.
   - Skip link, anchor offset under the fixed header, pressed states, boot screen.
   Bump the ?v= query in every page when this file changes (.htaccess caches css for a day). */

/* Paragraphs never end on a single orphaned word (Chrome 117+, Safari 26+; others ignore it). */
p { text-wrap: pretty; }

/* In-page and cross-page anchors land below the fixed header. Pages override --hdr. */
html { scroll-padding-top: var(--hdr, 110px); }

/* Skip link: first Tab stop on every page */
.skip { position: fixed; left: 12px; top: -80px; z-index: 1002; background: #0BA8DD; color: #04121A;
  font: 700 11px/1 'Space Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase;
  padding: 14px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Pressed state for every link and button */
a:active, button:active:not([disabled]) { filter: brightness(.86); }
button:active:not([disabled]), .sf-cta:active, .sbar a:active { transform: translateY(1px); }

/* ---- Shared footer ---- */
.sf { background: #1E252E; color: #E8EBEF; padding: 70px 0 36px;
  font-family: 'Galano Grotesque', 'Inter', system-ui, sans-serif; font-weight: 400; }
.sf-in { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.sf-top { display: flex; justify-content: space-between; gap: 40px 56px; flex-wrap: wrap; margin-bottom: 44px; }
.sf-lead { flex: 0 1 460px; min-width: 0; }
.sf-logo { height: 30px; width: auto; display: block; margin-bottom: 22px; }
.sf-tag { font-weight: 500; font-size: clamp(26px, 3.2vw, 44px); max-width: 16ch; line-height: 1.05; }
.sf-cta { font-family: 'Space Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .16em;
  font-size: 11px; background: #0BA8DD; border: 1px solid #0BA8DD; color: #04121A; font-weight: 700;
  padding: 11px 18px; min-height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; text-decoration: none; transition: background .25s, border-color .25s; }
.sf-cta:hover { background: #0992C0; border-color: #0992C0; }
.sf-cols { display: flex; gap: 28px 56px; flex-wrap: wrap; }
.sf-h { display: block; font-family: 'Space Mono', ui-monospace, monospace; text-transform: uppercase;
  letter-spacing: .22em; color: #9DA8B4; font-size: 10px; margin-bottom: 8px; }
.sf-col a, .sf-col .sf-t { display: block; color: #C9D2DC; font-size: 14px; line-height: 20px; padding: 4px 0;
  text-decoration: none; transition: color .2s; }
.sf-col a:hover { color: #3BD6F0; }
.sf-legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 24px;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: 'Space Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .18em;
  font-size: 11px; color: #9DA8B4; }
.sf-legal a { color: #9DA8B4; text-decoration: none; padding: 4px 0; transition: color .2s; }
.sf-legal a:hover { color: #3BD6F0; }
@media (max-width: 760px) {
  .sf { padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); }
  .sf-in { padding: 0 22px; }
  .sf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 22px; width: 100%; }
  .sf-col a, .sf-col .sf-t { padding: 12px 0; overflow-wrap: anywhere; }   /* 44px tap targets */
  .sf-legal a { display: inline-block; padding: 12px 0; }
}

/* ---- Mobile CTA bar (phones only; hidden on short screens) ---- */
.sbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 115; display: none; align-items: center;
  justify-content: space-between; gap: 12px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: rgba(30, 37, 46, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(126, 138, 155, .28); transform: translateY(110%); visibility: hidden;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .35s; }
.sbar.on { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
.sbar a { font-family: 'Space Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .14em;
  font-size: 11px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.sbar .sbar-2 { color: #C9D2DC; padding: 0 4px; }
.sbar .sbar-2:hover { color: #3BD6F0; }
.sbar .sbar-1 { background: #0BA8DD; border: 1px solid #0BA8DD; color: #04121A; font-weight: 700; padding: 0 16px; white-space: nowrap; }
.sbar .sbar-1:hover { background: #0992C0; border-color: #0992C0; }
@media (max-width: 760px) and (min-height: 501px) { .sbar { display: flex; } }
@media (prefers-reduced-motion: reduce) { .sbar, .sbar.on { transition: none; } }

/* ---- Larger text (iOS Larger Text / Android font scale): let long words break instead of pushing
   grids and headings off-screen. At normal sizes every word fits, so nothing changes. ---- */
@media (max-width: 760px) { body, body * { overflow-wrap: anywhere; } }

/* ---- Short screens (phone landscape, 400% zoom): drop the fixed status ticker so content keeps the room ---- */
@media (max-height: 500px) {
  [data-screen-label="Status bar"] { display: none !important; }
  [data-screen-label="Nav"] { top: 0 !important; }
  html { scroll-padding-top: 80px; }
}

/* ---- Boot screen (export pages): pure CSS so it can appear before any script runs. It fades in 1.2 s after
   the page structure arrives, is removed by shared.js the moment the page renders, and becomes a
   "couldn't load" message if nothing renders within 9 s. Hidden entirely when JavaScript is off (noscript). ---- */
.boot { position: fixed; inset: 0; z-index: 1001; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 18px; padding: 24px; background: #262E38; color: #A5B0BD; text-align: center;
  font: 400 11px/1.7 'Space Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; pointer-events: none; animation: bootIn .3s ease 1.2s forwards; }
.boot.done { display: none; }
.boot.fail { opacity: 1; pointer-events: auto; animation: none; }
.boot img { height: 27px; width: auto; }
.boot a { color: #3BD6F0; }
.boot .boot-f { display: none; max-width: 42ch; }
.boot.fail .boot-l { display: none; }
.boot.fail .boot-f { display: block; }
@keyframes bootIn { to { opacity: 1; } }

/* ---- No-JavaScript fallback message (export pages) ---- */
.nojs { position: relative; z-index: 130; margin: 110px 22px 0; padding: 18px 20px; border: 1px solid rgba(244, 165, 42, .5);
  background: #2F3843; color: #E8EBEF; font: 400 14px/1.6 'Galano Grotesque', system-ui, sans-serif; }
.nojs a { color: #3BD6F0; }
