/* Essex Churches – site styles. No framework: plain modern CSS (custom properties, nesting, :has, container queries). */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@view-transition { navigation: auto; }

/* ------------------------------------------------------------------ tokens */
:root {
    color-scheme: light;
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #eef1f5;
    --surface-3: #e3e8ef;
    --border: #e1e6ed;
    --border-strong: #c9d1dc;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #5f6c80;
    --accent: #c81e3a;          /* Essex red: links, highlights */
    --accent-strong: #c81e3a;   /* button backgrounds (white text) */
    --accent-hover: #a5172f;
    --accent-soft: #fdecef;
    --accent-soft-text: #9f1239;
    --ok: #15803d;
    --warn-bg: #fff7e6;
    --warn-border: #f5c46b;
    --danger-bg: #fdecec;
    --danger-border: #f2a3a3;
    --success-bg: #ebf8ef;
    --success-border: #95d5a8;
    --info-bg: #eef4ff;
    --info-border: #b4c9f5;
    --shadow-sm: 0 1px 2px rgb(15 23 42 / .06), 0 1px 3px rgb(15 23 42 / .06);
    --shadow: 0 2px 4px rgb(15 23 42 / .04), 0 8px 24px rgb(15 23 42 / .08);
    --shadow-lg: 0 12px 48px rgb(15 23 42 / .18);
    --header-bg: rgb(255 255 255 / .82);
    --radius: 16px;
    --radius-sm: 10px;
    --header-h: 64px;
    --tabbar-h: 0px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1240px;
    --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0b1120;
        --surface: #121a2c;
        --surface-2: #1a2438;
        --surface-3: #243049;
        --border: #232f47;
        --border-strong: #34425f;
        --text: #e7ebf3;
        --text-2: #aab4c6;
        --text-3: #8e9ab0;
        --accent: #fb7185;
        --accent-strong: #e11d48;
        --accent-hover: #f43f5e;
        --accent-soft: #3a1520;
        --accent-soft-text: #fda4af;
        --ok: #4ade80;
        --warn-bg: #2d2410;
        --warn-border: #7a5b1a;
        --danger-bg: #2f1517;
        --danger-border: #7f2a2f;
        --success-bg: #11281a;
        --success-border: #276b3d;
        --info-bg: #142039;
        --info-border: #2c4777;
        --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
        --shadow: 0 8px 24px rgb(0 0 0 / .35);
        --shadow-lg: 0 16px 48px rgb(0 0 0 / .55);
        --header-bg: rgb(11 17 32 / .8);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1120;
    --surface: #121a2c;
    --surface-2: #1a2438;
    --surface-3: #243049;
    --border: #232f47;
    --border-strong: #34425f;
    --text: #e7ebf3;
    --text-2: #aab4c6;
    --text-3: #8e9ab0;
    --accent: #fb7185;
    --accent-strong: #e11d48;
    --accent-hover: #f43f5e;
    --accent-soft: #3a1520;
    --accent-soft-text: #fda4af;
    --ok: #4ade80;
    --warn-bg: #2d2410;
    --warn-border: #7a5b1a;
    --danger-bg: #2f1517;
    --danger-border: #7f2a2f;
    --success-bg: #11281a;
    --success-border: #276b3d;
    --info-bg: #142039;
    --info-border: #2c4777;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow: 0 8px 24px rgb(0 0 0 / .35);
    --shadow-lg: 0 16px 48px rgb(0 0 0 / .55);
    --header-bg: rgb(11 17 32 / .8);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--tabbar-h);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
kbd {
    font: 600 .72rem/1 var(--font);
    padding: .2em .45em;
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--surface);
    color: var(--text-2);
}
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--text); }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
html:not(.js) [data-needs-js] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.page-pad { padding-block: 28px 56px; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.lede { font-size: 1.15rem; color: var(--text-2); max-width: 65ch; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent-strong); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
@media (min-width: 720px) { :root { --gutter: 24px; } }

/* ------------------------------------------------------------------ buttons & controls */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 42px; padding: .55em 1.05em;
    font: 600 .95rem/1.2 var(--font);
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border-strong); border-radius: 999px;
    text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
    &:hover { background: var(--surface-2); color: var(--text); }
    &:active { transform: scale(.98); }
    &[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-text); }
}
.btn-primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff;
    &:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; } }
