.representatives-section {
  overflow-wrap: anywhere;
}

.representatives-section h2 {
  font-size: 1.75rem;
  letter-spacing: 0;
}

.representatives-section h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0 0 .5rem;
}

.representatives-section h4 {
  font-size: 1.1rem;
  margin: .25rem 0 .5rem;
}

.representatives-section .field {
  max-width: 28rem;
}

.representatives-section select {
  min-height: 48px;
}

.representative-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.representative-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid #c9d2d8;
  border-top: 4px solid var(--sky-dark);
  border-radius: .4rem;
  background: var(--paper);
}

.representative-header {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.representative-office {
  margin: 0 0 .75rem;
}

.representative-portrait {
  position: relative;
  width: 6rem;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: #eef3f6;
}

.representative-portrait img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.representative-portrait img[hidden],
.portrait-fallback[hidden] {
  display: none;
}

.portrait-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: .5rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

.representative-priority {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #d9e1e6;
}

.representative-priority p {
  margin: .5rem 0;
}

.representative-kind {
  color: var(--sky-dark);
  font-size: .85rem;
  font-weight: 700;
}

.representative-date,
.representative-footer {
  color: var(--muted);
  font-size: .85rem;
}

.representative-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #d9e1e6;
}

.representative-footer p {
  margin: .5rem 0;
}

.representative-election-status {
  margin-top: .85rem;
  padding: .7rem .8rem;
  border-left: 3px solid var(--accent);
  background: #f5f8fa;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.5;
}

.representative-election-status p {
  margin: .2rem 0;
}

.representative-election-label {
  font-weight: 700;
}

.home-page {
  background: #f0f7ff;
}

.home-page main,
.home-page .representatives-section,
.home-page .site-footer {
  background-color: #f0f7ff;
}

:is(.home-page, .government-page, .about-page) .header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: .5rem;
  padding-bottom: .5rem;
  gap: .5rem 1.5rem;
}

:is(.home-page, .government-page, .about-page) .header-inner>.brand {
  min-width: 0;
}

.home-page .home-construction {
  position: relative;
  isolation: isolate;
  max-width: none;
  min-height: 28rem;
  padding: 3rem 0;
  background: #f0f7ff url("/assets/banners/construction-scenery.png") center / cover no-repeat;
  text-align: center;
}

.home-page .home-construction::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(255, 255, 255, .25);
}

.home-page .home-construction h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.3;
  letter-spacing: 0;
  color: #482078;
}

.home-page .home-construction-description {
  max-width: 50rem;
  margin: 0 auto;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
  color: #482078;
}

.home-page .home-start-pathways {
  display: grid;
  grid-template-columns: minmax(12rem, max-content) minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  max-width: 52rem;
  margin: 1.5rem auto 0;
}

.home-page .home-location-action {
  min-height: 48px;
  padding: .7rem 1rem;
  border: 2px solid #173e31;
  border-radius: .35rem;
  background: #173e31;
  color: #fff;
  font: 700 1rem/1.3 system-ui, sans-serif;
  cursor: pointer;
}

.home-page .home-civic-pathways {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  min-width: 0;
}

.home-page .home-civic-pathways a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid #173e31;
  border-radius: .3rem;
  background: rgba(255, 255, 255, .94);
  color: #173e31;
  font: 650 .98rem/1.3 system-ui, sans-serif;
  text-decoration: none;
}

.home-page .home-location-note {
  max-width: 52rem;
  margin: .75rem auto 0;
  padding: .55rem .75rem;
  border-left: 4px solid #173e31;
  background: rgba(255, 255, 255, .88);
  color: #23303b;
  font: 1rem/1.45 system-ui, sans-serif;
}

:is(.home-page, .government-page, .about-page) .home-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: .55rem .85rem;
  border: 1px solid #b8c5ce;
  border-radius: .35rem;
  background: #fff;
  color: var(--ink);
  font: 650 1rem system-ui, sans-serif;
  gap: .45rem;
  cursor: pointer;
}

