.chef-contests-page {
  background: var(--color-ink-950);
}

.chef-contests-page section[id] {
  scroll-margin-top: 6rem;
}

.chef-hero {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.chef-hero__panel,
.chef-download__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: var(--space-6);
  overflow: hidden;
  min-width: 0;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--color-ink-900);
}

.chef-hero__panel::after,
.chef-download__panel::after {
  position: absolute;
  z-index: 0;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(245 165 36 / 0.11), transparent 67%);
  content: "";
  pointer-events: none;
}

.chef-hero__panel::after {
  right: -8rem;
  bottom: -10rem;
}

.chef-hero__copy,
.chef-hero__media,
.chef-download__copy,
.chef-download__action {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.chef-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 29.5rem;
}

.chef-hero__copy h1,
.chef-hero__copy p,
.chef-hero__copy .category-label {
  margin: 0;
}

.chef-hero__lead {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: 1.65;
}

.chef-hero__actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.chef-play-button svg {
  width: 1.125rem;
  min-width: 1.125rem;
  height: 1.125rem;
}

.chef-hero__anchor {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
}

.chef-hero__anchor span {
  margin-left: var(--space-1);
}

.chef-hero__note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.chef-hero__media {
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
  border: var(--border-default);
  border-radius: var(--radius-md);
  background: var(--color-ink-800);
}

.chef-hero__media::after,
.chef-visual-break__figure::after,
.chef-phase__image::after {
  position: absolute;
  inset: 0;
  background: rgb(8 11 18 / 0.16);
  content: "";
  pointer-events: none;
}

.chef-hero__media,
.chef-visual-break__figure,
.chef-phase__image {
  position: relative;
}

.chef-hero__media img,
.chef-visual-break__figure img,
.chef-phase__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chef-hero__media img {
  min-height: 20rem;
  object-position: 68% center;
}

.chef-orientation__intro,
.chef-preparation__intro,
.chef-strategy__intro,
.chef-bonuses__intro,
.chef-diagnosis__intro,
.chef-next-plan__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.chef-orientation__intro {
  max-width: 40rem;
  margin-bottom: var(--space-6);
}

.chef-orientation__intro h2,
.chef-orientation__intro p,
.chef-preparation__intro h2,
.chef-preparation__intro p,
.chef-strategy__intro h2,
.chef-strategy__intro p,
.chef-bonuses__intro h2,
.chef-bonuses__intro p,
.chef-diagnosis__intro h2,
.chef-diagnosis__intro p,
.chef-next-plan__intro h2 {
  margin: 0;
}

.chef-orientation__rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  min-width: 0;
  border: var(--border-default);
  border-radius: var(--radius-md);
  background: var(--color-ink-900);
}

.chef-rule {
  min-width: 0;
  padding: var(--space-5);
}

.chef-rule + .chef-rule {
  border-left: 1px solid var(--color-slate-700);
}

.chef-rule__number,
.chef-check-card__number,
.chef-phase__number,
.chef-next-plan__list > li > span {
  display: block;
  color: var(--color-amber);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
}

.chef-rule h3 {
  margin-top: var(--space-3);
}

.chef-rule h3 span {
  color: var(--color-amber-soft);
}

.chef-rule p {
  margin-bottom: 0;
}

.chef-reading__content {
  width: 66.6667%;
  min-width: 0;
}

.chef-reading__content > .category-label,
.chef-reading__content > h2,
.chef-reading__content > p {
  max-width: 43.75rem;
}

.chef-reading__intro {
  margin-bottom: var(--space-6);
}

.chef-steps {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-5);
}

.chef-step {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: var(--space-4);
  min-width: 0;
}

.chef-step__number {
  color: var(--color-violet);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.chef-step__copy {
  min-width: 0;
}

.chef-step__copy h3 {
  margin-bottom: var(--space-2);
}

.chef-step__copy p {
  max-width: 39rem;
}

.chef-step__closing {
  color: var(--color-amber-soft);
  font-weight: 700;
}

.chef-reading__tip {
  max-width: 42.5rem;
  margin-top: var(--space-6);
}

.chef-preparation__intro {
  max-width: 38.75rem;
  margin-bottom: var(--space-6);
}

.chef-preparation__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  min-width: 0;
}

.chef-check-card {
  min-width: 0;
}

.chef-check-card__body,
.chef-decision-card__body,
.chef-diagnosis-card__body,
.chef-phase__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
}

.chef-check-card__body h3,
.chef-check-card__body p,
.chef-decision-card__body h3,
.chef-decision-card__body p,
.chef-diagnosis-card__body h3,
.chef-diagnosis-card__body p,
.chef-phase__body h3,
.chef-phase__body p {
  margin: 0;
}

.chef-check-card__number--violet,
.chef-phase__number--violet {
  color: var(--color-violet);
}

.chef-check-card--amber {
  border-color: var(--color-amber);
}

.chef-strategy__intro {
  max-width: 41.25rem;
  margin-bottom: var(--space-6);
}

.chef-phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  min-width: 0;
}

.chef-phase {
  position: relative;
  min-width: 0;
}

.chef-phase__body {
  height: 100%;
}

.chef-phase__marker {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--color-amber-soft);
  border-radius: var(--radius-sm);
  transform: rotate(45deg);
}

.chef-phase__marker--violet {
  border-color: var(--color-violet);
}

.chef-phase__marker--amber {
  border-color: var(--color-amber);
}

.chef-phase__image {
  width: 100%;
  height: 10.5rem;
  overflow: hidden;
  border-bottom: var(--border-default);
  background: var(--color-ink-800);
}

.chef-phase__image img {
  object-position: center;
}

