:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-soft: #f9fbfa;
  --ink: #181818;
  --muted: #62615d;
  --line: #d8dfdc;
  --green: #1a7f5a;
  --red: #b33a3a;
  --blue: #2266aa;
  --gold: #c98621;
  --shadow: 0 16px 40px rgba(30, 27, 22, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
select {
  font: inherit;
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 22px;
}

.homepage-branding {
  flex: 1 1 377px;
  min-width: 0;
}

.homepage-brand {
  margin: 0;
  line-height: 0;
}

.homepage-brand-logo {
  display: block;
  width: 64%;
  max-width: 377px;
  height: auto;
}

.header-right {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.brand-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.header-link {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
  text-decoration: none;
}

.header-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.header-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.93rem;
  text-align: right;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 134, 33, 0.15);
}

.status-dot.is-live {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(26, 127, 90, 0.15);
}

.status-dot.is-error {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(179, 58, 58, 0.15);
}

main {
  display: grid;
  gap: 22px;
  padding-bottom: 30px;
}

.service-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  border: 1px solid #b9d2eb;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #f1f7fc;
  padding: clamp(20px, 3vw, 30px);
}

.explainer-copy h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

.explainer-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 10px;
  color: #294258;
  line-height: 1.55;
}

.explainer-copy .explainer-delay {
  font-size: 0.88rem;
}

.explainer-actions {
  display: grid;
  gap: 16px;
}

.explainer-actions .alert-button {
  margin-top: 0;
}

.explainer-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explainer-steps li {
  display: grid;
  gap: 7px;
  align-content: start;
  color: #294258;
  font-size: 0.82rem;
  line-height: 1.25;
}

