/* tra.css — The Road Ahead page (dark content area inside the light shell).
   Loaded exclusively by road-ahead.html. Tokens come from base.css —
   the --tra-* set is the consumer here. */

body.page-tra { background: var(--tra-bg); color: var(--tra-text); }
body.page-tra a { color: var(--sky); }

/* portal handoff cover: starts opaque (the exact color the bubble portal
   became on home), fades out on load — see home.js navigate() */
#traCover {
  position: fixed; inset: 0; z-index: 200;
  background: var(--tra-bg);
  pointer-events: none;
  transition: opacity 400ms ease;
}

.tra-back {
  position: fixed; top: calc(var(--header-h) + 12px); left: 20px; z-index: 95;
  background: var(--tra-surface); color: var(--tra-text);
  border: 1px solid var(--tra-border); border-radius: 6px;
  padding: 8px 14px; font-size: 0.85rem;
  text-decoration: none; cursor: pointer;
}
.tra-back:hover { border-color: var(--tra-muted); }

.side-road {
  position: fixed; left: 20px; top: 130px; bottom: 40px; width: 56px;
  z-index: 1; pointer-events: none;
}
.side-road svg { width: 100%; height: 100%; }
.side-road path {
  stroke: var(--tra-border); stroke-width: 3; fill: none;
  stroke-dasharray: 10 12; stroke-linecap: round;
}
.side-road .walker {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px;
  border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 12px 3px rgba(242, 148, 90, 0.5);
}

.tra-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: calc(var(--header-h) + 40px) 24px 120px; }
.tra-hero .kicker { color: var(--orange); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 600; }
.tra-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0; }
.tra-hero p { color: var(--tra-muted); max-width: 52ch; }
.tra-badge {
  display: inline-block; margin-top: 14px; font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  color: var(--orange); border: 1px solid color-mix(in srgb, var(--orange) 50%, transparent);
}
.sts-block { margin: 36px 0; }
.sts-block h2 { font-size: 1.3rem; margin-bottom: 4px; }
.sts-block .cap { color: var(--tra-muted); font-size: 0.9rem; margin-bottom: 12px; }
.sts-map { width: 100%; height: 300px; background: var(--tra-surface); border: 1px solid var(--tra-border); border-radius: 14px; }
.sts-map .edge { stroke: var(--tra-border); stroke-width: 2.5; stroke-dasharray: 7 8; fill: none; }
.sts-map .node { cursor: pointer; }
.sts-map .node circle { fill: var(--tra-surface); stroke: var(--nc, var(--tra-border)); stroke-width: 2.5; transition: fill 150ms; }
.sts-map .node text { fill: var(--tra-muted); font-size: 11px; font-family: var(--font-display); text-anchor: middle; }
.sts-map .node.lit circle { fill: var(--nc); }
.sts-map .node.lit text { fill: var(--tra-text); }
.sts-caption { margin-top: 10px; color: var(--tra-muted); font-size: 0.9rem; min-height: 1.5em; }
.sts-caption strong { color: var(--tra-text); }
.slot {
  margin: 20px 0; border: 2px dashed var(--tra-border); border-radius: 14px;
  padding: 22px; color: var(--tra-muted); font-size: 0.9rem;
  display: flex; flex-direction: column; gap: 6px;
}
.slot .slot-name { font-family: var(--font-display); font-weight: 700; color: var(--tra-text); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.slot.ratio { aspect-ratio: 16 / 9; justify-content: center; align-items: center; text-align: center; }

@media (max-width: 768px) {
  .tra-content { padding-top: calc(var(--header-h) + 56px); }
  .side-road { display: none; }
}
