/* Shared subpage styles. Tokens come from style.css. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Sub visual ---------- */
.sub-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 450px;
  text-align: center;
  background:
    linear-gradient(90deg, var(--bg) 15%, rgba(3, 12, 25, 0.55) 55%, transparent 85%),
    radial-gradient(ellipse 45% 70% at 50% 50%, rgba(3, 12, 25, 0.75), transparent 75%),
    /* hero art scaled up and anchored bottom-right so only the light streaks show, not the emblem */
    var(--bg) url("../images/subhero-bg.jpg") 100% 100% / 175% auto no-repeat;
}
.sub-visual__eyebrow {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
}
.sub-visual__title {
  margin-top: 14px;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { font-weight: 700; color: var(--text); }

/* ---------- Tabs ---------- */
.sub-tabs { background: #08101d; border-bottom: 1px solid #141d2c; }
.sub-tabs__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--container), 100% - 40px);
  margin: 0 auto;
  text-align: center;
}
.sub-tabs__list a {
  display: block;
  padding: 20px 0;
  font-size: 22px;
  color: #7c8396;
  transition: color 0.2s;
}
.sub-tabs__list a:hover { color: var(--text); }
.sub-tabs__list a[aria-current] { font-weight: 700; color: var(--gold); }

/* ---------- Section commons ---------- */
.sub-sec { padding: 150px 0 0; }

.sub-title {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}
.sub-subtitle {
  width: max-content;
  margin: 100px auto 0;
  padding-bottom: 10px;
  font-size: 30px;
  font-weight: 700;
  border-bottom: 3px solid #5b3df5;
}
.sub-title + .sub-subtitle { margin-top: 80px; }

/* ---------- Vote table ---------- */
.vote-table { margin-top: 90px; overflow-x: auto; }
.vote-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #2a3858;
  border-radius: 6px;
  font-size: 16px;
}
.vote-table col.c-head { width: 16%; }
.vote-table col.c-sub { width: 13%; }
.vote-table col.c-note { width: 37%; }
.vote-table th,
.vote-table td {
  height: 60px;
  padding: 0 22px;
  border-right: 1px solid #2a3858;
  border-bottom: 1px solid #2a3858;
  text-align: left;
}
.vote-table tr:last-child > *,
.vote-table td[rowspan="4"] { border-bottom: 0; }
.vote-table .note { border-right: 0; font-size: 14px; color: var(--text-sub); }
.vote-table th { font-weight: 700; text-align: center; background: #0c1a36; }
.vote-table .sub { background: #0a1428; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sub-visual { height: 360px; }
  .sub-visual__title { font-size: 52px; }
}

@media (max-width: 768px) {
  .sub-visual { height: 280px; padding: 0 20px; }
  .sub-visual__eyebrow { font-size: 14px; }
  .sub-visual__title { font-size: 36px; }
  .breadcrumb { margin-top: 20px; font-size: 13px; }
  .sub-tabs__list a { padding: 16px 4px; font-size: 16px; }

  .sub-sec { padding-top: 90px; }
  .sub-title { font-size: 30px; }
  .sub-subtitle { margin-top: 70px; font-size: 22px; }
  .sub-title + .sub-subtitle { margin-top: 50px; }

  .vote-table { margin-top: 60px; }

}