.btn-sm { min-height: 34px; padding: .35em .85em; font-size: .85rem; }
.btn-lg { min-height: 52px; padding: .7em 1.4em; font-size: 1.05rem; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-coffee { background: #ffdd00; border-color: #e6c700; color: #1f1a00;
    &:hover { background: #ffe633; color: #1f1a00; } }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
    color: var(--text-2); background: transparent; border: 0; border-radius: 999px; cursor: pointer;
    & .icon { width: 20px; height: 20px; }
    &:hover { background: var(--surface-2); color: var(--text); }
}
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-align: left; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

input[type="text"], input[type="email"], input[type="search"], select, textarea {
    width: 100%; min-height: 44px; padding: .6em .85em;
    font: inherit; color: var(--text); background: var(--surface);
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
    &:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
}
select {
    appearance: none; padding-right: 2.2em; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .7em center; background-size: 1.1em;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent-strong); width: 18px; height: 18px; margin: 0; flex: none; }
label { font-weight: 500; }
.field { margin-bottom: 18px; }
.field > label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; }
.field-error { color: #dc2626; font-size: .875rem; margin-top: 6px; }
.is-invalid { border-color: #dc2626 !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { margin-top: 3px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--border);
    view-transition-name: site-header;
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none;
    &:hover { color: var(--text); }
}
.brand-mark {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(140deg, #e23a55, #b3122d); color: #fff; box-shadow: var(--shadow-sm);
    & .icon { width: 20px; height: 20px; }
}
.brand-name { font-size: 1.1rem; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; & b { font-weight: 800; } }
.main-nav {
    display: none; gap: 4px;
    & a {
        position: relative; display: inline-flex; align-items: center; gap: 6px;
        padding: 8px 12px; border-radius: 999px; font-weight: 550; font-size: .95rem;
        color: var(--text-2); text-decoration: none;
        &:hover { color: var(--text); background: var(--surface-2); }
        &[aria-current="page"] { color: var(--text); background: var(--surface-2); }
    }
}
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.search-trigger {
    display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px;
    color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
    text-decoration: none; font-size: .92rem;
    &:hover { color: var(--text-2); border-color: var(--border-strong); }
    & .search-trigger-text, & kbd { display: none; }
}
[data-theme-toggle] .when-dark { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .when-dark { display: block; }
:root[data-theme="dark"] [data-theme-toggle] .when-light { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) [data-theme-toggle] .when-dark { display: block; }
    :root:not([data-theme="light"]) [data-theme-toggle] .when-light { display: none; }
}
.count-badge {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
    font-size: .72rem; font-weight: 700; line-height: 1; color: #fff; background: var(--accent-strong); border-radius: 999px;
}
.site-menu {
    border-top: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow: auto;
}
.site-menu-inner {
    display: grid; gap: 8px 32px; padding-block: 16px 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    & a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 500;
        &:hover { background: var(--surface-2); } & .icon { color: var(--text-3); } }
}
.menu-heading { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 8px 10px; }

@media (min-width: 900px) {
    .main-nav { display: flex; }
    .search-trigger { min-width: 230px; & .search-trigger-text { display: inline; flex: 1; } & kbd { display: inline-block; } }
}

/* Bottom tab bar on phones */
.tab-bar { display: none; }
@media (max-width: 899.98px) {
    :root { --tabbar-h: calc(62px + env(safe-area-inset-bottom)); }
    .brand-name { font-size: 1rem; }
    .tab-bar {
        position: fixed; inset: auto 0 0 0; z-index: 60;
        display: grid; grid-template-columns: repeat(5, 1fr);
        height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom);
        background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
        border-top: 1px solid var(--border);
        view-transition-name: tab-bar;
        & a {
            position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
            font-size: .7rem; font-weight: 600; color: var(--text-3); text-decoration: none;
            & .icon { width: 22px; height: 22px; }
            &[aria-current="page"] { color: var(--accent); }
        }
        & .count-badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: .65rem; }
    }
}

