/* Forge site. Brand fonts and the Wild Hog palette live in :root. See README. */

:root {
  --whp-red: #ED1C24;
  --whp-black: #000000;
  --whp-white: #FFFFFF;
  --whp-alt-black: #202020;
  --whp-grey-1: #757575;
  --whp-grey-2: #EDEDED;
  --font-heading: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--whp-grey-2);
  color: var(--whp-black);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  color-scheme: light;
}

button,
input,
select,
textarea {
  font-family: var(--font-body);
}

main {
  flex: 1;
}

:focus-visible {
  outline: 3px solid var(--whp-red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-150%);
  z-index: 20;
  background: var(--whp-white);
  color: var(--whp-black);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--whp-red);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: break-word;
  color: var(--whp-black);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw + 0.8rem, 3.1rem);
}

h2.placeholder {
  margin-top: 2rem;
}

h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.35rem, 2.2vw + 0.6rem, 1.9rem);
}

h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 1vw + 0.9rem, 1.35rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--whp-black);
  font-family: var(--font-body);
  text-decoration-color: var(--whp-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-color: var(--whp-red);
  text-decoration-thickness: 3px;
}

.site-header {
  background: var(--whp-alt-black);
  color: var(--whp-white);
  border-bottom: 4px solid var(--whp-red);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--whp-white);
  text-decoration: none;
}

.brand-logo {
  display: block;
  line-height: 0;
}

.brand-logo img {
  display: block;
  height: 4rem;
  width: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.85rem;
  background: transparent;
  color: var(--whp-white);
  border: 1px solid var(--whp-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.js .nav-toggle {
  display: inline-flex;
}

.site-nav {
  flex: 1 1 100%;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.6rem;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--whp-white);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--whp-grey-1);
}

.nav-list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--whp-red);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3rem;
}

.js .nav-list {
  display: none;
}

.js .site-nav.is-open .nav-list {
  display: flex;
}

@media (min-width: 60rem) {
  .brand-logo img {
    height: 4.5rem;
  }

  .nav-toggle,
  .js .nav-toggle {
    display: none;
  }

  .site-nav {
    flex: 1 1 auto;
  }

  .nav-list,
  .js .nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.15rem 1rem;
    padding: 0;
  }

  .nav-list a {
    border-bottom: 0;
  }
}

.banner-wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1rem auto 0;
}

.review-banner,
.review-note {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--whp-white);
  color: var(--whp-black);
  border: 1px solid var(--whp-black);
  border-left: 4px solid var(--whp-red);
  font-family: var(--font-body);
  font-weight: 700;
}

.page {
  padding-block: 1.25rem 3rem;
}

.lede {
  max-width: 42rem;
}

.hero {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.hero > * {
  min-width: 0;
}

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
  }
}

.placeholder {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--whp-white);
  color: var(--whp-black);
  border: 1px dashed var(--whp-grey-1);
  border-left: 4px solid var(--whp-red);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-wrap: break-word;
}

h1.placeholder,
h2.placeholder,
h3.placeholder {
  font-family: var(--font-heading);
  font-weight: 400;
}

.placeholder--on-dark {
  color: var(--whp-white);
  background: transparent;
  border-color: var(--whp-grey-1);
  border-left-color: var(--whp-red);
}

.figure-slot,
.embed-slot {
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 0.75rem;
  min-height: 14rem;
  padding: 1.25rem;
  background-color: var(--whp-grey-2);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--whp-grey-2),
    var(--whp-grey-2) 14px,
    var(--whp-white) 14px,
    var(--whp-white) 28px
  );
  border: 1px solid var(--whp-black);
}

.embed-slot {
  background-image: none;
  background: var(--whp-white);
  border-style: dashed;
  border-color: var(--whp-grey-1);
}

