/* Production cooking homepage (E1 layout, no prototype chrome). */

.cook-home {
  --tf-bg: #faf7f4;
  --tf-ink: #1c1917;
  --tf-mute: #7a736c;
  --tf-faint: #a39c94;
  --tf-line: rgba(28, 25, 23, 0.1);
  --tf-accent: #e03150;
  background: var(--tf-bg);
}

.cook-home .page-header,
.cook-home .site-disclaimer {
  background: var(--tf-bg);
}

.cook-context {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  margin: 0 0 0.85rem;
  color: var(--tf-mute);
  font-size: 0.82rem;
}

.cook-context b {
  color: var(--tf-ink);
  font-weight: 650;
}

.cook-pin {
  color: var(--tf-accent);
  font-size: 0.58rem;
}

.pd-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.15rem 24px 2.5rem;
}

.pd-intro {
  padding: 0.2rem 0 1.35rem;
}

.pd-intro .tf-kicker {
  margin: 0 0 0.35rem;
}

.pd-intro h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.pd-intro > p {
  max-width: 32rem;
  margin: 0.75rem 0 0;
  color: var(--tf-mute);
  line-height: 1.5;
}

.pd-empty {
  margin: 0;
  padding: 1.2rem 0 0.4rem;
  color: var(--tf-mute);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pd-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.pd-section-head h2 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.pd-section-head p,
.pd-section-head > span {
  margin: 0.18rem 0 0;
  color: var(--tf-mute);
  font-size: 0.76rem;
}

.pd-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--tf-line);
  border-bottom: 1px solid var(--tf-line);
}

.pd-card {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--tf-line);
  background: transparent;
  min-height: 310px;
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  color: var(--tf-ink);
  font: inherit;
  cursor: pointer;
}

.pd-card:first-child {
  padding-left: 0;
}

.pd-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.pd-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pd-time {
  color: var(--tf-accent);
  font-size: 0.75rem;
  font-weight: 650;
}

.pd-card-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.pd-card:hover .pd-card-title,
.pd-row:hover .pd-row-main b {
  color: var(--tf-accent);
}

.pd-meta {
  margin-top: 0.45rem;
  color: var(--tf-mute);
  font-size: 0.7rem;
}

.pd-desc {
  margin: 0.9rem 0 1.2rem;
  color: var(--tf-mute);
  font-size: 0.78rem;
  line-height: 1.45;
}

.pd-because {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--tf-line);
  color: var(--tf-mute);
  font-size: 0.68rem;
  font-weight: 600;
}

.pd-deals {
  margin-top: 0.4rem;
}

.pd-deals > span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 0.7rem;
}

.pd-deals b {
  font-weight: 650;
}

.pd-more {
  margin-top: 2.15rem;
}

.pd-rows {
  border-top: 1px solid var(--tf-line);
  border-bottom: 1px solid var(--tf-line);
}

.pd-row {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--tf-line);
  background: transparent;
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 72px minmax(190px, 1.15fr) minmax(260px, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.45rem;
  text-align: left;
  color: var(--tf-ink);
  font: inherit;
  cursor: pointer;
}

.pd-row:last-child {
  border-bottom: 0;
}

.pd-row-time {
  color: var(--tf-accent);
  font-size: 1.05rem;
  font-weight: 700;
}

.pd-row-time small {
  margin-left: 0.16rem;
  font-size: 0.65rem;
}

.pd-row-main b,
.pd-row-main small,
.pd-row-deals small,
.pd-row-deals span {
  display: block;
}

.pd-row-main b {
  font-size: 0.88rem;
  letter-spacing: -0.015em;
}

.pd-row-main small,
.pd-row-deals small {
  margin-top: 0.15rem;
  color: var(--tf-mute);
  font-size: 0.65rem;
}

.pd-row-deals span {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.pd-footer {
  margin-top: 1.5rem;
  padding: 1rem 0 0;
  display: flex;
  gap: 0.55rem;
  color: var(--tf-mute);
  font-size: 0.78rem;
}

.pd-footer b {
  color: var(--tf-ink);
}

.tf-kicker {
  margin: 1.15rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tf-mute);
}

.tf-name {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.tf-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.tf-prices {
  margin: 0.28rem 0 0;
  font-size: 0.84rem;
  color: var(--tf-mute);
  line-height: 1.45;
}

.tf-prices b {
  font-weight: 600;
  color: var(--tf-ink);
}

.tf-note {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--tf-mute);
}

.tf-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tf-sheet {
  background: var(--tf-bg);
  width: min(520px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 20px 20px 0 0;
  padding: 1.35rem 1.3rem 1.6rem;
}

.tf-sheet .tf-name {
  font-size: 1.45rem;
}

.tf-sheet .tf-time {
  font-size: 1.2rem;
}

.tf-sheet-close {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--tf-mute);
  cursor: pointer;
  margin-top: 1.1rem;
  padding: 0;
}

.tf-ingredients-label {
  margin: 0.85rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tf-mute);
}

.tf-ingredients {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.tf-ingredients li {
  padding: 0.12rem 0;
}

.cook-tools {
  padding-top: 0.5rem;
}

.cook-tools-intro {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--tf-mute);
  font-size: 0.92rem;
}

.cook-signup-top {
  margin: 0.85rem 0 0.35rem;
}

.cook-home .hub-shell {
  padding-top: 0.25rem;
}

.cook-home .hub-shell > #cook-root .pd-main {
  max-width: none;
  padding: 1.35rem 0 2rem;
}

.cook-home #picks-section {
  padding-top: 1.15rem;
}

.cook-home #picks-section h1 {
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

body.cook-home[data-aislecheck-variant="4"] .hub-hero-actions-split {
  grid-template-areas: "side aislecheck";
}

.cook-home #picks-section .hub-section-header {
  margin-bottom: 0.75rem;
}

.cook-home .hub-picks-cat-columns {
  gap: 16px 16px;
}

@media (max-width: 839px) {
  body.cook-home[data-aislecheck-variant="4"] .hub-hero-actions-split {
    grid-template-areas:
      "side"
      "aislecheck";
  }
}

@media (max-width: 800px) {
  .pd-intro h2 {
    font-size: 1.7rem;
  }

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

  .pd-card:nth-child(2) {
    border-right: 0;
  }

  .pd-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--tf-line);
  }

  .pd-card:first-child,
  .pd-card:last-child {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pd-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .pd-row-deals {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .pd-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pd-section-head > span {
    display: none;
  }

  .pd-card-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-bottom: 0;
    scrollbar-width: none;
  }

  .pd-card {
    flex: 0 0 78%;
    min-height: 286px;
    scroll-snap-align: start;
    border-bottom: 0 !important;
    padding: 0.9rem 1rem !important;
  }

  .pd-card:first-child {
    padding-left: 0 !important;
  }

  .pd-row {
    min-height: 88px;
    gap: 0.65rem;
  }

  .pd-row-deals span {
    line-height: 1.4;
  }
}

@media (min-width: 720px) {
  .tf-overlay {
    align-items: center;
    padding: 2rem;
  }

  .tf-sheet {
    border-radius: 20px;
  }
}
