/* Custom Styles for Charity NonprofitX */

/* Color Palette */
:root {
  --evergreen-depths: #0B3D2E;
  --forest-emerald: #145A32;
  --moss-veil: #7D9778;
  --sage-whisper: #D5E8D4;
  --night-ivy: #1C2E24;
  --stone-mist: #C9D1CA;
}

body {
  color: var(--night-ivy);
  background-color: var(--sage-whisper);
}

section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.navbar {
  background-color: var(--night-ivy) !important;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .btn {
  color: #fff !important;
}

.navbar .nav-link {
  color: var(--evergreen-depths) !important;
}

.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:hover {
  color: var(--evergreen-depths) !important;
}

.bg-primary,
.btn-primary {
  background-color: var(--evergreen-depths) !important;
  border-color: var(--evergreen-depths) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--forest-emerald) !important;
  border-color: var(--forest-emerald) !important;
}

.btn-outline-primary {
  color: var(--forest-emerald) !important;
  border-color: var(--forest-emerald) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background-color: var(--forest-emerald) !important;
  color: #fff !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--evergreen-depths);
}

.card {
  background-color: #fff;
  border: 1px solid var(--stone-mist);
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(20, 90, 50, 0.10) !important;
  transform: translateY(-4px) scale(1.02);
}

.rounded-circle {
  border: 4px solid #fff;
  box-shadow: 0 0.25rem 0.5rem rgba(11, 61, 46, 0.08);
}

footer {
  background-color: var(--night-ivy) !important;
  color: #fff;
  font-size: 0.95rem;
}

footer a {
  color: var(--sage-whisper) !important;
}

footer a:hover {
  color: var(--evergreen-depths) !important;
}

.bg-light {
  background-color: var(--sage-whisper) !important;
}

.bg-white {
  background-color: #fff !important;
}

.supporting-block {
  background-color: var(--moss-veil);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

hr, .border, .card, .form-control {
  border-color: var(--stone-mist) !important;
}

.text-primary {
  color: var(--evergreen-depths) !important;
}

.text-dark {
  color: var(--night-ivy) !important;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
[data-animate].animated {
  opacity: 1;
  transform: none;
  transition: opacity 1.2s ease, transform 1.2s ease;
}
[data-animate="fade-in"] {
  transform: translateY(40px);
}
[data-animate="slide-up"] {
  transform: translateY(80px);
}

.testimonial-card {
  transition: box-shadow 0.6s ease, transform 0.6s ease;
  will-change: transform, box-shadow;
}
.testimonial-card:hover {
  box-shadow: 0 1.5rem 2.5rem rgba(164, 63, 128, 0.18) !important;
  transform: scale(1.04) translateY(-8px);
}

/* Cool animated gradient effect for nonprofit name */
.navbar-brand.cool-effect {
  background: linear-gradient(90deg, var(--evergreen-depths), var(--forest-emerald), var(--moss-veil), var(--evergreen-depths));
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-move 3.5s ease-in-out infinite;
  font-weight: bold;
  text-transform: uppercase;
}
@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Page Loader Styles */
#page-loader {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--night-ivy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.loader-bg {
  background: linear-gradient(135deg, #fff 60%, #f7f7e8 100%);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--evergreen-depths);
  box-shadow: 0 8px 32px 0 rgba(20,90,50,0.18), 0 2px 8px 0 #e6e6e6;
  animation: loader-pulse 1.8s ease-in-out infinite alternate;
  position: relative;
}
.loader-icon {
  color: var(--evergreen-depths);
  font-size: 3.5rem;
  animation: heart-bounce 1.2s infinite, heart-glow 1.6s ease-in-out infinite alternate, heart-rotate 2.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px var(--forest-emerald));
  z-index: 2;
}
@keyframes loader-pulse {
  0% { box-shadow: 0 8px 32px 0 rgba(20,90,50,0.18), 0 2px 8px 0 #e6e6e6; transform: scale(1); }
  100% { box-shadow: 0 0 48px 8px rgba(20,90,50,0.28), 0 2px 8px 0 #e6e6e6; transform: scale(1.08); }
}
@keyframes heart-bounce {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-10px) scale(1.1); }
  40% { transform: translateY(0); }
  60% { transform: translateY(-6px) scale(1.05); }
  80% { transform: translateY(0); }
}
@keyframes heart-glow {
  0% { filter: drop-shadow(0 0 8px var(--forest-emerald)); }
  100% { filter: drop-shadow(0 0 24px #00ff88); }
}
@keyframes heart-rotate {
  0% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
  100% { transform: rotate(-8deg); }
}

/* Center all paragraphs */
p {
  text-align: center;
}

.hero-title-animated {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  position: relative;
  display: inline-block;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  z-index: 2;
}
.hero-title-animated::after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 80%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--evergreen-depths), var(--forest-emerald), var(--moss-veil), var(--evergreen-depths));
  background-size: 200% auto;
  animation: hero-underline-move 2.5s linear infinite;
}
@keyframes hero-underline-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

