.landing-page {
  color: var(--text);
}

.landing-hero {
  align-items: start;
}

.landing-hero-card,
.pulse-card,
.feature-panel {
  position: relative;
  overflow: hidden;
}

.landing-hero-card::before,
.pulse-card::before,
.feature-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glass-accent), transparent 35%);
  pointer-events: none;
}

.landing-nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.landing-theme-btn {
  border: 1px solid var(--forest-border);
  background: transparent;
  color: var(--forest-muted);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.landing-theme-btn:hover {
  color: var(--forest-text);
  border-color: var(--lime);
}

.landing-side-title {
  margin-top: 18px;
  margin-bottom: 18px;
}

.signal-list,
.roadmap-list {
  display: grid;
  gap: 14px;
}

.signal-list div,
.roadmap-list div {
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--panel-bg-soft);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.signal-list div:hover,
.roadmap-list div:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border);
  transform: translateY(-1px);
}

.signal-list strong,
.roadmap-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.landing-title {
  max-width: 27ch;
  font-family: "Valiety", serif;
  font-size: clamp(1.2rem, 8vw, 5rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
}

.landing-copy {
  max-width: 120ch;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.landing-stats-section {
  padding-top: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title-xl {
  margin-top: 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.05;
}

.section-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 26ch;
}

.metric-label {
  display: block;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  margin-bottom: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

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

.panel-title {
  margin-top: 10px;
}

.panel-link,
.panel-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.panel-link:hover {
  color: var(--lime);
}

.reg-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.reg-select {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

.reg-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.reg-summary-card,
.news-card,
.ad-placeholder,
.reg-row {
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--panel-bg-soft);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.reg-summary-card:hover,
.news-card:hover,
.reg-row:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border);
  transform: translateY(-1px);
}

.reg-summary-card {
  padding: 14px;
}

.reg-summary-card span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reg-summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
}

.reg-preview-list,
.leaderboard-stack {
  display: grid;
  gap: 12px;
}

.reg-row {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.reg-row-copy strong,
.leaderboard-copy strong {
  display: block;
}

.reg-row-copy span,
.leaderboard-copy span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.reg-row-meta {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text);
}

.reg-row-meta em {
  display: inline-block;
  margin-left: 8px;
  color: var(--lime);
  font-style: normal;
}

.leaderboard-wrap { width: 100%; overflow-x: auto; }

.leaderboard-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.leaderboard-table thead tr { border-bottom: 0.5px solid var(--border); }

.leaderboard-table th {
  padding: 8px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.leaderboard-table th:last-child { text-align: right; }

.leaderboard-table td {
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--border);
  vertical-align: middle;
}

.leaderboard-table tbody tr:last-child td { border-bottom: none; }
.leaderboard-table tbody tr:hover { background: var(--panel-bg-soft); }

.leaderboard-rank {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
  background: var(--surface2);
  color: var(--text-muted);
}

.leaderboard-rank.top { background: var(--glass-accent-strong); color: var(--lime); }

.leaderboard-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--glass-accent-strong);
  color: var(--lime);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

.leaderboard-name { font-weight: 500; font-size: 13px; }
.leaderboard-inst { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.leaderboard-score {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--lime);
  text-align: right;
}

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

.news-card {
  padding: 18px;
}

.news-date {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.news-link {
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--lime);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.ad-placeholder {
  padding: 18px;
  margin-bottom: 14px;
}

.ad-placeholder.compact {
  margin-bottom: 0;
}

.ad-media-slot {
  min-height: 140px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--lime) 35%, transparent);
  background: linear-gradient(135deg, var(--glass-accent), color-mix(in srgb, var(--blue) 12%, transparent));
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", monospace;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
  padding: 18px;  
  aspect-ratio: 16 / 9; /* Matches your expected image shape */
  overflow: hidden;    /* Keeps the image within your rounded corners */
}
.ad-media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
  display: block;
}

.ad-placeholder p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.ad-title {
  margin-bottom: 8px;
  font-size: 1rem;
}

.ad-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--lime);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.collaborators-section {
  padding-top: 0;
}



.logo-slot {
  min-height: 92px;
  border-radius: 18px;
  border: 1px dashed var(--border);
  background: var(--panel-bg);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.logo-slot.logo-link {
  text-decoration: none;
}

.logo-image {
  max-width: 100%;
  max-height: 38px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

.newsletter-modal[hidden] {
  display: none;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.newsletter-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
}

.newsletter-dialog {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 6vh auto;
  max-height: 88vh;
  overflow: auto;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--panel-fill);
  box-shadow: var(--shadow);
}

.newsletter-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
}

.modal-title {
  margin: 10px 0 16px;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.modal-body {
  color: var(--text);
  line-height: 1.8;
}

.empty-state {
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--text-muted);
  text-align: center;
}

.submission-jumpbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.submission-jumpbar button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

.submission-jumpbar button:hover {
  border-color: var(--lime);
  color: var(--lime);
}

@media (max-width: 1100px) {
  .dashboard-grid,
  .content-grid,
  .news-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .section-heading,
  .landing-nav-actions,
  .reg-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .reg-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .submission-jumpbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-row,
  .reg-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

.reg-row {
    display: grid;
  }
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.legal-card h2 {
  margin: 14px 0 0;
  font-size: 1.1rem;
  color: var(--text);
}

.legal-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}
