:root {
  --ky-red: #9f302f;
  --ky-red-dark: #74201f;
  --ky-ink: #241f1d;
  --ky-muted: #6c625e;
  --ky-paper: #fffaf5;
  --ky-line: #eadfd6;
}

.kyalendar-home { color: var(--ky-ink); }
.kyalendar-preview-notice { margin: 0; padding: .75rem 1.5rem; color: #fff; background: #211c5c; text-align: center; }
.kyalendar-preview-notice a { color: #fff; font-weight: 700; text-decoration: underline; }
.kyalendar-hero { padding: 5rem 1.5rem; text-align: center; background: linear-gradient(135deg,#fff4e8,#fff); }
.kyalendar-hero h1 { max-width: 850px; margin: .4rem auto 1rem; font-size: clamp(2.3rem,6vw,4.8rem); line-height: 1.03; }
.kyalendar-hero > p:last-child { max-width: 680px; margin: 0 auto; color: var(--ky-muted); font-size: 1.15rem; }
.kyalendar-eyebrow { margin: 0; color: var(--ky-red); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.kyalendar-section { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }
.kyalendar-section--muted { max-width: none; padding-left: max(1.5rem,calc((100% - 1200px)/2 + 1.5rem)); padding-right: max(1.5rem,calc((100% - 1200px)/2 + 1.5rem)); background: var(--ky-paper); }
.kyalendar-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }
.kyalendar-section h2 { margin: .25rem 0 0; font-size: clamp(2rem,4vw,3rem); }
.kyalendar-count { display: grid; min-width: 3rem; height: 3rem; padding: 0 .7rem; place-items: center; border-radius: 99px; color: #fff; background: var(--ky-red); font-weight: 800; }
.kyalendar-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.kyalendar-card { overflow: hidden; border: 1px solid var(--ky-line); border-radius: 1rem; background: #fff; box-shadow: 0 10px 30px rgba(60,35,20,.08); }
.kyalendar-card__image { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #211c5c; }
.kyalendar-card__image img { width: 100%; height: 100%; object-fit: cover; }
.kyalendar-card__image::after { position: absolute; z-index: 2; inset: 0; content: ""; background: linear-gradient(180deg,rgba(18,16,58,.08),rgba(18,16,58,.62)); pointer-events: none; }
.kyalendar-card__imade > img { position: relative; z-index: 1; }
.kyalendar-card__fallback-bg { position: absolute; inset: 0; }
.kyalendar-card__fallback-content { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1.5rem; color: #fff; text-align: center; }
.kyalendar-card__fallback-logo { width: auto !important; max-width: min(55%,180px); height: auto !important; max-height: 42px; object-fit: contain !important; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.kyalendar-card__fallback-brand { font-size: 1rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kyalendar-card__fallback-title { max-width: 18ch; font-size: clamp(1.15rem,2vw,1.65rem); font-weight: 800; line-height: 1.12; text-shadow: 0 2px 12px rgba(0,0,0,.48); }
.kyalendar-event-fallback-banner { width: 100%; margin: 0 0 2rem; border-radius: 1rem; box-shadow: 0 10px 30px rgba(60,35,20,.12); }
.kyalendar-event-image-banner { width: 100%; margin: 0 0 2rem; border-radius: 1rem; box-shadow: 0 10px 30px rgba(60,35,20,.12); }
.kyalendar-event-image-banner > img { width: 100%; height: 100%; object-fit: cover; }
.kyalendar-event-fallback-banner .kyalendar-card__fallback-title,
.kyalendar-event-image-banner .kyalendar-card__fallback-title { max-width: 24ch; font-size: clamp(1.5rem,4vw,3rem); }
.kyalendar-card__body { padding: 1.25rem; }
.kyalendar-card__category { color: var(--ky-red); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kyalendar-card h3 { margin: .45rem 0 .65rem; font-size: 1.35rem; line-height: 1.2; }
.kyalendar-card h3 a { color: var(--ky-ink); text-decoration: none; }
.kyalendar-card h3 a:hover { color: var(--ky-red-dark); text-decoration: underline; }
.kyalendar-card p { margin: 0; color: var(--ky-muted); line-height: 1.6; }
.kyalendar-empty { padding: 2rem; border: 1px dashed var(--ky-line); border-radius: 1rem; color: var(--ky-muted); text-align: center; }

@media (max-width: 900px) { .kyalendar-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .kyalendar-grid { grid-template-columns: 1fr; } .kyalendar-hero { padding: 3.5rem 1rem; } }
