/* ── Breadcrumb ────────────────────────────────────────────── */
.wg-breadcrumb {
  background: var(--c-parch-dark);
  border-bottom: 1px solid var(--c-parch-deep);
  padding: 7px 0;
  font-size: .78rem;
}

.wg-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wg-breadcrumb__item a {
  color: var(--c-green);
  text-decoration: none;
  font-weight: 500;
}

.wg-breadcrumb__item a:hover {
  text-decoration: underline;
}

.wg-breadcrumb__item--current span {
  color: var(--c-ink-mid);
}

.wg-breadcrumb__sep {
  color: var(--c-ink-soft);
  padding: 0 4px;
  font-size: .75rem;
  list-style: none;
}

/* ================================================================
   WHATSGL.CSS  —  Zero-dependency custom stylesheet
   Design: Editorial dark-forest + warm parchment
   Fonts: Clash Display (headings) + Cabinet Grotesk (body)
   Version: 1.0
   ================================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=cabinet-grotesk@400,500,700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Colors */
  --c-forest:      #0b2818;
  --c-forest-mid:  #0f3d22;
  --c-forest-soft: #1a5c35;
  --c-green:       #16a34a;
  --c-lime:        #4ade80;
  --c-parch:       #f7f3ec;
  --c-parch-dark:  #ede8df;
  --c-parch-deep:  #ddd6c8;
  --c-ink:         #141414;
  --c-ink-mid:     #3a3a3a;
  --c-ink-soft:    #7a7a7a;
  --c-white:       #ffffff;

  /* Shadows */
  --s-sm:   0 1px 4px rgba(11,40,24,.08);
  --s-md:   0 4px 20px rgba(11,40,24,.11);
  --s-lg:   0 12px 40px rgba(11,40,24,.18);
  --s-glow: 0 0 0 3px rgba(74,222,128,.25);

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Transitions */
  --t-fast: .15s ease;
  --t-mid:  .25s cubic-bezier(.4,0,.2,1);
  --t-slow: .4s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Cabinet Grotesk', 'Segoe UI', sans-serif;
  background: var(--c-parch);
  color: var(--c-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Clash Display', 'Georgia', serif;
  line-height: 1.2;
  color: var(--c-ink);
}
a { color: var(--c-green); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-lime); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── Content area lists (paragraphs/descriptions) ─────────── */
.wg-content-box ul,
.wg-detail__desc ul,
.wg-cat-desc ul {
  list-style: disc;
  padding-left: 22px;
  margin: 10px 0;
}

.wg-content-box ol,
.wg-detail__desc ol,
.wg-cat-desc ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 10px 0;
}

.wg-content-box ul li,
.wg-content-box ol li,
.wg-detail__desc ul li,
.wg-detail__desc ol li {
  margin-bottom: 5px;
  color: var(--c-ink-mid);
  font-size: .92rem;
  line-height: 1.7;
}

.wg-content-box p { margin-bottom: 10px; }
.wg-content-box p:last-child { margin-bottom: 0; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout ────────────────────────────────────────────────── */
.wg-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px)  { .wg-container { padding: 0 14px; } }
@media (max-width: 480px)  { .wg-container { padding: 0 10px; } }

.wg-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 24px 0 48px;
}

/* Full width — no sidebar pages */
.wg-grid--full {
  display: block;
  padding: 24px 0 48px;
}

/* Tablet */
@media (max-width: 1024px) {
  .wg-grid { grid-template-columns: 1fr 260px; gap: 18px; }
}

/* Mobile */
@media (max-width: 768px) {
  .wg-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ── NAVBAR ────────────────────────────────────────────────── */
.wg-nav {
  background: var(--c-forest);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(74,222,128,.12);
}

.wg-nav__inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 16px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .wg-nav__inner { height: 54px; }
  .wg-nav__logo  { font-size: 1.1rem; }
}

.wg-nav__logo {
  font-family: 'Clash Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-white) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  letter-spacing: -.02em;
}

.wg-nav__logo-dot {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--c-green), var(--c-lime));
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(74,222,128,.5);
}

.wg-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.wg-nav__link {
  color: rgba(255,255,255,.72) !important;
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  transition: all var(--t-mid);
  letter-spacing: .01em;
}

