/* The routine-chart pages (docs/landing-pages/routines.mjs). Builds on
   chores.css: the nav, the hero, the picture cards to pick, the sheet's paper
   and the night. Here: the switch between the routines and the two routines
   of the sheet, steps in order with a circle to tick, one A4 page portrait. */
.rc-for{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-top:22px}
.rc-for span{font-weight:700;color:var(--ink-2)}
.rc-for button{padding:10px 22px;border-radius:999px;background:var(--sand);color:var(--cinnamon);font-family:var(--f-display);font-weight:700;font-size:var(--fs-l);
  box-shadow:inset 0 0 0 2px transparent;transition:background .2s ease,box-shadow .2s ease}
.rc-for button[aria-pressed="true"]{background:var(--honey);color:#3F2D12;box-shadow:inset 0 0 0 2px rgba(63,45,18,.18)}

.rc-sheet{max-width:900px}
.rc-routine+.rc-routine{margin-top:26px;padding-top:22px;border-top:1px dashed var(--line)}
.rc-routine h2{display:inline-block;font-family:var(--f-app);font-weight:600;font-size:30px;line-height:1.1;outline:none;border-bottom:2px dashed transparent}
.rc-routine h2:hover,.rc-routine h2:focus{border-bottom-color:var(--honey)}
.rc-routine.empty{opacity:.45}
.rc-routine ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 18px;margin-top:14px;counter-reset:step}
.rc-routine li{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;counter-increment:step}
.rc-routine li[hidden]{display:none}
.rc-routine li::before{content:counter(step);position:absolute;top:-7px;left:-7px;z-index:1;width:28px;height:28px;border-radius:50%;
  background:var(--honey);color:#3F2D12;font-family:var(--f-display);font-weight:800;font-size:15px;display:grid;place-items:center}
.rc-routine li img{width:100%;aspect-ratio:1;border-radius:16px;box-shadow:0 1px 3px rgba(var(--sh),.14)}
.rc-routine li span{flex:1;margin-top:8px;font-family:var(--f-display);font-weight:700;font-size:17px;line-height:1.1;color:var(--cinnamon);text-wrap:balance;overflow-wrap:break-word}
.rc-routine li i{width:30px;height:30px;margin-top:8px;border-radius:50%;border:2px solid #E3C58F}
.rc-hint{margin-top:18px;color:var(--ink-2);font-size:var(--fs-s)}

@media (max-width:720px){
  .rc-routine h2{font-size:22px}
  .rc-routine ol{gap:12px 10px}
  .rc-routine li::before{width:22px;height:22px;font-size:12px;top:-5px;left:-5px}
  .rc-routine li img{border-radius:10px}
  .rc-routine li span{font-size:12px}
  .rc-routine li i{width:20px;height:20px}
}

@media print{
  @page{size:A4 portrait;margin:10mm}
  .rc-routine.empty,.rc-hint{display:none!important}
  .rc-routine+.rc-routine{margin-top:6mm;padding-top:5mm}
  .rc-routine h2{font-size:26px;border:0}
  .rc-routine ol{gap:4mm 6mm;margin-top:3mm;padding:0 4mm}
  .rc-routine li{break-inside:avoid}
  .rc-routine li img{width:34mm;box-shadow:none;border:1px solid #EADFCB}
  .rc-routine li span{font-size:14px;margin-top:2mm}
  .rc-routine li i{width:7mm;height:7mm;margin-top:2mm;border-color:#C9A15B}
  .rc-routine li::before{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
