/* Faith sites kit: adapted copy of Curated Directories design kit v3 (../../Curated Directories/design/kit.css, 30 Nov 2026).
   Changes from the kit: light only (no dark blocks), serif headings (Iowan Old Style / Palatino / Georgia),
   Figtree self-hosted (fonts/figtree-latin.woff2, OFL), warm cream page, gold as a second accent,
   and a few additions at the end (badges, CSS-only filter chips, hours, rating bars, notices).
   Site colours (--accent and the gold set) are set per site by build_site.py from sites/<domain>.json. */

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin.woff2) format("woff2-variations"), url(fonts/figtree-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fbf6ec;            /* warm cream (owner's pick) */
  --surface: #ffffff;
  --surface-2: #f5eee2;
  --ink: #231a2b;           /* titles */
  --ink-2: #3b3241;         /* body */
  --muted: #645a69;         /* labels (passes contrast on white and cream) */
  --line: #e8dcc6;
  --line-2: #f0e8da;
  --good: #1d7a43; --good-soft: #e3f3e8;
  --warn: #8a4f00; --warn-soft: #fcefd8;
  --accent: #3d1f4f; --accent-ink: #4a2860; --accent-hover: #2a1238; --accent-soft: #f1e9f4;
  --deep: #2a1238;
  --gold: #c9973a; --gold-ink: #7a5010; --gold-soft: #f4e3b8;
  --star: var(--gold-ink);
  --on-accent: #ffffff;
  --paper: var(--bg);
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --radius: 14px; --radius-sm: 10px; --pill: 999px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1080px; --sidebar: 320px;
  --shadow: 0 1px 2px rgba(61,31,79,.05), 0 6px 18px rgba(61,31,79,.07);
  --header-bg: rgba(251,246,236,.94);
  --tap: 44px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; font-family: var(--serif); }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.num { font-variant-numeric: tabular-nums; }
svg { flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 700 18px/1.1 var(--serif); letter-spacing: -.005em; white-space: nowrap; }
.brand-mark { width: 30px; height: 32px; border-radius: 15px 15px 6px 6px; background: var(--accent); display: grid; place-items: center; color: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold); }
.brand-mark svg { width: 18px; height: 18px; }
.brand .brand-short { display: none; }
@media (max-width: 479px) { .brand .brand-long { display: none; } .brand .brand-short { display: inline; } }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--surface-2); }
.header-search { margin-left: auto; flex: 1; max-width: 280px; display: none; }
.header-search input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: var(--pill); padding: 0 14px 0 38px; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236f675d' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 14px 50%; }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.header-cta { margin-left: auto; }
@media (min-width: 820px) { .nav { display: flex; } .header-search { display: block; } .header-cta { margin-left: 0; } }

.adbar { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.adbar .tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.adbar a { margin-left: auto; white-space: nowrap; }

/* ---------- Buttons: 44px, site colour for the main action ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: 600 15px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-primary, .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-dark { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn-dark:hover { opacity: .92; color: #fff; border-color: var(--deep); }
.btn svg { width: 17px; height: 17px; }
.btn-lg { min-height: 48px; padding: 0 20px; font-size: 16px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 14px; color: var(--muted); padding-top: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Hero ---------- */
.hero { padding-block: 8px 0; display: grid; gap: 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font: 700 13px/1 var(--sans); }
.eyebrow svg { width: 15px; height: 15px; }
.hero h1 { font: 700 clamp(28px, 6vw, 38px)/1.15 var(--serif); letter-spacing: -.01em; }
.title-row { display: flex; align-items: center; gap: 12px; }
.logo-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font: 800 18px/1 var(--sans); flex: none; overflow: hidden; }
.logo-tile svg { width: 24px; height: 24px; }
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero .kind { font-size: 17px; color: var(--ink-2); max-width: 64ch; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip svg { width: 16px; height: 16px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font: 600 13.5px/1.5 var(--sans); }
.pill-open { background: var(--good-soft); color: var(--good); }
.pill-open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-accent { background: var(--accent-soft); color: var(--accent-ink); }
.pill-plain { background: var(--surface-2); color: var(--ink-2); }
.rating b { color: var(--ink); font-weight: 700; }
.rating .star { color: var(--star); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Photo at the top of a listing (phones: short banner; desktop: top of the side card) */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 8; max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .credit { position: absolute; right: 6px; bottom: 6px; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; }
.photo .count { position: absolute; left: 8px; bottom: 8px; font: 600 12.5px/1 var(--sans); padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.92); color: #1f1b16; }
.photo-mobile { display: block; }
.factcard .photo { display: none; margin: -2px -2px 10px; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 4px); }
@media (min-width: 900px) { .photo-mobile { display: none; } .factcard .photo { display: block; } }

/* ---------- Layout ---------- */
.layout { display: grid; gap: 20px; padding-block: 14px 48px; }
.layout > * { min-width: 0; }
.lede { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 64ch; }
@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) var(--sidebar); column-gap: 32px; align-items: start; grid-template-areas: "intro aside" "main aside"; }
  .layout .intro { grid-area: intro; }
  .layout .main { grid-area: main; }
  .layout .aside { grid-area: aside; position: sticky; top: 76px; display: grid; gap: 14px; }
  .layout.no-aside { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "main"; }
}
.intro, .main { display: grid; gap: 18px; }
.intro > *, .main > * { min-width: 0; }
.aside { display: grid; gap: 14px; }
@media (max-width: 899px) { .layout.list-first .aside { order: 2; } }