.wg-nav__link:hover {
  color: var(--c-white) !important;
  background: rgba(255,255,255,.1);
}

.wg-nav__spacer { flex: 1; }

.wg-nav__search-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--c-white);
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-mid);
  flex-shrink: 0;
}

.wg-nav__search-btn:hover {
  background: rgba(74,222,128,.2);
  border-color: var(--c-lime);
  color: var(--c-lime);
}

.wg-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.wg-nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: all var(--t-mid);
}

@media (max-width: 680px) {
  .wg-nav__links { display: none; }
  .wg-nav__hamburger { display: flex; }
}

/* Mobile menu */
.wg-nav__mobile {
  display: none;
  background: var(--c-forest-mid);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px 20px;
}

.wg-nav__mobile.is-open { display: block; }

.wg-nav__mobile a {
  display: block;
  color: rgba(255,255,255,.8) !important;
  padding: 10px 0;
  font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.wg-nav__mobile a:hover { color: var(--c-lime) !important; }

/* ── Search Dropdown ───────────────────────────────────────── */
.wg-searchbar {
  background: var(--c-forest-mid);
  border-top: 1px solid rgba(255,255,255,.07);
  display: none;
  padding: 14px 0;
}

.wg-searchbar.is-open { display: block; }

.wg-searchbar__form {
  display: flex;
  gap: 10px;
}

.wg-searchbar__input {
  flex: 1;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--c-white);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: .95rem;
  transition: all var(--t-mid);
  outline: none;
}

.wg-searchbar__input::placeholder { color: rgba(255,255,255,.45); }
.wg-searchbar__input:focus {
  border-color: var(--c-lime);
  box-shadow: var(--s-glow);
  background: rgba(255,255,255,.15);
}

.wg-searchbar__btn {
  background: var(--c-green);
  color: var(--c-white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--t-mid);
}

.wg-searchbar__btn:hover { background: var(--c-lime); color: var(--c-ink); }

/* ── Filter / Advanced Search ──────────────────────────────── */
.wg-filter {
  background: var(--c-white);
  border: 1px solid var(--c-parch-deep);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--s-sm);
}

.wg-filter__label {
  font-family: 'Clash Display', serif;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-ink-soft);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wg-filter__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 860px)  { .wg-filter__row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .wg-filter__row { grid-template-columns: 1fr; } }

.wg-select, .wg-input {
  width: 100%;
  background: var(--c-parch);
  border: 1.5px solid var(--c-parch-deep);
  color: var(--c-ink);
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
  appearance: none;
  -webkit-appearance: none;
}

.wg-select:focus, .wg-input:focus {
  border-color: var(--c-green);
  box-shadow: var(--s-glow);
  background: var(--c-white);
}

/* ── Buttons ───────────────────────────────────────────────── */
.wg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  transition: all var(--t-mid);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.wg-btn--primary {
  background: var(--c-forest);
  color: var(--c-white);
}
.wg-btn--primary:hover {
  background: var(--c-forest-soft);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: var(--s-md);
}

.wg-btn--green {
  background: linear-gradient(135deg, var(--c-green), var(--c-forest-soft));
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(22,163,74,.3);
}
.wg-btn--green:hover {
  background: linear-gradient(135deg, var(--c-lime), var(--c-green));
  color: var(--c-ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22,163,74,.4);
}

.wg-btn--ghost {
  background: var(--c-parch);
  color: var(--c-ink-mid);
  border: 1.5px solid var(--c-parch-deep);
}
.wg-btn--ghost:hover {
  background: var(--c-parch-dark);
  color: var(--c-ink);
  border-color: var(--c-green);
}

.wg-btn--sm { padding: 7px 14px; font-size: .82rem; }
.wg-btn--full { width: 100%; justify-content: center; }

/* ── Hero Banner ───────────────────────────────────────────── */
.wg-hero {
  background: linear-gradient(140deg, var(--c-forest) 0%, var(--c-forest-mid) 55%, var(--c-forest-soft) 100%);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .wg-hero { padding: 20px 18px; border-radius: var(--r-md); }
  .wg-hero__title { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .wg-hero { padding: 16px 14px; }
  .wg-hero__title { font-size: 1rem; }
}

.wg-hero::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(74,222,128,.12) 0%, transparent 70%);
  pointer-events: none;
}

