.family-week {
  padding-block: clamp(42px, 7vw, 94px);
}

.week-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(26px, 4vw, 52px);
}

.week-header h2 {
  max-width: 17ch;
  font-size: clamp(32px, 4.7vw, 59px);
  line-height: 1.07;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.week-deck {
  max-width: 38ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(16px, 1.65vw, 20px);
}

.week-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.45;
  border-radius: 22px;
  object-fit: cover;
  object-position: center 57%;
}

.week-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.week-stage {
  display: grid;
  grid-template-columns: minmax(112px, .55fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 42px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-block: clamp(20px, 2.5vw, 32px);
}

.week-phase {
  align-self: start;
  padding-top: 3px;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.week-step h3 {
  font-size: clamp(21px, 2.34vw, 29px);
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: pretty;
}

.week-step p {
  margin-top: 7px;
  max-width: 48ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.week-sample {
  align-self: center;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 15px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 15px;
  line-height: 1.48;
}

.week-sample-title {
  color: var(--muted);
  font-weight: 650;
}

.week-sample-list { display: grid; gap: 4px; }

.week-sample-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.week-sample dt { font-weight: 700; }
.week-sample dd { color: var(--green); font-weight: 800; }

.week-dish {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.week-dish img {
  width: 58px;
  height: 48px;
  border-radius: 7px;
  object-fit: cover;
}

.week-dish strong, .week-budget strong { display: block; }
.week-dish small { color: var(--muted); font-size: inherit; }

.week-budget progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-block: 4px 2px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  color: var(--green);
  background: #d7e8dc;
}

.week-budget progress::-webkit-progress-bar { background: #d7e8dc; }
.week-budget progress::-webkit-progress-value { background: var(--green); }
.week-budget progress::-moz-progress-bar { background: var(--green); }

@media (max-width: 850px) {
  .week-stage {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 8px 22px;
  }

  .week-phase {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .week-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .week-image {
    border-radius: 16px;
    aspect-ratio: 2.9;
  }

  .week-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .week-sample {
    margin-top: 6px;
    padding: 10px 12px;
  }
}
