/* Public site theming system (tokens + component primitives).
 *
 * Keep this file small and stable: themes should be expressible as token swaps,
 * plus a small number of layout/header/homepage variants in views.
 */

.public-site {
  /* Layout tokens */
  --container-max: 1200px;
  --gutter-x: 24px;
  --main-pad-y: 64px;

  /* Spacing tokens (section rhythm) */
  --section-sm: 24px;
  --section-md: 40px;
  --section-lg: 64px;
  --section-xl: 96px;

  /* Typography tokens */
  --font-heading: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji";
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji";

  /* Color tokens */
  --color-bg: #f8fafc; /* slate-50 */
  --color-surface: #ffffff;
  --color-surface-soft: rgba(255, 255, 255, 0.8);
  --color-text: #0f172a; /* slate-900 */
  --color-muted: #475569; /* slate-600 */
  --color-border: #e2e8f0; /* slate-200 */
  --color-tile: rgba(2, 6, 23, 0.03);
  --color-tile-hover: rgba(2, 6, 23, 0.05);
  --color-inset-border: rgba(2, 6, 23, 0.08);

  --color-primary: #0f172a;
  --color-on-primary: #ffffff;

  /* Accent is theme-defined (no per-tenant accent selector in v1). */
  --color-accent: #b45309; /* amber-700 */
  --color-accent-soft: rgba(251, 191, 36, 0.16);

  /* Header tokens */
  --header-bg: rgba(255, 255, 255, 0.8);
  --header-text: var(--color-text);
  --header-muted: var(--color-muted);
  --header-border: var(--color-border);

  /* Navigation tokens */
  --nav-hover-bg: rgba(2, 6, 23, 0.06);
  --nav-current-bg: rgba(2, 6, 23, 0.08);
  --nav-current-ring: inset 0 0 0 1px rgba(2, 6, 23, 0.12);
  --nav-menu-hover-bg: rgba(2, 6, 23, 0.06);
  --submenu-border-color: var(--color-border);

  /* Shape + elevation tokens */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);

  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .public-site {
    overflow-x: hidden;
  }
}

/* Primitives */
.site-main {
  padding-top: var(--main-pad-y);
  padding-bottom: var(--main-pad-y);
}

.site-main--flush-top {
  padding-top: 0;
}

.site-section {
  padding-top: var(--section-lg);
  padding-bottom: var(--section-lg);
}
.site-section--sm {
  padding-top: var(--section-sm);
  padding-bottom: var(--section-sm);
}
.site-section--md {
  padding-top: var(--section-md);
  padding-bottom: var(--section-md);
}
.site-section--xl {
  padding-top: var(--section-xl);
  padding-bottom: var(--section-xl);
}

.site-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter-x);
  padding-right: var(--gutter-x);
}

/* Mobile-first fallback for grids that only define columns at larger breakpoints.
 * Without this, implicit columns can size to max-content and cause horizontal overflow.
 */
.public-site .grid {
  grid-auto-columns: minmax(0, 1fr);
}

.site-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

@supports (width: 100dvw) {
  .site-bleed {
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
  }
}

