/* The Calendar's timeline (CA2). The grid is a table inside one scroll box, so the page never scrolls sideways (R41d).
   A strip is told by its words first; the hatch (a block) and the dashed outline (a hold) only back the words up (research/07 §8). */
.table-scroll.cal-timeline-scroll{flex:none;height:auto;max-height:75dvh}
.cal-timeline{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%}
.cal-timeline th,.cal-timeline td{border-bottom:1px solid var(--line);border-right:1px solid var(--grid);padding:.125rem .25rem;font-size:var(--fs-sm);vertical-align:middle;overflow:hidden}
.cal-timeline thead th{background:var(--surface);text-align:center;position:sticky;top:0;z-index:2;min-width:2.25rem}
.cal-timeline.cal-year thead th{min-width:4.5rem}
.cal-timeline .cal-corner,.cal-timeline .cal-resource{position:sticky;left:0;z-index:3;width:9rem;min-width:9rem;max-width:9rem;background:var(--surface);text-align:left;white-space:normal;overflow-wrap:anywhere}
.cal-timeline thead .cal-corner{z-index:4}
.cal-timeline .cal-holiday{background:var(--accent-wash);color:var(--accent-ink)}
.cal-timeline .cal-holiday-name{display:block;font-weight:var(--fw-regular,400);font-size:var(--fs-sm);overflow-wrap:anywhere}
.cal-timeline .cal-strip{padding:.125rem .375rem;border-radius:var(--radius-sm);text-align:left;white-space:normal;overflow-wrap:anywhere}
.cal-timeline .cal-strip a{color:inherit}
.cal-timeline .cal-strip-kind{display:block;font-size:var(--fs-sm);opacity:.85}
.cal-timeline .cal-strip-booking{background:var(--series);color:var(--on-strong)}
.cal-timeline .cal-strip-hold{background:var(--accent-wash);color:var(--ink);outline:2px dashed var(--accent-ink);outline-offset:-2px}
.cal-timeline .cal-strip-block{background:repeating-linear-gradient(45deg,var(--m-unrated),var(--m-unrated) .375rem,var(--surface) .375rem,var(--surface) .75rem);color:var(--ink)}
.cal-timeline .cal-strip-before{border-top-left-radius:0;border-bottom-left-radius:0}
.cal-timeline .cal-strip-after{border-top-right-radius:0;border-bottom-right-radius:0}
.cal-timeline .cal-mark{display:block;font-size:var(--fs-sm);color:var(--ink);overflow-wrap:anywhere}
.cal-timeline .cal-marks-row td{border-bottom:1px solid var(--line);color:var(--muted)}
.cal-timeline-nav{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;margin:.5rem 0}
.cal-occupancy-total td,.cal-occupancy-total th{font-weight:var(--fw-strong)}
