/* :root {
  color-scheme: light dark;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --color-background: #f5f6f8;
  --color-surface: #ffffff;
  --color-border: #d1d5db;
  --color-text: #1f2937;
  --color-muted: #4b5563;
  --color-primary: #1d4ed8;
  --color-primary-dark: #1e3a8a;
  --color-success: #047857;
  --color-warning: #b45309;
  --color-info: #0f766e;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: inherit;
  line-height: 1.6;
}

body > header,
body > main,
body > footer {
  padding-inline: 1.5rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: var(--color-primary-dark);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--color-surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: var(--shadow-soft);
}

.page-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.page-header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--color-muted);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  margin-top: 0.75rem;
}

.page-subheader {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.text-center {
  text-align: center;
}

.callout {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  background: rgba(59, 130, 246, 0.08);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
}

.callout-info {
  border-left-color: #0891b2;
  background: rgba(8, 145, 178, 0.1);
}

.callout-warning {
  border-left-color: var(--color-warning);
  background: rgba(180, 83, 9, 0.1);
}

.callout-success {
  border-left-color: var(--color-success);
  background: rgba(4, 120, 87, 0.1);
}

.callout-neutral {
  border-left-color: var(--color-border);
  background: rgba(226, 232, 240, 0.6);
}

.icon {
  margin-right: 0.5rem;
  font-size: 1.2em;
}

.details {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: rgba(226, 232, 240, 0.4);
  padding: 0.5rem 1rem 1rem;
}

.details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: -0.5rem -1rem 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.details[open] {
  background: rgba(226, 232, 240, 0.7);
}

.details[open] summary {
  border-bottom-color: transparent;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-header {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.card-header img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.placeholder-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
}

.card-footer {
  margin-top: auto;
}

.missionary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.missionary-card h3 {
  margin: 0;
}

.text-small {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.text-muted {
  color: var(--color-muted);
}

.announcement-item {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 1rem;
}

.announcement-highlight h4 {
  margin: 0;
}

nav.main-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

nav.main-nav .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-weight: 600;
}

main.content,
section.content,
div.content {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.table-form {
  display: contents;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

#program-list,
#announcement-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

label {
  font-weight: 600;
}

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

input,
select,
textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  background: #fff;
}

textarea {
  min-height: 120px;
}

button,
.button {
  align-self: flex-start;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover,
button:focus,
.button:hover,
.button:focus {
  background: var(--color-primary-dark);
  color: #fff;
}

.button-danger,
button.danger {
  background: #dc2626;
}

.button-danger:hover,
button.danger:hover,
.button-danger:focus,
button.danger:focus {
  background: #b91c1c;
}

.button-secondary {
  background: var(--color-muted);
}

.button-secondary:hover,
.button-secondary:focus {
  background: #374151;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: 0.75rem;
  overflow: hidden;
}

table th,
table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

table tr:last-child td {
  border-bottom: none;
}

table th {
  background: rgba(59, 130, 246, 0.1);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(4, 120, 87, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(4, 120, 87, 0.4);
}

.alert {
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #991b1b;
}

.breadcrumb {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.breadcrumb li + li:before {
  content: "/";
  margin-inline: 0.5rem;
  color: var(--color-border);
}

.breadcrumb a {
  color: inherit;
}

.admin-tools {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: rgba(226, 232, 240, 0.4);
  padding: 1rem 1.25rem;
}

.admin-tools summary {
  font-weight: 700;
  cursor: pointer;
}

.admin-tools-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.admin-tools-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer.page-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .page {
    padding: 1rem;
  }

  nav.main-nav .container {
    flex-direction: column;
    align-items: flex-start;
  }

  button,
  .button {
    width: 100%;
  }
} */
