:root {
  --ink: #23323b;
  --muted: #4f5f68;
  --blue: #34505f;
  --paper: #faf7f0;
  --card: #ffffff;
  --line: #e4ddcd;
  --accent: #7a4b1f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, main:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.skip {
  position: absolute; left: -10000px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 12px; padding-bottom: 10px; }
.brand { font-size: 1.15rem; color: var(--blue); text-decoration: none; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-header nav a { display: inline-block; padding: 6px 8px; text-decoration: none; border-radius: 4px; font-size: .98rem; }
.site-header nav a:hover { background: var(--line); }
.site-header nav a[aria-current="page"] { background: var(--blue); color: #fff; }
/* Nav menu: <details> ships open; site.js closes it on narrow screens. */
.site-header details.menu summary { cursor: pointer; list-style: none; padding: 6px 10px; border: 1px solid var(--blue); border-radius: 4px; color: var(--blue); display: inline-block; }
.site-header details.menu summary::-webkit-details-marker { display: none; }
.site-header details.menu[open] summary { margin-bottom: 6px; }
@media (max-width: 759px) {
  .site-header .wrap { align-items: flex-start; gap: 4px 20px; }
  .site-header nav { flex: 1 0 100%; }
  .site-header details.menu ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .site-header details.menu li a { display: block; padding: 10px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (min-width: 760px) {
  .site-header details.menu summary { display: none; }
}

main { display: block; padding-bottom: 24px; }
main:focus { outline: none; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 28px 0 8px; color: var(--blue); font-weight: normal; letter-spacing: .01em; line-height: 1.2; }
h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin: 28px 0 8px; font-weight: normal; }
h3 { font-size: 1.15rem; margin: 0 0 4px; font-weight: normal; color: var(--ink); }
section { margin: 0 0 8px; }

.hero { margin: 0 auto; max-width: 960px; padding: 16px 20px 0; }
.hero-img { display: block; width: 100%; border-radius: 6px; }
.intro { text-align: center; }
.tagline { margin: 4px 0 0; font-size: 1.15rem; color: var(--muted); font-style: italic; }
.tagline2 { margin: 2px 0 0; color: var(--muted); }
.worship { text-align: center; margin: 24px auto; padding: 14px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.worship h2 { margin-top: 0; }
.time { font-size: 2rem; margin: 0; }

.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 32px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
figure { margin: 20px 0; }
figcaption { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.photo { display: block; border-radius: 6px; width: 100%; }

.address { margin: 0 0 6px; }
.schedule { margin: 0; }
.schedule div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.schedule dt { font-weight: bold; }
.schedule dd { margin: 0; }
.detail { color: var(--muted); font-size: .95rem; }
ul.plain { list-style: none; padding: 0; }
.source { color: var(--muted); font-style: italic; font-size: .95rem; }

.news-list { display: grid; grid-template-columns: 1fr; gap: 18px; }
.news-item { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.news-img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #f1ece0; }
.news-body { padding: 12px 16px 4px; }
.news-body p { margin: 0 0 10px; overflow-wrap: anywhere; }
.news-date { color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) {
  .news-item { flex-direction: row; align-items: flex-start; }
  .news-item .news-img { width: 240px; height: auto; max-height: 260px; flex: 0 0 240px; }
}
cite { font-style: italic; }

.teaser { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 4px 16px 8px; margin-top: 24px; }
.teaser h2 { margin-top: 14px; }

.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev-day { margin: 18px 0 4px; font-size: 1.1rem; }
.ev-title { font-weight: bold; }
.badge { display: inline-block; font-size: .85rem; padding: 0 8px; border: 1px solid var(--accent); color: var(--accent); border-radius: 10px; margin-left: 6px; }
.cal-links { margin: 8px 0 16px; }
.month-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.month-nav span { font-weight: bold; min-width: 10em; text-align: center; }
@media (max-width: 559px) {
  .month-nav span { flex: 1 0 100%; order: -1; text-align: left; min-width: 0; }
}
button { font: inherit; padding: 6px 12px; border: 1px solid var(--blue); background: var(--card); color: var(--blue); border-radius: 4px; cursor: pointer; }
button:hover { background: var(--blue); color: #fff; }
table.month { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--card); }
table.month th, table.month td { border: 1px solid var(--line); vertical-align: top; padding: 4px; font-size: .85rem; }
table.month td { height: 4.5em; }
table.month .num { display: block; color: var(--muted); }
table.month .today .num { color: var(--accent); font-weight: bold; }
table.month .today { box-shadow: inset 0 0 0 2px var(--accent); }
table.month .ev { display: block; overflow-wrap: anywhere; color: var(--ink); }
table.month .ev.pending { font-style: italic; }
table.month .ev .t { color: var(--muted); }
table.month .dow { display: none; }
button:disabled { opacity: .5; cursor: default; background: var(--card); color: var(--blue); }
/* /calendar/ grid on narrow screens: one row per day (the 7-column grid cannot hold event titles). */
@media (max-width: 559px) {
  table.month.stack, table.month.stack tbody, table.month.stack tr, table.month.stack td { display: block; width: 100%; }
  table.month.stack thead, table.month.stack td.pad, table.month.stack caption { display: none; }
  table.month.stack td { height: auto; border-width: 0 0 1px; padding: 6px 4px; }
  table.month.stack .num { display: inline; font-weight: bold; }
  table.month.stack .dow { display: inline; color: var(--muted); margin-left: 4px; }
  table.month.stack .ev { padding-left: 1.5em; }
}
/* /rentals/ availability grid (card D). Colour is never the only signal: every state has a text label. */
table.month.avail td { height: 4em; }
table.month.avail td.past { background: #eeeae0; color: var(--muted); }
table.month.avail td.past .num { color: #9a9a92; }
table.month.avail td.booked { background: var(--ink); color: #fff; }
table.month.avail td.booked .num { color: #d8d8d8; }
table.month.avail td.pending { background: repeating-linear-gradient(135deg, #e4e0d6 0 6px, #f6f3ec 6px 12px); color: var(--ink); }
table.month.avail td.inuse { background: #fbf2e6; }
table.month.avail .lab { display: block; font-weight: bold; }
table.month.avail .use { display: block; overflow-wrap: anywhere; font-size: .78rem; }
@media (max-width: 559px) {
  table.month.avail th, table.month.avail td { padding: 2px; font-size: .72rem; }
  table.month.avail .use { font-size: .66rem; }
}
.legend { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 1.1em; height: 1.1em; border: 1px solid var(--line); vertical-align: middle; }
.sw.booked { background: var(--ink); }
.sw.pending { background: repeating-linear-gradient(135deg, #e4e0d6 0 3px, #f6f3ec 3px 6px); }
.sw.inuse { background: #fbf2e6; }
.sw.available { background: var(--card); }

.form p { margin: 0 0 12px; }
.form label { display: block; margin-bottom: 4px; }
.form input, .form textarea { width: 100%; font: inherit; padding: 8px; border: 1px solid #8a9aa3; border-radius: 4px; background: #fff; color: var(--ink); }
.form fieldset { border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; margin: 0 0 12px; }
.form legend { padding: 0 4px; }
.form label.check { display: inline-flex; align-items: center; gap: 6px; margin: 4px 16px 4px 0; }
.form label.check input { width: auto; margin: 0; }
.form .row2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-off, .form-noscript { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; }
.rates li { margin-bottom: 6px; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .tile { margin: 0; }
.names li { padding: 4px 0; }
.sponsors li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sponsors li:last-child { border-bottom: 0; }
.sponsor-name { font-weight: 600; }
.sponsor-logo { display: block; max-width: 240px; height: auto; }
.project { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 4px 16px 8px; margin: 18px 0; }
.project h2 { margin-top: 14px; }
.status { color: var(--accent); margin: 0 0 8px; }
.updates { list-style: none; padding: 0; margin: 0; }
.updates .update { padding: 8px 0; border-top: 1px solid var(--line); }
.updates .update p { margin: 0 0 6px; }
/* Project details blocks (card H): two-column table and the Done / To do checklist; plain at 390 px. */
table.details { width: 100%; border-collapse: collapse; background: var(--card); margin: 0 0 12px; }
table.details th, table.details td { border: 1px solid var(--line); text-align: left; vertical-align: top; padding: 6px 8px; overflow-wrap: anywhere; }
table.details th { background: #f1ece0; }
table.details tfoot th, table.details tfoot td { font-weight: 700; }
table.details td.money { white-space: nowrap; overflow-wrap: normal; }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; }
.checklist li { padding: 4px 0; }
.checklist .state { display: inline-block; min-width: 4.2em; font-size: .85rem; padding: 0 8px; border: 1px solid var(--accent); color: var(--accent); border-radius: 10px; margin-right: 6px; text-align: center; }
.checklist .done .state { background: var(--accent); color: #fff; }
.checklist .todo { color: var(--muted); }
.memo { margin: 0 0 10px; }
/* Card H3: progress block (/projects/, giving v2) and the /give/ v2 lists. No inline styles (CSP style-src 'self'). */
.progress { margin: 0 0 12px; }
.progress .amounts { margin: 0 0 4px; font-weight: bold; }
.progress progress { display: block; width: 100%; height: 14px; margin: 0 0 6px; accent-color: var(--accent); }
.progress p.detail { margin: 0 0 4px; }
.progress h3 { margin-top: 10px; }
.donors li { padding: 2px 0; }
.ways li { margin: 0 0 8px; }
.project-list { margin: 8px 0 0; }
.project-list li { padding: 3px 0; }

.site-footer { text-align: center; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); padding: 16px 0 32px; margin-top: 24px; }
.site-footer p { margin: 2px 0; }
.site-footer .credit { margin-top: 10px; font-size: .85rem; }

/* Card J: share bar (every project, /projects/, /give/, home), footer Facebook links, project pages. Big plain
   buttons: at least 44px tall, wrap on a phone, readable at 200% zoom. No inline styles (CSP). */
.share { margin: 24px 0 8px; padding: 12px 16px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.share h2, .share h3 { margin: 4px 0 10px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; font: inherit; font-size: 1.05rem; color: var(--blue); background: var(--card); border: 2px solid var(--blue); border-radius: 6px; text-decoration: none; cursor: pointer; line-height: 1.3; text-align: center; }
.share-btn:hover, .share-btn:focus-visible { background: var(--blue); color: #fff; }
.share-status { margin: 8px 0 0; min-height: 1.4em; color: var(--accent); font-weight: bold; overflow-wrap: anywhere; }
.share-status:empty { margin: 0; min-height: 0; }
.share-more { margin-top: 10px; }
.share-more summary { cursor: pointer; padding: 8px 0; color: var(--blue); min-height: 44px; display: flex; align-items: center; }
.share-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.project-links { margin: 8px 0; }
.crumbs { margin: 20px 0 0; }

/* Card K: "Give online" buttons (project page, /projects/ section, /give/). Our own styled plain links:
   large, filled, two lines (label + sub-line), at least 56px tall, full width on a phone. No image, no script. */
.give-online { margin: 12px 0 16px; }
section.give-online { margin: 20px 0 8px; padding: 12px 16px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
section.give-online h2 { margin: 4px 0 6px; }
section.give-online > p.detail { margin: 0 0 12px; }
.give-online-list { margin: 0; }
.give-online-list li { padding: 0 0 12px; }
.give-online-list li p.detail { margin: 6px 0 0; }
.give-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; min-width: 16em; max-width: 100%; padding: 10px 22px; font: inherit; color: #fff; background: var(--accent); border: 2px solid var(--accent); border-radius: 8px; text-decoration: none; line-height: 1.3; text-align: center; }
.give-btn:hover, .give-btn:focus-visible { background: #fff; color: var(--accent); }
.give-btn-main { display: block; font-size: 1.25rem; font-weight: bold; }
.give-btn-sub { display: block; font-size: .9rem; margin-top: 2px; }
@media (max-width: 559px) { .give-btn { width: 100%; } }
/* /give/ "Give online" layout (Lewis 2026-11-12): "Give to the church" + "Give every month" side by side, equal
   width, the tick-the-box sentence under the monthly one; the project buttons below, centered, one width.
   Phones (< 560px, the site's phone breakpoint; at ~480-560px two columns would wrap the labels) stack the two
   general buttons, to-the-church first. */
.give-general { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 4px; }
.give-general li { flex: 1 1 0; min-width: 0; }
.give-general .give-btn { display: flex; width: 100%; min-width: 0; }
.give-projects li { text-align: center; }
.give-projects .give-btn { width: 24em; min-width: 0; }
@media (max-width: 559px) {
  .give-general { flex-direction: column; align-items: stretch; gap: 0; }
  .give-general li { flex: none; }
}
.project-full { margin-top: 10px; }
.site-footer .fb-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0; }
.site-footer .fb-links .share-btn { font-size: 1rem; }
@media (max-width: 559px) { .share-row .share-btn, .share-list li, .share-list .share-btn { width: 100%; } }

/* Card J: printable project flyer (/projects/<id>/flyer/), one US Letter page. */
.flyer .flyer-church { margin: 0 0 6px; color: var(--muted); }
.flyer .qr { margin: 18px 0; text-align: center; }
.flyer .qr img { width: 260px; height: 260px; max-width: 70vw; }
.flyer .qr figcaption { font-size: 1.05rem; color: var(--ink); }
.flyer .flyer-url { font-size: 1.3rem; overflow-wrap: anywhere; }
.flyer .flyer-foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); }
@page { size: letter; margin: 0.6in; }
@media print {
  .site-header, .site-footer, .skip, .share, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .flyer { max-width: 100%; padding: 0; }
  .flyer h1 { margin-top: 0; color: #000; }
  .flyer .qr img { width: 2.6in; height: 2.6in; max-width: none; }
  a { color: #000; text-decoration: none; }
}
