/* Sprint 19 universe pages. Loaded from the page body until the shell includes it. */

.next-step {
  margin: 1.75rem 0 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.next-step a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--accent);
}

.next-step a:hover { text-decoration: underline; }

.shot {
  margin: 1.3rem 0 1.6rem;
  max-width: 780px;
}

.shot-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #0c0f16;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  cursor: zoom-in;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shot-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
  height: auto;
  transition: transform 0.35s ease;
}

.shot.shot-wide {
  max-width: 100%;
}

.shot-wide .shot-frame {
  display: block;
  width: 100%;
}

.shot-wide .shot-frame img {
  width: 100%;
  max-height: none;
}

.shot-frame:hover, .shot-frame:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.shot-frame:hover img { transform: scale(1.012); }

.shot-zoom {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(9, 11, 16, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.shot-frame:hover .shot-zoom, .shot-frame:focus-visible .shot-zoom { opacity: 1; transform: none; }

@media (hover: none) {
  .shot-zoom { opacity: 1; transform: none; }
}

.shot figcaption {
  margin-top: 0.65rem;
  padding: 0.7rem 0.95rem 0.75rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.55;
}

.shot-badge {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.yt-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #0c0f16;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.yt-frame iframe,
.yt-frame .yt-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-frame .yt-facade {
  display: block;
  padding: 0;
  background: #0c0f16;
  cursor: pointer;
}
.yt-frame .yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-frame .yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border-radius: 14px;
  background: #ff0033;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.yt-frame .yt-play::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.yt-frame .yt-facade:hover .yt-play,
.yt-frame .yt-facade:focus-visible .yt-play { background: #ff1a47; }
.yt-frame .yt-facade:focus-visible { outline: 2px solid #b9a0ff; outline-offset: 3px; }

.shot-title { color: var(--text); font-weight: 800; }
.shot-desc { display: block; margin-top: 0.22rem; }
.shot-extra { display: block; margin-top: 0.4rem; font-size: 0.82rem; }

.lg-backdrop.in, .lg-backdrop { background: rgba(5, 7, 11, 0.96); }
.lg-outer .lg-sub-html {
  background: rgba(5, 7, 11, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font);
  text-align: center;
  padding: 0.85rem 1.2rem 0.95rem;
}
.lg-outer .lg-sub-html h4 { margin: 0; color: #fff; font-size: 1rem; font-weight: 800; }
.lg-outer .lg-sub-html p { margin: 0.3rem auto 0; max-width: 92ch; color: #c9cfdd; font-size: 0.9rem; line-height: 1.5; }
.lg-outer .lg-sub-html a { color: #d6d2ff; }
.lg-badge {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.06rem 0.5rem;
  border-radius: 999px;
  background: rgba(139, 124, 255, 0.22);
  color: #ddd6ff;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.3rem;
}

.card-grid.card-grid--2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-grid .card { height: 100%; }

.overview-map {
  margin: 1.5rem 0 1.6rem;
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 0, rgba(62, 224, 197, 0.07), transparent 70%), var(--bg-2);
}

.overview-map-caption { display: grid; gap: 0.15rem; margin-bottom: 1.1rem; }
.overview-map-eyebrow {
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.overview-map-caption strong { font-size: 1.05rem; letter-spacing: -0.02em; }

.overview-map svg { display: block; width: 100%; height: auto; }
.overview-map-mobile { display: none; }

.pathway-map { margin: 1.4rem 0 1.8rem; }
.pathway-map svg { display: block; width: 100%; height: auto; }
.pathway-map-mobile { display: none; }

.tv-suite-map figcaption,
.tv-futures-map figcaption,
.tv-schedule-map figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.tv-layout-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 1.8rem;
}

.tv-layout-card {
  --layout-accent: #5ee4c4;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid #303b4a;
  border-top: 2px solid var(--layout-accent);
  border-radius: 16px;
  background: linear-gradient(145deg, #171f2d, #111721);
}

.tv-layout-card--day { --layout-accent: #b8a3ff; }
.tv-layout-card-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.tv-layout-card-heading strong { font-size: 1.13rem; letter-spacing: -0.03em; }
.tv-layout-count {
  padding: 0.13rem 0.45rem;
  border: 1px solid #354254;
  border-radius: 99px;
  color: var(--layout-accent);
  font-size: 0.68rem;
  white-space: nowrap;
}

.tv-layout-card .tv-layout-scope { margin: 0.4rem 0 0.85rem; color: var(--muted); font-size: 0.8rem; }
.tv-layout-preview { display: block; width: 100%; height: auto; border-radius: 10px; }
.tv-layout-card .tv-layout-indicators {
  display: grid;
  gap: 0.25rem;
  margin: 0.9rem 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

.tv-layout-indicators li::before { content: "·"; margin-right: 0.5rem; color: var(--layout-accent); }
.tv-layout-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: auto; }
.tv-layout-theme {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.45rem 0.35rem;
  border: 1px solid #526176;
  border-radius: 9px;
  background: #1b2534;
  color: #eef1f7;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.tv-layout-themes > div:nth-child(2) .tv-layout-theme { background: #e7eaf2; border-color: #e7eaf2; color: #182030; }
.tv-layout-theme:hover, .tv-layout-theme:focus-visible { outline: 2px solid var(--layout-accent); outline-offset: 3px; }
.tv-layout-original-name { display: block; margin-top: 0.4rem; color: var(--faint); font-size: 0.6rem; line-height: 1.5; overflow-wrap: anywhere; }

.webapp-suite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}

.webapp-suite-card {
  --suite-accent: #5ee4c4;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid #2e3848;
  border-top: 2px solid var(--suite-accent);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(25, 34, 49, 0.92), rgba(14, 19, 28, 0.96));
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.webapp-suite-card--chart { --suite-accent: #38bdf8; }
.webapp-suite-card--matrix { --suite-accent: #b8a3ff; }
.webapp-suite-card--screener { --suite-accent: #f5c16c; }

.webapp-suite-card:hover,
.webapp-suite-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--suite-accent);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: inherit;
}

.webapp-suite-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.webapp-suite-eyebrow {
  color: var(--suite-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.webapp-suite-badge {
  padding: 0.12rem 0.5rem;
  border: 1px solid #334155;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.webapp-suite-title {
  display: block;
  margin-bottom: 0.65rem;
  color: #f8fafc;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.webapp-suite-preview {
  margin-bottom: 0.75rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.webapp-suite-preview svg {
  display: block;
  width: 100%;
  height: auto;
}

.webapp-suite-desc {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .tv-layout-selector, .webapp-suite-grid { grid-template-columns: 1fr; }
  .path-grid, .card-grid.card-grid--2x2 { grid-template-columns: 1fr; }
  .overview-map { padding: 1rem; }
  .overview-map-desktop { display: none; }
  .overview-map-mobile { display: block; }
  .pathway-map-desktop { display: none; }
  .pathway-map-mobile { display: block; }
}
