/*
 * Member calendar, the coming months (kcc/calendar, period "coming"; 1 Oct 2026).
 * kcc.css stays byte-identical; this file is loaded only where the block is. The whole-year form
 * keeps the approved table and is not styled here.
 *
 * A month reads like a page of a printed diary: the full container width, dates in two columns
 * on a wide screen, one line per event with its own section. Blue is spent on today alone.
 */
.cal{max-width:var(--container);margin:0 auto}
.cal .acc{max-width:none}

/* the month heading: the approved summary, plus how many events it holds */
.cal summary .cal-count{margin-left:auto;font-family:'Montserrat',sans-serif;font-size:.62rem;letter-spacing:.22em;text-transform:uppercase;font-weight:600;color:var(--muted);font-variant-numeric:lining-nums tabular-nums}
.cal .acc-body{max-width:none;padding:.2rem 0 2.8rem}

/* the dates */
.cal-days{list-style:none;margin:0;padding:0}
@media(min-width:1000px){
  .cal-days{columns:2;column-gap:clamp(3rem,6vw,5.5rem)}
}
.cal-day{break-inside:avoid;display:grid;grid-template-columns:4.4rem 1fr;gap:1.1rem;padding:1.15rem 0 1.2rem;border-top:1px solid var(--line-light)}
.cal-day[hidden]{display:none}
.cal-date{display:flex;flex-direction:column;align-items:flex-start;line-height:1}
.cal-dnum{font-family:'Cormorant Garamond',serif;font-weight:300;font-size:2.5rem;line-height:.9;color:var(--navy);font-variant-numeric:lining-nums tabular-nums}
.cal-wday,.cal-today{font-family:'Montserrat',sans-serif;font-size:.6rem;letter-spacing:.24em;text-transform:uppercase;font-weight:600;color:var(--muted);margin-top:.5rem}
.cal-today{color:var(--kcc-blue);margin-top:.3rem}

/* the events of one date */
.cal-events{list-style:none;margin:0;padding:.3rem 0 0;display:grid;gap:.6rem;align-content:start}
.cal-event{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}
.cal-event[hidden]{display:none}
.cal-name{font-size:.95rem;font-weight:400;line-height:1.5;color:var(--ink);text-wrap:pretty}
.cal-span,.cal-note{font-size:.8rem;font-weight:300;color:var(--muted);white-space:nowrap}
.cal-span::before,.cal-note::before{content:"· ";color:var(--line-light)}
.cal-tags{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.3rem}

/* a date already gone (in the month we are in): quiet, still readable */
.cal-day.is-past .cal-dnum,.cal-day.is-past .cal-name{color:var(--muted)}
.cal-day.is-past .cal-name{font-weight:300}

/* today */
.cal-day.is-today .cal-dnum{color:var(--kcc-blue);font-weight:400}
.cal-day.is-today .cal-wday{color:var(--kcc-blue)}

/* sections filter (calendar.js shows it) */
.cal-filter{display:flex;flex-wrap:wrap;gap:.45rem;margin:0 0 clamp(1.6rem,4vh,2.4rem)}
.cal-filter[hidden]{display:none}
.cal-chip{display:inline-flex;align-items:center;min-height:2.5rem;padding:0 1rem;font-family:'Montserrat',sans-serif;font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;font-weight:600;color:var(--muted);background:transparent;border:1px solid var(--line-light);border-radius:0;cursor:pointer;transition:color .3s,border-color .3s,background-color .3s}
.cal-chip:hover{color:var(--navy);border-color:var(--navy)}
.cal-chip[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:var(--cream)}
.cal-chip:focus-visible{outline:2px solid var(--kcc-blue);outline-offset:3px}
.cal-empty{padding:1.4rem 0;color:var(--muted);font-weight:300;font-style:italic;font-family:'Cormorant Garamond',serif;font-size:1.15rem}
.cal-empty[hidden]{display:none}

@media(max-width:700px){
  .cal-filter{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:calc(-1 * var(--pad-x));margin-right:calc(-1 * var(--pad-x));padding:0 var(--pad-x) .2rem}
  .cal-filter::-webkit-scrollbar{display:none}
  .cal-chip{flex-shrink:0}
  .cal summary .cal-count{display:none}
  .cal-day{grid-template-columns:3.2rem 1fr;gap:.9rem}
  .cal-dnum{font-size:2.1rem}
  .cal-event{flex-wrap:wrap;gap:.35rem .8rem}
  .cal-tags{justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){
  .cal-chip{transition:none}
}
