/* Editorial calendar (includes/visuals/calendar.php): a four-week planner, items colour-coded by channel */
.cl { --cl-bg: var(--white); --cl-cell: var(--paper); background: var(--cl-bg); border-radius: var(--radius); padding: 22px; padding: clamp(16px, 2.6vw, 36px); box-shadow: 0 30px 60px -40px rgba(12, 43, 21, .35); }
.section--white .cl { --cl-bg: var(--paper); --cl-cell: var(--white); box-shadow: none; }
.cl-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 24px; }
@media (min-width: 1000px) { .cl-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); align-items: start; gap: 40px; } }
.cl-h { margin: 0; font-family: var(--font-serif); font-size: 30px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; color: var(--forest); }
.cl-h span { display: block; margin-top: 8px; font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green-text); }
.cl-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.cl-key { display: flex; align-items: flex-start; gap: 10px; }
.cl-key strong { display: block; color: var(--forest); font-size: 13.5px; }
.cl-key-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }

/* channel colours */
.cl-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cl-ic .cl-fill { fill: currentColor; stroke: none; }
.cl-ch--pro.cl-it, .cl-ch--pro .cl-key-ic { background: var(--forest); color: var(--white); }
.cl-ch--pro .cl-ic { color: var(--green); }
.cl-ch--news.cl-it, .cl-ch--news .cl-key-ic { background: var(--green); color: var(--forest); }
.cl-ch--blog.cl-it, .cl-ch--blog .cl-key-ic { background: var(--mint); color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--green-2); }
.cl-ch--video.cl-it, .cl-ch--video .cl-key-ic { background: var(--sage); color: var(--forest); }
.cl-ch--press.cl-it, .cl-ch--press .cl-key-ic { background: var(--cl-bg); color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }

/* grid */
.cl-cal { display: grid; gap: 6px; }
.cl-row { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); gap: 6px; }
.cl-row--head span { padding: 0 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cl-week > .cl-wk { grid-row: 1 / span 2; }
.cl-wk { margin: 0; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--forest); font-variant-numeric: tabular-nums; }
.cl-wk-l { display: none; }
.cl-day { grid-row: 2; min-width: 0; min-height: 100px; padding: 8px; border-radius: var(--radius-sm); background: var(--cl-cell); }
.cl-day--1 { grid-column: 2; } .cl-day--2 { grid-column: 3; } .cl-day--3 { grid-column: 4; } .cl-day--4 { grid-column: 5; } .cl-day--5 { grid-column: 6; }
.cl-day--in { background: var(--mint); }
.cl-date { margin: 0 0 6px 2px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cl-dname { display: none; }
.cl-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.cl-it { display: flex; align-items: flex-start; gap: 7px; padding: 7px 8px; border-radius: 6px; font-size: 12.5px; line-height: 1.3; font-weight: 500; }
.cl-it .cl-ic { margin-top: 1px; width: 14px; height: 14px; }
.cl-it-t { min-width: 0; }

/* key moment band */
.cl-band { grid-row: 1; margin: 6px 0 0; display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 999px; background: var(--forest); color: var(--white); font-size: 13px; font-weight: 600; }
.cl-band::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(150, 248, 120, .25); }
.cl-from--1 { grid-column-start: 2; } .cl-from--2 { grid-column-start: 3; } .cl-from--3 { grid-column-start: 4; } .cl-from--4 { grid-column-start: 5; } .cl-from--5 { grid-column-start: 6; }
.cl-to--1 { grid-column-end: 3; } .cl-to--2 { grid-column-end: 4; } .cl-to--3 { grid-column-end: 5; } .cl-to--4 { grid-column-end: 6; } .cl-to--5 { grid-column-end: 7; }

@media (min-width: 720px) and (max-width: 1099px) {
  .cl-it { flex-direction: column; gap: 4px; padding: 7px; }
  .cl-day { padding: 6px; }
  .cl-row--head span { padding-inline: 6px; }
}

/* phones: list by week */
@media (max-width: 719px) {
  .cl-cal .cl-row--head { display: none; }
  .cl-cal { gap: 22px; }
  .cl-row { display: block; }
  .cl-wk { padding: 0 0 8px; margin-bottom: 8px; border-bottom: 1.5px solid var(--forest); font-size: 14px; }
  .cl-wk-l { display: inline; }
  .cl-wk-s { display: none; }
  .cl-band { margin: 0 0 10px; }
  .cl-day { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; min-height: 0; padding: 8px; margin-top: 6px; }
  .cl-day--empty { display: none; }
  .cl-date { margin: 6px 0 0; color: var(--forest); }
  .cl-dname { display: inline; }
  .cl-it { font-size: 13.5px; }
}

/* animation: cells settle, items pop in day after day, then the key moment band stretches across its days */
.js .vz-figure .cl-day { opacity: 0; transition: opacity .5s ease .1s; }
.js .vz-figure .cl-it { opacity: 0; transform: scale(.7); transition: opacity .35s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.js .vz-figure .cl-band { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2, .7, .2, 1) 1.8s; }
.js .vz-figure .cl-band span { opacity: 0; transition: opacity .4s ease 2.5s; }
.js .vz-figure .cl-i--1 { transition-delay: .3s; } .js .vz-figure .cl-i--2 { transition-delay: .37s; } .js .vz-figure .cl-i--3 { transition-delay: .44s; }
.js .vz-figure .cl-i--4 { transition-delay: .51s; } .js .vz-figure .cl-i--5 { transition-delay: .62s; } .js .vz-figure .cl-i--6 { transition-delay: .69s; }
.js .vz-figure .cl-i--7 { transition-delay: .76s; } .js .vz-figure .cl-i--8 { transition-delay: .83s; } .js .vz-figure .cl-i--9 { transition-delay: .94s; }
.js .vz-figure .cl-i--10 { transition-delay: 1.01s; } .js .vz-figure .cl-i--11 { transition-delay: 1.08s; } .js .vz-figure .cl-i--12 { transition-delay: 1.15s; }
.js .vz-figure .cl-i--13 { transition-delay: 1.2s; } .js .vz-figure .cl-i--14 { transition-delay: 1.27s; } .js .vz-figure .cl-i--15 { transition-delay: 1.38s; }
.js .vz-figure .cl-i--16 { transition-delay: 1.45s; } .js .vz-figure .cl-i--17 { transition-delay: 1.52s; } .js .vz-figure .cl-i--18 { transition-delay: 1.59s; }
.js .vz-figure .cl-i--19 { transition-delay: 1.66s; } .js .vz-figure .cl-i--20 { transition-delay: 1.73s; }
.js .vz-figure.is-visible .cl-day, .js .vz-figure.is-visible .cl-it, .js .vz-figure.is-visible .cl-band span { opacity: 1; }
.js .vz-figure.is-visible .cl-it, .js .vz-figure.is-visible .cl-band { transform: none; }
.vz-figure.is-visible .cl-band::before { animation: cl-pulse 2.4s ease-in-out 2.8s infinite; }
@keyframes cl-pulse { 50% { box-shadow: 0 0 0 7px rgba(150, 248, 120, .1); } }
