/* Faith community: St Brigid's Church, an invented parish church. Warm stone, deep plum and soft gold with Book Antiqua headings. Service times, groups for every age and simple giving are the product. */

.fc-page {
  --fc-canvas: #fbf8f3;
  --fc-surface: #ffffff;
  --fc-band: #f1ebe1;
  --fc-ink: #231b26;
  --fc-muted: #5a5160;
  --fc-line: #e3dbcf;
  --fc-line-strong: #827888;
  --fc-accent: #5e2a63;
  --fc-accent-hover: #48204c;
  --fc-on-accent: #ffffff;
  --fc-tint: #efe2f0;
  --fc-success: #2b6b3a;
  --fc-danger: #a3241b;
  --fc-focus: #5e2a63;
  --fc-gold: #8a6410;
  --fc-head: "Book Antiqua", Palatino, Georgia, serif;
  --fc-body: "Segoe UI", system-ui, sans-serif;
  --fc-r: 10px;

  background: var(--fc-canvas);
  color: var(--fc-ink);
  font-family: var(--fc-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Dark mode, the default (PRD section 13.10): candlelit nave, deep plum night with gold. Only this template's
   tokens change. */
@media screen {
  :root[data-theme="dark"] .fc-page {
    --fc-canvas: #161219;
    --fc-surface: #1f1a23;
    --fc-band: #1a161e;
    --fc-ink: #f4eff4;
    --fc-muted: #bfb5c3;
    --fc-line: #352d3a;
    --fc-line-strong: #877d8c;
    --fc-accent: #d9a7de;
    --fc-accent-hover: #e8c4eb;
    --fc-on-accent: #2a0d2d;
    --fc-tint: #33253a;
    --fc-success: #8fd29b;
    --fc-danger: #ff8a80;
    --fc-focus: #d9a7de;
    --fc-gold: #e3c06a;
    color-scheme: dark;
  }
}

.fc-page [hidden] { display: none !important; }
:where(.fc-page) :is(p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset, figure, blockquote) { margin: 0; }
:where(.fc-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.fc-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.fc-page) a { color: var(--fc-accent); }
:where(.fc-page) :is(h1, h2, h3, h4) { color: inherit; }
.fc-page :focus-visible { outline: 3px solid var(--fc-focus); outline-offset: 2px; }
.fc-page :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--fc-accent); }
html:has(.fc-page) { scroll-behavior: smooth; }
.fc-page section[id] { scroll-margin-top: 72px; }
.fc-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.fc-header { position: sticky; top: 0; z-index: 20; background: var(--fc-canvas); border-bottom: 1px solid var(--fc-line); }
.fc-header-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.fc-logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1.1 var(--fc-head); color: var(--fc-ink) !important; text-decoration: none; }
.fc-logo-mark { width: 30px; height: 30px; flex: none; fill: var(--fc-tint); stroke: var(--fc-accent); stroke-width: 2; stroke-linejoin: round; }
.fc-nav { margin-left: auto; }
.fc-nav ul { display: flex; gap: 22px; }
.fc-nav a { color: var(--fc-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.fc-nav a:hover { color: var(--fc-accent); text-decoration: underline; text-underline-offset: 4px; }
.fc-menu-btn { display: none; }
.fc-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--fc-line-strong); border-radius: var(--fc-r); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.fc-theme-btn:hover { background: var(--fc-tint); }

.fc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--fc-accent); border-radius: var(--fc-r); font: 700 1rem/1.2 var(--fc-head); text-decoration: none; cursor: pointer; text-align: center;
}
.fc-btn--fill { background: var(--fc-accent); color: var(--fc-on-accent) !important; }
.fc-btn--fill:hover { background: var(--fc-accent-hover); border-color: var(--fc-accent-hover); }
.fc-btn--line { background: transparent; color: var(--fc-accent) !important; }
.fc-btn--line:hover { background: var(--fc-tint); }
.fc-btn--big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.fc-btn:disabled { background: var(--fc-band); border-color: var(--fc-line-strong); color: var(--fc-muted) !important; cursor: not-allowed; }

.fc-eyebrow { font-weight: 700; color: var(--fc-accent); font-size: .92rem; letter-spacing: .02em; }
.fc-title { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--fc-head); }
.fc-sub { color: var(--fc-muted); margin-top: 8px; max-width: 64ch; }
.fc-head { margin-bottom: 26px; }
.fc-sec { padding: 72px 0; }
.fc-band { background: var(--fc-band); }
.fc-muted { color: var(--fc-muted); }
.fc-small { font-size: .9rem; color: var(--fc-muted); }