.site-hero-bleed > section {
  border-radius: 0;
  border-left-width: 0;
  border-right-width: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.site-hero-bleed > section > :where(:not([class*="absolute"])) {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
/* Header links should inherit header color, but "button links" manage their own. */
.site-header a:not(.site-btn):not(.site-nav-submenu-link) {
  color: var(--header-text);
}
.site-header dialog a.site-tile {
  color: var(--color-text);
}
.site-header .site-header-muted {
  color: var(--header-muted);
}

.site-brand-title {
  min-width: 0;
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.2;
  text-wrap: balance;
}

.site-brand-name:empty {
  display: none;
}

@media (min-width: 640px) {
  .site-brand-title {
    text-wrap: pretty;
  }
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 650;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--header-text);
}
.site-nav-link:hover {
  background: var(--nav-hover-bg);
}
.site-nav-link[aria-current="page"] {
  background: var(--nav-current-bg);
  box-shadow: var(--nav-current-ring);
}
.site-nav-menu {
  position: relative;
}
.site-nav-menu::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 10px;
}
.site-nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 650;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--header-text);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.site-nav-menu-trigger:hover {
  background: var(--nav-menu-hover-bg);
}
.site-nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 12rem;
  background: var(--color-surface);
  border: 1px solid var(--submenu-border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.35rem;
  z-index: 60;
}
.site-nav-menu:hover .site-nav-submenu,
.site-nav-menu:focus-within .site-nav-submenu {
  display: block;
}
.site-header .site-nav-submenu .site-nav-submenu-link {
  display: flex;
  align-items: center;
  border-radius: calc(var(--radius-sm) - 2px);
  padding: 0.5rem 0.65rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.site-header .site-nav-submenu-link:hover {
  background: var(--color-tile);
}
.site-header .site-nav-submenu-link[aria-current="page"] {
  background: var(--color-accent-soft);
}

.site-header--momentum .site-logo-shell {
  height: 4rem;
  padding: 0 0.42rem;
}

.site-header--momentum .site-logo-image {
  max-height: 3.6rem;
  max-width: 15rem;
}

.site-header--momentum .site-logo-shell--reversed {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.site-header--momentum .site-nav-link,
.site-header--momentum .site-nav-menu-trigger {
  padding: 0.5rem 0.55rem;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-header--momentum .site-nav-submenu {
  min-width: 13rem;
}

@media (min-width: 640px) {
  .site-header--momentum .site-logo-shell {
    height: 4.5rem;
    padding: 0 0.52rem;
  }

  .site-header--momentum .site-logo-image {
    max-height: 4.35rem;
    max-width: 20rem;
  }
}

.site-h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.site-h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 650;
  text-wrap: balance;
}
.site-h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 650;
}

.hero-carousel-section {
  overflow-anchor: none;
}

.hero-carousel-slide {
  overflow-anchor: none;
}

.hero-carousel-text-shadow {
  text-shadow:
    0 2px 8px rgba(2, 6, 23, 0.9),
    0 12px 28px rgba(2, 6, 23, 0.62);
}

.hero-carousel-slide-image {
  transform: scale(1.01);
  will-change: transform;
}

.hero-carousel-slide-edge-bg {
  position: absolute;
  inset: 0;
  transform: scale(1.22);
  filter: blur(34px) saturate(1.32) contrast(1.08);
  display: none;
  opacity: 0;
  transition: opacity 240ms ease;
}

.hero-carousel-slide-edge-gradient {
  display: none;
  opacity: 0;
  transition: opacity 240ms ease;
}

.hero-carousel-slide--contain-edges .hero-carousel-slide-edge-bg,
.hero-carousel-slide--contain-edges .hero-carousel-slide-edge-gradient {
  display: block;
  opacity: 1;
}

.hero-carousel-slide--contain-edges-x .hero-carousel-slide-edge-gradient {
  background:
    linear-gradient(
      90deg,
      rgba(2, 6, 23, 0.42) 0%,
      rgba(2, 6, 23, 0.08) 20%,
      rgba(2, 6, 23, 0.08) 80%,
      rgba(2, 6, 23, 0.42) 100%
    );
}

.hero-carousel-slide--contain-edges-y .hero-carousel-slide-edge-gradient {
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.42) 0%,
      rgba(2, 6, 23, 0.08) 20%,
      rgba(2, 6, 23, 0.08) 80%,
      rgba(2, 6, 23, 0.42) 100%
    );
}

.hero-carousel-slide--contain-edges .hero-carousel-slide-image {
  object-fit: contain;
  transform: scale(var(--hero-contain-scale, 1.14));
}

.hero-carousel-slide.is-active.hero-carousel-slide--zoom-in .hero-carousel-slide-image {
  animation: hero-carousel-zoom-in var(--hero-carousel-zoom-duration, 6000ms) linear forwards;
}

.hero-carousel-slide.is-active.hero-carousel-slide--zoom-out .hero-carousel-slide-image {
  animation: hero-carousel-zoom-out var(--hero-carousel-zoom-duration, 6000ms) linear forwards;
}

