/* -----------------------------------------------------------
   POSTRequirements.com - Level 2 Premium Styling
   Soft blue, professional, mobile-first, SEO-driven
----------------------------------------------------------- */

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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #f5f7fb;
  color: #0f172a;
  line-height: 1.55;
}

/* Links */
a {
  color: #2563eb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout */
.main {
  padding: 2rem 0 3rem;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Headings */
h1, h2, h3, h4 {
  margin-top: 0;
  color: #0f172a;
  line-height: 1.3;
}
h1 {
  font-size: 2rem;
  font-weight: 700;
}
h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Text */
p {
  margin: 0.5rem 0 0.75rem;
  color: #1f2933;
}

/* Utility: card */
.card {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

/* -----------------------------------------------------------
   HEADER + NAVIGATION
----------------------------------------------------------- */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15,23,42,0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

/* Header main row */
.site-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand block (clickable via <a class="site-brand">) */
.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: none;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
}

.site-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 700px;
}

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  padding: 0.35rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-toggle:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 0.75rem; }
.nav-toggle span:nth-child(2) { top: 1.05rem; }
.nav-toggle span:nth-child(3) { top: 1.35rem; }

.nav-toggle.nav-open span:nth-child(1) {
  top: 1.05rem; transform: rotate(45deg);
}
.nav-toggle.nav-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.nav-open span:nth-child(3) {
  top: 1.05rem; transform: rotate(-45deg);
}

/* -----------------------------------------------------------
   SEARCH BOX
----------------------------------------------------------- */

.search-box {
  margin-top: 1.75rem;
  margin-bottom: 1.5rem;
}

.search-box form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.search-box input[type="text"] {
  flex: 1 1 240px;
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  background: #ffffff;
}

.search-box input[type="text"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.30);
}

/* -----------------------------------------------------------
   STATE GRID (INDEX)
----------------------------------------------------------- */

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px,1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.state-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border-radius: 0.9rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15,23,42,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              border-color 0.15s ease, background 0.15s ease;
}

.state-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(15,23,42,0.07);
  border-color: #bfdbfe;
  background: #f9fbff;
}

.state-card span {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.state-card small {
  font-size: 0.85rem;
  color: #64748b;
}

/* -----------------------------------------------------------
   STATE PAGE LAYOUT
----------------------------------------------------------- */

.state-layout {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  box-shadow: 0 12px 28px rgba(15,23,42,0.05);
  margin-top: 1.5rem;
}

/* State meta */
.state-meta {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Table of contents */
.toc {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.05rem;
  border-radius: 0.8rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.toc strong {
  font-size: 0.95rem;
  color: #0f172a;
}

.toc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.toc li {
  margin: 0.25rem 0;
}

.toc a {
  font-size: 0.9rem;
}

/* Fast facts */
.fast-facts {
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  border-radius: 0.9rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.fast-facts li {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

/* Sections */
.state-layout section {
  margin-top: 2rem;
}
.state-layout section:first-of-type {
  margin-top: 1.25rem;
}

/* Lists */
.state-layout ul {
  padding-left: 1.2rem;
}
.state-layout li {
  margin: 0.25rem 0;
}

/* Bottom link row */
.link-row {
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e5e7eb;
}

.link-row a {
  font-size: 0.95rem;
  font-weight: 500;
}

/* -----------------------------------------------------------
   LEVEL 2 PREMIUM FOOTER
----------------------------------------------------------- */

.site-footer {
  margin-top: 3rem;
  background: #0f172a;
  color: #e5e7eb;
  padding: 3rem 0 3rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col p {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.footer-heading {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.footer-col li {
  margin: 0.35rem 0;
}

.footer-col a {
  color: #bfdbfe;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.2rem;
  border-top: 1px solid #334155;
  font-size: 0.85rem;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .footer-grid {
    text-align: left;
  }
}

/* -----------------------------------------------------------
   MOBILE RESPONSIVE NAV
----------------------------------------------------------- */

@media (max-width: 768px) {

  .site-header-main {
    align-items: flex-start;
  }

  .site-subtitle {
    font-size: 0.88rem;
  }

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

  .nav-links {
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;  /* extra breathing room */
    border-top: 1px solid #e2e8f0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    box-shadow: none;
  }

  .nav-links.nav-open {
    display: flex;
    box-shadow: 0 4px 10px rgba(15,23,42,0.12); /* premium depth */
  }

  .state-layout {
    padding: 1.3rem 1.1rem 1.6rem;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-subtitle { max-width: 520px; }
}

/* Desktop */
@media (min-width: 769px) {
  .nav-toggle { display: none; }

  .nav-links {
    display: flex !important;
    margin-top: 0.4rem;
  }

  .state-layout {
    padding: 2rem 2rem 2.25rem;
  }
}

/* -----------------------------------------------------------
   404 PAGE
----------------------------------------------------------- */

.not-found {
  padding: 3.5rem 0;
  text-align: center;
}

.not-found h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.not-found p {
  font-size: 1rem;
  color: #4b5563;
}