/* WildlifeSalvage.com: road-sign field manual.
   Guide-sign green for structure and trust, warning yellow for status, logo red only for alerts. */
:root {
  --green: #0b5b3e;
  --green-deep: #073f2b;
  --yellow: #f5c518;
  --red: #d62a2a;
  --asphalt: #25282b;
  --asphalt-2: #3a3e42;
  --fog: #eef1ee;
  --fog-2: #e2e7e2;
  --ink: #25282b;
  --muted: #5b6268;
  --line: #cfd6d0;
  --white: #fff;
  --sign: "Overpass", "Highway Gothic", "Helvetica Neue", Arial, sans-serif;
  --read: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --measure: 68ch;
  --r-sign: 10px;
  --r-soft: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--fog); color: var(--ink); font: 400 1.125rem/1.7 var(--read); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--green-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 3px; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: var(--asphalt); padding: 8px 14px; z-index: 100; font-family: var(--sign); font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* type */
h1, h2, h3, h4 { font-family: var(--sign); color: var(--asphalt); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 900; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; line-height: 1.6; color: var(--asphalt-2); max-width: 60ch; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.small { font-size: .95rem; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 700 1rem/1 var(--sign); padding: .85em 1.3em; border-radius: var(--r-soft); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--asphalt); background: transparent; }
.btn-ghost:hover { background: var(--asphalt); color: var(--white); }
.btn-sign { background: var(--yellow); color: var(--asphalt); }
.btn-sign:hover { background: #ffd84a; color: var(--asphalt); }
.btn-sm { padding: .6em 1em; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: default; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo img { width: 196px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { font: 600 1rem/1 var(--sign); color: var(--asphalt); text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--yellow); color: var(--asphalt); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--asphalt); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 20px 20px; gap: 12px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--fog-2); font-size: 1.1rem; }
  .nav-cta { justify-content: center; }
  .logo img { width: 168px; }
}

/* the guide sign: the one bold element */
.guide-sign { background: var(--green); color: var(--white); border-radius: var(--r-sign); padding: 6px; box-shadow: 0 18px 40px -18px rgba(7, 63, 43, .55); }
.guide-sign-inner { border: 3px solid var(--white); border-radius: 6px; padding: 22px 24px 24px; }
.guide-sign h2, .guide-sign h1 { color: var(--white); }
.guide-sign .sign-title { font: 800 1.55rem/1.15 var(--sign); margin: 0 0 4px; color: var(--white); }
.guide-sign .sign-sub { font: 400 1rem/1.4 var(--sign); opacity: .9; margin: 0 0 16px; }
.sign-form { display: flex; gap: 10px; flex-wrap: wrap; }
.sign-form select { flex: 1 1 220px; min-width: 0; font: 600 1.05rem var(--sign); padding: .8em .9em; border-radius: var(--r-soft); border: 0; background: var(--white); color: var(--asphalt); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325282b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }

/* hero */
.hero { position: relative; color: var(--white); background: var(--asphalt); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; opacity: .78; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,22,.82) 0%, rgba(20,24,22,.55) 45%, rgba(20,24,22,.15) 100%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: end; padding: clamp(64px, 11vw, 140px) 20px clamp(48px, 7vw, 88px); }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .lede { color: #e9eee9; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero .btn-ghost { color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--asphalt); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 28px; } }

/* center line: the logo's dashed road, used as a divider */
.centerline { height: 46px; background: var(--asphalt); position: relative; }
.centerline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--yellow) 0 44px, transparent 44px 80px); }

/* sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-white { background: var(--white); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--r-soft); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { display: flex; gap: .6em; align-items: baseline; margin: .35em 0; }
.checklist svg { color: var(--green); transform: translateY(.18em); }

/* steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 4px solid var(--asphalt); }
.steps li { counter-increment: step; padding: 22px 22px 26px 0; position: relative; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font: 900 2.4rem/1 var(--sign); color: var(--green); margin-bottom: 10px; }
.steps h3 { font-size: 1.15rem; margin-bottom: .35em; }
.steps p { font-size: 1rem; line-height: 1.6; margin: 0; color: var(--asphalt-2); }
@media (max-width: 700px) { .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* topic strip (photo + text), not a uniform card grid */
.topics { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.topic { position: relative; border-radius: var(--r-soft); overflow: hidden; background: var(--asphalt); color: var(--white); text-decoration: none; min-height: 320px; display: flex; align-items: flex-end; }
.topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .4s ease, opacity .3s; }
.topic:hover img { transform: scale(1.03); opacity: .6; }
.topic-body { position: relative; padding: 22px; background: linear-gradient(0deg, rgba(20,24,22,.92), rgba(20,24,22,0)); width: 100%; }
.topic h3 { color: var(--white); margin-bottom: .25em; }
.topic p { margin: 0; font-size: 1rem; line-height: 1.5; color: #dfe5df; }
.topic:hover { color: var(--white); }
@media (max-width: 900px) { .topics { grid-template-columns: 1fr; } .topic { min-height: 240px; } }

/* state directory */
.state-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.state-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.state-search input { width: 100%; font: 600 1.05rem var(--sign); padding: .8em .9em .8em 2.6em; border: 2px solid var(--line); border-radius: var(--r-soft); background: var(--white); }
.state-search input:focus { border-color: var(--green); outline: none; }
.state-search svg { position: absolute; left: .85em; top: 50%; transform: translateY(-50%); color: var(--muted); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font: 600 .95rem var(--sign); color: var(--muted); }
.country { margin-bottom: 40px; }
.country h2 { display: flex; align-items: baseline; gap: 12px; font-size: 1.5rem; padding-bottom: 10px; border-bottom: 2px solid var(--asphalt); }
.country h2 .count { font: 600 1rem var(--sign); color: var(--muted); }
.state-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; }
.state-list li { border-bottom: 1px solid var(--line); }
.state-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; text-decoration: none; color: var(--asphalt); font: 600 1.05rem var(--sign); }
.state-list a:hover { color: var(--green); }
.state-list a:hover .abbr { background: var(--green); color: var(--white); }
.abbr { font: 700 .8rem/1 var(--sign); padding: 5px 6px; border-radius: 4px; background: var(--fog-2); color: var(--asphalt-2); min-width: 2.6em; text-align: center; }