/* ---------- Key numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 12px; display: grid; gap: 2px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.label { font: 600 13px/1.3 var(--sans); color: var(--muted); }
.stat .value { font: 800 22px/1.2 var(--sans); color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 13px; color: var(--muted); line-height: 1.35; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 12px; }
@media (min-width: 640px) { .stat { padding: 14px 16px; } .stat .value { font-size: 24px; } }

/* ---------- Sections ---------- */
.section { display: grid; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.section-head h2 { font: 700 21px/1.3 var(--serif); letter-spacing: -.005em; }
.section-head h2::after { content: ""; display: block; width: 32px; height: 2px; margin-top: 6px; border-radius: 2px; background: var(--gold); }
.section-head h2 .n { display: none; }
.section-head .hint { font-size: 14px; color: var(--muted); }
.section.plain { background: transparent; border: 0; padding: 4px 0 0; }
.prose { max-width: 66ch; color: var(--ink-2); font-size: 16px; display: grid; gap: 12px; }
.source { font-size: 13px; color: var(--muted); }

.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { min-height: 40px; padding: 0 14px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--surface); font: 600 14px/1 var(--sans); color: var(--ink-2); cursor: pointer; flex: none; }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 3px; height: 90px; }
.bars i { display: block; border-radius: 3px 3px 0 0; background: var(--accent-soft); min-height: 3px; }
.bars i.on { background: var(--accent); }
.bars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }

.kv { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.kv th, .kv td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.kv th { font-weight: 500; color: var(--muted); width: 45%; padding-right: 12px; }
.kv td { color: var(--ink); font-weight: 500; }
.kv th, .kv td, .source { overflow-wrap: anywhere; } /* long facts and source links never widen a phone page (markets session, 29 Nov) */
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.offers { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.offers th, .offers td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; }
.offers th { font: 600 13px/1.2 var(--sans); color: var(--muted); background: var(--surface-2); }
.offers td { color: var(--ink); }
.offers td.r, .offers th.r { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.offers tr:last-child td { border-bottom: 0; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.facts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--pill); background: var(--good-soft); font: 600 14.5px/1.2 var(--sans); color: var(--ink); }
.facts li::before { content: "✓"; color: var(--good); font-weight: 800; }
.facts li.no { background: var(--surface-2); color: var(--muted); }
.facts li.no::before { content: "✕"; color: var(--muted); font-weight: 700; }
.facts li.unknown { background: var(--surface); border: 1.5px dashed var(--line); color: var(--muted); }
.facts li.unknown::before { content: "?"; color: var(--warn); }

/* ---------- Side card ---------- */
.factcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 0; box-shadow: var(--shadow); }
.map { display: none; }
.fact { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.fact:last-of-type { border-bottom: 0; }
.fact .label { flex: none; font-size: 14px; }
.fact .v { color: var(--ink); font-size: 15px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.fact a.v { color: var(--accent-ink); }
.factcard .links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; }
.factcard .cta { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line-2); margin-top: 12px; }
.factcard .cta .btn { width: 100%; }

