/* styles-calendar.css - O-14 THE CALENDAR: the MONTH view of WHAT'S COMING (js/calendar.js).
   Every O-14 rule sits behind .ev-month, so nothing outside that block changes. O-16's rules
   are at the bottom of the file and are named for what they paint (.ev-status, .ev-dot,
   .ev-hint, .ev-chip-warm): they are used in the list and on an event's page too.
   No colour literal (D53): tokens only. O-16 adds three tokens of its own, once, in :root -
   the two status colours and the glow - which are the invitation card's grass and gold.
   Sensory: no transition anywhere in this file, and the press effect the chips carry
   elsewhere is switched off inside the block. Nothing moves when the month changes: the
   weeks keep the height of six rows, and the line under them keeps its place. The one
   animation is O-16's glow on the MONTH chip (see the bottom of the file).
   Type: every text is 14px or more. Lora for everything; the display face for the month's
   name only (the name also carries .h-quest-heading, so POWER UP gives it the pixel face the
   other headings get, at that preset's own 14px).
   Ground: the two cards are solid --lab, not glass. The numbers are read on one known colour,
   so the contrast table in the release record is the contrast on his screen, and nothing
   behind a number drifts.
   Width: the block reaches 10px past the screen's 24px gutter on each side, so seven days are
   44px or more each at 360px and up; it stays clear of the outer 14px, where POWER UP's
   confetti falls. */
.ev-month{margin:14px -10px 0;padding-bottom:72px}  /* the last row clears the floating buttons, like .rm-foot */
.ev-month .cal-card,.ev-month .cal-list{background:var(--lab);border:1px solid var(--border);border-radius:14px}
.ev-month .cal-card{padding:8px 0 8px}

/* the month's name between its two buttons */
.ev-month .cal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 8px 8px}
.ev-month .cal-title{flex:1 1 auto;min-width:0;margin:0;text-align:center}
.ev-month .cal-nav{flex:0 0 44px;width:44px;height:44px;padding:0;background:transparent;
  border:1px solid var(--border-bright);border-radius:12px;color:var(--ink);
  font-family:var(--font-body);font-size:26px;line-height:1;cursor:pointer}
.ev-month .cal-nav:disabled{color:var(--ink-dim);border-color:var(--border);cursor:default}

/* seven columns: the weekday letters, then the weeks */
.ev-month .cal-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.ev-month .cal-row + .cal-row{margin-top:2px}
.ev-month .cal-dow{margin-bottom:2px}
.ev-month .cal-dow span{font-size:14px;line-height:24px;text-align:center;color:var(--ink-soft)}
.ev-month .cal-weeks{min-height:286px}  /* six rows of 46px and five 2px gaps */

/* a day: its number, then up to three dots. Every day is a button, with or without dots. */
.ev-month .cal-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  width:100%;height:46px;margin:0;padding:0;background:transparent;border:0;border-radius:10px;
  color:var(--ink);font-family:var(--font-body);font-size:15px;line-height:1;cursor:pointer}
.ev-month .cal-day.is-today{box-shadow:inset 0 0 0 2px var(--acid)}
.ev-month .cal-day.is-sel{background:rgb(var(--acid-rgb)/.15);font-weight:700}
.ev-month .cal-day:focus-visible,.ev-month .cal-nav:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.ev-month .cal-dots{display:flex;gap:3px;height:6px}
.ev-month .cal-dot{display:block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:var(--ink-muted)}
.ev-month .cal-c-trip{background:var(--sky)}
.ev-month .cal-c-birthday{background:var(--warn)}
.ev-month .cal-c-halloween{background:var(--purple)}
.ev-month .cal-c-family{background:var(--ink)}
.ev-month .cal-c-holidays{background:var(--acid)}
.ev-month .cal-s-confirmed{background:var(--ev-ok)}
.ev-month .cal-s-maybe{background:var(--ev-maybe)}