.slot-kicker {
  margin: 0;
  padding: 0.35rem 0.55rem;
  background: var(--whp-alt-black);
  color: var(--whp-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.figure-slot .placeholder,
.embed-slot .placeholder {
  max-width: 100%;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card,
.panel,
.empty-note,
.results,
.field input,
.field select,
.field textarea,
.pending-state {
  background: var(--whp-white);
}

.card,
.panel,
.results {
  border: 1px solid var(--whp-grey-1);
  padding: 1rem;
  min-width: 0;
}

.card {
  border-top: 3px solid var(--whp-red);
}

.card .placeholder,
.panel .placeholder:last-child {
  margin-bottom: 0;
}

@media (min-width: 40rem) {
  .card-grid.cols-2,
  .card-grid.cols-3,
  .card-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .card-grid.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .card-grid.cols-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.jump-list,
.footer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.jump-list a,
.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-body);
  font-weight: 700;
}

.panel h2:first-child {
  margin-top: 0;
}

.empty-note {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--whp-grey-1);
  color: var(--whp-black);
  font-family: var(--font-body);
}

.pending-state {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--whp-black);
  border-left: 4px solid var(--whp-red);
  color: var(--whp-black);
  font-family: var(--font-body);
  font-weight: 700;
}

.text-secondary {
  color: var(--whp-grey-1);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

.field {
  margin: 0 0 1rem;
}

.field label,
.choice {
  font-family: var(--font-body);
  font-weight: 600;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
}

.field-note {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  color: var(--whp-grey-1);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.city-block {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--whp-grey-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 36rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--whp-grey-1);
  border-radius: 0;
  color: var(--whp-black);
  background: var(--whp-white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
}

.filter-row {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 40rem) {
  .filter-row {
    grid-template-columns: 1fr 1fr;
  }
}

.choice,
.field label.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  font-weight: 400;
}

.choice input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--whp-red);
  flex: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  background: var(--whp-red);
  color: var(--whp-black);
  border: 2px solid var(--whp-black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.button:hover {
  background: var(--whp-alt-black);
  color: var(--whp-white);
}

.results {
  min-height: 10rem;
  border-color: var(--whp-black);
}

.program-list,
.materials-list,
.check-list,
.location-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.program-list li,
.materials-list li,
.check-list li {
  margin: 0 0 0.65rem;
}

.location-list {
  display: grid;
  gap: 1rem;
}

.location-card {
  background: var(--whp-white);
  border: 1px solid var(--whp-grey-1);
  border-top: 3px solid var(--whp-red);
  padding: 1rem;
}

.location-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.map-wrap {
  position: relative;
  margin-top: 1rem;
  background: var(--whp-grey-2);
  border: 1px solid var(--whp-black);
}

.map-frame {
  height: 22rem;
  background: var(--whp-grey-2);
}

.map-empty {
  position: absolute;
  z-index: 650;
  left: 1rem;
  right: 1rem;
  top: 1rem;
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--whp-white);
  color: var(--whp-black);
  border: 1px solid var(--whp-black);
  border-left: 4px solid var(--whp-red);
  font-family: var(--font-body);
  font-weight: 700;
}

.leaflet-container,
.leaflet-popup-content,
.leaflet-control-attribution {
  font-family: var(--font-body);
  color: var(--whp-black);
}

.leaflet-control-attribution {
  font-size: 0.875rem;
  background: var(--whp-white);
}

.site-footer {
  background: var(--whp-alt-black);
  color: var(--whp-white);
  padding: 2rem 0 2.5rem;
}

.site-footer a {
  color: var(--whp-white);
  text-decoration-color: var(--whp-red);
}

.footer-name {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-by,
.footer-note {
  color: var(--whp-white);
  font-family: var(--font-body);
  font-size: 1rem;
}

.footer-note a {
  color: var(--whp-white);
}

@media print {
  .nav-toggle {
    display: none !important;
  }

  .nav-list,
  .js .nav-list {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-header,
  .site-footer {
    background: var(--whp-white);
    color: var(--whp-black);
  }

  .site-header a,
  .site-footer a,
  .footer-note,
  .nav-list a {
    color: var(--whp-black);
  }
}