/* ------------------------------------------------------------------ footer */
.site-footer {
    margin-top: 48px; padding-block: 40px 28px;
    background: var(--surface); border-top: 1px solid var(--border);
    font-size: .92rem; color: var(--text-2);
}
.footer-grid {
    display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    & h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 12px; }
    & nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
    & nav a { color: var(--text-2); text-decoration: none; &:hover { color: var(--accent); } }
}
.footer-about { grid-column: 1 / -1; max-width: 420px; & p { margin: 12px 0 16px; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-about { grid-column: auto; } }
.footer-legal { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-3);
    & a { color: inherit; } }

/* ------------------------------------------------------------------ page heading & generic blocks */
.page-head { padding-block: 32px 8px; }
.page-head h1 { margin-bottom: .25em; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin-bottom: 10px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; padding: 0; margin: 0 0 12px; font-size: .875rem; color: var(--text-3);
    & a { color: var(--text-2); text-decoration: none; &:hover { color: var(--accent); } }
    & li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.panel > :last-child { margin-bottom: 0; }
.panel h2 { font-size: 1.15rem; }
.callout { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--info-border); background: var(--info-bg); margin-bottom: 20px;
    & > :last-child { margin-bottom: 0; } & h2 { font-size: 1.05rem; } }
.callout-warning { background: var(--warn-bg); border-color: var(--warn-border); }
.callout-danger { background: var(--danger-bg); border-color: var(--danger-border); }
.callout-success { background: var(--success-bg); border-color: var(--success-border); }
.prose { max-width: 72ch; & p, & li { color: var(--text); } & h2 { margin-top: 1.6em; } & ul { padding-left: 1.2em; } & li { margin-bottom: .35em; } }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px;
    & h2 { margin: 0; } & a { font-weight: 600; text-decoration: none; white-space: nowrap; } }
.empty-state { text-align: center; padding: 48px 0;
    & .lede { margin-inline: auto; } & .actions-row { justify-content: center; margin-top: 24px; } }
.empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
    & .icon { width: 34px; height: 34px; } }
.big-search {
    display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 20px auto 0;
    padding: 6px 6px 6px 16px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; box-shadow: var(--shadow);
    & > .icon { color: var(--text-3); width: 20px; height: 20px; }
    & input { border: 0; min-height: 44px; padding: 0; background: transparent; box-shadow: none !important; }
    &:focus-within { border-color: var(--accent); }
}

/* ------------------------------------------------------------------ status dots, chips, facts */
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, #999); flex: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--dot, #999) 25%, transparent), inset 0 0 0 1px rgb(0 0 0 / .15); }
.pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
    font-size: .85rem; font-weight: 600; background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
    & .icon { color: var(--text-3); }
}
.pill-status { background: color-mix(in srgb, var(--dot) 14%, var(--surface)); border-color: color-mix(in srgb, var(--dot) 45%, var(--border)); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------------ church cards */
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; } }
.church-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
    content-visibility: auto; contain-intrinsic-size: auto 290px;
    &:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
    &:has(.card-link:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
}
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; outline: none; &:hover { color: inherit; } }
.card-media {
    position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden;
    & img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
}
.church-card:hover .card-media img { transform: scale(1.05); }
.card-noimg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-3); font-size: .8rem;
    & .icon { width: 28px; height: 28px; opacity: .6; } }
.card-badge { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; font-size: .75rem; font-weight: 700; color: #fff; background: rgb(15 23 42 / .72); border-radius: 999px; backdrop-filter: blur(6px); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-title { font-size: 1rem; margin: 0; letter-spacing: -.01em; }
.card-sub { margin: 0; font-size: .86rem; color: var(--text-2); line-height: 1.35; }
.card-meta { display: flex; align-items: center; gap: 7px; margin: auto 0 0; padding-top: 8px; font-size: .78rem; color: var(--text-3); }
.card-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.card-count { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text-2); & .icon { width: 14px; height: 14px; } }
.card-extra { margin: 6px 0 0; font-size: .78rem; color: var(--text-3); }
.card-save {
    position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
    color: #fff; background: rgb(15 23 42 / .5); border: 0; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px);
    opacity: .9; transition: background .15s, transform .15s;
    & .icon { width: 18px; height: 18px; }
    & .on { display: none; }
    &:hover { background: rgb(15 23 42 / .75); transform: scale(1.06); }
    &[aria-pressed="true"] { background: var(--accent-strong); opacity: 1; & .on { display: block; } & .off { display: none; } }
}
html:not(.js) .card-save { display: none; }
.church-card.is-visited .card-title::after { content: "✓ Visited"; margin-left: 8px; font-size: .7rem; font-weight: 700; color: var(--ok); vertical-align: 2px; }

