@charset "UTF-8";
/* ==========================================================================
   DogSafeFoodList.xyz — Global stylesheet
   Design system, layout, components, responsive rules.
   No webfonts, no frameworks, no images: system fonts + inline SVG + CSS shapes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surface & ink */
  --cream: #fbf8f1;
  --cream-deep: #f5f0e4;
  --paper: #ffffff;
  --ink: #16241c;
  --body: #3d4a42;
  --muted: #67746b;
  --line: #e6dfd2;
  --line-soft: #efe9dd;

  /* Brand */
  --green-900: #0f3d2a;
  --green-800: #12513a;
  --green-700: #17694a;
  --green-600: #1d7a56;
  --green-100: #d9e9e0;
  --green-50: #edf5f0;

  /* Verdict */
  --safe: #15803d;
  --safe-bg: #e9f5ec;
  --safe-line: #bfdcc7;
  --warn: #a35a09;
  --warn-bg: #fdf3e3;
  --warn-line: #ecd3a8;
  --stop: #a32b22;
  --stop-bg: #fbedeb;
  --stop-line: #eec4bf;

  /* Geometry */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(22, 36, 28, .04), 0 2px 8px rgba(22, 36, 28, .04);
  --shadow-md: 0 2px 4px rgba(22, 36, 28, .05), 0 12px 28px -12px rgba(22, 36, 28, .16);
  --shadow-lg: 0 18px 60px -24px rgba(22, 36, 28, .28);
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --header-h: 68px;

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Songti SC", "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
svg { display: block; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.012em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.25rem); }
h3 { font-size: clamp(1.18rem, 2.1vw, 1.42rem); }
h4 { font-size: 1.06rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 650; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
small { font-size: .86rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--green-100); color: var(--green-900); }

:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line-soft); }
.section--tint { background: linear-gradient(180deg, var(--green-50), var(--cream)); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green-600);
  border-radius: 2px;
}
.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  color: var(--body);
  max-width: 62ch;
}
.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.section-head p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 241, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
  padding-block: 8px;
}
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand__tag {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: .92rem;
  font-weight: 550;
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.nav__link:hover { background: var(--green-50); color: var(--green-900); }
.nav__link[aria-current="page"] {
  color: var(--green-900);
  background: var(--green-50);
  box-shadow: inset 0 0 0 1px var(--green-100);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--green-800);
  color: #fff;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}
.header-cta:hover { background: var(--green-900); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: var(--cream);
  padding: 10px 0 20px;
}
.mobile-panel.is-open { display: block; }
.mobile-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.mobile-panel__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}
.mobile-panel__list a:active { background: var(--green-50); }
.mobile-panel__list a[aria-current="page"] { background: var(--green-50); color: var(--green-900); }
.mobile-panel__list a::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid var(--green-600);
  border-top: 2px solid var(--green-600);
  transform: rotate(45deg);
  opacity: .55;
}
.mobile-panel .header-cta {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
  min-height: 46px;
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner > .header-cta { display: none; }
  .brand__text .brand__tag { display: none; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.6rem, 6vw, 4.6rem);
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(29, 122, 86, .13), transparent 62%),
    radial-gradient(680px 380px at 4% 110%, rgba(163, 90, 9, .09), transparent 60%),
    var(--cream);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(22, 36, 28, .09) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
  opacity: .5;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 em {
  font-style: normal;
  color: var(--green-700);
  display: inline-block;
  /* CSS-only highlight: a thin band painted behind the text baseline */
  background-image: linear-gradient(rgba(29, 122, 86, .17), rgba(29, 122, 86, .17));
  background-repeat: no-repeat;
  background-size: 100% .32em;
  background-position: 0 84%;
}
.hero__sub { font-size: clamp(1.02rem, 1.7vw, 1.16rem); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 1.9rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--green-600); flex: 0 0 auto; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 700px) {
  /* Keep the two halves of the headline on separate lines on phones */
  .hero h1 em { display: block; width: -moz-fit-content; width: fit-content; max-width: 100%; }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: .96rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn--primary { background: var(--green-800); color: #fff; box-shadow: 0 10px 24px -14px rgba(15, 61, 42, .9); }
.btn--primary:hover { background: var(--green-900); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-900); transform: translateY(-1px); }
.btn--danger { background: var(--stop); color: #fff; }
.btn--danger:hover { background: #8a231b; color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .87rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   7. Quick check card (hero tool)
   -------------------------------------------------------------------------- */
.quickcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.15rem, 2.4vw, 1.6rem);
  position: relative;
}
.quickcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: .35rem;
}
.quickcard__title {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.quickcard__badge {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-800);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 4px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.quickcard__hint { font-size: .86rem; color: var(--muted); margin: 0 0 .9rem; }
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 5px 5px 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field:focus-within {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(29, 122, 86, .12);
}
.field svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 10px 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #96a19a; }
.field button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--green-800);
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
}
.field button:hover { background: var(--green-900); }