/* ---------- Lists ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .search { flex: 1 1 220px; height: var(--tap); border: 1.5px solid var(--line); border-radius: var(--pill); padding: 0 14px 0 40px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236f675d' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 15px 50%; }
.toolbar select { height: var(--tap); border: 1.5px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--ink); font: 600 15px var(--sans); padding: 0 12px; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; min-height: 40px; padding: 0 14px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--surface); font: 600 14.5px/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.filter[aria-pressed="true"]::before { content: "✓ "; }
.results-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }

.cards { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .cards.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Card: photo on top (tablet+), photo thumbnail on the left (phones) */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 104px minmax(0, 1fr); box-shadow: var(--shadow); }
.card:hover { border-color: var(--accent); }
.card .thumb { grid-row: 1 / span 6; background: linear-gradient(180deg, var(--accent-soft), var(--surface-2)); min-height: 100%; position: relative; display: grid; place-items: center; color: var(--accent-ink); }
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .thumb svg { width: 40px; height: 40px; color: var(--accent); }
.card .body { padding: 12px 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.card:not(:has(.thumb)) { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .card { grid-template-columns: 1fr; }
  .card .thumb { grid-row: auto; aspect-ratio: 2 / 1; min-height: 0; }
  .card .body { padding: 14px 16px 16px; }
}
.card h3 { font: 700 18px/1.3 var(--serif); }
.card h3 .logo-tile { display: none; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card .arrow { display: none; }
.card .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--ink-2); }
.card .price { font-weight: 800; color: var(--ink); }
.card .desc { font-size: 14.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.card .tags .pill { position: relative; font-size: 12.5px; padding: 2px 9px; }
.card .addr { font-size: 13.5px; color: var(--muted); }
.card.featured { border: 2px solid var(--accent); }
.card .flag { position: absolute; top: 10px; left: 10px; z-index: 2; font: 700 12px/1 var(--sans); padding: 5px 9px; border-radius: var(--pill); background: var(--gold-soft); color: var(--gold-ink); }
.card.ad { background: var(--accent-soft); border-style: dashed; box-shadow: none; }

/* Date block for events */
.dateblock { position: absolute; left: 10px; top: 10px; z-index: 2; display: grid; justify-items: center; min-width: 54px; padding: 6px 8px 7px; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.15); line-height: 1; }
.dateblock .m { font: 800 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.dateblock .d { font: 800 22px/1.05 var(--sans); }
.dateblock .w { font: 600 11px/1 var(--sans); color: var(--muted); }
.card .thumb .dateblock { transform: scale(.85); transform-origin: top left; }
@media (min-width: 620px) { .card .thumb .dateblock { transform: none; } }

.arealist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.arealist a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; min-height: var(--tap); align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; font: 600 15px/1.2 var(--sans); }
.arealist a:hover { border-color: var(--accent); color: var(--accent-ink); }
.arealist .count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.sponsor { background: var(--accent-soft); border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; font-size: 14.5px; }

.edit-strip { padding-block: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 15px; color: var(--muted); text-align: center; }
.edit-strip a { font-weight: 700; text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 8px; }

.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 8px; padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: var(--header-bg); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.actionbar .btn { flex: 1; min-height: 48px; }
.has-actionbar { padding-bottom: 72px; }
@media (min-width: 900px) { .actionbar { display: none; } .has-actionbar { padding-bottom: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .btn, .tab, .filter, .card, .icon-btn, .arealist a { transition: background-color .15s, border-color .15s, color .15s; }
}

.form { display: grid; gap: 14px; max-width: 560px; }
.form > label { display: grid; gap: 6px; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.form input:not([type="checkbox"]), .form select, .form textarea { font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-height: var(--tap); }
.form textarea { min-height: 96px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
.form .check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); min-height: var(--tap); }
.form .btn[disabled] { opacity: .55; cursor: not-allowed; }
.form-embed { display: block; width: 100%; max-width: 560px; min-height: 640px; border: 0; background: transparent; }

/* Phones: keep search + sort on one line, and the hero buttons side by side */
.toolbar { flex-wrap: nowrap; }
.toolbar .search { flex: 1 1 0; min-width: 0; }
.toolbar select { flex: none; }
.hero .actions .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .hero .actions .btn { flex: 0 0 auto; } }