/* Horizontal scroller (home page) */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 4px 14px; margin-inline: -4px; scrollbar-width: thin;
    & > * { scroll-snap-align: start; } }

/* ------------------------------------------------------------------ home */
.hero { position: relative; padding-block: 36px 24px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } .hero { padding-block: 56px 32px; } }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 16px;
    & em { font-style: normal; color: var(--accent); } }
.hero .lede { font-size: 1.18rem; }
.hero .big-search { margin: 24px 0 0; max-width: 520px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px;
    & div { display: flex; flex-direction: column; } & strong { font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; } & span { font-size: .85rem; color: var(--text-3); } }
.mosaic { display: grid; gap: 10px; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 5 / 4;
    & a { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow); }
    & a:first-child { grid-row: span 2; }
    & img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
    & a:hover img { transform: scale(1.04); }
    & span { position: absolute; left: 10px; bottom: 10px; right: 10px; padding: 4px 10px; width: fit-content; max-width: calc(100% - 20px);
        font-size: .78rem; font-weight: 600; color: #fff; background: rgb(15 23 42 / .65); border-radius: 999px; backdrop-filter: blur(6px);
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.quick-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.quick-card {
    display: flex; gap: 14px; align-items: flex-start; padding: 18px; color: var(--text); text-decoration: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s, border-color .18s; text-align: left; font: inherit; cursor: pointer;
    &:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
    & strong { display: block; font-size: 1rem; margin-bottom: 2px; }
    & span { font-size: .87rem; color: var(--text-2); line-height: 1.4; }
}
.quick-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
    & .icon { width: 22px; height: 22px; } }
.banner-strip { position: relative; display: block; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    & img { display: block; width: 100%; height: clamp(120px, 18vw, 215px); object-fit: cover; }
    & figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 20px 14px; color: #fff; font-weight: 600;
        background: linear-gradient(transparent, rgb(0 0 0 / .65)); } }
.two-col { display: grid; gap: 24px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1.4fr 1fr; } }
.fb-embed { min-height: 200px; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border);
    & iframe { display: block; width: 100%; max-width: 500px; height: 600px; border: 0; margin-inline: auto; } }
.fb-placeholder { padding: 28px; text-align: center; color: var(--text-2); }

/* ------------------------------------------------------------------ church page */
.church-hero { display: grid; gap: 24px; padding-top: 20px; }
@media (min-width: 960px) { .church-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; align-items: start; } }
.hero-photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow);
    & img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: cover; view-transition-name: hero-photo; }
    & a { display: block; cursor: zoom-in; } }
.hero-photo-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px;
    font-size: .82rem; font-weight: 600; color: #fff; background: rgb(15 23 42 / .7); backdrop-filter: blur(6px); pointer-events: none; }
.church-title h1 { margin-bottom: 4px; }
.church-title .place { font-size: 1.1rem; color: var(--text-2); font-weight: 500; margin-bottom: 16px; }
.church-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.facts { display: grid; gap: 0; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--border);
    & > div { display: grid; grid-template-columns: 36px 1fr; gap: 0 4px; padding: 12px 0; border-bottom: 1px solid var(--border); }
    & dt { grid-column: 2; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
    & dd { grid-column: 2; margin: 0; }
    & .icon { grid-row: span 2; color: var(--text-3); width: 20px; height: 20px; margin-top: 2px; } }
.jump-nav { position: sticky; top: var(--header-h); z-index: 20; margin: 36px 0 8px; padding-block: 10px;
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    & ul { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0; padding: 2px; scrollbar-width: none; }
    & a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; white-space: nowrap; font-size: .9rem; font-weight: 600;
        color: var(--text-2); background: var(--surface); border: 1px solid var(--border); text-decoration: none;
        &:hover, &.is-current { color: var(--accent-soft-text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); } }
    & .n { font-size: .75rem; color: var(--text-3); } }
