
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f0f4fa;
  --text: #111827;
  --muted: #64748b;
  --line: #d9e1ef;
  --primary: #0b3b75;
  --primary-2: #155eef;
  --accent: #d4af37;
  --shadow: 0 18px 45px rgba(15, 23, 42, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
code {
  background: #eef2ff;
  border: 1px solid #dbe4ff;
  padding: .1rem .35rem;
  border-radius: .45rem;
  font-size: .93em;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.25);
}
.nav nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .94rem;
}
.nav nav a:hover,
.nav nav a.active {
  color: var(--primary);
  background: var(--surface-2);
}

.campaign-section {
  padding: 26px 0 8px;
}
.page-banner-section {
  padding-top: 6px;
}
.campaign-banner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
  overflow: hidden;
}
.campaign-banner-card.compact {
  border-radius: 24px;
}
.campaign-image-frame {
  width: 100%;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  background: #e8eef9;
}
.campaign-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.campaign-copy {
  padding: 18px 24px 22px;
}
.campaign-eyebrow { color: var(--primary-2); }
#campaign-claim {
  margin: 0;
  font-size: clamp(1.8rem, 4.1vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--primary);
}
.campaign-support {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 58px;
  background: radial-gradient(circle at top left, rgba(21, 94, 239, .18), transparent 34%), linear-gradient(135deg, #071c3d, #0b3b75 55%, #123f7a);
  color: #fff;
}
.compact-hero {
  padding-top: 54px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -42% 52%;
  height: 360px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  transform: rotate(-12deg);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 900;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); }
h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3vw, 2.45rem); }
h3 { margin: 0; font-size: 1.2rem; }
.lead {
  color: rgba(255,255,255,.82);
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}
.page .lead { color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
}
.button.primary { background: #fff; color: var(--primary); }
.button.secondary { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.button:hover { transform: translateY(-1px); }
.hero-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: var(--shadow);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(212, 175, 55, .28);
  border: 1px solid rgba(212, 175, 55, .42);
  font-weight: 800;
  font-size: .78rem;
}
.hero-card h3 { margin-top: 18px; font-size: 1.55rem; }
.muted { color: var(--muted); }
.hero .muted { color: rgba(255,255,255,.72); }

.section { padding: 68px 0; }
.section.light { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 780px; margin-bottom: 28px; }
.section-heading p:last-child { color: var(--muted); margin: 0; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.list-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.list-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(21, 94, 239, .35);
}
.symbol-wrap {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: #f8fafc;
  border: 1px solid var(--line);
  overflow: hidden;
}
.symbol-wrap img { width: 92px; height: 92px; object-fit: contain; }
.list-card h3 { color: var(--primary); }
.card-meta { margin: 0; color: var(--muted); }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--primary-2);
  font-weight: 800;
}
.count-pill {
  color: var(--primary);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .82rem;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: start;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 56px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.page { padding: 18px 0 72px; }
.page-title { margin-bottom: 26px; }
.page-title .eyebrow { color: var(--primary-2); }
.notice {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff7ed;
  color: #7c2d12;
  border: 1px solid #fed7aa;
  margin: 0 0 22px;
}
.candidate-highlight { margin: 0 0 24px; }
.highlight-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
}
.highlight-card .symbol-wrap { width: 86px; height: 86px; border-radius: 24px; }
.highlight-card .symbol-wrap img { width: 72px; height: 72px; }
.doc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--primary);
  background: #fff;
  text-decoration: none;
  font-weight: 850;
  font-size: .92rem;
}
.doc-link:hover { border-color: var(--primary-2); color: var(--primary-2); }
.doc-link.disabled {
  pointer-events: none;
  color: #94a3b8;
  background: #f8fafc;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
}
input[type="search"] {
  width: min(100%, 560px);
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 18px;
  font: inherit;
  outline: none;
}
input[type="search"]:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(21, 94, 239, .12); }
.list-stack { display: grid; gap: 24px; }
.list-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
}
.list-panel-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-bottom: 1px solid var(--line);
}
.list-panel-header .symbol-wrap { width: 84px; height: 84px; border-radius: 24px; }
.list-panel-header .symbol-wrap img { width: 70px; height: 70px; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
th, td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
th {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: #fbfdff;
}
tr:last-child td { border-bottom: 0; }
.candidate-name { font-weight: 900; color: var(--text); }
.role { color: var(--muted); font-size: .92rem; }
.back-link {
  color: var(--primary-2);
  text-decoration: none;
  font-weight: 850;
}
.empty-state {
  padding: 28px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer p { margin: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .hero-grid, .two-cols { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlight-card, .list-panel-header { grid-template-columns: auto 1fr; }
  .highlight-card .doc-actions, .list-panel-header .doc-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1120px); }
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 12px; }
  .campaign-copy { padding: 16px 18px 18px; }
  .hero { padding: 44px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .symbol-wrap { width: 96px; height: 96px; }
  .symbol-wrap img { width: 78px; height: 78px; }
}


.inline-heading { margin-top: 34px; }
.circ-heading,
.metro-heading { margin-top: 56px; }
.president-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.president-card h3 { color: var(--primary); margin: 0; }
.president-card .eyebrow { margin-bottom: 6px; }
@media (max-width: 860px) {
  .president-card { grid-template-columns: 1fr; }
}


.program-section {
  padding: 14px 0 22px;
}

.program-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
}

.program-card h2 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.program-card p {
  margin: 0;
  color: var(--muted);
}

.program-card .program-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.program-card .program-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
  text-decoration: none;
  font-weight: 850;
  white-space: nowrap;
}

.program-card .program-button:hover {
  background: var(--primary-2);
  border-color: var(--primary-2);
}

@media (max-width: 760px) {
  .program-card {
    grid-template-columns: 1fr;
  }

  .program-card .program-actions {
    justify-content: flex-start;
  }
}
.mayor-detail-section {
  padding: 8px 0 24px;
}

.mayor-detail-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
}

.mayor-detail-card h2 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.mayor-detail-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .mayor-detail-card {
    grid-template-columns: 1fr;
  }
}