/* ---- Categories and tags (added 30 Nov, see ../TAXONOMY.md) ---- */
/* Clickable tag and category links: <ul class="taglinks"><li><a href="/tags/free-first-class/">Free first class <span class="n">12</span></a></li></ul> */
.taglinks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.taglinks a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap, 44px); padding: 0 14px; border-radius: var(--pill); background: var(--surface-2); color: var(--ink-2); font: 600 14px/1 var(--sans); text-decoration: none; border: 1px solid var(--line); }
.taglinks a:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.taglinks a[aria-current="page"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.taglinks .n { font-weight: 500; color: var(--muted); }
.taglinks a:hover .n, .taglinks a[aria-current="page"] .n { color: inherit; } /* full colour: at .8 opacity the count failed contrast (4.0:1) on the accent pill */
/* "See also": a quiet one-line row of sibling categories under the hero */
.see-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 15px; color: var(--muted); }
.see-also a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.see-also a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
/* /categories/ hub: parent groups, each a white box with its subcategories */
.cat-groups { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cat-group { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.cat-group h2 { font: 700 19px/1.25 var(--serif); margin: 0; }
.cat-group h2 a { color: var(--ink); text-decoration: none; }
.cat-group h2 a:hover { color: var(--accent-ink); }
.cat-group ul { list-style: none; padding: 0; margin: 0; display: grid; }
.cat-group li a { display: flex; justify-content: space-between; gap: 12px; min-height: 40px; align-items: center; color: var(--ink-2); text-decoration: none; border-top: 1px solid var(--line); font-size: 15px; }
.cat-group li:first-child a { border-top: 0; }
.cat-group li a:hover { color: var(--accent-ink); }
.cat-group .n { color: var(--muted); font-size: 14px; }
/* /tags/ index: A to Z jump bar, then letter sections */
.az { display: flex; flex-wrap: wrap; gap: 4px; position: sticky; top: 0; z-index: 2; background: var(--bg); padding-block: 8px; }
.az a, .az span { min-width: 36px; min-height: 36px; display: grid; place-items: center; border-radius: var(--radius-sm); font: 700 14px/1 var(--sans); text-decoration: none; }
.az a { color: var(--ink-2); background: var(--surface); }
.az a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.az span { color: var(--line-2); }
.tag-index { display: grid; gap: 20px; }
.tag-index section { display: grid; gap: 8px; scroll-margin-top: 60px; }
.tag-index h2 { font: 800 17px/1 var(--sans); color: var(--muted); margin: 0; }
/* Footer link blocks: "Popular categories", "Popular tags" */
.footer-cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); padding-bottom: 12px; }
.footer-cols h2 { font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-cols a { color: var(--ink-2); text-decoration: none; display: flex; justify-content: space-between; gap: 8px; min-height: 32px; align-items: center; }
.footer-cols a:hover { color: var(--accent-ink); }
.footer-cols .n { color: var(--muted); }
/* FAQ on category, tag and place pages */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 0 16px; }
.faq summary { min-height: var(--tap, 44px); display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.faq details[open] { padding-bottom: 14px; }
/* Category art in card thumbs (Lemo-Opuscar illustrations): <div class="thumb art"><img ... alt="Illustration: ..."></div> */
.card .thumb.art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Faith sites additions (30 Nov) ---- */
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--deep); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.header-cta { font-size: 14.5px; }
/* Denomination badge: gold, only for rows the config allows */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--pill); background: var(--gold-soft); color: var(--gold-ink); font: 700 13px/1.5 var(--sans); letter-spacing: .02em; }
.card .tags .badge { font-size: 12.5px; padding: 2px 9px; }
.title-row .logo-tile { width: 48px; height: 52px; border-radius: 24px 24px 8px 8px; background: var(--accent); color: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold); }
.title-row .logo-tile svg { width: 26px; height: 26px; }
.chip .star { width: 16px; height: 16px; color: var(--star); }
.stat .value.small { font-size: 18px; line-height: 1.3; }
@media (min-width: 640px) { .stat .value.small { font-size: 19px; } }
.stat .value.unknown { font: 700 17px/1.3 var(--sans); color: var(--muted); }
/* CSS-only filter: radio inputs styled as the kit's filter chips */
.fw > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.filters label { display: inline-flex; align-items: center; gap: 6px; }
.filters label .n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.filters .flabel { flex: none; align-self: center; font: 600 13px/1 var(--sans); color: var(--muted); padding-right: 2px; }
.toolbar.info { flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14.5px; color: var(--muted); }
.toolbar.info .btn { flex: none; }
@media (max-width: 619px) { .toolbar.info .btn { display: none; } }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--ink); font-size: 15px; }
.notice strong { color: var(--ink); }
.notice.calm { background: var(--surface-2); }
.hours th { width: 40%; }
.hours tr.closed td { color: var(--muted); font-weight: 500; }
.rbars { display: grid; gap: 6px; max-width: 420px; }
.rbar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rbar .track { height: 10px; border-radius: var(--pill); background: var(--surface-2); overflow: hidden; }
.rbar .fill { display: block; height: 100%; border-radius: var(--pill); background: var(--gold); }
.rbar .c { text-align: right; color: var(--muted); }
.panel { display: grid; gap: 12px; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--gold-soft), #fbf0d6); border: 1px solid #ead7a8; }
.panel h2 { font: 700 22px/1.25 var(--serif); color: var(--deep); }
.panel p { color: var(--ink); max-width: 62ch; }
.panel .row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 760px) { .panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 22px 26px; } }
.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.price-pair div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.price-pair b { display: block; font: 700 26px/1.2 var(--serif); color: var(--ink); }
.price-pair span { font-size: 14px; color: var(--muted); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose h3 { font: 700 18px/1.3 var(--serif); }
.prose strong { color: var(--ink); }
.faq details p { color: var(--ink-2); max-width: 70ch; }
.faq summary { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--ink-2); }
.site-footer .wrap { gap: 12px; }
.card .meta .badge { margin-right: 2px; }
.dist { font-weight: 700; color: var(--ink); }
/* Lighter grouping (screenshot check, 30 Nov): white boxes use the shadow, not a border, so boxes inside boxes
   don't stack outlines. Hover still draws the site colour. */