.photo-section { padding-top: 24px; & h2 { display: flex; align-items: baseline; gap: 10px; } & h2 .n { font-size: .9rem; font-weight: 600; color: var(--text-3); } }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); }
@media (min-width: 720px) { .photo-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; } }
.photo-tile { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2);
    & img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, filter .35s; }
    &:hover img { transform: scale(1.06); }
    & .has-caption { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; color: #fff; background: rgb(15 23 42 / .6);
        & .icon { width: 14px; height: 14px; } } }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm);
    & .map { height: 300px; } & .map-links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; font-size: .88rem;
        & a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; } } }
.info-grid { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 960px) { .info-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; } }
.church-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px;
    & a { display: flex; flex-direction: column; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
        text-decoration: none; color: var(--text); &:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); } }
    & small { color: var(--text-3); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
    & strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    & a + a { text-align: right; align-items: flex-end; } }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000;
    & iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; } }
.video-poster { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; color: #fff; background: #000 center / cover; border: 0; cursor: pointer;
    & span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgb(220 38 38 / .92); font-weight: 700; } }

/* ------------------------------------------------------------------ photo page */
.photo-stage { margin: 16px 0; text-align: center; background: #0b0f19; border-radius: var(--radius); padding: 12px;
    & img { max-height: 78vh; width: auto; border-radius: 6px; } }
.photo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ lightbox */
.lightbox {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    color: #f1f5f9; background: #05080f;
    &::backdrop { background: transparent; }
    &[open] { display: grid; grid-template-rows: auto 1fr auto; }
}
.lb-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; font-size: .9rem;
    & .lb-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
    & .lb-count { color: #94a3b8; font-variant-numeric: tabular-nums; }
    & .icon-btn { color: #cbd5e1; &:hover { background: rgb(255 255 255 / .1); color: #fff; } } }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; touch-action: pan-y pinch-zoom; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .2s, transform .25s ease; }
.lb-stage img.is-loading { opacity: .35; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; color: #fff; background: rgb(255 255 255 / .1); border-radius: 999px;
    &:hover { background: rgb(255 255 255 / .2); color: #fff; } & .icon { width: 26px; height: 26px; } }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (hover: none) { .lb-nav { display: none; } }
.lb-bottom { max-height: 32vh; overflow: auto; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); font-size: .92rem; color: #cbd5e1;
    & a { color: #fda4af; } & p { margin: 0 0 .5em; max-width: 80ch; } & .lb-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #94a3b8; font-size: .82rem; margin-top: 6px; } }

/* ------------------------------------------------------------------ explore */
.explore-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-block: 24px 16px; }
.explore-head h1 { margin: 0; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.result-count { color: var(--text-2); font-weight: 500; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar .search-field { position: relative; flex: 1 1 260px;
    & .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--text-3); pointer-events: none; }
    & input { padding-left: 42px; border-radius: 999px; } }
.toolbar select { width: auto; border-radius: 999px; }
.segmented { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
    & button, & a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 999px; background: none; font: 600 .88rem var(--font); color: var(--text-2); cursor: pointer; text-decoration: none;
        &[aria-pressed="true"], &[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); } } }
.explore-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .explore-layout { grid-template-columns: 270px minmax(0, 1fr); } }
.filters {
    display: flex; flex-direction: column; gap: 4px;
    & fieldset { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--border); min-width: 0; }
    & legend { padding: 0; margin-bottom: 10px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
    & .check { padding: 4px 0; font-size: .92rem; align-items: center; }
    & .check .n { margin-left: auto; font-size: .78rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
    & select { min-height: 38px; padding-block: .35em; font-size: .92rem; margin-bottom: 8px; }
    & .sel-label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2); margin: 4px 0 4px; }
}
.chip-set { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font: 600 .82rem var(--font); color: var(--text-2);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer;
    &:hover { border-color: var(--text-3); }
    &[aria-pressed="true"] { color: var(--accent-soft-text); background: var(--accent-soft); border-color: var(--accent); } }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 6px;
    & h2 { font-size: 1.05rem; margin: 0; } }
.filter-toggle { display: inline-flex; }
@media (max-width: 1023.98px) {
    .filters {
        position: fixed; inset: auto 0 0 0; z-index: 70; max-height: 82dvh; overflow: auto;
        padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom)); background: var(--surface);
        border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
        transform: translateY(105%); transition: transform .28s ease; visibility: hidden;
        &.is-open { transform: none; visibility: visible; }
    }
    .filters-backdrop { position: fixed; inset: 0; z-index: 65; background: rgb(0 0 0 / .4); }
    .filters-done { position: sticky; bottom: 0; margin-top: 12px; }
}
@media (min-width: 1024px) { .filter-toggle, .filters-done, .filters-backdrop, .filters .close-filters { display: none !important; }
    .filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100dvh - var(--header-h) - 32px); overflow: auto; padding-right: 8px; scrollbar-width: thin; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; &:empty { display: none; } }
