/* Shared field-guide tokens. Browser controllers only manage behavior and state. */
@font-face {
  font-family:'Source Sans 3';
  src:url('/assets/fonts/SourceSans3.ttf') format('truetype');
  font-weight:200 900;
  font-style:normal;
  font-display:swap
}
:root {
  --ink:#183447;
  --muted:#526776;
  --line:#d4dfe5;
  --accent:#235f82;
  --paper:#f7f9fa;
  --radius:12px;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  scroll-padding-top:100px;
  color-scheme:light
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
a {
  color:inherit;
  text-underline-offset:4px
}
a:hover {
  color:var(--accent)
}
button,input,textarea {
  font:inherit
}
button,.button,.file-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 18px;
  border:1px solid var(--accent);
  border-radius:6px;
  background:var(--accent);
  color:white;
  text-decoration:none;
  cursor:pointer;
  font-weight:600
}
button:hover,.button:hover {
  background:#173d55;
  color:white
}
.secondary,.file-button {
  background:white;
  color:var(--ink);
  border-color:#9dafbb
}
.secondary:hover,.file-button:hover {
  background:#eaf0f4;
  color:var(--ink)
}
button:disabled {
  opacity:.55;
  cursor:not-allowed
}
:focus-visible {
  outline:3px solid #af6422;
  outline-offset:4px
}
[hidden] {
  display:none!important
}
h1,h2,h3 {
  line-height:1.16;
  letter-spacing:-.025em;
  margin:0 0 18px;
  text-wrap:balance
}
h1 {
  font-size:clamp(34px,4.5vw,62px);
  max-width:1000px
}
h2 {
  font-size:30px
}
h3 {
  font-size:22px
}
p {
  margin:0 0 18px
}
img {
  display:block;
  max-width:100%;
  height:auto
}
.skip {
  position:fixed;
  top:-100px;
  left:16px;
  z-index:20;
  background:white;
  padding:12px
}
.skip:focus {
  top:12px
}
header {
  position:sticky;
  top:0;
  z-index:10;
  border-bottom:1px solid var(--line);
  background:#fff
}
.header-inner {
  max-width:1280px;
  margin:auto;
  padding:18px 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-size:19px;
  font-weight:800;
  letter-spacing:.04em;
  line-height:1.1
}
.brand small {
  display:block;
  font-size:10px;
  letter-spacing:.22em;
  margin-top:6px
}
nav {
  display:flex;
  gap:28px
}
nav a {
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  padding:8px 0
}
nav a[aria-current] {
  box-shadow:0 2px var(--accent)
}
.mobile-nav {
  display:none
}
main {
  max-width:1280px;
  padding:42px 32px 80px;
  margin:auto
}
.page-heading {
  margin:0 0 36px
}
.eyebrow {
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:14px
}
.lede {
  font-size:18px;
  color:var(--muted);
  max-width:760px;
  margin-top:22px
}
.home-lead {
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#eaf0f4
}
.lead-copy {
  align-self:center;
  padding:clamp(24px, 4vw, 56px)
}
.lead-copy h1 {
  font-size:clamp(34px, 4.4vw, 62px);
  margin-bottom:16px
}
.lead-copy .lede {
  max-width:42ch;
  margin:0;
  text-wrap:pretty
}
.lead-copy .actions {
  margin:24px 0 0
}
/* Let the copy size the row while the photo fills its column. */
.lead-photo {
  position:relative;
  min-height:340px
}
.lead-photo img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 24%
}
.actions {
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin:22px 0
}
.grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px
}
.bird-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius)
}
.bird-card>a {
  display:block;
  text-decoration:none;
  border-radius:inherit;
  height:100%
}
.bird-card img {
  height:220px;
  width:100%;
  object-fit:cover;
  border-radius:var(--radius) var(--radius) 0 0
}
.bird-card:hover {
  border-color:#7395a9
}
.bird-card h2,.bird-card h3 {
  font-size:23px;
  margin-bottom:6px
}
.card-copy {
  padding:22px
}
.card-copy .eyebrow {
  font-size:10px;
  letter-spacing:.05em
}
.latin {
  font-style:italic;
  color:var(--muted);
  font-size:14px
}
.card-copy p:not(.eyebrow):not(.latin) {
  font-size:15px
}
.text-link {
  font-size:14px;
  font-weight:700;
  color:var(--accent)
}
section {
  margin-top:52px
}
.section-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px
}
.section-heading h2 {
  margin:0
}
.section-heading>a {
  font-size:14px
}
/* Guide category navigation and featured article. */
.guide-topics {
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  border-block:1px solid var(--line);
  padding:8px 0;
  margin:0 0 24px
}
.guide-topics a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 12px;
  border-radius:6px;
  font-size:14px;
  font-weight:700;
  text-decoration:none
}
.guide-topics a:hover {
  background:#e8eff2
}
.guide-topics a[aria-current="page"] {
  background:var(--ink);
  color:#fff
}
.guide-feature {
  display:grid;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#e8eff2
}
.guide-feature-copy {
  align-self:center;
  padding:clamp(20px,4vw,48px)
}
.guide-feature h2 {
  font-size:clamp(26px,3.2vw,44px);
  margin-bottom:12px
}
.guide-feature-copy p:not(.eyebrow) {
  max-width:48ch;
  color:var(--muted)
}
.guide-feature-cover {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3 / 2;
  object-fit:cover;
  border-radius:0 0 var(--radius) var(--radius)
}
.guide-feature-pair {
  align-self:center;
  padding:clamp(12px,3vw,32px)
}
.guide-feature-pair .comparison-photos {
  margin:0
}
.guide-feature-pair .comparison-photos img {
  aspect-ratio:4 / 3;
  height:auto
}
.guide-feature-pair figcaption {
  text-align:center
}
.guide-feature-pair p {
  font-size:13px;
  color:var(--muted);
  margin:8px 0 0
}
.guide-collection {
  margin-top:clamp(28px,5vw,60px)
}
.guide-collection .card-copy {
  display:flex;
  flex-direction:column;
  flex:1
}
.guide-collection .bird-card>a {
  display:flex;
  flex-direction:column
}
.guide-collection .text-link {
  margin-top:auto
}
@media (min-width:701px) {
  .guide-feature {
    grid-template-columns:minmax(0,5fr) minmax(0,7fr)
  }
  .guide-feature-cover {
    height:100%;
    border-radius:0 var(--radius) var(--radius) 0
  }
}

