/* Food detail pages — decision-surface layout */

.food-page {
  --food-display: "Outfit", var(--font-sans), ui-sans-serif, system-ui, sans-serif;
  --food-section-y: 2rem;
  --food-section-y-md: 2.75rem;
  --food-stack: 1.25rem;
  --food-heading-gap: 0.75rem;
}

@media (min-width: 768px) {
  .food-page {
    --food-section-y: var(--food-section-y-md);
    --food-stack: 1.5rem;
  }
}

.food-page .food-section {
  padding-block: var(--food-section-y);
}

.food-page .food-section__inner {
  max-width: 42rem;
}

.food-page .food-heading {
  margin: 0 0 var(--food-heading-gap);
}

.food-page .food-stack > * + * {
  margin-top: var(--food-stack);
}

html[lang="ar"] .food-page {
  --food-display: var(--font-arabic), "Noto Sans Arabic", ui-sans-serif, system-ui, sans-serif;
}

.food-page .food-display {
  font-family: var(--food-display);
  letter-spacing: -0.02em;
}

html[lang="ar"] .food-page .food-display {
  letter-spacing: 0;
}

/* Verdict band */
.food-verdict {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.food-verdict::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--food-wash-strong) 0%, transparent 55%),
    linear-gradient(180deg, var(--food-wash) 0%, transparent 70%);
  animation: food-wash-in 0.7s ease-out both;
}

.food-verdict--halal {
  --food-wash: rgba(31, 122, 68, 0.1);
  --food-wash-strong: rgba(31, 122, 68, 0.18);
  --food-status: hsl(var(--primary));
}

.food-verdict--haram {
  --food-wash: rgba(185, 28, 28, 0.08);
  --food-wash-strong: rgba(185, 28, 28, 0.16);
  --food-status: hsl(var(--destructive));
}

.food-verdict--uncertain,
.food-verdict--conditional,
.food-verdict--verified {
  --food-wash: rgba(14, 116, 144, 0.1);
  --food-wash-strong: rgba(14, 116, 144, 0.18);
  --food-status: #0e7490;
}

.food-verdict--market {
  --food-wash: rgba(124, 58, 237, 0.08);
  --food-wash-strong: rgba(124, 58, 237, 0.16);
  --food-status: #7c3aed;
}

.food-verdict--scholarly {
  --food-wash: rgba(217, 119, 6, 0.1);
  --food-wash-strong: rgba(217, 119, 6, 0.18);
  --food-status: #d97706;
}

.food-verdict__next {
  margin-top: 1rem;
  margin-bottom: 0;
  max-width: 40rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid hsl(var(--primary) / 0.28);
  background:
    linear-gradient(
      135deg,
      hsl(var(--primary) / 0.12) 0%,
      hsl(var(--primary) / 0.05) 55%,
      hsl(var(--background) / 0.55) 100%
    );
  box-shadow: 0 1px 0 hsl(var(--primary) / 0.08);
}

.food-verdict__next-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.food-verdict__next-text {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.45;
  color: hsl(var(--foreground) / 0.92);
}

@media (min-width: 768px) {
  .food-verdict__next {
    padding: 0.95rem 1.15rem;
  }

  .food-verdict__next-text {
    font-size: 1.05rem;
  }
}

.food-verdict__meta {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-inline-start: 2.75rem;
}

.food-verdict__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  font-size: 0.925rem;
}

.food-verdict__meta-row dt {
  margin: 0;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.food-verdict__meta-row dd {
  margin: 0;
  color: hsl(var(--foreground));
}

.food-confidence {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid currentColor;
}

.food-confidence--high {
  color: hsl(var(--primary));
  background: rgba(31, 122, 68, 0.1);
}

.food-confidence--medium {
  color: #0e7490;
  background: rgba(14, 116, 144, 0.1);
}

.food-confidence--low {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
}

@keyframes food-wash-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes food-status-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.food-verdict .container {
  padding-block: 1.75rem;
}

@media (min-width: 768px) {
  .food-verdict .container {
    padding-block: 2.25rem;
  }
}

.food-verdict__crumbs {
  margin-bottom: 0.75rem;
}

.food-verdict__crumbs nav {
  margin-bottom: 0;
}

.food-verdict__title {
  margin: 0 0 1rem;
}

.food-verdict__status {
  color: var(--food-status);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.35rem;
  margin-bottom: 1.25rem;
  animation: food-status-in 0.55s ease-out 0.08s both;
}

.food-verdict__ruling {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.food-verdict__ruling-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 1.15rem;
  flex-shrink: 0;
}

.food-verdict__ruling-copy {
  min-width: 0;
}

.food-verdict__ruling-label {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.food-verdict__ruling-value {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--food-status);
}

.food-verdict__kind {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--food-status);
  opacity: 0.95;
}

