/* Public site theme. Colors and fonts come from each site's settings as CSS variables
   (--primary, --accent, --font-body, --font-head); the body class picks a variant:
   theme-civic, theme-classic, theme-warm, theme-modern. */

:root {
  --ink: #1d232b;
  --muted: #5a6573;
  --line: #d9dee4;
  --bg: #ffffff;
  --soft: #f4f6f8;
  --primary-dark: color-mix(in srgb, var(--primary) 78%, black);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, white);
  --link: var(--primary);
  --link-hover: var(--primary-dark);
  --card: #ffffff;
  --footer: #1f262e;
  --footer-line: #38424d;
  --radius: 4px;
  --wrap: 1120px;
}

/* Dark mode (the default). The organization's colors stay; links get a lighter tint of
   the main color so they read on the dark background. */
body.mode-dark {
  color-scheme: dark;
  --ink: #e7ebf0;
  --muted: #a3adb8;
  --line: #2a323c;
  --bg: #0f1419;
  --soft: #171d25;
  --card: #171d25;
  --footer: #0a0e12;
  --footer-line: #232b35;
  --primary-soft: color-mix(in srgb, var(--primary) 22%, #0f1419);
  --link: color-mix(in srgb, var(--primary) 55%, white);
  --link-hover: color-mix(in srgb, var(--primary) 35%, white);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); margin: 0 0 .75rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.15rem; margin: 0 0 .25rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.plain { list-style: none; padding: 0; margin: 0; }
.meta { color: var(--muted); font-size: .92rem; margin: .1rem 0; }
.empty { color: var(--muted); }
.note { color: var(--muted); font-style: italic; }
.more { margin-top: .75rem; font-weight: 600; }

/* Buttons: plain rectangles, slightly rounded. */
.btn {
  display: inline-block; padding: .6rem 1.15rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-size: 1rem; font-family: inherit; line-height: 1.3;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 80%, black); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--link); background: transparent; }

