:root {
  color-scheme: light;
  --bg: #f3f6f1;
  --panel: #ffffff;
  --panel-strong: #eef4ea;
  --text: #102437;
  --muted: #647284;
  --line: #d8e2dc;
  --accent: #0d6abf;
  --accent-strong: #074c8e;
  --gold: #c99128;
  --green: #0e7a61;
  --ink: #071a2d;
  --shadow: 0 22px 60px rgba(20, 46, 71, 0.14);
  --glow: 0 16px 46px rgba(13, 106, 191, 0.2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dark {
  color-scheme: dark;
  --bg: #07111d;
  --panel: #0f1d2b;
  --panel-strong: #172d3d;
  --text: #f2f7fb;
  --muted: #aab8c5;
  --line: #294257;
  --accent: #77b7ff;
  --accent-strong: #b8d9ff;
  --gold: #f0c15a;
  --green: #55d4aa;
  --ink: #04101c;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(140deg, rgba(13, 106, 191, 0.1), transparent 36%),
    linear-gradient(320deg, rgba(14, 122, 97, 0.09), transparent 34%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
iframe,
video {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 26, 45, 0.96), rgba(10, 48, 60, 0.94)),
    var(--ink);
  color: #fff;
}

.brand,
.nav-list a,
.topbar,
.topbar-actions,
.hero-actions,
.toolbar,
.segmented,
.section-heading,
.stream-controls,
.form-actions,
.consent-row,
.filter-select,
.companion-head,
.member-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.brand-mark img {
  width: 52px;
  height: auto;
  display: block;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow,
.resource-body p,
.form-note,
.schedule-list p,
.care-hero p,
.care-teaser p,
.community-hero p,
.community-teaser p,
.ministry-teaser p,
.integrity-notice span {
  color: var(--muted);
}

.sidebar .brand small,
.sidebar-note span {
  color: rgba(255, 255, 255, 0.68);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list a {
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 650;
}

.nav-list a span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
}

.nav-list a.active,
.nav-list a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sidebar-note {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 145, 40, 0.2), rgba(13, 106, 191, 0.12)),
    rgba(255, 255, 255, 0.07);
}

.sidebar-note strong,
.sidebar-note span {
  display: block;
}

.sidebar-note span {
  margin-top: 8px;
  line-height: 1.45;
}

main {
  min-width: 0;
  padding: 26px clamp(18px, 3vw, 42px) 44px;
}

.topbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding: 10px 0;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.35rem, 5.6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  letter-spacing: 0;
}

.topbar-actions,
.hero-actions,
.stream-controls,
.form-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action,
.icon-button,
.segmented button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.primary-action {
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: #fff;
  box-shadow: var(--glow);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

body.dark .secondary-action {
  background: rgba(255, 255, 255, 0.08);
}

.icon-button {
  width: 42px;
  height: 42px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: stretch;
  padding: clamp(24px, 5vw, 56px);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(7, 26, 45, 0.94), rgba(13, 106, 191, 0.84) 56%, rgba(14, 122, 97, 0.76)),
    url("https://smhos.org/wp-content/uploads/2025/03/DSC02290-819x1024.jpg") center/cover;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--accent));
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.hero-copy p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-copy .eyebrow {
  color: #f4c55f;
}

.hero-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 0.86rem;
  font-weight: 800;
}

.media-collage,
.stream-panel,
.schedule-panel,
.admin-form,
.care-form,
.contact-card,
.resource-card,
.metrics-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.media-collage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  min-height: 430px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.media-collage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
}

.collage-main {
  grid-row: 1 / span 2;
}

.collage-stack {
  display: grid;
  gap: 12px;
}

.collage-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(7, 26, 45, 0.82);
  color: #fff;
  backdrop-filter: blur(12px);
}

.collage-caption span {
  color: rgba(255, 255, 255, 0.7);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.metrics-grid article {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(13, 106, 191, 0.08), rgba(14, 122, 97, 0.07)),
    var(--panel);
}

