/* Cycle of Prayer launch schedule: a two-week calendar and a readiness tracker, in the Cycle Rules visual language. */
.launch-schedule{--done:#205943;--progress:#b38a3a;--waiting:#a8714f;--todo:#c9d1c6;max-width:1200px;margin:0 auto 64px;color:var(--ink)}
.launch-schedule[hidden]{display:none}
.launch-heading{font:400 clamp(28px,3.2vw,40px)/1.18 var(--serif);color:#193e31;letter-spacing:-.4px;margin:0 0 6px;text-wrap:balance}

.launch-loading,.launch-error{font-size:15px;color:#4e6257;padding:24px 0}
.launch-error{color:#843b20}

/* Calendar */
.launch-calendar-section{padding:8px 0 8px}
.launch-week{margin-top:18px}
.launch-week-title{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;font-size:14px;font-weight:600;color:#193e31;margin:0 0 10px}
.launch-week-title span{font-weight:400;color:#4e6257}
.launch-calendar{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:2px solid #a18a4c;border-left:1px solid #d8ded7}
.launch-day{min-height:108px;padding:10px 11px 11px;border-right:1px solid #d8ded7;border-bottom:1px solid #d8ded7;background:var(--surface);display:flex;flex-direction:column;gap:6px}
.launch-day.is-weekend{background:#eef2e9}
.launch-day.is-past .launch-day-head{opacity:.62}
.launch-day.is-today{box-shadow:inset 0 0 0 2px var(--done)}
.launch-day-head{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:end}
.launch-weekday{grid-column:1/-1;font-size:11px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:#776330}
.launch-date{font:400 28px/1 var(--serif);color:#193e31;font-variant-numeric:lining-nums}
.launch-month{font-size:12px;color:#4e6257;padding-bottom:4px}
.launch-today{align-self:flex-start;font-size:11px;font-weight:600;color:#fff;background:var(--done);border-radius:20px;padding:3px 9px}
.launch-events{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.launch-events li{font-size:13px;font-weight:600;line-height:1.4;color:#193e31;background:#f4ecd6;border:1px solid #dacfb5;border-radius:4px;padding:6px 8px}

/* The spare week is time held back, not planned: hatched days, a dashed edge and its own label. */
.launch-week.is-spare{margin-top:24px;padding:14px 14px 16px;background:#faf6ea;border:1px dashed #b9a064;border-radius:8px}
.launch-week.is-spare .launch-week-title{font-size:16px}
.launch-week.is-spare .launch-week-title::before{content:"";width:14px;height:14px;border-radius:3px;background:repeating-linear-gradient(135deg,#e7d9b3 0 3px,#faf6ea 3px 6px);border:1px solid #b9a064;align-self:center}
.launch-week-note{margin:-4px 0 12px;font-size:13px;color:#5d5233}
.launch-week.is-spare .launch-calendar{border-top:2px dashed #b9a064}
.launch-week.is-spare .launch-day{background:repeating-linear-gradient(135deg,#f4ecd6 0 6px,#fffdf6 6px 14px)}
.launch-week.is-spare .launch-day.is-weekend{background:repeating-linear-gradient(135deg,#e6e9d8 0 6px,#f3f5ec 6px 14px)}
.launch-week.is-spare .launch-date{color:#6b5a2e}

/* Readiness */
.launch-tracker{margin-top:56px}
.launch-tracker-head{display:grid;gap:10px;margin-bottom:26px}
.launch-summary{margin:0;font-size:15px;line-height:1.6;color:#33463c;max-width:70ch}
.launch-summary strong{color:#193e31}
.launch-key{list-style:none;display:flex;flex-wrap:wrap;gap:8px 22px;margin:4px 0 0;padding:0;font-size:13px;color:#33463c}
.launch-key li{display:flex;align-items:center;gap:8px}
.launch-key .launch-check-mark{margin-top:0}
.launch-areas{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);gap:48px;align-items:start}
.launch-area{border-top:2px solid #a18a4c;padding-top:20px;min-width:0}
.launch-area-head{display:grid;gap:8px;margin-bottom:6px}
.launch-area-head h3{font:400 26px/1.2 var(--serif);color:#193e31;margin:0}
.launch-area-head p{margin:0;font-size:13px;color:#4e6257;font-variant-numeric:tabular-nums}
.launch-bar{display:flex;gap:3px;height:10px}
.launch-bar span{flex:1;border-radius:2px;background:var(--todo)}
.launch-bar .is-done{background:var(--done)}
.launch-bar .is-in_progress{background:var(--progress)}
.launch-bar .is-waiting{background:var(--waiting)}
.launch-stage{border-top:1px solid #d8ded7;padding:20px 0 6px;margin-top:18px}
.launch-stage-head,.launch-channel-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.launch-stage-head h4{font-size:16px;font-weight:600;color:#193e31;margin:0;line-height:1.35}

/* Status words carry their own colour and never rely on colour alone. */
.launch-status{flex-shrink:0;display:inline-block;font-size:12px;font-weight:600;line-height:1;padding:6px 10px;border-radius:20px;border:1px solid transparent;white-space:nowrap}
.launch-status.is-done{background:#dfeadf;color:#1d4a35}
.launch-status.is-in_progress{background:#f3e8cc;color:#634a14}
.launch-status.is-waiting{background:#f1e4dc;color:#6b4026}
.launch-status.is-to_do{background:transparent;border-color:#b9c3b5;color:#44574c}

.launch-checks{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:2px}
.launch-checks li{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;align-items:start;padding:7px 0;font-size:14px;line-height:1.45}
.launch-check-state{font-size:12px;color:#4e6257;padding-top:1px}
.launch-checks .is-done .launch-check-label{color:#4e6257}
.launch-check-note{display:block;margin-top:2px;font-size:12px;line-height:1.45;color:#4e6257}
.launch-check-mark{width:16px;height:16px;margin-top:2px;border-radius:50%;border:2px solid var(--todo);box-sizing:border-box;position:relative}
.is-done>.launch-check-mark{background:var(--done);border-color:var(--done)}
.is-done>.launch-check-mark::after{content:"";position:absolute;left:4px;top:1px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.is-in_progress>.launch-check-mark{border-color:var(--progress);background:linear-gradient(90deg,var(--progress) 50%,transparent 50%)}
.is-waiting>.launch-check-mark{border-color:var(--waiting)}
.is-waiting>.launch-check-mark::after{content:"";position:absolute;left:3px;right:3px;top:5px;height:2px;background:var(--waiting)}

.launch-channels{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.launch-channel{background:var(--surface);border:1px solid #d8ded7;border-radius:6px;padding:14px 14px 8px}
.launch-channel.is-done{background:#f1f6f0;border-color:#bcd0bf}
.launch-channel-head h5{font-size:15px;font-weight:600;color:#193e31;margin:0}
.launch-channel .launch-checks{margin-top:8px}
.launch-channel .launch-checks li{font-size:13px}
/* In a channel the mark and the channel status carry the state; the word stays for screen readers. */
.launch-channel .launch-checks li{grid-template-columns:18px minmax(0,1fr)}
.launch-channel .launch-check-state{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

@media(max-width:1000px){.launch-areas{grid-template-columns:1fr;gap:40px}}
@media(max-width:900px){
  .launch-calendar{grid-template-columns:1fr;border-left:0}
  .launch-day{min-height:0;flex-direction:row;flex-wrap:wrap;align-items:center;border-right:0}
  .launch-day-head{min-width:92px}
  .launch-events{flex:1 1 160px}
}