.wg-hero__title {
  font-family: 'Clash Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 6px;
}

.wg-hero__title strong { color: var(--c-lime); }

.wg-hero__sub {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  font-weight: 400;
  margin-top: 4px;
}

/* ── Group Cards ───────────────────────────────────────────── */
.wg-card-list { display: flex; flex-direction: column; gap: 12px; }

.wg-card {
  background: var(--c-white);
  border: 1px solid var(--c-parch-deep);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--s-sm);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  position: relative;
  overflow: hidden;
}

.wg-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--c-lime), var(--c-green));
  opacity: 0;
  transition: opacity var(--t-mid);
}

.wg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--s-lg);
  border-color: var(--c-parch-deep);
}

.wg-card:hover::before { opacity: 1; }

.wg-card__body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.wg-card__img {
  width: 62px; height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-parch-dark);
  flex-shrink: 0;
  background: var(--c-parch-dark);
}

@media (max-width: 480px) {
  .wg-card { padding: 12px 14px; }
  .wg-card__body { gap: 12px; }
  .wg-card__img { width: 50px; height: 50px; }
  .wg-card__title { font-size: .92rem; }
  .wg-badge { font-size: .72rem; padding: 2px 8px; }
  .wg-join { font-size: .8rem; padding: 7px 14px; }
}

.wg-card__content { flex: 1; min-width: 0; }

.wg-card__title {
  font-family: 'Clash Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.3;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.wg-card__title a { color: var(--c-ink); }
.wg-card__title a:hover { color: var(--c-green); }

.wg-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.wg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .76rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  background: var(--c-parch);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--c-parch-deep);
  transition: all var(--t-fast);
  text-decoration: none;
}

.wg-badge:hover {
  background: #dcfce7;
  color: var(--c-forest);
  border-color: var(--c-green);
}

.wg-card__desc {
  font-size: .85rem;
  color: var(--c-ink-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.wg-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Join Button */
.wg-join {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--c-forest), var(--c-forest-soft));
  color: var(--c-white) !important;
  font-weight: 600;
  font-size: .85rem;
  padding: 8px 18px;
  border-radius: 99px;
  border: none;
  transition: all var(--t-mid);
  box-shadow: 0 2px 12px rgba(11,40,24,.25);
  text-decoration: none;
}

.wg-join:hover {
  background: linear-gradient(135deg, var(--c-green), var(--c-forest));
  color: var(--c-white) !important;
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(11,40,24,.35);
}

.wg-join svg { flex-shrink: 0; }

/* Share */
.wg-share {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  color: var(--c-ink-soft);
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--c-parch);
  border: 1px solid var(--c-parch-deep);
  transition: all var(--t-mid);
  user-select: none;
}

.wg-share:hover {
  background: #dcfce7;
  color: var(--c-forest);
  border-color: var(--c-green);
}

/* Tags */
.wg-tag {
  display: inline-block;
  font-size: .76rem;
  background: var(--c-parch);
  border: 1px solid var(--c-parch-deep);
  border-radius: 99px;
  padding: 3px 12px;
  color: var(--c-ink-mid);
  transition: all var(--t-mid);
  text-decoration: none;
}

.wg-tag:hover {
  background: var(--c-forest);
  color: var(--c-white);
  border-color: var(--c-forest);
}

/* ── Load More ─────────────────────────────────────────────── */
.wg-loadmore {
  text-align: center;
  padding: 28px 0 8px;
}

.wg-loadmore__info {
  font-size: .82rem;
  color: var(--c-ink-soft);
  margin-bottom: 14px;
}

.wg-loadmore__btn {
  background: var(--c-forest);
  color: var(--c-white);
  border: none;
  border-radius: var(--r-md);
  padding: 12px 40px;
  font-family: 'Clash Display', serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all var(--t-mid);
  display: inline-block;
}

.wg-loadmore__btn:hover {
  background: var(--c-forest-soft);
  transform: translateY(-2px);
  box-shadow: var(--s-md);
}

/* ── Pagination ────────────────────────────────────────────── */
.wg-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding-bottom: 8px;
}

.wg-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-mid);
  border: 1.5px solid var(--c-parch-deep);
  background: var(--c-white);
  color: var(--c-ink-mid);
}

