/* ==========================================================================
   Kingdom Church — main stylesheet
   Colours, fonts, radius and container width come from the Customizer as
   CSS variables (see kingdom_dynamic_css()).
   ========================================================================== */

:root {
	--k-primary: #5b2a86;
	--k-accent: #f4a62a;
	--k-dark: #16121c;
	--k-on-primary: #fff;
	--k-bg: #ffffff;
	--k-surface: #ffffff;
	--k-surface-2: #f6f3fa;
	--k-text: #1f1b24;
	--k-muted: #6b6475;
	--k-border: #e7e2ee;
	--k-shadow: 0 10px 30px rgba(22, 18, 28, .08);
	--k-shadow-lg: 0 24px 60px rgba(22, 18, 28, .14);
	--k-radius: 14px;
	--k-container: 1200px;
	--k-header-h: 76px;
	--k-font-heading: "Playfair Display", Georgia, serif;
	--k-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--k-section: clamp(4rem, 8vw, 7rem);
	color-scheme: light;
}

[data-theme="dark"] {
	--k-bg: #121016;
	--k-surface: #1b1820;
	--k-surface-2: #231f2a;
	--k-text: #f1eef5;
	--k-muted: #a9a2b4;
	--k-border: #332e3b;
	--k-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	--k-shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
	color-scheme: dark;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--k-bg); color: var(--k-text); font-family: var(--k-font-body); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--k-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
[data-theme="dark"] a { color: color-mix(in srgb, var(--k-primary) 45%, #fff); }
a:hover { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--k-font-heading); line-height: 1.2; margin: 0 0 .6em; color: var(--k-text); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--k-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.k-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--k-primary); color: #fff; padding: .75rem 1rem; }
.k-skip:focus { left: 1rem; top: 1rem; }
.k-icon { flex: none; vertical-align: -0.2em; }

/* Layout helpers --------------------------------------------------------- */
.k-container { width: 100%; max-width: var(--k-container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.k-container--narrow { max-width: 820px; }
.k-center { text-align: center; }
.k-mt { margin-top: 2.5rem; }
.k-mb { margin-bottom: 3rem; }
.k-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.k-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.k-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.k-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 1000px) { .k-grid--3 { grid-template-columns: repeat(3, 1fr); } .k-grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .k-hide-sm { display: none !important; } }

/* Buttons ---------------------------------------------------------------- */
.k-btn, .wp-block-button__link, button.k-btn, input[type="submit"].k-btn, .comment-form .submit { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; border: 2px solid var(--k-primary); background: var(--k-primary); color: var(--k-on-primary) !important; font: 600 1rem/1.2 var(--k-font-body); text-decoration: none !important; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.k-btn:hover, .comment-form .submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--k-primary) 35%, transparent); }
.k-btn--accent { background: var(--k-accent); border-color: var(--k-accent); color: #1f1b24 !important; }
.k-btn--accent:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--k-accent) 40%, transparent); }
.k-btn--outline { background: transparent; color: var(--k-primary) !important; }
[data-theme="dark"] .k-btn--outline { color: var(--k-text) !important; border-color: var(--k-border); }
.k-btn--glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff !important; backdrop-filter: blur(6px); }
.k-btn--light { background: #fff; border-color: #fff; color: var(--k-primary) !important; }
.k-btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.k-btn--lg { padding: 1em 2em; font-size: 1.05rem; }
.k-btn--block { width: 100%; }
.k-btns { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.5rem; }
.k-btns--center { justify-content: center; }
.k-btns--stack { flex-direction: column; align-items: stretch; }
.k-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; }
.k-link .k-icon { transition: transform .2s; }
.k-link:hover .k-icon { transform: translateX(4px); }
.k-icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--k-border); background: transparent; color: inherit; cursor: pointer; transition: background .2s; }
.k-icon-btn:hover { background: var(--k-surface-2); }
.k-when-dark, .k-when-open { display: none; }
[data-theme="dark"] .k-when-dark { display: inline; }
[data-theme="dark"] .k-when-light { display: none; }
.is-nav-open .k-when-open { display: inline; }
.is-nav-open .k-when-closed { display: none; }

