:root {
  --ink: #102326;
  --muted: #5b6b70;
  --line: #dbe5e2;
  --paper: #ffffff;
  --soft: #f5f8f6;
  --soft-blue: #eef5fa;
  --soft-gold: #fff6df;
  --soft-coral: #fff0ec;
  --deep: #174a41;
  --blue: #245d8f;
  --gold: #c99728;
  --coral: #cb5a43;
  --shadow: 0 18px 50px rgba(22, 47, 47, .12);
  --shadow-strong: 0 24px 70px rgba(15, 38, 40, .18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(239, 247, 245, .9), rgba(246, 249, 248, 1) 340px),
    var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.admin-brand {
  align-items: center;
  display: flex;
  font-weight: 800;
  gap: 10px;
}

.brand img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav a,
.footer-links a,
.row-actions a,
.text-link,
.filter-row a {
  color: var(--deep);
  font-weight: 700;
}

.site-nav a {
  border-radius: 999px;
  padding: 9px 12px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.site-nav a:hover,
.filter-row a.active {
  background: #e8f1ee;
  transform: translateY(-1px);
}

.site-nav .nav-action {
  background: var(--coral);
  box-shadow: 0 12px 26px rgba(203, 90, 67, .24);
  color: white;
}

.hero {
  background-position: center;
  background-size: cover;
  color: white;
  min-height: 76vh;
  display: flex;
  align-items: center;
  padding: clamp(64px, 10vw, 128px) clamp(18px, 7vw, 86px);
  position: relative;
  overflow: hidden;
}

.animated-hero {
  justify-content: space-between;
  gap: 28px;
}

.animated-hero::after {
  animation: softSweep 12s ease-in-out infinite alternate;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(255, 255, 255, .16) 18% 19%, transparent 19% 55%, rgba(201, 151, 40, .18) 55% 56%, transparent 56%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.campaign-hero h1,
.article-detail h1 {
  font-size: 4.8rem;
  line-height: 1;
  margin: 0 0 18px;
}

.hero p,
.page-hero p {
  font-size: 1.12rem;
  max-width: 720px;
}

.hero-actions,
.form-actions,
.heading-actions,
.row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  transition: box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}

.button.primary {
  background: var(--coral);
  box-shadow: 0 16px 32px rgba(203, 90, 67, .24);
  color: white;
}

.button.ghost {
  background: rgba(255, 255, 255, .18);
  color: white;
}

.button:hover {
  transform: translateY(-2px);
}

.hero-live-panel {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  color: white;
  display: grid;
  gap: 12px;
  max-width: 390px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.hero-live-panel h2,
.hero-live-panel p {
  margin: 0;
}

.hero-live-panel .campaign-meta,
.text-link.light {
  color: rgba(255, 255, 255, .9);
}

.live-dot {
  align-items: center;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 850;
  gap: 8px;
  width: fit-content;
}

.live-dot::before {
  animation: pulseDot 1.7s ease-in-out infinite;
  background: #55d68b;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(85, 214, 139, .5);
  content: "";
  height: 9px;
  width: 9px;
}

.button.ghost-dark {
  background: #e9efec;
  color: var(--deep);
}

.button.small {
  min-height: 34px;
  padding: 7px 10px;
}

.button.full {
  width: 100%;
}

.impact-band {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  padding: 18px clamp(16px, 5vw, 64px);
  position: relative;
  z-index: 3;
}

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

.impact-grid div,
.metric,
.panel,
.export-item,
.media-item,
.payment-panel,
.public-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.impact-grid div {
  overflow: hidden;
  padding: 16px;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.impact-grid div::after {
  background: linear-gradient(90deg, var(--deep), var(--blue), var(--gold), var(--coral));
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 100%;
}

.impact-grid div:hover {
  border-color: rgba(23, 74, 65, .26);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.impact-grid strong,
.metric strong {
  display: block;
  font-size: 1.4rem;
}

.impact-grid span,
.metric span,
.campaign-meta,
.muted {
  color: var(--muted);
}

.section {
  padding: clamp(42px, 7vw, 82px) clamp(16px, 5vw, 64px);
}

.showcase-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(245, 248, 246, .95)),
    var(--soft);
}

.section-heading,
.admin-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading h2,
.admin-heading h1,
.panel h2 {
  margin: 0;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.campaign-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.campaign-card:hover {
  border-color: rgba(23, 74, 65, .28);
  box-shadow: var(--shadow-strong);
  transform: translateY(-6px);
}

.campaign-card-media {
  overflow: hidden;
  position: relative;
}

.campaign-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s ease;
  width: 100%;
}

.campaign-card:hover img {
  transform: scale(1.045);
}

.campaign-card-media::after {
  background: linear-gradient(180deg, transparent, rgba(9, 31, 32, .52));
  content: "";
  inset: 0;
  position: absolute;
}

.campaign-card-media span {
  background: rgba(255, 255, 255, .9);
  border-radius: 999px;
  bottom: 12px;
  color: var(--deep);
  font-weight: 900;
  padding: 6px 10px;
  position: absolute;
  right: 12px;
  z-index: 1;
}

.campaign-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.campaign-card h3,
.campaign-card p {
  margin: 0;
}

.pill {
  background: #eef5f3;
  border-radius: 999px;
  color: var(--deep);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  padding: 5px 9px;
  width: fit-content;
}

.progress {
  background: #e8eeec;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress span,
.payment-bars i,
.bar-row i {
  background: linear-gradient(90deg, var(--deep), var(--gold));
  display: block;
  height: 100%;
  position: relative;
}

.progress span::after,
.payment-bars i::after,
.bar-row i::after {
  animation: progressShine 2.4s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-100%);
}

.progress.large {
  height: 14px;
}

.campaign-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}

.campaign-meta span {
  display: grid;
  gap: 2px;
}

.campaign-meta small,
.detail-stats small,
.metric small,
.money-stack small {
  color: var(--muted);
  display: block;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.25;
}

.split-band,
.page-hero {
  background: var(--paper);
}

.split-band {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.1fr .9fr;
}

.story-band {
  background:
    linear-gradient(135deg, rgba(23, 74, 65, .08), rgba(36, 93, 143, .08)),
    var(--paper);
}

.story-copy h2 {
  font-size: 2.2rem;
  line-height: 1.08;
  margin: 0 0 12px;
}

.story-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.story-steps span {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(21, 52, 51, .08);
  font-weight: 850;
  padding: 12px;
}

.page-hero {
  padding: clamp(48px, 8vw, 90px) clamp(16px, 5vw, 64px);
}

.page-hero.compact {
  min-height: 240px;
}

.campaign-hero {
  background:
    linear-gradient(135deg, #f7fbfa, #eef5fa 52%, #fff7e8),
    var(--paper);
  display: grid;
  gap: clamp(20px, 5vw, 52px);
  grid-template-columns: minmax(280px, .95fr) 1.05fr;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 64px);
}

.campaign-hero-media {
  position: relative;
}

.campaign-hero img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.campaign-hero-badge {
  background: rgba(16, 35, 38, .84);
  border-radius: 999px;
  bottom: 14px;
  color: white;
  font-size: .82rem;
  font-weight: 850;
  padding: 7px 11px;
  position: absolute;
  right: 14px;
  text-transform: capitalize;
}

.campaign-hero-content {
  align-self: center;
}

.detail-stats,
.metrics-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.detail-stats div {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(23, 74, 65, .12);
  border-radius: var(--radius);
  padding: 14px;
}

.detail-stats strong,
.detail-stats span {
  display: block;
}

.two-columns,
.admin-grid.two,
.contact-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
}

.prose {
  max-width: 860px;
}

.prose h2 {
  margin: 26px 0 8px;
}

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

.key-values div {
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}

.key-values dt {
  color: var(--muted);
}

.key-values dd {
  font-weight: 800;
  margin: 0;
}

.payment-panel,
.public-form,
.panel,
.export-item,
.media-item {
  padding: 18px;
}

.payment-panel {
  align-self: start;
  box-shadow: var(--shadow);
  position: sticky;
  top: 92px;
}

.payment-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.payment-link:hover {
  border-color: rgba(36, 93, 143, .28);
  box-shadow: 0 12px 26px rgba(36, 93, 143, .12);
  transform: translateY(-2px);
}

.payment-link small {
  color: var(--muted);
}

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

.media-grid img {
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}

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

.article-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 12px;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.article-row:hover {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(23, 74, 65, .26);
  transform: translateX(4px);
}

.article-row span {
  color: var(--muted);
  font-size: .85rem;
}

.article-detail {
  background: var(--paper);
}

.article-detail > img {
  aspect-ratio: 21 / 8;
  object-fit: cover;
  width: 100%;
}

.article-detail .prose {
  padding: clamp(32px, 6vw, 72px) clamp(16px, 12vw, 160px);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.public-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  font-weight: 750;
  gap: 6px;
}

input,
textarea,
select {
  background: white;
  border: 1px solid #cdd9d5;
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.site-footer {
  align-items: start;
  background: #0d2324;
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(16px, 5vw, 64px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #cfe5df;
}

.flash-stack {
  display: grid;
  gap: 8px;
  margin: 16px auto;
  max-width: 980px;
  padding: 0 16px;
}

.flash {
  border-radius: var(--radius);
  padding: 12px 14px;
}

.flash.success {
  background: #e5f4ec;
  color: #105234;
}

.flash.warning {
  background: #fff4d7;
  color: #6a4a00;
}

.flash.danger {
  background: #fde5e0;
  color: #752619;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(23, 74, 65, .06), rgba(36, 93, 143, .06) 48%, rgba(201, 151, 40, .08)),
    #f3f7f5;
}

.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 34%),
    #102326;
  color: white;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar nav {
  display: grid;
  gap: 5px;
  margin-top: 24px;
}

.admin-sidebar nav a {
  border-radius: var(--radius);
  color: #d7e7e3;
  font-weight: 750;
  padding: 10px 12px;
  position: relative;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(255, 255, 255, .1);
  color: white;
  transform: translateX(3px);
}

.admin-sidebar nav a.active::before {
  background: var(--gold);
  border-radius: 999px;
  content: "";
  height: 22px;
  left: -6px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
}

.brand-mark {
  background: linear-gradient(135deg, var(--gold), var(--coral));
  border-radius: var(--radius);
  color: white;
  display: grid;
  flex: 0 0 36px;
  font-weight: 950;
  height: 36px;
  place-items: center;
  width: 36px;
}

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

.admin-topbar {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-user {
  align-items: center;
  display: flex;
  gap: 12px;
}

.admin-user span,
.admin-user small {
  display: block;
}

.admin-user small {
  color: var(--muted);
}

.admin-content {
  padding: 28px;
}

.admin-flashes {
  margin: 16px 28px 0;
  max-width: none;
  padding: 0;
}

.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

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

.metric {
  min-height: 104px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.metric::after {
  border-radius: 50%;
  content: "";
  height: 76px;
  opacity: .16;
  position: absolute;
  right: -28px;
  top: -22px;
  width: 76px;
}

.metric:hover {
  border-color: rgba(23, 74, 65, .22);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.tone-green::after {
  background: var(--deep);
}

.tone-blue::after {
  background: var(--blue);
}

.tone-gold::after {
  background: var(--gold);
}

.tone-coral::after {
  background: var(--coral);
}

.tone-purple::after {
  background: #7661a8;
}

.tone-slate::after {
  background: #54636f;
}

.metric strong {
  font-size: 1.28rem;
  line-height: 1.22;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.admin-grid,
.export-grid,
.media-admin-grid {
  display: grid;
  gap: 18px;
}

.panel {
  box-shadow: none;
  margin-bottom: 20px;
}

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

.doc-panel {
  margin-bottom: 0;
}

.doc-panel h2 {
  color: var(--deep);
  margin-bottom: 10px;
}

.doc-panel p {
  margin-top: 0;
}

.doc-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.doc-highlight {
  border-color: rgba(201, 151, 40, .38);
  box-shadow: 0 18px 48px rgba(201, 151, 40, .12);
}

.elevated-panel {
  box-shadow: 0 18px 48px rgba(21, 52, 51, .1);
}

.admin-hero-panel {
  background:
    linear-gradient(135deg, rgba(16, 35, 38, .96), rgba(23, 74, 65, .95) 52%, rgba(36, 93, 143, .88)),
    #102326;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  color: white;
  margin-bottom: 22px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.admin-hero-panel::after {
  animation: softSweep 10s ease-in-out infinite alternate;
  background: linear-gradient(120deg, transparent 0 26%, rgba(255, 255, 255, .13) 27% 28%, transparent 29% 58%, rgba(201, 151, 40, .18) 59% 60%, transparent 61%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.admin-hero-panel .admin-heading,
.admin-hero-strip {
  position: relative;
  z-index: 1;
}

.admin-hero-panel .admin-heading {
  margin-bottom: 20px;
}

.admin-hero-panel h1 {
  color: white;
  font-size: 2.2rem;
}

.admin-hero-kpi {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.admin-hero-kpi span,
.admin-hero-strip span {
  color: rgba(255, 255, 255, .78);
}

.admin-hero-kpi strong {
  display: block;
  font-size: 1.55rem;
}

.admin-hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-hero-strip span {
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
  font-weight: 800;
  padding: 8px 11px;
}

.compact-heading {
  margin-bottom: 14px;
}

.compact-panel {
  margin-bottom: 18px;
}

.table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

.data-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #eef5f3;
  color: #244b48;
  font-size: .86rem;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table tbody tr {
  transition: background-color .16s ease;
}

.data-table tbody tr:hover {
  background: #f7fbf9;
}

.data-table.compact {
  min-width: 0;
}

.row-actions {
  gap: 8px;
}

.money-stack {
  display: grid;
  gap: 2px;
  min-width: 130px;
}

.money-stack strong {
  color: var(--ink);
}

.row-actions a {
  background: #edf4f1;
  border-radius: var(--radius);
  display: inline-flex;
  padding: 6px 9px;
  transition: background-color .16s ease, transform .16s ease;
}

.row-actions a:hover {
  background: #deece7;
  transform: translateY(-1px);
}

.actions-col {
  width: 210px;
}

.search-form,
.upload-form {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-form input {
  max-width: 420px;
}

.admin-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(21, 52, 51, .08);
  padding: 20px;
}

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

.field-textarea,
.field-multiselect,
.field-donor_autocomplete {
  grid-column: 1 / -1;
}

.field input[type="checkbox"] {
  height: 22px;
  min-height: 22px;
  width: 22px;
}

.form-actions {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}

.autocomplete-results {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  max-width: 520px;
  overflow: hidden;
}

.autocomplete-results:empty {
  display: none;
}

.autocomplete-results button {
  background: white;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 10px;
  text-align: left;
}

.autocomplete-results span {
  color: var(--muted);
}

.bar-list,
.payment-bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 2fr) auto;
}

.bar-row div,
.payment-bars div {
  background: #edf2f0;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.payment-bars div {
  display: grid;
  gap: 6px;
  height: auto;
  padding: 10px;
}

.payment-bars i {
  border-radius: 999px;
  height: 9px;
}

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

.media-admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-item {
  display: grid;
  gap: 8px;
}

.media-item img,
.file-tile {
  aspect-ratio: 1;
  background: #e8efed;
  border-radius: var(--radius);
  display: grid;
  object-fit: cover;
  place-items: center;
  width: 100%;
}

.media-item code {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.login-page {
  align-items: center;
  background: #102326;
  display: grid;
  min-height: 100vh;
  padding: 20px;
}

.login-panel {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: auto;
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.login-panel h1 {
  margin-bottom: 4px;
}

.login-panel form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .68s ease, transform .68s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .delay-1 {
  transition-delay: .12s;
}

.stagger-grid .reveal:nth-child(2) {
  transition-delay: .08s;
}

.stagger-grid .reveal:nth-child(3) {
  transition-delay: .16s;
}

.stagger-grid .reveal:nth-child(4) {
  transition-delay: .04s;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(85, 214, 139, .52);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(85, 214, 139, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(85, 214, 139, 0);
  }
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }

  55%, 100% {
    transform: translateX(120%);
  }
}

@keyframes softSweep {
  from {
    transform: translateX(-3%);
  }

  to {
    transform: translateX(3%);
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .card-grid,
  .impact-grid,
  .metrics-grid,
  .export-grid,
  .media-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
  }

  .animated-hero {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .hero-live-panel {
    max-width: 560px;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .admin-topbar,
  .admin-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    min-height: 68vh;
  }

  .hero h1,
  .page-hero h1,
  .campaign-hero h1,
  .article-detail h1 {
    font-size: 2.65rem;
  }

  .campaign-hero,
  .split-band,
  .two-columns,
  .admin-grid.two,
  .contact-layout,
  .doc-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .impact-grid,
  .metrics-grid,
  .metrics-grid.small,
  .export-grid,
  .media-admin-grid,
  .media-grid,
  .key-values {
    grid-template-columns: 1fr;
  }

  .admin-content {
    padding: 18px;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .payment-panel {
    position: static;
  }

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

  .admin-hero-panel h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 460px) {
  .hero h1,
  .page-hero h1,
  .campaign-hero h1,
  .article-detail h1 {
    font-size: 2.25rem;
  }

  .story-steps {
    grid-template-columns: 1fr;
  }
}