footer p, footer .mb-1, footer .footer-address, footer .contact-info, footer ul, footer small {
  text-align: center !important;
}
footer h5, footer h6 {
  color: #00ff88 !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em;
  text-align: center;
}

@media (min-width: 992px) {
  .about-centered-desktop {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    width: 100%;
  }
  .navbar-nav .nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  .navbar-nav .nav-link {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    gap: 0.5em;
  }
  .navbar-closer {
    display: block;
  }
  .navbar-collapse.collapsing-out {
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 0;
    transform: translateY(-30px);
  }
}

.navbar-brand {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: none !important;
  background-clip: border-box !important;
}

.navbar-closer {
  display: none;
  color: #000;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.navbar-closer:hover {
  opacity: 1;
  color: #d32f2f;
}
.navbar-collapse.collapsing-out {
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 0;
  transform: translateY(-30px);
}

@media (max-width: 991.98px) {
  .navbar-closer {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand.cool-effect {
    font-size: 1.1rem !important;
  }
}

@media (min-width: 768px) {
  .bg-primary.text-white.text-center.py-5 {
    padding-top: 0.5rem !important;
    padding-bottom: 1.5rem !important;
  }
} 

/* Staff sign-in page */
.staff-page {
  min-height: 100vh;
  background: var(--sage-whisper);
  color: var(--night-ivy);
  font-family: 'Montserrat', sans-serif;
}
.staff-page #panel > .d-flex { justify-content: center !important; position: relative; text-align: center; }
.staff-page #panel > .d-flex > .btn { position: absolute; right: 0; top: 0; }
.staff-back { color: var(--forest-emerald); font-weight: 600; text-decoration: none; }
.staff-back:hover { color: var(--evergreen-depths); }
.vintage-login {
  max-width: 460px;
  margin: 2rem auto;
  padding: 2.6rem;
  background: #fff;
  border: 1px solid var(--stone-mist);
  box-shadow: 10px 10px 0 rgba(20, 90, 50, .14), 0 12px 30px rgba(11, 61, 46, .18);
}
.vintage-header { border-bottom: 2px solid var(--moss-veil); margin-bottom: 2rem; padding-bottom: 1.25rem; text-align: center; }
.vintage-header h1 { color: var(--evergreen-depths); font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.8rem; font-weight: 700; }
.vintage-header p { color: var(--forest-emerald); font-family: 'Libre Baskerville', Georgia, serif; font-size: .88rem; margin: .5rem 0 0; }
.vintage-header .vintage-kicker { color: var(--moss-veil); font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.vintage-login .input-group { display: block; margin-bottom: 1.2rem; }
.vintage-login label { color: var(--evergreen-depths); display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: .45rem; text-transform: uppercase; }
.vintage-login input { background: #fff; border: 1px solid var(--stone-mist); border-radius: 0; box-sizing: border-box; color: var(--night-ivy); padding: .7rem .8rem; width: 100%; }
.vintage-login input:focus { border-color: var(--forest-emerald); box-shadow: 0 0 0 .18rem rgba(20, 90, 50, .14); outline: 0; }
.password-field { position: relative; width: 100%; }
.password-field input { padding-right: 3.2rem; }
.password-field button { background: transparent; border: 0; color: var(--forest-emerald); cursor: pointer; font-size: 1.15rem; line-height: 1; padding: .5rem; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); }
.password-field button:focus-visible { outline: 2px solid var(--forest-emerald); outline-offset: 2px; }
.vintage-login .form-actions { min-height: 1.5rem; font-size: .88rem; }
.password-hint { color: var(--forest-emerald); display: block; font-size: .75rem; line-height: 1.35; margin-top: .45rem; }
.password-guide { color: var(--night-ivy); font-size: .75rem; list-style: none; margin: .55rem 0 0; padding: 0; }
.password-guide li { margin: .25rem 0; }
.password-guide li::before { color: var(--moss-veil); content: '○'; display: inline-block; font-weight: 700; margin-right: .45rem; }
.password-guide li.met { color: var(--forest-emerald); }
.password-guide li.met::before { color: var(--forest-emerald); content: '✓'; }
.btn-vintage { background: var(--evergreen-depths); border: 1px solid var(--evergreen-depths); color: #fff; font-family: 'Libre Baskerville', Georgia, serif; letter-spacing: .06em; padding: .75rem 1.25rem; transition: background .2s ease; width: 100%; }
.btn-vintage:hover { background: var(--forest-emerald); }
.login-footer { border-top: 1px solid var(--stone-mist); color: var(--forest-emerald); font-size: .8rem; margin-top: 2rem; padding-top: 1rem; text-align: center; }
.oauth-buttons { margin-top: 1.25rem; }
.oauth-divider { border-top: 1px solid var(--stone-mist); height: 1px; margin: 1.5rem 0; text-align: center; }
.oauth-divider span { background: #fff; color: var(--moss-veil); font-size: .75rem; padding: 0 .75rem; position: relative; top: -.7rem; text-transform: uppercase; }
.btn-oauth { border: 1px solid var(--stone-mist); color: var(--evergreen-depths); display: block; font-weight: 600; margin-top: .65rem; padding: .7rem; text-align: center; text-decoration: none; }
.btn-oauth:hover { background: var(--sage-whisper); color: var(--evergreen-depths); }

/* Volunteer flip cards, adapted to the site's original green palette. */
.team-section { background: #fff; }
.section-title { color: var(--evergreen-depths); font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .04em; margin-bottom: 3rem; position: relative; text-align: center; }
.section-title::after { background: var(--moss-veil); content: ''; display: block; height: 3px; margin: .8rem auto 0; width: 90px; }
.team-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.team-card { height: 380px; perspective: 1000px; }
.team-card .card-inner { border: 4px solid #fff; border-radius: 4px; box-shadow: 0 8px 16px rgba(11, 61, 46, .16); height: 100%; position: relative; text-align: center; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.175, .885, .32, 1.275); width: 100%; }
.team-card:hover .card-inner, .team-card:focus-within .card-inner { transform: rotateY(180deg); }
.team-card .card-front, .team-card .card-back { backface-visibility: hidden; background: #fff; height: 100%; position: absolute; width: 100%; }
.team-card .card-front { display: flex; flex-direction: column; }
.team-card .card-front img { border-bottom: 2px solid var(--moss-veil); filter: saturate(.9) contrast(1.03); height: 275px; object-fit: cover; width: 100%; }
.team-card .card-front-content { flex-grow: 1; padding: .9rem; }
.team-card h3 { color: var(--evergreen-depths); font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.35rem; margin: 0; }
.team-card .role { color: var(--forest-emerald); font-size: .9rem; font-style: italic; margin-top: .35rem; }
.team-card .card-back { align-items: center; background: linear-gradient(135deg, #fff 0%, var(--sage-whisper) 100%); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding: 1.6rem; transform: rotateY(180deg); }
.team-card .card-back h3 { border-bottom: 1px solid var(--moss-veil); margin-bottom: 1rem; padding-bottom: .7rem; width: 100%; }
.team-card .bio { color: var(--night-ivy); font-size: .95rem; line-height: 1.6; }
.social-links { display: flex; gap: .7rem; }
.social-link { align-items: center; background: var(--evergreen-depths); border-radius: 50%; color: #fff; display: inline-flex; height: 35px; justify-content: center; text-decoration: none; transition: background .2s ease; width: 35px; }
.social-link:hover { background: var(--forest-emerald); color: #fff; }

.news-preview { border: 1px solid var(--stone-mist); border-radius: .25rem; display: block; margin-top: 1rem; max-height: 420px; max-width: 100%; object-fit: contain; }
.pdf-preview { border: 1px solid var(--stone-mist); height: 360px; margin-top: 1rem; }
.pdf-preview object { height: 100%; width: 100%; }

.home-latest-news[hidden],
.home-latest-news #home-latest-news-badge[hidden] {
  display: none !important;
}

.home-news-card {
  border-top: 4px solid var(--forest-emerald);
  max-width: 850px;
}

#home-latest-news-content {
  line-height: 1.75;
  white-space: pre-line;
}

/* Fluid layouts for small phones, large phones, and narrow browser windows. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  overflow-x: clip;
}

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

img {
  height: auto;
}

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

input,
select,
textarea {
  min-width: 0;
}

.container,
.container-fluid {
  min-width: 0;
}

.card,
.card-body,
.team-card,
.team-card .card-back,
footer,
main {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.staff-page #panel > .d-flex {
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between !important;
  text-align: left;
}

.staff-page #panel > .d-flex > div {
  flex: 1 1 170px;
  min-width: 0;
}

.staff-page #panel > .d-flex > #staffMenu {
  margin-left: auto;
  position: static;
}

.staff-page #staffMenuPanel {
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
  margin-left: 0 !important;
}

.staff-page #staffMenuPanel .btn {
  margin: 0;
}

.staff-page #panel .table-responsive {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
  section {
    padding-top: clamp(1.5rem, 6vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 6vw, 2.5rem);
  }

  .container,
  .container-fluid {
    --bs-gutter-x: 1.1rem;
  }

  h1,
  .h1 {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
  }

  h2,
  .h2 {
    font-size: clamp(1.35rem, 5.8vw, 1.9rem);
  }

  .hero-title-animated {
    font-size: clamp(1.45rem, 7vw, 2.2rem);
    letter-spacing: .04em;
  }

  .navbar-brand {
    max-width: calc(100vw - 6.5rem);
    overflow-wrap: anywhere;
  }

  .navbar-collapse {
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
  }

  .vintage-login {
    margin: 1rem auto;
    padding: clamp(1.1rem, 5vw, 1.75rem);
    width: 100%;
  }

  .staff-page main.container {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .staff-page #panel > .d-flex > #staffMenu {
    margin-left: auto;
  }

  .staff-page #staffMenuPanel {
    flex: 1 1 100%;
  }

  .staff-page #newsFile {
    display: block;
    width: 100%;
  }

  .team-grid {
    gap: 1rem;
  }

  .team-card {
    height: clamp(320px, 105vw, 380px);
  }

  .card:hover {
    transform: none;
  }
}

@media (max-width: 359.98px) {
  .staff-page #panel > .d-flex > #staffMenu {
    flex-basis: 100%;
    margin-left: 0;
    width: 100%;
  }

  .staff-page #staffMenuPanel {
    justify-content: stretch;
  }

  .staff-page #staffMenuPanel .btn {
    flex: 1 1 100%;
  }

  .navbar-brand {
    font-size: .95rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Staff workspace dashboard */
.admin-workspace {
  background: #f2f6f2;
}

.admin-shell {
  max-width: 1180px;
}

.admin-panel[hidden],
.admin-tab-panel[hidden],
.admin-account-menu[hidden],
.admin-settings[hidden] {
  display: none !important;
}

.admin-workspace #panel,
.admin-workspace #panel > .admin-tab-panel {
  padding: 0;
}

.admin-topbar,
.admin-heading,
.admin-card-heading,
.admin-volunteer-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.admin-topbar {
  border-bottom: 1px solid #dbe5dc;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
  padding-bottom: 1rem;
}

.admin-account {
  position: relative;
}

.admin-account-button,
.admin-refresh {
  align-items: center;
  background: #fff;
  border: 1px solid #d6e1d8;
  border-radius: .7rem;
  color: var(--evergreen-depths);
  display: inline-flex;
  font-weight: 600;
  gap: .6rem;
  min-height: 42px;
  padding: .55rem .85rem;
}

.admin-account-button:hover,
.admin-refresh:hover {
  background: #eaf2eb;
  border-color: #b8cdbb;
}

.admin-account-menu {
  background: #fff;
  border: 1px solid #dbe5dc;
  border-radius: .75rem;
  box-shadow: 0 14px 36px rgba(15, 48, 31, .14);
  min-width: 190px;
  padding: .4rem;
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  z-index: 20;
}

.admin-account-menu button {
  background: transparent;
  border: 0;
  border-radius: .5rem;
  color: var(--night-ivy);
  display: block;
  padding: .7rem .75rem;
  text-align: left;
  width: 100%;
}

.admin-account-menu button:hover {
  background: #f2f6f2;
}

.admin-heading {
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.admin-heading h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  margin: 0;
}

.admin-eyebrow {
  color: #66826b;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 .45rem;
  text-align: left;
}

.admin-subtitle {
  color: #637368;
  margin: .55rem 0 0;
  text-align: left;
}

.admin-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.75rem;
}

.admin-stat-card,
.admin-content-card {
  background: #fff;
  border: 1px solid #e0e9e1;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(24, 56, 37, .045);
}

.admin-stat-card {
  min-width: 0;
  padding: 1.25rem;
  position: relative;
}

.admin-stat-card p {
  color: #617168;
  font-size: .9rem;
  margin: 0 2rem .6rem 0;
  text-align: left;
}

.admin-stat-card strong {
  color: var(--evergreen-depths);
  display: block;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.admin-stat-card small,
.admin-caption {
  color: #7a8980;
  display: block;
  font-size: .76rem;
  margin-top: .45rem;
}

.admin-stat-icon {
  align-items: center;
  background: #edf5ee;
  border-radius: .7rem;
  color: var(--forest-emerald);
  display: flex;
  font-size: 1.25rem;
  height: 2.2rem;
  justify-content: center;
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  width: 2.2rem;
}

.admin-tabs {
  border-bottom: 1px solid #dbe5dc;
  display: flex;
  gap: .4rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.admin-tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #66766b;
  flex: 0 0 auto;
  font-weight: 600;
  margin-bottom: -1px;
  padding: .8rem 1rem;
}

.admin-tab:hover,
.admin-tab.active {
  color: var(--evergreen-depths);
}

.admin-tab.active {
  border-bottom-color: var(--forest-emerald);
}

.admin-tab-count {
  background: #eaf2eb;
  border-radius: 1rem;
  color: var(--forest-emerald);
  font-size: .75rem;
  margin-left: .25rem;
  padding: .15rem .45rem;
}

.admin-content-card {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.admin-card-heading {
  margin-bottom: 1.25rem;
}

.admin-card-heading h2 {
  font-size: 1.25rem;
  margin: 0;
}

.admin-card-heading .admin-eyebrow {
  margin-bottom: .3rem;
}

.admin-pages-heading {
  border-top: 1px solid #e6ede7;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.admin-chart {
  align-items: stretch;
  border-bottom: 1px solid #dfe8e0;
  display: flex;
  gap: clamp(.35rem, 2vw, 1.25rem);
  height: 190px;
  justify-content: space-around;
  padding: 1rem .25rem 0;
}

.admin-chart-column {
  align-items: center;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.admin-chart-value {
  color: #637368;
  font-size: .72rem;
  margin-bottom: .3rem;
}

.admin-chart-bar-wrap {
  align-items: flex-end;
  background: #f0f5f0;
  border-radius: .45rem .45rem 0 0;
  display: flex;
  height: 125px;
  justify-content: center;
  max-width: 58px;
  width: 100%;
}

.admin-chart-bar {
  background: linear-gradient(180deg, #4e9364, #145a32);
  border-radius: .4rem .4rem 0 0;
  min-height: 4px;
  transition: height .35s ease;
  width: 100%;
}

.admin-chart-label {
  color: #68796e;
  font-size: .7rem;
  margin: .5rem 0 0;
}

.admin-page-list {
  display: grid;
  gap: .9rem;
}

.admin-page-row {
  align-items: center;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-page-path {
  color: #35493b;
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.admin-page-value {
  color: var(--forest-emerald);
  font-size: .85rem;
  font-weight: 700;
}

.admin-news-layout {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(270px, .85fr) minmax(0, 1.15fr);
}

.admin-publish-button {
  min-height: 44px;
  width: 100%;
}

.admin-data-region {
  min-width: 0;
}

.admin-loading,
.admin-empty {
  color: #75837a;
  margin: 0;
  padding: 1rem 0;
  text-align: center;
}

.admin-alert,
.form-message {
  border-radius: .65rem;
  font-size: .9rem;
  margin: .75rem 0;
  padding: .75rem 1rem;
}

.admin-alert[data-kind="error"],
.form-message[data-kind="error"] {
  background: #fff0ee;
  color: #a33128;
}

.admin-alert[data-kind="success"],
.form-message[data-kind="success"] {
  background: #eaf5ec;
  color: #195a31;
}

.admin-alert[hidden] {
  display: none !important;
}

.admin-volunteer-heading {
  flex-wrap: wrap;
}

.admin-search {
  margin: 0 0 1rem;
  max-width: 480px;
}

.admin-volunteer-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-volunteer-table {
  min-width: 720px;
  vertical-align: middle;
}

.admin-news-item {
  border-top: 1px solid #e4ebe5;
  padding: 1rem 0;
}

.admin-news-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-news-item h3 {
  font-size: 1rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-news-item time {
  color: #7b8980;
  display: block;
  font-size: .76rem;
  margin: .4rem 0;
}

.admin-news-item p {
  color: #526259;
  line-height: 1.6;
  text-align: left;
  white-space: pre-line;
}

.admin-settings {
  background: #fff;
  border: 1px solid #e7d5ac;
  border-radius: .8rem;
  display: block;
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
}

.admin-workspace #accountSettingsPanel {
  padding: 1rem 1.2rem;
}

.admin-settings h2 {
  font-size: 1rem;
  margin: 0 0 .3rem;
}

.admin-settings-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.admin-change-password {
  border-top: 1px solid #e6ede7;
  margin-top: 1rem;
  padding-top: 1rem;
}

.admin-change-password h3 {
  font-size: .95rem;
  margin-bottom: .85rem;
}

.admin-password-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-password-grid label {
  color: #53645a;
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.admin-danger-zone {
  align-items: center;
  border-top: 1px solid #f0dfdc;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.admin-danger-zone p {
  color: #7b625f;
  font-size: .82rem;
  margin: 0;
  text-align: left;
}

.admin-settings p {
  color: #67766c;
  font-size: .85rem;
  margin: 0;
  text-align: left;
}

.login-recovery {
  margin-top: 1rem;
  text-align: center;
}

.text-link-button {
  background: transparent;
  border: 0;
  color: var(--forest-emerald);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  padding: .5rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.text-link-button:hover {
  color: var(--evergreen-depths);
}

#recoveryForm {
  border-top: 1px solid var(--stone-mist);
  margin-top: 1rem;
  padding-top: 1.25rem;
  text-align: left;
}

#recoveryForm h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.2rem;
}

#recoveryForm > p:not(.form-message) {
  color: #637368;
  font-size: .85rem;
  text-align: left;
}

#recoveryForm label {
  color: var(--evergreen-depths);
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

#recoveryForm input {
  border: 1px solid var(--stone-mist);
  box-sizing: border-box;
  padding: .7rem .8rem;
  width: 100%;
}

#recoveryForm .text-link-button {
  display: block;
  margin: .5rem auto 0;
}

@media (max-width: 767.98px) {
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-stat-card {
    padding: 1rem 1.15rem;
  }

  .admin-stat-card strong {
    font-size: 1.8rem;
  }

  .admin-news-layout {
    grid-template-columns: 1fr;
  }

  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-refresh {
    width: 100%;
    justify-content: center;
  }

  .admin-password-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479.98px) {
  .admin-topbar {
    align-items: flex-start;
  }

  .admin-tabs {
    margin-left: -.5rem;
    margin-right: -.5rem;
  }

  .admin-tab {
    padding-left: .7rem;
    padding-right: .7rem;
  }

  .admin-danger-zone { align-items: flex-start; flex-direction: column; }
}