.answer {
  margin-top: 1rem;
  border-radius: var(--r-md);
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: .93rem;
  display: none;
}
.answer.is-on { display: block; }
.answer.is-fresh { animation: fadeUp .26s ease both; }
.answer__row { display: flex; align-items: flex-start; gap: 10px; }
.answer__icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  margin-top: 2px;
}
.answer__icon::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
}
.answer__verdict { font-weight: 700; color: var(--ink); display: block; margin-bottom: 2px; }
.answer__note { color: var(--body); margin: 0; font-size: .9rem; }
.answer--safe { background: var(--safe-bg); border-color: var(--safe-line); }
.answer--safe .answer__icon { background: var(--safe); color: #fff; }
.answer--warn { background: var(--warn-bg); border-color: var(--warn-line); }
.answer--warn .answer__icon { background: var(--warn); color: #fff; }
.answer--warn .answer__icon::before {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: currentColor;
}
.answer--warn .answer__icon::after {
  position: absolute;
  top: 4px;
  width: 2px; height: 8px;
  border: 0;
  background: currentColor;
  border-radius: 1px;
  transform: none;
}
.answer--stop { background: var(--stop-bg); border-color: var(--stop-line); }
.answer--stop .answer__icon { background: var(--stop); color: #fff; }
.answer--stop .answer__icon::after {
  width: 10px; height: 10px;
  border: 0;
  background:
    linear-gradient(45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%);
  transform: none;
}
.answer__suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.answer__suggest button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-pill);
  padding: 5px 11px;
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--body);
  cursor: pointer;
}
.answer__suggest button:hover { border-color: var(--green-600); color: var(--green-900); }

/* --------------------------------------------------------------------------
   8. Trust strip
   -------------------------------------------------------------------------- */
