/* Bird Feeders Lab: bluebird blue + rust orange */
:root {
  --blue: #1D4F91; --blue-dark: #153A6B; --orange: #E8833A; --orange-soft: #FCEFE4;
  --ink: #14202E; --ink-2: #273444; --muted: #52606F; --line: #DCE3EC; --tint: #E7EEF8;
  --bg: #F8FAFC; --white: #FFFFFF;
  --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.sr, .skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer; font-family: var(--body); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #D9742C; color: var(--ink); }
.btn-ghost { color: var(--ink); }
.btn-outline { border: 2px solid var(--blue); color: var(--blue); background: transparent; }
.btn-lg { font-size: 17px; padding: 15px 22px; border-radius: 12px; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo b { color: var(--blue); }
.logo-small { font-size: 18px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; flex: 1 1 360px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 4px 0; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.header-actions { display: flex; gap: 8px; align-items: center; }

/* hero */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 480px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.hero h1 { font-size: clamp(40px, 6vw, 66px); margin: 0; font-weight: 800; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 640px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-panel { flex: 1 1 340px; background: var(--ink); color: var(--white); border-radius: 20px; padding: 28px; }
.hero-panel a { color: #F5B587; font-weight: 600; }
.panel-title { margin: 0 0 12px; font-family: var(--display); font-size: 22px; font-weight: 700; }
.panel-list { list-style: none; margin: 0 0 18px; padding: 0; }
.panel-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.panel-list b { font-size: 16px; }
.panel-list span { font-size: 14px; color: #D3DCE8; }

/* sections + cards */
.section { padding-top: 56px; }
.section-title { font-size: 32px; margin: 0 0 18px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.hub-card, .card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .15s, transform .15s; }
.hub-card:hover, .card:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-1px); }
.hub-card strong { font-size: 19px; }
.hub-card span, .card span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.card strong { font-size: 17px; line-height: 1.3; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 40px; }
@media (max-width: 520px) { .split { grid-template-columns: 1fr; } }

/* tables */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; background: var(--tint); padding: 12px 14px; font-weight: 700; }
td { padding: 12px 14px; border-top: 1px solid #EEF2F7; vertical-align: top; }

/* breadcrumb + article */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }
.article-head h1 { font-size: clamp(34px, 5vw, 52px); margin: 14px 0 8px; font-weight: 800; }
.byline { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.answer { background: var(--white); border: 2px solid var(--blue); border-radius: var(--radius); padding: 18px 22px; font-size: 18px; max-width: 860px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 18px 0 0; }
.facts div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 700; font-size: 15.5px; }
.article-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 32px; padding-bottom: 64px; }
.toc { flex: 1 1 200px; max-width: 250px; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--blue); }
@media (max-width: 860px) { .toc { position: static; max-width: none; } }
.prose { flex: 999 1 560px; min-width: 0; max-width: 780px; }
.prose h2 { font-size: 30px; margin: 40px 0 12px; }
.prose h3 { font-size: 21px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 20px 0; padding: 16px 20px; background: var(--tint); border-radius: 12px; }
.prose blockquote p { margin: 0; }
.labnote { margin: 28px 0; background: var(--tint); border-radius: 14px; padding: 18px 22px; }
.labnote strong { color: var(--blue); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.labnote p { margin: 6px 0 0; }
.related { margin-top: 40px; }
.related h2 { font-size: 26px; }
.sources { font-size: 13.5px; color: var(--muted); margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
.sources a { color: var(--muted); }

/* hub */
.hub-head h1 { font-size: clamp(36px, 5vw, 56px); margin: 14px 0 6px; font-weight: 800; }
.finder { margin: 24px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.search input { width: 100%; max-width: 560px; font: inherit; font-size: 16px; padding: 14px 18px; border: 1px solid #C8D3E1; border-radius: 999px; background: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 14px; min-height: 44px; border-radius: 999px; border: 1.5px solid #C8D3E1; background: var(--white); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.hub-body { padding-bottom: 24px; }
.cluster h2 { font-size: 26px; margin: 36px 0 14px; }
.empty { color: var(--muted); }
.hub-faq { padding-top: 24px; max-width: 860px; }
.hub-faq h2 { font-size: 28px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { font-weight: 600; cursor: pointer; font-size: 17px; }

/* newsletter */
.nl { background: var(--ink); color: var(--white); border-radius: 22px; padding: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin: 56px 0; }
.nl h2 { color: var(--white); margin: 0 0 6px; font-size: 32px; }
.nl p { color: #D3DCE8; margin: 0; max-width: 560px; }
.nl > div { flex: 1 1 380px; }
.nl-compact { padding: 26px; margin: 40px 0; }
.nl-compact h2 { font-size: 24px; }
.nl-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.nl-form label span { display: block; font-size: 13px; color: #D3DCE8; margin-bottom: 4px; }
.nl-form input { font: inherit; padding: 12px 14px; border-radius: 10px; border: 0; min-width: 240px; }

/* footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-inner nav a { color: var(--ink-2); }
.fine { flex-basis: 100%; margin: 0; font-size: 13px; }

/* phones: keep the header out of the way */
@media (max-width: 700px) {
  .site-header { position: static; }
  .header-actions .btn-ghost { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl { padding: 24px; }
}