.hero-carousel-slide.is-active.hero-carousel-slide--contain-edges.hero-carousel-slide--zoom-in .hero-carousel-slide-image {
  animation: hero-carousel-zoom-in-soft var(--hero-carousel-zoom-duration, 6000ms) linear forwards;
}

.hero-carousel-slide.is-active.hero-carousel-slide--contain-edges.hero-carousel-slide--zoom-out .hero-carousel-slide-image {
  animation: hero-carousel-zoom-out-soft var(--hero-carousel-zoom-duration, 6000ms) linear forwards;
}

@keyframes hero-carousel-zoom-in {
  0% {
    transform:
      translate3d(var(--hero-pan-x-start, -3%), var(--hero-pan-y-start, -2%), 0)
      scale(var(--hero-zoom-start, 1.06));
  }
  100% {
    transform:
      translate3d(var(--hero-pan-x-end, 4%), var(--hero-pan-y-end, 2.5%), 0)
      scale(var(--hero-zoom-end, 1.2));
  }
}

@keyframes hero-carousel-zoom-out {
  0% {
    transform:
      translate3d(var(--hero-pan-out-x-start, 3.5%), var(--hero-pan-out-y-start, -2.2%), 0)
      scale(var(--hero-zoom-out-start, 1.2));
  }
  100% {
    transform:
      translate3d(var(--hero-pan-out-x-end, -3.5%), var(--hero-pan-out-y-end, 2.3%), 0)
      scale(var(--hero-zoom-out-end, 1.06));
  }
}

@keyframes hero-carousel-zoom-in-soft {
  0% {
    transform:
      translate3d(var(--hero-pan-soft-x-start, -1.8%), var(--hero-pan-soft-y-start, -1.2%), 0)
      scale(calc(var(--hero-contain-scale, 1.14) + var(--hero-soft-zoom-start-delta, 0.03)));
  }
  100% {
    transform:
      translate3d(var(--hero-pan-soft-x-end, 2.2%), var(--hero-pan-soft-y-end, 1.4%), 0)
      scale(calc(var(--hero-contain-scale, 1.14) + var(--hero-soft-zoom-end-delta, 0.12)));
  }
}

@keyframes hero-carousel-zoom-out-soft {
  0% {
    transform:
      translate3d(var(--hero-pan-soft-out-x-start, 2%), var(--hero-pan-soft-out-y-start, -1.3%), 0)
      scale(calc(var(--hero-contain-scale, 1.14) + var(--hero-soft-zoom-out-start-delta, 0.12)));
  }
  100% {
    transform:
      translate3d(var(--hero-pan-soft-out-x-end, -2.1%), var(--hero-pan-soft-out-y-end, 1.3%), 0)
      scale(calc(var(--hero-contain-scale, 1.14) + var(--hero-soft-zoom-out-end-delta, 0.03)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide-image {
    animation: none !important;
    transform: scale(1.02);
  }
}

.hero-carousel-glass {
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(
    155deg,
    rgba(15, 23, 42, 0.46),
    rgba(15, 23, 42, 0.34)
  );
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.28);
  padding: 1rem;
}

@media (min-width: 640px) {
  .hero-carousel-glass {
    padding: 1.5rem;
  }
}

.site-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}
.site-muted {
  color: var(--color-muted);
}
.site-small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
}

