:root {
  --charcoal: #1f4c70;
  --charcoal-deep: #143449;
  --walnut: #1f4c70;
  --walnut-deep: #143449;
  --sage: #6e8b64;
  --sage-ink: #4f6f4a;
  --sage-soft: #e6ecdf;
  --gold: #d4a955;
  --gold-soft: #f7ecd4;
  --cream: #f6f0e4;
  --cream-soft: #fbf6ec;
  --ink: #26303a;
  --muted: #55606b;
  --border: #d9cdb4;
  --border-soft: #ece4d4;
  --navy: #1f4c70;
  --navy-dark: #143449;
  --teal: #5d7a62;
  --teal-ink: #4f6f4a;
  --white: #ffffff;
  --danger: #8d3a2d;
  --success: #3f6848;
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 112.5%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-wrap: anywhere;
}
h1, h2, .brand, .hero h1, .book-promo h2 { font-family: var(--font-display); }

a { color: var(--teal-ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible, .skip-link:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.site-header :focus-visible, .site-footer :focus-visible {
  outline-color: var(--white);
}
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
main > p, main > ul { max-width: 72ch; }
button, input, select, textarea { max-width: 100%; min-width: 0; font: inherit; }
button, input:not([type="checkbox"]):not([type="hidden"]), select { min-height: 44px; }
input, select, textarea { color: var(--ink); }
img, video { max-width: 100%; height: auto; }
dd { margin-inline-start: 1rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; z-index: 100; }

header.site-header {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2f6b57 100%);
  color: var(--white);
  padding: 1.35rem 1rem 1rem;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
/* AJ-007C branding: the logo carries the brand, so it is larger again and the
   wordmark steps back so the two no longer compete for the same attention. */
.brand-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(14rem, 32vw, 21rem);
  height: clamp(4.75rem, 10.5vw, 6.5rem);
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-wordmark {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
nav.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; width: 100%; }
nav.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
}
.nav-toggle {
  font: inherit;
  border: 2px solid var(--white);
  border-radius: 6px;
  color: var(--white);
  background: transparent;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
nav.site-nav a:hover, nav.site-nav a[aria-current="page"] {
  background: var(--charcoal-deep);
  text-decoration: underline;
}

main { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.hero {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: 2.2rem; margin: 0 0 0.5rem; color: var(--navy); }
.hero p { max-width: 640px; margin: 0 auto 0.85rem; color: var(--muted); }
/* AJ-006: warm, textured hero for community pages. */
.warm-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 169, 85, 0.16), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(110, 139, 100, 0.16), transparent 40%),
    var(--cream-soft);
  border-color: var(--gold);
}
.hero-logo-shell {
  width: min(560px, 96%);
  margin: 0 auto 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.btn {
  display: inline-block;
  font: inherit;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
}
.btn:hover {
  background: #b59457;
  border-color: #b59457;
}
.btn.secondary {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--sage);
}
.btn.secondary:hover { background: var(--cream); }
.btn.small { padding: 0.3rem 0.75rem; font-size: 0.9rem; }
.btn.danger { border-color: var(--danger); background: var(--danger); color: var(--white); }

