:root {
  color-scheme: light;
  --background: #faf9f5;
  --paper: #ffffff;
  --ink: #243229;
  --muted: #566259;
  --line: #d9dfd7;
  --green: #2a543f;
  --green-dark: #1c3e2d;
  --pale-green: #edf4ec;
  --focus: #a95716;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font: 17px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--green); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: calc(100% - 44px); max-width: 1120px; margin: 0 auto; }
.skip-link { position: absolute; z-index: 20; left: 10px; top: -80px; padding: 12px; background: var(--green-dark); color: white; }
.skip-link:focus { top: 10px; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-content { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-id { text-decoration: none; color: var(--ink); font-size: 18px; font-weight: 750; display: flex; align-items: center; gap: 11px; letter-spacing: -.02em; }
.site-id .muted { font-weight: 450; }
.site-symbol { background: var(--green); color: white; width: 34px; height: 34px; border-radius: 4px; display: grid; place-items: center; font-size: 24px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-size: 14px; color: var(--ink); text-decoration: none; font-weight: 650; }
.nav-links a:hover { text-decoration: underline; }
.eyebrow { text-transform: uppercase; color: var(--green); font-weight: 750; font-size: 12px; letter-spacing: .12em; margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.16; margin: 0; letter-spacing: -.025em; }
h1 { font: 600 clamp(36px, 5vw, 60px)/1.14 Georgia, "Times New Roman", serif; max-width: 800px; }
h2 { font-size: clamp(22px, 2.6vw, 29px); }
h3 { font-size: 19px; }
p { margin-top: 0; }
.intro { padding-top: 62px; padding-bottom: 34px; }
.intro-copy { max-width: 740px; margin: 18px 0 0; font-size: 19px; color: var(--muted); }
.main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.primary-panel, .secondary-panel { background: var(--paper); border: 1px solid var(--line); padding: 28px; min-width: 0; }
.primary-panel { border-top: 4px solid var(--green); }
.secondary-panel { border-top: 4px solid #a28b67; }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
.section-heading p { font-size: 16px; margin: 7px 0 0; color: var(--muted); }
.step-num { padding: 8px; background: var(--pale-green); color: var(--green); font-size: 13px; font-weight: 800; min-width: 36px; text-align: center; }
.search-form label { display: block; margin-bottom: 9px; font-size: 15px; font-weight: 700; }
.search-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.search-actions input { min-width: 0; flex: 1 1 180px; width: 100%; }
input[type="search"] { border: 1px solid #9aada0; border-radius: 4px; background: white; min-height: 52px; font-size: 16px; padding: 11px 13px; }
input[type="search"]::placeholder { color: #6b766f; }
.btn { display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: 4px; font-weight: 700; min-height: 52px; padding: 11px 19px; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: white; color: var(--green); border-color: var(--green); }
.text-action { padding: 7px 0; border: 0; background: transparent; color: var(--green); font-size: 15px; font-weight: 750; display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 3px; }
#scan-button { margin-top: 18px; }
.small-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 7px 0 0; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.category-grid button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 3px; min-height: 53px; padding: 10px 13px; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; }
.category-grid button:hover { background: var(--pale-green); border-color: #98b6a0; }
.category-grid button span { color: var(--green); font-size: 23px; line-height: 1; }
.results-section { padding: 45px 0 0; }
.results-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.results-topline .eyebrow { margin-bottom: 6px; }
.filter-toggle { display: flex; align-items: center; gap: 12px; margin: 19px 0; font-size: 16px; font-weight: 650; }
.filter-toggle input { width: 20px; height: 20px; accent-color: var(--green); }
#results-message { padding: 16px 0; color: var(--muted); }
.product-list { display: grid; gap: 12px; margin: 9px 0; }
.product-card { background: white; border: 1px solid var(--line); padding: 22px; }
.product-card-header { display: grid; align-items: start; gap: 18px; }
.product-card-header.has-photo { grid-template-columns: 112px minmax(0,1fr); }
.product-photo { width: 112px; height: 112px; object-fit: contain; background: white; }
.product-card h3 { margin-bottom: 5px; }
.product-meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.product-explanation { margin: 18px 0 8px; max-width: 80ch; font-size: 17px; }
.card-footer { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 15px; }
.card-link { background: none; border: 0; padding: 8px 0; min-height: 44px; font-size: 16px; font-weight: 750; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.product-detail { background: #f8faf6; margin-top: 14px; border: 1px solid var(--line); padding: 16px; }
.product-detail h4 { font-size: 17px; margin: 2px 0 8px; }
.source-list { margin: 8px 0 0; padding-left: 22px; }
.source-list li { padding-bottom: 5px; }
.offer-list { padding: 0; list-style: none; }
.offer-list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-badge { display: inline-flex; align-items: center; font-size: 14px; font-weight: 800; padding: 5px 10px; border-radius: 3px; white-space: nowrap; }
.status-verified { background: #e6f3e8; color: #14572a; }
.status-unsafe { background: #ffebeb; color: #912a23; }
.status-investigating { background: #fff0d6; color: #815007; }
.status-unverified { background: #edf0f1; color: #3b505a; }
.standards { padding-top: 65px; padding-bottom: 70px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px 65px; }
.standards > div:first-child p:last-child { margin-top: 15px; color: var(--muted); }
.status-key { background: #fff; border: 1px solid var(--line); padding: 20px; display: grid; gap: 12px; }
.status-key-item { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.status-key-item > span:last-child { color: var(--muted); max-width: 210px; }
.safety-note { grid-column: 1 / -1; padding: 17px 19px; background: #f0efe9; border-left: 3px solid #8d8168; color: #3d4039; font-size: 14px; margin-bottom: 0; }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-content { display: flex; justify-content: space-between; gap: 15px; padding: 23px 0; font-size: 13px; color: var(--muted); }
dialog { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 5px; padding: 0; max-width: min(520px, calc(100vw - 28px)); width: 100%; }
dialog::backdrop { background: #17281fcc; }
.dialog-content { padding: 25px; }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dialog-content p { margin: 13px 0; color: var(--muted); }
.close-button { border: 0; background: transparent; font-size: 30px; line-height: 1; color: var(--ink); min-width: 44px; min-height: 44px; }
#scanner-video { display: block; background: #19231c; width: 100%; max-height: 330px; object-fit: cover; border-radius: 4px; margin: 12px 0; }
@media (max-width: 800px) {
  .nav-links { display: none; }
  .intro { padding-top: 34px; padding-bottom: 25px; }
  .main-grid, .standards { grid-template-columns: 1fr; }
  .standards { gap: 22px; padding-top: 45px; padding-bottom: 40px; }
  .primary-panel, .secondary-panel { padding: 23px; }
  .footer-content { flex-direction: column; }
}
@media (max-width: 430px) {
  .wrap { width: calc(100% - 28px); }
  .site-id { font-size: 16px; }
  .site-id .muted { display: none; }
  .intro-copy { font-size: 17px; }
  .search-actions { display: grid; grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-grid button { padding: 9px; font-size: 14px; }
  .product-card-header.has-photo { grid-template-columns: 80px minmax(0,1fr); gap: 12px; }
  .product-photo { width: 80px; height: 80px; }
  .status-key-item { justify-content: flex-start; }
}


@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.standards-page { max-width: 48rem; padding-top: 3rem; padding-bottom: 3rem; } .standards-page section { margin: 2.5rem 0; } .standards-page p { line-height: 1.7; } #load-more { margin-top: 1.5rem; }

/* Head-on bird mark, drawn with CSS so it stays crisp at any scale. */
.bird-mark { position: relative; flex: 0 0 34px; background: transparent; }
.bird-face { position: relative; display: block; width: 32px; height: 32px; border: 1.5px solid var(--green); border-radius: 50%; background: var(--green); overflow: hidden; }
.bird-face::before { content: ""; position: absolute; inset: 12px 0 0; background: white; border-radius: 50% 50% 45% 45%; }
.bird-eye { position: absolute; top: 8px; width: 14px; height: 16px; border-radius: 50%; background: white; }
.bird-eye-left { left: 1px; }
.bird-eye-right { right: 1px; }
.bird-eye::after { content: ""; position: absolute; top: 5px; left: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.bird-beak { position: absolute; top: 18px; left: 10px; width: 10px; height: 10px; background: var(--green); clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); }