.food-verdict__methodology-wrap {
  padding-inline-start: 2.75rem;
}

.food-verdict__methodology {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: hsl(var(--foreground) / 0.72);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-color: hsl(var(--border));
}

.food-verdict__methodology:hover,
.food-verdict__methodology:focus-visible {
  color: hsl(var(--primary));
  text-decoration-color: hsl(var(--primary) / 0.55);
  outline: none;
}

.food-verdict__conditions {
  margin-top: 0.25rem;
  padding: 0.85rem 0 0.15rem;
  border-top: 1px solid hsl(var(--border) / 0.55);
}

.food-verdict__conditions-title {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--primary) / 0.85);
}

.food-checks--compact li {
  padding: 0.55rem 0;
  font-size: 0.875rem;
}

.food-checks--compact li:first-child {
  padding-top: 0.15rem;
}

.food-checks--compact li:last-child {
  padding-bottom: 0;
}

.food-verdict__body {
  margin-bottom: 1.5rem;
  animation: food-status-in 0.55s ease-out 0.16s both;
}

.food-verdict__body > * + * {
  margin-top: 0.75rem;
}

.food-verdict__check {
  animation: food-status-in 0.55s ease-out 0.24s both;
}

.food-verdict__lede {
  margin: 0.85rem 0 1.1rem;
  max-width: 40rem;
  line-height: 1.6;
  animation: food-status-in 0.55s ease-out 0.08s both;
}

.food-applies {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.35rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid hsl(var(--border) / 0.55);
  animation: food-status-in 0.55s ease-out 0.16s both;
}

.food-applies__row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr);
  gap: 0.65rem 1rem;
  align-items: baseline;
  margin: 0;
}

.food-applies__row dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.food-applies__row dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--foreground) / 0.92);
}

.food-applies__row dd a {
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.food-evidence-table__org {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.food-verdict__reason {
  max-width: 40rem;
  line-height: 1.65;
}

.food-next-step {
  border-inline-start: 3px solid var(--food-status);
  padding-inline-start: 0.875rem;
  margin-top: 1rem;
}

.food-overview-aside {
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border) / 0.55);
}

@media (min-width: 1024px) {
  .food-overview-aside {
    padding-top: 0;
    border-top: 0;
    padding-inline-start: 1.5rem;
    border-inline-start: 1px solid hsl(var(--border) / 0.55);
  }
}

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

.food-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.55);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: hsl(var(--foreground) / 0.9);
}

.food-checks li:first-child {
  padding-top: 0.35rem;
}

.food-checks li:last-child {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}

.food-checks__bullet {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.45rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  flex-shrink: 0;
}

.food-checks__text {
  flex: 1;
  min-width: 0;
}

.food-overview-aside__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border) / 0.45);
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

.food-overview-aside__cta:hover {
  text-decoration: underline;
}

.food-seo-grid {
  display: grid;
  gap: 1.75rem 2rem;
}

@media (min-width: 768px) {
  .food-seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
  }
}

.food-seo-grid__full {
  grid-column: 1 / -1;
}

.food-guide-strip {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 42rem;
}

.food-guide-strip p {
  margin: 0;
}

.food-guide-strip a {
  margin-top: 0.25rem;
}

/* Page footer: explore + blog */
.food-page-footer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.food-page-footer__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  white-space: nowrap;
}

.food-page-footer__link:hover {
  text-decoration: underline;
}

.food-blog-promo {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border) / 0.55);
}

.food-blog-promo__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
}

.food-blog-promo__text {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.food-blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .food-blog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.food-blog-list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: 0.65rem;
  background: hsl(var(--background));
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.food-blog-list__item:hover {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--muted) / 0.25);
}

.food-blog-list__thumb {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  background: hsl(var(--muted));
}

.food-blog-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.food-blog-list__body {
  min-width: 0;
}

