/* Our Town, Our Sky. Heavy campaign type, rounded cards, deep teal. */
:root {
  --hero: #0d5c63;
  --band: #ff8a5c;
  --coral: #ffb38f;
  --ink: #0f2e33;
  --paper: #ffffff;
  --sky: #e9f3f3;
  --tint: #cdebe9;
  --civic: #0d5c63;
  --line: #b3d0d2;
  --head: "Franklin Gothic Heavy", "Franklin Gothic Medium", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Franklin Gothic Book", "Franklin Gothic", "Helvetica Neue", Arial, sans-serif;
  --link: "Franklin Gothic Medium", "Franklin Gothic", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.65 var(--body);
}

/* Links: no underline. Color plus a heavier weight sets them apart; hover and focus add a highlight. */
a { color: var(--civic); text-decoration: none; }
main a, footer a {
  font-family: var(--link); font-weight: 600;
  border-radius: .25rem;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
main p a:hover, main li a:hover, main p a:focus-visible, main li a:focus-visible {
  background: var(--tint); color: var(--ink); box-shadow: 0 0 0 .2rem var(--tint);
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--civic);
  outline-offset: 3px;
}
.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 2; }

header.site { background: var(--hero); position: relative; box-shadow: 0 2px 0 var(--hero); }
header.site .wrap {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.brand { font: 700 1.8rem var(--head); color: #fff; }
nav ul { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; max-width: none; }
nav li { margin: 0; }
nav a { display: block; font-family: var(--head); font-size: 1.05rem; color: #fff; padding: .2rem .7rem; border-radius: 2rem; transition: background-color .15s; }
nav a:hover { background: rgb(255 255 255 / .18); }
nav a[aria-current="page"] { background: #fff; color: var(--civic); }
header a:focus-visible { outline-color: #fff; }

h1, h2, h3 { font-family: var(--head); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); margin: 0 0 1rem; }
h2 { font-size: 2.2rem; margin: 3rem 0 .75rem; }
h3 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
p, ul, ol { max-width: 68ch; }
li { margin-bottom: .4rem; }

/* Home page hero: a full-width teal field with a coral stripe. */
main > .sign {
  background: var(--hero); color: #fff; margin: 0 0 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  /* carry the color to the window edges; the inset shadow hides a hairline seam */
  box-shadow: inset 0 0 0 2px var(--hero), 0 0 0 100vmax var(--hero);
  clip-path: inset(0 -100vmax);
  border-bottom: 14px solid var(--band);
}
.sign h1 { font-size: clamp(2.4rem, 8vw, 4.8rem); line-height: 1; max-width: 16ch; }
.sign p { font-size: 1.2rem; }

.stages { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: none; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); counter-reset: stage; }
.stages li { margin: 0; counter-increment: stage; }
.stages a { display: block; height: 100%; background: var(--paper); color: var(--ink); border-radius: 1.5rem 1.5rem .25rem .25rem; padding: .75rem; font: 600 1.1rem/1.25 var(--head); }
.stages a::before { content: counter(stage); display: block; font-size: 1.8rem; }
.stages a:hover { background: var(--tint); }
.stages a:focus-visible { background: var(--tint); outline-color: #fff; }

.stage { border-top: 2px solid var(--line); margin-top: 3rem; scroll-margin-top: 1rem; }
.stage h2 { margin-top: 1rem; }
.goal { background: var(--sky); padding: .9rem 1.1rem; border-radius: 1rem; max-width: 68ch; }

.note { border-left: 6px solid var(--band); padding-left: 1rem; max-width: 68ch; }

table { border-collapse: collapse; width: 100%; }
.scroll { overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
th { background: var(--sky); font-family: var(--head); }

.template { border: 1px solid var(--line); background: var(--sky); border-radius: 1rem; overflow: hidden; margin-block: 1rem 2rem; }
.template .bar { display: flex; justify-content: flex-end; padding: .5rem; border-bottom: 1px solid var(--line); }
.template pre { margin: 0; padding: 1.1rem; white-space: pre-wrap; overflow-wrap: anywhere; font: 1rem/1.6 var(--body); }
button { font: 600 1rem var(--head); background: var(--civic); color: #fff; border: 0; border-radius: 2rem; padding: .5rem 1rem; cursor: pointer; }
button:hover:not(:disabled) { background: var(--ink); }
button:disabled { opacity: .5; cursor: not-allowed; }

.contact { max-width: 34rem; }
.contact .hp { position: absolute; left: -999rem; }
.contact fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact label { display: block; font: 600 1.05rem var(--head); margin: 1rem 0 .3rem; }
.contact input, .contact select, .contact textarea { width: 100%; font: 1rem var(--body); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: .6rem; padding: .55rem .65rem; }
.contact :disabled:not(button, fieldset) { background: var(--sky); border-color: var(--line); }
.contact button { margin-top: 1.25rem; }
.contact :focus-visible { outline: 3px solid var(--civic); outline-offset: 2px; }

.status { display: inline-block; font: 600 1rem var(--head); border: 2px solid var(--ink); border-radius: 2rem; padding: .15rem .75rem; }
.status.won { background: var(--coral); }
.case { border-top: 2px solid var(--line); margin-top: 3rem; }
.sources { font-size: .95rem; }

main a.action { display: inline-block; font: 600 1.05rem var(--head); background: var(--civic); color: #fff; border-radius: 2rem; padding: .5rem 1.1rem; }
main p a.action:hover, main p a.action:focus-visible { background: var(--ink); color: #fff; box-shadow: none; }

/* Tile map of the states */
.usmap { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: clamp(2px, .6vw, 6px); max-width: 44rem; margin-block: 1.5rem .5rem; }
.usmap[hidden] { display: none; }
.usmap .tile { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; border-radius: .4rem; background: var(--sky); color: var(--ink); font: 600 clamp(.65rem, 2vw, .95rem)/1.1 var(--link); }
.usmap button.tile { background: var(--civic); color: #fff; }
.usmap button.tile:hover { background: var(--ink); }
.usmap button.tile[aria-pressed="true"] { background: var(--band); color: var(--ink); }
.sites { list-style: none; padding: 0; max-width: none; }
.sites > li { border-top: 2px solid var(--line); margin-top: 1.5rem; }
.sites > li[hidden] { display: none; }
.sites h2 { font-size: 1.5rem; margin-top: 1rem; }
.news { border-top: 2px solid var(--line); margin-top: 2rem; }
.news h2 { font-size: 1.6rem; margin-top: 1rem; }
.news .date { font-family: var(--link); color: var(--civic); margin-top: -.5rem; }

footer.site { background: var(--ink); color: #fff; margin-top: 4rem; padding-block: 1.5rem; font-size: .95rem; }
footer.site a { color: var(--coral); }
footer.site a:hover { background: var(--coral); color: var(--ink); }

@media (max-width: 40rem) {
  table, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -999px; }
  tr { margin-bottom: 1.25rem; }
  th, td { border-bottom-width: 0; }
  tr > :last-child { border-bottom-width: 1px; }
  td::before { content: attr(data-label); display: block; font: 700 1rem var(--head); }
}
/* Menu: one row on wide screens, hamburger below. The button is added by nav.js. */
.menu-button { display: none; }
@media (min-width: 64.01rem) {
  header.site .wrap { flex-wrap: nowrap; gap: 1rem; }
  .brand { font-size: 1.5rem; white-space: nowrap; }
  nav ul { flex-wrap: nowrap; gap: 0; }
  nav a { font-size: .95rem; padding-inline: .5rem; white-space: nowrap; }
}
@media (max-width: 64rem) {
  .brand { font-size: clamp(1.1rem, 5.4vw, 1.5rem); }
  header.site .wrap { gap: 0 .75rem; }
  header.collapsible .menu-button { display: flex; align-items: center; gap: .5rem; padding-inline: .8rem; background: transparent; border: 2px solid #fff; min-height: 2.75rem; }
  header.collapsible .menu-button:hover { background: rgb(255 255 255 / .18); }
  header.collapsible nav { display: none; width: 100%; }
  header.collapsible.open nav { display: block; }
  header.collapsible nav ul { flex-direction: column; gap: .25rem; padding-top: .5rem; }
  header.collapsible nav a { border-radius: .6rem; padding: .65rem .9rem; font-size: 1.15rem; }
  .bars, .bars::before, .bars::after { display: block; width: 1.15rem; height: 3px; background: #fff; border-radius: 2px; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .open .bars { background: transparent; }
  .open .bars::before { top: 0; transform: rotate(45deg); }
  .open .bars::after { top: 0; transform: rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none !important; }
}
@media print {
  header.site nav, header.site .menu-button, footer.site, .template .bar, .skip { display: none; }
  header.site, main > .sign { background: none; box-shadow: none; clip-path: none; color: var(--ink); }
  .brand { color: var(--ink); }
  .template { break-inside: avoid; background: none; }
}