/* the line under the weeks: empty except at the first and the last month */
.ev-month .cal-bound{min-height:21px;margin:8px 10px 0;font-size:14px;line-height:21px;text-align:center;color:var(--ink-soft)}

/* the picked day's list */
.ev-month .cal-list{margin-top:12px;padding:12px 12px 4px}
.ev-month .cal-day-h{font-size:16px;font-weight:600;line-height:1.4;color:var(--ink);margin-bottom:8px}
.ev-month .cal-none{font-size:14px;line-height:1.5;color:var(--ink-soft);padding-bottom:8px}
.ev-month .cal-item{display:flex;align-items:center;gap:10px;min-height:60px;padding:8px 0;border-top:1px solid var(--border)}
.ev-month .cal-item-text{flex:1 1 auto;min-width:0;font-size:14px;line-height:1.45;color:var(--ink-soft)}
.ev-month .cal-item-text strong{color:var(--ink)}
.ev-month .cal-open{flex:0 0 auto}
.ev-month .q-chip:active{transform:none}
/* O-16: in the day's list the dot sits in a 10px place, so the words line up in every row; a
   status dot is 10px and sits beside its word, on the first line */
.ev-month .cal-item > .cal-dot{margin:0 2px}
.ev-month .cal-item > .cal-s-confirmed,.ev-month .cal-item > .cal-s-maybe{flex-basis:10px;width:10px;height:10px;margin:5px 0 0;align-self:flex-start}

/* ---- O-16 THE OCTOBER CALENDAR ----
   Status: a 10px dot and a word before the title - green CONFIRMED, yellow MAYBE - in the
   list's rows, in the day's list and on an event's own page. The word is --ink, so the word
   carries the contrast; the dot is decoration (aria-hidden). Green is the card's grass as it
   reads on a dark ground, yellow is the card's gold; every ground in the lab is dark. */
:root{--ev-ok:#6bcc48;--ev-maybe:#eec95e;--ev-warm-rgb:238 201 94}
.ev-status{display:flex;align-items:center;gap:6px;margin:0 0 2px;font-family:var(--font-body);font-size:14px;
  font-weight:700;line-height:1.45;letter-spacing:.04em;color:var(--ink)}
.ev-dot{display:block;flex:0 0 10px;width:10px;height:10px;border-radius:50%}
.ev-dot-ok{background:var(--ev-ok)}
.ev-dot-maybe{background:var(--ev-maybe)}
.ev-sense{white-space:nowrap}
.ev-about .rv-intro-copy p{margin:0 0 8px}
.ev-about .rv-intro-copy p:last-child{margin-bottom:0}
.ev-link{display:inline-flex;align-items:center;text-decoration:none}
/* the one line under the two chips, in LIST, until MONTH has been tapped three times */
.ev-hint{margin:8px 0 0;font-size:14px;line-height:1.5;color:var(--ink-soft)}
/* The warm MONTH chip: a soft gold glow that rests after three taps (js/calendar.js takes the
   class off). It breathes once every 6 seconds, the outer glow between .35 and .6, only while
   the chip also carries ev-warm-move - js/calendar.js puts that there, never under QUIET and
   never under reduced motion - and only where the phone itself allows motion. Still otherwise. */
.ev-view-chips .ev-chip-warm{box-shadow:0 0 0 2px rgb(var(--ev-warm-rgb)/.45),0 0 14px rgb(var(--ev-warm-rgb)/.35)}
@keyframes ev-warm{
  0%,100%{box-shadow:0 0 0 2px rgb(var(--ev-warm-rgb)/.45),0 0 14px rgb(var(--ev-warm-rgb)/.35)}
  50%{box-shadow:0 0 0 2px rgb(var(--ev-warm-rgb)/.45),0 0 14px rgb(var(--ev-warm-rgb)/.6)}
}
@media (prefers-reduced-motion:no-preference){
  .ev-view-chips .ev-chip-warm.ev-warm-move{animation:ev-warm 6s ease-in-out infinite}
}