.explainer-steps span {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  padding: 18px 0 34px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.overview,
.chart-section,
.details {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.section-heading,
.chart-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading p,
.chart-toolbar p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.icon-button {
  min-width: 108px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.icon-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.price-card {
  display: grid;
  min-height: 178px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.price-card[role="button"] {
  cursor: pointer;
}

.price-card[role="button"]:focus-visible {
  outline: 3px solid rgba(34, 102, 170, 0.35);
  outline-offset: 3px;
}

.price-card.is-selected {
  border-color: var(--blue);
  background: #fbfdff;
  box-shadow:
    inset 0 0 0 2px rgba(34, 102, 170, 0.22),
    0 18px 44px rgba(34, 102, 170, 0.16);
}

.alert-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: fit-content;
  margin-top: 14px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.alert-button:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.price-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.event-page-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.event-page-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-page-link:focus-visible,
.chart-event-page-link:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(34, 102, 170, 0.35);
  outline-offset: 3px;
}

.price {
  align-self: end;
  margin-top: 18px;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6f2;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
}

.delta.is-up {
  background: #fbefef;
  color: var(--red);
}

.delta.is-flat {
  background: #f2f0ea;
  color: var(--muted);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.controls {
  display: grid;
  gap: 6px;
  min-width: 0;
  width: min(360px, 100%);
}

.controls label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-event-page-link {
  width: fit-content;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.chart-event-page-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chart-event-page-link[hidden] {
  display: none;
}

select {
  min-width: 0;
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 36px 0 12px;
}

.chart-wrap {
  position: relative;
  width: 100%;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

canvas {
  display: block;
  width: 100%;
  height: 430px;
  cursor: crosshair;
  touch-action: pan-y;
}

.chart-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 5px;
  font-size: 1.08rem;
}

.table-wrap {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: 0;
}

.event-name {
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.ticket-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.ticket-link:hover {
  text-decoration: underline;
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
}

@media (max-width: 940px) {
  .service-explainer {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .chart-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .site-header,
  .section-heading,
  .chart-toolbar {
    display: grid;
  }

  .header-right {
    justify-items: start;
  }

  .brand-nav {
    justify-content: flex-start;
  }

  .header-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .summary-grid,
  .chart-stats {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: 154px;
  }

  .explainer-actions .alert-button {
    width: 100%;
  }

  .chart-wrap {
    min-height: 350px;
  }

  canvas {
    height: 350px;
  }
}

/* Dedicated public event pages */
.brand-title {
  display: inline-block;
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 0.95;
  text-decoration: none;
}

.brand-title:hover {
  color: var(--blue);
}

.event-site-header {
  align-items: center;
}

.preview-banner {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: #fff5df;
  border-bottom: 1px solid #e9cc8c;
  color: #704808;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.preview-banner a {
  color: #704808;
}

.event-page {
  gap: 26px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumbs a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.event-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: stretch;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.event-hero-copy,
.event-price-card,
.event-content,
.event-disclosure,
.event-empty-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.event-hero-copy {
  padding: clamp(22px, 4vw, 46px);
}

.event-hero-copy h1 {
  max-width: 900px;
  font-size: clamp(2.25rem, 5.6vw, 5.1rem);
  line-height: 0.98;
}

.event-intro {
  max-width: 780px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
}

.event-intro p + p {
  margin-top: 12px;
}

.event-meta-list {
  display: flex;
  gap: 14px 28px;
  flex-wrap: wrap;
  margin: 22px 0 0;
}

.event-meta-list div {
  display: grid;
  gap: 4px;
}

.event-meta-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-meta-list dd {
  margin: 0;
  font-weight: 700;
}

.event-alert-explainer {
  margin-top: 22px;
  border: 1px solid #b9d2eb;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #f1f7fc;
  padding: 16px 18px;
}

.event-alert-explainer h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.2;
}

.event-alert-explainer p {
  margin-top: 8px;
  color: #294258;
  line-height: 1.5;
}

.event-alert-explainer .event-alert-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.event-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.event-hero-actions .alert-button {
  margin-top: 0;
}

.marketplace-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--blue);
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.marketplace-button:hover {
  border-color: var(--blue);
}

.event-price-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 34px);
}

.event-price-card > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-price-card > strong {
  margin-top: 10px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1;
}

.event-price-card p {
  margin-top: 12px;
  color: var(--muted);
}

.event-price-card small {
  display: block;
  margin-top: 20px;
  color: var(--green);
  line-height: 1.45;
}

.event-price-card small.is-error {
  color: var(--red);
}

.event-price-card small.is-waiting {
  color: var(--muted);
}

.price-delay-notice {
  margin: 16px 0;
  border: 1px solid #b9d2eb;
  border-radius: 8px;
  background: #f1f7fc;
  color: #294258;
  padding: 14px 16px;
}

.price-delay-notice p {
  margin: 0;
  line-height: 1.55;
}

.price-delay-notice a {
  color: var(--blue);
  font-weight: 800;
}

.delay-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.event-stat-section,
.event-chart-section,
.event-package-section,
.event-content,
.event-disclosure {
  min-width: 0;
}

.event-stat-section,
.event-chart-section,
.event-package-section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.event-package-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.event-package-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid #aac9bc;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface), #eef8f3);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.event-package-card h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

.event-package-card p {
  max-width: 760px;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

.event-package-card .event-package-terms {
  color: #175b42;
  font-size: 0.9rem;
  font-weight: 800;
}

.event-package-action {
  display: grid;
  justify-items: end;
  gap: 11px;
}

.event-package-action > strong {
  color: #175b42;
  font-size: 1.8rem;
  line-height: 1;
}

.event-package-action .alert-button {
  margin-top: 0;
  white-space: nowrap;
}

.event-chart-stats {
  margin-top: 0;
}

.event-movement-value.is-rising {
  color: var(--red);
}

.event-movement-value.is-falling {
  color: var(--green);
}

.event-movement-value.is-steady {
  color: var(--muted);
}

.event-content,
.event-disclosure {
  padding: clamp(20px, 4vw, 36px);
}

.event-content h2 {
  margin-bottom: 16px;
}

.prose {
  max-width: 800px;
  color: #353533;
  font-size: 1rem;
  line-height: 1.72;
}

.prose p + p {
  margin-top: 16px;
}

.event-disclosure {
  background: var(--surface-soft);
}

.event-disclosure strong {
  display: block;
  font-size: 0.9rem;
}

.event-disclosure p {
  max-width: 900px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.chart-noscript {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.event-error-page {
  min-height: 80vh;
  place-content: center;
}

.event-empty-card {
  max-width: 680px;
  padding: clamp(24px, 5vw, 48px);
}

.event-empty-card h1 {
  margin-bottom: 16px;
}

.event-empty-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 840px) {
  .event-hero {
    grid-template-columns: 1fr;
  }

  .event-price-card {
    min-height: 230px;
  }
}

@media (max-width: 720px) {
  .event-site-header {
    align-items: start;
  }

  .preview-banner {
    display: grid;
    gap: 5px;
  }

  .event-hero-copy {
    padding: 24px 18px;
  }

  .event-hero-actions {
    align-items: stretch;
  }

  .event-hero-actions a {
    width: 100%;
  }

  .event-package-card {
    grid-template-columns: 1fr;
  }

  .event-package-action {
    justify-items: stretch;
  }

  .event-package-action .alert-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}
