/* Campaign page layout; global navigation, typography and components stay shared. */
.food-xray-page .food-xray-hero {
  padding: 64px 0;
}

.food-xray-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 64px;
}

.food-xray-hero__copy h1 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 4.7vw, 4.25rem);
  line-height: 1.07;
}

.food-xray-hero__copy h1 > span {
  display: block;
  text-wrap: balance;
}

.food-xray-hero__promise {
  margin-top: 12px;
  color: var(--aqua);
}

.food-xray-hero__visual {
  display: grid;
  gap: 16px;
}

.food-xray-hero__example {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(89, 207, 232, 0.55);
  border-radius: var(--radius);
  background: rgba(89, 207, 232, 0.1);
  color: var(--paper);
  text-decoration: none;
}

.food-xray-hero__example-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 642 / 460;
  border-radius: 4px;
}

.food-xray-hero__example-image img {
  width: 100%;
  height: auto;
}

.food-xray-hero__example-label,
.food-xray-hero__example strong,
.food-xray-hero__example-link {
  display: block;
}

.food-xray-hero__example-label {
  margin-bottom: 4px;
  font-size: 0.8125rem;
}

.food-xray-hero__example strong {
  line-height: 1.3;
}

.food-xray-hero__example-link {
  margin-top: 8px;
  color: var(--aqua);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.food-xray-hero__copy .lead {
  max-width: 55ch;
  font-size: 1.125rem;
}

.food-xray-page .food-xray-hero .button:not(.ghost),
.food-xray-page .food-xray-next .button:not(.ghost) {
  background: var(--paper);
  color: var(--navy);
  box-shadow: none;
}

.food-xray-page .button.ghost {
  color: var(--paper);
}

.food-xray-hero__specs {
  margin: 24px 0 0;
  font-size: 0.9375rem;
}

.food-xray-hero__specs a,
.food-xray-text-link {
  font-weight: 800;
  text-underline-offset: 4px;
}

.food-xray-machine {
  margin: 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy);
}

.food-xray-machine img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  /* Mask the source photo's stray print at the top, clear of the machine. */
  clip-path: inset(3% 0 0);
}

.food-xray-page figcaption {
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.food-xray-proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
}

.food-xray-proof .eyebrow {
  color: var(--green);
}

.food-xray-proof h2 {
  max-width: 17ch;
}

.food-xray-proof__fit {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.food-xray-text-link {
  display: inline-block;
  color: var(--navy);
}

.food-xray-evidence {
  color: var(--ink);
}

.food-xray-evidence__intro {
  margin-bottom: 12px;
  font-weight: 800;
}

.food-xray-evidence__comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.food-xray-evidence figure {
  min-width: 0;
  margin: 0;
}

.food-xray-evidence__card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.food-xray-evidence__card h3 {
  margin: 0;
  padding: 12px;
  color: var(--navy);
  font-size: 1rem;
}

.food-xray-evidence__card--defect h3 {
  background: #fff0e5;
  color: #8b3407;
}

.food-xray-evidence__detail,
.food-xray-evidence__full-frame {
  position: relative;
  overflow: hidden;
}

.food-xray-evidence__detail {
  aspect-ratio: 642 / 460;
  background: #e8edf2;
}

.food-xray-evidence__detail--clear {
  aspect-ratio: 652 / 460;
}

.food-xray-evidence img,
.food-xray-evidence__annotation {
  display: block;
  width: 100%;
  height: auto;
}

.food-xray-evidence__annotation {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.food-xray-evidence__annotation rect {
  fill: none;
  stroke: #a83b08;
  stroke-width: 5;
}

.food-xray-page .food-xray-evidence__card figcaption {
  margin: 0;
  padding: 12px;
  font-size: 0.875rem;
}

.food-xray-evidence__note {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.food-xray-evidence__full {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.food-xray-evidence__full summary {
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.food-xray-evidence__full summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 5px;
}

.food-xray-evidence__full[open] summary {
  margin-bottom: 16px;
}

.food-xray-context__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
}

.food-xray-context h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
}

.food-xray-context__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.food-xray-page main a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}

@media (max-width: 800px) {
  .food-xray-page .food-xray-hero,
  .food-xray-page .section {
    padding: 48px 0;
  }

  .food-xray-hero__grid,
  .food-xray-proof__grid,
  .food-xray-context__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .food-xray-hero__copy h1 {
    max-width: 18ch;
    font-size: clamp(2.5rem, 7vw, 3.5rem);
  }

  .food-xray-hero__visual {
    width: min(100%, 460px);
    justify-self: center;
  }

  .food-xray-machine img {
    height: 340px;
  }

  .food-xray-context h2 {
    margin-bottom: 0;
  }
}

@media (max-width: 420px) {
  .food-xray-page main .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .food-xray-page main .button {
    padding: 12px 16px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .food-xray-evidence__comparison {
    grid-template-columns: minmax(0, 1fr);
  }

  .food-xray-evidence__full .food-xray-evidence__comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.food-xray-page) {
    scroll-behavior: auto;
  }
}