.category-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px
}
.category-grid>a {
  padding:26px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  text-decoration:none;
  background:white
}
.category-grid h2,.category-grid h3 {
  font-size:22px
}
.category-grid p {
  color:var(--muted);
  font-size:15px;
  margin:0
}
/* Homepage reading paths use distinct densities without changing shared cards. */
.home-section {
  margin-top:clamp(36px, 5vw, 64px)
}
.home-section .section-heading {
  flex-wrap:wrap;
  gap:6px 20px
}
.home-species .card-copy {
  padding:18px 20px
}
.home-comparisons {
  padding:clamp(18px, 3vw, 32px);
  background:#eaf0f4;
  border-radius:var(--radius)
}
.home-comparisons .category-grid>a {
  padding:20px
}
.home-find {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 24px;
  padding-bottom:24px;
  border-bottom:1px solid var(--line)
}
.home-find h2 {
  margin-bottom:6px
}
.home-find p,
.comparison-note {
  color:var(--muted)
}
.home-find p {
  margin:0
}
.habitat-links {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.comparison-card {
  display:flex;
  flex-direction:column;
  gap:12px
}
.comparison-card h3 {
  margin:0
}
.comparison-card .text-link {
  margin-top:auto
}
.comparison-photos {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px
}
.comparison-photos figure {
  margin:0
}
.comparison-photos img {
  width:100%;
  height:clamp(76px, 11vw, 144px);
  object-fit:contain;
  background:#eaf0f4;
  border-radius:6px
}
.comparison-photos figcaption {
  margin-top:6px;
  color:var(--ink);
  font-size:14px;
  line-height:1.3
}
.first-walk {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap:16px 28px;
  padding-inline-start:1.6em
}
.first-walk li {
  padding:14px 8px 14px 0;
  border-top:1px solid var(--line)
}
.first-walk li::marker {
  color:var(--accent);
  font-weight:700
}
.first-walk h3 {
  margin:0 0 8px
}
.first-walk p {
  color:var(--muted);
  margin-bottom:8px
}
.first-walk a {
  font-weight:600
}
.first-walk-action {
  margin:14px 0 28px
}
.home-starter {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 28px
}
.home-starter>a,
.home-topics>a {
  padding:16px 0;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  background:transparent
}
.home-starter h3,
.home-topics h3 {
  margin-bottom:6px;
  font-size:20px
}
.home-topics {
  grid-template-columns:repeat(auto-fit,minmax(min(100%, 175px),1fr));
  gap:0 20px
}
.home-featured .card-copy {
  padding:18px 20px
}
#record-sightings h2 {
  margin-bottom:8px
}
#record-sightings p {
  margin-bottom:0
}
.note-panel {
  background:#eaf0f4;
  padding:32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:36px;
  border-radius:var(--radius)
}
.note-panel p {
  max-width:700px
}
.note-panel .button {
  flex-shrink:0
}
.filters {
  padding:25px;
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  margin-bottom:24px
}
.filters>label {
  max-width:540px
}
.choices {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.choices label {
  margin:0;
  cursor:pointer
}
.choices input {
  position:absolute;
  opacity:0;
  width:1px;
  height:1px
}
.choices span {
  display:block;
  border:1px solid #9dafbb;
  padding:7px 14px;
  border-radius:5px;
  font-size:14px
}
.choices input:checked+span {
  background:var(--ink);
  color:white;
  border-color:var(--ink)
}
.choices input:focus-visible+span {
  outline:3px solid #af6422;
  outline-offset:3px
}
fieldset {
  border:0;
  padding:0;
  margin:20px 0
}
legend {
  font-size:14px;
  font-weight:600;
  margin-bottom:9px
}
label {
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:18px
}
input:not([type=radio]):not([type=file]),textarea {
  display:block;
  width:100%;
  padding:12px;
  margin-top:7px;
  background:white;
  border:1px solid #8ea2af;
  border-radius:5px;
  color:var(--ink)
}
textarea {
  resize:vertical
}
input:invalid:not(:placeholder-shown):focus,textarea:invalid:focus {
  border-color:#a13a26
}
.file-button input {
  max-width:210px;
  font-size:12px
}
.file-button {
  display:block;
  font-size:14px;
  margin:0
}
.notice {
  padding:18px 20px;
  background:#edf2f5;
  border-left:3px solid #7395a9;
  font-size:14px;
  margin:28px 0
}
.field-case {
  font-size:inherit
}
.field-case summary {
  cursor:pointer;
  font-weight:700;
  padding-block:6px
}
.field-case p {
  margin:12px 0 0
}
.detail-layout {
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:48px
}
.detail-layout figure {
  margin:0
}
.detail-layout figure img {
  width:100%;
  max-height:600px;
  object-fit:contain;
  background:#eaf0f4;
  border-radius:var(--radius)
}
figcaption,.source {
  font-size:13px;
  color:var(--muted);
  margin-top:14px
}
dl {
  display:grid;
  grid-template-columns:130px 1fr;
  gap:10px 20px;
  margin:28px 0
}
dt {
  font-weight:700
}
dd {
  margin:0
}
.workspace {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px
}
.workspace section {
  margin:0
}
.panel {
  padding:28px;
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius)
}
.bird-detail-extra {
  margin-top:36px
}
.bird-detail-extra li + li {
  margin-top:8px
}
.bird-plumage {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap:20px
}
.bird-plumage figure {
  margin:0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white
}
.bird-plumage img {
  width:100%;
  height:clamp(180px, 28vw, 330px);
  object-fit:contain;
  border-radius:6px;
  background:#eaf0f4
}
.bird-plumage figcaption {
  margin-top:10px
}
.bird-plumage p,
#sighting-filter-status {
  margin:6px 0
}
.sighting-filters {
  padding:16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white
}
.sighting-dates {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap:0 12px
}
.sighting-dates input {
  min-width:0
}
#sightings article {
  padding:24px 0;
  border-bottom:1px solid var(--line);
  overflow-wrap:anywhere
}
#sightings article button {
  margin:0 10px 0 0
}
#sightings article h3 {
  margin-bottom:8px
}
#sightings article p {
  white-space:pre-wrap
}
.prose {
  max-width:760px;
  font-size:18px
}
.prose h2 {
  font-size:27px;
  margin-top:38px
}
.email {
  font-size:clamp(16px,2vw,24px);
  font-weight:700;
  overflow-wrap:anywhere
}
.guide-row {
  display:block;
  padding:24px 0;
  border-bottom:1px solid var(--line)
}
.guide-row h2 {
  font-size:24px
}
.credit {
  padding:22px 0;
  border-bottom:1px solid var(--line);
  overflow-wrap:anywhere
}
.credit h2 {
  font-size:21px
}
.credit p {
  font-size:14px
}
footer {
  border-top:1px solid var(--line);
  max-width:1280px;
  margin:auto;
  padding:40px 32px;
  display:flex;
  gap:30px;
  justify-content:space-between;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--muted)
}
.footer-brand {
  font-size:18px;
  font-weight:700;
  text-decoration:none;
  color:var(--ink)
}
footer nav {
  gap:18px;
  flex-wrap:wrap
}
dialog {
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  max-width:min(450px,90vw);
  color:var(--ink)
}
dialog::backdrop {
  background:#18344780
}
dialog h2 {
  font-size:26px
}
* {
  scrollbar-color:#879eac #edf2f5;
  scrollbar-width:thin
}
/* Complete silhouettes are essential identification information in index cards. */
.breadcrumb {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:4px 8px;
  font-size:13px;
  color:var(--muted);
  margin-bottom:28px
}
.breadcrumb a {
  padding:4px 0;
  font-size:inherit;
  text-decoration:underline
}
.prose a {
  overflow-wrap:anywhere
}
.file-button {
  position:relative;
  overflow:hidden
}
.file-button input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer
}
.file-button:focus-within {
  outline:3px solid #af6422;
  outline-offset:4px
}
.bird-card img {
  object-fit:contain;
  background:#eaf0f4
}
.article-cover {
  max-width:760px;
  margin:0 0 32px
}
.article-cover img {
  width:100%;
  max-height:420px;
  object-fit:contain;
  background:#eaf0f4;
  border-radius:var(--radius)
}
:root {
  font-family:'Source Sans 3',Arial,sans-serif
}
.prose {
  line-height:1.8
}
.prose table {
  display:block;
  max-width:100%;
  overflow:auto;
  border-collapse:collapse;
  font-size:16px;
  margin:28px 0
}
.prose th,.prose td {
  padding:12px 16px;
  text-align:left;
  border:1px solid var(--line);
  min-width:180px
}
.prose th {
  background:#eaf0f4
}
.prose li {
  margin-bottom:10px
}
@media(max-width:1000px) {
  .grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .category-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .home-topics {
    grid-template-columns:repeat(auto-fit,minmax(min(100%, 175px),1fr))
  }
  .note-panel {
    display:block
  }
  #record-sightings .button {
    margin-top:16px
  }
  .detail-layout {
    gap:28px
  }
  .workspace {
    gap:28px
  }
}
@media(max-width:700px) {
  .header-inner {
    padding:14px 20px
  }
  .header-inner>nav {
    display:none
  }
  .mobile-nav {
    display:block
  }
  .mobile-nav summary {
    cursor:pointer;
    min-height:44px;
    padding:10px;
    font-size:14px;
    font-weight:700
  }
  .mobile-nav nav {
    position:absolute;
    left:0;
    right:0;
    top:100%;
    /* Keep the last destination reachable in a short landscape viewport. */
    max-height:calc(100vh - 76px);
    max-height:calc(100dvh - 76px);
    overflow-y:auto;
    overscroll-behavior:contain;
    display:flex;
    flex-direction:column;
    gap:0;
    padding:12px 22px;
    background:white;
    border-bottom:1px solid var(--line)
  }
  .mobile-nav nav a {
    padding:12px
  }
  main {
    padding:30px 20px 55px
  }
  .home-lead,.detail-layout,.workspace {
    grid-template-columns:1fr
  }
  .lead-photo {
    min-height:0;
    height:clamp(180px, 64vw - 24px, 280px)
  }
  .grid {
    gap:16px
  }
  .bird-card img {
    height:180px
  }
  .card-copy {
    padding:18px
  }
  .bird-card h2,.bird-card h3 {
    font-size:20px
  }
  .card-copy .eyebrow {
    font-size:9px
  }
  .section-heading {
    align-items:start
  }
  .section-heading h2 {
    font-size:25px
  }
  .note-panel {
    padding:24px
  }
  .prose {
    font-size:17px
  }
  .filters {
    padding:18px
  }
  footer {
    padding:30px 20px
  }
  footer nav {
    gap:16px
  }
  .workspace {
    gap:32px
  }
  .detail-layout figure img {
    max-height:430px
  }
}
@media(max-width:420px) {
  .grid,.category-grid {
    grid-template-columns:1fr
  }
  .bird-card img {
    height:230px
  }
  /* Keep the comparison section within easy reach on narrow phones. */
  .home-species .bird-card>a {
    display:grid;
    grid-template-columns:minmax(88px, 30%) minmax(0, 1fr)
  }
  .home-species .bird-card img {
    align-self:center;
    height:112px;
    border-radius:0
  }
  .home-species .card-copy {
    padding:12px 14px
  }
  .home-species .card-copy p {
    margin-bottom:6px
  }
  .brand {
    font-size:16px
  }
  .brand img {
    width:34px;
    height:34px
  }
  .brand small {
    font-size:9px
  }
  .page-heading {
    margin-bottom:26px
  }
  h2 {
    font-size:27px
  }
  dl {
    grid-template-columns:1fr;
    gap:4px
  }
  dd {
    margin-bottom:12px
  }
  .actions .button {
    width:100%
  }
}
@media(prefers-reduced-motion:no-preference) {
  .bird-card {
    transition:border-color .16s ease
  }
  .mobile-nav[open] nav {
    animation:menu-in .16s ease-out
  }
  @keyframes menu-in {
    from {
      opacity:0;
      transform:translateY(-6px)
    }
    to {
      opacity:1;
      transform:none
    }
  }
}
