/* Routine idea pages (site/build-routines.py). Loaded after landing.css and uses its tokens. */
.routine h1 { font-size:clamp(34px, 6vw, 56px); line-height:1.1; margin:0 0 14px; }
[dir="rtl"].routine h1 { line-height:1.35; }
.routine .band:first-of-type { padding-top:48px; }
.crumbs { margin:0 0 14px; font-weight:600; }
.crumbs a { color:var(--grape-deep); text-decoration:none; }
.crumbs a:hover { text-decoration:underline; }

.sheet { margin-top:32px; background:var(--card); border:1px solid var(--line); border-radius:28px; padding:20px; box-shadow:var(--shadow-sm); }
.sheet-head, .sheet-foot { display:none; }
.cards.steps { grid-template-columns:repeat(6, 1fr); gap:14px; }
.cards.steps.n3 { grid-template-columns:repeat(3, 1fr); max-width:640px; margin-inline:auto; }
.cards.steps.n5 { grid-template-columns:repeat(5, 1fr); }
.cards.steps li { font-size:16px; padding:10px 10px 14px; }
.cards.steps li img { height:auto; }
.cards.steps li .n { width:28px; height:28px; font-size:14px; top:16px; inset-inline-start:16px; }
.cards.steps .lbl { display:block; }
.cards.steps .box { display:none; }
@media (max-width: 900px) { .cards.steps, .cards.steps.n5 { grid-template-columns:repeat(3, 1fr); } }
@media (max-width: 520px) { .cards.steps, .cards.steps.n5, .cards.steps.n3 { grid-template-columns:repeat(2, 1fr); } }

.actions { margin-top:24px; }
.routine button.btn { border:0; cursor:pointer; font:inherit; font-weight:700; }
.routine .prose h2 { margin-top:0; }
.tips { margin:0; padding-inline-start:22px; display:grid; gap:10px; font-size:18px; line-height:1.6; }
.routine .said { margin:18px 0; }
.routine .said b { display:block; }

.tiles { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; margin-top:28px; }
@media (max-width: 900px) { .tiles { grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns:1fr; } }
.tile { display:grid; gap:6px; padding:14px 14px 16px; border-radius:24px; background:var(--card); border:1px solid var(--line); color:var(--ink); text-decoration:none; box-shadow:var(--shadow-sm); transition:transform .3s var(--ease), border-color .3s; }
.tile:hover, .tile:focus-visible { transform:translateY(-3px); border-color:var(--grape); }
.tile .thumbs { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin-bottom:6px; }
.tile .thumbs img { width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:14px; background:var(--pic); }
.tile b { font-size:19px; }
.tile span:last-child { color:var(--muted); font-size:15px; }
@media (prefers-reduced-motion: reduce) { .tile { transition:none; } .tile:hover, .tile:focus-visible { transform:none; } }

/* The printed sheet: only the routine, on white, with a box to tick under each step. */
@page { size:A4 portrait; margin:14mm; }
@media print {
  :root { --ink:#1F2147; --muted:#5A5D7E; --ground:#fff; --card:#fff; --line:#D9D6EA; --linen:#fff; --pic:#fff; }
  html, body { background:#fff !important; color:#1F2147; }
  header.top, footer, .crumbs, .routine h1, .routine .lede, .actions, .band.alt, .band:last-of-type, .bar { display:none !important; }
  .band, .routine .band:first-of-type { padding:0 !important; background:none !important; }
  .wrap { max-width:none; padding:0; }
  .sheet { margin:0; padding:0; border:0; box-shadow:none; border-radius:0; }
  .sheet-head { display:flex; justify-content:space-between; align-items:baseline; margin:0 0 8mm; font-size:15pt; }
  .sheet-head b { font-size:26pt; }
  .sheet-head span, .sheet-foot { color:#5A5D7E; font-size:11pt; }
  .sheet-foot { display:block; margin:8mm 0 0; text-align:center; }
  .cards.steps, .cards.steps.n5, .cards.steps.n3 { grid-template-columns:repeat(3, 1fr); gap:6mm; max-width:none; }
  .cards.steps li { border:1.5pt solid #D9D6EA; border-radius:6mm; padding:3mm 3mm 4mm; font-size:15pt; break-inside:avoid; background:#fff; }
  .cards.steps li img { border-radius:4mm; margin-bottom:2mm; }
  .cards.steps li .n { background:#1F2147; color:#fff; box-shadow:none; width:9mm; height:9mm; font-size:13pt; top:5mm; inset-inline-start:5mm; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .cards.steps .box { display:block; width:9mm; height:9mm; margin:3mm auto 0; border:1.5pt solid #1F2147; border-radius:2mm; }
}
