/* SpeciesLine US — local, dependency-free interface styles. */
:root {
  color-scheme: light;
  --ink: #172b35;
  --forest: #155b49;
  --forest-dark: #104536;
  --cream: #f7f8f3;
  --mint: #e9f2ec;
  --amber: #f7e3b1;
  --amber-ink: #674714;
  --muted: #52635d;
  --line: #d5ded6;
  --white: #fff;
  --radius: 16px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--forest); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-dark); text-decoration-thickness: 2px; }
button, input, select, textarea { color: var(--ink); }
button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(3.15rem, 5.7vw, 5.3rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.15; margin-bottom: 14px; }
h3 { font-size: 1.2rem; line-height: 1.35; letter-spacing: -.02em; }
p { margin-bottom: 1em; }
small { font-size: .8rem; }
.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 76px; }
.eyebrow {
  color: var(--forest);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .15em;
  line-height: 1.5;
  margin-bottom: 18px;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 16px; z-index: 100;
  padding: 12px 18px; border-radius: 6px;
  background: var(--ink); color: white; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); color: white; }

.site-header {
  position: relative; z-index: 20;
  background: rgba(247, 248, 243, .98);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 91px; display: flex; align-items: center; gap: 34px; }
.brand {
  display: grid; grid-template-columns: 44px auto; column-gap: 11px;
  align-items: center; min-height: 44px; color: var(--ink); text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 44px; height: 44px; grid-row: 1 / 3; }