/* Top bar ---------------------------------------------------------------- */
.k-topbar { background: var(--k-dark); color: rgba(255,255,255,.8); font-size: .85rem; }
.k-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.k-topbar__info, .k-topbar__links { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.k-topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.k-topbar a:hover { color: #fff; }
.k-topbar__menu { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.k-topbar .k-icon { width: 15px; height: 15px; }
@media (max-width: 720px) { .k-topbar__info span { display: none; } }

/* Header ----------------------------------------------------------------- */
.k-header { position: relative; z-index: 100; background: var(--k-surface); border-bottom: 1px solid var(--k-border); transition: background .3s, box-shadow .3s, transform .3s; }
.has-sticky-header .k-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .k-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .k-header { top: 0; } }
.k-header.is-scrolled { box-shadow: var(--k-shadow); }
.k-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--k-header-h); }
.k-brand { flex: none; }
.k-brand__name { font-family: var(--k-font-heading); font-size: 1.45rem; font-weight: 800; color: var(--k-text); text-decoration: none; }
.k-brand img { max-height: 56px; width: auto; }
.k-nav { flex: 1; }
.k-menu { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; justify-content: center; }
.k-menu a { display: block; white-space: nowrap; padding: .6rem .7rem; border-radius: 10px; color: var(--k-text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.k-menu a:hover, .k-menu .current-menu-item > a, .k-menu .current_page_item > a { color: var(--k-primary); background: var(--k-surface-2); }
.k-menu li { position: relative; }
.k-menu .sub-menu, .k-menu .children { position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: .5rem; background: var(--k-surface); border: 1px solid var(--k-border); border-radius: 12px; box-shadow: var(--k-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.k-menu li:hover > .sub-menu, .k-menu li:focus-within > .sub-menu, .k-menu li:hover > .children, .k-menu li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.k-menu .menu-item-has-children > a::after, .k-menu .page_item_has_children > a::after { content: "▾"; margin-left: .35em; font-size: .75em; opacity: .6; }
.k-header__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.k-nav-toggle { display: none; }
.k-search-panel { border-top: 1px solid var(--k-border); padding: 1rem 0; background: var(--k-surface); }

/* Centered header */
.header-centered .k-header__inner { flex-wrap: wrap; justify-content: center; padding-block: .75rem; }
.header-centered .k-brand { width: 100%; text-align: center; }
.header-centered .k-brand img { margin: 0 auto; }
.header-centered .k-header__actions { margin-left: 0; }

/* Transparent header over hero */
.has-transparent-header .k-header,
.has-transparent-header.has-sticky-header .k-header { position: absolute; top: auto; left: 0; right: 0; background: transparent; border-color: rgba(255,255,255,.15); }
.has-transparent-header.has-sticky-header .k-header.is-scrolled { position: fixed; top: 0; animation: k-slide-down .35s ease; }
.admin-bar.has-transparent-header.has-sticky-header .k-header.is-scrolled { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-transparent-header.has-sticky-header .k-header.is-scrolled { top: 0; } }
@keyframes k-slide-down { from { transform: translateY(-100%); } to { transform: none; } }
.has-transparent-header .k-header:not(.is-scrolled) .k-menu > li > a,
.has-transparent-header .k-header:not(.is-scrolled) .k-brand__name,
.has-transparent-header .k-header:not(.is-scrolled) .k-icon-btn { color: #fff; border-color: rgba(255,255,255,.3); }
.has-transparent-header .k-header:not(.is-scrolled) .k-menu > li > a:hover { background: rgba(255,255,255,.12); }
.has-transparent-header .k-header.is-scrolled { background: var(--k-surface); }
.has-transparent-header .k-topbar { position: relative; z-index: 101; }

@media (max-width: 1240px) {
	.k-nav-toggle { display: inline-grid; }
	.k-nav { display: none; }
}
}

/* Search form */
.k-search-form { display: flex; gap: .5rem; max-width: 640px; margin: 0 auto 1.5rem; }
.k-search-form input { flex: 1; padding: .85em 1.1em; border-radius: 999px; border: 1px solid var(--k-border); background: var(--k-surface); color: var(--k-text); font: inherit; }
.k-search-form button { width: 52px; border-radius: 50%; border: 0; background: var(--k-primary); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* Eyebrow & headings ------------------------------------------------------ */
.k-eyebrow { display: inline-block; font-family: var(--k-font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--k-primary); margin-bottom: .75rem; }
[data-theme="dark"] .k-eyebrow { color: var(--k-accent); }
.k-eyebrow--light { color: var(--k-accent) !important; }
.k-section { padding-block: var(--k-section); }
.k-section--tight { padding-block: 2.5rem; }
.k-section--alt { background: var(--k-surface-2); }
.k-section--dark { background: var(--k-dark); color: #fff; }
.k-section--dark h2, .k-section--dark h3 { color: #fff; }
.k-section--dark .k-eyebrow { color: var(--k-accent); }
.k-section--dark .k-section__head p { color: rgba(255,255,255,.75); }
.k-section__head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
.k-section__head--center { text-align: center; }
.k-section__head--left { margin-inline: 0; }
.k-section__title { margin-bottom: .4em; }
.k-section__text { color: var(--k-muted); font-size: 1.1rem; margin: 0; }
.k-section--dark .k-section__text { color: rgba(255,255,255,.75); }
.k-section__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.k-section__bar .k-section__head { margin-bottom: 0; }
.k-lead { font-size: 1.15rem; color: var(--k-muted); }

/* Hero ------------------------------------------------------------------- */
.k-hero { position: relative; overflow: hidden; }
.k-hero--cover { min-height: min(100vh, 900px); display: flex; align-items: center; color: #fff; background-color: var(--k-dark); background-image: var(--k-img, linear-gradient(135deg, var(--k-primary), var(--k-dark))); background-size: cover; background-position: center; padding-block: calc(var(--k-header-h) + 4rem) 5rem; }
.k-hero__video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.k-hero__overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(10,8,14,.75), rgba(10,8,14,.55) 40%, rgba(10,8,14,.85)); }
.k-hero__inner { position: relative; z-index: 2; }
.k-hero__content { max-width: 760px; }
.k-center .k-hero__content { margin-inline: auto; }
.k-center .k-btns { justify-content: center; }
.k-hero__title { color: inherit; font-size: clamp(2.5rem, 6.5vw, 5rem); line-height: 1.05; margin-bottom: .35em; }
.k-hero__title--xl { font-size: clamp(2.8rem, 8vw, 6rem); }
.k-hero__text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); opacity: .9; max-width: 620px; }
.k-center .k-hero__text { margin-inline: auto; }
.k-hero--cover .k-hero__title { color: #fff; }
.k-play-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fff; color: var(--k-primary); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: k-ring 2s infinite; }
.k-play-btn .k-icon { width: 26px; height: 26px; margin-left: 3px; }
@keyframes k-ring { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 70% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.k-hero__countdown { margin-top: 2rem; }
.k-hero__countdown .kcs-countdown { justify-items: start; }
.k-scroll-cue { position: absolute; bottom: 2rem; left: 50%; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; transform: translateX(-50%); z-index: 2; }
.k-scroll-cue::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: k-scroll 1.8s infinite; }
@keyframes k-scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.k-hero__strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.15); }
.k-hero__strip-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; padding-block: 1.1rem; }
.k-hero__strip small { display: block; opacity: .7; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.k-hero--mega { min-height: 100vh; }

.k-hero--split { padding-block: calc(var(--k-header-h) + 3rem) var(--k-section); background: radial-gradient(1200px 500px at 90% 0%, color-mix(in srgb, var(--k-primary) 14%, transparent), transparent), var(--k-bg); }
.has-transparent-header .k-hero--split, .has-transparent-header .k-hero--minimal, .has-transparent-header .k-hero--live { padding-top: calc(var(--k-header-h) + 5rem); }
.k-hero__split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.k-hero__visual { position: relative; }
.k-hero__image { aspect-ratio: 4/5; border-radius: calc(var(--k-radius) * 2); background-color: var(--k-surface-2); background-image: var(--k-img, linear-gradient(135deg, var(--k-primary), var(--k-accent))); background-size: cover; background-position: center; box-shadow: var(--k-shadow-lg); }
.k-floating-card { position: absolute; left: -2rem; bottom: 2rem; background: var(--k-surface); color: var(--k-text); border-radius: var(--k-radius); padding: 1.25rem 1.5rem; box-shadow: var(--k-shadow-lg); min-width: 240px; }
.k-floating-card p { margin: .4rem 0 0; font-size: .95rem; }
@media (max-width: 900px) { .k-hero__split { grid-template-columns: 1fr; } .k-floating-card { left: 1rem; } }
.k-hero--minimal { padding-block: calc(var(--k-header-h) + 4rem) var(--k-section); background: var(--k-surface-2); }
.k-hero--live { padding-block: 3rem; background: var(--k-dark); color: #fff; }
.k-hero--live .k-hero__title, .k-hero--live .kcs-live__title { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.k-hero__live-head { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.k-hero--live .kcs-btn--ghost { color: #fff !important; border-color: rgba(255,255,255,.4); }

/* Service times bar ------------------------------------------------------ */
.k-times { background: var(--k-primary); color: #fff; }
.k-times__inner { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; padding-block: 1.25rem; }
.k-times__label { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.k-times__item small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.k-times__item span { font-weight: 600; }

/* Split ------------------------------------------------------------------ */
.k-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.k-split--top { align-items: start; }
.k-split__media { position: relative; }
.k-split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: calc(var(--k-radius) * 1.6); position: relative; z-index: 1; }
.k-split__accent { position: absolute; top: 1.5rem; right: -1.5rem; bottom: -1.5rem; left: 1.5rem; border: 3px solid var(--k-accent); border-radius: calc(var(--k-radius) * 1.6); }
.k-placeholder { aspect-ratio: 4/3; display: grid; place-items: center; gap: .5rem; border-radius: var(--k-radius); background: linear-gradient(135deg, color-mix(in srgb, var(--k-primary) 15%, var(--k-surface-2)), var(--k-surface-2)); color: var(--k-primary); position: relative; z-index: 1; text-align: center; padding: 1rem; }
.k-placeholder .k-icon { width: 48px; height: 48px; }
.k-prose p { color: var(--k-muted); }
.k-signature { font-family: var(--k-font-heading); font-size: 1.2rem; margin: 1.5rem 0; }
.k-signature small { font-family: var(--k-font-body); color: var(--k-muted); font-size: .9rem; }
.k-checklist { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .6rem; }
.k-checklist li::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: .6rem; border-radius: 50%; background: color-mix(in srgb, var(--k-primary) 14%, transparent); color: var(--k-primary); font-weight: 800; font-size: .8rem; }
@media (max-width: 900px) { .k-split { grid-template-columns: 1fr; } .k-split__accent { display: none; } }

/* Cards ------------------------------------------------------------------ */
.k-card { display: flex; flex-direction: column; background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.k-card:hover { transform: translateY(-6px); box-shadow: var(--k-shadow-lg); }
.k-card__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--k-surface-2); }
.k-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.k-card:hover .k-card__media img { transform: scale(1.05); }
.k-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.k-card__title { font-size: 1.25rem; margin: 0 0 .35rem; }
.k-card__title a { color: var(--k-text); text-decoration: none; }
.k-card__title a:hover { color: var(--k-primary); }
.k-card__text { color: var(--k-muted); font-size: .97rem; margin-bottom: .75rem; }
.k-card .k-link { margin-top: auto; }
.k-play { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--k-primary); display: grid; place-items: center; transition: transform .2s; }
.k-play .k-icon { width: 24px; height: 24px; margin-left: 3px; }
.k-card:hover .k-play, .k-video-thumb:hover .k-play { transform: scale(1.12); }
.k-duration { position: absolute; right: .75rem; bottom: .75rem; background: rgba(0,0,0,.75); color: #fff; font-size: .78rem; font-weight: 600; padding: .15em .55em; border-radius: 6px; }
.k-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--k-muted); font-size: .88rem; margin: 0 0 1rem; }
.k-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.k-event-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; color: var(--k-muted); font-size: .92rem; }
.k-event-meta li { display: flex; align-items: center; gap: .5rem; }
.k-date-badge { position: absolute; top: 1rem; left: 1rem; display: grid; place-items: center; width: 64px; height: 68px; border-radius: 12px; background: var(--k-surface); color: var(--k-text); box-shadow: var(--k-shadow); line-height: 1; }
.k-date-badge b { font-size: 1.6rem; font-family: var(--k-font-heading); color: var(--k-primary); }
.k-date-badge small { text-transform: uppercase; font-weight: 700; font-size: .75rem; letter-spacing: .08em; }
.k-ministry-card__icon { font-size: 2.4rem; margin-bottom: .5rem; }

.k-featured-sermon { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; background: var(--k-surface); border-radius: calc(var(--k-radius) * 1.5); padding: clamp(1rem, 2vw, 1.5rem); margin-bottom: 2.5rem; box-shadow: var(--k-shadow); }
.k-video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--k-radius); background-color: var(--k-dark); background-image: var(--k-img, none); background-size: cover; background-position: center; cursor: pointer; }
.k-featured-sermon__body h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.k-featured-sermon__body h3 a { color: var(--k-text); text-decoration: none; }
@media (max-width: 860px) { .k-featured-sermon { grid-template-columns: 1fr; } }