.site-prose {
  max-width: 75ch;
}
.site-prose h1,
.site-prose h2,
.site-prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-wrap: balance;
}
.site-prose h1 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}
.site-prose h2 {
  font-size: clamp(1.4rem, 2.35vw, 1.85rem);
}
.site-prose h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}
.site-prose :is(h1, h2, h3):first-child {
  margin-top: 0;
}
.site-prose p {
  margin-top: 0;
  margin-bottom: 1rem;
}
.site-prose :is(p, li, div, a) {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.site-prose div {
  margin-top: 0;
  margin-bottom: 1rem;
}
.site-prose ul,
.site-prose ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.35rem;
}
.site-prose ul {
  list-style: disc outside;
}
.site-prose ol {
  list-style: decimal outside;
}
.site-prose li + li {
  margin-top: 0.25rem;
}
.site-prose :is(p, div):last-child {
  margin-bottom: 0;
}
.site-prose :is(ul, ol):last-child {
  margin-bottom: 0;
}
.site-prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.site-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.site-card-soft {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.site-promo-banner {
  background: linear-gradient(90deg, var(--color-accent-soft), rgba(255, 255, 255, 0.88));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.site-promo-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 9999px;
  background: var(--color-accent);
  opacity: 0.55;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 650;
  font-size: 14px;
  padding: 10px 16px;
  text-decoration: none;
  user-select: none;
}
.site-btn-primary,
.site-btn.site-btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.site-btn-secondary,
.site-btn.site-btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.site-btn-text,
.site-btn.site-btn-text {
  background: transparent;
  color: var(--color-accent);
  padding: 8px 10px;
  min-height: 32px;
}

.site-input {
  width: 100%;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  padding: 10px 12px;
}

.site-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--color-muted);
}

.site-tile {
  background: var(--color-tile);
  border: 1px solid var(--color-inset-border);
  border-radius: var(--radius-lg);
}
.site-tile--link {
  display: block;
  text-decoration: none;
  transition: background 120ms ease, transform 120ms ease;
}
.site-tile--link:hover {
  background: var(--color-tile-hover);
  transform: translateY(-1px);
}
.site-tile--accent {
  position: relative;
  overflow: hidden;
}
.site-tile--accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 9999px;
  background: var(--color-accent);
  opacity: 0.55;
}

.site-date-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid;
  align-content: center;
  justify-items: center;
  line-height: 1.05;
  flex: none;
}
.site-date-badge-month {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-date-badge-day {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.site-sponsor-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-inset-border);
  background: rgba(255, 255, 255, 0.75);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--color-accent);
}

.site-logo-img {
  height: 48px;
  width: auto;
  max-width: 180px;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
}
@media (min-width: 640px) {
  .site-logo-img {
    height: 70px;
    max-width: 240px;
  }
}

.site-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-inset-border);
  background: var(--color-accent-soft);
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  flex: none;
}
@media (min-width: 640px) {
  .site-brand-mark {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 639px) {
  .public-site {
    --gutter-x: 16px;
    --main-pad-y: 32px;
    --section-md: 28px;
    --section-lg: 36px;
    --section-xl: 52px;
  }

  /* Hide "View & register" label on mobile; the whole tile is already a link
   * and the chevron icon gives adequate affordance.
   */
  .site-event-cta-label {
    display: none;
  }
}

.site-accent-badge {
  background: var(--color-accent-soft);
  border: 1px solid rgba(2, 6, 23, 0.08);
  color: var(--color-accent);
}

.site-logo-marquee {
  overflow: hidden;
}

.site-logo-marquee-track {
  display: flex;
  width: max-content;
  animation: site-logo-marquee 30s linear infinite;
  will-change: transform;
}

.site-logo-marquee:hover .site-logo-marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .site-logo-marquee-track {
    animation: none;
  }
}

.site-logo-marquee-group {
  display: flex;
  align-items: center;
}

@keyframes site-logo-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Accessibility: keep focus visible even without Tailwind rings. */
.public-site a:focus-visible,
.public-site button:focus-visible,
.public-site input:focus-visible,
.public-site select:focus-visible,
.public-site textarea:focus-visible,
.public-site summary:focus-visible {
  outline: 3px solid var(--color-accent-soft);
  outline-offset: 2px;
}

.site-header--runway {
  background: rgba(10, 37, 64, 0.96);
  color: #f8fafc;
  border-bottom: 0;
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.16);
}

.site-header--runway .runway-utility-bar {
  background: rgba(8, 29, 51, 0.96);
}

.site-header--runway .site-logo-shell {
  min-height: 4rem;
  padding: 0.25rem 0.42rem;
}

