:root {
  --night: #0c1219;
  --slate: #162033;
  --paper: #eef2f6;
  --elevated: #ffffff;
  --ink: #14202e;
  --muted: #5a6b7d;
  --line: #d0d8e2;
  --navy: #1a365d;
  --navy-hover: #122844;
  --amber: #b8893a;
  --amber-soft: rgba(184, 137, 58, 0.18);
  --warn-bg: #e8eef5;
  --radius: 4px;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --max: 1080px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

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

  .hero-bleed__content,
  .hero-bleed__sky {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: 4.5rem;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

img {
  max-width: 100%;
}

.disclaimer-bar {
  background: var(--night);
  color: #c9d3df;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.5rem 1rem;
}

.disclaimer-bar strong {
  color: #eef2f6;
  font-weight: 650;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 242, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header--over-hero {
  background: rgba(12, 18, 25, 0.72);
  border-bottom-color: rgba(215, 222, 232, 0.12);
}

.site-header--over-hero .brand-name {
  color: #f3f6fa;
}

.site-header--over-hero .brand-tag,
.site-header--over-hero .nav a:not(.btn) {
  color: #b7c3d1;
}

.site-header--over-hero .nav a:not(.btn):hover {
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:not(.btn):hover {
  color: var(--navy);
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: var(--radius);
  background: #e8b84a;
  color: #1a1408;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.7rem 1.05rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.06);
  color: #1a1408;
}

/* Header CTA must win over .nav a color rules */
.nav a.btn,
.site-header .btn,
.site-header--over-hero .nav a.btn,
.btn-on-dark {
  background: #e8b84a;
  color: #1a1408 !important;
  border: 1px solid #f0d08a;
  text-decoration: none !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.site-header--over-hero .nav a.btn:hover,
.nav a.btn:hover,
.btn-on-dark:hover {
  background: #f3c65d;
  color: #1a1408 !important;
  filter: none;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-secondary:hover {
  background: #e4ebf3;
  color: var(--navy);
  filter: none;
}

.btn-ghost {
  background: transparent;
  color: #eef2f6;
  border: 1px solid rgba(238, 242, 246, 0.45);
}

.btn-ghost:hover {
  background: rgba(238, 242, 246, 0.08);
  color: #fff;
  filter: none;
}

/* Full-bleed night hero — CSS skyline, no photo download */
.hero-bleed {
  position: relative;
  isolation: isolate;
  color: #eef2f6;
  padding: clamp(3.2rem, 8vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  background:
    linear-gradient(180deg, #0c1219 0%, #162033 55%, #1a2740 100%);
  overflow: hidden;
}

.hero-bleed__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 70% 10%, rgba(184, 137, 58, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 30%, rgba(90, 120, 160, 0.18), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath fill='%0d1520' d='M0 220V120h40v40h30V90h25v50h35V70h40v80h20V100h45v50h30V85h50v65h25V110h40v40h35V95h55v55h30V80h45v70h40V105h50v45h35V90h60v60h40V75h55v75h50V100h70v50h40V88h80v62h100V120h80v100H0z'/%3E%3C/svg%3E")
      bottom / 100% 42% no-repeat;
  animation: sky-shift 18s ease-in-out infinite alternate;
  opacity: 0.95;
}

@keyframes sky-shift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -6px, 0);
  }
}

.hero-bleed__content {
  animation: hero-in 0.7s ease-out both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  color: #fff;
  max-width: 18ch;
  line-height: 1.15;
}

.hero-bleed h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
  max-width: 20ch;
  font-weight: 600;
  color: #e4ebf3;
}

.hero-lead {
  font-size: 1.05rem;
  color: #a9b6c6;
  max-width: 36rem;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.panel {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.85rem;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--elevated);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  background: #e7edf4;
}

.section {
  padding: 2.4rem 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 1.35rem;
  max-width: 40rem;
}

.source-line {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.section--referral {
  border-top: 1px solid var(--line);
  max-width: 40rem;
}

.section--referral p:last-child {
  margin-bottom: 0;
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.process-list li {
  border-bottom: 1px solid var(--line);
}

.process-list a {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.05rem 0.15rem;
  text-decoration: none;
  color: inherit;
}

.process-list a:hover strong {
  color: var(--navy);
  text-decoration: underline;
}

.process-list__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--amber-soft);
  color: #6e5220;
  font-weight: 700;
  font-size: 0.92rem;
}

.process-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.2rem;
}

.process-list__desc {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.guide-card {
  display: block;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.1rem 0.1rem;
  text-decoration: none;
  color: inherit;
}

.guide-card:hover {
  transform: none;
}

.guide-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--navy);
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.layout-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
  align-items: start;
}

.article {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 2rem;
}

.article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
}

.callout {
  background: var(--warn-bg);
  border-left: 3px solid var(--amber);
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.3rem;
  font-size: 0.95rem;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0 1.4rem;
}

.flow-step {
  background: var(--amber-soft);
  color: #6e5220;
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.flow-arrow {
  color: var(--muted);
}

.sidebar-form {
  position: sticky;
  top: 5.2rem;
}

.sidebar-form h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.sidebar-form .hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.7rem 0 0.3rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.7rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.9rem 0 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.consent input {
  width: auto;
  margin-top: 0.2rem;
}

.turnstile-wrap {
  margin: 0.85rem 0 0.5rem;
  min-height: 65px;
}

.form-error {
  color: #8b1e1e;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  display: none;
}

.form-error.show {
  display: block;
}

.sources {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.sources h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.sources ul {
  margin: 0;
  padding-left: 1.1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: #e6ebf1;
}

.footer-brand {
  color: var(--ink);
  font-family: var(--font-display);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.6rem 0 0.55rem;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 1.2rem 0 0.4rem;
}

.prose p,
.prose li {
  color: #243041;
}

.prose ul {
  padding-left: 1.2rem;
}

.page-narrow {
  max-width: 720px;
  margin: 2rem auto 3rem;
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 2rem;
}

.page-narrow h1 {
  font-family: var(--font-display);
  margin-top: 0;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(12, 18, 25, 0.94);
  border-top: 1px solid rgba(215, 222, 232, 0.15);
}

.mobile-cta .btn {
  width: 100%;
}

@media (max-width: 860px) {
  .layout-article {
    grid-template-columns: 1fr;
  }

  .sidebar-form {
    position: static;
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav .nav-hide {
    display: none;
  }

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 5.25rem;
  }
}