.metrics-grid span {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 900;
}

.metrics-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

.impact-section {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13, 106, 191, 0.08), rgba(201, 145, 40, 0.1)),
    var(--panel);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.impact-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.impact-grid span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.impact-grid h4 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.impact-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.story-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(20, 46, 71, 0.08);
}

.story-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.story-strip h3 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.story-strip p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-band {
  padding: 12px 0;
}

.care-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13, 106, 191, 0.09), rgba(201, 145, 40, 0.11)),
    var(--panel);
}

.care-teaser h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.care-teaser p {
  max-width: 720px;
  margin-bottom: 0;
  line-height: 1.6;
}

.community-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 122, 97, 0.1), rgba(13, 106, 191, 0.1)),
    var(--panel);
}

.community-teaser h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.community-teaser p {
  max-width: 760px;
  margin-bottom: 0;
  line-height: 1.6;
}

.ministry-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 145, 40, 0.12), rgba(13, 106, 191, 0.08)),
    var(--panel);
}

.ministry-teaser h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.ministry-teaser p {
  max-width: 780px;
  margin-bottom: 0;
  line-height: 1.6;
}

.section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading a {
  color: var(--accent);
  font-weight: 800;
}

.compact {
  margin-bottom: 18px;
}

.collection-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 16px;
}

.resource-card {
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cover-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 190px;
  padding: 14px;
  background: linear-gradient(135deg, #123f66, #147d62);
  overflow: hidden;
}

.cover-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7, 26, 45, 0.78));
}

.resource-card:nth-child(2n) .cover-art {
  background: linear-gradient(135deg, #642f67, #1473e6);
}

.resource-card:nth-child(3n) .cover-art {
  background: linear-gradient(135deg, #614511, #0f6f78);
}

.type-label,
.status-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.resource-body {
  display: grid;
  gap: 18px;
  padding: 16px;
  min-height: 152px;
}

.resource-body h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.resource-body p {
  margin-bottom: 0;
  line-height: 1.45;
}

.verified-badge,
.review-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 900;
}

.verified-badge {
  background: rgba(14, 122, 97, 0.12);
  color: var(--green);
}

.review-badge {
  background: rgba(201, 145, 40, 0.16);
  color: var(--gold);
}

.resource-body a {
  color: var(--accent);
  font-weight: 850;
  align-self: end;
}

.resource-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.resource-actions .secondary-action {
  min-height: 38px;
  justify-content: center;
  padding: 0 10px;
}

.toolbar {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-select {
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-select select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 750;
}

.integrity-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 122, 97, 0.09), rgba(201, 145, 40, 0.09)),
    var(--panel);
}

.integrity-notice strong {
  flex: 0 0 auto;
  color: var(--green);
}

.library-dashboard,
.analytics-grid,
.admin-console-grid,
.media-grid,
.locator-suite,
.wisdom-strip {
  display: grid;
  gap: 14px;
}

.library-dashboard {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 18px;
}

.library-dashboard article,
.media-toolbox,
.admin-console,
.giving-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.library-dashboard > article,
.media-toolbox,
.admin-console,
.giving-form,
.locator-suite > article,
.materials-database-panel,
.wisdom-strip article {
  padding: 16px;
}

.library-dashboard h3,
.admin-console h3,
.media-toolbox h3,
.giving-form h3,
.locator-suite h3,
.materials-database-panel h3,
.wisdom-strip h3 {
  margin-bottom: 12px;
}

.locator-suite {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 18px;
}

.locator-suite > article,
.materials-database-panel,
.wisdom-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.locator-search {
  width: 100%;
  margin-bottom: 10px;
}

.nearby-list,
.materials-table {
  display: grid;
  gap: 10px;
}

.nearby-list article,
.materials-table article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13, 106, 191, 0.06), rgba(201, 145, 40, 0.06)),
    var(--panel-strong);
}

