/* Pizza Dough Schedule page styles for PieForge (loads after recipe.css) */

/* Prose */
.schedule .recipe-section > p {
  line-height: var(--line-height-relaxed);
}

.prose-list {
  margin: 0 0 var(--space-4) var(--space-8);
  line-height: var(--line-height-relaxed);
}

ul.prose-list { list-style: disc; }
ol.prose-list { list-style: decimal; }

.prose-list li {
  margin-bottom: var(--space-2);
}

.prose-list li::marker {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.recipe-section h3.section-subhead {
  margin-top: var(--space-10);
}

/* Short callouts: the quick answer and the time-saving tip */
.callout {
  background-color: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  line-height: var(--line-height-relaxed);
  text-align: left;
}

.callout p {
  margin: 0;
}

.recipe-section .callout {
  margin-top: var(--space-6);
}

/* Worked-example summary strip (reuses .recipe-meta) */
.recipe-meta.schedule-summary {
  margin-bottom: var(--space-8);
}

/* Timeline table */
.timeline-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.timeline-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: var(--space-3);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
}

.timeline-table th,
.timeline-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-gray-100);
  line-height: var(--line-height-relaxed);
}

.timeline-table thead th {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-table tbody th {
  width: 1%;
  white-space: nowrap;
  color: var(--color-primary-dark);
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
}

.timeline-table tbody tr:last-child th,
.timeline-table tbody tr:last-child td {
  border-bottom: none;
}

/* A table of "how long before you eat" rows (recipe pages): the first column may wrap on a phone. */
.timeline-table.is-relative tbody th {
  width: 8.5rem;
  white-space: normal;
}

@media (min-width: 640px) {
  .timeline-table.is-relative tbody th {
    width: 13rem;
  }
}

/* Links in running text here use the darker brand orange (the lighter one is 3:1 on the page background)
   and are underlined, so they do not depend on color alone. */
.table-note a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.timeline-table .is-eat th,
.timeline-table .is-eat td {
  background-color: rgba(224, 107, 45, 0.08);
}

.step-name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.step-duration {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0 var(--space-2);
  border: 1px solid rgba(224, 107, 45, 0.3);
  border-radius: var(--radius-full);
  background-color: var(--color-flour);
  color: var(--color-primary-dark);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.step-detail {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-muted);
}

.table-note {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
}

/* Closing call to action (same palette as the home page download card) */
.schedule-cta {
  max-width: 800px;
  margin: var(--space-16) auto 0;
  padding: clamp(2rem, 6vw, 3.5rem);
  border-radius: 32px;
  background: linear-gradient(130deg, var(--color-primary-dark), #7d2f17);
  box-shadow: 0 30px 80px rgba(133, 48, 18, 0.22);
  color: var(--color-white);
  text-align: center;
}

.schedule-cta h2 {
  color: var(--color-white);
}

.schedule-cta p {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

.schedule-cta .play-badge {
  display: inline-block;
  margin-top: var(--space-2);
  border-radius: 10px;
  transition: transform var(--transition-fast);
}

.schedule-cta .play-badge:hover {
  transform: translateY(-2px);
}

.schedule-cta .play-badge img {
  width: 224px;
  height: auto;
}

.schedule-cta .play-badge:focus-visible {
  outline-color: var(--color-white);
}

.schedule-cta .cta-fineprint {
  max-width: none;
  margin: var(--space-4) auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--font-size-sm);
}

@media (max-width: 640px) {
  .recipe-meta.schedule-summary {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-table th,
  .timeline-table td {
    padding: var(--space-3);
  }

  .prose-list {
    margin-left: var(--space-6);
  }
}
