/* ==========================================================================
   Moodus GovCalendar Events — frontend styles for [govcal_list] and [govcal_calendar].

   Token-compatible with the Moodus GovCalendar theme (consumes its --govcal-* CSS variables
   where present) but has local fallbacks so the plugin renders sanely under
   any active theme. All contrast pairs are tested for WCAG 2.1 AA (4.5:1)
   against their backgrounds.
   ========================================================================== */

:root {
	--wevt-navy:    var(--govcal-navy, #0f2144);
	--wevt-dark:    var(--govcal-dark-navy, #0a1a33);
	--wevt-gold:    var(--govcal-gold, #e2a83e);
	--wevt-gold2:   var(--govcal-gold-2, #c8902f);
	--wevt-paper:   var(--govcal-white, #ffffff);
	--wevt-mute:    var(--govcal-off-white, #f5f3ee);
	--wevt-line:    var(--govcal-line, #e5e7eb);
	--wevt-text:    var(--govcal-text, #1f2937);
	--wevt-muted:   var(--govcal-muted, #4b5563);
	--wevt-ease:    var(--govcal-ease, cubic-bezier(.2,.7,.2,1));
	--wevt-radius:  var(--govcal-radius-md, 12px);
	--wevt-shadow:  var(--govcal-shadow-sm, 0 1px 2px rgba(15,33,68,0.06));
	--wevt-shadow-lg: var(--govcal-shadow-lg, 0 12px 32px rgba(15,33,68,0.14));
}

.govcal-empty {
	background: var(--wevt-paper);
	border: 1px solid var(--wevt-line);
	border-radius: var(--wevt-radius);
	padding: 32px;
	text-align: center;
	color: var(--wevt-muted);
}

/* === LIST (agenda rows) ================================================== */
.govcal-agenda { max-width: 840px; margin: 0 auto; }
.govcal-agenda__month {
	font-size: 1.05rem; font-weight: 800; color: var(--wevt-dark);
	margin: 26px 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--wevt-gold);
}
.govcal-agenda__month:first-child { margin-top: 0; }
.govcal-agenda__row {
	position: relative;
	display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center;
	padding: 14px 12px; border-bottom: 1px solid var(--wevt-line); border-radius: 10px;
	transition: background .12s var(--wevt-ease);
}
.govcal-agenda__row:hover { background: var(--wevt-mute); }
.govcal-agenda__date {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 60px; height: 60px; background: var(--wevt-navy); color: #fff; border-radius: 10px; line-height: 1;
}
.govcal-agenda__date .d { font-size: 1.5rem; font-weight: 800; }
.govcal-agenda__date .m { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--wevt-gold); margin-top: 3px; }
.govcal-agenda__date .wd { font-size: .58rem; text-transform: uppercase; opacity: .82; margin-top: 1px; }
.govcal-agenda__row.is-today .govcal-agenda__date { background: var(--wevt-gold); color: var(--wevt-dark); }
.govcal-agenda__row.is-today .govcal-agenda__date .m { color: var(--wevt-navy); }
.govcal-agenda__info { min-width: 0; }
.govcal-agenda__titlelink { color: var(--wevt-navy); text-decoration: none; font-size: 1.06rem; font-weight: 700; }
.govcal-agenda__titlelink::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
.govcal-agenda__row:hover .govcal-agenda__titlelink { color: var(--wevt-gold2); }
.govcal-agenda__meta { display: block; font-size: .9rem; color: var(--wevt-muted); margin-top: 3px; }
.govcal-agenda__meta .sep { margin: 0 7px; opacity: .5; }
.govcal-agenda__tags { display: flex; align-items: center; gap: 8px; }
.govcal-agenda__pill { position: relative; z-index: 2; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.govcal-agenda__pill--live { background: #eafaf1; color: #0a7c46; }
.govcal-agenda__pill--allday { background: var(--wevt-mute); color: var(--wevt-navy); }
.govcal-agenda__pill--files { background: var(--wevt-mute); color: var(--wevt-navy); display: inline-flex; align-items: center; gap: 4px; }
.govcal-agenda__chev { color: var(--wevt-gold2); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.govcal-agenda__edit { position: relative; z-index: 2; display: inline-block; font-size: .68rem; font-weight: 700; color: #6b21a8; margin-left: 8px; text-decoration: none; }
.govcal-agenda__edit:hover { text-decoration: underline; }
@media (max-width: 560px) {
	.govcal-agenda__row { grid-template-columns: 50px 1fr; row-gap: 6px; padding: 12px 8px; }
	.govcal-agenda__date { width: 50px; height: 50px; }
	.govcal-agenda__date .d { font-size: 1.2rem; }
	.govcal-agenda__tags { grid-column: 2; justify-content: flex-start; }
	.govcal-agenda__chev { display: none; }
}

/* === CALENDAR (Moodus GovCalendar - civic month view) ============== */
.govcal-cal { max-width: 1100px; margin: 0 auto; color: var(--wevt-text); font-family: inherit; padding-top: 24px; }
/* Some themes wrap page content in a narrow readability column (the WCPA theme caps
   .wcpa-prose at ~780px). When that column holds the calendar, let it use the full content
   width so the month/week grids aren't cramped. Scoped to .wcpa-prose = no-op elsewhere (portable). */
.wcpa-prose:has(.govcal-cal){ max-width: none; }
/* Month view is a touch wider than the other views but stays inside the page (no viewport
   full-bleed -- that caused horizontal overflow / "hangs off the page"). */
.govcal-cal--month { max-width: 1280px; margin-left: auto; margin-right: auto; padding: 24px 0 0; box-sizing: border-box; }
.govcal-cal__head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 0 14px; }
.govcal-cal__title { font-size:1.7rem; font-weight:800; color:var(--wevt-dark); margin:0; }
.govcal-cal__nav { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.govcal-cal__navbtn { display:inline-flex; align-items:center; gap:6px; background:var(--wevt-navy); color:#fff; text-decoration:none; font-weight:700; font-size:.88rem; padding:8px 14px; border-radius:8px; border:0; cursor:pointer; transition:background .12s var(--wevt-ease); line-height:1.1; }
.govcal-cal__navbtn:hover, .govcal-cal__navbtn:focus-visible { background:var(--wevt-dark); color:#fff; outline:none; }
.govcal-cal__today { background:var(--wevt-gold); color:var(--wevt-dark); }
.govcal-cal__today:hover, .govcal-cal__today:focus-visible { background:var(--wevt-gold2); color:var(--wevt-dark); }
.govcal-cal__print { background:#fff; color:var(--wevt-navy); border:1px solid var(--wevt-navy); }
.govcal-cal__print:hover { background:var(--wevt-mute); color:var(--wevt-navy); }
.govcal-cal__grid { border:1px solid var(--wevt-line); border-radius:10px; overflow:hidden; background:#fff; box-shadow:var(--wevt-shadow); }
.govcal-cal__weekrow { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); background:var(--wevt-dark); }
.govcal-cal__weekhead { color:#fff; font-weight:700; font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; text-align:center; padding:11px 4px; }
.govcal-cal__wabbr { display:none; }
.govcal-cal__row { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.govcal-cal__cell { display:flex; flex-direction:column; min-height:132px; overflow:hidden; min-width:0; border-right:1px solid var(--wevt-line); border-top:1px solid var(--wevt-line); padding:6px 8px 8px; position:relative; background:#fff; }
.govcal-cal__row:first-child .govcal-cal__cell { border-top:0; }
.govcal-cal__cell:last-child { border-right:0; }
.govcal-cal__daynum { display:inline-block; font-weight:800; font-size:.95rem; color:var(--wevt-gold2); margin-bottom:3px; }
.govcal-cal__cell.is-outmonth { background:#faf9f7; }
.govcal-cal__cell.is-outmonth .govcal-cal__daynum { color:#b6bcc4; }
.govcal-cal__cell.is-today { background:rgba(226,168,62,0.10); box-shadow: inset 0 3px 0 var(--wevt-navy); }
.govcal-cal__cell.is-today .govcal-cal__daynum { background:var(--wevt-navy); color:#fff; border-radius:999px; min-width:24px; height:24px; line-height:24px; text-align:center; padding:0 3px; }
.govcal-cal__events { list-style:none; margin:3px 0 0; padding:0; display:flex; flex-direction:column; gap:3px; flex:1 1 auto; }
.govcal-cal__events li { margin:0; }
.govcal-cal__pill { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; width:100%; box-sizing:border-box; text-decoration:none; color:var(--wevt-navy); font-size:.8rem; line-height:1.25; padding:4px 7px 4px 8px; background:var(--wevt-mute); border-left:3px solid var(--wevt-gold); border-radius:4px; }
.govcal-cal__pill:hover, .govcal-cal__pill:focus-visible { background:rgba(226,168,62,0.20); color:var(--wevt-dark); outline:none; box-shadow:inset 0 0 0 1px var(--wevt-gold2); }
.govcal-cal__pilltime { font-weight:700; color:var(--wevt-gold2); margin-right:3px; }
.govcal-cal__pilltitle { color:var(--wevt-navy); }
.govcal-cal__more { font-size:.72rem; color:var(--wevt-muted); padding:2px 8px; font-weight:600; }
.govcal-cal__live { display:none; align-items:center; gap:4px; background:#d81b1b; color:#fff; font-size:.6rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; padding:1px 6px; border-radius:999px; margin-right:4px; vertical-align:middle; }
.govcal-cal__pill.is-live { border-left-color:#d81b1b; background:rgba(216,27,27,0.07); }
.govcal-cal__pill.is-live .govcal-cal__live { display:inline-flex; }
.govcal-live-dot { width:6px; height:6px; border-radius:50%; background:#fff; animation:govcal-pulse 1.2s ease-in-out infinite; }
@keyframes govcal-pulse { 0%,100%{opacity:1;} 50%{opacity:.25;} }
.govcal-cal__join { display:inline-block; font-size:.7rem; font-weight:700; color:#0a7c46; margin:1px 0 0 8px; text-decoration:none; }
.govcal-cal__join:hover { text-decoration:underline; }
/* The month list is desktop-hidden; only the grid shows there. (Declared before the mobile
   media query so the query's display:block wins on small screens -- equal specificity, source order.) */
.govcal-cal__monthlist{ display:none; }
@media (max-width:640px){
	/* Mobile MONTH = a compact at-a-glance grid (highlighted days w/ a dot) + a full event list underneath. */
	.govcal-cal--month{ padding:16px 0 0; margin-left:0; margin-right:0; }
	.govcal-cal__title{ font-size:1.35rem; }
	.govcal-cal__weekrow{ display:grid; }
	.govcal-cal__weekhead{ padding:7px 1px; font-size:.6rem; letter-spacing:0; }
	.govcal-cal__wfull{ display:none; }
	.govcal-cal__wabbr{ display:inline; }
	.govcal-cal__row{ display:grid; }
	.govcal-cal__cell{ height:auto; aspect-ratio:1/1; min-height:44px; padding:5px 2px 2px; text-align:center; }
	.govcal-cal__cell.is-outmonth{ background:#faf9f7; }
	.govcal-cal__daynum{ display:inline-block; font-size:.9rem; margin:0; }
	.govcal-cal__cell.is-today .govcal-cal__daynum{ min-width:22px; height:22px; line-height:22px; }
	.govcal-cal__events{ display:none; }
	.govcal-cal__more{ display:none; }
	.govcal-cal__cell.has-events::after{ content:''; display:block; width:6px; height:6px; margin:3px auto 0; border-radius:50%; background:var(--wevt-gold2); }
	.govcal-cal__cell.is-today.has-events::after{ background:var(--wevt-navy); }
	/* the list under the grid */
	.govcal-cal__monthlist{ display:block; list-style:none; margin:16px 0 0; padding:0; }
	.govcal-cal__mlday{ padding:10px 2px; border-top:1px solid var(--wevt-line); }
	.govcal-cal__mlday.is-today{ background:rgba(226,168,62,0.10); }
	.govcal-cal__mldate{ font-weight:800; font-size:.8rem; color:var(--wevt-gold2); text-transform:uppercase; letter-spacing:.03em; margin-bottom:5px; }
	.govcal-cal__mlday.is-today .govcal-cal__mldate{ color:var(--wevt-navy); }
	.govcal-cal__mlday .govcal-cal__events{ display:flex; }
	.govcal-cal__mlday .govcal-cal__pill{ display:block; -webkit-line-clamp:unset; font-size:.92rem; padding:8px 10px; }
	.govcal-cal__mlempty{ display:block; text-align:center; color:var(--wevt-muted); padding:16px; margin:12px 0 0; }
}
/* PRINT: the Print button (month view only) adds .govcal-printing to <html>, then prints.
   Scoping to that class means normal Ctrl+P on other pages is untouched -- and here we
   isolate JUST the month grid so it prints as one clean page. */
@media print{
	html.govcal-printing body * { visibility:hidden !important; }
	html.govcal-printing .govcal-cal, html.govcal-printing .govcal-cal * { visibility:visible !important; }
	html.govcal-printing .govcal-cal{ position:absolute !important; left:0; top:0; width:100% !important; max-width:100% !important; margin:0 !important; padding:0 !important; }
	html.govcal-printing .govcal-cal__views,
	html.govcal-printing .govcal-cal__nav,
	html.govcal-printing .govcal-cal__monthlist,
	html.govcal-printing .govcal-cal__add,
	html.govcal-printing .govcal-cal__print,
	html.govcal-printing .govcal-cal__edit,
	html.govcal-printing .govcal-cal__join,
	html.govcal-printing .govcal-cal__live { display:none !important; }
	html.govcal-printing .govcal-cal__head{ margin-bottom:8px; }
	html.govcal-printing .govcal-cal__title{ font-size:18pt; }
	html.govcal-printing .govcal-cal__grid{ border-color:#999; box-shadow:none; }
	html.govcal-printing .govcal-cal__weekrow{ background:#333 !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
	html.govcal-printing .govcal-cal__weekhead{ color:#fff !important; padding:5px 2px; font-size:8pt; }
	html.govcal-printing .govcal-cal__cell{ height:auto !important; min-height:66px; overflow:hidden; }
	html.govcal-printing .govcal-cal__daynum,
	html.govcal-printing .govcal-cal__pilltime,
	html.govcal-printing .govcal-cal__pilltitle{ color:#000 !important; }
	html.govcal-printing .govcal-cal__more{ color:#333 !important; }
}

/* Screen-reader-only text */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* Respect user's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	.govcal-card { transition: none; }
	.govcal-card:hover { transform: none; }
}

.govcal-cal__add { background:#0a7c46 !important; color:#fff !important; }
.govcal-cal__add:hover { background:#08663a !important; }
.govcal-cal__edit { display:inline-block; font-size:.68rem; font-weight:700; color:#6b21a8; margin-left:6px; text-decoration:none; }
.govcal-cal__edit:hover { text-decoration:underline; }

.govcal-card__edit{display:inline-block;margin:2px 0 6px;font-size:.72rem;font-weight:700;color:#6b21a8;text-decoration:none;}
.govcal-card__edit:hover{text-decoration:underline;}

.govcal-cal__views{display:inline-flex;border:1px solid var(--wevt-navy);border-radius:8px;overflow:hidden;}
.govcal-cal__viewtab{padding:7px 16px;font-weight:700;font-size:.85rem;text-decoration:none;color:var(--wevt-navy);background:#fff;border-right:1px solid var(--wevt-navy);}
.govcal-cal__viewtab:last-child{border-right:0;}
.govcal-cal__viewtab.is-active{background:var(--wevt-navy);color:#fff;}
.govcal-cal__viewtab:hover:not(.is-active){background:var(--wevt-mute);}
.govcal-cal__week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--wevt-line);border-radius:10px;overflow:hidden;box-shadow:var(--wevt-shadow);}
.govcal-cal__wday{min-width:0;display:flex;flex-direction:column;border-right:1px solid var(--wevt-line);min-height:190px;padding:8px 7px;background:#fff;}
/* Week pills: whole-word wrap (title on its own line, time above it). With the wider column
   (see the .wcpa-prose widen below) normal-size text fits without breaking mid-word. */
.govcal-cal__week .govcal-cal__pill{font-size:.78rem;line-height:1.32;padding:4px 7px;overflow-wrap:break-word;word-break:normal;}
.govcal-cal__week .govcal-cal__pilltime{display:block;margin:0 0 1px;}
.govcal-cal__week .govcal-cal__pilltitle{display:block;overflow-wrap:break-word;}
/* 2026-07-11 nightly: week columns fill like the month cells (07-09) -- flex column + events
   list stretches so a single-event day box no longer reads as mostly empty. */
.govcal-cal__week .govcal-cal__events{flex:1 1 auto;gap:4px;margin-top:6px;}
.govcal-cal__wday:last-child{border-right:0;}
.govcal-cal__wday.is-today{background:rgba(226,168,62,0.10);box-shadow:inset 0 3px 0 var(--wevt-navy);}
.govcal-cal__wdayhead{border-bottom:1px solid var(--wevt-line);padding-bottom:6px;margin-bottom:6px;}
.govcal-cal__wdayname{display:block;font-weight:800;font-size:.8rem;color:var(--wevt-dark);}
.govcal-cal__wdaynum{font-size:.75rem;color:var(--wevt-gold2);font-weight:700;}
.govcal-cal__wempty{font-size:.75rem;color:#aeb4bd;margin:4px 0 0;}
@media(max-width:640px){.govcal-cal__week{grid-template-columns:1fr;}.govcal-cal__wday{min-height:0;border-right:0;border-bottom:1px solid var(--wevt-line);}}

/* ===== SINGLE EVENT PAGE ============================================== */
.govcal-single{ color:var(--wevt-text); padding-top:30px; }
.govcal-single__inner{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:36px; align-items:start; max-width:1120px; margin:0 auto; }
@media(max-width:880px){ .govcal-single__inner{ grid-template-columns:1fr; } }
.govcal-single__meta{ display:flex; gap:18px; align-items:flex-start; padding:0 0 20px; border-bottom:1px solid var(--wevt-line); margin:0 0 24px; }
.govcal-single__datebox{ flex:0 0 auto; width:78px; text-align:center; background:var(--wevt-navy); color:#fff; border-radius:12px; padding:10px 6px; line-height:1.1; }
.govcal-single__mon{ display:block; font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--wevt-gold); }
.govcal-single__dnum{ display:block; font-size:2rem; font-weight:800; }
.govcal-single__wday{ display:block; font-size:.72rem; opacity:.85; text-transform:uppercase; }
.govcal-single__when{ font-size:1.02rem; margin:0 0 8px; }
.govcal-single__when strong{ color:var(--wevt-dark); font-size:1.2rem; }
.govcal-single__where{ display:flex; align-items:center; gap:6px; color:var(--wevt-muted); margin:0 0 8px; }
.govcal-single__where svg{ color:var(--wevt-gold2); flex:0 0 auto; }
.govcal-single__where a{ color:var(--wevt-navy); }
.govcal-single__tags{ display:flex; gap:8px; flex-wrap:wrap; margin:0; }
.govcal-single__cat{ background:var(--wevt-mute); color:var(--wevt-navy); font-weight:700; font-size:.78rem; padding:3px 10px; border-radius:999px; }
.govcal-single__recur{ background:#eef4ec; color:#0a7c46; font-weight:700; font-size:.78rem; padding:3px 10px; border-radius:999px; }
.govcal-single__join{ background:#f4f8f6; border:1px solid #cfe3d7; border-left:4px solid #0a7c46; border-radius:12px; padding:18px 20px; margin:0 0 24px; }
.govcal-join__badge{ display:none; align-items:center; gap:6px; background:#d81b1b; color:#fff; font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; padding:3px 10px; border-radius:999px; margin-bottom:8px; }
.govcal-single__join.is-live{ border-left-color:#d81b1b; background:#fdf2f2; border-color:#f2caca; }
.govcal-single__join.is-live .govcal-join__badge{ display:inline-flex; }
.govcal-join__h{ margin:0 0 6px; font-size:1.15rem; color:var(--wevt-dark); }
.govcal-join__note{ margin:0 0 14px; color:var(--wevt-muted); font-size:.92rem; }
.govcal-join__btn{ display:inline-flex; align-items:center; gap:8px; background:#0a7c46; color:#fff !important; font-weight:700; text-decoration:none; padding:11px 20px; border-radius:8px; }
.govcal-join__btn:hover{ background:#08663a; color:#fff !important; }
.govcal-join__btn svg{ color:#fff; }
.govcal-single__join.is-live .govcal-join__btn{ background:#d81b1b; }
.govcal-single__join.is-live .govcal-join__btn:hover{ background:#b91414; }
.govcal-single__body{ font-size:1rem; line-height:1.7; margin:0 0 24px; }
.govcal-single__body p{ margin:0 0 1em; }
.govcal-single__files{ margin:0 0 24px; }
.govcal-single__filesh, .govcal-single__addh{ font-size:1.05rem; color:var(--wevt-dark); margin:0 0 10px; }
.govcal-single__files ul{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.govcal-single__files a{ display:inline-flex; align-items:center; gap:8px; color:var(--wevt-navy); font-weight:600; text-decoration:none; }
.govcal-single__files a:hover{ text-decoration:underline; }
.govcal-single__files svg{ color:var(--wevt-gold2); flex:0 0 auto; }
.govcal-single__addcal{ background:#fff; border:1px solid var(--wevt-line); border-radius:12px; padding:18px 20px; margin:0 0 20px; }
.govcal-single__addnote{ color:var(--wevt-muted); font-size:.92rem; margin:0 0 14px; }
.govcal-single__addbtns{ display:flex; gap:10px; flex-wrap:wrap; }
.govcal-single__addbtn{ display:inline-flex; align-items:center; gap:6px; background:var(--wevt-navy); color:#fff !important; font-weight:700; font-size:.88rem; text-decoration:none; padding:9px 16px; border-radius:8px; }
.govcal-single__addbtn:hover{ background:var(--wevt-dark); color:#fff !important; }
.govcal-single__addbtn--ics{ background:var(--wevt-gold); color:var(--wevt-dark) !important; }
.govcal-single__addbtn--ics:hover{ background:var(--wevt-gold2); color:var(--wevt-dark) !important; }
.govcal-single__back{ margin:8px 0 0; }
.govcal-single__back a{ color:var(--wevt-navy); font-weight:600; text-decoration:none; }
.govcal-single__side{ display:flex; flex-direction:column; gap:20px; }
.govcal-mini,.govcal-related{ border:1px solid var(--wevt-line); border-radius:12px; padding:16px; background:#fff; box-shadow:var(--wevt-shadow); }
.govcal-mini__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.govcal-mini__title{ font-weight:800; color:var(--wevt-dark); text-decoration:none; font-size:.95rem; }
.govcal-mini__nav{ color:var(--wevt-navy); text-decoration:none; font-size:1.2rem; font-weight:700; padding:0 6px; border-radius:6px; line-height:1; }
.govcal-mini__nav:hover{ background:var(--wevt-mute); }
.govcal-mini__grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.govcal-mini__wl{ text-align:center; font-size:.68rem; font-weight:700; color:var(--wevt-muted); padding:2px 0; }
.govcal-mini__day{ aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; font-size:.8rem; color:var(--wevt-text); text-decoration:none; border-radius:6px; position:relative; }
.govcal-mini__day:hover{ background:var(--wevt-mute); }
.govcal-mini__day.is-out{ color:#c2c7cf; }
.govcal-mini__day.is-busy::after{ content:''; position:absolute; bottom:3px; left:50%; transform:translateX(-50%); width:4px; height:4px; border-radius:50%; background:var(--wevt-gold2); }
.govcal-mini__day.is-today{ box-shadow:inset 0 0 0 1px var(--wevt-navy); font-weight:700; }
.govcal-mini__day.is-event{ background:var(--wevt-navy); color:#fff; font-weight:800; }
.govcal-mini__day.is-event.is-busy::after{ background:var(--wevt-gold); }
.govcal-mini__all{ display:inline-block; margin-top:12px; color:var(--wevt-navy); font-weight:700; font-size:.85rem; text-decoration:none; }
.govcal-mini__all:hover{ text-decoration:underline; }
.govcal-related__h{ font-size:1rem; color:var(--wevt-dark); margin:0 0 10px; }
.govcal-related__sub{ font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; color:var(--wevt-muted); margin:16px 0 6px; }
.govcal-related__list,.govcal-related__events{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.govcal-related__list a,.govcal-related__events a{ color:var(--wevt-navy); font-weight:600; text-decoration:none; }
.govcal-related__list a:hover,.govcal-related__events a:hover{ text-decoration:underline; }
.govcal-related__events li{ display:flex; flex-direction:column; }
.govcal-related__when{ font-size:.78rem; color:var(--wevt-muted); }
.govcal-related__ics{ display:inline-block; margin-top:14px; font-size:.82rem; color:var(--wevt-gold2); font-weight:700; text-decoration:none; }
.govcal-related__ics:hover{ text-decoration:underline; }

/* ===== SUBSCRIBE BOX ([govcal_subscribe]) ============================= */
.govcal-sub { max-width: 840px; margin: 0 auto; }
.govcal-sub__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.govcal-sub__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--wevt-navy); color: #fff !important; font-weight: 700; text-decoration: none; padding: 11px 20px; border-radius: 8px; }
.govcal-sub__btn:hover { background: var(--wevt-dark); color: #fff !important; }
.govcal-sub__btn--primary { background: var(--wevt-gold); color: var(--wevt-dark) !important; }
.govcal-sub__btn--primary:hover { background: var(--wevt-gold2); color: var(--wevt-dark) !important; }
.govcal-sub__btn--ghost { background: #fff; color: var(--wevt-navy) !important; border: 1px solid var(--wevt-navy); }
.govcal-sub__btn--ghost:hover { background: var(--wevt-mute); color: var(--wevt-navy) !important; }
.govcal-sub__url label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--wevt-muted); margin-bottom: 6px; }
.govcal-sub__copyrow { display: flex; gap: 8px; max-width: 580px; }
.govcal-sub__copyrow input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--wevt-line); border-radius: 8px; font-size: .9rem; color: var(--wevt-text); background: #fff; }
.govcal-sub__copy { background: var(--wevt-navy); color: #fff; border: 0; border-radius: 8px; padding: 9px 18px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.govcal-sub__copy:hover { background: var(--wevt-dark); }
.govcal-sub__hint { font-size: .88rem; color: var(--wevt-muted); margin: 12px 0 0; }
@media (max-width: 520px) { .govcal-sub__btn { flex: 1 1 100%; justify-content: center; } }

/* ===== MONTH events: full-width, underlined (use the cell width) ====== */
.govcal-cal__cell .govcal-cal__pill{ display:block; width:100%; border-left:0; border-radius:3px; padding:1px 3px; line-height:1.25; overflow-wrap:break-word; }
.govcal-cal__cell .govcal-cal__pilltitle{ text-decoration:underline; text-decoration-color:var(--wevt-gold2); text-underline-offset:2px; }
.govcal-cal__cell .govcal-cal__pill.is-live{ padding-left:5px; border-left:3px solid #d81b1b; }
.govcal-cal__more a{ color:var(--wevt-muted); text-decoration:none; }
.govcal-cal__more a:hover{ text-decoration:underline; color:var(--wevt-navy); }
a.govcal-cal__daynum{ text-decoration:none; }
a.govcal-cal__daynum:hover{ text-decoration:underline; }
/* Past days: greyed but still clickable */
.govcal-cal__cell.is-past:not(.is-today){ background:#f6f5f2; }
.govcal-cal__cell.is-past:not(.is-today) .govcal-cal__daynum{ color:#aab0b8; }
.govcal-cal__cell.is-past:not(.is-today) .govcal-cal__pilltitle{ color:#7a828d; text-decoration-color:#c9b285; }

/* ===== DAY view ====================================================== */
.govcal-cal__day{ max-width:820px; margin:0 auto; }
.govcal-cal__todaytag{ display:inline-block; font-size:.58rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; background:var(--wevt-gold); color:var(--wevt-dark); padding:2px 8px; border-radius:999px; vertical-align:middle; margin-left:8px; }
.govcal-cal__daylist{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.govcal-cal__dayitem{ border:1px solid var(--wevt-line); border-left:4px solid var(--wevt-gold); border-radius:10px; padding:14px 18px; background:#fff; box-shadow:var(--wevt-shadow); }
.govcal-cal__dayitem.is-live{ border-left-color:#d81b1b; }
.govcal-cal__dayitemlink{ display:block; text-decoration:none; }
.govcal-cal__dayitemtime{ display:inline-block; font-weight:700; color:var(--wevt-gold2); font-size:.92rem; }
.govcal-cal__dayitemtitle{ display:block; font-size:1.2rem; font-weight:700; color:var(--wevt-navy); margin:2px 0; }
.govcal-cal__dayitemlink:hover .govcal-cal__dayitemtitle{ color:var(--wevt-gold2); }
.govcal-cal__dayitemloc{ display:block; color:var(--wevt-muted); font-size:.9rem; }
.govcal-cal__dayitemtags{ display:flex; gap:14px; margin-top:8px; align-items:center; }
.govcal-cal__dayempty{ text-align:center; padding:28px 16px; }
.govcal-cal__dayempty p{ color:var(--wevt-muted); margin:0 0 12px; }

/* ===== SINGLE: previous / next event pager =========================== */
.govcal-single__pager{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:26px 0 10px; }
.govcal-single__pagerlink{ display:block; text-decoration:none; border:1px solid var(--wevt-line); border-radius:10px; padding:12px 16px; background:#fff; transition:background .12s var(--wevt-ease); }
.govcal-single__pagerlink:hover{ background:var(--wevt-mute); }
.govcal-single__pagerlink--next{ text-align:right; }
.govcal-single__pagerdir{ display:block; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--wevt-gold2); }
.govcal-single__pagertitle{ display:block; color:var(--wevt-navy); font-weight:700; font-size:.98rem; margin-top:3px; }
.govcal-single__pagerwhen{ display:block; color:var(--wevt-muted); font-size:.8rem; }
@media (max-width:560px){ .govcal-single__pager{ grid-template-columns:1fr; } .govcal-single__pagerlink--next{ text-align:left; } }

/* ===== COMPAT (2026-07-08): single-event wrappers added after this file's
   original authoring. govcal-single__main is the left grid column; __facts is
   the flex child beside the date box. Both need min-width:0 so long content
   (URLs in the body, long location text) cannot blow out the grid/flex track. */
.govcal-single__main{ min-width:0; }
.govcal-single__facts{ min-width:0; flex:1 1 auto; }