/* Alerts */
.alert { padding: .6rem 0; font-size: .98rem; }
.alert a { color: inherit; font-weight: 600; }
.alert-info { background: #e6f0fa; color: #0d3c66; }
.alert-warning { background: #fff3cd; color: #5c4400; }
.alert-emergency { background: #b00020; color: #fff; }

.staffbar { background: #222; color: #ddd; font-size: .85rem; padding: .3rem 0; }
.staffbar .wrap { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.staffbar a { color: #fff; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.brand .logo { height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.brand-tag { color: var(--muted); font-size: .95rem; }
.name-short { display: none; }
.header-tools { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.search { display: flex; }
.search input { padding: .45rem .7rem; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); font: inherit; font-size: .92rem; width: 180px; background: var(--card); color: var(--ink); }
.search button { padding: .45rem .8rem; border: 1px solid var(--primary-dark); background: var(--primary-dark); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; font: inherit; font-size: .92rem; cursor: pointer; }
.search.big input { width: 100%; max-width: 480px; font-size: 1.05rem; }
.search.big button { background: var(--primary); border-color: var(--primary); }

/* Navigation: menu on the left, search at the right end of the same bar */
.site-nav { background: var(--primary); }
.site-nav .wrap { display: flex; align-items: center; gap: 1rem; }
.site-nav .search { margin-left: auto; padding: .4rem 0; }
.site-nav .search input { border-color: transparent; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a { display: block; padding: .8rem 1rem; color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; }
.menu > li > a:hover, .menu > li > a[aria-current] { background: var(--primary-dark); }
.sub-toggle { display: none; }
.sub {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 240px;
  list-style: none; margin: 0; padding: .35rem 0; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.sub a { display: block; padding: .5rem 1rem; color: var(--ink); text-decoration: none; }
.sub a:hover { background: var(--primary-soft); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .site-nav .wrap { flex-wrap: wrap; gap: .5rem; }
  .site-nav .menu { order: 3; width: 100%; }
  .site-nav .search input { width: 140px; }
  .nav-toggle { display: block; background: none; border: 0; color: #fff; font: inherit; font-weight: 600; padding: .8rem 0; cursor: pointer; }
  .nav-toggle::before { content: "☰ "; }
  .menu { display: none; flex-direction: column; padding-bottom: .5rem; }
  .menu.open { display: flex; }
  .menu > li { flex-wrap: wrap; }
  .menu > li > a { flex: 1; padding: .7rem .25rem; }
  .sub-toggle { display: block; background: none; border: 0; color: #fff; font-size: 1.1rem; padding: .5rem 1rem; cursor: pointer; }
  .sub { position: static; box-shadow: none; border: 0; width: 100%; background: var(--primary-dark); }
  .sub a { color: #fff; padding-left: 1.25rem; }
  .sub a:hover { background: transparent; text-decoration: underline; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open .sub, .has-sub.open:hover .sub { display: block; }
  .brand .logo { height: 48px; }
  /* Long names collapse to the short name on phones when one is set. */
  .brand-name:has(.name-short) .name-long { display: none; }
  .brand-name:has(.name-short) .name-short { display: inline; }
}

/* Hero */
.hero { background: var(--primary-soft); padding: 3.25rem 0; border-bottom: 1px solid var(--line); }
.hero.has-image {
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), var(--hero) center var(--hero-y, 50%) / cover no-repeat;
  color: #fff; padding: 5.5rem 0; border: 0;
}
.hero.has-image h1, .hero.has-image .hero-text { color: #fff; }
.hero-inner { max-width: var(--wrap); }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 22ch; }
.hero-text { font-size: 1.2rem; max-width: 60ch; margin: 0 0 1.5rem; }
.hero-buttons { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0; }
.hero.has-image .btn-outline { color: #fff; }

/* Homepage sections */
.home-section { padding: 2.5rem 0; }
.home-section + .home-section { border-top: 1px solid var(--line); }
.home-section h2 { margin-top: 0; }
.hours-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.callout { background: var(--primary-soft); border-left: 4px solid var(--accent); padding: 1.25rem 1.5rem; }
.callout p:first-child { margin-top: 0; font-size: 1.1rem; }

/* Cards, steps and call-to-action sections (homepage builder) */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.cards li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.cards h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.cards p { margin: 0; color: var(--muted); }
.cards a.card-link { display: block; color: inherit; text-decoration: none; }
.cards a.card-link h3 { color: var(--link); }
.cards a.card-link:hover h3 { text-decoration: underline; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 3.6rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); }
.steps h3 { margin: .35rem 0 .3rem; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }
.cta { background: var(--primary); color: #fff; padding: 3rem 0; }
.cta h2 { color: #fff; margin: 0 0 .5rem; font-size: 1.8rem; }
.cta p { font-size: 1.15rem; max-width: 60ch; margin: 0 0 1.25rem; }
.cta .btn-accent { font-size: 1.05rem; background: #fff; color: var(--primary-dark); }
.cta .btn-accent:hover { background: #e9eef3; color: var(--primary-dark); }
.home-section.home-cta { padding: 0; }

/* Quick links: a simple two/three-column list, not cards */
.quick-links { list-style: none; padding: 0; margin: 0; columns: 3 240px; column-gap: 2rem; }
.quick-links li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.quick-links a { font-weight: 600; text-decoration: none; }
.quick-links a::after { content: " →"; }
.quick-links a:hover { text-decoration: underline; }
.quick-links span { display: block; color: var(--muted); font-size: .9rem; }

/* Lists */
.item-list, .event-list, .doc-list, .results, .subpages { list-style: none; padding: 0; margin: 0; }
.item { display: grid; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.item.with-image { grid-template-columns: 160px 1fr; }
.item img { width: 160px; height: 110px; object-fit: cover; border-radius: var(--radius); }
.item p { margin: .25rem 0 0; }
.item h3 a { text-decoration: none; }
.item h3 a:hover { text-decoration: underline; }
@media (max-width: 560px) { .item.with-image { grid-template-columns: 1fr; } .item img { width: 100%; height: 180px; } }

.event { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.event p { margin: .15rem 0 0; }
.event h3 a { text-decoration: none; }
.datebox { border: 1px solid var(--line); border-top: 6px solid var(--primary); text-align: center; height: 64px; display: flex; flex-direction: column; justify-content: center; }
.datebox .mon { font-size: .75rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.datebox .day { font-size: 1.5rem; font-weight: 700; line-height: 1; }

.doc-list li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.doc-list a { font-weight: 600; }
.doc-list .meta { display: block; }
.doc-list p { margin: .2rem 0 0; }
.doc-filter { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; margin: 0 0 1.5rem; padding: 1rem; background: var(--soft); }
.doc-filter label { display: flex; flex-direction: column; font-size: .9rem; font-weight: 600; gap: .25rem; }
.doc-filter select, .doc-filter input { padding: .45rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-weight: 400; }

.subpages { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.subpages li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.subpages a { font-weight: 600; font-size: 1.08rem; }
.subpages span { display: block; color: var(--muted); }
.results li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.results a { font-weight: 600; font-size: 1.08rem; }
.results p { margin: .2rem 0 0; }

.people { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 2rem; }
.person { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.person img, .avatar { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.avatar { display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--link); font-weight: 700; font-size: 1.4rem; }
.person p { margin: .1rem 0; }
.person .role { font-weight: 600; color: var(--muted); }
.person details { margin-top: .4rem; font-size: .95rem; }
.group-head { margin: 2rem 0 .5rem; padding-bottom: .35rem; border-bottom: 2px solid var(--primary); font-size: 1.3rem; }

.media-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.media-card { display: block; text-decoration: none; color: var(--ink); }
.media-card img, .media-ph { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.media-title { display: block; font-weight: 600; margin-top: .5rem; color: var(--link); }
.media-card:hover .media-title { text-decoration: underline; }
.video { position: relative; aspect-ratio: 16/9; margin: 1rem 0 1.5rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
audio, video { width: 100%; margin: 1rem 0; }

/* Photo galleries */
.gallery-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.gallery-cards a { display: block; text-decoration: none; color: var(--ink); }
.gallery-cards img, .gallery-cards .media-ph { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.gc-title { display: block; font-weight: 600; margin-top: .5rem; color: var(--link); }
.gallery-cards a:hover .gc-title { text-decoration: underline; }
.photo-grid { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.photo-grid .caption { font-size: .88rem; color: var(--muted); margin: .25rem 0 0; }
.lead-text { font-size: 1.15rem; color: #3e4c59; max-width: 70ch; }
/* Lightbox (added by site.js) */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.lightbox img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.lightbox .lb-cap { color: #fff; margin: .75rem 0 0; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 1.6rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; }
.lightbox .lb-next { right: 1rem; top: 50%; }

/* Rooms / units */
.room-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.room-card { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); height: 100%; }
.room-card img, .room-card .media-ph { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--soft); }
.rc-body { display: block; padding: .9rem 1rem 1rem; }
.rc-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--link); }
.rc-sum { display: block; color: var(--muted); margin: .25rem 0 .5rem; font-size: .95rem; }
.rc-facts { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; color: var(--muted); }
.rc-rate { color: var(--ink); font-weight: 600; margin-left: auto; }
.room-card:hover .rc-name { text-decoration: underline; }
.room-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.room-side { background: var(--soft); padding: 1.25rem; border-radius: var(--radius); }
.room-side .facts { margin: 0 0 1rem; padding: 0; background: none; }
.room-side h2 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.amenities { columns: 2; padding-left: 1.1rem; margin: 0 0 1rem; font-size: .95rem; }
@media (max-width: 760px) { .room-layout { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0 0 1.25rem; }
.filters a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-size: .92rem; }
.filters a[aria-current] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager { display: flex; justify-content: space-between; margin: 1.5rem 0; font-weight: 600; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.cal-head h2 { margin: 0; }
.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar th { font-size: .85rem; color: var(--muted); padding: .4rem; text-align: left; border-bottom: 2px solid var(--line); }
.calendar td { vertical-align: top; border: 1px solid var(--line); height: 110px; padding: .3rem; font-size: .82rem; }
.calendar td.out { background: var(--soft); color: #9aa3ad; }
.calendar td.today { background: var(--primary-soft); }
.calendar .n { display: block; font-weight: 700; margin-bottom: .2rem; }
.cal-ev { display: block; margin-bottom: .2rem; padding: .15rem .3rem; background: var(--primary-soft); border-left: 3px solid var(--primary); text-decoration: none; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.cal-ev span { font-weight: 700; }
@media (max-width: 700px) { .calendar td { height: 70px; font-size: .7rem; } .cal-ev span { display: none; } }

/* Page */
.page { padding-top: 2rem; padding-bottom: 3rem; }
.page-banner { height: 260px; background: var(--banner) center/cover no-repeat; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }
.draft-note { background: #fff3cd; padding: .5rem .8rem; border-left: 4px solid #d39e00; }
.prose { max-width: 75ch; }
.prose img { border-radius: var(--radius); }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1rem 0; padding: .25rem 1rem; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; }
.prose th { background: var(--soft); }
.prose .align-center { text-align: center; }
.prose .lead { font-size: 1.2rem; }
.prose .button { display: inline-block; padding: .55rem 1.1rem; background: var(--primary); color: #fff; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.lead-image { display: block; margin: 1rem 0 1.5rem; border-radius: var(--radius); max-height: 480px; object-fit: cover; width: 100%; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 1rem 0 1.5rem; padding: 1rem 1.25rem; background: var(--soft); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

.hours-list { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.25rem; margin: 0; }
.hours-list dt { font-weight: 600; }
.hours-list dd { margin: 0; }
.contact-block { font-style: normal; }
.contact-block p { margin: 0 0 .5rem; }
.map { margin: 1.5rem 0; aspect-ratio: 16/7; min-height: 260px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Forms */
.site-form { max-width: 640px; margin: 1.5rem 0; padding: 1.5rem; background: var(--soft); border: 1px solid var(--line); }
.site-form .field { margin-bottom: 1rem; }
.site-form label, .site-form legend { display: block; font-weight: 600; margin-bottom: .3rem; }
.site-form fieldset { border: 0; padding: 0; margin: 0; }
.site-form input:not([type=checkbox]):not([type=radio]), .site-form select, .site-form textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--card); color: var(--ink);
}
.doc-filter select, .doc-filter input { background: var(--card); color: var(--ink); }
.site-form .check { font-weight: 400; display: flex; gap: .5rem; align-items: baseline; margin-bottom: .25rem; }
.site-form .req { font-weight: 400; color: var(--muted); font-size: .88rem; }
.has-error input, .has-error select, .has-error textarea { border-color: #b00020 !important; }
.field-error, .form-error { color: #b00020; font-weight: 600; margin: .25rem 0 0; }
.form-success { background: #e8f5e9; border-left: 4px solid #2e7d32; padding: .75rem 1rem; }
.form-success p { margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--footer); color: #d6dbe0; margin-top: 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; padding-top: 2.5rem; padding-bottom: 1.5rem; }
.footer-grid p { margin: 0 0 .4rem; }
.footer-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer-head { font-weight: 700; color: #fff; }
.footer-grid .hours-list { color: #d6dbe0; }
.footer-bottom { border-top: 1px solid var(--footer-line); padding-top: 1rem; padding-bottom: 1.5rem; font-size: .88rem; color: #aeb6bf; }
.footer-bottom p { margin: .25rem 0; }

/* ---- Variants ---- */

/* Civic: government look. Utility-first, strong nav bar, square corners. */
.theme-civic { --radius: 2px; }
.theme-civic .site-header { border-top: 6px solid var(--accent); }

/* Classic: serif headings, centered masthead, rule lines. Veterans posts, historic orgs. */
.theme-classic .header-row { justify-content: center; text-align: center; flex-direction: column; }
.theme-classic .brand { flex-direction: column; }
.theme-classic .brand-name { font-size: 1.9rem; letter-spacing: .01em; }
/* Menu centered under the masthead; search keeps its place at the right end. */
.theme-classic .menu { flex: 1; justify-content: center; }
.theme-classic .site-nav .search { margin-left: 0; }
.theme-classic .site-nav { border-top: 3px solid var(--accent); }
.theme-classic h2 { border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
.theme-classic .home-section h2 { text-align: left; }

/* Warm: softer corners and background. Churches and nonprofits. */
.theme-warm { --radius: 8px; }
.theme-warm.mode-light { --soft: #f8f5f0; --bg: #fffdf9; --line: #e6dfd4; }
.theme-warm.mode-dark { --bg: #141210; --soft: #1c1915; --card: #1c1915; --line: #2e2a24; }
.theme-warm .site-nav { background: var(--bg); border-top: 1px solid var(--line); }
.theme-warm .menu > li > a { color: var(--ink); }
.theme-warm .menu > li > a:hover, .theme-warm .menu > li > a[aria-current] { background: transparent; color: var(--link); box-shadow: inset 0 -3px 0 var(--accent); }
.theme-warm.mode-light .hero { background: color-mix(in srgb, var(--accent) 12%, white); }
.theme-warm.mode-dark .hero { background: color-mix(in srgb, var(--accent) 18%, #141210); }
.theme-warm .site-nav .search input, .theme-modern .site-nav .search input { border-color: var(--line); }
.theme-warm .site-nav .search button, .theme-modern .site-nav .search button { background: var(--primary); border-color: var(--primary); }
@media (max-width: 820px) {
  .theme-warm .nav-toggle, .theme-warm .sub-toggle { color: var(--ink); }
  .theme-warm .sub { background: var(--soft); }
  .theme-warm .sub a { color: var(--ink); }
}

/* Modern: white header, dark primary nav text, larger type. */
.theme-modern { --radius: 6px; }
.theme-modern body, .theme-modern { font-size: 1.1rem; }
.theme-modern .site-nav { background: var(--bg); border-bottom: 1px solid var(--line); }
.theme-modern .menu > li > a { color: var(--link); }
.theme-modern .menu > li > a:hover, .theme-modern .menu > li > a[aria-current] { background: var(--primary-soft); }
.theme-modern .hero { background: var(--primary); color: #fff; }
.theme-modern .hero h1, .theme-modern .hero .hero-text { color: #fff; }
.theme-modern .hero .btn-primary { background: #fff; color: var(--primary); }
.theme-modern .hero .btn-outline { color: #fff; }
@media (max-width: 820px) {
  .theme-modern .nav-toggle, .theme-modern .sub-toggle { color: var(--link); }
  .theme-modern .sub a { color: var(--link); }
  .theme-modern .sub { background: var(--primary-soft); }
}

@media print {
  .site-nav, .header-tools, .staffbar, .site-footer, .alert { display: none; }
}
