@font-face {
  font-family: 'Arimo:Bold';
  src: url('https://static.figma.com/font/Arimo_wght__1') format('woff2');
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: 'Arimo:Regular';
  src: url('https://static.figma.com/font/Arimo_wght__1') format('woff2');
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'Libre Franklin:Bold';
  src: url('https://static.figma.com/font/LibreFranklin_wght__2') format('woff2');
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: 'Libre Franklin:Regular';
  src: url('https://static.figma.com/font/LibreFranklin_wght__2') format('woff2');
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'Lora:Bold';
  src: url('https://static.figma.com/font/Lora_wght__2') format('woff2');
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: 'Lora:Regular';
  src: url('https://static.figma.com/font/Lora_wght__2') format('woff2');
  font-style: normal;
  font-weight: 400;
}

:root {
  color: #191919;
  background: #fff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  background: #fff;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.modal-open {
  overflow: hidden;
}

.site-shell {
  min-height: 100dvh;
  padding-top: 40px;
  background: #fff;
}

.hero {
  position: relative;
  display: flex;
  height: 800px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 88px clamp(10px, 5vw, 20px) 0;
  background: #ede3df;
  text-align: center;
}

.campus-image {
  position: absolute;
  inset: 300px 0 0;
  background:
    linear-gradient(to bottom, #ede3df 0, rgb(237 227 223 / 0%) 220px),
    linear-gradient(rgb(242 141 101 / 40%), rgb(242 141 101 / 40%)),
    url('./assets/nassau-hall.jpg') center 82% / cover no-repeat;
}

.hero-kicker,
.hero h1,
.edition {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-family: 'Lora:Regular', Georgia, serif;
  font-size: 22px;
}

.hero h1 {
  max-width: 1260px;
  font-family: 'Lora:Bold', Georgia, serif;
  font-size: clamp(48px, 5.3vw, 76px);
  font-weight: 700;
  line-height: 1.06;
}

.edition {
  color: #666;
  font-family: 'Libre Franklin:Regular', Arial, sans-serif;
  font-size: 15px;
}

.editorial-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 16px 24px 64px;
}

.editorial-intro > * {
  min-width: 0;
  width: min(700px, 100%);
}

.caption,
.metadata {
  color: #666;
  font-family: 'Libre Franklin:Regular', Arial, sans-serif;
}

.caption {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.editorial-note.candidate-statements-note {
  font-size: 23px;
}

.editorial-intro article {
  display: flex;
  flex-direction: column;
  gap: 27px;
  font-family: 'Lora:Regular', Georgia, serif;
  font-size: 23px;
  line-height: 1.55;
}

.metadata {
  display: flex;
  gap: 18px;
  font-size: 13px;
  line-height: 1;
}

.opening-copy {
  display: flow-root;
}

.drop-cap {
  float: left;
  width: 82px;
  margin-right: 10px;
  font-size: 118px;
  line-height: 0.9;
}

.candidate-comparison {
  padding: 16px clamp(24px, 5.55vw, 80px) 103px;
  scroll-margin-top: 56px;
}

.section-heading {
  margin-bottom: 24px;
  text-align: center;
}

.section-heading h2 {
  font-family: 'Lora:Bold', Georgia, serif;
  font-size: 52px;
  line-height: 1.15;
}

.section-heading p {
  margin-top: 8px;
  color: #666;
  font-family: 'Libre Franklin:Regular', Arial, sans-serif;
  font-size: 14px;
}

.race-editorial-note {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  border-left: 3px solid #a94f35;
  background: #f5f5f5;
}

.race-editorial-note h3 {
  margin: 0 0 8px;
  color: #666;
  font-family: 'Libre Franklin:Bold', Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.race-editorial-note p {
  margin: 0;
  font-family: 'Lora:Regular', Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
}

.candidate-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.candidate-card {
  flex: 0 0 auto;
  width: 280px;
  max-width: 100%;
  display: flex;
  min-height: 552px;
  flex-direction: column;
  border: 4px solid #808080;
  padding: 16px 8px 18px;
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.candidate-card.is-endorsed {
  border-color: #38962e;
}

.candidate-card.not-endorsed {
  border-color: #808080;
}

.candidate-card:hover,
.candidate-card:focus-visible {
  box-shadow: 0 10px 24px rgb(25 25 25 / 16%);
  transform: translateY(-3px);
}

.candidate-card:focus-visible {
  outline: 3px solid #191919;
  outline-offset: 4px;
}

.candidate-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait {
  position: relative;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dddad4;
  background-size: cover;
  background-position: center;
}

.portrait-large {
  width: 180px;
  height: 180px;
}

.status-mark {
  position: absolute;
  right: -17px;
  bottom: -3px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 4px solid;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
}

#profile-status-mark {
  right: -9px;
  bottom: 5px;
}

.status-mark.is-endorsed {
  border-color: #38962e;
}

.status-mark.not-endorsed {
  border-color: #808080;
}

.status-symbol {
  display: block;
  width: 25px;
  height: 23px;
  object-fit: contain;
}

.candidate-office {
  margin-top: 11px;
  color: #666;
  font-family: 'Libre Franklin:Regular', Arial, sans-serif;
  font-size: 11px;
}

.candidate-identity h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.2em;
  margin-top: 10px;
  text-align: center;
  font-family: 'Lora:Bold', Georgia, serif;
  font-size: 26px;
  line-height: 1.1;
}

.candidate-study {
  margin-top: 8px;
  color: #666;
  font-family: 'Libre Franklin:Regular', Arial, sans-serif;
  font-size: 18px;
}

.card-divider {
  width: 100%;
  height: 1px;
  margin: 16px 0 16px;
}

.candidate-summary {
  flex: 1;
}

.candidate-summary h4 {
  font-family: 'Arimo:Bold', Arial, sans-serif;
  font-size: 13px;
}

.candidate-summary p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
  margin-top: 9px;
  font-family: 'Lora:Regular', Georgia, serif;
  font-size: 18px;
  line-height: 1.45;
}