@media (min-width: 820px) { .header-cta { margin-left: auto; } }
.section, .stat, .factcard, .card { border-color: transparent; box-shadow: var(--shadow); }
.card:hover { border-color: var(--accent); }
.facts li.unknown { border: 0; background: var(--surface-2); }
.faq details { border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 0; background: transparent; }
.faq details:last-child { border-bottom: 0; }
.arealist a { border-color: transparent; box-shadow: var(--shadow); }
.arealist a:hover { border-color: var(--accent); }
/* Icon thumbs: a short arched band, not a 2:1 photo slot (no photos on these sites) */
.card { grid-template-columns: 76px minmax(0, 1fr); }
@media (min-width: 620px) { .card { grid-template-columns: 1fr; } .card .thumb { aspect-ratio: auto; height: 64px; } .card .thumb svg { width: 32px; height: 32px; } }
@media (min-width: 900px) { .filters { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 619px) { .results-meta .when { display: none; } .stat .value.unknown { font-size: 15px; } }
/* Second buttons next to the main one: soft fill instead of an outline */
.hero .actions .btn:not(.btn-primary), .actionbar .btn:not(.btn-primary), .factcard .links .btn { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.hero .actions .btn:not(.btn-primary):hover, .actionbar .btn:not(.btn-primary):hover, .factcard .links .btn:hover { border-color: var(--accent); }
.edit-strip svg { width: 14px; height: 14px; vertical-align: -2px; }

/* Site colours from sites/blackchurchesnearme.com.json */
:root{--accent:#3d1f4f;--accent-ink:#4a2860;--accent-hover:#2a1238;--accent-soft:#f1e9f4;--deep:#2a1238;--gold:#c9973a;--gold-ink:#7a5010;--gold-soft:#f4e3b8}