.food-blog-list__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: hsl(var(--foreground));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.food-blog-list__meta {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Overview: open layout, not card stack */
.food-why-hero {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 0 0 1.15rem;
}

@media (min-width: 768px) {
  .food-why-hero {
    gap: 2.25rem;
    margin-bottom: 1.35rem;
  }
}

.food-overview__media {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: hsl(var(--muted) / 0.35);
}

.food-overview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.food-page .food-why-title.food-heading {
  margin: 0;
}

.food-why-reason {
  margin: 0 0 1rem;
}

.food-why-body {
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .food-why-body {
    font-size: 1rem;
    line-height: 1.7;
  }
}

.food-why-body > *:first-child {
  margin-top: 0;
}

.food-why-body p,
.food-why-body ul,
.food-why-body ol {
  margin: 0 0 1rem;
}

.food-why-body a {
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.food-why-body a:hover,
.food-why-body a:focus-visible {
  color: hsl(var(--primary) / 0.85);
}

/* Tailwind preflight removes markers — restore readable lists */
.food-why-body ul,
.food-why-body ol {
  padding-inline-start: 1.35rem;
}

.food-why-body ul {
  list-style-type: disc;
}

.food-why-body ol {
  list-style-type: decimal;
}

.food-why-body li {
  padding-inline-start: 0.25rem;
  color: hsl(var(--foreground) / 0.92);
}

.food-why-body li::marker {
  color: hsl(var(--primary));
  font-weight: 600;
}

.food-why-body li + li {
  margin-top: 0.4rem;
}

.food-why-body li > ul,
.food-why-body li > ol {
  margin-top: 0.4rem;
  margin-bottom: 0.25rem;
}

.food-why-body h2,
.food-why-body h3,
.food-why-body h4 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
  margin: 1.5rem 0 0.65rem;
  line-height: 1.3;
}

.food-why-body h2 {
  font-size: 1.125rem;
}

.food-why-body h3,
.food-why-body h4 {
  font-size: 1.05rem;
}

@media (min-width: 768px) {
  .food-why-body h2 {
    font-size: 1.2rem;
  }
}

/* Markdown comparison tables in body copy */
.food-why-body table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  border: 1px solid hsl(var(--border));
  border-radius: 0.65rem;
  overflow: hidden;
  background: hsl(var(--background));
}

.food-why-body th,
.food-why-body td {
  padding: 0.7rem 0.85rem;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid hsl(var(--border) / 0.85);
}

.food-why-body th {
  background: hsl(var(--muted) / 0.45);
  font-weight: 700;
  color: hsl(var(--foreground));
}

.food-why-body tr:last-child th,
.food-why-body tr:last-child td {
  border-bottom: 0;
}

.food-why-body td {
  color: hsl(var(--foreground) / 0.92);
}

.food-why-body table a {
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Related foods as conversion list */
.food-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .food-related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .food-related-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.food-related-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--background));
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.food-related-list a:hover {
  border-color: hsl(var(--primary) / 0.45);
  background: hsl(var(--muted) / 0.35);
  transform: translateY(-1px);
}

.food-related-list__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  flex-shrink: 0;
  background: #d97706;
}

.food-related-list__dot--halal {
  background: hsl(var(--primary));
}

.food-related-list__dot--haram {
  background: hsl(var(--destructive));
}

.food-related-list__dot--halal-if-verified,
.food-related-list__dot--uncertain {
  background: #0e7490;
}

.food-related-list__dot--market-dependent {
  background: #7c3aed;
}

.food-related-list__dot--scholarly-difference {
  background: #d97706;
}

.food-related-list li {
  animation: food-status-in 0.45s ease-out both;
}

.food-related-list li:nth-child(1) { animation-delay: 0.02s; }
.food-related-list li:nth-child(2) { animation-delay: 0.06s; }
.food-related-list li:nth-child(3) { animation-delay: 0.1s; }
.food-related-list li:nth-child(4) { animation-delay: 0.14s; }
.food-related-list li:nth-child(5) { animation-delay: 0.18s; }
.food-related-list li:nth-child(6) { animation-delay: 0.22s; }

/* FAQ accordion */
.food-faq details {
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  padding: 0.65rem 0;
}

.food-faq details:first-of-type {
  border-top: 1px solid hsl(var(--border) / 0.7);
  margin-top: 0.25rem;
}

.food-faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
}

.food-faq summary::-webkit-details-marker {
  display: none;
}

.food-faq summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-inline-end: 2px solid hsl(var(--primary));
  border-bottom: 2px solid hsl(var(--primary));
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: -0.2rem;
}