.active-filters button { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 11px; font: 600 .8rem var(--font); color: var(--accent-soft-text);
    background: var(--accent-soft); border: 0; border-radius: 999px; cursor: pointer; & .icon { width: 14px; height: 14px; } }
.explore-map { height: calc(100dvh - var(--header-h) - var(--tabbar-h) - 170px); min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-legend-inline { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .85rem; color: var(--text-2);
    & span { display: inline-flex; align-items: center; gap: 6px; } }
.data-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem;
    & th, & td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
    & thead th { position: sticky; top: 0; background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
    & tbody tr:hover { background: var(--surface-2); }
    & tbody tr:last-child td { border-bottom: 0; }
    & .num { text-align: right; font-variant-numeric: tabular-nums; }
    & .zero { color: var(--border-strong); }
    & a { font-weight: 600; text-decoration: none; }
    & .sort-btn { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; &:focus-visible { outline: 2px solid var(--accent); } }
    & th[aria-sort="ascending"] .sort-btn::after { content: "↑"; } & th[aria-sort="descending"] .sort-btn::after { content: "↓"; } }
@media (max-width: 719.98px) { .data-table .opt { display: none; } }
.load-more { display: flex; justify-content: center; margin-top: 24px; }
.near-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* ------------------------------------------------------------------ Leaflet tweaks */
.map { background: var(--surface-2); }
.leaflet-container { font: inherit; }
.map-pin { background: none; border: 0; }
.map-pin svg { filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / .35)); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 12px; }
.map-popup { width: 190px; font-size: .85rem; line-height: 1.35;
    & a.pop-link { color: inherit; text-decoration: none; display: block; }
    & img { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; background: #eee; }
    & strong { display: block; font-size: .95rem; }
    & .pop-sub { color: #475569; }
    & .pop-status { display: flex; gap: 6px; align-items: center; margin-top: 6px; color: #475569; }
    & .pop-actions { display: flex; gap: 6px; margin-top: 10px; }
    & .btn { min-height: 30px; font-size: .78rem; padding: .3em .7em; color: #0f172a; background: #fff; border-color: #cbd5e1; }
    & .btn-primary { color: #fff; background: #c81e3a; border-color: #c81e3a; } }
.leaflet-control-layers, .leaflet-bar { border-radius: 12px !important; overflow: hidden; }
.you-are-here { width: 18px !important; height: 18px !important; margin: -9px 0 0 -9px !important; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(37 99 235 / .25); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.82) contrast(1.05) saturate(.85); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: brightness(.82) contrast(1.05) saturate(.85); } }

/* ------------------------------------------------------------------ trip planner */
.trip-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .trip-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .trip-map-col { position: sticky; top: calc(var(--header-h) + 16px); } }
.trip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: stop; }
.trip-item { display: grid; grid-template-columns: auto 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    & .stop { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-weight: 700; font-size: .82rem; }
    & img, & .noimg { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--surface-2); display: block; }
    & h3 { font-size: .98rem; margin: 0; } & h3 a { color: inherit; text-decoration: none; }
    & p { margin: 0; font-size: .82rem; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    & .leg { font-weight: 600; color: var(--text-2); }
    & .item-tools { display: flex; gap: 2px; } & .icon-btn { width: 34px; height: 34px; } & .icon-btn .icon { width: 17px; height: 17px; }
    &.is-visited h3::after { content: " ✓"; color: var(--ok); } }
.trip-map { height: 480px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.trip-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0; color: var(--text-2); font-size: .9rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px;
    & button { position: relative; padding: 10px 14px; border: 0; background: none; font: 600 .95rem var(--font); color: var(--text-2); cursor: pointer;
        &[aria-selected="true"] { color: var(--text); &::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent-strong); } } } }
