:root {
  --green-dark: #2d5a3f;
  --green-darker: #062823;
  --green-lime: #a8e063;
  --green-lime-hover: #98d055;
  --green-mint: #e8f5e9;
  --chip-bg: #eef4ef;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --surface: #ffffff;
  --border: #e5ebe8;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-w: 480px;
  --tabbar-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.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;
}

.explore-body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  line-height: 1.45;
}

.explore-app {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
}

.explore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border);
}

.explore-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
}

.explore-header-cta {
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-darker);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.explore-main {
  padding: 16px 18px calc(var(--tabbar-h) + 24px);
}

.explore-kicker {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.explore-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--green-darker);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.explore-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.explore-search {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.explore-search-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}

.explore-search-input:focus {
  outline: 2px solid var(--green-lime);
  outline-offset: 1px;
}

.explore-search-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: var(--green-lime);
  color: var(--green-darker);
  cursor: pointer;
}

.explore-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-darker);
  margin-bottom: 12px;
}

.explore-section-title--list {
  margin-top: 22px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-darker);
  text-align: left;
  background: var(--chip-bg);
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  line-height: 1.25;
}

.category-chip.is-active {
  background: var(--green-lime);
  border-color: var(--green-darker);
}

.category-icon {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.explore-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-darker);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill--wide {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}

.filter-icon-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--green-darker);
  cursor: pointer;
}

.explore-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.explore-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(6, 40, 35, 0.06);
}

.explore-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--chip-bg);
}

.explore-card-body {
  padding: 14px 14px 12px;
}

.explore-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--green-darker);
  line-height: 1.3;
  margin-bottom: 6px;
}

.explore-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.explore-card-stats {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.explore-card-stats strong {
  color: var(--green-dark);
  font-weight: 800;
}

.explore-card-stats span {
  color: var(--text-muted);
}

.explore-card-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.explore-progress {
  flex: 1;
  height: 6px;
  background: #eceff1;
  border-radius: 999px;
  overflow: hidden;
}

.explore-progress-fill {
  height: 100%;
  background: var(--green-lime);
  border-radius: inherit;
}

.explore-pct {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green-darker);
  min-width: 36px;
  text-align: right;
}

.explore-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.explore-donate {
  padding: 10px 22px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green-darker);
  background: var(--green-lime);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.explore-story {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.explore-card-foot {
  padding: 0 14px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.03em;
}

.explore-empty {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 8px;
}

.btn-load-more {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-darker);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.btn-load-more:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.explore-tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--max-w);
  height: var(--tabbar-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 8px 10px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.explore-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-soft);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.explore-tab--active {
  color: var(--green-dark);
}

.explore-tab-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: var(--green-mint);
  border-radius: 999px;
}