.food-faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.food-faq .food-faq__answer {
  margin-top: 0.65rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

/* Sticky mobile check bar */
.food-sticky-check {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: hsl(var(--background) / 0.92);
  border-top: 1px solid hsl(var(--border) / 0.7);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.food-sticky-check.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .food-sticky-check {
    display: none;
  }
}

.food-page.has-sticky-check {
  padding-bottom: 4.75rem;
}

@media (min-width: 768px) {
  .food-page.has-sticky-check {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .food-verdict::before,
  .food-verdict__status,
  .food-verdict__body,
  .food-verdict__check,
  .food-related-list li {
    animation: none;
  }

  .food-sticky-check {
    transition: none;
  }
}

/* Market / country selector */
.food-verdict__markets-cue a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.food-markets__note {
  padding: 0.75rem 0.9rem;
  border-inline-start: 3px solid hsl(var(--primary) / 0.45);
  background: hsl(var(--muted) / 0.35);
}

.food-markets__controls {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

.food-markets__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.85);
}

.food-markets__select {
  width: 100%;
  max-width: 22rem;
  appearance: none;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--muted) / 0.4) 100%);
  color: hsl(var(--foreground));
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 1.1rem) calc(50% - 0.15rem),
    calc(100% - 0.75rem) calc(50% - 0.15rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

html[lang="ar"] .food-markets__select {
  padding: 0.65rem 0.85rem 0.65rem 2.25rem;
  background-position:
    1.1rem calc(50% - 0.15rem),
    0.75rem calc(50% - 0.15rem);
}

.food-markets__tabs {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (min-width: 640px) {
  .food-markets__select {
    display: none;
  }

  .food-markets__label {
    display: none;
  }

  .food-markets__tabs {
    display: flex;
  }
}

.food-markets__tab {
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--background));
  color: hsl(var(--foreground) / 0.85);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.food-markets__tab.is-active,
.food-markets__tab[aria-selected="true"] {
  border-color: hsl(var(--primary) / 0.55);
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
}

.food-markets__panel {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid hsl(var(--border) / 0.8);
}

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

.food-markets__verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.9);
}

.food-markets__verdict--halal {
  background: rgba(31, 122, 68, 0.08);
  border-color: rgba(31, 122, 68, 0.28);
}

.food-markets__verdict--haram {
  background: rgba(185, 28, 28, 0.07);
  border-color: rgba(185, 28, 28, 0.25);
}

.food-markets__verdict--halal-if-verified,
.food-markets__verdict--verified {
  background: rgba(14, 116, 144, 0.08);
  border-color: rgba(14, 116, 144, 0.28);
}

.food-markets__verdict--market-dependent,
.food-markets__verdict--market {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.28);
}

.food-markets__verdict--scholarly-difference,
.food-markets__verdict--scholarly,
.food-markets__verdict--uncertain {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.28);
}

.food-markets__status {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.food-markets__verdict-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.food-markets__kind {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.food-markets__checked {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.food-markets__checked-label {
  display: block;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.75);
}

.food-markets__summary {
  margin: 0;
}

.food-markets__table-wrap {
  overflow-x: auto;
  border: 1px solid hsl(var(--border));
  border-radius: 0.65rem;
}

.food-markets__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.food-markets__table th,
.food-markets__table td {
  padding: 0.7rem 0.85rem;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid hsl(var(--border) / 0.85);
}

.food-markets__table th {
  background: hsl(var(--muted) / 0.45);
  font-weight: 700;
  white-space: nowrap;
}

.food-markets__table tr:last-child td {
  border-bottom: 0;
}

.food-markets__table a {
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  word-break: break-word;
}

.food-markets__notes {
  padding-top: 0.25rem;
}

/* Inline citations + sources block */
.food-cite {
  font-size: 0.75em;
  font-weight: 700;
  line-height: 0;
  margin-inline-start: 0.1em;
}

.food-cite a {
  color: hsl(var(--primary));
  text-decoration: none;
}

.food-cite a:hover,
.food-cite a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.food-sources {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border) / 0.85);
}

.food-sources__intro a,
.food-overview-aside__method a {
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.food-sources__group + .food-sources__group {
  margin-top: 1.25rem;
}

.food-sources__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.food-sources__item-main {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.food-sources__n {
  flex: 0 0 auto;
  font-weight: 700;
  color: hsl(var(--primary));
  font-size: 0.875rem;
}

.food-sources__title {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.food-sources__title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.food-sources__org,
.food-sources__meta,
.food-sources__note,
.food-sources__retrieved {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.2rem;
}

.food-sources__note {
  color: hsl(var(--foreground) / 0.85);
}

.food-overview-aside__method {
  margin-top: 0.85rem !important;
  margin-bottom: 0.85rem !important;
}

.food-sources__item:target {
  outline: 2px solid hsl(var(--primary) / 0.45);
  outline-offset: 4px;
  border-radius: 0.35rem;
}