.wg-page-btn:hover {
  background: var(--c-forest);
  color: var(--c-white);
  border-color: var(--c-forest);
}

.wg-page-btn--active {
  background: var(--c-forest);
  color: var(--c-white);
  border-color: var(--c-forest);
}

.wg-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-size: .85rem;
  color: var(--c-ink-soft);
  border: none;
  background: none;
  cursor: default;
  pointer-events: none;
}

/* ── SIDEBAR ───────────────────────────────────────────────── */
.wg-sidebar { position: sticky; top: 76px; }

@media (max-width: 768px) {
  .wg-sidebar { position: static; margin-top: 20px; }
  .wg-sidebar__box { margin-bottom: 12px; }
}

.wg-sidebar__box {
  background: var(--c-white);
  border: 1px solid var(--c-parch-deep);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--s-sm);
}

.wg-sidebar__title {
  font-family: 'Clash Display', serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--c-ink-soft);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--c-parch-deep);
}

.wg-sidebar__cat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--c-ink-mid);
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--c-parch);
  margin-bottom: 5px;
  transition: all var(--t-mid);
  overflow-wrap: break-word;
  word-break: break-word;
}

.wg-sidebar__cat:hover {
  background: #dcfce7;
  color: var(--c-forest);
  border-color: var(--c-green);
  transform: translateX(4px);
}

.wg-sidebar__cat-dot {
  width: 7px; height: 7px;
  background: var(--c-green);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .6;
  transition: opacity var(--t-fast);
}

.wg-sidebar__cat:hover .wg-sidebar__cat-dot { opacity: 1; }

/* ── Group Detail (data_view) ──────────────────────────────── */
.wg-detail {
  background: var(--c-white);
  border: 1px solid var(--c-parch-deep);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  box-shadow: var(--s-md);
  text-align: center;
}

@media (max-width: 480px) {
  .wg-detail { padding: 22px 14px; border-radius: var(--r-lg); }
  .wg-detail__img { width: 86px; height: 86px; }
  .wg-detail__name { font-size: 1.15rem; }
  .wg-detail__join { padding: 12px 24px; font-size: .9rem; }
}

.wg-detail__img {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-parch-dark);
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(11,40,24,.15);
}

.wg-detail__name {
  font-family: 'Clash Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--c-parch-deep);
}

.wg-detail__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.wg-detail__desc {
  font-size: .92rem;
  color: var(--c-ink-soft);
  line-height: 1.75;
  margin-bottom: 24px;
  text-align: left;
}

.wg-detail__join {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--c-green), var(--c-forest));
  color: var(--c-white) !important;
  font-family: 'Clash Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 99px;
  transition: all var(--t-mid);
  box-shadow: 0 6px 24px rgba(22,163,74,.35);
  text-decoration: none;
  margin-bottom: 20px;
}

.wg-detail__join:hover {
  background: linear-gradient(135deg, var(--c-lime), var(--c-green));
  color: var(--c-ink) !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 32px rgba(22,163,74,.45);
}

.wg-detail__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

/* ── Categories Page ───────────────────────────────────────── */
.wg-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 4px;
}

@media (max-width: 1024px) { .wg-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .wg-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .wg-cat-grid { grid-template-columns: 1fr; gap: 10px; } }

.wg-cat-item {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1.5px solid var(--c-parch-deep);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--t-mid);
  box-shadow: var(--s-sm);
}

.wg-cat-item:hover {
  border-color: var(--c-green);
  transform: translateY(-3px);
  box-shadow: var(--s-md);
}

.wg-cat-item__img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: var(--c-parch-dark);
  flex-shrink: 0;
  display: block;
}

.wg-cat-item__img--placeholder {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, var(--c-forest) 0%, var(--c-forest-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wg-cat-item__img--placeholder span {
  font-family: 'Clash Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
}

.wg-cat-item__name {
  padding: 10px 12px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-ink-mid);
  line-height: 1.35;
  transition: color var(--t-fast);
  text-align: center;
}

.wg-cat-item:hover .wg-cat-item__name {
  color: var(--c-forest);
}

/* ── Add Group Page ────────────────────────────────────────── */
.wg-add-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 0 60px;
}