.nearby-list span,
.nearby-list p,
.materials-table span,
.materials-table p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.nearby-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.materials-database-panel {
  margin-bottom: 18px;
}

.materials-database-panel .section-heading span {
  color: var(--accent);
  font-weight: 900;
}

.materials-table {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.materials-table a {
  color: var(--accent);
  font-weight: 850;
}

.wisdom-strip {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 22px;
}

.wisdom-strip article {
  background:
    linear-gradient(135deg, rgba(14, 122, 97, 0.09), rgba(13, 106, 191, 0.07)),
    var(--panel);
}

.wisdom-strip h3 {
  line-height: 1.45;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.mini-list {
  display: grid;
  gap: 9px;
}

.mini-list article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.mini-list strong,
.mini-list span,
.mini-list a {
  display: block;
}

.mini-list span,
.mini-list p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.mini-list p {
  margin: 0;
}

.mini-list a {
  color: var(--accent);
  font-weight: 850;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.segmented {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.segmented button {
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: var(--accent);
  color: #fff;
}

.live-layout,
.admin-layout,
.care-layout,
.community-layout,
.social-layout,
.ministry-layout,
.jobs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.media-toolbox,
.giving-form,
.reminder-form {
  margin-top: 14px;
}

.media-grid,
.admin-console-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.media-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.media-grid article,
.admin-console-grid > section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.transcript-box {
  display: grid;
  gap: 8px;
}

.transcript-box button {
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.analytics-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 16px;
}

.analytics-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13, 106, 191, 0.08), rgba(14, 122, 97, 0.06)),
    var(--panel);
}

.analytics-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 900;
}

.analytics-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.stream-panel,
.schedule-panel,
.admin-form,
.care-form,
.contact-card,
.member-directory,
.chat-panel,
.feed-panel,
.groups-panel,
.profile-card {
  padding: 18px;
}

.community-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(7, 26, 45, 0.92), rgba(14, 122, 97, 0.72), rgba(201, 145, 40, 0.48)),
    url("https://smhos.org/wp-content/uploads/2026/05/IMG_5069-819x1024.png") center/cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.ministry-hero,
.jobs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 8px;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ministry-hero {
  background:
    linear-gradient(120deg, rgba(7, 26, 45, 0.92), rgba(13, 106, 191, 0.74), rgba(201, 145, 40, 0.5)),
    url("https://smhos.org/wp-content/uploads/2025/03/DSC02290-819x1024.jpg") center/cover;
}

.jobs-hero {
  background:
    linear-gradient(120deg, rgba(7, 26, 45, 0.92), rgba(14, 122, 97, 0.72), rgba(13, 106, 191, 0.48)),
    url("https://smhos.org/wp-content/uploads/2025/03/DSC09403-2thyhrr.png") center/cover;
}

.ministry-hero .eyebrow,
.jobs-hero .eyebrow {
  color: #f4c55f;
}

.ministry-hero h2,
.jobs-hero h2 {
  max-width: 980px;
  margin-bottom: 16px;
  font-size: clamp(2.05rem, 4.2vw, 4rem);
}

.ministry-hero p,
.jobs-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.ministry-quick-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(7, 26, 45, 0.76);
  backdrop-filter: blur(12px);
}

.ministry-quick-panel a {
  color: #f4c55f;
  font-weight: 900;
}

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(278px, 1fr));
  gap: 16px;
}

.ministry-card,
.job-card,
.job-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.ministry-card {
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ministry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ministry-image {
  position: relative;
  min-height: 178px;
  overflow: hidden;
}

.ministry-image img {
  width: 100%;
  height: 100%;
  min-height: 178px;
  object-fit: cover;
  display: block;
}

.ministry-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 26, 45, 0.78));
}

