.calendar-section{padding:55px 0;background:var(--cream)}.calendar-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.calendar-toolbar h2{font:42px var(--serif);margin:0}.calendar-toolbar>div{display:flex;gap:8px}.calendar-toolbar button{padding:10px 14px;min-height:44px;background:#204970;color:white;border:1px solid #5b7d9e;border-radius:4px}.calendar-weekdays,#church-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;padding:10px 0;font-size:12px;color:var(--muted)}#church-calendar{grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}.calendar-day,.calendar-blank{background:var(--paper);min-height:130px;padding:10px;min-width:0}.calendar-day h3{font:500 17px var(--sans);margin:0 0 12px}.calendar-day h3 small{font-size:9px;margin-left:6px}.calendar-day.is-today{box-shadow:inset 0 0 0 2px #78a9ea}.calendar-event{font-size:10px;line-height:1.4;margin:8px 0;background:#204a77;color:#edf5ff;padding:7px;border-radius:4px;overflow-wrap:anywhere}.calendar-event>*{display:block}.calendar-event strong{font-size:11px;margin-bottom:3px}.calendar-event.special{background:#365f96;border-left:3px solid #b8d7ff}.weekday-mobile{display:none}#calendar-status{font-size:13px;color:var(--muted);margin-top:18px}.prayer-entry{background:#173a61;padding:28px 0;color:#e4efff}.prayer-entry .shell{display:flex;gap:22px;align-items:center;justify-content:space-between}.prayer-entry p{margin:0}.prayer-entry a{color:#e6f0ff;min-height:44px;display:inline-flex;align-items:center}.prayer-entry-links{display:flex;gap:22px;flex-wrap:wrap}.header-inner>.site-nav{gap:12px}.site-nav a{font-size:11px}@media(min-width:901px) and (max-width:1180px){.header-inner{flex-wrap:wrap;padding:15px 0}.header-inner>.site-nav{order:5;width:100%;justify-content:center;margin:0}.theme-picker{margin-left:auto}}
@media(max-width:650px){.calendar-toolbar{align-items:flex-start;flex-direction:column}.calendar-toolbar h2{font-size:36px}.calendar-weekdays,.calendar-blank,.calendar-day:not(.has-events){display:none}#church-calendar{grid-template-columns:1fr;background:transparent;border:0;gap:14px}.calendar-day{border:1px solid var(--line);border-radius:6px;padding:18px}.calendar-event{font-size:14px;padding:12px}.calendar-event strong{font-size:14px}.weekday-mobile{display:inline}.calendar-day h3{font-size:19px}.prayer-entry .shell{align-items:flex-start;flex-direction:column}.prayer-entry-links{gap:12px 25px}}

/* Seasonal calendar artwork and biblical feast entries */
.calendar-hero{background-size:cover;background-position:center 53%;background-repeat:no-repeat}
.calendar-event.feast{background:#624525;color:#fff9e8;border-left:3px solid #f3c56f}
.calendar-event.feast strong{color:#ffe1a0;letter-spacing:.08em}
.calendar-feast-note{font-size:13px;line-height:1.6;color:var(--muted);margin:4px 0 0;max-width:780px}
@media(max-width:650px){.calendar-hero{background-position:65% center}.calendar-event.feast{background:#624525}}

/* Calendar page polish: an expanding framed grid and clearer event hierarchy */
.calendar-section .calendar-frame{position:relative;padding:28px;background:linear-gradient(145deg,#1b3b5d 0%,#102b4a 100%);border:1px solid rgba(226,189,117,.38);border-radius:18px;box-shadow:0 20px 45px rgba(3,16,34,.23);overflow:hidden}
.calendar-section .calendar-frame::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#c58c43,#f2d69d 48%,#b57838)}
.calendar-section .calendar-toolbar{margin-bottom:16px;align-items:end}
.calendar-section .calendar-title .eyebrow{display:block;color:#f2cf91;margin-bottom:7px}
.calendar-section .calendar-toolbar h2{color:#fff;font-size:clamp(34px,4vw,48px);line-height:1.05}
.calendar-section .calendar-legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0 0 19px;color:#e5edf7;font-size:12px}
.calendar-section .calendar-legend span{display:inline-flex;align-items:center;gap:7px}
.calendar-section .calendar-legend span::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:#508bc5;box-shadow:0 0 0 3px rgba(80,139,197,.17)}
.calendar-section .calendar-legend .legend-feast::before{background:#e6b86c;box-shadow:0 0 0 3px rgba(230,184,108,.2)}
.calendar-section .calendar-legend .legend-special::before{background:#adcaf0;box-shadow:0 0 0 3px rgba(173,202,240,.18)}
.calendar-section .calendar-weekdays{color:#e6edf8;font-weight:700;letter-spacing:.05em}
.calendar-section #church-calendar{grid-auto-rows:minmax(205px,auto);border-radius:9px;overflow:hidden;background:rgba(203,223,245,.25);border-color:rgba(203,223,245,.25)}
.calendar-section .calendar-day,.calendar-section .calendar-blank{min-height:0;padding:12px}
.calendar-section .calendar-blank{background:rgba(255,255,255,.04)}
.calendar-section .calendar-day h3{font-size:18px;margin-bottom:10px}
.calendar-section .calendar-day.has-feast{box-shadow:inset 0 3px #e9b969}
.calendar-section .calendar-day.is-today{box-shadow:inset 0 0 0 2px #78a9ea}
.calendar-section .calendar-event{margin:6px 0;padding:8px 9px;border-radius:7px;font-size:11px;line-height:1.3}
.calendar-section .calendar-event strong{margin-bottom:2px}
.calendar-section .calendar-event>span:not(.feast-symbol){font-weight:600}
.calendar-section .calendar-event:not(.special):not(.feast) small{display:none}
.calendar-section .calendar-event.feast{position:relative;padding-right:35px;background:linear-gradient(125deg,#715029,#583a1d);border-left:3px solid #f2c779;color:#fff8e9}
.calendar-section .calendar-event.feast .feast-symbol{display:grid;place-items:center;position:absolute;top:7px;right:7px;width:23px;height:23px;border:1px solid rgba(255,225,161,.5);border-radius:50%;color:#ffe1a0;background:rgba(255,225,161,.12)}
.calendar-section .calendar-event.feast .feast-symbol svg{width:15px;height:15px}
.calendar-section #calendar-status{margin-top:20px;margin-bottom:7px}
.calendar-section .calendar-feast-note{margin:0;max-width:850px;padding-left:13px;border-left:2px solid #c99c57}
html[data-theme="light"] .calendar-section .calendar-blank{background:#e9eef4}
body .managed-content{padding:72px 0}
body .managed-content .shell{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:auto auto;gap:0 54px;align-items:center}
body .managed-content .shell>.eyebrow{grid-column:1;grid-row:1;align-self:end;color:#f1c681}
body .managed-content .shell>h2{grid-column:1;grid-row:2;margin:10px 0 0;font-size:clamp(38px,4.5vw,62px);line-height:1.05}
body .managed-content .managed-grid{grid-column:2;grid-row:1/span 2;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body .managed-content .managed-grid:has(>p:only-child){display:block}
body .managed-content .managed-grid>p{position:relative;margin:0;padding:27px 28px 27px 65px;max-width:none;border:1px solid rgba(236,195,122,.36);border-radius:12px;background:linear-gradient(145deg,#183a5c,#12304f);box-shadow:0 14px 30px rgba(2,16,34,.16);color:#ecf3fb;line-height:1.6}
body .managed-content .managed-grid>p::before{content:"✦";position:absolute;top:25px;left:25px;color:#f2c779;font-size:28px;line-height:1}
body .gatherings{padding:88px 0}
body .gatherings .gathering-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:1100px;margin:0 auto}
body .gatherings .gathering-list article{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:0 16px;align-items:start;padding:22px;border:1px solid rgba(190,217,244,.22);border-radius:12px;background:linear-gradient(145deg,#193a5c,#13304f);box-shadow:0 12px 24px rgba(4,18,39,.13)}
body .gatherings .gathering-list article .gathering-day{width:56px;height:56px;display:grid;place-items:center;border-radius:9px;background:#275582;color:#fff}
body .gatherings .gathering-list article h3{margin-top:3px}
body .gatherings .gathering-list article>strong{color:#f1cd8d;white-space:nowrap;font-size:15px}
body .calendar-connect .connect-panel{border-radius:12px;box-shadow:8px 8px 0 rgba(111,155,207,.16)}
@media(max-width:900px){body .managed-content .shell{gap:0 25px}body .gatherings .gathering-list{grid-template-columns:1fr}.calendar-section .calendar-frame{padding:20px}.calendar-section #church-calendar{grid-auto-rows:minmax(190px,auto)}}
@media(max-width:650px){.calendar-section .calendar-frame{padding:17px;border-radius:12px}.calendar-section .calendar-toolbar{align-items:flex-start}.calendar-section .calendar-toolbar h2{font-size:34px}.calendar-section .calendar-legend{gap:7px 13px;font-size:11px}.calendar-section #church-calendar{grid-auto-rows:auto;overflow:visible;background:transparent;border:0;gap:12px}.calendar-section .calendar-day{min-height:0}.calendar-section .calendar-event:not(.special):not(.feast) small{display:block}body .managed-content .shell{display:block}body .managed-content .shell>h2{margin:10px 0 25px}body .managed-content .managed-grid{display:block}body .gatherings .gathering-list article{grid-template-columns:54px minmax(0,1fr);gap:0 14px}body .gatherings .gathering-list article>strong{grid-column:2;margin-top:8px}body .gatherings .gathering-list article .gathering-day{width:52px;height:52px}}

/* Final spacing and contrast adjustments */
.calendar-section .calendar-title{display:flex;flex-direction:column;align-items:flex-start}
.calendar-section .calendar-title .eyebrow{height:auto;line-height:1.3;margin:0 0 7px}
.calendar-section .calendar-title h2{margin:0}
.calendar-section #church-calendar{grid-auto-rows:minmax(220px,auto)}
.calendar-section .calendar-blank{background:#1b3858}
@media(max-width:900px){.calendar-section #church-calendar{grid-auto-rows:minmax(235px,auto)}}
@media(max-width:650px){.calendar-section #church-calendar{grid-auto-rows:auto}}

/* Every calendar week has the same fixed height; full entries open in a dialog. */
.calendar-section #church-calendar{grid-auto-rows:220px}
.calendar-section .calendar-day,.calendar-section .calendar-blank{height:220px;overflow:hidden}
.calendar-section .calendar-day{position:relative}
.calendar-section .calendar-day[role="button"]{cursor:pointer;transition:background-color .18s ease,box-shadow .18s ease}
.calendar-section .calendar-day[role="button"]:hover{background:#1a385b}
html[data-theme="light"] .calendar-section .calendar-day[role="button"]:hover{background:#eef4fa}
.calendar-section .calendar-day[role="button"]:focus-visible{outline:3px solid #f3c778;outline-offset:-4px;z-index:1}
.calendar-section .calendar-day h3{padding-right:76px}
.calendar-section .calendar-open-hint{position:absolute;top:13px;right:10px;color:#bad3ee;font-size:10px;font-weight:700;letter-spacing:.02em}
html[data-theme="light"] .calendar-section .calendar-open-hint{color:#315d87}
.calendar-section .calendar-event{max-height:62px}
.calendar-section .calendar-event>span:not(.feast-symbol){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.calendar-section .calendar-event.feast small,.calendar-section .calendar-event.special small{display:none}
.calendar-day-dialog{width:min(640px,calc(100vw - 32px));max-height:min(82vh,850px);overflow:auto;margin:auto;padding:0;background:#102b49;color:#f5f8fd;border:1px solid rgba(239,196,119,.55);border-radius:16px;box-shadow:0 28px 80px rgba(0,0,0,.45)}
.calendar-day-dialog::backdrop{background:rgba(3,15,33,.7);backdrop-filter:blur(3px)}
.calendar-day-dialog .calendar-dialog-top{display:flex;justify-content:space-between;gap:18px;align-items:start;padding:25px 28px 20px;border-bottom:1px solid rgba(222,236,252,.18);background:linear-gradient(145deg,#1d426a,#143456)}
.calendar-day-dialog .calendar-dialog-top .eyebrow{color:#f1c77d}
.calendar-day-dialog .calendar-dialog-top h2{color:#fff;font:40px/1.05 var(--serif);margin:7px 0 0}
.calendar-day-dialog .calendar-dialog-close{flex:none;width:44px;height:44px;border:1px solid rgba(235,241,251,.35);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.calendar-day-dialog .calendar-dialog-close:hover,.calendar-day-dialog .calendar-dialog-close:focus-visible{background:#315d87;outline:2px solid #f1c77d}
.calendar-day-dialog #calendar-dialog-content{display:grid;gap:12px;padding:22px 28px 28px}
.calendar-day-dialog .calendar-dialog-event{padding:18px 20px;border:1px solid rgba(190,218,248,.25);border-left:4px solid #6ca7df;border-radius:9px;background:#1a3a5d}
.calendar-day-dialog .calendar-dialog-event.feast{border-left-color:#eec276;background:#493820}
.calendar-day-dialog .calendar-dialog-event.special{border-left-color:#bfd7f5}
.calendar-day-dialog .calendar-dialog-kind{display:block;color:#b9d9fa;font-size:10px;letter-spacing:.14em;font-weight:800}
.calendar-day-dialog .calendar-dialog-event.feast .calendar-dialog-kind{color:#ffe1a1}
.calendar-day-dialog .calendar-dialog-event h3{color:#fff;font:30px/1.1 var(--serif);margin:7px 0}
.calendar-day-dialog .calendar-dialog-event strong{display:block;color:#f5d398;font-size:14px}
.calendar-day-dialog .calendar-dialog-event p{margin:8px 0 0;color:#e8eef8;line-height:1.55}
.calendar-day-dialog .calendar-dialog-note{margin:4px 0 0;padding-left:12px;border-left:2px solid #e9b969;color:#dce7f6;font-size:13px;line-height:1.5}
@media(max-width:900px){.calendar-section #church-calendar{grid-auto-rows:220px}}
@media(max-width:650px){.calendar-section #church-calendar{grid-auto-rows:220px}.calendar-section .calendar-day{height:220px}.calendar-section .calendar-event:not(.special):not(.feast) small{display:none}.calendar-day-dialog .calendar-dialog-top{padding:20px}.calendar-day-dialog .calendar-dialog-top h2{font-size:31px}.calendar-day-dialog #calendar-dialog-content{padding:18px 20px 22px}}
