:root {
  --navy: #264653;
  --teal: #2a9d8f;
  --coral: #f28482;
  --gold: #f4c95d;
  --sky: #75a8c7;
  --cream: #fff8e7;
  --ink: #263238;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #315a66;
  color: var(--ink);
  font-family:
    "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  margin: 0;
}
a {
  color: #176d64;
}
a:hover {
  color: #a64149;
}
.skip-link {
  background: var(--gold);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}
.skip-link:focus {
  top: 1rem;
}
header {
  align-items: center;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  padding: 5px;
  margin: 0;
}
#name-container {
  text-align: center;
}
#name-container .site-name {
  font-size: 2em;
  font-weight: 700;
  line-height: normal;
  margin: 0.67em 0;
}
.firstLetter {
  color: var(--coral);
  font-family: serif;
  font-size: 1.5em;
  font-weight: bold;
}
#logo {
  border: 5px solid var(--cream);
  border-radius: 50%;
  box-sizing: content-box;
  height: 100px;
  width: 100px;
}
header nav {
  align-items: center;
  background: var(--navy);
  display: flex;
  flex-direction: row;
  height: 5%;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  width: 100%;
}
header nav ul {
  align-items: center;
  display: flex;
  justify-content: space-evenly;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
header nav ul li {
  margin: 0 15px;
}
header nav a {
  color: var(--cream);
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  font-family:
    "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}
header nav a:hover {
  color: var(--gold);
}
.breadcrumbs {
  color: #d8e6e9;
  font-size: 0.9rem;
  margin: 0 auto;
  max-width: 1120px;
  padding: 1.25rem 1rem 0;
}
.breadcrumbs a {
  color: var(--cream);
}
.guide {
  margin: 0 auto;
  max-width: 1120px;
  padding: 1rem 1rem 4rem;
}
.state-hero {
  align-items: center;
  background: var(--cream);
  border: 5px solid var(--coral);
  border-radius: 18px;
  box-shadow: 7px 7px 0 var(--teal);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto;
  padding: clamp(1.4rem, 4vw, 3rem);
}
.eyebrow {
  color: #a64149;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.state-hero h1 {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0.35rem 0 1rem;
}
.state-hero__intro {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 760px;
}
.state-emblem {
  height: 190px;
  object-fit: contain;
  width: 190px;
}
.updated-note {
  color: #53666a;
  font-size: 0.82rem;
  line-height: 1.5;
}
.contribute-link {
  background: var(--coral);
  border: 2px solid var(--navy);
  color: var(--navy);
  display: inline-block;
  font-weight: 900;
  margin-top: 0.7rem;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
}
.contribute-link:hover,
.contribute-link:focus-visible {
  background: var(--gold);
  color: var(--navy);
}
.snapshot {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2rem 0;
}
.snapshot-card {
  background: var(--cream);
  border-left: 6px solid var(--gold);
  padding: 1rem;
}
.snapshot-card strong,
.snapshot-card span {
  display: block;
}
.snapshot-card strong {
  color: #586b70;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.snapshot-card span {
  color: var(--navy);
  font-weight: 800;
  line-height: 1.4;
}
.toc {
  background: rgba(255, 248, 231, 0.1);
  border: 1px solid rgba(255, 248, 231, 0.3);
  color: var(--cream);
  margin: 2rem 0;
  padding: 1.25rem;
}
.toc h2 {
  margin-top: 0;
}
.toc ul {
  columns: 3;
  margin-bottom: 0;
  padding-left: 1.2rem;
}
.toc li {
  break-inside: avoid;
  margin: 0.55rem 0;
}
.toc a {
  color: var(--cream);
}
.guide-section {
  background: var(--cream);
  border-radius: 14px;
  margin: 1rem 0;
  overflow: hidden;
  scroll-margin-top: 1rem;
}
.guide-section summary {
  align-items: center;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  font-size: 1.25rem;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  padding: 1.2rem 1.4rem;
}
.guide-section summary::-webkit-details-marker {
  display: none;
}
.guide-section summary::after {
  color: var(--coral);
  content: "+";
  font-size: 1.7rem;
}
.guide-section[open] summary {
  background: var(--gold);
}
.guide-section[open] summary::after {
  content: "−";
}
.guide-section__content {
  border-top: 1px solid #dfd8c6;
  line-height: 1.7;
  padding: 1.25rem 1.4rem 1.5rem;
}
.guide-section__content h3 {
  color: #a64149;
  font-size: 1rem;
  margin: 1.35rem 0 0.25rem;
}
.guide-section__content h3:first-child {
  margin-top: 0;
}
.guide-section__content p {
  margin: 0.25rem 0 1rem;
}
.guide-section__content li {
  margin: 0.55rem 0;
}
.resource-card {
  border-left: 4px solid var(--teal);
  margin: 1rem 0;
  padding-left: 1rem;
}
.resource-card a {
  font-weight: 800;
}
.state-pagination {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
}
.state-pagination a {
  background: var(--coral);
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 800;
  padding: 1rem;
  text-decoration: none;
}
.state-pagination a:last-child {
  text-align: right;
}
.disclaimer {
  background: #173c47;
  border-left: 6px solid var(--gold);
  color: var(--cream);
  line-height: 1.65;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
}
footer {
  background: var(--navy);
  color: var(--cream);
  padding: 1rem;
  text-align: center;
}
footer a {
  color: var(--coral);
}

@media (max-width: 768px) {
  header {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px;
  }
  #name-container .site-name {
    font-size: clamp(1.35rem, 7vw, 2rem);
    line-height: 1.1;
    margin: 0;
  }
  .firstLetter {
    font-size: 1.25em;
  }
  #logo {
    display: none;
  }
  header nav {
    height: auto;
    width: 100%;
  }
  header nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  header nav ul li {
    margin: 0;
    padding: 4px;
  }
  header nav a {
    font-size: clamp(0.72rem, 3.2vw, 0.9rem);
    transition: color 0.3s ease;
    font-family:
      "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
      "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  }
  .state-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .state-emblem {
    height: 150px;
    justify-self: center;
    width: 150px;
  }
  .snapshot {
    grid-template-columns: 1fr 1fr;
  }
  .toc ul {
    columns: 2;
  }
}

@media (max-width: 430px) {
  .snapshot {
    grid-template-columns: 1fr;
  }
  .toc ul {
    columns: 1;
  }
  .state-pagination {
    grid-template-columns: 1fr;
  }
  .state-pagination a:last-child {
    text-align: left;
  }
}

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