/* Feast day recipes: hub (/recipes) and recipe pages (/recipes/{slug}). Builds on resources.css. */

/* ── Hub ─────────────────────────────────────────────────────────────── */
.recipe-hub-hero h1 { max-width: 15ch; }
.recipe-hub-hero h1 span, .recipe-page h1 span { color: var(--resource-gold); }
.recipe-season-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.recipe-season-nav a { padding: .5rem .95rem; border: 1px solid #52627b; border-radius: 999px; color: var(--resource-text); text-decoration: none; font-size: .9rem; font-weight: 650; }
.recipe-season-nav a:hover { border-color: var(--resource-gold); color: var(--resource-gold); }
.recipe-season { scroll-margin-top: 1.5rem; }
.recipe-calendar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.recipe-tile { display: flex; gap: 1.2rem; padding: 1.4rem; border-radius: 1rem; background: var(--resource-paper); color: #1e293b; box-shadow: 0 7px 22px #0002; }
.recipe-tile-date { flex: 0 0 68px; height: 74px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: .75rem; background: #fef3c7; color: #78350f; line-height: 1.05; text-align: center; }
.recipe-tile-date span { font-size: .75rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.recipe-tile-date strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 400; }
.recipe-tile-feast { margin: 0 0 .3rem; color: #92400e; font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.recipe-tile h3 { margin: 0 0 .5rem; font-size: 1.2rem; line-height: 1.3; }
.recipe-tile h3 a { color: #0f172a; text-decoration: none; }
.recipe-tile h3 a::after { content: " →"; color: #92400e; }
.recipe-tile h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.recipe-tile p { margin: 0 0 .6rem; color: #475569; font-size: .93rem; line-height: 1.6; }
.recipe-tile .recipe-tile-meta { margin: 0; color: #64748b; font-size: .82rem; font-weight: 600; }
.recipe-tile .recipe-tile-allergens { margin: .3rem 0 0; color: #9a3412; font-size: .8rem; font-weight: 650; }
.recipe-hub-safety { margin: 0 0 1rem; padding: 1.4rem 1.6rem; border: 1px solid rgba(251, 191, 36, .45); border-left: 4px solid var(--resource-gold); border-radius: .75rem; background: rgba(251, 191, 36, .07); }
.recipe-hub-safety h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.recipe-hub-safety p { margin: 0; max-width: 52rem; color: var(--resource-muted); }
.recipe-hub-safety strong { color: var(--resource-text); }
.recipe-tile a:focus-visible { outline-color: #92400e; }
.recipe-hub-faq { max-width: 840px; }
.recipe-hub-callout { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.recipe-hub-links { display: flex; flex-direction: column; gap: .75rem; flex-shrink: 0; }

/* ── Recipe page ─────────────────────────────────────────────────────── */
.recipe-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .4rem; list-style: none; margin: 0; padding: 1.25rem 0 0; font-size: .85rem; color: var(--resource-muted); }
.recipe-crumbs li:not(:last-child)::after { content: "›"; margin-left: .4rem; color: #64748b; }
.recipe-crumbs a { display: inline-block; padding: .5rem 0; color: var(--resource-muted); }
.recipe-hero { padding: 2rem 0 2.5rem; }
.recipe-hero h1 { max-width: 18ch; font-size: clamp(2.4rem, 5vw, 4rem); }
.recipe-summary { max-width: 46rem; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; padding: 0; }
.recipe-facts div { min-width: 7.5rem; padding: .7rem 1rem; border: 1px solid var(--resource-border); border-radius: .75rem; background: var(--resource-panel); }
.recipe-facts dt { color: var(--resource-gold); font-size: .75rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.recipe-facts dd { margin: .15rem 0 0; font-weight: 650; }
.recipe-notice { max-width: 46rem; margin: 0 0 1.5rem; padding: 1rem 1.2rem; border: 1px solid rgba(251, 191, 36, .45); border-left: 4px solid var(--resource-gold); border-radius: .6rem; background: rgba(251, 191, 36, .07); }
.recipe-notice p { margin: 0; color: var(--resource-text); font-size: .95rem; }
.recipe-notice p + p { margin-top: .45rem; }
.recipe-notice strong { color: var(--resource-gold); }
.recipe-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.recipe-downloads { margin: 1rem 0 0; font-size: .9rem; }
.recipe-story { max-width: 46rem; padding: 2.5rem 0; border-top: 1px solid rgba(148, 163, 184, .16); }
.recipe-story p { color: var(--resource-muted); }
.recipe-extra-link { margin-top: 1.25rem; }

.recipe-card { scroll-margin-top: 1.5rem; margin: 0 0 3rem; padding: 2.5rem; border-radius: 1.2rem; background: var(--resource-paper); color: #1e293b; box-shadow: 0 16px 55px #0003; }
.recipe-card h2, .recipe-card h3, .recipe-card h4 { color: #0f172a; }
.recipe-card-head { padding-bottom: 1.25rem; border-bottom: 2px solid #e7e0cf; }
.recipe-card-feast { margin: 0 0 .4rem; color: #92400e; font-size: .8rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.recipe-card-head h2 { margin: 0 0 .8rem; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.recipe-card-facts { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.recipe-card-facts span { color: #92400e; font-weight: 700; }
.recipe-safety { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.recipe-safety > div { padding: .9rem 1.1rem; border: 2px solid #b45309; border-radius: .7rem; background: #fff7ed; }
.recipe-safety h3 { margin: 0 0 .35rem; color: #7c2d12; font-size: .9rem; }
.recipe-safety p { margin: 0; font-size: .92rem; line-height: 1.55; color: #431407; }
.recipe-card-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: 2.5rem; padding: 1.5rem 0; }
.recipe-card h3 { margin: 0 0 .75rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; }
.recipe-card h4 { margin: 1rem 0 .4rem; font-size: .95rem; }
.recipe-ingredients ul { margin: 0; padding-left: 1.1rem; }
.recipe-ingredients li { margin-bottom: .45rem; line-height: 1.5; }
.recipe-method ol { margin: 0; padding-left: 1.4rem; }
.recipe-method li { margin-bottom: .75rem; padding-left: .3rem; line-height: 1.6; }
.recipe-method li::marker { color: #92400e; font-weight: 750; }
.recipe-card-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 1.25rem 0; border-top: 1px solid #e7e0cf; }
.recipe-card-foot ul { margin: 0; padding-left: 1.1rem; }
.recipe-card-foot li { margin-bottom: .4rem; line-height: 1.5; font-size: .95rem; }
.recipe-blessing { padding: 1.1rem 1.3rem; border-radius: .8rem; background: #fef3c7; }
.recipe-blessing h3 { margin-bottom: .4rem; color: #78350f; }
.recipe-blessing p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.05rem; color: #3f2a0d; }
.recipe-card-credit { margin: 1rem 0 0; font-size: .75rem; color: #64748b; text-align: center; }

.recipe-faq { max-width: 840px; padding: 1rem 0 2.5rem; }
.recipe-related { padding: 2.5rem 0 1rem; border-top: 1px solid rgba(148, 163, 184, .16); }
.recipe-related-grid { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1.25rem 0; }
.recipe-coloring { display: flex; align-items: center; gap: 1rem; flex: 1 1 320px; max-width: 460px; padding: 1rem; border: 1px solid var(--resource-border); border-radius: 1rem; background: var(--resource-panel); color: var(--resource-text); text-decoration: none; }
.recipe-coloring img { width: 96px; height: auto; aspect-ratio: 5 / 6; background: #fff; border-radius: 4px; }
.recipe-coloring strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.recipe-coloring .eyebrow { display: block; margin-bottom: .35rem; }
.recipe-coloring:hover strong { color: var(--resource-gold); }
.recipe-mini-list { display: grid; gap: .75rem; flex: 2 1 360px; list-style: none; margin: 0; padding: 0; }
.recipe-mini-list a { display: block; padding: .85rem 1rem; border: 1px solid var(--resource-border); border-radius: .8rem; color: var(--resource-text); text-decoration: none; }
.recipe-mini-list a:hover { border-color: var(--resource-gold); }
.recipe-mini-list strong { display: block; }
.recipe-mini-list span { color: var(--resource-muted); font-size: .85rem; }
.recipe-mini-date { display: block; color: var(--resource-gold) !important; font-size: .75rem !important; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 860px) {
  .recipe-calendar { grid-template-columns: 1fr; }
  .recipe-hub-callout { display: block; }
  .recipe-hub-links { flex-direction: row; flex-wrap: wrap; margin-top: 1rem; }
}
@media (max-width: 700px) {
  .recipe-card { padding: 1.5rem 1.25rem; margin-left: -.25rem; margin-right: -.25rem; }
  .recipe-card-body, .recipe-card-foot, .recipe-safety { grid-template-columns: 1fr; gap: 1.25rem; }
  .recipe-facts div { min-width: 0; flex: 1 1 40%; }
  .recipe-tile { padding: 1.1rem; gap: .9rem; }
  .recipe-tile-date { flex-basis: 56px; height: 64px; }
  .recipe-tile-when { display: none; }
  .recipe-hero { padding-top: 1rem; }
  .recipe-actions .button { flex: 1 1 100%; }
  .recipe-hub-safety { padding: 1.1rem 1.2rem; }
  .recipe-mini-list a, .recipe-coloring { padding: .9rem; }
}

/* ── Print: only the recipe card, on one page ───────────────────────── */
@media print {
  @page { size: auto; margin: 12mm; }
  html, body.resource-page { background: #fff !important; color: #000 !important; }
  body.recipe-page .resource-main > :not(.recipe), .recipe > :not(.recipe-card), .recipe-crumbs { display: none !important; }
  .recipe-card { margin: 0; padding: 0; box-shadow: none; border-radius: 0; background: #fff; color: #000; font-size: 10.5pt; line-height: 1.4; }
  .recipe-card-head { padding-bottom: 2.5mm; }
  .recipe-card-head h2 { font-size: 21pt; margin-bottom: 2mm; }
  .recipe-card-feast { font-size: 9pt; }
  .recipe-card-facts { font-size: 10pt; }
  .recipe-card-body { grid-template-columns: 34% 1fr; gap: 7mm; padding: 3mm 0; }
  .recipe-card h3 { font-size: 10.5pt; margin-bottom: 2.5mm; }
  .recipe-card h4 { font-size: 10.5pt; margin: 3mm 0 1mm; }
  .recipe-ingredients li { margin-bottom: 1mm; font-size: 10.5pt; }
  .recipe-card-foot li { margin-bottom: .6mm; font-size: 9.5pt; }
  .recipe-method li { margin-bottom: 1.6mm; font-size: 10.5pt; line-height: 1.4; }
  .recipe-card-foot { gap: 7mm; padding: 2.5mm 0; }
  .recipe-blessing { padding: 2mm 4mm; background: none; border: 1px solid #999; }
  .recipe-blessing h3 { color: #000; }
  .recipe-blessing p { font-size: 10pt; color: #000; }
  .recipe-card-feast, .recipe-card-facts span, .recipe-method li::marker { color: #000; }
  .recipe-card-credit { margin-top: 2mm; font-size: 7.5pt; color: #333; }
  .recipe-safety { gap: 4mm; margin-top: 2.5mm; }
  .recipe-safety > div { padding: 1.5mm 3mm; border: 1.5pt solid #000; background: #fff; }
  .recipe-safety h3, .recipe-safety p { color: #000; }
  .recipe-safety h3 { font-size: 9pt; margin-bottom: .8mm; }
  .recipe-safety p { font-size: 9pt; line-height: 1.35; }
  .recipe-card-body, .recipe-card-foot, .recipe-blessing, .recipe-safety { break-inside: avoid; }
}

/* Long recipes: the build adds .print-compact when the card would not fit one page. */
@media print {
  .print-compact .recipe-card { font-size: 9.5pt; line-height: 1.32; }
  .print-compact .recipe-card-head h2 { font-size: 18pt; }
  .print-compact .recipe-ingredients li, .print-compact .recipe-method li { font-size: 9.5pt; margin-bottom: .8mm; line-height: 1.32; }
  .print-compact .recipe-card-foot li { font-size: 8.5pt; }
  .print-compact .recipe-safety p, .print-compact .recipe-blessing p { font-size: 8.8pt; }
  .print-compact .recipe-card-body { gap: 5mm; padding: 2mm 0; }
}