.ministry-image span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ministry-card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.ministry-card-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ministry-card-head img {
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.ministry-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ministry-card-body a {
  color: var(--accent);
  font-weight: 900;
}

.jobs-layout {
  align-items: start;
}

.job-board {
  padding: 18px;
}

.job-board .section-heading span {
  color: var(--accent);
  font-weight: 900;
}

.job-list {
  display: grid;
  gap: 12px;
}

.job-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(13, 106, 191, 0.07), rgba(14, 122, 97, 0.06)),
    var(--panel);
}

.job-card-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.job-card h3 {
  margin: 8px 0 5px;
}

.job-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.community-hero .eyebrow {
  color: #f4c55f;
}

.community-hero h2 {
  max-width: 980px;
  margin-bottom: 16px;
  font-size: clamp(2.05rem, 4.2vw, 4rem);
}

.community-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.profile-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(7, 26, 45, 0.78);
  backdrop-filter: blur(12px);
}

.profile-card label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.profile-card input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0 12px;
}

.profile-card input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.profile-card .form-note {
  color: rgba(255, 255, 255, 0.68);
}

.care-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(7, 26, 45, 0.92), rgba(13, 106, 191, 0.78), rgba(14, 122, 97, 0.72)),
    url("https://smhos.org/wp-content/uploads/2025/04/Highlights-from-todays-service-%E2%80%93-a-time-of-worship-the-Word-and-the-supernatural.-Relive-the-moments-and-be-blessedSMHOS-smhosglobal-highlights.jpg") center/cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.care-hero .eyebrow {
  color: #f4c55f;
}

.care-hero h2 {
  max-width: 980px;
  margin-bottom: 16px;
  font-size: clamp(2.05rem, 4.2vw, 4rem);
}

.care-hero p {
  max-width: 740px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.care-hotline {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(7, 26, 45, 0.74);
  backdrop-filter: blur(10px);
}

.care-hotline span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.care-hotline strong {
  font-size: 1.35rem;
}

.care-hotline a {
  color: #f4c55f;
  font-weight: 900;
}

.care-layout {
  align-items: start;
}

.community-layout,
.social-layout {
  align-items: start;
}

.social-layout {
  margin-top: 18px;
}

.member-directory,
.chat-panel,
.feed-panel,
.groups-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.member-directory .section-heading span {
  color: var(--accent);
  font-weight: 900;
}

.community-toolbar {
  align-items: stretch;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.member-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13, 106, 191, 0.07), rgba(14, 122, 97, 0.06)),
    var(--panel);
}

.member-photo {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel-strong);
}

.member-photo img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  display: block;
}

.member-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 45, 0.08), rgba(7, 26, 45, 0.62));
}

.member-avatar {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: #fff;
  font-weight: 900;
}

.member-card h3 {
  margin: 6px 0 5px;
  font-size: 1.05rem;
}