.site-header--runway .site-logo-shell--reversed {
  min-height: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.site-header--runway .site-logo-image {
  max-height: 3.45rem;
  max-width: 15rem;
}

.site-header--runway .site-nav-link,
.site-header--runway .site-nav-menu-trigger {
  padding: 0.55rem 0.72rem;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-header--runway .site-nav-submenu {
  min-width: 14rem;
  background: #102b48;
  border-color: rgba(255, 255, 255, 0.12);
}

.site-header--runway .site-nav-submenu .site-nav-submenu-link {
  color: rgba(248, 250, 252, 0.92);
}

.site-header--runway .site-nav-submenu-link:hover,
.site-header--runway .site-nav-submenu-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .site-header--runway .site-logo-shell {
    min-height: 4.5rem;
    padding: 0.3rem 0.52rem;
  }

  .site-header--runway .site-logo-shell--reversed {
    min-height: auto;
    padding: 0;
  }

  .site-header--runway .site-logo-image {
    max-height: 4rem;
    max-width: 18rem;
  }
}

.runway-hero-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10, 37, 64, 0.98) 0%, rgba(15, 42, 74, 0.92) 48%, rgba(200, 16, 46, 0.82) 100%);
}

.runway-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 100%);
  background-size: 96px 96px, 96px 96px;
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.8) 18%, rgba(0, 0, 0, 0.8) 82%, transparent);
  opacity: 0.5;
}

.runway-logo-marquee .site-logo-marquee-track {
  animation-duration: 42s;
}

.runway-hero-band-backdrop {
  position: absolute;
  inset: -2rem;
  z-index: 0;
  width: calc(100% + 4rem);
  height: calc(100% + 4rem);
  object-fit: cover;
  transform: scale(1.08);
  filter: blur(24px) saturate(1.06);
  opacity: 0.72;
  pointer-events: none;
}

.runway-hero-band-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.runway-hero-band-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(12, 18, 28, 0.14), rgba(12, 18, 28, 0.56)),
    linear-gradient(90deg, rgba(12, 18, 28, 0.62) 0%, rgba(12, 18, 28, 0.28) 14%, rgba(12, 18, 28, 0.14) 48%, rgba(12, 18, 28, 0.24) 82%, rgba(12, 18, 28, 0.58) 100%);
}

.runway-hero-band .site-container {
  z-index: 4;
}

.runway-hero-text-shadow {
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.86),
    0 12px 28px rgba(0, 0, 0, 0.40);
}

.runway-card {
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(10, 37, 64, 0.06);
}

.runway-card-muted {
  background: #eef1f6;
}

.runway-footer {
  background: linear-gradient(180deg, #081d33 0%, #0a2540 45%, #071725 100%);
}

.runway-prose {
  font-size: 17px;
  line-height: 1.72;
}

.runway-fallback-gradient {
  background: linear-gradient(135deg, #081d33 0%, #0f2a4a 58%, #0f2a4a 72%, #c8102e 100%);
}

.runway-prose h1,
.runway-prose h2,
.runway-prose h3,
.runway-prose h4,
.runway-prose h5,
.runway-prose h6 {
  font-family: var(--font-heading);
  color: #0a2540;
}

.runway-prose h4,
.runway-prose h5,
.runway-prose h6 {
  margin-top: 1.4rem;
  margin-bottom: 0.7rem;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.runway-prose blockquote {
  margin: 1.5rem 0;
  border-left: 3px solid #c8102e;
  background: #f3f5f9;
  padding: 1rem 1.25rem;
  color: #0f2a4a;
  font-style: italic;
}

.runway-prose hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgba(10, 37, 64, 0.12);
}

.runway-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  overflow: hidden;
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.05);
}

.runway-prose thead th {
  background: #0f2a4a;
  color: #f8fafc;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.runway-prose th,
.runway-prose td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.runway-prose tbody tr:nth-child(even) {
  background: #f8fafc;
}

.runway-prose tbody tr:last-child td {
  border-bottom: 0;
}

.runway-prose .runway-table-year {
  white-space: nowrap;
  font-weight: 700;
  color: #0a2540;
}

.runway-directory-search input::placeholder {
  color: #8b96a4;
}

@media (max-width: 639px) {
  .runway-prose {
    font-size: 16px;
    line-height: 1.66;
  }

  .runway-prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
