:root {
  --canvas: #f6f1e7;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #1e241f;
  --muted: #5d665e;
  --rule: #d8cfbf;
  --rule-strong: #b7ab99;
  --brand: #b85f16;
  --brand-dark: #7d3d0b;
  --safe: #24633e;
  --safe-bg: #e7f2e9;
  --conditional: #7a4b10;
  --conditional-bg: #fbefd9;
  --avoid: #8a2929;
  --avoid-bg: #fae8e5;
  --unknown: #45505c;
  --unknown-bg: #edf0f2;
  --focus: #174f8a;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 280px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

::selection {
  background: #ecd2b7;
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(183, 171, 153, 0.8);
  background: var(--canvas);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  transform-origin: 32px 45px;
}

.brand-mark__body {
  fill: var(--surface);
}

.brand-mark__comb {
  fill: #c8493b;
  stroke: #8a2929;
}

.brand-mark__beak {
  fill: #e3a02c;
  stroke: var(--ink);
}

body.is-search-active .brand-mark {
  transform: rotate(4deg) translateX(2px);
}

.brand > span {
  display: grid;
  line-height: 1.02;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--brand);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
}

.header-inner nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-inner nav a {
  display: inline-flex;
  min-height: 44px;
  padding: 0 14px;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.header-inner nav a:hover {
  border-bottom-color: var(--brand);
  color: var(--ink);
}

main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.lookup {
  padding: clamp(44px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
}

.lookup__hero {
  display: grid;
}

.lookup__intro {
  max-width: 870px;
}

.lookup-index {
  display: none;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lookup h1 {
  max-width: 920px;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lookup__lede {
  max-width: 720px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.5;
}

.trust-line {
  display: flex;
  margin-bottom: 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.trust-line span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--brand-dark);
}

.lookup-index__heading {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-strong);
}

.lookup-index__heading .eyebrow {
  margin-bottom: 4px;
}

.lookup-index__heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.lookup-index__count {
  display: grid;
  margin: 0;
  padding: 18px 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.lookup-index__count strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
}

.lookup-index__states p {
  display: grid;
  margin: 0;
  padding: 9px 0;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}

.lookup-index__states strong {
  line-height: 1.3;
}

.lookup-index__latest {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.lookup-index__latest span {
  color: var(--ink);
}

.search-workbench {
  position: relative;
  z-index: 10;
  margin-top: 32px;
  padding: clamp(20px, 3.5vw, 32px);
  border: 1px solid var(--rule-strong);
  border-left: 5px solid var(--brand);
  background: var(--surface);
}

.search-form > label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.combobox {
  position: relative;
}

.combobox input {
  width: 100%;
  min-height: 58px;
  padding: 0 58px 0 18px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  appearance: none;
}

.search-clear {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 7px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.search-clear:hover {
  color: var(--ink);
}

.search-clear[hidden] {
  display: none;
}

.combobox input::placeholder {
  color: #626a64;
  opacity: 1;
}

.combobox input:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(23, 79, 138, 0.22);
  outline-offset: 1px;
}

.search-button {
  display: inline-flex;
  min-width: 160px;
  min-height: 58px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.search-button:hover {
  background: var(--brand-dark);
}

.search-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.search-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 360px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 2px solid var(--ink);
  background: var(--surface-strong);
  list-style: none;
}

.suggestions[hidden] {
  display: none;
}

.suggestions li {
  margin: 0;
}

.suggestion-button {
  display: grid;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.suggestion-button > span:first-child {
  min-width: 0;
}

.suggestion-button:hover,
.suggestion-button[aria-selected="true"] {
  background: #eee5d6;
}

.suggestion-button strong {
  display: block;
}

.suggestion-button small {
  display: block;
  color: var(--muted);
}

.suggestion-verdict {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.suggestion-verdict[data-verdict="safe"] {
  color: var(--safe);
}

.suggestion-verdict[data-verdict="conditional"] {
  color: var(--conditional);
}

.suggestion-verdict[data-verdict="avoid"] {
  color: var(--avoid);
}

.suggestion-verdict[data-verdict="unknown"] {
  color: var(--unknown);
}

.quick-searches,
.recent-searches {
  display: flex;
  margin-top: 18px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.quick-searches > span,
.recent-searches > span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-searches a,
.recent-searches a {
  display: inline-flex;
  min-height: 44px;
  padding: 0 14px;
  align-items: center;
  border: 1px solid var(--rule-strong);
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.quick-searches a:hover,
.recent-searches a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.recent-searches > div {
  display: contents;
}

.recent-clear {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.recent-searches[hidden] {
  display: none;
}

.data-status {
  min-height: 26px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.data-status:empty {
  min-height: 0;
  margin: 0;
}

.result-region {
  display: block;
  margin-top: 28px;
}

.result-region.has-result > .result-idle {
  display: none;
}

.result-idle {
  display: grid;
  padding: clamp(24px, 4vw, 40px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}

.result-idle h2 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.result-idle p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
}

.result-idle__key {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  list-style: none;
}

.result-idle__key li {
  display: grid;
  min-width: 0;
  padding: 12px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.result-idle__key strong,
.result-idle__key small {
  display: block;
}

.result-idle__key strong {
  font-size: 13px;
  line-height: 1.3;
}

.result-idle__key small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.result-sheet {
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}

.result-sheet.is-entering {
  animation: result-enter 180ms ease-out both;
}

@keyframes result-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verdict-bar {
  display: grid;
  padding: 18px clamp(20px, 4vw, 36px);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid currentColor;
}

.result-sheet[data-verdict="safe"] .verdict-bar {
  background: var(--safe-bg);
  color: var(--safe);
}

.result-sheet[data-verdict="conditional"] .verdict-bar {
  background: var(--conditional-bg);
  color: var(--conditional);
}

.result-sheet[data-verdict="avoid"] .verdict-bar {
  background: var(--avoid-bg);
  color: var(--avoid);
}

.result-sheet[data-verdict="unknown"] .verdict-bar {
  background: var(--unknown-bg);
  color: var(--unknown);
}

.verdict-symbol {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.verdict-bar p {
  margin: 0;
}

.verdict-bar strong {
  display: block;
  font-size: 17px;
}

.verdict-bar small {
  display: block;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.82;
  text-transform: uppercase;
}

.share-button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid currentColor;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.share-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.result-body {
  padding: clamp(24px, 5vw, 48px);
}

.result-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
}

.result-heading h2 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.result-summary {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.55;
}

.review-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.result-index {
  display: grid;
  min-width: 88px;
  padding: 10px 12px;
  place-items: center;
  border-top: 3px solid var(--brand);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-index strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.condition-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.condition-block h3,
.answer-grid h3,
.already-ate h3,
.sources-panel summary {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.condition-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.condition-button {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  background: var(--surface-strong);
  color: var(--ink);
  cursor: default;
  font-size: 14px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

button.condition-button {
  cursor: pointer;
}

.condition-button[aria-pressed="true"],
.condition-button[data-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.condition-note {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--unknown);
  background: var(--unknown-bg);
}

.condition-note[data-verdict="safe"] {
  border-left-color: var(--safe);
  background: var(--safe-bg);
}

.condition-note[data-verdict="conditional"] {
  border-left-color: var(--conditional);
  background: var(--conditional-bg);
}

.condition-note[data-verdict="avoid"] {
  border-left-color: var(--avoid);
  background: var(--avoid-bg);
}

.condition-note[data-verdict="unknown"] {
  border-left-color: var(--unknown);
  background: var(--unknown-bg);
}

.condition-note strong {
  display: block;
  margin-bottom: 3px;
}

.answer-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.answer-grid > div {
  padding: 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.answer-grid p,
.answer-grid ul {
  margin-bottom: 0;
  color: var(--muted);
}

.answer-grid ul {
  padding-left: 20px;
}

.answer-grid li + li {
  margin-top: 6px;
}

.answer-link {
  display: inline-flex;
  min-height: 44px;
  margin-top: 10px;
  align-items: center;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 800;
}

.already-ate {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 4px solid var(--conditional);
  background: var(--conditional-bg);
}

.already-ate p {
  margin-bottom: 0;
}

.sources-panel {
  margin-top: 22px;
  border-top: 1px solid var(--rule);
}

.sources-panel summary {
  min-height: 52px;
  padding: 16px 0;
  cursor: pointer;
  list-style-position: inside;
}

.sources-panel ol {
  margin: 0 0 8px;
  padding-left: 24px;
}

.sources-panel li + li {
  margin-top: 12px;
}

.sources-panel a {
  color: var(--brand-dark);
  font-weight: 750;
}

.sources-panel small {
  display: block;
  color: var(--muted);
}

.related-foods {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.related-foods > strong {
  margin-right: 4px;
  font-size: 13px;
}

.related-foods a {
  display: inline-flex;
  min-height: 44px;
  padding: 0 13px;
  align-items: center;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.no-result {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--rule-strong);
  border-left: 5px solid var(--unknown);
  background: var(--unknown-bg);
}

.no-result h2 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
}

.no-result p {
  max-width: 720px;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 850;
}

.noscript-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--rule);
}

.section-rule {
  display: grid;
  padding: clamp(56px, 8vw, 96px) 0;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(36px, 7vw, 92px);
  border-top: 1px solid var(--rule-strong);
}

.section-rule h2 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.baseline__copy > p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
}

.plain-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-checks li {
  display: grid;
  padding: 16px 0;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--rule);
}

.plain-checks li:last-child {
  border-bottom: 1px solid var(--rule);
}

.plain-checks span {
  color: var(--brand-dark);
  font-family: var(--serif);
  font-weight: 700;
}

.state-key {
  border-top: 1px solid var(--rule-strong);
}

.state-key p {
  display: grid;
  margin: 0;
  padding: 16px 0;
  grid-template-columns: 36px minmax(120px, 0.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}

.state-key strong {
  color: var(--ink);
}

.state-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 900;
}

.state-icon--safe {
  background: var(--safe-bg);
  color: var(--safe);
}

.state-icon--conditional {
  background: var(--conditional-bg);
  color: var(--conditional);
}

.state-icon--avoid {
  background: var(--avoid-bg);
  color: var(--avoid);
}

.state-icon--unknown {
  background: var(--unknown-bg);
  color: var(--unknown);
}

.popular {
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.2fr);
}

.popular > div:first-child p:last-child {
  color: var(--muted);
}

.food-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}

.food-links a {
  display: flex;
  min-height: 54px;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.food-links a:nth-child(2n) {
  border-right: 0;
}

.food-links a:hover {
  background: var(--surface);
  color: var(--brand-dark);
}

.food-links small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.popular > .text-link {
  grid-column: 2;
  justify-self: start;
}

.method-preview ol {
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.method-preview li {
  display: grid;
  padding: 22px 0;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--rule);
}

.method-preview li > span {
  color: var(--brand-dark);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
}

.method-preview strong {
  display: block;
  margin-bottom: 4px;
}

.method-preview p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq > div:last-child {
  border-top: 1px solid var(--rule-strong);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  min-height: 64px;
  padding: 18px 40px 18px 0;
  cursor: pointer;
  font-weight: 800;
}

.faq details p {
  max-width: 720px;
  padding: 0 24px 20px 0;
  color: var(--muted);
}

.region-note {
  margin-bottom: clamp(56px, 8vw, 96px);
  padding: 18px 22px;
  border: 1px solid var(--rule-strong);
  border-left: 5px solid var(--brand);
  background: #efe5d4;
}

.region-note strong {
  margin-right: 6px;
}

.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: #f8f4eb;
}

.footer-inner {
  display: grid;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 48px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
}

.brand--footer {
  color: #fff;
}

.footer-inner > div > p {
  max-width: 560px;
  margin: 14px 0 0;
  color: #bdc4bd;
}

.footer-inner nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  align-content: start;
  gap: 6px 24px;
}

.footer-inner nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #f8f4eb;
  font-size: 14px;
}

.footer-bottom {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid #3b453d;
  color: #9fa8a0;
  font-size: 13px;
}

.legal-dialog {
  width: min(calc(100% - 32px), 760px);
  max-height: min(84vh, 820px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
}

.legal-dialog::backdrop {
  background: rgba(20, 25, 21, 0.72);
}

.legal-dialog__header {
  display: flex;
  padding: 20px 24px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--canvas);
}

.legal-dialog__header .eyebrow {
  margin-bottom: 4px;
}

.legal-dialog__header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
}

.icon-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--ink);
}

.icon-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.legal-dialog__body {
  max-height: calc(min(84vh, 820px) - 94px);
  padding: 24px 24px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-dialog__body::after {
  display: block;
  height: 1px;
  margin-top: 32px;
  background: var(--rule);
  content: "";
}

.prose {
  color: var(--ink);
}

.prose h2 {
  margin: 36px 0 10px;
  font-family: var(--serif);
  font-size: 30px;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.prose p,
.prose li {
  max-width: 76ch;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 16px;
}

.prose a {
  color: var(--brand-dark);
  font-weight: 700;
}

.legal-updated {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.info-main {
  min-height: calc(100vh - 330px);
  padding: 48px 0 88px;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  margin-bottom: 36px;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 800;
}

.info-article {
  max-width: 820px;
  margin: 0 auto;
}

.info-article h1 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 70px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.info-deck {
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 20px;
}

.source-register {
  margin-top: 32px;
  border-top: 1px solid var(--rule-strong);
}

.source-register li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.treat-calculator {
  margin: 32px 0;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--rule-strong);
  border-left: 5px solid var(--brand);
  background: var(--surface);
}

.treat-calculator fieldset {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  border: 0;
}

.treat-calculator legend {
  width: 100%;
  margin-bottom: 18px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}

.treat-calculator label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.treat-calculator input,
.treat-calculator select {
  width: 100%;
  min-height: 52px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 16px;
}

.treat-calculator input[aria-invalid="true"] {
  border-color: var(--avoid);
}

.treat-calculator fieldset p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.treat-calculator > button {
  min-height: 48px;
  margin: 22px 8px 0 0;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.treat-calculator > button[type="reset"] {
  background: var(--surface);
  color: var(--ink);
}

.treat-calculator [data-calculator-error] {
  margin: 18px 0 0;
  color: var(--avoid);
  font-weight: 750;
}

.treat-calculator output {
  display: grid;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-left: 5px solid var(--safe);
  background: var(--safe-bg);
}

.treat-calculator output[hidden] {
  display: none;
}

.treat-calculator output strong {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1;
}

.treat-calculator output span {
  margin-top: 8px;
  font-weight: 800;
}

.treat-calculator output small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

.directory-tools {
  margin: 32px 0 22px;
  padding: 20px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}

.directory-tools > label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

.directory-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.directory-filter input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--surface-strong);
  color: var(--ink);
  appearance: none;
}

.directory-filter button {
  min-width: 72px;
  min-height: 50px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-left: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.directory-filter button[hidden] {
  display: none;
}

.directory-verdicts {
  display: flex;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-verdicts button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.directory-verdicts button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.directory-status,
[data-directory-status] {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.directory-letter-nav {
  display: flex;
  margin: 0 0 24px;
  flex-wrap: wrap;
  gap: 6px;
}

.directory-letter-nav a {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  font-weight: 800;
  text-decoration: none;
}

.food-directory {
  display: grid;
  margin: 36px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}

.food-directory.is-enhanced,
.food-directory:has(> [data-directory-group]) {
  display: block;
  border: 0;
}

.directory-group {
  margin: 0 0 32px;
  scroll-margin-top: 152px;
}

.directory-group[hidden] {
  display: none;
}

.directory-group__heading,
.prose .directory-group__heading {
  display: flex;
  margin: 0;
  padding: 0 0 8px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--serif);
  font-size: 30px;
}

.directory-group__heading small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 750;
}

.directory-group__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--rule);
}

.food-directory a {
  display: grid;
  min-height: 74px;
  padding: 12px 16px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.food-directory a:hover {
  background: var(--surface);
}

.food-directory a[hidden] {
  display: none;
}

.food-directory strong {
  display: block;
}

.food-directory small {
  color: var(--muted);
}

.status-word {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.status-word[data-verdict="safe"] {
  color: var(--safe);
}

.status-word[data-verdict="conditional"] {
  color: var(--conditional);
}

.status-word[data-verdict="avoid"] {
  color: var(--avoid);
}

.status-word[data-verdict="unknown"] {
  color: var(--unknown);
}

.not-found {
  display: grid;
  min-height: calc(100vh - 330px);
  padding: 72px 0 96px;
  grid-template-columns: auto minmax(0, 680px);
  align-content: center;
  justify-content: center;
  gap: 36px;
}

.error-code {
  color: var(--brand);
  font-family: var(--serif);
  font-size: clamp(72px, 12vw, 150px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.not-found h1 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 62px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.not-found p {
  color: var(--muted);
  font-size: 18px;
}

@media (min-width: 761px) {
  .result-region {
    scroll-margin-top: 160px;
  }

  .search-workbench {
    position: sticky;
    top: 72px;
  }

  .search-workbench.is-compact {
    z-index: 25;
    padding: 10px 12px;
    border-left-width: 4px;
    background: var(--surface);
  }

  .search-workbench.is-compact .search-form > label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .search-workbench.is-compact .combobox input,
  .search-workbench.is-compact .search-button {
    min-height: 48px;
  }

  .search-workbench.is-compact .search-clear {
    top: 2px;
  }

  .search-workbench.is-compact .search-hint,
  .search-workbench.is-compact .quick-searches,
  .search-workbench.is-compact .recent-searches {
    display: none;
  }
}

@media (min-width: 1100px) {
  .lookup__hero {
    grid-template-columns: minmax(0, 1fr) 292px;
    align-items: start;
    gap: clamp(48px, 7vw, 92px);
  }

  .lookup-index {
    display: block;
    padding: 20px;
    border: 1px solid var(--rule-strong);
  }

  .decision-strip {
    padding-top: 48px;
    padding-bottom: 48px;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
  }

  .decision-strip .state-key {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-strip .state-key p {
    padding: 12px;
    grid-template-columns: 30px minmax(0, 1fr);
    align-content: start;
    border-right: 1px solid var(--rule);
    font-size: 13px;
  }

  .decision-strip .state-key strong {
    display: block;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 68px;
  }

  .header-inner {
    width: min(calc(100% - 24px), var(--max));
    min-height: 64px;
    gap: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 12px;
  }

  .brand small {
    font-size: 17px;
  }

  .header-inner nav a {
    padding: 0 6px;
    font-size: 12px;
  }

  main {
    width: min(calc(100% - 24px), var(--max));
  }

  .lookup {
    padding-top: 38px;
  }

  .lookup h1 {
    font-size: clamp(40px, 13.5vw, 62px);
  }

  .lookup__lede {
    font-size: 18px;
  }

  .search-workbench {
    margin-right: -4px;
    margin-left: -4px;
    padding: 18px 14px;
    border-left-width: 4px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-button {
    width: 100%;
  }

  .quick-searches a,
  .recent-searches a {
    min-height: 44px;
    padding: 0 11px;
  }

  .result-idle {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .verdict-bar {
    grid-template-columns: auto 1fr;
  }

  .share-button {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
  }

  .result-heading {
    grid-template-columns: 1fr;
  }

  .result-index {
    display: none;
  }

  .answer-grid {
    grid-template-columns: 1fr;
  }

  .section-rule {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .popular > .text-link {
    grid-column: 1;
  }

  .state-key p {
    grid-template-columns: 36px minmax(0, 1fr);
    font-size: 14px;
  }

  .state-key p strong {
    align-self: end;
  }

  .food-links {
    grid-template-columns: 1fr;
  }

  .food-links a {
    border-right: 0;
  }

  .footer-inner {
    width: min(calc(100% - 24px), var(--max));
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    width: min(calc(100% - 24px), var(--max));
  }

  .food-directory {
    grid-template-columns: 1fr;
  }

  .directory-group__links {
    grid-template-columns: 1fr;
  }

  .treat-calculator fieldset {
    grid-template-columns: 1fr;
  }

  .not-found {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 380px) {
  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand > span {
    display: none;
  }

  .header-inner nav a {
    padding: 0 6px;
  }

  .lookup h1 {
    font-size: 39px;
  }

  .trust-line {
    align-items: flex-start;
  }

  .quick-searches > span {
    flex-basis: 100%;
  }

  .suggestion-button {
    gap: 8px;
  }

  .suggestion-verdict {
    max-width: 88px;
    white-space: normal;
    text-align: right;
  }

  .result-body {
    padding: 20px 16px;
  }

  .condition-button {
    flex: 1 1 calc(50% - 8px);
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  html,
  body {
    background: #fff;
    color: #000;
    scroll-padding-top: 0;
  }

  body[data-route="food"] .site-header {
    position: static;
    border-bottom-color: #777;
    background: #fff;
  }

  body[data-route="food"] .header-inner,
  body[data-route="food"] main,
  body[data-route="food"] .footer-inner,
  body[data-route="food"] .footer-bottom {
    width: 100%;
  }

  body[data-route="food"] .header-inner nav,
  body[data-route="food"] .search-workbench,
  body[data-route="food"] .data-status,
  body[data-route="food"] .site-footer nav,
  body[data-route="food"] .footer-bottom,
  body[data-route="food"] .share-button {
    display: none !important;
  }

  body[data-route="food"] .lookup {
    padding: 24px 0;
  }

  body[data-route="food"] .lookup__hero {
    display: block;
  }

  body[data-route="food"] .lookup-index {
    display: none;
  }

  body[data-route="food"] .result-region {
    margin-top: 20px;
  }

  body[data-route="food"] .result-sheet,
  body[data-route="food"] .answer-grid,
  body[data-route="food"] .answer-grid > div {
    break-inside: avoid;
    border-color: #777;
  }

  body[data-route="food"] .result-sheet,
  body[data-route="food"] .verdict-bar,
  body[data-route="food"] .already-ate,
  body[data-route="food"] .condition-note {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body[data-route="food"] .result-body {
    padding: 24px;
  }

  body[data-route="food"] details.sources-panel,
  body[data-route="food"] details.sources-panel > * {
    display: block !important;
  }

  body[data-route="food"] details.sources-panel summary {
    list-style: none;
  }

  body[data-route="food"] details.sources-panel a[href^="http"]::after {
    color: #333;
    content: " (" attr(href) ")";
    font-size: 10pt;
    font-weight: 400;
    overflow-wrap: anywhere;
  }

  body[data-route="food"] .site-footer {
    margin-top: 28px;
    border-top-color: #777;
    background: #fff;
    color: #000;
  }

  body[data-route="food"] .brand--footer,
  body[data-route="food"] .footer-inner > div > p {
    color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