.brand strong { font-size: 1.18rem; letter-spacing: -.045em; line-height: 1.2; }
.brand small {
  display: block; color: var(--muted); font-size: .65rem;
  text-transform: uppercase; letter-spacing: .14em; line-height: 1.5;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand:not(:has(img)) { display: inline-block; }
.saved-button span { display: inline-block; min-width: 18px; margin-left: 5px; font-size: .75rem; }
.header-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-left: auto; }
.header-inner nav a {
  display: inline-flex; min-height: 44px; align-items: center;
  font-size: .86rem; font-weight: 650; text-decoration: none; color: var(--ink);
}
.header-inner nav a:hover { color: var(--forest); text-decoration: underline; }
.saved-button {
  min-height: 44px; background: transparent; border: 1px solid #9daf9f;
  border-radius: 999px; padding: 9px 17px; color: var(--forest);
  font-size: .85rem; font-weight: 700; white-space: nowrap;
}
.saved-button:hover { border-color: var(--forest); background: var(--mint); }
.urgent-banner { background: var(--amber); border-bottom: 1px solid #dfcc9a; }
.urgent-banner .shell { padding-block: 10px; }
.urgent-banner p { margin: 0; font-size: .83rem; line-height: 1.5; color: #4f3e1b; }
.urgent-banner strong { font-weight: 750; }
.urgent-banner a { color: #4f3e1b; font-weight: 650; }

.hero { display: grid; grid-template-columns: 1.14fr 1fr; gap: 72px; align-items: center; padding-block: 66px 58px; }
.hero-copy { padding-block: 15px; }
.hero h1 { max-width: 690px; margin-bottom: 25px; }
.hero .lede { max-width: 570px; font-size: 1.08rem; line-height: 1.7; color: var(--muted); margin-bottom: 26px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-meta {
  color: var(--muted); font-size: .76rem; line-height: 1.6;
  max-width: 500px; padding-left: 15px; border-left: 2px solid #a8beab;
}
.hero-panel {
  position: relative; align-self: stretch; min-height: 415px;
  padding: 25px 28px 22px; display: flex; flex-direction: column;
  border: 1px solid #cfddd0; background: var(--mint);
  border-radius: 24px 24px 72px 24px; overflow: hidden;
}
.panel-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700; color: var(--forest);
}
.panel-top span:last-child { font-size: .65rem; }
.species-art { flex: 1; display: grid; place-items: center; padding: 18px 0; min-height: 250px; }
.species-art img { width: min(100%, 420px); max-height: 320px; object-fit: contain; }
.panel-caption {
  border-top: 1px solid #c7d7c8; padding-top: 15px; margin: 0;
  font-size: .78rem; line-height: 1.6; color: #3c584b; max-width: 390px;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; align-items: baseline; gap: 13px; padding-inline: 28px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat strong { color: var(--forest); font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1.2; letter-spacing: -.05em; }
.stat span { color: var(--muted); font-size: .82rem; line-height: 1.5; max-width: 190px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading p { color: var(--muted); max-width: 650px; font-size: .95rem; margin-bottom: 0; }
.section-heading > button, .section-heading > .button { flex-shrink: 0; }
.directory-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 30px; align-items: start; }
.filters {
  padding: 24px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); position: sticky; top: 24px;
}
.filter-title { margin-bottom: 23px; font-size: 1rem; font-weight: 750; letter-spacing: -.02em; }
.filter-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filter-title h3 { margin: 0; font-size: 1rem; }
.link-button { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--forest); font-size: .8rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--forest-dark); text-decoration-thickness: 2px; }
.filters form { margin: 0; }
.filters fieldset { min-inline-size: 0; border: 0; padding: 0; margin: 0; grid-column: 1 / -1; }
.field { margin-bottom: 19px; min-width: 0; }
.field label, .sort-field label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .sort-field select, input[type="search"], textarea {
  width: 100%; min-height: 46px; border: 1px solid #9daf9f;
  border-radius: 7px; background: #fff; padding: 10px 11px;
  font-size: .87rem; line-height: 1.4;
}
.field select, .sort-field select { padding-right: 25px; }
.field input::placeholder, textarea::placeholder { color: #626f69; opacity: 1; }
.field input:focus, .field select:focus, textarea:focus { border-color: var(--forest); }
.check-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 17px; }
.check-field input { accent-color: var(--forest); width: 18px; height: 18px; flex: 0 0 18px; margin: 4px 0 0; }
.check-field label { font-size: .8rem; line-height: 1.5; cursor: pointer; min-height: 44px; display: flex; align-items: flex-start; padding-top: 1px; }
.filter-note { color: var(--muted); font-size: .75rem; line-height: 1.65; padding-top: 18px; margin: 18px 0; border-top: 1px solid var(--line); }
.filters .button { width: 100%; }
.results { min-width: 0; }
.results-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
#result-count { font-size: 1rem; font-weight: 750; letter-spacing: -.025em; }
.sort-field { display: flex; align-items: center; gap: 9px; }
.sort-field label { margin: 0; white-space: nowrap; color: var(--muted); font-weight: 500; }
.sort-field select { width: auto; max-width: 220px; min-height: 44px; font-size: .79rem; padding: 9px 28px 9px 11px; }
.evidence-key { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: .72rem; color: var(--muted); margin-bottom: 17px; }
.key-explicit, .key-conditional { display: inline-flex; align-items: center; gap: 7px; }
.key-explicit::before, .key-conditional::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--forest); }
.key-conditional::before { background: #986819; }
.evidence-key .key-explicit { color: #245743; }
.evidence-key .key-conditional { color: #785217; }
.evidence-key .key-explicit::before, .evidence-key .key-conditional::before { display: none; }
.query-summary { margin-bottom: 14px; padding: 12px 15px; background: var(--mint); border-radius: 8px; font-size: .82rem; color: #2e5040; line-height: 1.6; }
.query-summary strong { color: var(--forest-dark); }
.directory-note { margin: 0 0 21px; font-size: .77rem; line-height: 1.65; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.facility-card {
  display: flex; flex-direction: column; min-width: 0;
  padding: 23px; border: 1px solid #cfdbd0; border-radius: var(--radius);
  background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
.facility-card:hover { border-color: #92ad98; box-shadow: 0 6px 20px rgba(23, 43, 53, .045); }
.card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.location-tag { color: var(--muted); text-transform: uppercase; font-size: .65rem; font-weight: 700; letter-spacing: .09em; }
.badge {
  display: inline-flex; align-items: center; width: fit-content; gap: 6px;
  font-size: .65rem; line-height: 1.4; font-weight: 750;
  padding: 5px 9px; border: 1px solid transparent; border-radius: 5px;
}
.badge.explicit, .badge.key-explicit { color: #154e3e; background: #e6f1e8; border-color: #c5dbca; }
.badge.conditional, .badge.key-conditional { color: var(--amber-ink); background: var(--amber); border-color: #e5cf94; }
.badge.routine-only, .badge.unknown, .badge.not-accepted { color: #455750; background: #f0f2ee; border-color: #d5ddd6; }
.facility-card h3 { font-size: 1.19rem; margin-bottom: 11px; }
.facility-card h3 a { color: var(--ink); text-decoration: none; }
.facility-card h3 a:hover { color: var(--forest); text-decoration: underline; }
.species-line { color: var(--forest); font-size: .8rem; line-height: 1.6; font-weight: 650; margin-bottom: 12px; }
.intake-note { color: var(--muted); font-size: .79rem; line-height: 1.65; margin-bottom: 19px; }
.card-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; padding-top: 17px; border-top: 1px solid var(--line); margin-top: auto; margin-bottom: 17px; }
.fact { min-width: 0; }
.fact span { display: block; color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .075em; margin-bottom: 5px; }
.fact strong { display: block; font-size: .78rem; line-height: 1.55; font-weight: 650; overflow-wrap: anywhere; }
.fact a { color: var(--ink); text-decoration: none; }
.fact a:hover { text-decoration: underline; }
.address { color: var(--muted); font-size: .77rem; line-height: 1.6; margin-bottom: 18px; }
.card-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.card-actions > .primary { grid-column: 1 / -1; }
.card-actions .button { font-size: .77rem; padding-inline: 13px; flex: 1; white-space: nowrap; }
.save-toggle {
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 12px; border: 1px solid #9daf9f; background: transparent; border-radius: 7px;
  color: var(--forest); font-size: .75rem; font-weight: 700;
}
.save-toggle:hover { background: var(--mint); border-color: var(--forest); }
.saved-active, .save-toggle[aria-pressed="true"] { background: var(--mint); color: var(--forest-dark); border-color: var(--forest); }
.source-date { color: var(--muted); font-size: .64rem; line-height: 1.5; margin: 14px 0 0; }

.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border: 1px solid transparent; border-radius: 7px;
  font-size: .85rem; font-weight: 700; line-height: 1.4; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.button:hover { text-decoration: none; }
.button.primary { background: var(--forest); color: var(--white); border-color: var(--forest); }
.button.primary:hover { background: var(--forest-dark); color: var(--white); border-color: var(--forest-dark); }
.button.secondary { color: var(--forest); background: var(--white); border-color: #9daf9f; }
.button.secondary:hover { color: var(--forest-dark); background: var(--mint); border-color: var(--forest); }
.button.ghost { color: var(--forest); background: transparent; border-color: transparent; padding-inline: 12px; }
.button.ghost:hover { background: var(--mint); color: var(--forest-dark); }
button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
button:disabled:hover { box-shadow: none; }
.empty-state { grid-column: 1 / -1; padding: 42px 28px; border: 1px dashed #9daf9f; border-radius: var(--radius); background: #fff; text-align: center; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { max-width: 490px; margin: 0 auto 18px; color: var(--muted); font-size: .9rem; }
.notice { padding: 15px 18px; margin-bottom: 20px; border: 1px solid #dfca92; border-left: 3px solid #9b6b1e; border-radius: 7px; background: #fcf2d9; color: #5c4318; font-size: .82rem; line-height: 1.65; }
.notice p:last-child { margin-bottom: 0; }

.coverage-section { border-top: 1px solid var(--line); }
.region-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.region-card { min-height: 160px; padding: 26px 24px; border: 0; border-left: 1px solid var(--line); background: transparent; text-align: left; }
.region-card:hover { background: var(--mint); }
.region-card > span { display: block; color: var(--ink); font-size: .84rem; font-weight: 750; margin-bottom: 17px; }
.region-card > small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.65; }
.region-card:first-child { padding-left: 0; border-left: 0; }
.region-card .number { display: block; font-family: var(--serif); font-size: 2.7rem; line-height: 1; color: var(--forest); margin-bottom: 16px; letter-spacing: -.04em; }
.region-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.region-card p { font-size: .78rem; color: var(--muted); line-height: 1.65; margin-bottom: 0; }
.guide-section { background: var(--mint); border-top: 1px solid #d2dfd4; border-bottom: 1px solid #d2dfd4; }
.guide-section > .shell, .guide-section.shell { padding-block: 66px; }
.guide-section.section.shell { background: var(--mint); border-radius: 20px; padding-inline: 32px; margin-block: 0 70px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.guide-item { padding-left: 20px; border-left: 2px solid #a3bda8; }
.guide-item > span, .guide-item .number { display: inline-block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--forest); margin-bottom: 14px; }
.guide-item h3 { font-size: 1rem; margin-bottom: 11px; }
.guide-item p { color: #435e50; font-size: .86rem; line-height: 1.75; margin-bottom: 0; }
.guide-footnote { max-width: 760px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid #c2d3c4; color: #435e50; font-size: .77rem; line-height: 1.7; }
.footer { padding-block: 36px; border-top: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: .78rem; }
.footer .shell { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer p { max-width: 620px; margin: 0; }
.footer .brand { margin-bottom: 12px; }
.footer .shell > small { flex-basis: 100%; padding-top: 17px; border-top: 1px solid var(--line); font-size: .7rem; }
.footer strong { color: var(--ink); }
.data-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.data-links a, .data-links button { min-height: 44px; display: inline-flex; align-items: center; font-size: .76rem; color: var(--forest); font-weight: 650; }
.data-links button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.data-links a:hover, .data-links button:hover { color: var(--forest-dark); }

dialog {
  width: min(1050px, calc(100% - 40px)); max-height: calc(100dvh - 48px);
  padding: 0; margin: auto; border: 1px solid #becdbf; border-radius: 18px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 24px 80px rgba(16, 36, 26, .25); overflow: auto;
}
dialog::backdrop { background: rgba(16, 31, 29, .64); }
.modal-shell { min-width: 0; }
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 28px 32px 23px; border-bottom: 1px solid var(--line); background: var(--white);
}
.modal-header h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); margin-bottom: 0; max-width: 850px; padding-top: 3px; }
.modal-header p { margin: 9px 0 0; color: var(--muted); font-size: .82rem; }
.close {
  display: grid; place-items: center; min-width: 44px; height: 44px; flex-shrink: 0;
  padding: 0; border: 1px solid #a6b6a8; border-radius: 50%; background: white;
  font-size: 1.45rem; line-height: 1; color: var(--ink);
}
.close:hover { background: var(--mint); border-color: var(--forest); }
.modal-body { padding: 28px 32px 34px; }
.modal-body > :last-child { margin-bottom: 0; }
.modal-body h3 { font-size: 1.05rem; margin-bottom: 14px; }
.modal-body h4 { margin-bottom: 10px; font-size: .9rem; }
.modal-body p, .modal-body li { font-size: .84rem; line-height: 1.7; }
.modal-body ul { padding-left: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.detail-box { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 11px; padding: 21px; margin-bottom: 22px; }
.detail-grid > .detail-box { margin-bottom: 0; }
.detail-box p:last-child, .detail-box ul:last-child, .detail-box dl:last-child { margin-bottom: 0; }
.detail-box .button { margin-top: 4px; }
.definition-list { margin: 0; }
.definition-list > div { padding-block: 10px; border-top: 1px solid var(--line); }
.definition-list > div:first-child { padding-top: 0; border-top: 0; }
.definition-list dt { color: var(--muted); font-size: .71rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.definition-list dd { margin: 4px 0 0; font-size: .84rem; line-height: 1.65; font-weight: 600; overflow-wrap: anywhere; }
.definition-list > dt:not(:first-child) { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.species-table { width: 100%; margin-block: 0 24px; border-collapse: collapse; background: white; text-align: left; }
.species-table table { width: 100%; border-collapse: collapse; }
.species-table th, .species-table td { padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; font-size: .78rem; line-height: 1.65; }
.species-table th { background: #edf2eb; color: #304d3d; font-weight: 700; }
.species-table td:first-child { font-weight: 650; }
.species-table td p:last-child, .species-table td ul:last-child { margin-bottom: 0; }
.species-table .badge { white-space: nowrap; }
.source-list { margin-block: 0 22px; padding-left: 22px; }
.source-list li { margin-bottom: 14px; padding-left: 4px; overflow-wrap: anywhere; }
.source-list a { font-weight: 650; }
.source-list small { display: block; margin-top: 4px; color: var(--muted); font-size: .74rem; line-height: 1.65; }
textarea#call-script { display: block; width: 100%; min-height: 190px; resize: vertical; font-size: .83rem; line-height: 1.75; margin-block: 12px 14px; padding: 14px; }
.dialog-status { min-height: 1.6em; color: var(--forest-dark); font-size: .78rem; font-weight: 700; margin-top: 12px; }
.dialog-status:not(:empty) { padding: 10px 13px; border: 1px solid #bdd4c4; border-radius: 7px; background: var(--mint); }
.compare-scroll { max-width: 100%; overflow-x: auto; margin-block: 6px 20px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.compare-scroll table { width: 100%; min-width: 700px; border-collapse: collapse; text-align: left; }
.compare-scroll th, .compare-scroll td { padding: 15px 16px; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: .8rem; line-height: 1.7; }
.compare-scroll th { font-weight: 700; background: var(--mint); color: #254a39; }
.compare-scroll th:first-child { width: 150px; }
.compare-scroll tr:last-child > * { border-bottom: 0; }
.compare-scroll tr > :last-child { border-right: 0; }
.compare-scroll .button { font-size: .76rem; margin-top: 10px; padding: 10px 12px; }
.compare-scroll ul { padding-left: 17px; margin: 0; }
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 50; transform: translateX(-50%);
  padding: 13px 20px; border-radius: 8px; border: 1px solid #406c59;
  background: var(--ink); color: #fff; font-size: .83rem; line-height: 1.5;
  box-shadow: 0 8px 30px rgba(16, 36, 26, .16); max-width: min(580px, calc(100% - 40px));
}

@media (max-width: 1100px) {
  .hero { gap: 36px; padding-block: 48px; }
  .hero-panel { padding: 23px; min-height: 390px; }
  .header-inner { gap: 22px; }
  .header-inner nav { gap: 19px; }
  .directory-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 23px; }
  .filters { padding: 20px; }
  .facility-card { padding: 20px; }
  .card-actions .button { padding-inline: 11px; }
}
@media (max-width: 940px) {
  .header-inner { min-height: 82px; flex-wrap: wrap; gap: 12px 20px; padding-block: 16px; }
  .header-inner nav { gap: 20px; }
  .saved-button { padding-inline: 13px; }
  .hero { grid-template-columns: 1.1fr 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(2.9rem, 6.1vw, 4.3rem); }
  .hero-panel { min-height: 370px; }
  .panel-top { font-size: .64rem; }
  .stat { padding-inline: 20px; gap: 11px; }
  .stat strong { font-size: 1.9rem; }
  .stat span { font-size: .74rem; }
  .directory-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
  .filters form, .filters fieldset { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
  .filter-title, .filter-note { grid-column: 1 / -1; }
  .filter-title { margin-bottom: 18px; }
  .filter-note { margin-top: 0; margin-bottom: 16px; padding-top: 13px; }
  .filters .check-field { grid-column: auto; }
  .filters .button { align-self: end; }
  .region-card { padding-inline: 18px; }
  .guide-grid { gap: 24px; }
}
@media (max-width: 740px) {
  .shell { width: min(100% - 40px, 1240px); }
  .header-inner { gap: 10px 18px; }
  .header-inner nav { order: 3; width: 100%; gap: 26px; margin: 0; border-top: 1px solid var(--line); padding-top: 5px; }
  .header-inner nav a { font-size: .78rem; min-height: 44px; }
  .saved-button { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-block: 38px; gap: 24px; }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(3rem, 8.3vw, 4.5rem); max-width: 650px; }
  .hero .lede { font-size: 1rem; max-width: 600px; }
  .hero-meta { max-width: 580px; }
  .hero-panel { min-height: 290px; border-bottom-right-radius: 60px; }
  .species-art { min-height: 170px; padding: 12px 0; }
  .species-art img { max-height: 235px; width: min(100%, 430px); }
  .panel-caption { max-width: 100%; }
  .stats { gap: 0; padding-block: 19px; }
  .stat { display: block; padding-inline: 17px; }
  .stat strong { display: block; font-size: 2rem; margin-bottom: 5px; }
  .stat span { display: block; max-width: 145px; font-size: .7rem; }
  .section { padding-block: 52px; }
  .section-heading { align-items: flex-start; gap: 20px; }
  .section-heading p { font-size: .87rem; }
  .section-heading > .button, .section-heading > button { font-size: .77rem; padding-inline: 12px; }
  .filters form, .filters fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-card { padding: 23px 20px; border-top: 1px solid var(--line); }
  .region-card:nth-child(-n+2) { border-top: 0; }
  .region-card:nth-child(odd) { border-left: 0; padding-left: 0; }
  .region-card .number { font-size: 2.3rem; }
  .guide-grid { grid-template-columns: 1fr; gap: 25px; }
  .guide-item { padding-left: 18px; }
  .guide-item > span, .guide-item .number { margin-bottom: 8px; }
  .guide-section > .shell, .guide-section.shell { padding-block: 45px; }
  .guide-section.section.shell { padding-inline: 24px; margin-bottom: 50px; }
  .detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .modal-header { padding: 23px; gap: 15px; }
  .modal-body { padding: 23px; }
  .detail-box { padding: 18px; }
  .species-table th, .species-table td { padding: 10px; font-size: .72rem; }
  .species-table .badge { white-space: normal; }
}
@media (max-width: 570px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { padding-block: 14px 9px; }
  .brand { grid-template-columns: 37px auto; column-gap: 9px; }
  .brand img { width: 37px; height: 37px; }
  .brand strong { font-size: 1.06rem; }
  .brand small { font-size: .58rem; letter-spacing: .1em; }
  .saved-button { font-size: .74rem; padding: 9px 11px; }
  .header-inner nav { gap: 22px; }
  .header-inner nav a { min-height: 44px; }
  .urgent-banner .shell { padding-block: 11px; }
  .urgent-banner p { font-size: .73rem; line-height: 1.6; }
  .hero { padding-top: 32px; }
  .eyebrow { font-size: .65rem; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(2.85rem, 11.8vw, 3.7rem); margin-bottom: 21px; }
  .hero .lede { font-size: .94rem; line-height: 1.75; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { padding-inline: 15px; font-size: .8rem; }
  .hero-meta { font-size: .7rem; }
  .hero-panel { min-height: 270px; padding: 21px; border-radius: 15px 15px 50px 15px; }
  .panel-caption { font-size: .72rem; }
  .stats { padding-block: 18px; }
  .stat { padding-inline: 12px; }
  .stat strong { font-size: 1.8rem; }
  .stat span { font-size: .66rem; }
  .section-heading { flex-direction: column; align-items: flex-start; margin-bottom: 24px; gap: 14px; }
  .section-heading .eyebrow { margin-bottom: 10px; }
  h2 { font-size: 2.15rem; margin-bottom: 12px; }
  .filters { padding: 21px; }
  .filters form, .filters fieldset { grid-template-columns: 1fr; }
  .field { margin-bottom: 16px; }
  .filter-title, .filter-note { grid-column: auto; }
  .check-field { margin-bottom: 9px; }
  .results-top { flex-wrap: wrap; gap: 12px; margin-top: 5px; margin-bottom: 16px; }
  .sort-field { width: 100%; justify-content: space-between; }
  .sort-field select { flex: 1; max-width: 240px; }
  .evidence-key { font-size: .68rem; gap: 7px 15px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .facility-card { padding: 22px; }
  .facility-card h3 { font-size: 1.24rem; }
  .card-actions { gap: 8px; }
  .card-actions .button { min-height: 46px; }
  .card-details { gap: 16px 20px; }
  .source-date { font-size: .65rem; }
  .region-card p { font-size: .74rem; }
  .footer { padding-block: 28px; }
  .data-links { gap: 0 20px; }
  dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 13px; }
  .modal-header { padding: 21px 18px; }
  .modal-header h2 { font-size: 1.72rem; }
  .modal-body { padding: 21px 18px; }
  .modal-body .card-actions .button { flex-basis: 45%; }
  .species-table { display: block; overflow-x: auto; }
  .species-table table, table.species-table { min-width: 480px; }
  .source-list { padding-left: 19px; }
  .source-list li { padding-left: 1px; }
  .toast { bottom: 16px; width: calc(100% - 32px); max-width: 520px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  body { background: white; font-size: 10pt; }
  .site-header, .urgent-banner, .hero, .stats, .filters, .card-actions, .save-toggle, .saved-button, .toast, .footer, .coverage-section, .guide-section { display: none !important; }
  .section { padding-block: 12px; }
  .shell { width: 100%; }
  .directory-layout { display: block; }
  .cards { grid-template-columns: 1fr 1fr; }
  .facility-card { break-inside: avoid; box-shadow: none; border-color: #aaa; }
  .source-date, .address, .intake-note, .fact span { color: #333; }
  dialog[open] { position: static; width: 100%; max-height: none; overflow: visible; box-shadow: none; border: none; }
  .close { display: none; }
}