.progress { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 10px 0 6px;
    & span { display: block; height: 100%; background: linear-gradient(90deg, #e23a55, #b3122d); border-radius: inherit; transition: width .4s ease; } }

/* ------------------------------------------------------------------ dialogs, toasts, consent */
.search-dialog {
    width: min(640px, calc(100% - 24px)); max-height: min(560px, calc(100dvh - 48px)); margin: 8vh auto auto; padding: 0;
    color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
    &::backdrop { background: rgb(15 23 42 / .45); backdrop-filter: blur(3px); }
    &[open] { display: flex; flex-direction: column; animation: pop .16s ease-out; }
}
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.search-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--border);
    & > .icon { color: var(--text-3); width: 20px; height: 20px; }
    & input { border: 0; padding: 0; min-height: 48px; font-size: 1.08rem; background: transparent; box-shadow: none !important; } }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; &:empty { display: none; } }
.search-results li a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--text); text-decoration: none;
    & img, & .noimg { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); }
    & .r-text { min-width: 0; flex: 1; } & strong { display: block; font-weight: 600; } & small { display: block; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    & mark { background: none; color: var(--accent); font-weight: 800; } }
.search-results li[aria-selected="true"] a, .search-results li a:hover { background: var(--accent-soft); }
.search-results .r-more a { justify-content: center; font-weight: 600; color: var(--accent); }
.search-empty { padding: 18px; text-align: center; color: var(--text-3); }
.search-hint { margin: 0; padding: 10px 16px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--text-3); & kbd { margin-inline: 2px; } }
@media (hover: none) { .search-hint { display: none; } }

.toast-region { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px); translate: -50% 0; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 999px; color: #fff; background: #0f172a; box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500;
    pointer-events: auto; animation: toast-in .2s ease-out;
    & a, & button { color: #fda4af; font-weight: 700; background: none; border: 0; cursor: pointer; font: inherit; padding: 0 4px; } }
:root[data-theme="dark"] .toast { background: #e7ebf3; color: #0f172a; & a, & button { color: #be123c; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.consent-banner { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px); z-index: 80; max-width: 720px; margin-inline: auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .9rem;
    & p { margin: 0; flex: 1 1 300px; color: var(--text-2); } }
.consent-actions { display: flex; gap: 8px; }

/* ------------------------------------------------------------------ links page, misc content */
.link-groups { columns: 300px 3; column-gap: 32px; & section { break-inside: avoid; margin-bottom: 28px; } & ul { list-style: none; padding: 0; margin: 0; }
    & li { padding: 6px 0; border-bottom: 1px solid var(--border); } & a { text-decoration: none; font-weight: 500; } & h2 { font-size: 1.05rem; } }
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--border); margin-left: 8px;
    & h2 { position: relative; margin-top: 2em; font-size: 1.2rem;
        &::before { content: ""; position: absolute; left: -36px; top: .3em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 4px var(--bg); } }
    & > :first-child { margin-top: 0; } }
.update-date { display: inline-flex; align-items: center; gap: 5px; margin: 6px 0 0; font-size: .78rem; color: var(--text-3); & .icon { width: 13px; height: 13px; } }
.month-heading { font-size: 1.05rem; color: var(--text-2); margin: 32px 0 14px; font-weight: 700; }

/* ------------------------------------------------------------------ motion & print */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    @view-transition { navigation: none; }
}
@media print {
    .site-header, .tab-bar, .site-footer, .toast-region, .consent-banner, .no-print, .card-save, .jump-nav { display: none !important; }
    body { background: #fff; color: #000; padding: 0; }
    .panel, .trip-item, .church-card { box-shadow: none; break-inside: avoid; }
    .trip-layout { grid-template-columns: 1fr; }
    .trip-map { height: 380px; }
    a { color: #000; }
}

@media (min-width: 960px) { .church-hero > :first-child { position: sticky; top: calc(var(--header-h) + 8px); } }
:root[data-theme="dark"] .status-dot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--dot, #999) 25%, transparent), inset 0 0 0 1px rgb(255 255 255 / .35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status-dot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--dot, #999) 25%, transparent), inset 0 0 0 1px rgb(255 255 255 / .35); } }
.trip-layout:has(> .trip-map-col[hidden]) { grid-template-columns: 1fr; }
.trip-item .icon-btn[aria-pressed="true"] { color: var(--ok); background: var(--success-bg); }
.trip-item .icon-btn:disabled { opacity: .3; cursor: default; }