.read-profile {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  color: #a94f35;
  font-family: 'Arimo:Bold', Arial, sans-serif;
  font-size: 13px;
  line-height: 15px;
}

.read-profile img {
  width: 15px;
  height: 15px;
}

.back-button:hover,
.back-button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.credits {
  width: min(700px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 64px;
  font-family: 'Lora:Regular', Georgia, serif;
}

.credits img {
  display: block;
  width: 100%;
  height: 1px;
}

.credits h2 {
  scroll-margin-top: 72px;
  margin-top: 24px;
  font-family: 'Lora:Bold', Georgia, serif;
  font-size: 30px;
}

.credits h3 {
  font-family: 'Lora:Bold', Georgia, serif;
}

.credits-list {
  margin-top: 5px;
  padding-left: 20px;
  font-family: 'Lora:Regular', Georgia, serif;
  font-size: 20px;
}

.credits p {
  margin: 24px 0;
  font-family: 'Lora:Regular', Georgia, serif;
  font-size: 20px;
}

.editorial-note {
  width: min(700px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 64px;
  font-family: 'Lora:Regular', Georgia, serif;
  font-size: 20px;
  font-synthesis: style;
  line-height: 1.55;
}

.editorial-intro a:any-link,
.credits a:any-link,
.editorial-note a:any-link,
.candidate-background a:any-link,
.profile-copy a:any-link {
  color: #a94f35;
  font: inherit;
  text-underline-offset: 3px;
}

.profile-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(25 25 25 / 58%);
  backdrop-filter: blur(3px);
}

.profile-article {
  position: relative;
  display: flex;
  width: min(850px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  flex-direction: column;
  gap: 30px;
  margin: auto;
  border-radius: 4px;
  padding: 64px clamp(24px, 5vw, 64px) 48px;
  background: #fff;
  box-shadow: 0 18px 60px rgb(0 0 0 / 28%);
}

.profile-close {
  position: absolute;
  top: 12px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #a94f35;
  font-family: Arial, sans-serif;
  font-size: 34px;
  line-height: 1;
}

.profile-close:hover,
.profile-close:focus-visible {
  color: #191919;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.profile-category {
  font-family: 'Libre Franklin:Bold', Arial, sans-serif;
  font-size: 13px;
}

.profile-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.profile-identity h1 {
  font-family: 'Lora:Bold', Georgia, serif;
  font-size: clamp(44px, 4.3vw, 62px);
  line-height: 1.06;
}

.profile-identity p {
  margin-top: 16px;
  font-family: 'Lora:Regular', Georgia, serif;
  font-size: 27px;
  line-height: 1.25;
}

.profile-divider {
  width: 100%;
  height: 1px;
}

.candidate-background {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}

.candidate-background h2 {
  color: #666;
  font-family: 'Libre Franklin:Bold', Arial, sans-serif;
  font-size: 12px;
}

.candidate-background p {
  margin-top: 7px;
  font-family: 'Arimo:Regular', Arial, sans-serif;
  font-size: 15px;
}

.candidate-background a {
  color: #a94f35;
  font-family: 'Arimo:Regular', Arial, sans-serif;
  font-size: 15px;
  text-underline-offset: 3px;
}

.profile-blurb,
.profile-copy p {
  margin: 0 0 1em;
  font-family: 'Lora:Regular', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}

.profile-section h2 {
  font-family: 'Lora:Bold', Georgia, serif;
  font-size: 28px;
}

.profile-section p {
  margin-top: 10px;
  font-family: 'Lora:Regular', Georgia, serif;
  font-size: 21px;
  line-height: 1.55;
}

.legend {
  font-family: 'Lora:Regular', Georgia, serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap:4px;
    margin-top:4px;
}

.legend-icon{
    display: grid;
    place-items: center;
    width:24px;
    height:24px;
    border: 3px solid;
    border-radius: 50%;
    background: #fff;
}

.legend-icon img{
    width: 13px;
    height: 12px;
    object-fit: contain;
}

.legend-icon.is-endorsed {
    border-color: #38962e;
}

.legend-icon.is-not-endorsed {
    border-color: #808080;
}

@media (max-width: 1000px) {
  .hero {
    height: 680px;
  }

  .campus-image {
    inset-block-start: 270px;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 570px;
    gap: 18px;
    padding: 64px 20px 0;
  }

  .hero-kicker {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .campus-image {
    inset-block-start: 260px;
  }

  .editorial-intro article,
  .editorial-note.candidate-statements-note {
    font-size: 20px;
  }

  .section-heading h2 {
    font-size: clamp(28px, 8vw, 40px);
    overflow-wrap: anywhere;
  }

  .candidate-card {
    min-height: 520px;
  }

  .profile-article {
    max-height: calc(100dvh - 24px);
    gap: 24px;
    padding: 60px 20px 32px;
  }

  .profile-modal {
    padding: 12px;
  }

  .profile-identity {
    align-items: flex-start;
  }

  .profile-identity h1 {
    font-size: 40px;
  }

  .profile-identity p {
    font-size: 22px;
  }

  .portrait-large {
    width: 110px;
    height: 110px;
  }

  .candidate-background {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.profile-copy a {
  color: #a94f35;
  text-underline-offset: 3px;
}

/* The guide rail doubles as a compact section picker on smaller screens. */
.section-sidebar {
  position: fixed;
  z-index: 2;
  left: 24px;
  top: 84px;
  width: 208px;
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  padding: 0 0 0 0;
  background: #fff;
  font-family: 'Lora:Regular', Georgia, serif;
  scrollbar-width: thin;
  translate: 0 var(--sidebar-offset, 100vh);
}

.sidebar-links { display: grid; border-left: 1px solid #ddd; }
.sidebar-links a {
  position: relative;
  display: block;
  padding: 9px 8px 9px 16px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  transition: color 150ms ease;
}
.sidebar-links a::before {
  position: absolute;
  left: -1px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: transparent;
  content: '';
}
.sidebar-links a:hover { color: #191919; }
.sidebar-links a[aria-current="location"] { color: #a94f35; }
.sidebar-links a[aria-current="location"]::before { background: #a94f35; }
.sidebar-links a:focus-visible,
#section-picker:focus-visible { outline: 2px solid #a94f35; outline-offset: 2px; }
.sidebar-mobile-label, #section-picker { display: none; }

@media (min-width: 1200px) {
  .site-shell main { padding-left: 256px; }
  .hero { margin-left: -256px; }
}

@media (max-width: 1199px) {
  .section-sidebar {
    top: auto;
    bottom: 16px;
    left: 50%;
    width: min(400px, calc(100% - 32px));
    max-height: none;
    padding: 12px 16px 10px;
    transform: translateX(-50%);
    border: 1px solid #ddd;
  }
  .sidebar-links { display: none; }
  .sidebar-mobile-label { display: block; margin-bottom: 4px; color: #666; font-family: 'Libre Franklin:Regular', Arial, sans-serif; font-size: 11px; }
  #section-picker { display: block; width: 100%; min-height: 30px; border: 0; border-radius: 0; background: #fff; color: #191919; font: 16px 'Lora:Regular', Georgia, serif; }
  .site-shell { padding-bottom: 110px; }
}

.modal-open .section-sidebar { visibility: hidden; }