.fc-hero { padding: 64px 0 56px; }
.fc-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.fc-hero-title { font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--fc-head); margin-top: 10px; }
.fc-lede { font-size: 1.15rem; color: var(--fc-muted); margin-top: 16px; max-width: 54ch; }
.fc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fc-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--fc-muted); font-size: .95rem; }
.fc-facts strong { color: var(--fc-ink); }
.fc-panel { padding: 24px; background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: calc(var(--fc-r) + 4px); box-shadow: 0 24px 40px -30px var(--color-shadow); }
.fc-panel-title { font: 700 1.1rem var(--fc-head); margin-bottom: 12px; }

.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.fc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fc-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: var(--fc-r); }
.fc-card h3 { font: 700 1.15rem/1.25 var(--fc-head); }
.fc-card p { color: var(--fc-muted); font-size: .96rem; }
.fc-card .fc-btn { margin-top: auto; align-self: flex-start; }
.fc-card.is-on { border: 2px solid var(--fc-accent); }
.fc-art { height: 120px; margin: -22px -22px 6px; border-radius: var(--fc-r) var(--fc-r) 0 0; background: var(--fc-tint); position: relative; overflow: hidden; }
.fc-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 22%; background: var(--fc-canvas); opacity: .7; }
.fc-price { font: 700 1.5rem var(--fc-head); color: var(--fc-ink); }
.fc-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--fc-line-strong); font-size: .82rem; font-weight: 600; color: var(--fc-ink); }
.fc-badge--on { background: var(--fc-tint); border-color: var(--fc-accent); }
.fc-badge--bad { border-color: var(--fc-danger); color: var(--fc-danger); }
.fc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--fc-muted); }

.fc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fc-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--fc-line-strong); border-radius: 999px; background: var(--fc-surface); color: var(--fc-ink); font: 600 .95rem var(--fc-body); cursor: pointer; }
.fc-chip:hover { border-color: var(--fc-accent); }
.fc-chip[aria-pressed="true"] { background: var(--fc-accent); border-color: var(--fc-accent); color: var(--fc-on-accent); }
.fc-count { font-weight: 600; margin-bottom: 14px; }
.fc-empty { padding: 28px; text-align: center; border: 1px dashed var(--fc-line-strong); border-radius: var(--fc-r); }

.fc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: st; }
.fc-steps li { padding: 22px; background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: var(--fc-r); counter-increment: st; }
.fc-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--fc-accent); color: var(--fc-on-accent); font-weight: 700; }
.fc-steps h3 { font: 700 1.1rem var(--fc-head); }
.fc-steps p { color: var(--fc-muted); font-size: .95rem; margin-top: 4px; }

.fc-table { width: 100%; border-collapse: collapse; background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: var(--fc-r); overflow: hidden; }
.fc-table th, .fc-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--fc-line); vertical-align: top; }
.fc-table th { font-size: .88rem; color: var(--fc-muted); background: var(--fc-band); }
.fc-table td.fc-num, .fc-table th.fc-num { text-align: right; font-variant-numeric: tabular-nums; }

.fc-meter { height: 10px; border-radius: 999px; background: var(--fc-line); overflow: hidden; }
.fc-meter span { display: block; height: 100%; background: var(--fc-accent); border-radius: inherit; }
.fc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.fc-stat strong { display: block; font: 700 2rem/1.1 var(--fc-head); }
.fc-stat span { color: var(--fc-muted); font-size: .92rem; }

.fc-faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.fc-qs details { border-bottom: 1px solid var(--fc-line); }
.fc-qs summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.fc-qs p { padding: 0 0 16px; color: var(--fc-muted); }

