/* New Life digital-signage calendar, version 3.
   Deliberately uses a fixed 1080 x 1920 design surface. The tiny fitPoster()
   script scales the ENTIRE surface as one unit; inner typography can never
   become larger than the poster when previewed in a non-portrait browser. */
:root {
  --night: #0b1d28;
  --navy: #102733;
  --navy-light: #1b3844;
  --border: #31525a;
  --cream: #f4f0e7;
  --muted: #a9bec4;
  --gold: #e6bd7c;
  --mint: #7fc3bd;
  --fit: 0.5;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: #071219; color: var(--cream); font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
.poster {
  position: absolute;
  top: 50%; left: 50%;
  width: 1080px; height: 1920px;
  transform: translate(-50%, -50%) scale(var(--fit));
  transform-origin: center center;
  padding: 54px 66px 52px;
  display: grid;
  grid-template-rows: 140px 625px minmax(0, 1fr) 218px;
  gap: 22px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 100% 0%, #23424a 0, transparent 44%),
    linear-gradient(155deg,#102c36,#0d222d 50%,#081721);
  box-shadow: 0 0 100px #0009;
}
.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .10;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(90deg, transparent 98%, rgba(255,255,255,.22) 100%);
  background-size: 76px 100%;
}
.masthead {
  display: flex; justify-content: space-between; align-items: center;
  min-width: 0; min-height: 0; gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.brand-wrap { display: flex; align-items: center; gap: 22px; min-width: 0; }
.mark {
  width: 112px; height: 112px; flex: 0 0 112px;
  display: grid; place-items: center;
  border: 2px solid var(--gold); border-radius: 25px;
  color: var(--gold); font-size: 45px; font-weight: 900; letter-spacing: -4px;
}
.brand-type { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.brand-title { font-size: 65px; line-height: 1; font-weight: 850; letter-spacing: -2.5px; white-space: nowrap; }
.brand-subtitle { color: var(--gold); font-size: 20px; font-weight: 700; letter-spacing: 6px; white-space: nowrap; }
.header-right { text-align: right; display: flex; flex-direction: column; gap: 10px; flex: 0 0 190px; }
.header-kicker { color: var(--mint); font-size: 15px; letter-spacing: 3px; font-weight: 800; }
.header-today { color: var(--cream); font-size: 22px; line-height: 1.2; font-weight: 700; }
.calendar-block, .upcoming-block { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex: 0 0 auto; min-width: 0; gap: 16px; }
.calendar-block > .section-heading { height: 136px; padding: 11px 0 20px; }
.eyebrow { display: flex; gap: 14px; align-items: center; margin-bottom: 13px; font-size: 18px; color: var(--mint); letter-spacing: 3.8px; font-weight: 800; white-space: nowrap; }
.mini-line { width: 47px; height: 1px; flex: 0 0 47px; background: var(--mint); }
h1, h2 { margin: 0; font-weight: 850; line-height: 1.04; }
h1 { font-size: 88px; letter-spacing: -3px; }
h1 span { font-size: 46px; color: var(--gold); font-weight: 500; letter-spacing: -1px; margin-left: 14px; }
.month-pill, .upcoming-pill {
  border: 1px solid var(--border); border-radius: 99px;
  color: var(--muted); padding: 13px 19px; white-space: nowrap;
  font-size: 16px; font-weight: 800; letter-spacing: 1.3px;
  margin-bottom: 6px; flex: 0 0 auto;
}
.calendar-table {
  display: flex; flex-direction: column; min-height: 0; flex: 1;
  border: 1px solid var(--border); border-radius: 25px; overflow: hidden;
  background: rgba(26, 56, 64, .72);
}
.weekday-row { height: 57px; flex: 0 0 57px; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); align-items: center; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--border); }
.weekday-row span { text-align: center; color: var(--mint); font-size: 18px; letter-spacing: 1.4px; font-weight: 800; }
.month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); grid-template-rows: repeat(6,minmax(0,1fr)); flex: 1; min-height: 0; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; position: relative; min-width: 0; min-height: 0; border-right: 1px solid rgba(120,165,170,.15); border-bottom: 1px solid rgba(120,165,170,.15); }
.day:nth-child(7n) { border-right: 0; }
.day.outside { opacity: .22; }
.day.past:not(.today) { opacity: .67; }
.day.today { background: rgba(230,189,124,.13); }
.day-num { font-size: 35px; line-height: 1.05; font-weight: 700; }
.day.today .day-num { width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center; color: #10232d; background: var(--gold); font-weight: 850; }
.event-dots { display: flex; align-items: center; justify-content: center; gap: 5px; height: 10px; }
.event-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.event-dots i:nth-child(2) { background: var(--gold); }
.event-dots i:nth-child(3) { background: #d99b94; }
.event-count { font-size: 12px; color: var(--muted); }
.calendar-legend { height: 43px; flex: 0 0 43px; display: flex; align-items: center; justify-content: flex-end; gap: 13px; color: var(--muted); font-size: 14px; letter-spacing: 1px; font-weight: 800; }
.legend-dot, .legend-today { width: 13px; height: 13px; border-radius: 50%; flex: 0 0 13px; }
.legend-dot { background: var(--mint); }
.legend-today { margin-left: 28px; background: var(--gold); }
.upcoming-block { border-top: 1px solid var(--border); }
.upcoming-head { height: 145px; padding: 21px 0 20px; }
h2 { font-size: 57px; letter-spacing: -2px; white-space: nowrap; }
h2 em { color: var(--gold); font-style: normal; font-weight: 500; }
.upcoming-list { display: grid; grid-template-rows: repeat(6,minmax(0,1fr)); flex: 1; min-height: 0; gap: 13px; }
.event-card { display: flex; align-items: center; min-height: 0; min-width: 0; gap: 24px; padding: 5px 24px; border: 1px solid rgba(123,169,178,.25); border-left: 7px solid var(--mint); border-radius: 20px; background: rgba(31,65,74,.77); overflow: hidden; }
.event-card.community { border-left-color: var(--gold); }
.event-card.youth { border-left-color: #9bbbe8; }
.event-card.kids { border-left-color: #b8b1eb; }
.event-card.women { border-left-color: #e1acc0; }
.event-card.seniors { border-left-color: #b8c99a; }
.event-date { display: flex; align-items: center; justify-content: center; flex-direction: column; flex: 0 0 94px; height: 76px; border-right: 1px solid var(--border); padding-right: 15px; }
.event-date .mo { color: var(--gold); font-size: 16px; letter-spacing: 3px; font-weight: 850; }
.event-date .num { color: var(--cream); font-size: 44px; line-height: 1.05; font-weight: 850; }
.event-copy { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; flex: 1; }
.event-title { font-size: 30px; line-height: 1.08; font-weight: 800; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.event-info { color: var(--muted); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-category { flex: 0 0 auto; font-size: 14px; font-weight: 850; color: var(--mint); letter-spacing: .9px; border: 1px solid var(--border); border-radius: 99px; padding: 9px 12px; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-card.community .event-category { color: var(--gold); }
.event-card.youth .event-category { color: #9bbbe8; }
.event-card.kids .event-category { color: #b8b1eb; }
.event-card.women .event-category { color: #e1acc0; }
.event-card.seniors .event-category { color: #b8c99a; }
.empty-event { display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(123,169,178,.25); border-radius: 20px; color: var(--muted); font-size: 22px; }
.message { align-self: center; text-align: center; grid-row: span 6; font-size: 27px; color: var(--muted); }
.bottom-bar { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border); padding-top: 15px; }
.footer-note { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.footer-eyebrow { color: var(--mint); font-size: 17px; letter-spacing: 2.2px; font-weight: 850; }
.footer-title { font-size: 52px; line-height: 1.06; font-weight: 850; letter-spacing: -1.5px; white-space: nowrap; }
.footer-description { color: var(--muted); font-size: 19px; }
.footer-url { color: var(--gold); font-size: 20px; font-weight: 700; }
.qr-box { flex: 0 0 190px; display: flex; align-items: center; flex-direction: column; gap: 5px; }
.qr-box img { width: 155px; height: 155px; padding: 9px; border-radius: 11px; background: #fff; object-fit: contain; }
.qr-box span { color: var(--mint); font-size: 15px; letter-spacing: 2px; font-weight: 850; }
.status-line { position: absolute; bottom: 12px; left: 66px; font-size: 12px; color: #819aa2; }
.demo-ribbon { position: absolute; top: 12px; right: 66px; z-index: 3; background: var(--gold); color: #14232b; font-size: 14px; letter-spacing: 1.1px; font-weight: 850; padding: 6px 10px; border-radius: 5px; }
[hidden] { display:none!important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation:none!important; transition:none!important; } }
