@import url("/fonts/lato.css");
@import url("/fonts/montserrat.css");
/* Kyrial Display: only the Bold Italic style exists in the site's files, used for any weight. */
@font-face { font-family: "Kyrial"; src: url("/fonts/kyrial-display-bold-italic.woff2") format("woff2"), url("/fonts/kyrial-display-bold-italic.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Kyrial"; src: url("/fonts/kyrial-display-bold-italic.woff2") format("woff2"), url("/fonts/kyrial-display-bold-italic.woff") format("woff"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
    --accent: #ff4d0d;
    --accent-dark: #d63c05;
    --sun: linear-gradient(115deg, #ffd25a 0%, #f9a12e 45%, #ef6a1a 80%, #e3501a 100%);
    --ink: #222;
    --muted: #666;
    --line: #e7e7e7;
    --soft: #f6f6f6;
    --dark: #444;
    --radius: 6px;
    --font-text: "Lato", "Helvetica Neue", Arial, sans-serif;
    --font-titles: var(--font-text);
    font-family: var(--font-text);
    color: var(--ink);
    background: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.65; font-size: 17px; font-weight: 400; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .45em; font-weight: 300; letter-spacing: -.01em; font-family: var(--font-titles); }
body, input, textarea, select, button { font-family: var(--font-text); }
h1 { font-size: clamp(32px, 5.4vw, 58px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 19px; font-weight: 700; letter-spacing: 0; }
strong, b { font-weight: 700; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 50; }
:focus-visible { outline: 3px solid #ffb300; outline-offset: 2px; }
.loading, .muted { color: var(--muted); }
.kicker { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; margin-right: auto; }
.brand img { height: 38px; width: auto; }
#nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px 24px; margin: 0; padding: 0; }
#nav a { color: #333; text-decoration: none; font-size: 14px; font-weight: 700; padding: 6px 0; border-bottom: 2px solid transparent; }
#nav a:hover, #nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 9px 14px; font: inherit; font-weight: 700; }
@media (max-width: 900px) {
    .menu-btn { display: block; }
    #nav { display: none; position: absolute; left: 0; right: 0; top: 70px; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 24px 18px; box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
    .menu-open #nav { display: block; }
    #nav ul { flex-direction: column; gap: 0; }
    #nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; text-decoration: none; font: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 13px 26px; border-radius: 3px; border: 2px solid var(--accent); cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn.ghost:hover { background: rgba(255, 255, 255, .15); }
.btn.dark { background: transparent; border-color: #222; color: #222; }
.btn.dark:hover { background: #222; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.center .actions, .center { justify-content: center; text-align: center; }

/* Bands */
.band { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.band.tight { padding: clamp(40px, 6vw, 70px) 0; }
.band-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.band-h a { font-weight: 700; text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: inherit; max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.sun { background: var(--sun); color: #fff; }
.orange { background: var(--accent); color: #fff; }
.darkband { background: var(--dark); color: #fff; }
.photo { background: #222 center/cover no-repeat; color: #fff; }
.photo::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.photo > .wrap { position: relative; }
.sun a:not(.btn), .orange a:not(.btn), .photo a:not(.btn), .darkband a:not(.btn) { color: #fff; }
.curve { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; width: 100%; display: block; }

/* Hero */
.hero { min-height: min(78vh, 720px); display: flex; align-items: center; }
.hero .wrap { padding-top: 60px; padding-bottom: 60px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); max-width: 15ch; font-weight: 300; }
.hero p { font-size: clamp(18px, 2.2vw, 22px); max-width: 52ch; }

/* Two columns (text + media) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.split img, .split .media { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); width: 100%; }
.media { position: relative; display: block; overflow: hidden; }
.media img { box-shadow: none; aspect-ratio: 16 / 9; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play span { width: 78px; height: 78px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; transition: transform .15s, background .15s; }
.play span::before { content: ""; border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
.media:hover .play span { transform: scale(1.08); background: var(--accent); }

/* Cards and grids */
.cards { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card a { display: block; height: 100%; text-decoration: none; color: inherit; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .07); transition: box-shadow .15s, transform .15s; }
.card a:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .14); transform: translateY(-3px); }
.card img, .card .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); }
.card-b { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card .muted { margin: 0; font-size: 15px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 30px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.locs { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.locs li { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius); padding: 14px 20px; min-width: 220px; }
.locs span { display: block; opacity: .85; font-size: 15px; }

/* Testimonials */
.quotes { position: relative; text-align: center; max-width: 900px; margin: 0 auto; padding: 0 56px; }
.quote { display: none; }
.quote.on { display: block; animation: fade .5s; }
.quote p { font-size: clamp(22px, 3vw, 32px); font-weight: 300; line-height: 1.35; margin: 0 0 14px; }
.quote cite { font-style: normal; opacity: .85; }
.q-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.q-nav.prev { left: 0; } .q-nav.next { right: 0; }
.q-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.q-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); padding: 0; cursor: pointer; }
.q-dots button[aria-current="true"] { background: #fff; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .quote.on { animation: none; } html { scroll-behavior: auto; } }

/* App store buttons and social icons */
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff !important; text-decoration: none; border-radius: 8px; padding: 9px 18px; border: 1px solid rgba(255, 255, 255, .5); }
.store svg { width: 24px; height: 24px; fill: currentColor; }
.store small { display: block; font-size: 10px; line-height: 1; opacity: .8; }
.store strong { display: block; font-size: 17px; line-height: 1.15; }
.socials { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0; margin: 24px 0 0; }
.socials a { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #fff !important; display: grid; place-items: center; transition: transform .15s; }
.socials a:hover { transform: translateY(-3px); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }
.foot .socials { justify-content: flex-start; margin-top: 4px; gap: 10px; }
.foot .socials a { width: 38px; height: 38px; background: rgba(255, 255, 255, .12); }
.foot .socials svg { width: 18px; height: 18px; }

/* Detail pages */
.crumb a { text-decoration: none; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.cover { width: 100%; border-radius: var(--radius); margin: 8px 0 24px; }
.player { width: 100%; border-radius: var(--radius); background: #000; margin-bottom: 22px; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 22px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
audio { width: 100%; max-width: 540px; }
.prose { font-size: 18px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.2em; }
.prose h3 { margin-top: 1.2em; }
.prose img { border-radius: var(--radius); margin: 18px 0; }
.prose blockquote { border-left: 4px solid var(--accent); margin: 18px 0; padding: 4px 18px; color: var(--muted); font-size: 20px; }

/* Teachings filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 14px 0; }
.filters label { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; gap: 4px; }
.filters input, .filters select, .form input, .form textarea { font: inherit; padding: 11px 13px; border: 1px solid #ccc; border-radius: 4px; min-width: 220px; background: #fff; color: var(--ink); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; font-weight: 700; }
.pager a { text-decoration: none; }

/* Prayer form (dialog) */
dialog.pray { border: 0; border-radius: 10px; padding: 0; width: min(560px, 94vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog.pray::backdrop { background: rgba(0, 0, 0, .55); }
.pray-h { background: var(--sun); color: #fff; padding: 22px 26px; position: relative; }
.pray-h h2 { margin: 0; font-size: 28px; }
.pray-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
.form { padding: 22px 26px 26px; display: grid; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; }
.form input, .form textarea { min-width: 0; width: 100%; }
.form textarea { resize: vertical; min-height: 120px; }
.form .trap { position: absolute; left: -9999px; }
.form .msg { margin: 0; font-weight: 700; }
.form .msg.err { color: #b3261e; }
.form .msg.ok { color: #1e7b34; }

/* Footer */
.foot { background: var(--dark); color: #ddd; padding: 56px 0 26px; font-size: 15px; }
.foot a { color: #fff; }
.foot h2 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.foot p { margin: 0 0 6px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr 1fr; gap: 30px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { height: 34px; width: auto; filter: brightness(0) invert(1); margin-bottom: 10px; }
.foot-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); color: #aaa; font-size: 13px; }
.pre { white-space: pre-line; }

/* Title font on headings, buttons and menu (after .btn, whose "font: inherit" would reset it). */
.btn, #nav a, .brand, .kicker, .quote p, .foot h2 { font-family: var(--font-titles); }

/* Teachings: series cards */
.series-cards { margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Menu dropdowns (pages that share a group) and the live button */
#nav li { position: relative; }
.sub-btn { font: inherit; font-family: var(--font-titles); font-size: 14px; font-weight: 700; color: #333; background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sub-btn:hover, .sub-btn[aria-expanded="true"], .sub-btn[data-current] { color: var(--accent); border-bottom-color: var(--accent); }
.caret { width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.sub-btn[aria-expanded="true"] .caret { transform: translateY(1px) rotate(-135deg); }
#nav .sub { display: none; position: absolute; left: -14px; top: 100%; min-width: 220px; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 8px 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, .12); z-index: 30; }
#nav .sub a { display: block; padding: 10px 18px; border-bottom: 0; white-space: nowrap; font-weight: 600; }
#nav .sub a:hover, #nav .sub a[aria-current="page"] { background: #f6f6f6; border-bottom: 0; }
#nav .has-sub:has(.sub-btn[aria-expanded="true"]) > .sub { display: flex; }
@media (hover: hover) and (min-width: 821px) { #nav .has-sub:hover > .sub { display: flex; } }
#nav a.live-btn { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 8px 18px; }
#nav a.live-btn:hover { filter: brightness(.92); color: #fff; }
@media (max-width: 820px) {
    #nav li { width: 100%; }
    .sub-btn { display: flex; width: 100%; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
    #nav .sub { position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
    #nav .sub a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    #nav a.live-btn { display: inline-block; margin-top: 12px; text-align: center; }
}

/* Teachings page: latest teaching on top, then the library (series, speakers, all) */
.t-hero { background: #2b2118; color: #fff; padding: clamp(36px, 6vw, 70px) 0; }
.t-hero .split { align-items: center; }
.t-hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; margin: 4px 0 10px; color: #fff; }
.t-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0; }
.t-meta { color: rgba(255, 255, 255, .75); margin: 0 0 22px; }
.t-lib { font-weight: 300; margin: 0 0 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.t-bar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.t-tabs { display: flex; gap: 4px; }
.t-tab { padding: 12px 22px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; font-family: var(--font-titles); }
.t-tab:hover { color: var(--ink); }
.t-tab[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.t-search { display: flex; gap: 8px; }
.t-search input { font: inherit; padding: 10px 14px; border: 1px solid #ccc; border-radius: 4px; min-width: 240px; background: #f4f4f4; }
.sr { position: absolute; left: -9999px; }
.speaker-cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.speaker-cards .card a { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 22px; }
.spk { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 700; font-family: var(--font-titles); }
@media (max-width: 600px) { .t-search, .t-search input { width: 100%; min-width: 0; } .t-tab { padding: 12px 14px; } }

/* Desktop menu: every top-level item (links, dropdown buttons, live button) has the same box so the text sits on one baseline. */
@media (min-width: 821px) {
    #nav > ul > li > a, #nav > ul > li > .sub-btn {
        box-sizing: border-box; display: inline-flex; align-items: center; height: 36px; padding: 0; line-height: 1;
        border-bottom: 2px solid transparent;
    }
    #nav > ul > li > a:hover, #nav > ul > li > a[aria-current="page"], #nav > ul > li > .sub-btn:hover,
    #nav > ul > li > .sub-btn[aria-expanded="true"], #nav > ul > li > .sub-btn[data-current] { border-bottom-color: var(--accent); }
    #nav > ul > li > a.live-btn { padding: 0 18px 2px; border-bottom-color: transparent; }
}
@media (min-width: 821px) and (max-width: 1120px) {
    #nav ul { gap: 2px 14px; }
    #nav > ul > li > a, #nav > ul > li > .sub-btn { font-size: 13px; }
    #nav > ul > li > a.live-btn { padding: 0 14px 2px; }
}

/* Editor preview (church.html → Editor visual): bands are clickable and show which one is selected */
.is-preview [data-sec] { cursor: pointer; }
.is-preview [data-sec]:hover { outline: 3px solid rgba(0, 113, 179, .55); outline-offset: -3px; }
.is-preview [data-sec].sel { outline: 4px solid #0071b3; outline-offset: -4px; }
