:root{
  --bg: #0C234B;
  --panel: #17181d;
  --text: #e9ecf1;
  --muted: #a8b0bd;
  --accent: #1E5288;
  --accent-2: #8B0015;

  --tile-radius: 16px;
  --gap: 20px;
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: radial-gradient(1200px 600px at 60% -10%, #1c2230 0%, var(--bg) 60%);
  color: var(--text);
  line-height: 1.35;
}
.no-select{
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1,1); white-space: nowrap; border: 0;
}

/* Plain content links (anchors with no class, e.g. links authored in the CMS).
   The browser default (#0000EE) is unreadable on the blue background, so use UA Sky.
   :where() keeps specificity at zero so any component rule (person links,
   .modal-body a, etc.) still overrides this. */
a:where(:not([class])){
  color: #81D3EB; /* Sky - UA brand, high contrast on Arizona Blue */
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:where(:not([class])):hover{ color: #A8E0F0; }
a:where(:not([class])):active{ color: #FFFFFF; }
a:where(:not([class])):visited{ color: #B9A7E8; }

/* Page frame */
.wrap{
  min-height: 100dvh;
}

/* Vertically center hero + cards on home and section pages */
body[data-page="index"],
body[data-page="section"]{
  min-height: 100dvh;
}

body[data-page="index"] .wrap,
body[data-page="section"] .wrap{
  display: flex;
  flex-direction: column;
}

/* Pin header at top; center cards in remaining space */
body[data-page="index"] .site-header,
body[data-page="section"] .site-header{
  padding-top: 16px;
  padding-bottom: 12px;
}

body[data-page="index"] .section,
body[data-page="section"] .section{
  padding-top: 0;
  flex: 1;
  display: flex;
  align-items: center; /* vertically center timeline within available space */
}
.site-header{
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}
.site-logo-link{
  display: block;
  align-self: flex-start;
  text-decoration: none;
  color: inherit;
}
.site-logo{
  display: block;
  align-self: flex-start;
  width: 320px;
  height: 128px;
  object-fit: contain;
}
.site-title{
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.2px;
  text-align: center;
  color: var(--text);
}

/* full-bleed center helpers (title + hint) */
.site-header.full-bleed-center,
.scroll-hint.full-bleed-center{
  width:100vw;
  margin-left:50%;
  transform:translateX(-50%);
  text-align:center;
}

/* rail remains the only scrollable thing */
.timeline-wrap{ width:100%; margin:0 auto; }
.timeline-rail{ overflow-x:auto; }

/* Main content area (the horizontal timeline lives inside) */
.section{ display:block; padding:10px 24px 32px; width:100%; }

/* Buttons (used for back/prev/next etc.) */
.tile-button{
  display: inline-block;
  min-height: 140px;           /* large tap targets by default */
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 650;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.08)),
    linear-gradient(135deg, rgba(89,179,255,0.14), rgba(125,107,255,0.12));
  background-color: var(--panel);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--tile-radius);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  text-align: center;
  transform-origin: center center; /* nicer zoom if animated */
}
.tile-button span{ max-width: 90%; display:inline-block; }
.tile-button:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.tile-button:hover{
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}
.tile-button:active{
  transform: translateY(0);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Compact buttons (e.g., Back) can override height via inline style or a helper class */
.tile-button.is-compact{ min-height: 0; padding: 10px 16px; font-size: 18px; }