:root {
  --blue: #173f8f;
  --blue-dark: #102d67;
  --red: #cc1f2f;
  --green: #16844a;
  --ink: #172033;
  --muted: #5a6578;
  --line: #d9dfeb;
  --paper: #ffffff;
  --soft: #f5f7fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--blue-dark);
  font-weight: 700;
  padding: 9px 12px;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--line);
  background: var(--soft);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(23, 63, 143, 0.95), rgba(16, 45, 103, 0.9)),
    linear-gradient(90deg, var(--green), var(--paper), var(--red));
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  min-height: 430px;
  align-items: center;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffffff;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 790px;
  font-size: clamp(40px, 7vw, 72px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  color: var(--blue-dark);
  font-size: 20px;
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.hero-panel {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 28px;
}

.hero-panel > div {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-panel > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.metric,
.date,
.metric-label {
  display: block;
}

.metric {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.date {
  font-size: 24px;
  font-weight: 800;
}

.metric-label {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.muted {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 32px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.candidate-card {
  display: flex;
  min-height: 178px;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
}

.actions {
  display: grid;
  gap: 10px;
}

.actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue-dark);
  font-weight: 800;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}

.actions a:last-child {
  border-color: var(--red);
  color: #931321;
}

.actions a:hover,
.actions a:focus-visible {
  background: var(--soft);
}

.info-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.copy {
  color: var(--muted);
  font-size: 18px;
}

.copy p {
  margin: 0 0 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 28px 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 32px;
    padding: 56px 0;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding: 14px 0;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    text-align: center;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .hero-grid {
    min-height: auto;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 18px;
  }

  .candidate-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }
}