.k-event-list { display: grid; gap: .75rem; }
.k-event-row { display: flex; align-items: center; gap: 1.25rem; padding: 1rem 1.25rem; background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-radius); color: var(--k-text); text-decoration: none; transition: .2s; }
.k-event-row:hover { border-color: var(--k-primary); transform: translateX(4px); }
.k-event-row .k-date-badge { position: static; box-shadow: none; background: var(--k-surface-2); flex: none; }
.k-event-row__body { flex: 1; display: grid; }
.k-event-row__body strong { font-size: 1.1rem; }
.k-event-row__body small { color: var(--k-muted); }

/* Leaders & testimonies --------------------------------------------------- */
.k-leader { text-align: center; }
.k-leader__photo { display: block; aspect-ratio: 5/6; border-radius: var(--k-radius); overflow: hidden; background: var(--k-surface-2); margin-bottom: 1rem; }
.k-leader__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: transform .5s, filter .5s; }
.k-leader:hover img { transform: scale(1.05); filter: none; }
.k-leader__initials { display: grid; place-items: center; height: 100%; font-size: 4rem; font-family: var(--k-font-heading); color: var(--k-primary); }
.k-leader__name { margin: 0; font-size: 1.2rem; }
.k-leader__name a { color: var(--k-text); text-decoration: none; }
.k-leader__role { color: var(--k-muted); margin: .2rem 0 0; font-size: .95rem; }
.k-testimony { margin: 0; padding: 2rem; background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-radius); position: relative; display: flex; flex-direction: column; }
.k-testimony::before { content: "“"; position: absolute; top: -.1em; right: 1.25rem; font-family: var(--k-font-heading); font-size: 6rem; line-height: 1; color: color-mix(in srgb, var(--k-primary) 18%, transparent); }
.k-testimony blockquote { margin: 0 0 1.5rem; font-size: 1.05rem; color: var(--k-text); flex: 1; }
.k-testimony figcaption { display: flex; align-items: center; gap: .75rem; }
.k-testimony figcaption span { flex: 1; display: grid; }
.k-testimony figcaption small { color: var(--k-muted); }
.k-testimony__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.k-testimony__by { font-weight: 700; font-style: italic; }

/* Stats ------------------------------------------------------------------ */
.k-stats { background: linear-gradient(135deg, var(--k-primary), color-mix(in srgb, var(--k-primary) 55%, #000)); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); position: relative; }
.k-stats.has-image { background: linear-gradient(rgba(10,8,14,.75), rgba(10,8,14,.75)), var(--k-img) center/cover fixed; }
.k-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; text-align: center; }
.k-stat strong { font-family: var(--k-font-heading); font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; }
.k-stat__plus { font-size: 2rem; color: var(--k-accent); font-weight: 700; }
.k-stat small { display: block; margin-top: .5rem; opacity: .85; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }

/* Countdown & verse bands ------------------------------------------------- */
.k-countdown-band { background: var(--k-dark); color: #fff; padding-block: 2.5rem; }
.k-countdown-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.k-countdown-band .kcs-countdown__label { display: none; }
.k-verse-band { background: linear-gradient(135deg, var(--k-dark), color-mix(in srgb, var(--k-primary) 60%, var(--k-dark))); color: #fff; padding-block: clamp(4rem, 8vw, 6rem); }
.k-verse-band__text { font-family: var(--k-font-heading); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.4; margin: 0 0 1rem; }
.k-verse-band cite { font-style: normal; font-weight: 700; color: var(--k-accent); letter-spacing: .05em; }

/* Features --------------------------------------------------------------- */
.k-feature { padding: 2rem 1.75rem; background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-radius); transition: .25s; }
.k-feature:hover { border-color: var(--k-primary); box-shadow: var(--k-shadow); }
.k-feature__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--k-primary) 12%, transparent); color: var(--k-primary); margin-bottom: 1.1rem; }
[data-theme="dark"] .k-feature__icon { color: var(--k-accent); }
.k-feature__icon .k-icon { width: 26px; height: 26px; }
.k-feature h3 { margin-bottom: .4rem; }
.k-feature p { color: var(--k-muted); margin: 0; }