.wg-add-card {
  background: var(--c-white);
  border: 1px solid var(--c-parch-deep);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  box-shadow: var(--s-md);
}

.wg-form-group { margin-bottom: 18px; }

.wg-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-ink-mid);
  margin-bottom: 6px;
}

.wg-label span { color: #dc2626; margin-left: 2px; }

.wg-input, .wg-select, .wg-textarea {
  width: 100%;
  background: var(--c-parch);
  border: 1.5px solid var(--c-parch-deep);
  color: var(--c-ink);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  outline: none;
  transition: border-color var(--t-mid), box-shadow var(--t-mid), background var(--t-mid);
  appearance: none;
  -webkit-appearance: none;
}

.wg-input:focus, .wg-select:focus, .wg-textarea:focus {
  border-color: var(--c-green);
  box-shadow: var(--s-glow);
  background: var(--c-white);
}

.wg-input::placeholder, .wg-textarea::placeholder { color: var(--c-ink-soft); }
.wg-textarea { resize: vertical; min-height: 100px; }
.wg-hint { font-size: .78rem; color: var(--c-ink-soft); margin-top: 4px; }

.wg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 580px) {
  .wg-form-row { grid-template-columns: 1fr; }
  .wg-add-card { padding: 24px 18px; }
}

/* ── Content Box ───────────────────────────────────────────── */
.wg-content-box {
  background: var(--c-white);
  border: 1px solid var(--c-parch-deep);
  border-radius: var(--r-md);
  padding: 24px 26px;
  box-shadow: var(--s-sm);
  margin-bottom: 20px;
  overflow-x: auto;
}

/* Headings inside content */
.wg-content-box h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-ink);
  margin: 18px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-parch-deep);
}

.wg-content-box h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-ink);
  margin: 16px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--c-green);
}

.wg-content-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-forest);
  margin: 14px 0 6px;
}

.wg-content-box h4, .wg-content-box h5, .wg-content-box h6 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-ink-mid);
  margin: 12px 0 6px;
}

/* Paragraph text */
.wg-content-box p {
  font-size: .93rem;
  color: var(--c-ink-mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

.wg-content-box p:last-child { margin-bottom: 0; }

/* Strong / bold */
.wg-content-box strong, .wg-content-box b {
  font-weight: 700;
  color: var(--c-ink);
}

/* Links inside content */
.wg-content-box a {
  color: var(--c-green);
  text-decoration: none;
}
.wg-content-box a:hover { color: var(--c-forest); text-decoration: underline; text-underline-offset: 2px; }

/* Blockquote */
.wg-content-box blockquote {
  border-left: 4px solid var(--c-lime);
  background: var(--c-parch);
  padding: 12px 18px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 14px 0;
  font-style: italic;
  color: var(--c-ink-mid);
}

/* ── TABLE inside content ───────────────────────────────────── */
.wg-content-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: .9rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--s-sm);
}

.wg-content-box table thead tr {
  background: var(--c-forest);
  color: var(--c-white);
}

.wg-content-box table thead th {
  padding: 11px 14px;
  text-align: left;
  font-family: 'Clash Display', serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
  border: none;
}

.wg-content-box table tbody tr {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-parch-deep);
  transition: background var(--t-fast);
}

.wg-content-box table tbody tr:nth-child(even) {
  background: var(--c-parch);
}

.wg-content-box table tbody tr:hover {
  background: #dcfce7;
}

.wg-content-box table tbody td {
  padding: 10px 14px;
  color: var(--c-ink-mid);
  font-size: .88rem;
  line-height: 1.55;
  border: none;
}

.wg-content-box table tbody td a {
  color: var(--c-green);
  font-weight: 500;
}

.wg-content-box table tbody td a:hover {
  color: var(--c-forest);
}

/* Table wrapper for horizontal scroll on mobile */
.wg-content-box table {
  display: table;
  min-width: 100%;
}

@media (max-width: 600px) {
  .wg-content-box {
    padding: 16px 14px;
  }
  .wg-content-box table {
    font-size: .8rem;
  }
  .wg-content-box table th,
  .wg-content-box table td {
    padding: 8px 10px;
  }
}

/* ── Category image ────────────────────────────────────────── */
.wg-cat-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: 16px;
  box-shadow: var(--s-md);
}