.chef-phase--amber {
  border-color: var(--color-amber);
}

.chef-strategy__tip {
  max-width: 51.25rem;
  margin-top: var(--space-6);
}

.chef-bonuses__intro {
  max-width: 38.75rem;
  margin-bottom: var(--space-6);
}

.chef-bonuses__comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  min-width: 0;
}

.chef-decision-card--use {
  border-top: 3px solid var(--color-success);
}

.chef-decision-card--save {
  border-top: 3px solid var(--color-amber-soft);
}

.chef-bonuses__note {
  max-width: 47.5rem;
  margin-top: var(--space-5);
}

.chef-diagnosis__intro {
  max-width: 40rem;
  margin-bottom: var(--space-6);
}

.chef-diagnosis__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  min-width: 0;
}

.chef-diagnosis-card--amber {
  border-top: 3px solid var(--color-amber);
}

.chef-related {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--space-5);
  min-width: 0;
  max-width: 56.25rem;
  margin-top: var(--space-6);
}

.chef-related__heading,
.chef-related__links {
  min-width: 0;
}

.chef-related__heading h3 {
  margin-top: var(--space-2);
  margin-bottom: 0;
}

.chef-related__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.chef-related__links a {
  display: flex;
  min-width: 0;
  min-height: 2.75rem;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}

.chef-related__links a strong {
  font-family: var(--font-heading);
}

.chef-related__links a span {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.chef-visual-break__figure {
  width: 100%;
  height: auto;
  overflow: hidden;
  border: var(--border-default);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  background: var(--color-ink-800);
}

.chef-visual-break__figure img {
  object-position: center;
}

.chef-visual-break__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 41.25rem;
  margin-top: var(--space-5);
}

.chef-visual-break__copy h2,
.chef-visual-break__copy p {
  margin: 0;
}

.chef-visual-break__caption {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.chef-next-plan__intro {
  max-width: 37.5rem;
  margin-bottom: var(--space-6);
}

.chef-next-plan__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chef-next-plan__list > li {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  border: var(--border-default);
  border-radius: var(--radius-md);
  background: var(--color-ink-900);
}

.chef-next-plan__list h3,
.chef-next-plan__list p {
  margin: 0;
}

.chef-next-plan__list h3 {
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
}

.chef-next-plan__list p {
  font-size: var(--text-sm);
  line-height: 1.5;
}

.chef-next-plan__button {
  width: fit-content;
  max-width: 100%;
  margin-top: var(--space-5);
}

.chef-download {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.chef-download__panel {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
}

.chef-download__panel::after {
  right: -7rem;
  top: -11rem;
}

.chef-download__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 32.5rem;
}

.chef-download__copy h2,
.chef-download__copy p {
  margin: 0;
}

.chef-download__action {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
}

.chef-play-button--large {
  min-height: 3rem;
  white-space: nowrap;
}

@media (max-width: 60rem) {
  .chef-hero__panel {
    grid-template-columns: 1fr;
  }

  .chef-hero__copy {
    max-width: 35rem;
  }

  .chef-hero__media {
    height: 18rem;
  }

  .chef-hero__media img {
    min-height: 0;
    object-position: center;
  }

  .chef-preparation__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chef-phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chef-phases > :first-child {
    grid-column: 1 / -1;
  }

  .chef-diagnosis__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chef-diagnosis__grid > :last-child {
    grid-column: 1 / -1;
  }

  .chef-next-plan__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chef-next-plan__list > :nth-child(4) {
    grid-column: 1 / 2;
  }

  .chef-download__panel {
    grid-template-columns: 1fr;
  }

  .chef-download__action {
    justify-content: flex-start;
  }
}

@media (max-width: 47.5rem) {
  .chef-hero__panel,
  .chef-download__panel {
    padding: var(--space-5);
  }

  .chef-orientation__rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chef-orientation__rules > :nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--color-slate-700);
    border-left: 0;
  }

  .chef-reading__content {
    width: 100%;
  }

  .chef-related {
    grid-template-columns: 1fr;
  }

  .chef-related__links {
    grid-template-columns: 1fr;
  }

  .chef-related__links a {
    min-height: 2.75rem;
  }

  .chef-next-plan__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chef-next-plan__list > :nth-child(4),
  .chef-next-plan__list > :nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 45rem) {
  .chef-bonuses__comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .chef-hero__copy {
    max-width: 100%;
  }

  .chef-hero__copy h1 {
    font-size: clamp(2.25rem, 10vw, 2.75rem);
  }

  .chef-hero__media {
    height: clamp(15rem, 70vw, 18.75rem);
  }

  .chef-orientation__rules,
  .chef-preparation__grid,
  .chef-phases,
  .chef-diagnosis__grid,
  .chef-next-plan__list {
    grid-template-columns: 1fr;
  }

  .chef-rule + .chef-rule,
  .chef-orientation__rules > :nth-child(3) {
    border-top: 1px solid var(--color-slate-700);
    border-left: 0;
  }

  .chef-orientation__rules > :nth-child(3),
  .chef-phases > :first-child,
  .chef-diagnosis__grid > :last-child,
  .chef-next-plan__list > :nth-child(4),
  .chef-next-plan__list > :nth-child(5) {
    grid-column: auto;
  }

  .chef-step {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .chef-step__number {
    font-size: var(--text-xl);
  }

  .chef-visual-break__figure {
    aspect-ratio: 4 / 3;
  }

  .chef-next-plan__list > li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .chef-next-plan__button,
  .chef-play-button--large {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .chef-phase,
  .chef-check-card,
  .chef-decision-card,
  .chef-diagnosis-card {
    transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
  }

  .chef-phase:hover {
    transform: translateY(-2px);
  }
}