/* status markers: shape + color (not color alone) */
.status { display: inline-flex; align-items: center; gap: .45em; font: 700 .9rem/1 var(--sign); white-space: nowrap; }
.status::before { content: ""; width: .7em; height: .7em; flex: none; }
.status-published::before { background: var(--green); border-radius: 50%; }
.status-coming_soon::before { background: var(--yellow); transform: rotate(45deg); border: 1px solid #b38f00; }
.state-list .status { font-size: 0; }
.state-list .status::before { width: .62rem; height: .62rem; }

/* state page */
.state-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 28px 0 40px; }
.state-hero .guide-sign { display: inline-block; margin: 18px 0 20px; max-width: 100%; }
.state-hero .guide-sign-inner { padding: 18px 28px 20px; display: flex; align-items: center; gap: 18px; }
.state-hero h1 { color: var(--white); font-size: clamp(2.1rem, 6vw, 3.6rem); margin: 0; }
.sign-abbr { font: 800 1.1rem/1 var(--sign); border: 2px solid var(--white); border-radius: 6px; padding: 8px 9px 6px; }
.state-meta { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; font: 600 1rem var(--sign); color: var(--muted); }
.state-meta svg { vertical-align: -.15em; }
.notice { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--r-soft); background: #fff8d6; border: 1px solid #ecd27a; border-left: 6px solid var(--yellow); margin: 0 0 32px; }
.notice svg { width: 26px; height: 26px; color: #8a6d00; }
.notice h2 { font-size: 1.2rem; margin: 0 0 .3em; }
.notice p { margin: 0; font-size: 1.02rem; }
.state-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-block: 40px 72px; }
@media (max-width: 960px) { .state-layout { grid-template-columns: 1fr; } }
.facts { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--asphalt); border-radius: var(--r-soft); overflow: hidden; margin: 0 0 36px; font-size: 1rem; }
.facts caption { text-align: left; font: 800 1.2rem var(--sign); padding: 0 0 10px; }
.facts th, .facts td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { font: 700 1rem var(--sign); width: 42%; background: #f7f9f7; }
.tbd { color: var(--muted); font-style: italic; }
.pill { display: inline-block; font: 700 .9rem/1 var(--sign); padding: 6px 10px; border-radius: 999px; }
.pill-allowed { background: #dcefe4; color: var(--green-deep); }
.pill-permit { background: #fff1bf; color: #6b5500; }
.pill-prohibited { background: #f9dcdc; color: #8f1d1d; }
.pill-unknown { background: var(--fog-2); color: var(--asphalt-2); }
.animal-table { width: 100%; border-collapse: collapse; margin: 0 0 32px; font-size: 1rem; background: var(--white); }
.animal-table th, .animal-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.animal-table thead th { font: 700 .95rem var(--sign); border-bottom: 2px solid var(--asphalt); background: transparent; }
.coming { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.coming li { display: flex; gap: 12px; padding: 14px 16px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-soft); }
.coming li svg { color: var(--green); margin-top: .3em; }
.coming strong { font-family: var(--sign); display: block; }
.coming span { font-size: 1rem; color: var(--muted); }
.warning-list { list-style: none; padding: 0; margin: 0 0 32px; }
.warning-list li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.02rem; }
.warning-list li svg { color: var(--red); margin-top: .3em; }
.warning-list .lvl-info svg { color: var(--green); }
.aside-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-soft); padding: 22px; margin-bottom: 20px; }
.aside-box h2 { font-size: 1.15rem; margin-bottom: .5em; }
.aside-box p, .aside-box li { font-size: 1rem; }
.aside-box ul { padding-left: 1.1em; margin: 0; }
.aside-sticky { position: sticky; top: 92px; }
.neighbors { display: flex; justify-content: space-between; gap: 12px; border-top: 2px solid var(--asphalt); padding-top: 18px; margin-top: 40px; font: 700 1.05rem var(--sign); }
.neighbors a { text-decoration: none; }
.sources li { overflow-wrap: anywhere; }

/* signup */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--asphalt); color: var(--white); border-radius: var(--r-sign); padding: clamp(24px, 4vw, 40px); }
.signup h2 { color: var(--white); font-size: 1.6rem; margin-bottom: .3em; }
.signup p { margin: 0; color: #cfd6d0; font-size: 1.02rem; }
.signup-copy { display: flex; gap: 16px; }
.signup-icon svg { width: 34px; height: 34px; color: var(--yellow); }
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-form input[type=email] { flex: 1 1 220px; min-width: 0; font: 600 1.05rem var(--sign); padding: .85em 1em; border-radius: var(--r-soft); border: 0; }
.signup-form .btn { background: var(--yellow); color: var(--asphalt); }
.signup-form .btn:hover { background: #ffd84a; }
.signup-form .cf-turnstile { flex-basis: 100%; }
.signup .form-status { flex-basis: 100%; margin: 0; font: 600 1rem var(--sign); min-height: 1.4em; }
.signup-compact { grid-template-columns: 1fr; }
.signup-compact h2 { font-size: 1.2rem; }
@media (max-width: 800px) { .signup { grid-template-columns: 1fr; } }
.form-status.ok { color: #9ee0b5; }
.form-status.err { color: #ffb4b4; }

/* forms (contact) */
.form { max-width: 640px; display: grid; gap: 16px; }
.form label { font: 700 1rem var(--sign); display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: 400 1.05rem var(--read); padding: .75em .85em; border: 2px solid var(--line); border-radius: var(--r-soft); background: var(--white); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); outline: none; }
.form .form-status { font: 600 1rem var(--sign); margin: 0; }
.form .form-status.ok { color: var(--green); }
.form .form-status.err { color: var(--red); }

/* gear */
.gear-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 2px solid var(--asphalt); }
.gear-cat { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.gear-cat h3 { display: flex; gap: .5em; align-items: center; }
.gear-cat h3 svg { color: var(--green); }
.gear-cat ul { padding-left: 1.1em; margin: 0 0 .6em; font-size: 1.02rem; }

/* page header for inner pages */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 36px 0 44px; }
.page-head .lede { margin-bottom: 0; }
.page-banner { position: relative; height: clamp(180px, 26vw, 320px); overflow: hidden; background: var(--asphalt); }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font: 600 .95rem var(--sign); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

/* ad slots: invisible until ads are switched on (html.ads-on) */
.ad-slot { display: none; }
.ads-on .ad-slot { display: block; margin: 32px auto; text-align: center; min-height: 90px; }
.ads-on .ad-slot.ad-rect { min-height: 250px; max-width: 300px; }

/* footer */
.site-footer { background: var(--asphalt); color: #cfd6d0; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 32px; }
.footer-brand img { width: 190px; margin-bottom: 14px; }
.footer-brand p { font-size: 1rem; max-width: 34ch; }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .45em 0; font: 400 1rem var(--sign); }
.site-footer a { color: #e6ebe6; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-note { border-top: 1px solid var(--asphalt-2); margin-top: 36px; padding-top: 20px; font-size: .92rem; }
.footer-note p { max-width: 90ch; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* review fixes */
.prose .coming, .prose .warning-list, .prose .checklist { padding-left: 0; }
.signup-compact { padding: 22px; gap: 14px; }
.signup-compact .signup-icon { display: none; }
.signup-compact .signup-copy { display: block; }
.signup-compact p { font-size: .98rem; }
.signup-compact .signup-form input[type=email], .signup-compact .signup-form .btn { flex: 1 1 100%; justify-content: center; }
.hero .sign-form { flex-direction: column; }
.hero .sign-form select, .hero .sign-form .btn { flex: none; width: 100%; justify-content: center; }
.hero .guide-sign { width: 100%; max-width: 420px; justify-self: end; }
@media (max-width: 900px) { .hero .guide-sign { justify-self: stretch; max-width: none; } }

/* halo: a soft hazard-light glow framing the window (fades in once, never blocks clicks) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  box-shadow:
    inset 0 0 0 1.5px rgba(214, 42, 42, .55),
    inset 0 0 18px 2px rgba(214, 42, 42, .22),
    inset 0 0 70px 8px rgba(245, 197, 24, .12);
  animation: halo-in 1.6s ease-out both;
}
@keyframes halo-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  body::after { box-shadow: inset 0 0 0 1px rgba(214, 42, 42, .5), inset 0 0 12px 1px rgba(214, 42, 42, .2), inset 0 0 40px 4px rgba(245, 197, 24, .1); }
}