.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}
.card[href] {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card h2, .card h3 { margin-top: 0; color: var(--navy); }

.page-title { color: var(--navy); }

form.stacked { max-width: 560px; }
form.stacked label { display: block; font-weight: bold; margin-top: 1rem; }
form.stacked input, form.stacked select, form.stacked textarea {
  width: 100%;
  font: inherit;
  padding: 0.5rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
  margin-top: 0.25rem;
  background: var(--white);
}
form.stacked textarea { min-height: 6rem; }
form.stacked .checkbox-row { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 1rem; }
form.stacked .checkbox-row input { width: auto; margin-top: 0.35rem; }
form.stacked .checkbox-row label { margin-top: 0; font-weight: normal; }
form.stacked button[type="submit"] { margin-top: 1.25rem; }

.notice {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  margin: 1rem 0;
}
.notice.success { border-color: var(--success); color: var(--success); }
.notice.error { border-color: var(--danger); color: var(--danger); }
.notice[hidden] { display: none; }

.disclaimer {
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 4px solid var(--teal);
  padding-left: 0.75rem;
  margin: 1.5rem 0;
}

.book-promo {
  margin-top: 2rem;
  background: linear-gradient(135deg, #fff6ea 0%, #f3e2c2 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}
.book-promo h2 {
  margin: 0 0 0.75rem;
}
.book-promo-wrap {
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr;
  gap: 1.25rem;
  align-items: center;
}
.book-cover-shell {
  width: 100%;
  max-width: 220px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-cover {
  width: 100%;
  max-width: 220px;
  max-height: 340px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(47, 34, 25, 0.2);
  box-shadow: 0 8px 20px rgba(46, 31, 20, 0.15);
}
.book-promo-copy .pill {
  margin-left: 0;
  margin-bottom: 0.5rem;
}
.book-promo p {
  margin: 0.25rem 0 0;
}
.asset-fallback {
  margin: 0;
  text-align: center;
  color: var(--muted);
}

.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-bottom: 1.5rem; }
.filters label { display: block; font-weight: bold; }
.filters input, .filters select {
  width: 100%;
  font: inherit;
  padding: 0.45rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
  margin-top: 0.25rem;
}
.filters > div { min-width: 0; max-width: 100%; }
.table-scroll { max-width: 100%; overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  vertical-align: top;
}
table.data th { background: var(--navy); color: var(--white); }

.badge {
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
}
.badge.muted { background: var(--muted); }

.social-row { display: grid; gap: 0.5rem; max-width: 360px; margin-top: 0.5rem; }
.social-btn {
  font: inherit;
  padding: 0.55rem 1rem;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  text-align: left;
  cursor: not-allowed;
}

.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tabs button {
  font: inherit;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  border-radius: 6px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }

footer.site-footer {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2f6b57 100%);
  color: var(--white);
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
footer.site-footer a { color: #dbe9e8; }
footer.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-bottom: 0.75rem; }
footer.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

.uc-wrap { text-align: center; padding: 4rem 1rem; }
.uc-wrap h1 { color: var(--navy); }

.auth-shell {
  max-width: 920px;
}

.auth-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

@media (max-width: 48rem) {
  .nav-toggle { margin-left: auto; }
  nav.site-nav { flex-direction: column; }
  .brand {
    width: auto;
  }
  .brand-wordmark {
    font-size: 0.8rem;
  }
  .brand-logo-shell {
    width: clamp(11rem, 64vw, 15rem);
    height: clamp(3.9rem, 21vw, 5.25rem);
  }
  .hero { padding: 1.25rem 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-logo {
    max-height: 150px;
  }
  .filters { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .book-promo-wrap { grid-template-columns: 1fr; text-align: center; }
  .book-cover-shell { margin: 0 auto; min-height: 280px; }
  .book-cover { margin: 0 auto; }
}

/* ==== Pass 2 additions: layout utilities, honesty labels, section rhythm ==== */
.section { margin: 2rem 0; }
.section > h2 { color: var(--navy); margin-bottom: 0.5rem; }
.section-lede { color: var(--muted); max-width: 72ch; margin-top: 0; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card.warm { background: var(--cream-soft); }
.card.emphasis { border-color: var(--gold); }
.card h4 { color: var(--navy); margin: 0.75rem 0 0.25rem; }
.pill {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-ink);
  border: 1px solid var(--sage-ink);
  margin-left: 0.35rem;
  vertical-align: middle;
}
.pill.coming-soon { background: var(--gold-soft); color: var(--walnut-deep); border-color: var(--gold); }
.pill.available { background: #e6efe6; color: var(--success); border-color: var(--success); }
.pill.info { background: #ecebfa; color: #3b3a72; border-color: #6c6bb1; }
.tabs [role="tab"] { cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: var(--white); }
.tab-panels [role="tabpanel"] { padding: 0.5rem 0; }
.honest-empty {
  border: 1px dashed var(--border);
  background: var(--cream-soft);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  color: var(--muted);
  font-style: italic;
}
.section.safety { border-left: 4px solid var(--danger); padding-left: 1rem; background: #fdf5f2; border-radius: 6px; }
.section.safety h2, .section.safety h3 { color: var(--danger); }
.section.faith { border-left: 4px solid var(--gold); padding-left: 1rem; background: var(--cream-soft); border-radius: 6px; }
.section.medical { border-left: 4px solid var(--teal); padding-left: 1rem; background: #f2f6f2; border-radius: 6px; }
.medical-disclaimer {
  background: #fdf7ea;
  border: 1px solid var(--gold);
  color: var(--walnut-deep);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}
.footer-legal {
  font-size: 0.9rem;
  color: #dbe9e8;
  max-width: 72ch;
  margin-top: 0.75rem;
}
.audience-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.audience-tabs button {
  font: inherit;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  cursor: pointer;
}
.audience-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.audience-panel { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.community-cta-row {
  justify-content: flex-start;
}

.community-post-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.community-post-card h3 {
  margin: 0;
}

.community-post-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== AJ-004: owner CMS + editor ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.editor-body { background: var(--cream-soft); }

.editor-gate { max-width: 40rem; margin: 2rem auto; padding: 0 1rem; }

.editor-shell {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

@media (max-width: 860px) {
  .editor-shell { grid-template-columns: 1fr; }
}

.editor-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  position: sticky;
  top: 1rem;
}

.editor-sidebar ul { list-style: none; margin: 0; padding: 0; }
.editor-sidebar li { margin: 0 0 0.25rem; }

.editor-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.editor-nav-btn:hover { background: var(--cream-soft); }
.editor-nav-btn[aria-current="true"] { background: var(--navy); color: var(--white); }

.editor-search { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.editor-search input { flex: 1 1 auto; min-width: 0; }

.editor-main { min-width: 0; }

.editor-list { display: grid; gap: 0.75rem; }

.editor-blocks { display: grid; gap: 0.75rem; margin: 1rem 0; }

.editor-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.editor-block-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.editor-block-head strong { font-size: 0.95rem; }
.editor-block label { display: block; margin-bottom: 0.5rem; }
.editor-block input,
.editor-block textarea,
.editor-block select { width: 100%; }

.editor-preview {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.editor-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem;
}

.editor-media figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
}

.editor-media img { width: 100%; height: 8rem; object-fit: cover; border-radius: 6px; }

.cms-region[hidden] { display: none; }
.cms-blocks { display: grid; gap: 1rem; }
.cms-faq dt { font-weight: 600; }
.cms-faq dd { margin: 0 0 0.75rem; }
.cms-counter { font-size: 1.75rem; font-weight: 700; margin: 0; color: var(--navy); }

.cms-hero { background-size: cover; background-position: center; position: relative; }
.cms-hero.overlay-light,
.cms-hero.overlay-dark { border-radius: 8px; }
.cms-hero.overlay-light { background-color: rgba(255, 255, 255, 0.82); background-blend-mode: lighten; }
.cms-hero.overlay-dark { background-color: rgba(0, 0, 0, 0.5); background-blend-mode: darken; color: var(--white); }
.cms-hero.overlay-dark h1,
.cms-hero.overlay-dark p { color: var(--white); }

/* ===== Disciplined, responsive CMS image presentation =====
 * Images default to a modest content size and never explode to full width
 * unless the owner explicitly selects the "full" size. All sizes use max-width
 * with height:auto so they stay responsive and never overflow on mobile. */
.cms-image { margin: 0 0 1rem; max-width: 100%; }
.cms-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
}
.cms-image figcaption {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted, #6b6356);
  line-height: 1.4;
}

/* Size modes (desktop widths; always capped to the container on mobile). */
.cms-image--icon { max-width: 128px; }
.cms-image--icon img { border-radius: 6px; }
.cms-image--person { max-width: 180px; }
.cms-image--content { max-width: 250px; }
.cms-image--gallery { max-width: 250px; }
.cms-image--full { max-width: 100%; }

/* Alignment. Left/right float on desktop so text can wrap beside the image. */
.cms-image--center { margin-left: auto; margin-right: auto; }
.cms-image--left { float: left; margin-right: 1.25rem; }
.cms-image--right { float: right; margin-left: 1.25rem; }
/* Full-width images are never floated regardless of alignment. */
.cms-image--full.cms-image--left,
.cms-image--full.cms-image--right { float: none; margin-left: auto; margin-right: auto; }

/* Following blocks must not get trapped beside a floated image. */
.cms-blocks { overflow: hidden; }

@media (max-width: 640px) {
  /* On narrow screens images stack full-container width and never float. */
  .cms-image--icon,
  .cms-image--person,
  .cms-image--content,
  .cms-image--gallery { max-width: 100%; }
  .cms-image--left,
  .cms-image--right {
    float: none;
    margin-left: auto;
    margin-right: auto;
  }
}

.cms-card-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== Editor image controls and visual media picker ===== */
.editor-image-preview { margin: 0.5rem 0; }
.editor-image-preview .cms-image { margin-bottom: 0; }
.editor-media-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.editor-media-picker {
  background: var(--white, #fff);
  border-radius: 10px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 1rem 1.25rem 1.5rem;
}
.editor-media-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.editor-media-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.editor-media-tile {
  border: 2px solid var(--border, #ddd);
  border-radius: 8px;
  background: var(--white, #fff);
  padding: 0.4rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.editor-media-tile[aria-pressed="true"] { border-color: var(--gold, #c3762f); box-shadow: 0 0 0 2px var(--gold, #c3762f); }
.editor-media-tile img { width: 100%; height: 6rem; object-fit: cover; border-radius: 6px; }
.editor-media-tile .media-name { font-size: 0.85rem; word-break: break-word; }
.editor-dropzone {
  border: 2px dashed var(--border, #bbb);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  color: var(--muted, #6b6356);
}
.editor-dropzone.is-dragover { border-color: var(--gold, #c3762f); background: rgba(195, 118, 47, 0.08); }

/* ===== AJ-005: site-wide under construction banner ===== */
.construction-banner {
  background: var(--gold, #d4a955);
  color: #1d1a12;
  border-bottom: 2px solid rgba(0, 0, 0, 0.25);
  padding: 0.6rem 1rem;
  text-align: center;
}
.construction-banner p {
  margin: 0;
  max-width: 80ch;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.45;
}
.construction-banner strong { letter-spacing: 0.08em; }
.construction-banner a { color: #1d1a12; font-weight: 700; }

/* ===== AJ-005: community impact counters and program lists ===== */
.impact-counters { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.impact-counters li { background: var(--cream-soft, #fbf6ec); border-radius: 10px; padding: 1rem; text-align: center; }
.impact-counter-value { display: block; font-size: 2rem; font-weight: 700; color: var(--navy, #1f4c70); }
.impact-counter-label { display: block; font-size: 0.95rem; }
.milestone-list { display: grid; gap: 1rem; }

/* ===== AJ-006: community life utilities ===== */
.muted-note { color: var(--muted); font-size: 0.95rem; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover, a.card:focus-visible { border-color: var(--gold); }
a.card h3 { color: var(--navy); margin-top: 0; }

/* ===== AJ-007: community activation (image cards, icons, weekly prompts) ===== */
.section-icon {
  width: 1.5em;
  height: 1.5em;
  flex: none;
  vertical-align: -0.3em;
  margin-right: 0.5rem;
  fill: none;
  stroke: var(--navy, #1f4c70);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin: 1rem 0;
}
.image-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--white, #fff);
  border: 1px solid var(--border, #d9cdb4);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.image-card.warm { background: var(--cream-soft, #fbf6ec); }
a.image-card:hover, a.image-card:focus-visible { border-color: var(--gold, #d4a955); }
.image-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: linear-gradient(135deg, var(--cream-soft, #fbf6ec), var(--gold-soft, #f7ecd4));
  border-bottom: 1px solid var(--border, #d9cdb4);
}
.image-card-art .section-icon {
  width: 64px;
  height: 64px;
  margin: 0;
  stroke-width: 1.3;
  stroke: var(--walnut-deep, #143449);
}
.image-card-body { display: block; padding: 0 1rem 1rem; }
/* AJ-007C photo strategy: a real photograph replaces the themed icon whenever
   the owner has supplied one through the CMS. */
.image-card-art.has-photo { padding: 0; background: var(--cream-soft, #fbf6ec); }
.image-card-art.has-photo img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  max-height: 220px;
  object-fit: cover;
  display: block;
}
.image-card-body h3 { margin: 0 0 0.35rem; color: var(--navy, #1f4c70); }
.image-card-body p { margin: 0; }

.weekly-prompt {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--navy, #1f4c70);
  background: var(--cream-soft, #fbf6ec);
  border-left: 4px solid var(--gold, #d4a955);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1rem;
  margin: 0 0 0.75rem;
}
/* The questions people actually arrive asking, set large enough to carry the
 * page rather than disappear into body copy. */
.question-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}
.question-list li {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy, #1f4c70);
  background: var(--cream-soft, #fbf6ec);
  border-left: 4px solid var(--teal, #5d7a62);
  border-radius: 0 8px 8px 0;
  padding: 0.7rem 0.9rem;
}
.trivia-list { padding-left: 1.4rem; display: grid; gap: 1rem; }
.trivia-prompt { margin: 0 0 0.35rem; font-weight: 600; }
.trivia-list details summary { cursor: pointer; color: var(--teal-ink, #4f6f4a); }
.poll-options { margin: 0 0 0.75rem; }
.featured-story { background: var(--cream-soft, #fbf6ec); border-radius: 12px; padding: 1rem 1.25rem; }
.featured-story h3 { margin-top: 0; color: var(--navy, #1f4c70); }

/* Owner hub: large, high-contrast entrances into management areas. */
.owner-hub { margin-bottom: 1.5rem; }
.owner-hub-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.owner-hub-card {
  display: block;
  min-height: 5.5rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 2px solid var(--navy, #1f4c70);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink, #1a1a1a);
}
.owner-hub-card:hover,
.owner-hub-card:focus { background: var(--cream-soft, #fbf6ec); }
.owner-hub-card:focus-visible { outline: 3px solid var(--gold, #c8972b); outline-offset: 2px; }
.owner-hub-title { display: block; font-size: 1.25rem; font-weight: 700; color: var(--navy, #1f4c70); }
.owner-hub-desc { display: block; margin-top: 0.35rem; font-size: 1rem; }