/* ── Floating Add Button ───────────────────────────────────── */
.wg-fab {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 900;
}

@media (max-width: 480px) {
  .wg-fab a { padding: 10px 16px; font-size: .82rem; }
}

.wg-fab a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-forest);
  color: var(--c-white) !important;
  font-family: 'Clash Display', serif;
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 22px;
  border-radius: 99px;
  box-shadow: 0 6px 28px rgba(11,40,24,.35);
  transition: all var(--t-mid);
  letter-spacing: .03em;
  text-decoration: none;
}

.wg-fab a:hover {
  background: var(--c-green);
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 10px 36px rgba(22,163,74,.4);
}

/* ── FOOTER ────────────────────────────────────────────────── */
.wg-footer {
  background: var(--c-forest);
  border-top: 1px solid rgba(74,222,128,.1);
  margin-top: 48px;
  padding: 48px 0 0;
}

.wg-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

@media (max-width: 768px) { .wg-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 480px) { .wg-footer__grid { grid-template-columns: 1fr; gap: 20px; } }

.wg-footer__brand {
  font-family: 'Clash Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.wg-footer__brand-dot {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--c-green), var(--c-lime));
  border-radius: 50%;
  flex-shrink: 0;
}

.wg-footer h3, .wg-footer h4 {
  font-family: 'Clash Display', serif;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-white);
  margin-bottom: 14px;
}

.wg-footer p {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
}

.wg-footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.65) !important;
  font-size: .875rem;
  padding: 5px 0;
  transition: color var(--t-fast);
  text-decoration: none;
}

.wg-footer__link:hover { color: var(--c-lime) !important; }

.wg-footer__link-dot {
  width: 5px; height: 5px;
  background: var(--c-lime);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .6;
}

.wg-footer__bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

.wg-footer__bar strong { color: var(--c-lime); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes wgFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wg-hero      { animation: wgFadeUp .4s ease both; }
.wg-filter    { animation: wgFadeUp .45s ease both; }
.wg-card-list { animation: wgFadeUp .5s ease both; }

.wg-card:nth-child(1) { animation: wgFadeUp .3s ease both; }
.wg-card:nth-child(2) { animation: wgFadeUp .38s ease both; }
.wg-card:nth-child(3) { animation: wgFadeUp .46s ease both; }
.wg-card:nth-child(4) { animation: wgFadeUp .54s ease both; }
.wg-card:nth-child(5) { animation: wgFadeUp .62s ease both; }

/* ── Utility ───────────────────────────────────────────────── */
.wg-divider {
  border: none;
  border-top: 1.5px solid var(--c-parch-deep);
  margin: 20px 0;
}

.wg-text-muted { color: var(--c-ink-soft); }
.wg-text-sm    { font-size: .85rem; }
.wg-mt-1       { margin-top: 8px; }
.wg-mt-2       { margin-top: 16px; }
.wg-mt-3       { margin-top: 24px; }
.wg-mb-1       { margin-bottom: 8px; }
.wg-mb-2       { margin-bottom: 16px; }
.wg-d-flex     { display: flex; }
.wg-align-center { align-items: center; }
.wg-gap-1      { gap: 8px; }
.wg-gap-2      { gap: 16px; }
.wg-flex-wrap  { flex-wrap: wrap; }
.wg-justify-between { justify-content: space-between; }
.wg-text-center { text-align: center; }
.wg-w-full     { width: 100%; }

/* ── Result / Success / Error messages ────────────────────── */
.wg-msg {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 500;
  margin-top: 14px;
}
.wg-msg--success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.wg-msg--error   { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }

/* ── Loading spinner ───────────────────────────────────────── */
.wg-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: var(--c-white);
  border-radius: 50%;
  animation: wgSpin .7s linear infinite;
  vertical-align: middle;
}

@keyframes wgSpin { to { transform: rotate(360deg); } }

/* ── Responsive fine-tuning ────────────────────────────────── */
@media (max-width: 480px) {
  .wg-hero { padding: 20px 18px; }
  .wg-card { padding: 14px 16px; }
  .wg-card__img { width: 50px; height: 50px; }
  .wg-detail { padding: 24px 18px; }
  .wg-fab a { padding: 10px 18px; font-size: .85rem; }
}