.trust {
  background: var(--green-900);
  color: #d8e7de;
  padding-block: 14px;
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 30px;
  font-size: .84rem;
  text-align: center;
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 15px; height: 15px; color: #86c3a4; flex: 0 0 auto; }
.trust strong { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   9. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  text-decoration: none;
  color: var(--body);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
a.card:hover {
  border-color: var(--green-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--body);
}
.card__icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--green-50);
  color: var(--green-800);
  margin-bottom: 4px;
}
.card__icon svg { width: 22px; height: 22px; }
.card__title {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.card__text { font-size: .92rem; margin: 0; color: var(--body); }
.card__more {
  margin-top: auto;
  padding-top: 10px;
  font-size: .85rem;
  font-weight: 650;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card__more::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
a.card:hover .card__more::after { transform: rotate(45deg) translate(2px, -2px); }

/* Feature card variant */
.card--feature {
  background: linear-gradient(180deg, var(--green-50), var(--paper) 70%);
  border-color: var(--green-100);
}

/* --------------------------------------------------------------------------
   10. Food entries
   -------------------------------------------------------------------------- */
.food-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.6rem;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
.food-toolbar .field { flex: 1 1 260px; min-width: 0; background: var(--cream); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--body);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  min-height: 38px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--green-600); color: var(--green-900); }
.chip[aria-pressed="true"] {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.food-card {
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.food-card:hover { border-color: var(--green-100); box-shadow: var(--shadow-sm); }
.food-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.food-card__name {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.food-card__note { margin: 0; font-size: .875rem; color: var(--body); line-height: 1.6; }
.food-card__serving {
  margin: 2px 0 0;
  font-size: .8rem;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.food-card__serving b { color: var(--green-800); font-weight: 650; white-space: nowrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px 10px 4px 8px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.5;
  border: 1px solid transparent;
}
.badge i {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
}
.badge--safe { background: var(--safe-bg); color: #146c34; border-color: var(--safe-line); }
.badge--safe i { background: var(--safe); }
.badge--safe i::after {
  content: ""; width: 6px; height: 3px;
  border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg) translateY(-.5px);
}
.badge--warn { background: var(--warn-bg); color: #8c4c07; border-color: var(--warn-line); }
.badge--warn i { background: var(--warn); }
.badge--warn i::before {
  content: "";
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  bottom: 3px;
}
.badge--warn i::after {
  content: "";
  position: absolute;
  width: 2px; height: 5px;
  background: #fff;
  border-radius: 1px;
  top: 3px;
}
.badge--stop { background: var(--stop-bg); color: #8f251d; border-color: var(--stop-line); }
.badge--stop i { background: var(--stop); }
.badge--stop i::after {
  content: ""; width: 7px; height: 7px; background:
    linear-gradient(45deg, transparent 43%, #fff 43%, #fff 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, #fff 43%, #fff 57%, transparent 57%);
}

.empty-state {
  display: none;
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--muted);
  background: var(--paper);
}
.empty-state.is-on { display: block; }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 1.05rem; }

.result-count {
  font-size: .82rem;
  color: var(--muted);
  margin: 0 0 14px;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   11. Tables
   -------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  margin-bottom: 1.6rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 520px;
}
caption {
  text-align: left;
  padding: 14px 16px 0;
  font-size: .82rem;
  color: var(--muted);
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
thead th {
  background: var(--cream-deep);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-900);
  font-weight: 700;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfaf5; }
td strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   12. Callouts
   -------------------------------------------------------------------------- */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  margin: 1.6rem 0;
  font-size: .94rem;
}
.callout__icon {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
  font-family: var(--font-body);
}
.callout p:last-child { margin-bottom: 0; }
.callout__title {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  font-size: .95rem;
}
.callout--danger { background: var(--stop-bg); border-color: var(--stop-line); }
.callout--danger .callout__icon { background: var(--stop); color: #fff; }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-line); }
.callout--warn .callout__icon { background: var(--warn); color: #fff; }
.callout--info { background: var(--green-50); border-color: var(--green-100); }
.callout--info .callout__icon { background: var(--green-700); color: #fff; }

/* --------------------------------------------------------------------------
   13. Article layout
   -------------------------------------------------------------------------- */
.breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  padding-top: 20px;
  margin-bottom: 6px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
}
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.breadcrumb li + li::before {
  content: "/";
  color: #b9c1ba;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-800); text-decoration: underline; }

.page-head { padding-block: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2rem); }
.page-head h1 { margin-bottom: .55rem; }
.page-head .lede { margin-bottom: 0; }
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 1.1rem;
  font-size: .8rem;
  color: var(--muted);
}
.page-meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-meta svg { width: 14px; height: 14px; }

.prose { max-width: 72ch; }
.prose > h2 { margin-top: 2.4rem; }
.prose > h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li::marker { color: var(--green-600); font-weight: 600; }
.prose figure { margin: 1.8rem 0; }

/* Key facts box */
.factbox {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-700);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  margin: 1.8rem 0;
  font-size: .93rem;
}
.factbox h4 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
}
.factbox ul { margin: 0; padding-left: 1.1em; }
.factbox li { margin-bottom: .35em; }
.factbox li:last-child { margin-bottom: 0; }

/* TOC */
.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 2rem;
  font-size: .9rem;
}
.toc h2 {
  font-family: var(--font-body);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.toc ol { margin: 0; padding-left: 1.2em; column-gap: 24px; }
.toc li { margin-bottom: .3em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 1.6rem 0; counter-reset: step; }
.steps li {
  position: relative;
  padding-left: 52px;
  margin-bottom: 1.4rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -1px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-800);
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
}
.steps strong { display: block; color: var(--ink); margin-bottom: 2px; }
.steps p { margin: 0; font-size: .94rem; }

/* Link list */
.linklist { list-style: none; padding: 0; margin: 1.4rem 0; }
.linklist li {
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
}
.linklist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 550;
  font-size: .95rem;
}
.linklist a:hover { color: var(--green-700); }
.linklist a::after {
  content: "";
  width: 7px; height: 7px; flex: 0 0 auto;
  border-right: 2px solid var(--green-600);
  border-top: 2px solid var(--green-600);
  transform: rotate(45deg);
  opacity: .6;
}

/* --------------------------------------------------------------------------
   14. Calculator
   -------------------------------------------------------------------------- */
.calc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}
.calc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .calc__grid { grid-template-columns: 1fr; } }
.calc label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-900);
  margin-bottom: 6px;
}
.calc input[type="number"], .calc select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.calc select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green-800) 50%),
    linear-gradient(135deg, var(--green-800) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.calc input:focus, .calc select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(29, 122, 86, .12);
}
.calc__out {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--green-50);
  border: 1px solid var(--green-100);
}
.calc__out .big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--green-900);
  line-height: 1.2;
  display: block;
  margin-bottom: 4px;
}
.calc__out p { margin: 0; font-size: .9rem; }
.calc__hint { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* --------------------------------------------------------------------------
   15. FAQ accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px;
  font-weight: 650;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px; height: 11px;
  margin-top: 6px;
  border-right: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] summary { color: var(--green-900); }