:is(.home-page, .government-page, .about-page) .home-menu-toggle[hidden],
:is(.home-page, .government-page, .about-page) #home-primary-nav[hidden] {
  display: none;
}

:is(.home-page, .government-page, .about-page) .nav-list {
  flex-wrap: wrap;
}

:is(.home-page, .government-page, .about-page) .nav-list a {
  padding: .35rem .55rem;
  min-height: 44px;
}

.home-page h1 {
  font-size: 2.5rem;
  letter-spacing: 0;
}

.home-page .civic-intro {
  --civic-body-size: 1.375rem;
  position: relative;
  isolation: isolate;
  padding: 2.5rem 0;
  background: #f0f7ff;
  border-top: 3px solid #a23737;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

.home-page .civic-intro>.wrap {
  max-width: 68.75rem;
}

.home-page .civic-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/assets/banners/government-flag.png") left top / auto 32rem no-repeat;
  opacity: .15;
}

.home-page .civic-intro h1 {
  margin: 0 0 1.5rem;
  font-family: inherit;
  font-size: 2.5rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  color: #482078;
}

.home-page .civic-intro .civic-emphasis {
  display: block;
  color: #663395;
}

.home-page .civic-intro p {
  font-size: var(--civic-body-size);
  font-weight: 600;
  line-height: 1.65;
  margin: 0 0 1.1rem;
  text-align: left;
  color: #48364f;
}

.home-page .civic-intro>.wrap>p:nth-of-type(-n+2) {
  text-align: center;
}

.home-page .civic-intro>.wrap>p:nth-of-type(2) {
  font-size: calc(var(--civic-body-size) * 1.5);
  line-height: 1.4;
  font-style: italic;
  font-weight: 600;
  text-wrap: balance;
  color: #4c1874;
  margin: 1.4rem 0;
}

.home-page .civic-intro .civic-closing {
  max-width: 48rem;
  margin: 1.5rem auto 0;
  text-align: center;
  text-wrap: balance;
  color: #704c14;
}

@media (max-width: 48rem) {
  .representative-list {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(.home-page, .government-page, .about-page) .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem .75rem;
    align-items: start;
  }

  :is(.home-page, .government-page, .about-page) .home-menu-toggle {
    margin-top: .1rem;
  }

  .home-page .home-construction {
    padding: 2rem 0;
  }

  .home-page .home-construction h2 {
    font-size: 1.5rem;
  }

  .home-page .home-construction-description {
    font-size: 1.75rem;
  }

  .home-page .home-start-pathways {
    grid-template-columns: minmax(0, 1fr);
    gap: .6rem;
  }

  .home-page .home-location-action {
    width: 100%;
  }

  .home-page .home-civic-pathways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-civic-pathways a {
    overflow-wrap: anywhere;
    padding-inline: .35rem;
    text-align: center;
  }

  .home-page .home-location-note {
    font-size: .95rem;
    text-align: left;
  }

  :is(.home-page, .government-page, .about-page) #home-primary-nav {
    grid-column: 1 / -1;
  }

  :is(.home-page, .government-page, .about-page) .nav-list {
    flex-direction: column;
    gap: .25rem;
  }

  :is(.home-page, .government-page, .about-page) .nav-list li,
  :is(.home-page, .government-page, .about-page) .nav-list a {
    width: 100%;
  }

  :is(.home-page, .government-page, .about-page) .nav-list a {
    padding-left: .25rem;
    padding-right: .25rem;
    min-width: 44px;
    text-align: center;
  }

  .home-page .civic-intro h1 {
    font-size: 2rem;
  }

  .home-page .civic-intro {
    --civic-body-size: 1.25rem;
  }
}

@media (max-width: 24rem) {
  .representative-header {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: .75rem;
  }

  .representative-portrait {
    width: 4.5rem;
  }

  .representative-card {
    padding: 1rem;
  }

  .home-page .civic-intro {
    --civic-body-size: 1.1875rem;
  }
}