.member-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.status-dot {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(14, 122, 97, 0.12);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.interest-list span {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.member-actions {
  gap: 8px;
  margin-top: 2px;
}

.member-actions .primary-action,
.member-actions .secondary-action {
  flex: 1;
}

.chat-panel {
  position: sticky;
  top: 24px;
}

.chat-thread {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 360px;
  max-height: 430px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.chat-thread article {
  display: grid;
  gap: 5px;
  max-width: 88%;
  padding: 10px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.chat-thread article.sent {
  justify-self: end;
  background: rgba(13, 106, 191, 0.12);
}

.chat-thread p,
.chat-thread span {
  margin: 0;
}

.chat-thread span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.chat-form input,
.post-form textarea,
.post-form select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 0 12px;
}

.post-form {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.post-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.feed-list,
.group-list {
  display: grid;
  gap: 10px;
}

.feed-list article,
.group-list article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.group-thumb {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 8px;
}

.feed-list article > div {
  display: grid;
  gap: 3px;
}

.feed-list span,
.group-list span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.feed-list p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.stream-embed {
  display: grid;
  place-items: center;
  min-height: min(58vh, 560px);
  border-radius: 8px;
  background:
    linear-gradient(rgba(7, 19, 31, 0.55), rgba(7, 19, 31, 0.58)),
    url("https://smhos.org/wp-content/uploads/2026/05/Thurs-21st-May-2026-IG-819x1024.png") center/cover;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.stream-embed iframe {
  width: 100%;
  height: min(58vh, 560px);
  border: 0;
}

.stream-embed h2 {
  max-width: 720px;
  margin: 16px auto 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.stream-embed p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
}

.stream-controls {
  margin-top: 14px;
}

.live-companion {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.companion-head {
  justify-content: space-between;
  gap: 16px;
}

.countdown-box {
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.countdown-box span,
.companion-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.countdown-box strong {
  color: var(--accent);
  font-size: 1.35rem;
}

.companion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.companion-grid article {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.companion-grid p,
.companion-grid a {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.companion-grid a {
  color: var(--accent);
  font-weight: 900;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 145, 40, 0.1), transparent),
    var(--panel);
}

.schedule-list strong,
.schedule-list span,
.schedule-list p {
  display: block;
}

.schedule-list span {
  margin-bottom: 4px;
  color: var(--green);
  font-weight: 850;
}

.schedule-list p {
  margin: 8px 0 0;
}

.admin-layout {
  align-items: start;
}

.admin-form,
.care-form,
.note-form,
.mini-form {
  display: grid;
  gap: 14px;
}

.admin-form label,
.care-form label,
.note-form label,
.mini-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

.admin-form input,
.admin-form select,
.care-form input,
.care-form select,
.care-form textarea,
.note-form input,
.note-form select,
.note-form textarea,
.mini-form input,
.mini-form select,
.mini-form textarea {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 0 12px;
}

.care-form textarea,
.note-form textarea,
.mini-form textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.consent-row {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.consent-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
}

.care-side {
  display: grid;
  gap: 14px;
}

.contact-card h3 {
  margin-bottom: 14px;
}

.contact-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
  border-radius: 8px;
}

.panel-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
  border-radius: 8px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li,
.availability-list article,
.request-log article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.contact-list span,
.availability-list span,
.request-log span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.contact-list a {
  color: var(--accent);
  font-weight: 900;
}

.availability-list,
.request-log {
  display: grid;
  gap: 10px;
}

.request-log p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.request-log strong {
  color: var(--text);
}

.request-log em {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(13, 106, 191, 0.12);
  color: var(--accent);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.tracker-steps {
  display: grid;
  gap: 8px;
}

.tracker-steps article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--muted);
}

.tracker-steps article.active {
  border-color: rgba(14, 122, 97, 0.4);
  background: rgba(14, 122, 97, 0.11);
  color: var(--text);
}

.tracker-steps span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent);
  font-weight: 900;
}

.branch-list a {
  color: var(--accent);
  font-weight: 900;
}

.testimony-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.form-note {
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .app-shell,
  .hero-band,
  .story-strip,
  .live-layout,
  .admin-layout,
  .care-layout,
  .care-hero,
  .community-layout,
  .community-hero,
  .ministry-layout,
  .ministry-hero,
  .jobs-layout,
  .jobs-hero,
  .social-layout,
  .testimony-panel,
  .library-dashboard,
  .media-grid,
  .admin-console-grid,
  .analytics-grid,
  .locator-suite,
  .wisdom-strip {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-list a {
    justify-content: center;
  }

  .media-collage {
    min-height: 360px;
  }

  .sidebar-note {
    margin-top: 0;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .companion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main,
  .sidebar {
    padding-inline: 16px;
  }

  .topbar,
  .section-heading,
  .care-teaser,
  .community-teaser,
  .ministry-teaser,
  .companion-head,
  .integrity-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-band {
    padding: 22px;
  }

  .media-collage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .collage-main,
  .collage-stack img {
    aspect-ratio: 16 / 10;
  }

  .collage-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .impact-section {
    padding: 16px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .companion-grid {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    position: static;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }
}