.faq__body { padding: 0 2px 20px; font-size: .95rem; max-width: 70ch; }
.faq__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   16. Emergency banner
   -------------------------------------------------------------------------- */
.emergency {
  background: var(--stop);
  color: #fff;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.emergency h2 { color: #fff; }
.emergency p { color: rgba(255, 255, 255, .9); }
.emergency__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 760px) { .emergency__grid { grid-template-columns: 1fr; } }
.emergency .btn--ghost { background: #fff; border-color: #fff; color: var(--stop); }
.emergency .btn--ghost:hover { background: #f7ecea; color: #8a231b; }

/* --------------------------------------------------------------------------
   17. Ad slots
   -------------------------------------------------------------------------- */
.ad-slot {
  margin: 2.4rem auto;
  max-width: 970px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 36, 28, .02);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ad-slot--leaderboard { min-height: 100px; }
.ad-slot--inline { min-height: 260px; }
.ad-slot--sidebar { min-height: 600px; max-width: 320px; }
@media (max-width: 700px) {
  .ad-slot--inline { min-height: 250px; }
  .ad-slot { margin-block: 1.8rem; }
  /* Comfortable touch targets on phones */
  .chip { min-height: 44px; padding: 9px 16px; }
  .answer__suggest button { min-height: 40px; padding: 8px 14px; }
}
/* Placeholder text only shows until real ad code replaces it. */
.ad-slot__label {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a9b3ac;
}

/* --------------------------------------------------------------------------
   18. Newsletter / contact
   -------------------------------------------------------------------------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.form-grid { display: grid; gap: 16px; }
.form-grid label {
  display: block;
  font-size: .84rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(29, 122, 86, .12);
}
.form-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--green-900);
  color: #b9cec2;
  padding-block: clamp(2.6rem, 5vw, 3.6rem) 1.6rem;
  font-size: .89rem;
}
.site-footer a { color: #cfe0d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px 28px;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer-brand .brand { margin-bottom: 12px; padding: 0; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #93b3a1; }
.footer-brand p { color: #a8c1b3; font-size: .87rem; max-width: 34ch; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 1.4rem;
  font-size: .79rem;
  color: #93b3a1;
}
.footer-bottom p { margin: 0; }
.footer-disclaimer {
  margin: 0 0 1.4rem;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .05);
  border-radius: var(--r-sm);
  font-size: .78rem;
  line-height: 1.65;
  color: #a8c1b3;
}
.footer-disclaimer strong { color: #e6efea; }

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */
/* The hidden attribute must always win over component display rules
   (e.g. .answer__suggest sets display:flex). */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .6rem; }
.mb-2 { margin-bottom: 1.2rem; }
.mb-3 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.center-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 2rem; }
.divider-dot { color: #c3ccc5; padding: 0 2px; }
.nowrap { white-space: nowrap; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .4s ease both; }

/* 404 */
.error-page { text-align: center; padding-block: clamp(3rem, 9vw, 7rem); }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 9rem);
  line-height: .9;
  color: var(--green-100);
  margin: 0;
  letter-spacing: -.04em;
}

/* --------------------------------------------------------------------------
   21. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .ad-slot, .food-toolbar, .hero__actions, .emergency { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card, .food-card, .panel { border: 1px solid #ccc; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