.fc-form { max-width: 760px; margin-inline: auto; padding: 32px; background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: calc(var(--fc-r) + 4px); display: flex; flex-direction: column; gap: 18px; }
.fc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fc-field--full { grid-column: 1 / -1; }
.fc-field label, .fc-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.fc-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--fc-line-strong); border-radius: calc(var(--fc-r) - 2px); background: var(--fc-canvas); color: var(--fc-ink); font: 1rem var(--fc-body); }
.fc-field textarea { min-height: 110px; resize: vertical; }
.fc-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--fc-danger); }
.fc-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.fc-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--fc-accent); }
.fc-hint { font-size: .88rem; color: var(--fc-muted); margin-top: 6px; }
.fc-error { color: var(--fc-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.fc-error::before { content: "! "; }
.fc-status { font-weight: 600; }
.fc-status.is-ok { padding: 14px 16px; border-radius: calc(var(--fc-r) - 2px); background: var(--fc-tint); border-left: 4px solid var(--fc-success); }

.fc-footer { padding: 28px 0; border-top: 1px solid var(--fc-line); color: var(--fc-muted); font-size: .92rem; }
.fc-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .fc-header-in { flex-wrap: wrap; gap: 10px; }
  .fc-theme-btn { margin-left: auto; }
  .fc-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--fc-line-strong); border-radius: var(--fc-r); background: transparent; color: var(--fc-ink); font: 600 .95rem var(--fc-body); cursor: pointer;
  }
  .fc-nav { display: none; order: 5; width: 100%; margin: 0; }
  .fc-nav.is-open { display: block; padding-bottom: 12px; }
  .fc-nav ul { flex-direction: column; gap: 0; }
  .fc-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--fc-line); }
  .fc-header-cta { display: none; }
  .fc-hero-in, .fc-faq-in, .fc-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .fc-sec { padding: 52px 0; }
  .fc-fields { grid-template-columns: minmax(0, 1fr); }
  .fc-form { padding: 20px; }
  .fc-table thead { display: none; }
  .fc-table, .fc-table tbody, .fc-table tr, .fc-table td { display: block; width: 100%; }
  .fc-table tr { border-bottom: 1px solid var(--fc-line-strong); padding: 6px 0; }
  .fc-table td { border: 0; padding: 6px 14px; text-align: left !important; }
  .fc-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--fc-muted); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.fc-page) { scroll-behavior: auto; }
}

@media print {
  .fc-header, .fc-theme-btn, .fc-form { display: none; }
}

/* This template's own sections */
.fc-next { text-align: left; border-left: 6px solid var(--fc-gold); }
.fc-next-name { font: 700 1.5rem var(--fc-head); }
.fc-next-when { font-weight: 700; color: var(--fc-gold); margin: 4px 0; }
.fc-week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fc-week li { padding: 18px; background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: var(--fc-r); }
.fc-week li.is-next { border: 2px solid var(--fc-accent); background: var(--fc-tint); }
.fc-week b { display: block; font: 700 1.15rem var(--fc-head); }
.fc-week .fc-t { color: var(--fc-accent); font-weight: 700; }
.fc-week p { color: var(--fc-muted); font-size: .92rem; margin-top: 4px; }
.fc-tag { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: var(--fc-accent); color: var(--fc-on-accent); font-size: .82rem; font-weight: 700; }
.fc-when { color: var(--fc-accent); font-weight: 700; font-size: .9rem; margin: 4px 0; }
.fc-events li { display: flex; gap: 18px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--fc-line); }
.fc-cal { flex: none; width: 64px; padding: 8px 0; text-align: center; border: 1px solid var(--fc-line-strong); border-radius: var(--fc-r); background: var(--fc-surface); font-size: .85rem; text-transform: uppercase; }
.fc-cal b { display: block; font: 700 1.5rem var(--fc-head); }
.fc-events h3 { font: 700 1.15rem var(--fc-head); }
.fc-events p { color: var(--fc-muted); }
.fc-give { display: grid; gap: 40px; align-items: start; }
.fc-seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 16px; border-radius: 999px; background: var(--fc-band); }
.fc-seg-btn { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--fc-ink); font: 700 1rem var(--fc-body); cursor: pointer; }
.fc-seg-btn[aria-pressed="true"] { background: var(--fc-accent); color: var(--fc-on-accent); }
.fc-lab { display: block; font-weight: 700; margin: 16px 0 8px; }
#fc-own { width: 160px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--fc-line-strong); border-radius: var(--fc-r); background: var(--fc-surface); color: var(--fc-ink); font: inherit; }
.fc-aid { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
.fc-aid input { width: 22px; height: 22px; flex: none; }
.fc-gift { font: 700 2.2rem var(--fc-head); }
.fc-panel .fc-btn { margin: 14px 0 10px; }
.fc-small { color: var(--fc-muted); font-size: .9rem; }
@media (max-width: 900px) { .fc-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .fc-week { grid-template-columns: minmax(0, 1fr); } }
