/* Shared styles for the step-by-step guide pages.
   Built pages link this before styles.css (same cascade as the old inline block).
   Edit here; every guide page picks it up. */
.recipe-table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px var(--card-shadow); }
.recipe-table th, .recipe-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--card-border); }
.recipe-table th { color: var(--primary); font-weight: 600; }
.recipe-table td.num, .recipe-table th.num { text-align: right; white-space: nowrap; }
.recipe-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }
@media (max-width: 480px) { .recipe-table th, .recipe-table td { padding: 8px 8px; font-size: 0.92em; } }
.recipe-note { color: var(--text-muted); font-size: 0.95em; }
.container ol { padding-left: 28px; }
.container ol li { margin-bottom: 6px; }
.page-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.howto-overview { background: var(--surface); border: 1px solid var(--card-border); border-radius: 12px; padding: 16px 20px; margin: 20px 0 28px; box-shadow: 0 2px 12px var(--card-shadow); }
.howto-overview-title { font-weight: 600; color: var(--primary); margin: 0 0 8px; }
.howto-overview ol { margin: 0 0 8px; }
.howto-overview ol li { margin-bottom: 2px; }
.howto-time { margin: 8px 0 0; color: var(--text-muted); font-size: 0.95em; }
.safety-box { border-left: 4px solid #d9822b; background: var(--surface); border-radius: 8px; padding: 8px 16px; margin: 12px 0 16px; }
.container h2[id] { scroll-margin-top: 80px; }
.container ol + p, .container ul + p { margin-top: 14px; }
.step-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 12px; padding: 4px 20px 12px; margin: 24px 0; box-shadow: 0 2px 12px var(--card-shadow); }
.step-card h2 { margin-top: 16px; }
.step-card .recipe-table { box-shadow: none; border: 1px solid var(--card-border); }
.step-card .safety-box { background: rgba(217, 130, 43, 0.08); }
@media (max-width: 480px) { .step-card { padding: 2px 14px 10px; } }
.print-row { margin: 12px 0 0; }
.container .print-btn { font: inherit; cursor: pointer; }
.print-only { display: none; }
/* Video (optional per recipe): thumbnail first, YouTube loads only on tap. */
.video-embed { margin: 20px 0 28px; }
.video-embed .video-play, .video-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 2px 12px var(--card-shadow); }
.video-embed .video-play { position: relative; padding: 0; cursor: pointer; }
.video-embed .video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play-icon { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(0, 0, 0, 0.72); }
.video-play-icon::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video-embed .video-play:hover .video-play-icon, .video-embed .video-play:focus-visible .video-play-icon { background: #c4302b; }
.video-embed figcaption { margin-top: 8px; color: var(--text-muted); font-size: 0.95em; }
.step-video { margin: 0 0 8px; font-size: 0.95em; }
/* On-this-page list */
.page-toc ul { margin: 8px 0 20px; padding-left: 22px; }

/* App screenshot (phone-sized) */
.app-shot { margin: 16px auto 24px; max-width: 280px; text-align: center; }
.app-shot img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 2px 12px var(--card-shadow); border: 1px solid var(--card-border); }
.app-shot figcaption { margin-top: 8px; color: var(--text-muted); font-size: 0.9em; text-align: left; }
@media print {
  @page { margin: 10mm; }
  body { background: #fff !important; color: #000 !important; font-size: 9.5pt; }
  header, footer, .container:not(.print-full) > *:not(h1):not(.step-card):not(.print-only) { display: none !important; }
  .print-full .page-cta-row, .print-full .app-shot, .print-full .video-embed, .print-full .page-toc { display: none !important; }
  .print-full h2 { font-size: 12pt; margin: 10px 0 4px; break-after: avoid; }
  .print-full h3 { font-size: 10.5pt; margin: 6px 0 2px; break-after: avoid; background: none !important; color: #000 !important; padding: 0 !important; }
  .print-full p, .print-full li { margin: 0 0 2px; line-height: 1.3; color: #000; }
  .print-full .recipe-table { margin: 4px 0; border: 1px solid #999; box-shadow: none; }
  .print-full .recipe-table th, .print-full .recipe-table td { padding: 2px 8px; color: #000; }
  .container { padding: 0 !important; max-width: none !important; }
  .container h1 { font-size: 15pt; margin: 0 0 2px; color: #000; }
  .print-only { display: block; font-size: 8.5pt; color: #444; margin: 0 0 6px; }
  .step-card { background: none; border: none; border-top: 1px solid #999; border-radius: 0; box-shadow: none; padding: 2px 0 4px; margin: 0; }
  .step-card h2 { font-size: 11.5pt; margin: 6px 0 3px; color: #000; break-after: avoid; }
  .step-card h2::before { content: "\2610\00a0\00a0"; }
  .step-card h3 { font-size: 10pt; margin: 5px 0 2px; }
  .step-card p, .step-card li { margin: 0 0 2px; line-height: 1.3; color: #000; }
  .container ol + p, .container ul + p { margin-top: 4px; }
  .container .step-card a { color: #000 !important; text-decoration: none !important; }
  .step-card:not([data-step="2"]):not([data-step="3"]) ul { list-style: none; padding-left: 4px; }
  .step-card:not([data-step="2"]):not([data-step="3"]) li::before { content: "\2610\00a0"; }
  .step-video { display: none !important; }
  .step-card .recipe-table { margin: 4px 0; border: 1px solid #999; }
  .step-card .recipe-table th, .step-card .recipe-table td { padding: 2px 8px; color: #000; }
  .step-card .safety-box { background: none; border-left: 3px solid #000; padding: 2px 10px; margin: 4px 0; }
  .step-card table, .step-card .safety-box, .step-card li { break-inside: avoid; }
}
