/* ========== Base ========== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: Outfit, "Nunito Sans", sans-serif !important; }

/* ========== Layout: Month Grid ========== */
.main-content {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  /* month (auto), weekday header (short), then date rows (1fr each) */
  grid-template-rows: auto minmax(24px, auto) repeat(var(--weeks), 1fr);
  gap: 0; /* clamp(6px, 1vw, 10px); */
  min-height: 100vh;  /* fill canvas; or height:100% if parent controls height */
  padding-bottom: 32px;
}
.page-canvas, .main-content { height: 100%; } /* if wrapped in a fixed-height parent */

/* ========== Month Header ========== */
.month {
  background: var(--color);
  font: 900 clamp(36px, 10vw, 75px) Outfit, "Nunito Sans", "Montserrat", sans-serif !important;
  text-transform: uppercase;
  padding: clamp(16px, 4vw, 40px) clamp(12px, 3vw, 30px);
  text-align: center;
  color: rgba(255,255,255,0.6);
  text-shadow: 0 0px 4px rgba(0,0,0,0.1);
  grid-column: 1 / -1; /* span all 7 columns */
  border-radius: 0px;  /* optional */
}

/* ========== Weekday Header Row ========== */
.weekday-header-row {
  grid-column: 1 / -1;
  grid-row: 2;                         /* uses the short header track */
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #000;                    /* solid black bar like footer */
  color: #fff;
}
.weekday-header {
  text-align: center;
  padding: 0.25rem 0;                  /* slim height */
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.1); /* subtle divider lines */
}
.weekday-header:last-child { border-right: none; }

/* ========== Day Cells ========== */
.date {
  background: var(--color);
  padding: 15px;
  position: relative;                  /* for absolutely positioned children */
  font-size: clamp(1rem, 2.2vw, 2rem);
  display: grid;
  place-items: center;                 /* centers the day number */
  border-radius: 0px;                  /* optional */
  font-weight: 700;
}
.date--pad {
  background-color: #bbb;              /* transparent alternative */
  outline: 1px dashed rgba(0,0,0,0.06);/* hint for blanks */
}

/* “today” ribbon (alternate style used elsewhere) */
.date.today {
  outline: 3px solid white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 5;
}
.date.today::after {
  /* content: "today"; */
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
}

@media print {
  .date.today { display: none !important; }
}

/* ========== Event Badge (container pinned to bottom) ========== */
/* The badge itself no longer has a background; it’s just a container. */
.event-badge {
  position: absolute;
  inset: auto 6px 6px 6px;             /* bottom: 6px; left/right: 6px */
  padding: 0;                           /* container only; chips handle their own padding */
  background: transparent;
  backdrop-filter: none;
  line-height: 1.2;
  font-size: 12px;
  font-weight: 400;
  color: #fff;
}

/* Stack items vertically with consistent gap */
.event-badge .ev-list {
  display: flex;
  flex-direction: column;
  gap: 0.35em;                          /* vertical space between items */
  margin: 0;
  padding: 0 6px 6px 6px;               /* inner breathing room so chips don’t hug edges */
}

/* Each event as its own “chip” */
.event-badge .ev-list > div {
  background: rgba(0,0,0,0.35);
  border-radius: 4px;
  padding: 4px 6px;
  line-height: 1.2;
  font-size: .75rem;
  color: #fff;
  font-weight: 400;
  min-height: 0;                        /* guard against odd line-height inheritance */
}

/* ========== Delta Marker (top-right overlay) ========== */
.event-delta {
  position: absolute;
  top: .9rem;
  right: .9rem;
  font-size: .7rem;
  color: var(--bs-light);
  font-weight: 400;
}

/* ========== Explanation Block ========== */
.explanation {
  background: var(--color);
  grid-column: 1 / -1;
  padding: 28px;
  color: #fff;
  line-height: 1.7;
}
.explanation a {
  text-decoration: none;
  color: #fff;
  padding: 3px 0;
  border-bottom: 1px dashed;
}
.explanation a:hover { border-bottom: 1px solid; }

/* ========== Footer (site & page) ========== */
footer {
  background: var(--color);
  text-align: center;
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  grid-column: 1 / -1; /* span if inside .main-content */
}
footer a:hover { background: rgba(0,0,0,0.05); }
footer a .icons { margin-top: 8px; display: inline-block; font-size: 20px; }

.site-footer {
  background: #000;          /* black bar */
  position: fixed;           /* always at bottom */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32px;              /* narrow */
  font-size: 0.8rem;
  line-height: 32px;         /* vertically center text */
  letter-spacing: 0.5px;
  z-index: 9999;
}

/* Minimal, robust highlight drawn INSIDE the cell */
.date.is-today,
.date.today {
  outline: 5px solid rgba(255,255,255,0.95);
  outline-offset: -5px;          /* pulls outline inside the box (so no clipping on edges) */
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08) inset;  /* keep the soft inner glow */
}
