:root {
  --ink: #17202a;
  --muted: #5f6f7a;
  --paper: #fbfaf4;
  --surface: #ffffff;
  --line: #d9ded6;
  --civic-blue: #245a3d;
  --civic-blue-dark: #123828;
  --lake: #3f7a56;
  --field: #7e9360;
  --brick: #9f523c;
  --gold: #d2b35f;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.12);
  --content-width: 1180px;
  --body-font: "Public Sans", "Helvetica Neue", sans-serif;
  --display-font: "Newsreader", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(251, 250, 244, 0.82), rgba(251, 250, 244, 1) 520px),
    radial-gradient(circle at 12% 10%, rgba(214, 173, 82, 0.18), transparent 28rem),
    var(--paper);
  font-size: 17px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--civic-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brick);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.site-frame {
  width: min(var(--content-width), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--civic-blue-dark);
  border-radius: 0;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  background: rgba(251, 250, 244, 0.96);
  border-bottom: 1px solid rgba(23, 32, 42, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0;
}

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

.brand__text {
  display: grid;
  gap: 4px;
}

.brand__name {
  color: var(--civic-blue-dark);
  font-family: var(--display-font);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.brand__place {
  color: var(--lake);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.masthead__contact {
  display: grid;
  gap: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
}

.masthead__contact strong {
  color: var(--ink);
  font-weight: 700;
}

.primary-nav {
  background: var(--surface);
  border-top: 1px solid rgba(23, 32, 42, 0.08);
}

.primary-nav__inner {
  display: flex;
  align-items: stretch;
  gap: 4px;
  min-height: 54px;
}

.primary-nav__link,
.nav-menu__summary {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  color: var(--civic-blue-dark);
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.primary-nav__link:hover,
.nav-menu__summary:hover,
.primary-nav__link.is-active {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

.nav-menu {
  position: relative;
}

.nav-menu__summary {
  cursor: pointer;
  list-style: none;
}

.nav-menu__summary::-webkit-details-marker {
  display: none;
}

.nav-menu__summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-menu[open] .nav-menu__summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.nav-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  min-width: 250px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.nav-menu__link {
  padding: 11px 12px;
  color: var(--ink);
  border-radius: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}

.nav-menu__link:hover,
.nav-menu__link.is-active {
  color: var(--civic-blue-dark);
  background: #eef6ef;
}

.hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  color: #fff;
  background: var(--civic-blue-dark);
  isolation: isolate;
}

.hero--home {
  min-height: 470px;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 56, 40, 0.94), rgba(18, 56, 40, 0.7) 44%, rgba(18, 56, 40, 0.18)),
    linear-gradient(180deg, rgba(18, 56, 40, 0.08), rgba(18, 56, 40, 0.42));
}

.hero__content {
  display: grid;
  align-content: center;
  min-height: inherit;
  max-width: 760px;
  padding: 58px 0;
}

.hero__eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 11px;
  color: #fff5db;
  background: rgba(214, 173, 82, 0.18);
  border: 1px solid rgba(214, 173, 82, 0.52);
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--display-font);
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
}

.hero__lede {
  max-width: 650px;
  margin: 18px 0 0;
  color: #eef7f4;
  font-size: 20px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.button--primary {
  color: var(--civic-blue-dark);
  background: var(--gold);
}

.button--secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.button:hover {
  color: var(--civic-blue-dark);
  background: #fff;
}

.page-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 56px 0 72px;
}

.quick-rail {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 22px;
  padding-top: 3px;
}

.quick-rail__section {
  padding: 20px;
  background: #f4f2e8;
  border: 1px solid var(--line);
  border-radius: 0;
}

.quick-rail h2 {
  margin: 0 0 13px;
  color: var(--civic-blue-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-rail nav {
  display: grid;
  gap: 4px;
}

.quick-rail a {
  display: block;
  padding: 9px 0;
  color: var(--ink);
  border-bottom: 1px solid rgba(23, 32, 42, 0.1);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.quick-rail a:hover {
  color: var(--brick);
}

.quick-rail p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.content-column {
  min-width: 0;
}

.content-editable {
  padding: 0 0 0 34px;
  border-left: 5px solid var(--gold);
}

.rtb {
  max-width: 800px;
}

.rtb > :first-child {
  margin-top: 0;
}

.rtb > :last-child {
  margin-bottom: 0;
}

.rtb h1,
.rtb h2,
.rtb h3,
.rtb h4,
.rtb h5,
.rtb h6 {
  color: var(--civic-blue-dark);
  letter-spacing: 0;
}

.rtb h1 {
  margin: 0 0 24px;
  font-family: var(--display-font);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.08;
}

.rtb h2 {
  margin: 42px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--display-font);
  font-size: 31px;
  font-weight: 650;
  line-height: 1.15;
}

.rtb h3 {
  margin: 30px 0 10px;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
}

.rtb h4,
.rtb h5,
.rtb h6 {
  margin: 24px 0 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.rtb p,
.rtb li {
  color: #27333c;
}

.rtb p {
  margin: 0 0 18px;
}

.rtb ul,
.rtb ol {
  margin: 0 0 22px 1.25rem;
  padding: 0;
}

.rtb li + li {
  margin-top: 7px;
}

.rtb blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  color: var(--civic-blue-dark);
  background: #edf5ec;
  border: 1px solid #d5e4d6;
  border-left: 5px solid var(--lake);
  border-radius: 0;
  font-size: 17px;
}

.rtb blockquote p {
  color: inherit;
}

.rtb a {
  font-weight: 700;
}

.rtb a[href$=".pdf"]::after,
.rtb a[href$=".PDF"]::after {
  content: " PDF";
  display: inline-block;
  margin-left: 0.35em;
  padding: 0.05em 0.36em;
  color: #fff;
  background: var(--brick);
  border-radius: 0;
  font-size: 0.68em;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.rtb img {
  display: block;
  width: 100%;
  margin: 28px 0;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.rtb hr {
  height: 1px;
  margin: 34px 0;
  background: var(--line);
  border: 0;
}

.rtb table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.rtb th,
.rtb td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.rtb th {
  color: var(--civic-blue-dark);
  background: #edf4ea;
  font-weight: 800;
}

.site-footer {
  color: #e9f2ee;
  background: var(--civic-blue-dark);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

.site-footer p {
  margin: 0;
  color: #cfdad7;
  font-size: 14px;
}

.site-footer__name {
  color: #fff;
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-footer a:hover {
  color: var(--gold);
}

@media (max-width: 980px) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .masthead__contact {
    text-align: left;
  }

  .primary-nav__inner {
    flex-wrap: wrap;
    padding: 6px 0;
  }

  .primary-nav__link,
  .nav-menu__summary {
    min-height: 42px;
    padding: 0 11px;
  }

  .nav-menu__panel {
    position: static;
    min-width: 100%;
    box-shadow: none;
  }

  .hero,
  .hero--home {
    min-height: 380px;
  }

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

  .hero__lede {
    font-size: 18px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .quick-rail {
    position: static;
    order: 2;
  }

  .content-column {
    order: 1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-frame {
    width: min(var(--content-width), calc(100% - 28px));
  }

  .brand__name {
    font-size: 29px;
  }

  .hero,
  .hero--home {
    min-height: 340px;
  }

  .hero__content {
    padding: 42px 0;
  }

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

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .page-shell {
    padding: 38px 0 52px;
  }

  .content-editable {
    padding-left: 18px;
    border-left-width: 4px;
  }

  .rtb h1 {
    font-size: 34px;
  }

  .rtb h2 {
    font-size: 27px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
