/* ministry events lists (fed by clc-events.js) */
.ev-list { min-height: 120px; }
.ev-list:empty::before { content: ""; display: block; height: 120px; border-radius: 24px; background: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.09), rgba(0,0,0,.05)); background-size: 200% 100%; animation: ev-shimmer 1.4s linear infinite; }
@keyframes ev-shimmer { to { background-position: -200% 0; } }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2.2vw, 28px); }
/* cards and the details dialog are always white, so they keep dark ink in dark mode too */
.ev-card, .ev-dialog { --ink: #1a1a1a; }
.ev-card { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px; border-radius: 24px; background: #fff; color: var(--ink, #1a1a1a); box-shadow: 0 10px 28px rgba(0,0,0,.08); transition: transform .4s var(--ease-std, ease), box-shadow .4s; }
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.ev-img { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin: -6px 0 2px; }
.ev-when { text-align: center; padding: 10px 6px 12px; border-radius: 18px; background: var(--ac, #ddd); color: #fff; line-height: 1; }
.ev-when b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.ev-when span { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.ev-when i { display: block; margin-top: 6px; font-style: normal; font-size: 10px; letter-spacing: .08em; opacity: .9; }
.ev-title { margin: 2px 0 6px; font-size: clamp(19px, 1.5vw, 24px); line-height: 1.15; }
.ev-meta { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; opacity: .7; }
.ev-sum { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; opacity: .9; }
.ev-deadline { margin: 0 0 10px; font-size: 12px; font-weight: 700; color: var(--ac, inherit); }
.ev-cta { margin: 0; }
.ev-card { cursor: pointer; }
.ev-card:focus-visible { outline: 3px solid var(--ac, #1a1a1a); outline-offset: 4px; }
.ev-cta a, .ev-cta button { display: inline-flex; border: 0; cursor: pointer; font: inherit; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; background: var(--ink, #1a1a1a); color: #fff; transition: transform .3s, background .3s; }
.ev-cta a:hover, .ev-cta button:hover { transform: translateX(2px); }
.ev-empty { margin: 0; padding: clamp(28px, 4vw, 48px); border-radius: 24px; text-align: center; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; background: rgba(255,255,255,.55); border: 2px dashed rgba(0,0,0,.18); }
/* horizontal rail (events page: everything in the next 30 days) */
.ev-rail-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.ev-count { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.ev-arrows { display: flex; gap: 8px; }
.ev-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink, #1a1a1a); background: transparent; color: var(--ink, #1a1a1a); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .25s, color .25s, opacity .25s; }
.ev-arrow:hover:not(:disabled) { background: var(--ink, #1a1a1a); color: #fff; }
.ev-arrow:disabled { opacity: .25; cursor: default; }
.ev-rail-bar.no-scroll .ev-arrows { display: none; }
.ev-rail { display: flex; align-items: stretch; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut, 16px); margin-inline: calc(-1 * var(--gut, 16px)); padding: 6px var(--gut, 16px) 34px; scrollbar-width: thin; }
.ev-rail:focus-visible { outline: 3px solid var(--ink, #1a1a1a); outline-offset: -3px; }
.ev-rail .ev-card { flex: 0 0 min(380px, 76vw); scroll-snap-align: start; align-content: start; }
.ev-rail .ev-card:hover { transform: translateY(-3px); }
@media (max-width: 560px) { .ev-arrows { display: none; } }
html[data-anim] .ev-card { animation: ev-in .6s var(--ease-std, ease) calc(var(--i, 0) * 70ms) both; }
@keyframes ev-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 560px) { .ev-card { grid-template-columns: 64px minmax(0, 1fr); padding: 18px; gap: 12px; } .ev-when b { font-size: 26px; } }

/* Early Life: soft, rounded, Fredoka */
.garden .ev-card { border-radius: 30px; background: #fff; }
.garden .ev-title { font-family: var(--disp); font-weight: 700; color: var(--navy); }
.garden .ev-when { border-radius: 22px; }
.garden .ev-cta a, .garden .ev-cta button { background: var(--orange); color: var(--cream); font-family: var(--disp); letter-spacing: .04em; text-transform: none; font-size: 14px; }
.garden .ev-empty { font-family: var(--disp); color: var(--navy); background: rgba(255,255,255,.6); border-color: rgba(11,59,102,.25); }

/* Kids Life: chunky, playful */
.stand .ev-card { border-radius: 26px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--green); }
.stand .ev-card:hover { box-shadow: 10px 10px 0 var(--red); }
.stand .ev-title { font-family: var(--disp); font-weight: 800; }
.stand .ev-when { border-radius: 18px; border: 3px solid var(--ink); }
.stand .ev-cta a, .stand .ev-cta button { background: var(--red); border-radius: 999px; }
.stand .ev-empty { font-family: var(--disp); font-weight: 700; border: 3px dashed var(--ink); background: #fff; }

/* Student Life: zine, hard edges, tape date */
.zine .ev-card { border-radius: 0; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: var(--cream); }
.zine .ev-card:hover { box-shadow: 12px 12px 0 var(--blue); }
.zine .ev-when { border-radius: 0; background: var(--pink); color: var(--ink); rotate: -3deg; }
.zine .ev-title { font-family: var(--disp); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(24px, 2vw, 32px); }
.zine .ev-cta a, .zine .ev-cta button { border-radius: 0; background: var(--ink); color: var(--cream); }
.zine .ev-empty { border-radius: 0; border: 3px dashed var(--ink); background: var(--cream); font-family: var(--disp); text-transform: uppercase; letter-spacing: .02em; }

/* Young Adult Life: editorial, quiet */
.found .ev-card { border-radius: 8px; background: #fff; box-shadow: none; border: 1px solid rgba(0,0,0,.12); }
.found .ev-card:hover { border-color: var(--blue); box-shadow: 0 14px 36px rgba(47,84,175,.12); }
.found .ev-when { border-radius: 6px; background: var(--blue); }
.found .ev-title { font-family: var(--serif, "Instrument Serif", serif); font-style: italic; font-weight: 400; font-size: clamp(24px, 2vw, 32px); }
.found .ev-cta a, .found .ev-cta button { border-radius: 4px; background: var(--orange); }
.found .ev-empty { border-radius: 8px; border: 1px dashed rgba(0,0,0,.3); background: #fff; font-family: var(--serif, "Instrument Serif", serif); font-style: italic; }

/* ---------- event details dialog ---------- */
html.ev-lock { overflow: hidden; }
.ev-dialog { border: 0; padding: 0; background: transparent; max-width: min(760px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); margin: auto; color: var(--ink, #1a1a1a); }
.ev-dialog::backdrop { background: rgba(10, 10, 12, .62); backdrop-filter: blur(3px); }
.ev-dlg { position: relative; background: #fff; background-color: #fff; border-radius: 28px; overflow: hidden; display: grid; max-height: calc(100svh - 32px); grid-template-rows: auto minmax(0, 1fr); }
.ev-dlg-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.ev-dlg-band { display: flex; align-items: baseline; gap: 10px; padding: 26px 30px; background: var(--ac, #ddd); color: #fff; font-weight: 800; line-height: 1; }
.ev-dlg-band span { font-size: 54px; letter-spacing: -.03em; } .ev-dlg-band small { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.ev-dlg-body { padding: 26px 30px 30px; overflow: auto; }
.ev-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.72); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ev-close:hover { background: #000; }
.ev-kicker { margin: 0 0 8px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 800; color: var(--ac, inherit); }
.ev-dlg-title { margin: 0 0 18px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; }
.ev-facts { margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ev-facts div { padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.05); }
.ev-facts dt { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 800; opacity: .6; margin-bottom: 4px; }
.ev-facts dd { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.35; }
.ev-dlg-text p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ev-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink, #1a1a1a); background: #fff; color: var(--ink, #1a1a1a); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: transform .25s, background .25s, color .25s; }
.ev-btn:hover { transform: translateY(-2px); }
.ev-btn.ev-primary { background: var(--ink, #1a1a1a); color: #fff; }
.ev-btn.ev-quiet { border-color: rgba(0,0,0,.2); font-weight: 700; }
@media (max-width: 560px) { .ev-dlg-body { padding: 20px 18px 22px; } .ev-dlg-band { padding: 20px 18px; } .ev-actions .ev-btn { flex: 1 1 auto; justify-content: center; } }
/* per page */
.garden .ev-dlg { border-radius: 34px; } .garden .ev-dlg-title { font-family: var(--disp); font-weight: 700; color: var(--navy); } .garden .ev-btn.ev-primary { background: var(--orange); border-color: var(--orange); color: var(--cream); }
.stand .ev-dlg { border: 3px solid var(--ink); border-radius: 28px; box-shadow: 10px 10px 0 var(--green); } .stand .ev-dlg-title { font-family: var(--disp); font-weight: 800; } .stand .ev-btn.ev-primary { background: var(--red); border-color: var(--red); }
.zine .ev-dlg { border-radius: 0; border: 3px solid var(--ink, #1a1a1a); box-shadow: 14px 14px 0 var(--ink, #1a1a1a); background: var(--cream, #FFECCE); } .zine .ev-dlg-title { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 4vw, 56px); } .zine .ev-facts div { border-radius: 0; background: rgba(0,0,0,.06); } .zine .ev-btn { border-radius: 0; } .zine .ev-btn.ev-primary { background: var(--red); border-color: var(--red); color: #fff; } .zine .ev-close { border-radius: 0; }
.found .ev-dlg { border-radius: 10px; } .found .ev-dlg-title { font-family: var(--serif, "Instrument Serif", serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 4vw, 56px); } .found .ev-btn { border-radius: 6px; } .found .ev-btn.ev-primary { background: var(--orange); border-color: var(--orange); }

/* ---- 10th pastoral anniversary spotlight ---- */
.anniv { position: relative; overflow: hidden; background: radial-gradient(90% 120% at 85% 20%, #3a2a10 0%, #120c06 55%, #000 100%); color: #fff; padding: clamp(70px, 10vh, 120px) 0; }
.anniv::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(214,176,74,.06) 0 2px, transparent 2px 18px); pointer-events: none; }
.anniv-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.anniv-h { margin: 14px 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(10px, 1.4vw, 20px); font-weight: 800; text-transform: uppercase; line-height: .92; letter-spacing: -.02em; font-size: clamp(30px, 3.6vw, 58px); color: #fff; }
.anniv-n { flex: none; display: inline-block; font-size: 3.3em; line-height: 1; padding: .02em .04em .06em 0; letter-spacing: -.05em; background: linear-gradient(180deg, #F7E3A1, #D6B04A 55%, #9C7424); -webkit-background-clip: text; background-clip: text; color: transparent; }
.anniv-th { align-self: flex-start; margin: .35em 0 0 calc(-1 * clamp(10px, 1.4vw, 20px) + .05em); font-size: 1em; font-weight: 800; color: #E8C46A; letter-spacing: 0; }
.anniv-h em { font-style: normal; color: #E8C46A; }
.anniv-sub { margin: 0 0 12px; font-size: 18px; color: rgba(255,255,255,.82); max-width: 44ch; }
.anniv-when { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #E8C46A; }
.anniv-count { display: flex; gap: 12px; margin-bottom: 26px; }
.anniv-count span { display: grid; place-items: center; min-width: 96px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(232,196,106,.35); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.anniv-count b { font-size: 34px; letter-spacing: -.02em; color: #fff; }
.anniv-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 26px; box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(232,196,106,.3); display: block; }
/* "Pastoral Anniversary" sits on its own lines under the 10th, so it never runs under the photo */
.anniv-h .anniv-t { flex-basis: 100%; margin-top: -.35em; }
@media (max-width: 900px) { .anniv-grid { grid-template-columns: minmax(0, 1fr); } .anniv-art { order: -1; } }
/* ---- registration closing soon ---- */
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 26px); }
.rc-card { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: var(--paper-2); color: var(--ink); box-shadow: 0 14px 34px rgba(0,0,0,.1); }
.rc-img { position: relative; display: block; padding: 0; border: 0; aspect-ratio: 16 / 9; background: var(--ac); cursor: pointer; overflow: hidden; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.rc-img:hover img { transform: scale(1.04); }
.rc-left { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--red, #EB1515); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rc-left b { font-size: 16px; letter-spacing: 0; }
.rc-body { padding: 20px 22px 24px; display: grid; gap: 6px; align-content: start; }
.rc-min { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ac); }
.rc-body h3 { margin: 0; font-size: 24px; text-transform: uppercase; letter-spacing: -.01em; }
.rc-when { margin: 0; font-size: 14px; color: var(--ink-2); }
.rc-dl { margin: 4px 0 12px; font-size: 13px; font-weight: 700; color: var(--red, #EB1515); }
.rc-body .btn { justify-self: start; }
/* ---- browse by ministry ---- */
.br-chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 18px; scrollbar-width: thin; }
.br-chips button { flex: none; display: grid; gap: 4px; min-width: 150px; padding: 16px 18px; border-radius: 18px; text-align: left; font: inherit; cursor: pointer; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-bottom: 4px solid var(--mc, var(--ink)); transition: transform .25s var(--ease), background-color .25s, color .25s; }
.br-chips button b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.br-chips button span { font-size: 12px; color: var(--ink-3, #888); }
.br-chips button:hover { transform: translateY(-2px); }
.br-chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); border-bottom-color: var(--mc, var(--red)); }
.br-chips button[aria-pressed="true"] span { color: inherit; opacity: .7; }
/* ---- regular weekly schedule ---- */
.wk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wk { padding: 24px 26px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); display: grid; gap: 6px; }
.wk-k { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.wk h3 { margin: 0; font-size: 26px; text-transform: uppercase; letter-spacing: -.01em; color: #fff; }
.wk b { font-size: 18px; color: var(--red, #EB1515); }
@media (max-width: 900px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wk-grid { grid-template-columns: minmax(0, 1fr); } }

[data-auto-hide][hidden], .rail a[hidden] { display: none !important; }
.cal-nav[hidden] { display: none !important; }
/* Kids Life cards: every card wears a different shadow colour; hover switches to a colour no resting card uses */
.stand .ev-grid > .ev-card:nth-child(5n+1) { --sh: #E5679A; } .stand .ev-grid > .ev-card:nth-child(5n+2) { --sh: #50AB65; } .stand .ev-grid > .ev-card:nth-child(5n+3) { --sh: #4F97AA; } .stand .ev-grid > .ev-card:nth-child(5n+4) { --sh: #7B5CD6; } .stand .ev-grid > .ev-card:nth-child(5n) { --sh: #EF5C59; }
.stand .ev-card { box-shadow: 8px 8px 0 var(--sh, #EF5C59); transition: transform .3s cubic-bezier(.3,1.5,.5,1), box-shadow .3s; }
.stand .ev-card:hover { box-shadow: 12px 12px 0 #F28C38; transform: translate(-3px, -3px) rotate(-.5deg); }

/* "Invite" on each event card: a frosted pill over the picture (or at the card's corner without one) */
.ev-inv { position: absolute; z-index: 2; top: 24px; right: 24px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(20,20,22,.55); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); color: #fff; font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: transform .25s cubic-bezier(.3,1.5,.5,1), background-color .2s; }
.ev-inv::before { content: ""; position: absolute; inset: -6px; }
.ev-inv svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ev-inv:hover { transform: scale(1.05); background: var(--red, #EB1515); border-color: var(--red, #EB1515); }
.ev-inv:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ev-inv.no-img { top: 18px; right: 18px; background: transparent; color: var(--ink, #1a1a1a); border-color: rgba(0,0,0,.18); backdrop-filter: none; -webkit-backdrop-filter: none; }
.ev-inv.no-img:hover { color: #fff; }
.ev-card:has(.ev-inv.no-img) .ev-title { padding-right: 92px; }
@media (max-width: 560px) { .ev-inv { top: 20px; right: 20px; } .ev-inv.no-img { top: 14px; right: 14px; } }
button.ev-btn { font: inherit; font-weight: 800; font-size: 12px; letter-spacing: .1em; cursor: pointer; }
.ev-btn.ev-invbtn { background: var(--red, #EB1515); border-color: var(--red, #EB1515); color: #fff; }