/* CTA -------------------------------------------------------------------- */
.k-cta { padding-block: clamp(3rem, 6vw, 5rem); background: var(--k-surface-2); }
.k-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: clamp(2rem, 5vw, 3.5rem); border-radius: calc(var(--k-radius) * 2); background: linear-gradient(120deg, var(--k-primary), color-mix(in srgb, var(--k-primary) 50%, var(--k-accent))); color: #fff; box-shadow: var(--k-shadow-lg); }
.k-cta h2 { color: #fff; margin-bottom: .3em; }
.k-cta p { margin: 0; opacity: .9; max-width: 560px; }

/* Facts list & map ------------------------------------------------------- */
.k-facts { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.k-facts li { display: flex; gap: .9rem; align-items: flex-start; }
.k-facts li > .k-icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--k-primary) 12%, transparent); color: var(--k-primary); }
.k-facts span { display: grid; }
.k-facts small { color: var(--k-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.k-map { border-radius: var(--k-radius); overflow: hidden; min-height: 420px; box-shadow: var(--k-shadow); }
.k-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.k-map--small, .k-map--small iframe { min-height: 300px; margin-top: 2rem; }
.k-map .k-placeholder { height: 100%; min-height: 420px; aspect-ratio: auto; }

/* Page header ------------------------------------------------------------ */
.k-page-header { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--k-surface-2); position: relative; }
.k-page-header.has-image { background: linear-gradient(rgba(10,8,14,.65), rgba(10,8,14,.75)), var(--k-img) center/cover; color: #fff; }
.has-transparent-header .k-page-header { padding-top: calc(var(--k-header-h) + 4rem); }
.k-page-header__title { margin: .5rem 0 0; }
.k-page-header.has-image .k-page-header__title { color: #fff; }
.k-page-header__subtitle { margin: .75rem 0 0; font-size: 1.15rem; color: var(--k-muted); max-width: 680px; }
.k-page-header.has-image .k-page-header__subtitle { color: rgba(255,255,255,.85); }
.k-page-header .kcs-breadcrumbs { color: var(--k-muted); }
.k-page-header.has-image .kcs-breadcrumbs { color: rgba(255,255,255,.8); }

/* Entry content ---------------------------------------------------------- */
.k-layout { display: grid; gap: 3rem; padding-block: var(--k-section); }
.k-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
.k-layout--sidebar-left.has-sidebar { grid-template-columns: 320px minmax(0, 1fr); }
.k-layout--sidebar-left .k-sidebar { order: -1; }
@media (max-width: 960px) { .k-layout.has-sidebar, .k-layout--sidebar-left.has-sidebar { grid-template-columns: 1fr; } .k-layout--sidebar-left .k-sidebar { order: 0; } }
.k-section.k-layout { padding-block: var(--k-section); }
.k-entry__content > * + * { margin-top: 1.2em; }
.k-entry__content h2, .k-entry__content h3 { margin-top: 1.8em; }
.k-entry__content img { border-radius: var(--k-radius); }
.k-entry__content blockquote { margin: 2em 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--k-accent); background: var(--k-surface-2); border-radius: 0 12px 12px 0; font-size: 1.15rem; }
.k-entry__content ul, .k-entry__content ol { padding-left: 1.3em; }
.k-entry__content table { width: 100%; border-collapse: collapse; }
.k-entry__content th, .k-entry__content td { padding: .6rem; border-bottom: 1px solid var(--k-border); text-align: left; }
.k-entry__content .alignwide { max-width: 1200px; margin-inline: auto; }
.k-entry__content--full > *:not(.alignfull):not(.alignwide) { max-width: 820px; margin-inline: auto; padding-inline: 1rem; }
.k-entry__content--full .alignfull { width: 100%; }
.k-entry__media { margin: 0 0 2rem; }
.k-entry__media img { width: 100%; border-radius: var(--k-radius); }
.k-beliefs h3 { margin: 0; padding: 1.5rem 1.5rem .25rem; background: var(--k-surface-2); border-radius: var(--k-radius) var(--k-radius) 0 0; border-left: 4px solid var(--k-primary); }
.k-beliefs h3 + p { margin-top: 0; padding: 0 1.5rem 1.5rem; background: var(--k-surface-2); border-radius: 0 0 var(--k-radius) var(--k-radius); border-left: 4px solid var(--k-primary); color: var(--k-muted); }
.k-profile { display: grid; grid-template-columns: 320px 1fr; gap: 2.5rem; align-items: start; }
.k-profile__photo img { width: 100%; border-radius: var(--k-radius); }
@media (max-width: 760px) { .k-profile { grid-template-columns: 1fr; } }
.k-tags { margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.k-tags a { padding: .25em .8em; border-radius: 999px; background: var(--k-surface-2); font-size: .85rem; text-decoration: none; }
.k-share { display: flex; align-items: center; gap: .5rem; margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid var(--k-border); }
.k-share span { font-weight: 700; margin-right: .5rem; }
.k-share a, .k-share button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--k-border); color: var(--k-text); background: transparent; cursor: pointer; transition: .2s; }
.k-share a:hover, .k-share button:hover { background: var(--k-primary); color: #fff; border-color: var(--k-primary); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.post-navigation a { display: grid; padding: 1rem 1.25rem; border: 1px solid var(--k-border); border-radius: var(--k-radius); text-decoration: none; color: var(--k-text); }
.post-navigation small { color: var(--k-muted); }
.post-navigation .nav-next { text-align: right; }
.k-pagination, .k-pagination .nav-links { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-top: 3rem; }
.k-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem; border-radius: 12px; border: 1px solid var(--k-border); text-decoration: none; color: var(--k-text); font-weight: 600; }
.k-pagination .current { background: var(--k-primary); color: #fff; border-color: var(--k-primary); }

/* Sidebar & widgets */
.k-sidebar .widget { padding: 1.5rem; margin-bottom: 1.5rem; background: var(--k-surface-2); border-radius: var(--k-radius); }
.widget-title { font-size: 1.1rem; margin-bottom: 1rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: .4rem 0; border-bottom: 1px solid var(--k-border); }
.widget li:last-child { border: 0; }

/* Sermon / event single */
.k-sermon__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
@media (max-width: 960px) { .k-sermon__grid { grid-template-columns: 1fr; } }
.k-sermon__main .kcs-embed { margin-bottom: 1.5rem; }
.k-panel { padding: 1.5rem; background: var(--k-surface-2); border-radius: var(--k-radius); margin-bottom: 1.5rem; }
.k-panel .k-facts { margin-top: 0; }
.k-sermon__aside { position: sticky; top: calc(var(--k-header-h) + 1.5rem); }
.k-audio { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: var(--k-surface-2); border-radius: var(--k-radius); }
.k-audio span { font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }
.k-audio audio { flex: 1; min-width: 220px; }
.k-audio__speed { font-size: .85rem; display: inline-flex; gap: .35rem; align-items: center; }
.k-audio__speed select { padding: .3em; border-radius: 8px; border: 1px solid var(--k-border); background: var(--k-surface); color: var(--k-text); }
.k-mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.k-mini-list a { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: var(--k-text); font-weight: 600; font-size: .95rem; }
.k-mini-list img { width: 88px; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; flex: none; }
.k-event__countdown { margin-bottom: 2rem; padding: 1.5rem; border-radius: var(--k-radius); background: var(--k-dark); color: #fff; }

/* Filters */
.k-filters { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.k-filters__form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.k-filters select, .k-filters input[type="search"] { padding: .6em 1em; border-radius: 999px; border: 1px solid var(--k-border); background: var(--k-surface); color: var(--k-text); font: inherit; font-size: .92rem; }

/* Search results & empty */
.k-search-results { display: grid; gap: 1.5rem; margin-top: 2rem; }
.k-search-item { padding-bottom: 1.5rem; border-bottom: 1px solid var(--k-border); }
.k-search-item h2 { font-size: 1.4rem; margin: 0 0 .3rem; }
.k-search-item h2 a { color: var(--k-text); text-decoration: none; }
.k-empty { text-align: center; padding: 3rem 1rem; color: var(--k-muted); }
.k-notice { padding: 1rem 1.25rem; border: 2px dashed var(--k-border); border-radius: var(--k-radius); color: var(--k-muted); text-align: center; }
.k-404__code { font-family: var(--k-font-heading); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; margin: 0; background: linear-gradient(135deg, var(--k-primary), var(--k-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }

/* Comments */
.k-comments { margin-top: 3rem; }
.k-comment-list { list-style: none; padding: 0; }
.k-comment-list .comment-body { padding: 1.25rem; border: 1px solid var(--k-border); border-radius: var(--k-radius); margin-bottom: 1rem; }
.k-comment-list .avatar { border-radius: 50%; float: left; margin-right: .75rem; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: .75em 1em; border: 1px solid var(--k-border); border-radius: 10px; background: var(--k-surface); color: var(--k-text); font: inherit; }

/* Footer ----------------------------------------------------------------- */
.k-footer { background: var(--k-dark); color: rgba(255,255,255,.72); font-size: .97rem; }
.k-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.k-footer a:hover { color: #fff; }
.k-footer h3, .k-footer h4, .k-footer .widget-title { color: #fff; font-family: var(--k-font-heading); }
.k-footer__newsletter { padding-block: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.k-footer__newsletter .kcs-newsletter { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem 2rem; align-items: center; }
.k-footer__newsletter .kcs-newsletter__title { color: #fff; font-family: var(--k-font-heading); font-size: 1.6rem; }
.k-footer__newsletter .kcs-newsletter__text { grid-column: 1; }
.k-footer__newsletter .kcs-newsletter__fields { grid-column: 2; grid-row: 1 / span 2; }
.k-footer__newsletter .kcs-newsletter input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.k-footer__newsletter .kcs-form-msg { grid-column: 1 / -1; }
@media (max-width: 860px) { .k-footer__newsletter .kcs-newsletter { grid-template-columns: 1fr; } .k-footer__newsletter .kcs-newsletter__fields { grid-column: 1; grid-row: auto; } }
.k-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: 4rem; }
@media (max-width: 900px) { .k-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .k-footer__grid { grid-template-columns: 1fr; } }
.k-footer__brand { font-size: 1.5rem; }
.k-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.k-footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.k-footer__contact .k-icon { margin-top: .25rem; color: var(--k-accent); }
.k-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.25rem; font-size: .88rem; }
.k-footer__bottom .k-container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.k-footer__bottom p { margin: 0; }
.k-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.k-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: .2s; }
.k-entry .k-social a { background: var(--k-surface-2); color: var(--k-text); }
.k-social a:hover { background: var(--k-primary); color: #fff; }

/* Floating UI ------------------------------------------------------------ */
.k-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--k-primary); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; z-index: 90; box-shadow: var(--k-shadow); }
.k-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.k-whatsapp { position: fixed; left: 1.25rem; bottom: 1.25rem; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; z-index: 90; box-shadow: 0 8px 24px rgba(37,211,102,.4); }
.k-whatsapp .k-icon { width: 28px; height: 28px; }
.k-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 1rem; }
.k-modal[hidden] { display: none; }
.k-modal__body { width: min(1100px, 100%); aspect-ratio: 16/9; }
.k-modal__body iframe { width: 100%; height: 100%; border: 0; border-radius: var(--k-radius); }
.k-modal__close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1; }

/* Plugin integration tweaks ---------------------------------------------- */
.k-section--dark .kcs-live__title, .k-section--dark .kcs-live-badge:not(.is-live) { color: #fff !important; }
.k-section--dark .kcs-live-badge:not(.is-live) { background: rgba(255,255,255,.1); }
.k-section--dark .kcs-btn--ghost { color: #fff !important; border-color: rgba(255,255,255,.4); }
.k-hero .kcs-countdown, .k-countdown-band .kcs-countdown, .k-event__countdown { color: #fff; }
.k-newsletter-band { background: var(--k-surface-2); }
.k-newsletter-band .kcs-newsletter { justify-items: center; }
.k-newsletter-band .kcs-newsletter__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.k-newsletter-band .kcs-newsletter__fields { width: 100%; max-width: 620px; }
.k-header .kcs-live-badge { white-space: nowrap; }
@media (max-width: 560px) { .k-header .kcs-live-badge:not(.is-live) { display: none; } }
.has-transparent-header .k-header:not(.is-scrolled) .kcs-live-badge:not(.is-live) { background: rgba(255,255,255,.15); color: #fff !important; }

/* Reveal on scroll ------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* Landing template */
.k-landing { background: var(--k-bg); }

/* Block editor alignment helpers */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--k-muted); text-align: center; }
.has-primary-color { color: var(--k-primary) !important; }
.has-primary-background-color { background-color: var(--k-primary) !important; }
.has-accent-color { color: var(--k-accent) !important; }
.has-accent-background-color { background-color: var(--k-accent) !important; }

/* ==========================================================================
   Branding, button styles, light logo
   ========================================================================== */
.k-brand { display: flex; flex-direction: column; justify-content: center; }
.k-brand__name { display: inline-flex; align-items: center; gap: .55rem; }
.k-brand__mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--k-primary), var(--k-accent)); position: relative; box-shadow: 0 6px 14px color-mix(in srgb, var(--k-primary) 40%, transparent); }
.k-brand__mark::before, .k-brand__mark::after { content: ""; position: absolute; background: #fff; border-radius: 2px; left: 50%; top: 50%; }
.k-brand__mark::before { width: 4px; height: 18px; transform: translate(-50%, -55%); }
.k-brand__mark::after { width: 13px; height: 4px; transform: translate(-50%, -150%); }
.k-brand__tagline { font-size: .75rem; color: var(--k-muted); letter-spacing: .02em; }
.k-brand__light { display: none; }
.has-light-logo .k-brand__light img { max-height: 56px; width: auto; }
[data-theme="dark"] .has-light-logo .custom-logo-link,
.has-transparent-header .k-header:not(.is-scrolled) .has-light-logo .custom-logo-link { display: none; }
[data-theme="dark"] .has-light-logo .k-brand__light,
.has-transparent-header .k-header:not(.is-scrolled) .has-light-logo .k-brand__light { display: block; }
.has-transparent-header .k-header:not(.is-scrolled) .k-brand__tagline { color: rgba(255,255,255,.75); }
.k-footer__motto { font-family: var(--k-font-heading); font-style: italic; color: var(--k-accent); font-size: 1.1rem; }
.btn-rounded .k-btn, .btn-rounded .kcs-btn { border-radius: 12px; }
.btn-square .k-btn, .btn-square .kcs-btn { border-radius: 3px; }

/* ==========================================================================
   Mobile-first: app-style bottom tab bar & touch sizing
   ========================================================================== */
.k-tabbar { display: none; }
@media (max-width: 860px) {
	.has-mobile-nav .k-tabbar { position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: .35rem max(.5rem, env(safe-area-inset-right)) calc(.35rem + env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left)); background: color-mix(in srgb, var(--k-surface) 88%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid var(--k-border); box-shadow: 0 -8px 30px rgba(0,0,0,.08); }
	.k-tabbar a, .k-tabbar button { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: .35rem 0; border: 0; background: none; color: var(--k-muted); font: 600 .7rem/1.1 var(--k-font-body); text-decoration: none; border-radius: 14px; cursor: pointer; }
	.k-tabbar a[aria-current="page"], .k-tabbar a:active { color: var(--k-primary); background: color-mix(in srgb, var(--k-primary) 10%, transparent); }
	.k-tabbar .k-icon { width: 22px; height: 22px; }
	.k-tabbar a:nth-child(3) .k-icon { width: 46px; height: 46px; padding: 12px; margin-top: -22px; border-radius: 50%; color: #1f1b24; background: var(--k-accent); box-shadow: 0 8px 20px color-mix(in srgb, var(--k-accent) 55%, transparent); }
	.has-mobile-nav { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.has-mobile-nav .k-to-top, .has-mobile-nav .k-palette { bottom: calc(80px + env(safe-area-inset-bottom)); }
	.has-mobile-nav .k-whatsapp { bottom: calc(80px + env(safe-area-inset-bottom)); }
	.has-mobile-nav .k-header__actions .k-nav-toggle { display: none; }
	.k-hero--cover { min-height: 88svh; }
	.k-btns .k-btn { flex: 1 1 100%; }
	.k-section { padding-block: 3.5rem; }
	.kcs-form input, .kcs-form select, .kcs-form textarea, .kcs-newsletter input { font-size: 16px; } /* no iOS zoom */
}

/* ==========================================================================
   Visitor colour palette picker
   ========================================================================== */
.k-palette { position: fixed; z-index: 92; left: max(1.25rem, env(safe-area-inset-left)); bottom: 1.25rem; }
.k-palette__toggle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--k-border); background: var(--k-surface); color: var(--k-primary); display: grid; place-items: center; cursor: pointer; box-shadow: var(--k-shadow); }
.k-palette__panel { position: absolute; bottom: 56px; left: 0; width: 236px; padding: 1rem; border-radius: var(--k-radius); background: var(--k-surface); border: 1px solid var(--k-border); box-shadow: var(--k-shadow-lg); }
.k-palette__panel p { margin: 0 0 .6rem; font-weight: 700; font-size: .9rem; }
.k-palette__swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.k-palette__swatches button { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--k-surface); background: conic-gradient(var(--sw-a) 0 60%, var(--sw-b) 60% 100%); box-shadow: 0 0 0 1px var(--k-border); cursor: pointer; transition: transform .15s; }
.k-palette__swatches button:hover, .k-palette__swatches button.is-active { transform: scale(1.12); box-shadow: 0 0 0 2px var(--k-text); }
.k-palette__reset { margin-top: .75rem; width: 100%; padding: .5rem; border-radius: 10px; border: 1px dashed var(--k-border); background: none; color: var(--k-muted); cursor: pointer; font: inherit; font-size: .82rem; }
.k-whatsapp ~ .k-palette, body:has(.k-whatsapp) .k-palette { left: auto; right: max(1.25rem, env(safe-area-inset-right)); bottom: 5rem; }

/* ==========================================================================
   Social connect
   ========================================================================== */
.k-social-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.k-social-card { --brand: var(--k-primary); position: relative; display: grid; gap: .3rem; padding: 1.5rem; border-radius: calc(var(--k-radius) * 1.2); background: var(--k-surface); border: 1px solid var(--k-border); color: var(--k-text) !important; text-decoration: none !important; overflow: hidden; }
.k-social-card::before { content: ""; position: absolute; top: auto; right: -30%; bottom: -60%; left: auto; width: 160px; height: 160px; border-radius: 50%; background: var(--brand); opacity: .12; transition: transform .4s; }
.k-social-card:hover::before { transform: scale(1.6); }
.k-social-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; margin-bottom: .5rem; box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 40%, transparent); }
.k-social-card__icon .k-icon { width: 26px; height: 26px; }
.k-social-card small { color: var(--k-muted); }
.k-social-card__cta { margin-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--brand); }
[data-theme="dark"] .k-social-card__cta { color: var(--k-text); }
.k-social-card--facebook { --brand: #1877f2; }
.k-social-card--instagram { --brand: #d62976; }
.k-social-card--youtube { --brand: #e00; }
.k-social-card--x { --brand: #111; }
.k-social-card--tiktok { --brand: #fe2c55; }
.k-social-card--whatsapp { --brand: #25d366; }
.k-social-card--telegram { --brand: #229ed9; }

/* ==========================================================================
   3D UI layer (body.k-3d)
   ========================================================================== */
.k-3d .k-grid, .k-3d .kcs-plans, .k-3d .k-social-grid { perspective: 1200px; }
.k-3d [data-tilt] { transform-style: preserve-3d; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; will-change: transform; }
.k-3d [data-tilt].is-tilting { transition: transform .08s linear, box-shadow .25s; box-shadow: 0 30px 60px -20px rgba(15, 10, 30, .35), 0 12px 24px -12px color-mix(in srgb, var(--k-primary) 45%, transparent); }
.k-3d [data-tilt] > * { transform: translateZ(0); }
.k-3d [data-tilt].is-tilting .k-card__title, .k-3d [data-tilt].is-tilting .kcs-plan__price, .k-3d [data-tilt].is-tilting .k-social-card__icon, .k-3d [data-tilt].is-tilting .k-feature__icon { transform: translateZ(40px); }
.k-3d [data-tilt]::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.22), transparent 45%); opacity: 0; transition: opacity .3s; }
.k-3d [data-tilt].is-tilting::after { opacity: 1; }
.k-3d .k-card, .k-3d .k-feature, .k-3d .k-testimony, .k-3d .kcs-plan, .k-3d .k-social-card, .k-3d .k-leader { position: relative; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 14px 30px -18px rgba(15,10,30,.25); }
.k-3d .k-btn { box-shadow: 0 4px 0 color-mix(in srgb, var(--k-primary) 60%, #000), 0 10px 20px -8px color-mix(in srgb, var(--k-primary) 60%, transparent); }
.k-3d .k-btn--accent { box-shadow: 0 4px 0 color-mix(in srgb, var(--k-accent) 60%, #000), 0 10px 20px -8px color-mix(in srgb, var(--k-accent) 60%, transparent); }
.k-3d .k-btn--outline, .k-3d .k-btn--glass, .k-3d .k-btn--light { box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.k-3d .k-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--k-primary) 60%, #000); }

/* Hero scene: layered orbs, a 3D cross and an orbiting ring */
.k-hero__scene { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; pointer-events: none; perspective: 900px; overflow: hidden; }
.k-orb { position: absolute; border-radius: 50%; filter: blur(2px); background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--k-accent) 85%, #fff), var(--k-primary) 70%); opacity: .55; animation: k-float 12s ease-in-out infinite; }
.k-orb--1 { width: 260px; height: 260px; right: 8%; top: 18%; }
.k-orb--2 { width: 120px; height: 120px; right: 30%; bottom: 14%; animation-delay: -4s; opacity: .4; }
.k-orb--3 { width: 70px; height: 70px; left: 6%; bottom: 22%; animation-delay: -8s; opacity: .35; }
.k-cross3d { position: absolute; right: 16%; top: 30%; width: 120px; height: 180px; transform-style: preserve-3d; animation: k-spin 18s linear infinite; }
.k-cross3d i { position: absolute; left: 50%; top: 50%; background: linear-gradient(135deg, rgba(255,255,255,.9), color-mix(in srgb, var(--k-accent) 70%, #fff)); border-radius: 6px; box-shadow: 0 0 40px color-mix(in srgb, var(--k-accent) 60%, transparent); }
.k-cross3d i:first-child { width: 22px; height: 180px; transform: translate(-50%, -50%); }
.k-cross3d i:last-child { width: 110px; height: 22px; transform: translate(-50%, -260%); }
.k-ring3d { position: absolute; right: 9%; top: 22%; width: 300px; height: 300px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); transform: rotateX(70deg); animation: k-orbit 14s linear infinite; }
@keyframes k-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-20px, -30px, 60px); } }
@keyframes k-spin { to { transform: rotateY(360deg); } }
@keyframes k-orbit { to { transform: rotateX(70deg) rotateZ(360deg); } }
body:not(.k-3d) .k-hero__scene { display: none; }
.k-hero--classic .k-cross3d, .k-hero--classic .k-ring3d { right: 50%; transform-origin: center; opacity: .25; }
@media (max-width: 860px) { .k-cross3d { right: 6%; top: 12%; width: 70px; height: 110px; opacity: .55; } .k-cross3d i:first-child { height: 110px; width: 14px; } .k-cross3d i:last-child { width: 68px; height: 14px; } .k-ring3d { width: 180px; height: 180px; right: -10%; top: 8%; } .k-orb--1 { width: 160px; height: 160px; right: -10%; } }
.k-3d .k-hero__content { transform-style: preserve-3d; }
.k-3d .k-hero__title { text-shadow: 0 2px 0 rgba(0,0,0,.15), 0 18px 40px rgba(0,0,0,.35); }

/* Glass depth on floating UI */
.k-3d .k-floating-card, .k-3d .k-palette__panel { backdrop-filter: blur(14px); background: color-mix(in srgb, var(--k-surface) 85%, transparent); }

@media (prefers-reduced-motion: reduce) {
	.k-hero__scene * { animation: none !important; }
	.k-3d [data-tilt] { transform: none !important; }
}

/* Keep the desktop header on one line: the idle live pill only shows on wide screens */
@media (max-width: 1500px) { .k-header .kcs-live-badge:not(.is-live) { display: none; } .k-header__inner { gap: 1rem; } .k-menu a { padding-inline: .6rem; } }

/* Church gallery & visit booking */
.k-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
@media (min-width: 860px) { .k-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 1rem; } .k-gallery__item--1 { grid-column: span 2; grid-row: span 2; } .k-gallery__item--6 { grid-column: span 2; } }
.k-gallery__item { position: relative; margin: 0; border-radius: var(--k-radius); overflow: hidden; background: var(--k-surface-2); }
.k-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.k-gallery__item:hover img { transform: scale(1.06); }
.k-gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .7rem; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.k-visit__book { margin-top: clamp(2rem, 5vw, 3.5rem); }
.k-visit__photo { margin: 0; border-radius: calc(var(--k-radius) * 1.4); overflow: hidden; position: relative; box-shadow: var(--k-shadow-lg); }
.k-visit__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.k-visit__photo figcaption { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .7rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--k-surface) 90%, transparent); backdrop-filter: blur(8px); font-size: .92rem; color: var(--k-text); }
.k-split__media img[src$=".svg"] { object-position: center 30%; }

/* App-style dashboards */
.k-app { padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem); }
.is-dashboard .k-palette, .is-dashboard .k-whatsapp { display: none; }
.is-dashboard-admin .k-tabbar { display: none !important; }
.is-dashboard-admin.has-mobile-nav { padding-bottom: env(safe-area-inset-bottom); }
.is-dashboard-admin .k-header__actions .k-nav-toggle { display: inline-grid !important; }
@media (max-width: 1240px) { .is-dashboard-admin .k-nav-toggle { display: inline-grid !important; } }
@media (max-width: 860px) { .has-mobile-nav .k-palette { display: none; } }

/* WhatsApp "Chat with us" widget */
.k-wa { position: fixed; z-index: 94; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); display: grid; justify-items: end; gap: .75rem; }
.has-mobile-nav .k-wa { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 861px) { .has-mobile-nav .k-wa { bottom: 1.25rem; } }
.k-wa__btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 56px; padding: 0 1.1rem 0 .9rem; border: 0; border-radius: 999px; background: #25d366; color: #fff; font: 700 .95rem var(--k-font-body); cursor: pointer; box-shadow: 0 12px 28px -6px rgba(37,211,102,.55), 0 4px 0 #1a9e4c; transition: transform .2s, padding .25s; }
.k-wa__btn:hover { transform: translateY(-2px); }
.k-wa__btn .k-icon { width: 28px; height: 28px; }
.k-wa.is-compact:not(.is-open) .k-wa__label { display: none; }
.k-wa.is-compact:not(.is-open) .k-wa__btn { padding: 0; width: 56px; justify-content: center; }
@media (max-width: 560px) { .k-wa__label { display: none; } .k-wa__btn { padding: 0; width: 56px; justify-content: center; } }
.k-wa__panel { width: min(340px, calc(100vw - 2rem)); border-radius: 20px; overflow: hidden; background: var(--k-surface); box-shadow: 0 24px 60px rgba(0,0,0,.28); border: 1px solid var(--k-border); animation: k-wa-in .25s cubic-bezier(.2,.8,.2,1); }
@keyframes k-wa-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.k-wa__head { display: flex; align-items: center; gap: .7rem; padding: 1rem; background: #075e54; color: #fff; }
.k-wa__head > span:nth-child(2) { display: grid; flex: 1; line-height: 1.3; }
.k-wa__head small { opacity: .8; font-size: .78rem; }
.k-wa__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #25d366; }
.k-wa__close { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.k-wa__body { display: grid; gap: .55rem; padding: 1rem; background: #ece5dd; }
[data-theme="dark"] .k-wa__body { background: #0b141a; }
.k-wa__bubble { margin: 0 0 .3rem; padding: .7rem .9rem; border-radius: 0 12px 12px 12px; background: #fff; color: #1f2c34; font-size: .95rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
[data-theme="dark"] .k-wa__bubble { background: #202c33; color: #e9edef; }
.k-wa__contact { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 48px; padding: .6rem .9rem; border-radius: 12px; background: var(--k-surface); color: var(--k-text) !important; text-decoration: none !important; font-weight: 600; border: 1px solid var(--k-border); transition: border-color .2s, transform .2s; }
.k-wa__contact:hover { border-color: #25d366; transform: translateX(3px); }
.k-wa__contact b { color: #128c4b; font-size: .85rem; white-space: nowrap; }
.k-wa__hours { margin: .2rem 0 0; font-size: .8rem; color: #54656f; }
[data-theme="dark"] .k-wa__hours { color: #8696a0; }
/* Keep other floating buttons clear of the chat button */
body:has(.k-wa) .k-to-top { right: auto; left: max(1.25rem, env(safe-area-inset-left)); bottom: 5.25rem; }
@media (max-width: 860px) { .has-mobile-nav:has(.k-wa) .k-to-top { bottom: calc(150px + env(safe-area-inset-bottom)); } }
.is-dashboard .k-wa { display: none; }

/* Banner video & heights */
.k-hero__media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.k-hero__bgvideo { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-width: 177.78vh; min-height: 100%; transform: translate(-50%, -50%); border: 0; }
.k-hero--h-full { min-height: min(100svh, 1000px); }
.k-hero--h-tall { min-height: 80svh; }
.k-hero--h-medium { min-height: 60svh; }
.k-hero--h-video { min-height: 0; aspect-ratio: 16 / 9; max-height: 100svh; padding-block: 0; }
.k-hero--h-video .k-hero__inner { padding-block: calc(var(--k-header-h) + 2rem) 3rem; }
.k-hero--h-video .k-hero__bgvideo { width: 100%; height: 100%; min-width: 0; min-height: 0; }
@media (max-width: 860px) { .k-hero--h-full.has-bg-video { min-height: 70svh; } .k-hero--h-video { aspect-ratio: 16 / 9; min-height: 0; } }
.k-hero.is-text-hidden { padding-block: 0; }
.k-hero.is-text-hidden .k-scroll-cue { bottom: 1.25rem; }
.k-hero__sound { position: absolute; z-index: 3; right: max(1rem, env(safe-area-inset-right)); bottom: 1.25rem; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.45); color: #fff; font: 600 .9rem var(--k-font-body); cursor: pointer; backdrop-filter: blur(6px); }
.k-hero__sound .k-icon { width: 16px; height: 16px; }
.has-mobile-nav .k-hero__sound { bottom: 1.25rem; }
@media (max-width: 860px) {
	/* Keep the whole 16:9 video visible below the transparent header on phones */
	.has-transparent-header .k-hero--h-video { aspect-ratio: auto; height: calc(56.25vw + var(--k-header-h)); background-color: var(--k-dark); }
	.has-transparent-header .k-hero--h-video .k-hero__media { top: var(--k-header-h); }
	.has-transparent-header .k-hero--h-video .k-scroll-cue { display: none; }
	.k-hero__sound { padding: .45rem .8rem; font-size: .82rem; bottom: .75rem; }
}

/* Tithe & Offering page ----------------------------------------------------- */
.k-tithe { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 960px) { .k-tithe { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } .k-tithe__intro { position: sticky; top: calc(var(--k-header-h, 80px) + 1.5rem); } }
.k-tithe__intro h2 { margin: .4rem 0 .8rem; }
.k-tithe__verse { margin: 1.5rem 0; padding: 1.2rem 1.4rem; border-radius: var(--k-radius); border-left: 4px solid var(--k-primary); background: var(--k-surface-2); font-size: 1.05rem; }
.k-tithe__verse p { margin: 0 0 .5rem; font-style: italic; }
.k-tithe__verse cite { font-style: normal; font-weight: 700; color: var(--k-primary); }
.k-tithe__points { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.k-tithe__points li { display: flex; gap: .75rem; align-items: flex-start; }
.k-tithe__points svg { flex: none; width: 22px; height: 22px; margin-top: .15rem; color: var(--k-primary); }
.k-tithe__form { padding: clamp(1.1rem, 3vw, 2rem); overflow: visible; }
.k-tithe__form:hover { transform: none; }
.k-faq { display: grid; gap: .6rem; }
.k-faq details { padding: 1rem 1.2rem; border-radius: var(--k-radius); border: 1px solid var(--k-border); background: var(--k-surface); }
.k-faq summary { cursor: pointer; font-weight: 700; }
.k-faq details[open] summary { margin-bottom: .5rem; color: var(--k-primary); }
.k-faq p { margin: 0; color: var(--k-muted); }

/* Long church names wrap instead of pushing the header off-screen. */
.k-brand { flex: 0 1 auto; min-width: 0; max-width: 300px; }
.k-brand__name { line-height: 1.15; font-size: clamp(1.1rem, 1.25vw + .45rem, 1.45rem); }
.k-brand__mark { flex: none; }
@media (max-width: 600px) { .k-brand { max-width: none; } }

/* YouTube live -------------------------------------------------------------- */
.k-ytlive__grid { display: grid; gap: 1rem; max-width: 1000px; margin-inline: auto; }
.k-ytlive__grid.has-chat { max-width: none; }
@media (min-width: 1000px) { .k-ytlive__grid.has-chat { grid-template-columns: minmax(0, 1fr) 360px; } }
.k-ytlive__player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--k-radius); overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.k-ytlive__player iframe, .k-ytlive__chat iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
.k-ytlive__chat { position: relative; min-height: 420px; border-radius: var(--k-radius); overflow: hidden; background: var(--k-surface); }
.k-ytlive__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin: 1.5rem 0 0; }
.k-ytlive__actions .k-icon { width: 20px; height: 20px; color: #ff0033; }
.k-ytlive__dot { width: 10px; height: 10px; border-radius: 50%; background: #ff0033; box-shadow: 0 0 0 0 rgba(255,0,51,.6); animation: k-live-pulse 2s infinite; }
@keyframes k-live-pulse { 70% { box-shadow: 0 0 0 10px rgba(255,0,51,0); } 100% { box-shadow: 0 0 0 0 rgba(255,0,51,0); } }
@media (prefers-reduced-motion: reduce) { .k-ytlive__dot { animation: none; } }

/* Videos -------------------------------------------------------------------- */
.k-videos__grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .k-videos__grid:not(.is-single) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.k-videos__grid.is-single { max-width: 960px; margin-inline: auto; width: 100%; }
.k-videos__main { margin: 0; display: grid; gap: .6rem; }
.k-videos__main figcaption { font-family: var(--k-font-heading); font-weight: 700; font-size: 1.2rem; }
.k-videos__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.k-videos__list li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: .9rem; align-items: center; }
.k-videos__list .k-video-thumb { border-radius: calc(var(--k-radius) * .7); }
.k-videos__list .k-play { transform: scale(.7); }
.k-videos__list span { font-weight: 600; line-height: 1.35; }
@media (max-width: 480px) { .k-videos__list li { grid-template-columns: 120px minmax(0, 1fr); } }

/* Audio --------------------------------------------------------------------- */
.k-audio-section__grid { display: grid; gap: 1.25rem; max-width: 880px; margin-inline: auto; }
.k-audio-section__grid.has-podcast { max-width: none; }
@media (min-width: 1000px) { .k-audio-section__grid.has-podcast { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.k-tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.k-track { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--k-radius); background: var(--k-surface); border: 1px solid var(--k-border); }
.k-track__no { font: 800 1.4rem/1 var(--k-font-heading); color: var(--k-primary); opacity: .55; font-variant-numeric: tabular-nums; }
.k-track__body { display: grid; gap: .25rem; min-width: 0; }
.k-track__body strong a { color: inherit; text-decoration: none; }
.k-track__body small { color: var(--k-muted); }
.k-track__body audio { width: 100%; height: 40px; margin-top: .25rem; }
.k-podcast iframe { width: 100%; border: 0; border-radius: var(--k-radius); display: block; }
.k-ytlive__status { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: -1.5rem 0 1.5rem; }
.k-ytlive__badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; font-weight: 700; font-size: .9rem; background: rgba(255,255,255,.1); color: #fff; }
.k-ytlive__badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); }
.k-ytlive.is-live .k-ytlive__badge { background: #ff0033; }
.k-ytlive.is-live .k-ytlive__badge::before { background: #fff; animation: k-live-pulse 2s infinite; }
.k-ytlive.is-upcoming .k-ytlive__badge::before { background: var(--k-accent); }
.k-ytlive__countdown { padding: .4rem .9rem; border-radius: 999px; background: var(--k-accent); color: #1f1b24; font-weight: 800; font-variant-numeric: tabular-nums; }
.k-ytlive__idle { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-content: center; justify-items: center; gap: .8rem; text-align: center; color: rgba(255,255,255,.8); padding: 1rem; }
.k-ytlive__idle .k-icon { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: rgba(255,255,255,.12); }

/* Custom colours in the visitor colour picker */
.k-palette__custom { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--k-border); }
.k-palette__custom > span { flex-basis: 100%; font-weight: 700; font-size: .85rem; }
.k-palette__custom label { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; cursor: pointer; }
.k-palette__custom input[type="color"] { width: 34px; height: 34px; padding: 0; border: 2px solid var(--k-surface); border-radius: 50%; box-shadow: 0 0 0 1px var(--k-border); background: none; cursor: pointer; }
.k-palette__custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.k-palette__custom input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.k-palette__custom input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; }

/* ---------- Church app (opened from the home screen) ---------- */
html.is-app .k-topbar { display: none; }
html.is-app .k-header { padding-top: env(safe-area-inset-top, 0px); }
html.is-app.has-sticky-header .k-header,
html.is-app .has-sticky-header .k-header { top: 0; }
html.is-app .k-footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
html.is-app .k-palette { display: none; }

/* ---------- Mobile menu (full screen, brand colours, sliding sub-menus) ---------- */
.k-drawer {
	--d-bg: var(--k-primary);
	--d-ink: var(--k-on-primary, #fff);
	--d-line: color-mix(in srgb, var(--d-ink) 18%, transparent);
	--d-soft: color-mix(in srgb, var(--d-ink) 10%, transparent);
	position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000;
	display: flex; flex-direction: column;
	height: 100vh; height: 100dvh;
	padding-top: env(safe-area-inset-top, 0px);
	background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--k-accent) 22%, transparent), transparent 60%), var(--d-bg);
	color: var(--d-ink);
	opacity: 0; transform: translateY(12px);
	transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
	overscroll-behavior: contain;
}
.k-drawer[hidden] { display: none; }
.k-drawer.is-open { opacity: 1; transform: none; }
[data-theme="dark"] .k-drawer { --d-bg: var(--k-bg); --d-ink: var(--k-text); background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--k-primary) 35%, transparent), transparent 60%), var(--d-bg); }
html.k-drawer-open, html.k-drawer-open body { overflow: hidden; }

.k-drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem max(1.25rem, env(safe-area-inset-right)) .9rem max(1.25rem, env(safe-area-inset-left)); }
.k-drawer__brand { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; color: inherit !important; text-decoration: none; font-family: var(--k-font-heading); font-weight: 800; font-size: 1.25rem; }
.k-drawer__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-drawer__logo { display: inline-flex; align-items: center; padding: .4rem .75rem; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.k-drawer__logo.is-light { padding: 0; background: none; box-shadow: none; }
.k-drawer__logo img { display: block; max-height: 40px; max-width: 180px; width: auto; }
.k-drawer__close { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--d-soft); color: inherit; cursor: pointer; }
.k-drawer__close .k-icon { width: 26px; height: 26px; }

.k-drawer__panels { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.k-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
	padding: .5rem max(1.25rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left));
	visibility: hidden; transform: translateX(100%);
	transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s;
}
.k-drawer__panel.is-active { visibility: visible; transform: none; transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.k-drawer__panel.is-behind { transform: translateX(-28%); }

.k-drawer__menu { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.k-drawer__item { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--d-line); }
.k-drawer__link { flex: 1; min-width: 0; display: block; padding: 1.05rem 0; border: 0; background: none; color: inherit !important; font: 600 clamp(1.3rem, 5.6vw, 1.6rem)/1.2 var(--k-font-body); letter-spacing: -.01em; text-align: left; text-decoration: none; cursor: pointer; }
.k-drawer__item.is-current > .k-drawer__link, .k-drawer__item.is-ancestor > .k-drawer__link { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; text-decoration-color: var(--k-accent); }
.k-drawer__more { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--d-ink) 55%, transparent); background: none; color: inherit; cursor: pointer; transition: background .2s, transform .2s; }
.k-drawer__more:hover, .k-drawer__more:focus-visible { background: var(--d-soft); }
.k-drawer__more:active { transform: scale(.94); }
.k-drawer__more .k-icon { width: 22px; height: 22px; }

.k-drawer__back { display: inline-flex; align-items: center; gap: .3rem; margin: 0 0 .25rem -.5rem; padding: .6rem .7rem .6rem .4rem; border: 0; border-radius: 10px; background: none; color: inherit; font: 600 1rem/1 var(--k-font-body); cursor: pointer; opacity: .85; }
.k-drawer__back:hover { background: var(--d-soft); opacity: 1; }
.k-drawer__panel-title { margin: .25rem 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

.k-drawer__actions { display: grid; gap: .7rem; margin-bottom: 2.25rem; }
.k-drawer__btn { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; padding: .8rem 1.2rem; border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--d-ink) 35%, transparent); background: none; color: inherit !important; font: 600 1.05rem/1.2 var(--k-font-body); text-decoration: none; cursor: pointer; transition: background .2s, transform .15s; }
.k-drawer__btn:hover { background: var(--d-soft); }
.k-drawer__btn:active { transform: scale(.98); }
.k-drawer__btn .k-icon { width: 20px; height: 20px; }
.k-drawer__btn[hidden] { display: none; }
.k-drawer__btn.is-on { border-color: var(--k-accent); }
.k-drawer__btn--primary { min-height: 60px; border: 0; background: var(--k-accent); color: #1f1b24 !important; font-weight: 800; font-size: 1.1rem; box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--k-accent) 80%, #000); }
.k-drawer__btn--primary:hover { background: color-mix(in srgb, var(--k-accent) 88%, #fff); }
.k-drawer__live { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: 999px; background: #e53935; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.k-drawer__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: k-drawer-pulse 1.4s ease-in-out infinite; }
@keyframes k-drawer-pulse { 50% { opacity: .3; } }

.k-drawer__block { margin-bottom: 2rem; }
.k-drawer__heading { margin: 0 0 1rem; color: inherit; font: 800 clamp(1.5rem, 6.5vw, 1.9rem)/1.15 var(--k-font-body); letter-spacing: -.02em; }
.k-drawer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.k-drawer__contact li { display: flex; gap: .85rem; align-items: flex-start; font-size: 1.05rem; line-height: 1.45; }
.k-drawer__contact .k-icon { flex: none; width: 20px; height: 20px; margin-top: .15rem; opacity: .75; }
.k-drawer__contact a { color: inherit !important; text-decoration: none; overflow-wrap: anywhere; }
.k-drawer__contact a:hover { text-decoration: underline; }
.k-drawer__service { display: block; }
.k-drawer__social { display: flex; flex-wrap: wrap; gap: .75rem; }
.k-drawer__social a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--d-ink) 70%, transparent); color: inherit !important; transition: background .2s, color .2s; }
.k-drawer__social a:hover { background: var(--d-ink); color: var(--d-bg) !important; }
.k-drawer__social .k-icon { width: 22px; height: 22px; }

.k-drawer__colours summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 1.15rem; margin: 0; padding: 1rem 0; border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); }
.k-drawer__colours summary::-webkit-details-marker { display: none; }
.k-drawer__colours summary .k-icon { transition: transform .2s; }
.k-drawer__colours[open] summary .k-icon { transform: rotate(90deg); }
.k-drawer .k-nav__palette { padding: 1rem 0 0; }
.k-drawer .k-palette__swatches button { border-color: var(--d-bg); box-shadow: 0 0 0 1px var(--d-line); }
.k-drawer .k-palette__swatches button.is-active, .k-drawer .k-palette__swatches button:hover { box-shadow: 0 0 0 2px var(--d-ink); }
.k-drawer .k-palette__custom { border-top-color: var(--d-line); }
.k-drawer .k-palette__custom input[type="color"] { border-color: var(--d-bg); box-shadow: 0 0 0 1px var(--d-line); }

.k-drawer :focus-visible { outline: 3px solid var(--k-accent); outline-offset: 2px; }
@media (min-width: 700px) {
	.k-drawer__panel { padding-inline: max(2.5rem, calc((100% - 620px) / 2)); }
	.k-drawer__top { padding-inline: max(2.5rem, calc((100% - 620px) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
	.k-drawer, .k-drawer__panel, .k-drawer__panel.is-active { transition: none; }
}

/* ---------- Older iPhones and browsers (iOS 13–16.1) ---------- */
@supports not (aspect-ratio: 1 / 1) {
	.k-ytlive__player, .k-video-thumb, .k-modal__body { position: relative; height: 0; padding-top: 56.25%; }
	.k-card__media { height: 0; padding-top: 62.5%; }
	.k-ytlive__player iframe, .k-modal__body iframe, .k-video-thumb img, .k-card__media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
	.k-hero__image, .k-leader__photo, .k-split__media img, .k-visit__photo img { min-height: 320px; }
	.k-palette__swatches button { width: 100%; height: 0; padding-top: 100%; }
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.k-stats, .k-cta__inner { background: var(--k-primary); }
	.k-verse-band { background: var(--k-dark); }
	.k-drawer { background: var(--k-primary); --d-line: rgba(255, 255, 255, .22); --d-soft: rgba(255, 255, 255, .12); }
	[data-theme="dark"] .k-drawer { background: var(--k-bg); }
	.k-drawer__more, .k-drawer__btn, .k-drawer__social a { border-color: rgba(255, 255, 255, .5); }
	.k-3d .k-floating-card, .k-3d .k-palette__panel, .k-visit__photo figcaption { background: var(--k-surface); }
}
