/* ---------- Allergen landing pages (phase 1 SEO) ---------- */

body.allergen-page,
body.allergen-hub {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  line-height: 1.65;
}

body.allergen-page .breadcrumbs,
body.allergen-hub .breadcrumbs {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: #5a6470;
}

body.allergen-page .breadcrumbs a,
body.allergen-hub .breadcrumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

body.allergen-page h1,
body.allergen-hub h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

body.allergen-page h2,
body.allergen-hub h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
}

body.allergen-page .lede,
body.allergen-hub .lede {
  font-size: 1.125rem;
  margin: 0 0 1.5rem;
  color: #2a2f37;
}

body.allergen-page .cta-primary,
body.allergen-hub .cta-primary {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  background: #0a7d3a;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  margin: 0.5rem 0 2rem;
}

body.allergen-page .cta-primary:hover,
body.allergen-hub .cta-primary:hover {
  background: #086a31;
}

body.allergen-page .verdict-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  background: #fdecea;
  border: 1px solid #f5b7b1;
  color: #842029;
  margin-bottom: 2rem;
  font-weight: 500;
}

body.allergen-page .verdict-pill {
  background: #dc3545;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

body.allergen-page .hidden-sources dt {
  font-weight: 600;
  margin-top: 0.85rem;
}

body.allergen-page .hidden-sources dd {
  margin: 0.15rem 0 0 0;
  color: #4a5563;
}

body.allergen-page .safe-brands {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
}

body.allergen-page .safe-brands th,
body.allergen-page .safe-brands td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

body.allergen-page .safe-brands th {
  font-weight: 600;
  background: #f7f8fa;
}

body.allergen-page details {
  border-top: 1px solid #e5e7eb;
  padding: 0.85rem 0;
}

body.allergen-page details:last-of-type {
  border-bottom: 1px solid #e5e7eb;
}

body.allergen-page details summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

body.allergen-page details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-weight: 400;
  font-size: 1.2rem;
}

body.allergen-page details[open] summary::after {
  content: "−";
}

body.allergen-page details .faq-answer {
  margin-top: 0.5rem;
  color: #2a2f37;
}

body.allergen-page .byline,
body.allergen-hub .byline,
body.allergen-page .disclaimer,
body.allergen-hub .disclaimer {
  font-size: 0.875rem;
  color: #5a6470;
  margin: 0.5rem 0;
}

body.allergen-page .citations,
body.allergen-hub .citations {
  font-size: 0.95rem;
  padding-left: 1.25rem;
}

body.allergen-page .related,
body.allergen-hub .related {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.allergen-page .related a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #f0f4f8;
  color: #1a3a52;
  text-decoration: none;
  font-size: 0.9rem;
}

body.allergen-hub .allergen-grid {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

body.allergen-hub .allergen-card a {
  display: block;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-decoration: none;
  color: inherit;
  height: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body.allergen-hub .allergen-card a:hover {
  border-color: #0a7d3a;
  background-color: #f0f9f4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 125, 58, 0.08);
}

body.allergen-hub .allergen-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

body.allergen-hub .allergen-card .card-meta {
  font-size: 0.875rem;
  color: #5a6470;
}

body.allergen-page footer,
body.allergen-hub footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: #5a6470;
}

body.allergen-page footer a,
body.allergen-hub footer a {
  color: inherit;
}
