/* ==========================================================================
   Groupsgyani — Modern frontend CSS (replaces Bootstrap 4 + styles.pure.css)
   ========================================================================== */

/* ---------- Design tokens (light) ---------- */
:root {
    --gg-primary: #ff551f;
    --gg-primary-hover: #ff3d00;
    --gg-primary-soft: #fff3ee;
    --gg-accent: #ea580c;
    --gg-success: #ff621c;
    --gg-success-hover: #e54f0d;
    --gg-danger: #e3342f;
    --gg-danger-hover: #c52823;
    --gg-warning: #f6993f;
    --gg-info: #3490dc;

    --gg-bg: #fafafa;
    --gg-surface: #ffffff;
    --gg-surface-alt: #f4f4f5;
    --gg-border: #e4e4e7;
    --gg-border-strong: #d4d4d8;
    --gg-text: #18181b;
    --gg-text-muted: #52525b;
    --gg-text-subtle: #71717a;
    --gg-link: var(--gg-primary);
    --gg-link-hover: var(--gg-primary-hover);

    --gg-navbar-bg: linear-gradient(to right, #ff432c, #ff9301);
    --gg-card-bg: linear-gradient(to bottom, #fff7ed, transparent);

    --gg-shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --gg-shadow: 0 4px 12px -2px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);
    --gg-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
    --gg-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, .12), 0 4px 10px -2px rgba(0, 0, 0, .05);

    --gg-radius-sm: 6px;
    --gg-radius: 8px;
    --gg-radius-lg: 12px;
    --gg-radius-pill: 999px;

    --gg-font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --gg-transition: 150ms ease;
    --gg-navbar-h: 64px;

    /* Alert colors (light mode) */
    --gg-alert-success-bg: #f0fdf4;
    --gg-alert-success-text: #166534;
    --gg-alert-success-border: #dcfce7;
    --gg-alert-error-bg: #fef2f2;
    --gg-alert-error-text: #991b1b;
    --gg-alert-error-border: #fee2e2;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
    --gg-bg: #0f1115;
    --gg-surface: #1a1d24;
    --gg-surface-alt: #242832;
    --gg-border: #2e3340;
    --gg-border-strong: #3d4350;
    --gg-text: #f4f4f5;
    --gg-text-muted: #a1a1aa;
    --gg-text-subtle: #71717a;
    --gg-primary-soft: #2a1810;
    --gg-card-bg: linear-gradient(to bottom, #2a1810, transparent);
    --gg-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --gg-shadow: 0 4px 12px -2px rgba(0, 0, 0, .5);
    --gg-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .5);
    --gg-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, .6);
    
    /* Alert colors (dark mode) */
    --gg-alert-success-bg: #064e3b;
    --gg-alert-success-text: #86efac;
    --gg-alert-success-border: #166534;
    --gg-alert-error-bg: #7f1d1d;
    --gg-alert-error-text: #fca5a5;
    --gg-alert-error-border: #991b1b;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --gg-bg: #0f1115;
        --gg-surface: #1a1d24;
        --gg-surface-alt: #242832;
        --gg-border: #2e3340;
        --gg-border-strong: #3d4350;
        --gg-text: #f4f4f5;
        --gg-text-muted: #a1a1aa;
        --gg-text-subtle: #71717a;
        --gg-primary-soft: #2a1810;
        --gg-card-bg: linear-gradient(to bottom, #2a1810, transparent);
        --gg-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --gg-shadow: 0 4px 12px -2px rgba(0, 0, 0, .5);
        --gg-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .5);
        --gg-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, .6);
        
        /* Alert colors (dark mode) */
        --gg-alert-success-bg: #064e3b;
        --gg-alert-success-text: #86efac;
        --gg-alert-success-border: #166534;
        --gg-alert-error-bg: #7f1d1d;
        --gg-alert-error-text: #fca5a5;
        --gg-alert-error-border: #991b1b;
    }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    scroll-padding-top: var(--gg-navbar-h);
    height: 100%;
}
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--gg-font);
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gg-text);
    background-color: var(--gg-bg);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: background-color var(--gg-transition), color var(--gg-transition);
}
.main-body { flex: 1 0 auto; }
main#body { margin-top: var(--gg-navbar-h) !important; padding-top: 1rem; }
hr { box-sizing: content-box; height: 0; overflow: visible; border: 0; border-top: 1px solid var(--gg-border); }
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: .5rem; font-weight: 700; line-height: 1.2; color: var(--gg-text); }
p, ul, ol, dl, pre, address, figure { margin-top: 0; margin-bottom: 1rem; }
img, svg { vertical-align: middle; max-width: 100%; height: auto; }
a { color: var(--gg-link); text-decoration: none; transition: color var(--gg-transition); }
a:hover { color: var(--gg-link-hover); }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button, [role="button"], [type="button"], [type="submit"], [type="reset"] { cursor: pointer; }
[hidden] { display: none !important; }
small { font-size: 80%; }
strong, b { font-weight: 700; }
table { border-collapse: collapse; width: 100%; }
table.table td, table.table th { padding: .5rem; border-top: 1px solid var(--gg-border); text-align: left; }

/* ---------- Container & grid ---------- */
.container, .container-fluid { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1576px; } }

.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.row > * { padding-right: 15px; padding-left: 15px; }

.col, [class*="col-"] { position: relative; width: 100%; padding-right: 15px; padding-left: 15px; }
.col { flex-basis: 0; flex-grow: 1; max-width: 100%; }

.col-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
.col-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.col-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
    .col-sm-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
    .col-sm-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
    .col-md-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-md-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
    .col-md-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .offset-md-3 { margin-left: 25%; }
    .offset-md-4 { margin-left: 33.3333%; }
}
@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-left { justify-content: flex-start; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }

/* ---------- Display utilities ---------- */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

/* ---------- Spacing utilities ---------- */
.m-0 { margin: 0 !important; } .m-1 { margin: .25rem !important; } .m-2 { margin: .5rem !important; }
.m-3 { margin: 1rem !important; } .m-4 { margin: 1.5rem !important; } .m-5 { margin: 3rem !important; }
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: .25rem !important; margin-right: .25rem !important; }
.mx-2 { margin-left: .5rem !important; margin-right: .5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: .25rem !important; margin-bottom: .25rem !important; }
.my-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .25rem !important; } .mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; } .mt-4 { margin-top: 1.5rem !important; } .mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .25rem !important; } .mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; } .mb-4 { margin-bottom: 1.5rem !important; } .mb-5 { margin-bottom: 3rem !important; } .mb-6 { margin-bottom: 4rem !important; }
.ml-0 { margin-left: 0 !important; } .ml-1 { margin-left: .25rem !important; } .ml-2 { margin-left: .5rem !important; } .ml-3 { margin-left: 1rem !important; } .ml-auto { margin-left: auto !important; }
.mr-0 { margin-right: 0 !important; } .mr-1 { margin-right: .25rem !important; } .mr-2 { margin-right: .5rem !important; } .mr-3 { margin-right: 1rem !important; } .mr-auto { margin-right: auto !important; }

.p-0 { padding: 0 !important; } .p-1 { padding: .25rem !important; } .p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; } .p-4 { padding: 1.5rem !important; } .p-5 { padding: 3rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: .25rem !important; padding-right: .25rem !important; }
.px-2 { padding-left: .5rem !important; padding-right: .5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-24 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.pt-0 { padding-top: 0 !important; } .pt-1 { padding-top: .25rem !important; } .pt-2 { padding-top: .5rem !important; } .pt-3 { padding-top: 1rem !important; } .pt-4 { padding-top: 1.5rem !important; }
.pb-0 { padding-bottom: 0 !important; } .pb-1 { padding-bottom: .25rem !important; } .pb-2 { padding-bottom: .5rem !important; } .pb-3 { padding-bottom: 1rem !important; } .pb-4 { padding-bottom: 1.5rem !important; }
.pl-0 { padding-left: 0 !important; } .pl-1 { padding-left: .25rem !important; } .pl-2 { padding-left: .5rem !important; } .pl-3 { padding-left: 1rem !important; } .pl-4 { padding-left: 1.5rem !important; }
.pr-0 { padding-right: 0 !important; } .pr-1 { padding-right: .25rem !important; } .pr-2 { padding-right: .5rem !important; } .pr-3 { padding-right: 1rem !important; } .pr-4 { padding-right: 1.5rem !important; }

/* ---------- Text utilities ---------- */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-white { color: #fff !important; }
.text-dark { color: var(--gg-text) !important; }
.text-muted { color: var(--gg-text-muted) !important; }
.text-danger { color: var(--gg-danger) !important; }
.text-success { color: var(--gg-success) !important; }
.text-gray-500 { color: var(--gg-text-subtle) !important; }
.text-gray-600 { color: var(--gg-text-muted) !important; }
.text-gray-700 { color: var(--gg-text-muted) !important; }
.text-gray-900 { color: var(--gg-text) !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-sm { font-size: .875rem !important; }
.font-medium { font-weight: 500 !important; }
.font-bold { font-weight: 700 !important; }
.title-font { font-family: var(--gg-font); font-weight: 600; }
.body-font { font-family: var(--gg-font); }
.leading-relaxed { line-height: 1.625 !important; }
.float-right { float: right !important; }
.float-left { float: left !important; }

/* ---------- Width / sizing ---------- */
.w-25 { width: 25% !important; } .w-50 { width: 50% !important; } .w-75 { width: 75% !important; }
.w-100 { width: 100% !important; } .w-full { width: 100% !important; } .h-100 { height: 100% !important; } .h-full { height: 100% !important; }
.h-48 { height: 12rem !important; }

/* ---------- Border / radius ---------- */
.border { border: 1px solid var(--gg-border) !important; }
.border-0 { border: 0 !important; }
.border-gray-400 { border-color: var(--gg-border-strong) !important; }
.rounded { border-radius: var(--gg-radius) !important; }
.rounded-sm { border-radius: var(--gg-radius-sm) !important; }
.rounded-lg { border-radius: var(--gg-radius-lg) !important; }
.rounded-pill { border-radius: var(--gg-radius-pill) !important; }
.shadow { box-shadow: var(--gg-shadow) !important; }
.shadow-sm { box-shadow: var(--gg-shadow-sm) !important; }
.shadow-md { box-shadow: var(--gg-shadow-md) !important; }
.shadow-lg { box-shadow: var(--gg-shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

/* ---------- Backgrounds ---------- */
.bg-gray-100 { background-color: var(--gg-surface-alt) !important; }
.bg-indigo-500 { background-color: #6366f1 !important; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-weight: 600;
    color: var(--gg-text);
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .5rem 1rem;
    font-size: .9rem;
    line-height: 1.5;
    border-radius: var(--gg-radius);
    cursor: pointer;
    transition: background-color var(--gg-transition), border-color var(--gg-transition), color var(--gg-transition), box-shadow var(--gg-transition), transform var(--gg-transition);
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gg-primary); outline-offset: 2px; }
.btn-sm { padding: .25rem .5rem; font-size: .8rem; border-radius: var(--gg-radius-sm); }
.btn-md { padding: .5rem 1rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

.btn-success { background-color: var(--gg-success); color: #fff; border-color: var(--gg-success); }
.btn-success:hover { background-color: var(--gg-success-hover); border-color: var(--gg-success-hover); color: #fff; }
.btn-outline-success { color: var(--gg-success); border-color: var(--gg-success); background: transparent; }
.btn-outline-success:hover { background-color: var(--gg-success); color: #fff; }
.btn-danger { background-color: var(--gg-danger); color: #fff; border-color: var(--gg-danger); }
.btn-danger:hover { background-color: var(--gg-danger-hover); color: #fff; }
.btn-warning { background-color: var(--gg-warning); color: #fff; border-color: var(--gg-warning); }
.btn-warning:hover { filter: brightness(.9); color: #fff; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1rem; }
.form-control {
    display: block;
    width: 100%;
    padding: .5rem .75rem;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--gg-text);
    /* Aligned with the TomSelect .ts-control rule near the bottom of this
       file so every input on the same form (text, textarea, raw select,
       TomSelect-wrapped select) reads as one bg colour. Was --gg-surface
       which sat one shade lighter than --gg-bg in dark mode and made
       textareas pop next to TomSelect-rendered <select>s. */
    background-color: var(--gg-bg);
    background-clip: padding-box;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    transition: border-color var(--gg-transition), box-shadow var(--gg-transition);
}
.form-control:focus {
    outline: 0;
    border-color: var(--gg-primary);
    box-shadow: 0 0 0 3px rgba(255, 85, 31, .15);
}
.form-control::placeholder { color: var(--gg-text-subtle); opacity: 1; }
.form-control.is-invalid { border-color: var(--gg-danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(227, 52, 47, .15); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%2371717a' d='M4 6l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px 16px; padding-right: 2.25rem; }
textarea.form-control { resize: vertical; min-height: 80px; }
.invalid-feedback { display: block; width: 100%; margin-top: .25rem; font-size: .8rem; color: var(--gg-danger); }
.input-group { position: relative; display: flex; align-items: stretch; width: 100%; }
.input-group > .form-control { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-append { display: flex; }
.input-group-append .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ---------- Cards ---------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--gg-surface);
    background-clip: border-box;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    box-shadow: var(--gg-shadow-sm);
    overflow: hidden;
}
.card-header {
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    background-color: var(--gg-surface-alt);
    border-bottom: 1px solid var(--gg-border);
    font-weight: 600;
}
.card-body { flex: 1 1 auto; padding: 1.25rem; }
.card-link { color: var(--gg-text); text-decoration: none; display: block; }
.card-link:hover { color: var(--gg-text); }

/* ---------- Alerts ---------- */
.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--gg-radius);
}
.alert-success { color: #064e3b; background-color: #d1fae5; border-color: #a7f3d0; }
.alert-danger { color: #7f1d1d; background-color: #fee2e2; border-color: #fecaca; }
.alert-warning { color: #78350f; background-color: #fef3c7; border-color: #fde68a; }
.alert-info { color: #1e3a8a; background-color: #dbeafe; border-color: #bfdbfe; }
.alert-dismissible { padding-right: 3rem; }
.alert-dismissible .close {
    position: absolute; top: 0; right: 0; padding: .75rem 1.25rem;
    background: transparent; border: 0; color: inherit; opacity: .5; cursor: pointer; font-size: 1.25rem;
}
.alert-dismissible .close:hover { opacity: 1; }
[data-theme="dark"] .alert-success { color: #a7f3d0; background-color: #064e3b; border-color: #047857; }
[data-theme="dark"] .alert-danger { color: #fecaca; background-color: #7f1d1d; border-color: #991b1b; }
[data-theme="dark"] .alert-warning { color: #fde68a; background-color: #78350f; border-color: #92400e; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: .25em .6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--gg-radius-sm);
}
.badge-danger { background-color: var(--gg-danger); color: #fff; }
.badge-success { background-color: var(--gg-success); color: #fff; }

/* ---------- Breadcrumb ---------- */
ol.breadcrumb { padding: 0; margin: 0; list-style: none; min-height: 28px; font-size: .875rem; }
ol.breadcrumb li { display: inline-flex; align-items: center; }
ol.breadcrumb li + li::before { padding: 0 .4rem; color: var(--gg-text-subtle); content: "/"; }
ol.breadcrumb li a { color: var(--gg-primary); text-decoration: none; }
ol.breadcrumb li a:hover { color: var(--gg-primary-hover); }
.breadcrumb-current { color: var(--gg-text-muted); }
.dot-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

/* Single-line breadcrumb with horizontal scroll on overflow. Used on the
   join page (breadcrumb chain is 4 deep — Home / Platform / Category /
   Group title — and the title can be long). Other public pages keep the
   default `.dot-text` truncation behaviour. */
.gg-breadcrumb--scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* Firefox */
    -ms-overflow-style: none;         /* IE 10+ */
}
.gg-breadcrumb--scroll::-webkit-scrollbar { display: none; }
.gg-breadcrumb--scroll > li { flex-shrink: 0; white-space: nowrap; }

/* ---------- Navbar ---------- */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: var(--gg-navbar-h);
    height: var(--gg-navbar-h);
}
.navbar > .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.navbar-brand {
    display: inline-block;
    padding-top: .25rem; padding-bottom: .25rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.navbar-brand:hover { color: #fff; }
.gg-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .9);
    font-size: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: .5rem 1rem;
    white-space: nowrap;
}
.gg-mega-trigger:hover,
.gg-mega-trigger:focus {
    color: #fff;
    outline: none;
}
.navbar-nav { display: flex; flex-direction: column; padding-left: 0; margin: 0; list-style: none; }
.nav-item { display: block; }
.nav-link {
    display: block;
    padding: .5rem .75rem;
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    transition: color var(--gg-transition);
}
.nav-link:hover, .nav-link:focus { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.navbar-dark .nav-link { color: rgba(255, 255, 255, .9); }
.navbar-dark .nav-link:hover { color: #fff; }
.navbar-toggler {
    padding: .25rem .5rem;
    font-size: 1.125rem;
    line-height: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--gg-radius-sm);
    color: #fff;
}
.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em; height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: center; background-size: 100%;
}
.navbar-collapse { flex-basis: 100%; flex-grow: 1; align-items: center; }

/* Mobile-only: solid panel behind the expanded menu so it doesn't bleed onto content */
@media (max-width: 767.98px) {
    .navbar-collapse.show {
        position: absolute;
        top: var(--gg-navbar-h);
        left: 0; right: 0;
        background: var(--gg-surface);
        border-bottom: 1px solid var(--gg-border);
        box-shadow: var(--gg-shadow-lg);
        padding: .5rem 1rem 1rem;
        max-height: calc(100vh - var(--gg-navbar-h));
        overflow-y: auto;
        z-index: 1029;
    }
    .navbar-collapse.show .nav-link,
    .navbar-collapse.show .dropdown-toggle { color: var(--gg-text); }
    .navbar-collapse.show .nav-link:hover,
    .navbar-collapse.show .dropdown-toggle:hover { color: var(--gg-primary); }
    .navbar-collapse.show .dropdown-menu { position: static; box-shadow: none; border: 0; padding-left: 1rem; }
}
.collapse:not(.show) { display: none; }
.collapse.show { display: block; }
.fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; }

@media (min-width: 768px) {
    .navbar-expand-md { flex-wrap: nowrap; justify-content: flex-start; }
    .navbar-expand-md .navbar-nav { flex-direction: row; align-items: center; }
    .navbar-expand-md .navbar-nav .nav-link { padding-right: .5rem; padding-left: .5rem; }
    .navbar-expand-md .navbar-collapse { display: flex !important; flex-basis: auto; flex-grow: 1; }
    .navbar-expand-md .navbar-toggler { display: none; }
}

.navbar-custom {
    background: var(--gg-navbar-bg) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.logo-style { height: 32px; width: 32px; border-radius: 6px; }
.logo-title { margin-left: .5rem; color: #fff !important; text-decoration: none; font-weight: 700; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle {
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .9);
    padding: .5rem .75rem;
    font-size: inherit;
}
.dropdown-toggle::after {
    display: inline-block;
    margin-left: .5em;
    vertical-align: middle;
    content: "";
    border-top: .35em solid;
    border-right: .35em solid transparent;
    border-bottom: 0;
    border-left: .35em solid transparent;
}
.dropdown-toggle:hover { color: #fff; }
.dropdown-menu {
    position: absolute;
    top: 100%; left: 0;
    z-index: 1000;
    display: none;
    min-width: 12rem;
    max-height: 70vh;
    overflow-y: auto;
    padding: .5rem 0;
    margin: .25rem 0 0;
    font-size: .9rem;
    color: var(--gg-text);
    text-align: left;
    list-style: none;
    background-color: var(--gg-surface);
    background-clip: padding-box;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    box-shadow: var(--gg-shadow-lg);
}
.dropdown-menu.show { display: block; }
.dropdown-menu-right { right: 0; left: auto; }
.dropdown-item {
    display: block;
    width: 100%;
    padding: .4rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--gg-text);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
    transition: background-color var(--gg-transition);
}
.dropdown-item:hover, .dropdown-item:focus { color: var(--gg-text); background-color: var(--gg-surface-alt); }
.dropdownlist { color: rgba(255, 255, 255, .9); padding: .5rem .75rem; }
.cat-list1 { padding: .5rem .75rem; outline: 0 !important; }
.ct-dropdown { /* dropdown panel — already handled by .dropdown-menu */ }

/* ---------- Modal ---------- */
.modal {
    position: fixed; inset: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
    background: rgba(0, 0, 0, .5);
}
.modal.show { display: flex; align-items: center; justify-content: center; }
.modal-dialog { position: relative; width: 100%; max-width: 500px; margin: 1rem auto; pointer-events: none; }
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    background-color: var(--gg-surface);
    background-clip: padding-box;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    outline: 0;
}
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
body.modal-open { overflow: hidden; }

/* ---------- Custom: page-level ---------- */
.mainpage-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gg-text);
    margin-bottom: .75rem;
}
@media (max-width: 600px) {
    .mainpage-heading { font-size: 1.25rem; }
}
.gg-cat-blurb {
    max-width: 60rem;
    margin: -.25rem 0 1.25rem;
    font-size: .95rem;
    line-height: 1.55;
    color: var(--gg-text);
    opacity: .8;
}
@media (max-width: 600px) {
    .gg-cat-blurb { font-size: .9rem; }
}
.category-heading { font-size: 1.125rem; font-weight: 700; color: var(--gg-accent); }
.platform-heading { font-size: 1.125rem; }
.search-custom {
    color: #fff;
    background: var(--gg-success);
    border-color: var(--gg-success);
}
.join-page-button {
    color: #fff !important;
    border-color: var(--gg-success) !important;
    background: var(--gg-success) !important;
    padding: .75rem 2rem !important;
    font-size: 1rem !important;
    border-radius: var(--gg-radius) !important;
    transition: all var(--gg-transition);
}
.join-page-button:hover { background: var(--gg-success-hover) !important; transform: translateY(-1px); box-shadow: var(--gg-shadow-md); }
.group-mobile-view { margin-top: 0; }
.group-desktop-view { margin-top: 5vh; margin-bottom: 5vh; }
.group-tags { margin-right: .25rem; margin-bottom: .25rem !important; display: inline-block; cursor: pointer; }
.a-pointer { cursor: pointer; }

/* ---------- gg-group-card (modernized) ---------- */
.gg-group-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    overflow: hidden;
    background: var(--gg-surface);
    background-image: var(--gg-card-bg);
    font-family: var(--gg-font);
    height: 100%;
    transition: transform var(--gg-transition), box-shadow var(--gg-transition);
    box-shadow: var(--gg-shadow-sm);
}
.gg-group-card:hover { transform: translateY(-2px); box-shadow: var(--gg-shadow-md); }
.gg-group-card__header { position: relative; height: 96px; overflow: hidden; }
.gg-group-card__header-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-in-out; }
.gg-group-card:hover .gg-group-card__header-img { transform: scale(1.05); }
.gg-group-card__overlay-black { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); backdrop-filter: blur(2px); }
.gg-group-card__overlay-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--gg-surface)); }
.gg-group-card__platform-icon { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--gg-surface); border-radius: 50%; padding: 4px; box-shadow: var(--gg-shadow-sm); }
.gg-group-card__platform-icon img { width: 24px; height: 24px; display: block; }
.gg-group-card__content { padding: 0 16px; position: relative; }
.gg-group-card__profile-wrapper { display: flex; gap: 12px; margin-top: -32px; }
.gg-group-card__profile-img-wrapper {
    background: var(--gg-surface);
    width: 88px; height: 88px;
    border: 4px solid var(--gg-surface);
    border-radius: var(--gg-radius-lg);
    box-shadow: var(--gg-shadow);
    overflow: hidden;
    flex: none;
}
.gg-group-card__profile-img { width: 100%; height: 100%; object-fit: cover; }
.gg-group-card__info { margin-top: 16px; min-width: 0; flex: 1; }
.gg-group-card__group-title-wrap { margin: 0; font-size: 1rem; line-height: 1.3; }
.gg-group-card__group-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    font-weight: 700; font-size: 1rem;
    text-decoration: none; color: var(--gg-text); overflow: hidden;
}
.gg-group-card__group-title:hover { color: var(--gg-accent); }
.gg-group-card__category { font-size: .85rem; color: var(--gg-accent); text-decoration: none; }
.gg-group-card__category:hover { text-decoration: underline; }

/* Inline country flag rendered next to the category link in the card.
   Subtype pill + follower count + language chips were dropped from the
   card itself — full info still surfaces in the join page sidebar dl. */
.gg-group-card__meta-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gg-group-card__country { display: inline-flex; align-items: center; }
.gg-group-card__flag {
    width: 14px; height: 10px;
    object-fit: cover;
    border-radius: 2px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}
.gg-group-card__description {
    margin: 14px 0; font-size: .8rem; color: var(--gg-text-muted); line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
            line-clamp: 2;
}
/* Tags row inside a group card — single line, horizontal scroll with drag.
   No-wrap so the card height stays consistent regardless of how many tags
   the group has. gg.js wires drag-to-scroll via [data-gg-drag-scroll]. */
.gg-group-card__tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0 0 4px;
    list-style: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    cursor: grab;
    /* Soft fade on the right edge to hint at more tags off-screen. */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
}
.gg-group-card__tags::-webkit-scrollbar { display: none; }
.gg-group-card__tags.gg-dragging,
.gg-group-card__tags:active { cursor: grabbing; }
.gg-group-card__tags.gg-dragging > li > a { pointer-events: none; }
.gg-group-card__tags > li { display: inline-flex; flex: 0 0 auto; }
.gg-group-card__tag {
    background: var(--gg-surface-alt); color: var(--gg-text-muted);
    font-size: .75rem; padding: 4px 8px; border-radius: var(--gg-radius-sm);
    cursor: pointer; transition: all var(--gg-transition);
    border: 0; font-family: inherit;
    white-space: nowrap; /* tag text stays on one line */
}
.gg-group-card__tag:hover { background-color: var(--gg-accent); color: #fff; }
.gg-group-card__footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 16px 16px; margin-top: auto; gap: 8px;
}
.gg-group-card__join-btn {
    background-color: var(--gg-accent); color: #fff !important;
    padding: 8px 16px; font-size: .85rem; border: none;
    border-radius: var(--gg-radius); cursor: pointer; font-weight: 600;
    text-decoration: none; transition: all var(--gg-transition);
}
.gg-group-card__join-btn:hover { background-color: #c2410c; color: #fff !important; transform: translateY(-1px); }
.gg-group-card__share-label { font-size: .75rem; color: var(--gg-text-subtle); }

/* ---------- Header search icon — paired with the theme toggle ---------- */
.gg-search-toggle {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    border-radius: var(--gg-radius-pill);
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: background var(--gg-transition);
}
.gg-search-toggle:hover,
.gg-search-toggle:focus { background: rgba(255, 255, 255, .28); color: #fff; text-decoration: none; }
.gg-search-toggle svg { width: 18px; height: 18px; }

/* ---------- Theme toggle button ---------- */
.gg-theme-toggle {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    border-radius: var(--gg-radius-pill);
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
    transition: background var(--gg-transition);
}
.gg-theme-toggle:hover { background: rgba(255, 255, 255, .28); }
.gg-theme-toggle svg { width: 18px; height: 18px; }
.gg-theme-toggle .gg-theme-toggle__moon { display: none; }
.gg-theme-toggle .gg-theme-toggle__sun { display: block; }
[data-theme="dark"] .gg-theme-toggle .gg-theme-toggle__moon { display: block; }
[data-theme="dark"] .gg-theme-toggle .gg-theme-toggle__sun { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .gg-theme-toggle .gg-theme-toggle__moon { display: block; }
    :root:not([data-theme="light"]) .gg-theme-toggle .gg-theme-toggle__sun { display: none; }
}

/* ---------- Misc ---------- */
.fade { transition: opacity .15s linear; }
.fade:not(.show) { opacity: 0; }
.invite-link-example { display: block; color: var(--gg-text-subtle); font-size: .8rem; margin-top: .25rem; }
.contact-info { padding: 1rem 0; }

/* ---------- Floating add-group button ---------- */
.gg-fab {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--gg-success);
    color: #fff !important;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--gg-shadow-lg);
    z-index: 1000; text-decoration: none;
    transition: transform var(--gg-transition), box-shadow var(--gg-transition);
}
.gg-fab:hover { transform: scale(1.05); color: #fff !important; }
.gg-fab svg { width: 28px; height: 28px; }

/* ---------- Scrollbar (subtle) ---------- */
.dropdown-menu::-webkit-scrollbar { width: 6px; }
.dropdown-menu::-webkit-scrollbar-thumb { background: var(--gg-border-strong); border-radius: 3px; }

/* ---------- Footer ---------- */
#footer { background: var(--gg-surface-alt); color: var(--gg-text-muted); }
[data-theme="dark"] #footer { background: #0f1115; color: var(--gg-text-subtle); }
#footer a { color: var(--gg-link); text-decoration: none; }
#footer a:hover { color: var(--gg-link-hover); }
.gg-footer-text { color: var(--gg-text-muted); }
[data-theme="dark"] .gg-footer-text { color: var(--gg-text-subtle); }
.gg-footer-social { display: inline-flex; gap: .75rem; align-items: center; }
.gg-footer-social a { color: var(--gg-text-muted); }
[data-theme="dark"] .gg-footer-social a { color: var(--gg-text-subtle); }
.gg-footer-social a:hover { color: var(--gg-link); }

/* ---------- Breadcrumb home icon ---------- */
.gg-breadcrumb-home { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; vertical-align: middle; }
.gg-breadcrumb-home svg { width: 20px; height: 20px; }

/* ---------- Welcome / list page widgets ---------- */
.gg-ad-banner { display: block; width: 100%; height: 160px; overflow: hidden; border-radius: var(--gg-radius); }
.gg-info-table { color: var(--gg-text-muted); border: 1px solid var(--gg-border); border-top: 0; }
.gg-info-table td { border-color: var(--gg-border); padding: .5rem .75rem; }
.gg-search-btn { height: 38px; }
.gg-empty-state { min-height: 60vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .75rem; }
.gg-loading, .gg-nomore { width: 100%; text-align: center; display: none; }
.gg-loading { padding: 1rem 0; }

/* Platform-root hero — same family as the homepage hero, color-tinted per
   platform. Replaces the legacy 4-row info-table that lived in
   partials/platform-hero.blade.php. Only renders on /{platform} (not
   /{platform}/{category} where the category page has its own layout). */
.gg-platform-hero {
    text-align: center;
    padding: 1.85rem 1.25rem 1.5rem;
    margin: 1rem 0 1.5rem;
    border-radius: .5rem;
    background: linear-gradient(135deg,
        rgba(127, 127, 127, .06),
        rgba(127, 127, 127, .02));
    border: 1px solid rgba(127, 127, 127, .15);
    border-left-width: 3px;
}
.gg-platform-hero--whatsapp { border-left-color: #25d366; background: linear-gradient(135deg, rgba(37, 211, 102, .07), rgba(37, 211, 102, .02)); }
.gg-platform-hero--telegram { border-left-color: #1ca1f1; background: linear-gradient(135deg, rgba(28, 161, 241, .07), rgba(28, 161, 241, .02)); }
.gg-platform-hero--discord  { border-left-color: #5865f2; background: linear-gradient(135deg, rgba(88, 101, 242, .07), rgba(88, 101, 242, .02)); }
[data-theme="dark"] .gg-platform-hero--whatsapp { background: linear-gradient(135deg, rgba(37, 211, 102, .12), rgba(37, 211, 102, .04)); }
[data-theme="dark"] .gg-platform-hero--telegram { background: linear-gradient(135deg, rgba(28, 161, 241, .12), rgba(28, 161, 241, .04)); }
[data-theme="dark"] .gg-platform-hero--discord  { background: linear-gradient(135deg, rgba(88, 101, 242, .12), rgba(88, 101, 242, .04)); }

.gg-platform-hero__title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 .65rem;
}
.gg-platform-hero__lead {
    max-width: 42rem;
    margin: 0 auto 1.1rem;
    font-size: .95rem;
    line-height: 1.55;
    opacity: .85;
}
.gg-platform-hero__stats {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem .85rem;
}
.gg-platform-hero__stats li {
    display: inline-flex;
    align-items: baseline;
    gap: .4rem;
    padding: .3rem .8rem;
    border: 1px solid rgba(127, 127, 127, .2);
    border-radius: 999px;
    background: rgba(127, 127, 127, .04);
    font-size: .8rem;
}
.gg-platform-hero__stat-label {
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .6;
    font-weight: 600;
    font-size: .7rem;
}
.gg-platform-hero__stat-value { font-weight: 600; }
.gg-platform-hero__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: center;
}
@media (max-width: 600px) {
    .gg-platform-hero { padding: 1.25rem 1rem 1.1rem; }
    .gg-platform-hero__stats li { font-size: .72rem; padding: .25rem .65rem; }
}

/* ===========================================================================
   Homepage magazine layout — hero, platform cards, category sections, tag cloud.
   Also reused by platform pages for the per-category sections at the top.
   =========================================================================== */

.gg-home-hero {
    text-align: center;
    padding: 2rem 1rem 1.75rem;
    margin: 1rem 0 1.75rem;
    border-radius: .5rem;
    background: linear-gradient(135deg,
        rgba(34, 197, 94, .08),
        rgba(99, 102, 241, .08));
    border: 1px solid rgba(127, 127, 127, .15);
}
[data-theme="dark"] .gg-home-hero {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, .12),
        rgba(99, 102, 241, .12));
}
.gg-home-hero__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 .75rem;
}
.gg-home-hero__accent {
    color: var(--gg-accent, #16a34a);
    white-space: nowrap;
}
.gg-home-hero__lead {
    max-width: 38rem;
    margin: 0 auto 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
    opacity: .85;
}
.gg-home-hero__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
}

/* "Browse by platform" 3-card row */
.gg-home-platforms {
    margin: 1.5rem 0 2.25rem;
}
.gg-home-platforms__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .85rem;
    margin-top: .85rem;
}
.gg-home-platform-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .85rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: .5rem;
    color: inherit;
    text-decoration: none;
    background: var(--gg-bg, transparent);
    transition: border-color .15s ease, transform .15s ease;
}
.gg-home-platform-card:hover,
.gg-home-platform-card:focus {
    border-color: rgba(127, 127, 127, .55);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}
.gg-home-platform-card__head { display: flex; flex-direction: column; gap: .15rem; }
.gg-home-platform-card__name { font-weight: 700; font-size: 1.1rem; }
.gg-home-platform-card__count { font-size: .85rem; opacity: .7; }
.gg-home-platform-card__cta { font-size: .8125rem; opacity: .8; align-self: flex-start; }
.gg-home-platform-card--whatsapp { border-left: 3px solid #25d366; }
.gg-home-platform-card--telegram { border-left: 3px solid #1ca1f1; }
.gg-home-platform-card--discord  { border-left: 3px solid #5865f2; }

/* Category sections (homepage + platform-page) */
.gg-home-section {
    margin: 1.75rem 0 2.25rem;
}
.gg-home-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(127, 127, 127, .18);
}
.gg-home-section__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.gg-home-section__title a {
    color: inherit;
    text-decoration: none;
}
.gg-home-section__title a:hover { text-decoration: underline; }
.gg-home-section__title--latest {
    margin-bottom: 1rem;
    margin-top: 2rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(127, 127, 127, .18);
}
.gg-home-section__more {
    font-size: .75rem;
    opacity: .75;
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
}
.gg-home-section__more:hover { opacity: 1; color: inherit; }
/* Horizontal-scroll carousel for category sections — replaces the old
   Bootstrap row/col grid. Cards have a fixed flex width so a row of 8 always
   overflows; native swipe handles touch, gg.js handles mouse drag. Scrollbar
   hidden; scroll-snap so cards stop cleanly. */
.gg-home-section__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: .25rem .15rem 1rem;
    margin: 0 -.15rem; /* bleed slightly so card shadow isn't clipped */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;
    cursor: grab;
}
.gg-home-section__grid::-webkit-scrollbar { display: none; }
.gg-home-section__grid:focus-visible {
    outline: 2px solid var(--gg-accent, #16a34a);
    outline-offset: 2px;
    border-radius: .35rem;
}
.gg-home-section__grid.gg-dragging,
.gg-home-section__grid:active { cursor: grabbing; }
/* Don't capture clicks mid-drag (gg.js toggles .gg-dragging). */
.gg-home-section__grid.gg-dragging a,
.gg-home-section__grid.gg-dragging button { pointer-events: none; }
.gg-home-section__card-cell {
    flex: 0 0 350px;
    max-width: 350px;
    scroll-snap-align: start;
}
@media (max-width: 600px) {
    .gg-home-section__card-cell { flex-basis: 86vw; max-width: 86vw; }
}

/* Popular tags chip cloud */
.gg-home-tags {
    margin: 2rem 0 2.5rem;
}
.gg-home-tag-cloud {
    list-style: none;
    padding: 0;
    margin: 1rem 0 .85rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.gg-home-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .85rem .4rem 1rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    font-size: .9rem;
    background: var(--gg-bg, transparent);
    transition: border-color .15s ease, transform .15s ease;
}
.gg-home-tag-chip:hover,
.gg-home-tag-chip:focus {
    border-color: rgba(127, 127, 127, .55);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}
.gg-home-tag-chip small {
    display: inline-block;
    padding: .05rem .4rem;
    font-size: .7rem;
    border-radius: .25rem;
    background: rgba(127, 127, 127, .15);
    opacity: .85;
    line-height: 1.4;
}

/* Bottom submission CTA */
.gg-home-cta {
    margin: 2.5rem 0 3rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    border-radius: .5rem;
    background: rgba(127, 127, 127, .04);
    border: 1px solid rgba(127, 127, 127, .15);
}
.gg-home-cta__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}
.gg-home-cta__lead {
    max-width: 32rem;
    margin: 0 auto 1rem;
    font-size: .95rem;
    opacity: .85;
}

/* ================================================================
   /categories hub — revamped: hero + filter + featured + grid + CTA.
   Old .gg-cat-hub-* classes were replaced with .gg-cathub-* below.
   ================================================================ */

.gg-cathub-hero {
    margin: 1rem 0 1.75rem;
    padding: 2rem 1.25rem 1.5rem;
    border-radius: .5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, .07), rgba(99, 102, 241, .07));
    border: 1px solid rgba(127, 127, 127, .15);
}
[data-theme="dark"] .gg-cathub-hero {
    background: linear-gradient(135deg, rgba(34, 197, 94, .12), rgba(99, 102, 241, .12));
}
.gg-cathub-hero__title {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 .65rem;
}
.gg-cathub-hero__lead {
    max-width: 42rem;
    margin: 0 auto 1.25rem;
    font-size: .98rem;
    line-height: 1.55;
    opacity: .85;
}
.gg-cathub-hero__stats {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .85rem;
    font-size: .85rem;
    opacity: .85;
}
.gg-cathub-hero__stats li {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    padding: .3rem .85rem;
    border-radius: 999px;
    background: rgba(127, 127, 127, .07);
    border: 1px solid rgba(127, 127, 127, .15);
}
.gg-cathub-hero__stats li span {
    font-weight: 700;
    font-size: 1rem;
}

/* Filter input */
.gg-cathub-filter {
    position: relative;
    max-width: 32rem;
    margin: 0 auto;
}
.gg-cathub-filter__icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: .55;
    pointer-events: none;
}
.gg-cathub-filter__input {
    width: 100%;
    padding: .6rem .9rem .6rem 2.4rem;
    font-size: .95rem;
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: .4rem;
    background: var(--gg-bg, rgba(127, 127, 127, .04));
    color: inherit;
}
.gg-cathub-filter__input:focus {
    outline: none;
    border-color: rgba(34, 197, 94, .55);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .15);
}
.gg-cathub-filter__empty {
    display: block;
    margin-top: .65rem;
    font-size: .85rem;
    opacity: .7;
    font-style: italic;
}

/* Section headings shared by featured + alphabetical */
.gg-cathub-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(127, 127, 127, .18);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}
.gg-cathub-section-title__sub {
    font-size: .75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .55;
}

/* Featured (top N) */
.gg-cathub-featured__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.gg-cathub-feature {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.1rem 1.15rem;
    border-radius: .5rem;
    background: rgba(127, 127, 127, .04);
    border: 1px solid rgba(127, 127, 127, .25);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.gg-cathub-feature:hover,
.gg-cathub-feature:focus-visible {
    border-color: rgba(34, 197, 94, .5);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.gg-cathub-feature__name,
.gg-cathub-feature__heading {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.gg-cathub-feature__heading a {
    color: inherit;
    text-decoration: none;
}
.gg-cathub-feature__heading a:hover,
.gg-cathub-feature__heading a:focus-visible {
    text-decoration: underline;
}
.gg-cathub-feature__count {
    font-size: .8125rem;
    opacity: .7;
}
.gg-cathub-feature__platforms {
    list-style: none;
    padding: 0;
    margin: .35rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

/* Full grid (alphabetical) */
.gg-cathub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .9rem;
    margin-bottom: 2rem;
}
.gg-cathub-card {
    padding: .85rem 1rem;
    border-radius: .4rem;
    background: rgba(127, 127, 127, .03);
    border: 1px solid rgba(127, 127, 127, .2);
    transition: border-color .15s ease, transform .15s ease;
}
.gg-cathub-card:hover {
    border-color: rgba(127, 127, 127, .5);
    transform: translateY(-1px);
}
.gg-cathub-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 .25rem;
    line-height: 1.3;
}
.gg-cathub-card__title a { color: inherit; text-decoration: none; }
.gg-cathub-card__title a:hover { text-decoration: underline; }
.gg-cathub-card__count {
    margin: 0 0 .55rem;
    font-size: .8125rem;
    opacity: .75;
}
.gg-cathub-card__count em { font-style: italic; opacity: .85; }
.gg-cathub-card__platforms {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

/* Platform pills used in both featured + grid cards */
.gg-cathub-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .15rem .5rem .15rem .55rem;
    font-size: .72rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid;
    color: inherit;
    text-decoration: none;
    line-height: 1.5;
    transition: background-color .15s ease, color .15s ease;
}
.gg-cathub-pill strong { font-weight: 700; opacity: .9; }
.gg-cathub-pill--wa  { color: #1ea957; border-color: rgba(37, 211, 102, .35); background: rgba(37, 211, 102, .08); }
.gg-cathub-pill--tg  { color: #1881c2; border-color: rgba(28, 161, 241, .35); background: rgba(28, 161, 241, .08); }
.gg-cathub-pill--dc  { color: #4954d8; border-color: rgba(88, 101, 242, .35); background: rgba(88, 101, 242, .08); }
/* Channel-pill variants reuse the parent platform's hue at deeper
   saturation so "WhatsApp Channels" reads as a sibling of "WhatsApp"
   rather than as a separate platform. */
.gg-cathub-pill--wac { color: #15803d; border-color: rgba(22, 163, 74, .45);  background: rgba(22, 163, 74, .12); }
.gg-cathub-pill--tgc { color: #0c5d96; border-color: rgba(14, 116, 178, .45); background: rgba(14, 116, 178, .12); }
.gg-cathub-pill--wa:hover  { background: rgba(37, 211, 102, .18); color: #1ea957; text-decoration: none; }
.gg-cathub-pill--tg:hover  { background: rgba(28, 161, 241, .18); color: #1881c2; text-decoration: none; }
.gg-cathub-pill--dc:hover  { background: rgba(88, 101, 242, .18); color: #4954d8; text-decoration: none; }
.gg-cathub-pill--wac:hover { background: rgba(22, 163, 74, .22);  color: #15803d; text-decoration: none; }
.gg-cathub-pill--tgc:hover { background: rgba(14, 116, 178, .22); color: #0c5d96; text-decoration: none; }
.gg-cathub-pill--empty { opacity: .35; cursor: default; }
.gg-cathub-pill--empty:hover { background: inherit; color: inherit; }

/* ─────────────────────────────────────────────────────────────────────
   Row-based hub list for category cards. Replaces the wrap-prone pill
   grid the categories page used to render. Each row is a full-width
   clickable target with a coloured platform dot, the hub label, and a
   right-aligned count pill. Empty hubs (count=0) render as inert
   <span>s — same row layout, dimmed, no hover-elevate.
   ───────────────────────────────────────────────────────────────────── */
.gg-cathub-hubs {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gg-cathub-hub {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gg-text);
    background: rgba(0, 0, 0, .025);
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
[data-theme="dark"] .gg-cathub-hub { background: rgba(255, 255, 255, .03); }
.gg-cathub-hub:not(.gg-cathub-hub--empty):hover {
    background: rgba(0, 0, 0, .05);
    border-color: var(--gg-border);
    text-decoration: none;
    transform: translateX(2px);
}
[data-theme="dark"] .gg-cathub-hub:not(.gg-cathub-hub--empty):hover {
    background: rgba(255, 255, 255, .06);
}
.gg-cathub-hub__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
    background: var(--gg-text-muted, #6b7280);
}
.gg-cathub-hub__name {
    flex: 1 1 auto;
    font-size: .85rem;
    font-weight: 500;
    color: var(--gg-text);
}
.gg-cathub-hub__count {
    font-size: .8rem;
    font-weight: 700;
    color: var(--gg-text-muted, #6b7280);
    font-variant-numeric: tabular-nums;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .05);
    min-width: 28px;
    text-align: center;
}
[data-theme="dark"] .gg-cathub-hub__count { background: rgba(255, 255, 255, .07); }
.gg-cathub-hub--empty { opacity: .4; cursor: default; }
.gg-cathub-hub--empty .gg-cathub-hub__count { background: transparent; }

/* Platform-specific dot colours. Channel variants use the parent
   platform's hue at deeper saturation so they read as siblings. */
.gg-cathub-hub--wa  .gg-cathub-hub__dot { background: #25d366; }
.gg-cathub-hub--wac .gg-cathub-hub__dot { background: #15803d; }
.gg-cathub-hub--tg  .gg-cathub-hub__dot { background: #1ca1f1; }
.gg-cathub-hub--tgc .gg-cathub-hub__dot { background: #0c5d96; }
.gg-cathub-hub--dc  .gg-cathub-hub__dot { background: #5865f2; }

/* Active rows tint the count pill with a faint platform colour so the
   eye groups each row by hub at a glance. */
.gg-cathub-hub--wa:not(.gg-cathub-hub--empty)  .gg-cathub-hub__count { color: #1ea957; background: rgba(37, 211, 102, .12); }
.gg-cathub-hub--wac:not(.gg-cathub-hub--empty) .gg-cathub-hub__count { color: #15803d; background: rgba(22, 163, 74, .14); }
.gg-cathub-hub--tg:not(.gg-cathub-hub--empty)  .gg-cathub-hub__count { color: #1881c2; background: rgba(28, 161, 241, .12); }
.gg-cathub-hub--tgc:not(.gg-cathub-hub--empty) .gg-cathub-hub__count { color: #0c5d96; background: rgba(14, 116, 178, .14); }
.gg-cathub-hub--dc:not(.gg-cathub-hub--empty)  .gg-cathub-hub__count { color: #4954d8; background: rgba(88, 101, 242, .12); }

/* CTA strip at the bottom */
.gg-cathub-cta {
    margin: 2.5rem 0 3rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    border-radius: .5rem;
    background: rgba(127, 127, 127, .04);
    border: 1px solid rgba(127, 127, 127, .15);
}
.gg-cathub-cta__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}
.gg-cathub-cta__lead {
    max-width: 32rem;
    margin: 0 auto 1rem;
    font-size: .95rem;
    opacity: .85;
}
.gg-cathub-cta__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

/* Visually hidden helper (sr-only equivalent if not already present). */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 600px) {
    .gg-cathub-hero { padding: 1.4rem 1rem 1.1rem; }
    .gg-cathub-section-title { font-size: 1.1rem; }
    .gg-cathub-pill { font-size: .68rem; padding: .12rem .45rem; }
}

/* /tags/{slug} indexable tag pages — light header copy above the listing. */
.gg-tag-summary {
    font-size: .95rem;
    margin: .5rem 0 1.25rem;
    opacity: .85;
}

/* Centralized /search page — filter sidebar + results layout. */
.gg-search-row { margin-top: 1rem; }
.gg-search-filters {
    position: sticky;
    top: 5rem; /* below the fixed nav */
    align-self: flex-start;
    padding-bottom: 1rem;
}
@media (max-width: 767.98px) {
    .gg-search-filters { position: static; }
}
.gg-search-form {
    padding: 1rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: .35rem;
    background: rgba(127, 127, 127, .03);
}
.gg-search-form__label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .65;
    margin: 0 0 .35rem;
}
.gg-search-form__clear {
    display: inline-block;
    margin-top: .75rem;
    font-size: .8125rem;
    text-decoration: underline;
    color: inherit;
    opacity: .65;
}
.gg-search-form__clear:hover { opacity: 1; color: inherit; }
.gg-search-summary {
    font-size: .9rem;
    margin: 0 0 1rem;
    opacity: .8;
}

/* Rich empty state on /{platform}/{category} when there are 0 public groups.
   Replaces the previous "giant void with one CTA" with an informative layout
   that surfaces alternatives so the page is useful even before it has groups. */
.gg-empty-rich {
    margin: 1.5rem 0 3rem;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: .5rem;
    background: rgba(127, 127, 127, .03);
}
.gg-empty-rich__head {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(127, 127, 127, .15);
}
.gg-empty-rich__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    line-height: 1.3;
}
.gg-empty-rich__lead {
    margin: 0 auto 1rem;
    max-width: 38rem;
    opacity: .8;
    font-size: .95rem;
    line-height: 1.55;
}
.gg-empty-rich__cta {
    margin-top: .25rem;
}
.gg-empty-rich__section {
    margin-top: 1.5rem;
}
.gg-empty-rich__subhead {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .65;
    margin: 0 0 .85rem;
}

/* Alternate-platform cards (same category on WhatsApp/Telegram/Discord) */
.gg-empty-rich__alts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
}
.gg-empty-rich__alt-card {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: .35rem;
    background: var(--gg-bg, transparent);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.gg-empty-rich__alt-card:hover,
.gg-empty-rich__alt-card:focus {
    border-color: rgba(127, 127, 127, .55);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}
.gg-empty-rich__alt-platform {
    font-weight: 600;
    font-size: 1rem;
}
.gg-empty-rich__alt-count {
    font-size: .8125rem;
    opacity: .7;
}

/* Popular-category cards */
.gg-empty-rich__cats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .65rem;
}
.gg-empty-rich__cat-card {
    display: flex;
    flex-direction: column;
    padding: .65rem .85rem;
    border: 1px solid rgba(127, 127, 127, .2);
    border-radius: .35rem;
    background: var(--gg-bg, transparent);
    color: inherit;
    text-decoration: none;
    font-size: .9rem;
    transition: border-color .15s ease;
}
.gg-empty-rich__cat-card:hover,
.gg-empty-rich__cat-card:focus {
    border-color: rgba(127, 127, 127, .5);
    color: inherit;
    text-decoration: none;
}
.gg-empty-rich__cat-name { font-weight: 600; }
.gg-empty-rich__cat-count { font-size: .75rem; opacity: .65; margin-top: .1rem; }
.gg-empty-rich__more {
    display: inline-block;
    margin-top: .85rem;
    font-size: .85rem;
    color: inherit;
    opacity: .75;
    text-decoration: underline;
}
.gg-empty-rich__more:hover { opacity: 1; color: inherit; }

/* Admin-curated category intro inside the empty state */
.gg-empty-rich__intro {
    font-size: .95rem;
    line-height: 1.6;
    opacity: .9;
}
.gg-empty-rich__intro p { margin: 0 0 .75rem; }
.gg-empty-rich__intro p:last-child { margin-bottom: 0; }
.gg-empty-rich__intro a { color: inherit; text-decoration: underline; }

/* Tag chips — links to /tags/{slug} */
.gg-empty-rich__tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.gg-empty-rich__tag-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem .3rem .85rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    font-size: .85rem;
    background: var(--gg-bg, transparent);
    transition: border-color .15s ease, transform .15s ease;
}
.gg-empty-rich__tag-chip:hover,
.gg-empty-rich__tag-chip:focus {
    border-color: rgba(127, 127, 127, .55);
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}
.gg-empty-rich__tag-chip small {
    display: inline-block;
    padding: .05rem .35rem;
    font-size: .7rem;
    border-radius: .25rem;
    background: rgba(127, 127, 127, .15);
    opacity: .85;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .gg-empty-rich { padding: 1.25rem 1rem; }
    .gg-empty-rich__title { font-size: 1.2rem; }
}

/* /private browse banner — gives a heads-up that the page is hidden from search. */
.gg-private-banner {
    margin: 1rem 0;
    padding: .75rem 1rem;
    border: 1px solid rgba(220, 38, 38, .25);
    background: rgba(254, 226, 226, .35);
    color: inherit;
    border-radius: .35rem;
    font-size: .9rem;
    line-height: 1.5;
}
[data-theme="dark"] .gg-private-banner {
    background: rgba(127, 29, 29, .15);
    border-color: rgba(220, 38, 38, .35);
}

/* Admin-curated category intro shown above the listing on /{platform}/{category}.
   Page-1 only; gives each category page unique body copy for Google. */
.gg-cat-intro {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid rgba(127, 127, 127, .35);
    background: rgba(127, 127, 127, .04);
    border-radius: .25rem;
    font-size: .95rem;
    line-height: 1.6;
}
.gg-cat-intro p { margin: 0 0 .75rem; }
.gg-cat-intro p:last-child { margin-bottom: 0; }
.gg-cat-intro h2,
.gg-cat-intro h3 { margin: .5rem 0 .5rem; font-weight: 600; }
.gg-cat-intro h2 { font-size: 1.15rem; }
.gg-cat-intro h3 { font-size: 1rem; }
.gg-cat-intro ul,
.gg-cat-intro ol { margin: 0 0 .75rem 1.25rem; padding: 0; }
.gg-cat-intro a { color: inherit; text-decoration: underline; }

/* Crawlable pagination on browse pages — used alongside JS infinite scroll
   so deeper pages are reachable from real <a> links for crawlers and no-JS users. */
.gg-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin: 1rem 0 1.5rem;
    font-size: .9rem;
}
.gg-pagination__link {
    display: inline-block;
    padding: .45rem 1rem;
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: .35rem;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.gg-pagination__link:hover,
.gg-pagination__link:focus {
    background: rgba(127, 127, 127, .08);
    border-color: rgba(127, 127, 127, .55);
    color: inherit;
    text-decoration: none;
}
.gg-pagination__link--disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}
.gg-pagination__status {
    opacity: .75;
}

/* ---------- Common headings ---------- */
.gg-faq-heading { font-weight: 600; font-size: 2rem; display: block; margin-top: 2rem; margin-bottom: 1rem; }
@media (max-width: 600px) { .gg-faq-heading { font-size: 1.5rem; } }
.gg-form-heading { font-weight: 700; margin: 0; font-size: 1.2rem; line-height: 1.5rem; }
.gg-section-title { font-weight: 900; font-size: 3rem; line-height: 1.1; }
@media (max-width: 768px) { .gg-section-title { font-size: 2rem; } }

/* ---------- About page ---------- */
.gg-about-row { margin-top: 4rem; margin-bottom: 4rem; }
.gg-about-col { display: flex; flex-direction: column; justify-content: center; }
.gg-about-img { width: 100%; max-width: 480px; height: auto; }
.gg-disc-list { padding-left: 1.25rem; list-style: disc; }

/* ---------- Join (group detail) page ---------- */
.gg-join-hero {
    text-align: center;
    padding: 1rem 0 1.5rem;
    margin-top: .5rem;
}
.gg-join-image-wrap { position: relative; width: 128px; height: 128px; margin: 0 auto 1rem; }
.gg-join-image {
    width: 128px; height: 128px;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .15);
    border: 3px solid var(--gg-surface);
    object-fit: cover;
}
[data-theme="dark"] .gg-join-image { box-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
.platform-overlay-icon { position: absolute; right: -6px; bottom: 4px; width: 36px; height: 36px; z-index: 2; }
.gg-join-row { position: relative; }
.gg-join-ad-overlay { text-align: center; position: absolute; left: 0; right: 0; z-index: 2; }
.gg-join-category { color: var(--gg-primary); text-decoration: none; }
.gg-join-category:hover { color: var(--gg-primary-hover); text-decoration: underline; }
.gg-tag-list {
    list-style: none;
    margin: 0 0 .5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    justify-content: center;
}
.gg-tag-list > li { display: inline-flex; }
.gg-tag-pill {
    display: inline-block;
    white-space: normal;
    color: #fff;
    background: var(--gg-danger);
    padding: 4px 10px;
    border-radius: var(--gg-radius-pill);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--gg-transition);
    border: 0;
    font-family: inherit;
}
.gg-tag-pill:hover { background: var(--gg-danger-hover); }
.gg-abandoned-card {
    border: 1px solid var(--gg-border);
    background: var(--gg-surface);
    padding: 1rem;
    border-radius: var(--gg-radius);
    margin-top: 1.5rem;
}
.gg-abandoned-card__title { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.gg-abandoned-card__note { text-align: left; color: var(--gg-danger); margin-top: 1rem; }
.gg-abandoned-card__note ul { list-style: disc; padding-left: 2rem; margin-bottom: 0; }
.gg-abandoned-banner {
    margin: 1rem 0;
    border: 1px solid var(--gg-border);
    padding: .75rem;
    border-radius: var(--gg-radius);
    font-weight: 700;
    color: var(--gg-text-muted);
    background: var(--gg-surface);
}
.gg-explore-btn {
    color: #fff !important;
    background: var(--gg-warning);
    padding: .5rem 1rem;
    text-decoration: none;
    border-radius: var(--gg-radius);
    display: inline-block;
}
.gg-explore-btn:hover { color: #fff !important; filter: brightness(.92); }

/* ---------- Disclaimer modal (theme-aware) ---------- */
.disclaimer-modal {
    position: fixed; inset: 0; z-index: 9999;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, .35);
    display: none;
    place-items: center;
    padding: 1rem;
}
.disclaimer-modal__card {
    background: var(--gg-surface);
    color: var(--gg-text);
    max-width: 22rem;
    width: 100%;
    padding: 1.5rem;
    border-radius: var(--gg-radius-lg);
    border: 1px solid var(--gg-border);
    box-shadow: var(--gg-shadow-lg);
}
.disclaimer-modal__title { font-size: 1.2rem; font-weight: 700; color: var(--gg-text); display: block; margin-bottom: .5rem; }
.disclaimer-modal__body { color: var(--gg-text-muted); }
.disclaimer-modal__body ul { padding-left: 1.25rem; margin-bottom: .5rem; }
.disclaimer-modal__hint { color: var(--gg-text); margin-bottom: .75rem; margin-top: .75rem; }
.disclaimer-modal__hint a { color: var(--gg-primary); text-decoration: underline; }
.disclaimer-modal__actions { display: flex; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
.disclaimer-modal__close-btn {
    border: 1px solid var(--gg-border-strong);
    background: transparent;
    color: var(--gg-text);
    padding: .35rem .9rem;
    border-radius: var(--gg-radius-sm);
    cursor: pointer;
}
.disclaimer-modal__close-btn:hover { background: var(--gg-surface-alt); }

/* ---------- Redirect overlay (#myModal full-screen splash) ---------- */
.gg-redirect-screen {
    width: 100vw; min-height: 100vh;
    border: 0; border-radius: 0;
    background: linear-gradient(to bottom, #ff432c, #ff9301) !important;
    color: #fff;
}
.gg-redirect-body { text-align: center; min-height: 100vh; padding: 1rem; color: #fff; }
.gg-redirect-body h4 { color: #fff; font-weight: 700; margin: .5rem 0; }
.gg-redirect-body strong { color: #fff; font-weight: 700; font-size: 2rem; display: block; margin-bottom: .75rem; }
.gg-redirect-body .gg-redirect-tagline { color: #fff; margin-bottom: 1.5rem; }
.gg-redirect-spacer { height: 17rem; width: 100%; }

/* ---------- Group hero (singular group) ---------- */
.gg-group-title { font-size: 1.5rem; font-weight: 700; margin: .5rem 0; }
.gg-group-desc { color: var(--gg-text-muted); margin-bottom: 1rem; }
@media (max-width: 600px) {
    .group-mobile-view { margin-top: 0; margin-bottom: 0; }
}

/* ---------- Description text muted ---------- */
.gg-text-muted-soft { color: var(--gg-text-subtle); font-size: .8rem; }

/* ---------- Adsbygoogle wrapper ---------- */
ins.adsbygoogle { display: block; }

/* ---------- Social share (group card footer) ---------- */
.gg-share { display: inline-flex; gap: .4rem; align-items: center; }
.gg-share a { line-height: 0; }
.gg-share__icon { width: 2rem; height: 2rem; }

/* ---------- 404 / error page ---------- */
.gg-404 { text-align: center; padding: 1rem 0 3rem; }
.gg-404__code {
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 .25rem;
    color: var(--gg-primary);
    letter-spacing: -.04em;
}
.gg-404__title { font-size: 1.75rem; margin: 0 0 .75rem; }
.gg-404__lead { color: var(--gg-text-muted); margin-bottom: 1.5rem; }
.gg-404__nav {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 22rem;
    margin: 0 auto 1.5rem;
}
.gg-404__nav .btn { width: 100%; }
.gg-404__hint { color: var(--gg-text-muted); }
.gg-404__hint a { color: var(--gg-primary); }

/* ---------- FAQ accordion (#accordion on addgroup, about) ---------- */
#accordion .card { border-radius: var(--gg-radius); margin-bottom: .5rem; }
#accordion .card-header { background: var(--gg-surface-alt); border-bottom: 1px solid var(--gg-border); }
#accordion .card-body { background: var(--gg-surface); border-radius: 0; color: var(--gg-text); }
#accordion .card-link { color: var(--gg-text); }
#accordion .card-link h2 { color: var(--gg-text) !important; font-size: 1rem; margin: 0; font-weight: 600; }
[data-toggle="collapse"] > h2 { position: relative; padding-right: 1.5rem; }
[data-toggle="collapse"] > h2::after {
    display: inline-block;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\276F";
    transform: rotate(90deg);
    transition: transform .25s linear;
    position: absolute; right: 0; top: 50%; margin-top: -.5em;
}
[data-toggle="collapse"].collapsed > h2::after { transform: rotate(270deg); }

/* ---------- Tagify (theme-aware overrides) ---------- */
.tagify {
    --tags-border-color: var(--gg-border-strong);
    --tags-hover-border-color: var(--gg-primary);
    --tags-focus-border-color: var(--gg-primary);
    --tag-bg: var(--gg-surface-alt);
    --tag-hover: var(--gg-surface-alt);
    --tag-text-color: var(--gg-text);
    --tag-text-color--edit: var(--gg-text);
    --tag-remove-bg: rgba(227, 52, 47, .15);
    --tag-remove-btn-bg: transparent;
    --tag-remove-btn-bg--hover: var(--gg-danger);
    --tag-pad: .35em .6em;
    --tag-inset-shadow-size: 1.15em;
    --placeholder-color: var(--gg-text-subtle);
    --placeholder-color-focus: var(--gg-text-muted);
    --tagify-dd-color-primary: var(--gg-primary);
    --tagify-dd-bg-color: var(--gg-surface);
    --tagify-dd-text-color: var(--gg-text);
    --loader-size: .8em;

    background-color: var(--gg-surface);
    color: var(--gg-text);
    border: 1px solid var(--gg-border-strong);
    border-radius: var(--gg-radius);
    transition: border-color var(--gg-transition), box-shadow var(--gg-transition);
}
.tagify:hover { border-color: var(--gg-border-strong); }
.tagify.tagify--focus {
    border-color: var(--gg-primary);
    box-shadow: 0 0 0 3px rgba(255, 85, 31, .15);
}
.tagify__input { color: var(--gg-text); }
.tagify__input::before { color: var(--gg-text-subtle); }
/* Honor per-tag --tag-bg set by transformTag() in JS; fall back to surface */
.tagify__tag > div {
    color: #1a1a1a;
    background: var(--tag-bg, var(--gg-surface-alt));
}
.tagify__tag > div::before {
    background: var(--tag-bg, var(--gg-surface-alt)) !important;
    box-shadow: 0 0 0 var(--tag-inset-shadow-size, 1.15em) var(--tag-bg, var(--gg-surface-alt)) inset !important;
}
.tagify__tag__removeBtn { color: rgba(0, 0, 0, .55); }
.tagify__tag__removeBtn:hover { color: #fff; background: var(--gg-danger); }
.tagify__tag__removeBtn:hover + div > span { opacity: .5; }
.tagify__dropdown__wrapper {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    color: var(--gg-text);
    box-shadow: var(--gg-shadow-lg);
}
.tagify__dropdown__item { color: var(--gg-text); }
.tagify__dropdown__item--active,
.tagify__dropdown__item:hover { background: var(--gg-surface-alt); color: var(--gg-text); }

/* ================================================================
   /about + /contact info pages — shared "magazine info" components.
   Hero strip, sectioned cards, numbered steps, FAQ details, CTA.
   Visually consistent with the /categories hub but generic enough
   to be reused on any future static-ish info page.
   ================================================================ */

.gg-page-hero {
    position: relative;
    overflow: hidden;
    margin: 1rem 0 1.75rem;
    padding: 2.5rem 1.5rem 2rem;
    border-radius: .65rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, .08), rgba(99, 102, 241, .08));
    border: 1px solid rgba(127, 127, 127, .15);
}
.gg-page-hero::before,
.gg-page-hero::after {
    content: '';
    position: absolute;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    filter: blur(64px);
    opacity: .35;
    pointer-events: none;
    z-index: 0;
}
.gg-page-hero::before {
    top: -8rem;
    left: -6rem;
    background: rgba(34, 197, 94, .45);
}
.gg-page-hero::after {
    bottom: -8rem;
    right: -6rem;
    background: rgba(99, 102, 241, .35);
}
.gg-page-hero > * { position: relative; z-index: 1; }
[data-theme="dark"] .gg-page-hero {
    background: linear-gradient(135deg, rgba(34, 197, 94, .14), rgba(99, 102, 241, .14));
}
[data-theme="dark"] .gg-page-hero::before { opacity: .25; }
[data-theme="dark"] .gg-page-hero::after { opacity: .2; }
.gg-page-hero__eyebrow {
    display: inline-block;
    margin-bottom: .85rem;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, .14);
    color: var(--gg-success, #22c55e);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.gg-page-hero__title {
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.18;
    margin: 0 auto .85rem;
    max-width: 46rem;
    letter-spacing: -.01em;
}
.gg-page-hero__accent {
    color: var(--gg-success, #22c55e);
    white-space: nowrap;
}
.gg-page-hero__accent--wa { color: #25d366; }
.gg-page-hero__accent--tg { color: #1ca1f1; }
.gg-page-hero__accent--dc { color: #5865f2; }
.gg-page-hero__lead {
    max-width: 44rem;
    margin: 0 auto 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    opacity: .85;
}
.gg-page-hero__stats {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .75rem;
    font-size: .85rem;
    opacity: .9;
}
.gg-page-hero__stats li {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(127, 127, 127, .07);
    border: 1px solid rgba(127, 127, 127, .15);
}
.gg-page-hero__stats li span {
    font-weight: 700;
    font-size: 1.05rem;
}
.gg-page-hero__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

/* Per-platform mini-tally below the actions */
.gg-page-hero__platforms {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
}
.gg-platform-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .8rem;
    border-radius: 999px;
    font-size: .82rem;
    border: 1px solid rgba(127, 127, 127, .2);
    background: var(--gg-surface, rgba(255, 255, 255, .55));
}
.gg-platform-chip svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.gg-platform-chip strong { font-weight: 700; }
.gg-platform-chip--wa { color: #128c7e; border-color: rgba(37, 211, 102, .35); }
.gg-platform-chip--wa svg { fill: #25d366; }
.gg-platform-chip--tg { color: #1881c2; border-color: rgba(28, 161, 241, .35); }
.gg-platform-chip--tg svg { fill: #1ca1f1; }
.gg-platform-chip--dc { color: #4954d8; border-color: rgba(88, 101, 242, .35); }
.gg-platform-chip--dc svg { fill: #5865f2; }
[data-theme="dark"] .gg-platform-chip { background: rgba(255, 255, 255, .04); }
[data-theme="dark"] .gg-platform-chip--wa { color: #4ee495; }
[data-theme="dark"] .gg-platform-chip--tg { color: #5ec3ff; }
[data-theme="dark"] .gg-platform-chip--dc { color: #8b95ff; }

/* "Jump to form" anchor on the contact hero */
.gg-page-hero__jump {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 1.25rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gg-success, #22c55e);
    text-decoration: none;
}
.gg-page-hero__jump:hover { text-decoration: underline; }
.gg-page-hero__jump svg {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}
.gg-page-hero__jump:hover svg { transform: translateY(2px); }

/* Section blocks (story / values / steps / faq) */
.gg-info-section {
    margin: 2rem 0;
}
.gg-info-section__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(127, 127, 127, .18);
}

/* Long-form prose */
.gg-info-prose {
    max-width: 46rem;
    line-height: 1.65;
    font-size: 1rem;
}
.gg-info-prose p {
    margin: 0 0 1rem;
    opacity: .9;
}
.gg-info-prose__hint {
    max-width: 46rem;
    margin: 0 0 1.25rem;
    font-size: .92rem;
    line-height: 1.55;
    opacity: .75;
}

/* Card grid (values, contact reasons) */
.gg-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: .85rem;
}
.gg-info-card {
    position: relative;
    padding: 1.25rem 1.15rem 1.1rem;
    border: 1px solid rgba(127, 127, 127, .18);
    border-radius: .55rem;
    background: var(--gg-surface, rgba(255, 255, 255, .5));
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.gg-info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, .35);
    box-shadow: 0 6px 20px rgba(34, 197, 94, .08);
}
[data-theme="dark"] .gg-info-card { background: rgba(255, 255, 255, .03); }
.gg-info-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, .14), rgba(34, 197, 94, .05));
    color: var(--gg-success, #22c55e);
    margin-bottom: .85rem;
}
.gg-info-card__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}
.gg-info-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 .4rem;
    line-height: 1.3;
}
.gg-info-card p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    opacity: .82;
}
.gg-info-card a { color: var(--gg-success, #22c55e); font-weight: 600; }

/* Numbered steps — connector line between circles for visual flow */
.gg-info-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0;
    position: relative;
}
.gg-info-steps > li {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.15rem 1.1rem 1rem;
    border: 1px solid rgba(127, 127, 127, .18);
    border-radius: .55rem;
    background: var(--gg-surface, rgba(255, 255, 255, .5));
    margin-bottom: .65rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.gg-info-steps > li:hover {
    border-color: rgba(34, 197, 94, .35);
    box-shadow: 0 4px 14px rgba(34, 197, 94, .06);
}
[data-theme="dark"] .gg-info-steps > li { background: rgba(255, 255, 255, .03); }
.gg-info-steps > li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: calc(1rem + 1.15rem);
    top: 100%;
    width: 2px;
    height: .65rem;
    background: linear-gradient(to bottom, rgba(34, 197, 94, .55), rgba(34, 197, 94, 0));
    z-index: 1;
}
.gg-info-steps__num {
    flex: 0 0 2.3rem;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(34, 197, 94, .25);
}
.gg-info-steps__title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: .15rem 0 .3rem;
    line-height: 1.3;
}
.gg-info-steps > li > div { flex: 1; min-width: 0; }
.gg-info-steps > li > div > p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    opacity: .82;
}

/* FAQ accordion */
.gg-faq {
    display: grid;
    gap: .55rem;
    max-width: 50rem;
}
.gg-faq__item {
    border: 1px solid rgba(127, 127, 127, .18);
    border-radius: .5rem;
    background: var(--gg-surface, rgba(255, 255, 255, .5));
    padding: 0 1.1rem;
    transition: border-color .15s ease;
}
.gg-faq__item:hover { border-color: rgba(34, 197, 94, .25); }
.gg-faq__item[open] {
    border-color: rgba(34, 197, 94, .4);
    background: linear-gradient(180deg, rgba(34, 197, 94, .04), transparent);
}
[data-theme="dark"] .gg-faq__item { background: rgba(255, 255, 255, .03); }
.gg-faq__item > summary {
    cursor: pointer;
    list-style: none;
    padding: .9rem 0;
    font-weight: 600;
    font-size: .98rem;
    position: relative;
    padding-right: 2rem;
    color: var(--gg-text);
}
.gg-faq__item > summary:hover { color: var(--gg-success, #22c55e); }
.gg-faq__item > summary::-webkit-details-marker { display: none; }
.gg-faq__item > summary::after {
    content: '';
    position: absolute;
    right: .15rem;
    top: 50%;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: -.7rem;
    border-radius: 50%;
    background-color: rgba(34, 197, 94, .12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: .85rem;
    transition: transform .2s ease;
}
.gg-faq__item[open] > summary::after { transform: rotate(180deg); }
.gg-faq__item > p {
    margin: 0;
    padding: 0 0 1.1rem;
    font-size: .94rem;
    line-height: 1.65;
    opacity: .85;
}
.gg-faq__item a { color: var(--gg-success, #22c55e); font-weight: 600; }

/* Bottom CTA strip */
.gg-info-cta {
    position: relative;
    overflow: hidden;
    margin: 2.5rem 0 3rem;
    padding: 2.25rem 1.25rem;
    text-align: center;
    border-radius: .65rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, .08), rgba(99, 102, 241, .06));
    border: 1px solid rgba(34, 197, 94, .25);
}
.gg-info-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, .25);
    filter: blur(56px);
    pointer-events: none;
}
.gg-info-cta > * { position: relative; z-index: 1; }
.gg-info-cta__title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
}
.gg-info-cta__lead {
    max-width: 36rem;
    margin: 0 auto 1.1rem;
    font-size: .95rem;
    line-height: 1.55;
    opacity: .85;
}
.gg-info-cta__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: center;
}

/* Contact form (gg-styled, replaces the previous Tailwind form) */
.gg-contact-form {
    max-width: 44rem;
    padding: 1.5rem;
    border: 1px solid rgba(127, 127, 127, .18);
    border-radius: .65rem;
    background: var(--gg-surface, rgba(255, 255, 255, .5));
}
[data-theme="dark"] .gg-contact-form { background: rgba(255, 255, 255, .03); }
.gg-contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.gg-contact-form__field { display: block; margin-bottom: 1rem; }
.gg-contact-form__field label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--gg-text);
    opacity: .9;
}
.gg-contact-form__input,
.gg-contact-form__textarea {
    width: 100%;
    padding: .7rem .95rem;
    border: 1.5px solid rgba(127, 127, 127, .25);
    border-radius: .5rem;
    background: var(--gg-bg, rgba(127, 127, 127, .03));
    color: inherit;
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.gg-contact-form__textarea { resize: vertical; min-height: 10rem; line-height: 1.55; }
.gg-contact-form__input:hover,
.gg-contact-form__textarea:hover {
    border-color: rgba(127, 127, 127, .4);
}
.gg-contact-form__input:focus,
.gg-contact-form__textarea:focus {
    outline: none;
    border-color: rgba(34, 197, 94, .65);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
    background: var(--gg-bg, #fff);
}
[data-theme="dark"] .gg-contact-form__input:focus,
[data-theme="dark"] .gg-contact-form__textarea:focus {
    background: rgba(0, 0, 0, .25);
}
.gg-contact-form__input.is-invalid,
.gg-contact-form__textarea.is-invalid {
    border-color: rgba(239, 68, 68, .65);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}
.gg-contact-form__error {
    display: block;
    margin-top: .4rem;
    font-size: .82rem;
    color: #ef4444;
}
.gg-contact-form__success {
    display: block;
    padding: .85rem 1.1rem;
    margin-bottom: 1.1rem;
    border-radius: .5rem;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    color: var(--gg-text);
    font-size: .92rem;
}
.gg-contact-form__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .5rem;
}
.gg-contact-form__submit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.gg-contact-form__submit svg {
    width: 16px;
    height: 16px;
}
.gg-contact-form__note {
    font-size: .82rem;
    opacity: .65;
    line-height: 1.4;
}
.gg-contact-form__note a { color: inherit; text-decoration: underline; }

@media (max-width: 600px) {
    .gg-page-hero { padding: 1.6rem 1rem 1.25rem; }
    .gg-info-section { margin: 1.5rem 0; }
    .gg-info-section__title { font-size: 1.15rem; }
    .gg-info-cards { grid-template-columns: 1fr; }
    .gg-info-steps > li { padding: .85rem .9rem; gap: .7rem; }
    .gg-contact-form__row { grid-template-columns: 1fr; }
}

/* ── Announcement banner ───────────────────────────────────────────────── */
:root {
    --ann-info-bg: #eff6ff;    --ann-info-text: #1e40af;
    --ann-success-bg: #f0fdf4; --ann-success-text: #166534;
    --ann-warning-bg: #fffbeb; --ann-warning-text: #92400e;
    --ann-danger-bg: #fef2f2;  --ann-danger-text: #991b1b;
}
[data-theme="dark"] {
    --ann-info-bg: #1e3a5f;    --ann-info-text: #bfdbfe;
    --ann-success-bg: #14532d; --ann-success-text: #bbf7d0;
    --ann-warning-bg: #451a03; --ann-warning-text: #fde68a;
    --ann-danger-bg: #450a0a;  --ann-danger-text: #fecaca;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ann-info-bg: #1e3a5f;    --ann-info-text: #bfdbfe;
        --ann-success-bg: #14532d; --ann-success-text: #bbf7d0;
        --ann-warning-bg: #451a03; --ann-warning-text: #fde68a;
        --ann-danger-bg: #450a0a;  --ann-danger-text: #fecaca;
    }
}
.gg-announcement {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem 1rem;
    font-size: .875rem;
    line-height: 1.4;
    margin-top: var(--gg-navbar-h);
    border-bottom: 1px solid rgba(127,127,127,.15);
    position: relative;
    z-index: 1029;
}
.gg-announcement--info    { background: var(--ann-info-bg);    color: var(--ann-info-text); }
.gg-announcement--success { background: var(--ann-success-bg); color: var(--ann-success-text); }
.gg-announcement--warning { background: var(--ann-warning-bg); color: var(--ann-warning-text); }
.gg-announcement--danger  { background: var(--ann-danger-bg);  color: var(--ann-danger-text); }
.gg-announcement__msg  { flex: 1; text-align: center; }
.gg-announcement__link {
    white-space: nowrap;
    font-weight: 600;
    text-decoration: underline;
    color: inherit;
    margin-left: .4rem;
}
.gg-announcement__link:hover { opacity: .8; color: inherit; }
.gg-announcement__dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: .55;
    padding: .2rem .35rem;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: .25rem;
}
.gg-announcement__dismiss:hover { opacity: 1; background: rgba(127,127,127,.15); }

/* ── Tom Select (tag picker on the group submit page) ──────────────────── */
.ts-wrapper.multi .ts-control,
.ts-wrapper .ts-control {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border-strong);
    border-radius: var(--gg-radius-sm);
    color: var(--gg-text);
    padding: .45rem .6rem;
    min-height: 42px;
    box-shadow: none;
    cursor: text;
}
.ts-wrapper.multi .ts-control:focus-within,
.ts-wrapper .ts-control:focus-within { border-color: var(--gg-primary); box-shadow: 0 0 0 2px rgba(255,85,31,.2); }
.ts-wrapper.multi .ts-control .item {
    background: var(--gg-primary);
    color: #fff;
    border-radius: var(--gg-radius-pill);
    border: none;
    padding: .15rem .55rem;
    font-size: .82rem;
    font-weight: 600;
}
.ts-wrapper.multi .ts-control .item .remove {
    color: rgba(255,255,255,.8);
    border-left: 1px solid rgba(255,255,255,.35);
    margin-left: .3rem;
    padding-left: .3rem;
}
.ts-wrapper.multi .ts-control .item .remove:hover { color: #fff; }
.ts-control input { color: var(--gg-text) !important; }
.ts-control input::placeholder { color: var(--gg-text-subtle); }
.ts-dropdown {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-top: none;
    border-radius: 0 0 var(--gg-radius-sm) var(--gg-radius-sm);
    color: var(--gg-text);
    box-shadow: var(--gg-shadow);
}
.ts-dropdown .option { padding: .45rem .75rem; cursor: pointer; }
.ts-dropdown .option:hover,
.ts-dropdown .option.active { background: var(--gg-surface-alt); color: var(--gg-text); }
.ts-dropdown .no-results { padding: .5rem .75rem; color: var(--gg-text-muted); font-size: .9rem; }

/* ════════════════════════════════════════════════════════════════════
   Join page — redesigned hero card (2026-04-30)
   Composes existing CSS variables; full dark-mode parity via
   [data-theme="dark"] cascade on :root.
   ════════════════════════════════════════════════════════════════════ */

.gg-join-card {
    position: relative;
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    padding: 2.25rem 1.5rem 1.75rem;
    margin-top: .75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(15, 17, 21, .04);
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
@media (min-width: 720px) {
    .gg-join-card { padding: 2.75rem 2.25rem 2rem; }
}
[data-theme="dark"] .gg-join-card { box-shadow: 0 6px 32px rgba(0, 0, 0, .35); }

/* Soft platform-tinted halo behind the avatar — pure decoration. */
.gg-join-card__halo {
    position: absolute; inset: -40% 0 auto 0; height: 320px;
    background: radial-gradient(closest-side, var(--gg-primary-soft), transparent 70%);
    z-index: -1;
    opacity: .9;
}
.gg-platform-whatsapp .gg-join-card__halo { background: radial-gradient(closest-side, rgba(37, 211, 102, .18), transparent 70%); }
.gg-platform-telegram .gg-join-card__halo { background: radial-gradient(closest-side, rgba(34, 158, 217, .18), transparent 70%); }
.gg-platform-discord  .gg-join-card__halo { background: radial-gradient(closest-side, rgba(88, 101, 242, .18), transparent 70%); }

.gg-join-card__body { position: relative; }

/* Meta pills strip (platform / category / listed-on) */
.gg-join-meta-pills { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .25rem 0 .9rem; }
.gg-meta-pill {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: var(--gg-radius-pill);
    font-size: .72rem; font-weight: 600;
    background: var(--gg-surface-alt);
    color: var(--gg-text-muted);
    border: 1px solid var(--gg-border);
    text-decoration: none;
    transition: background var(--gg-transition), color var(--gg-transition);
}
.gg-meta-pill--category { color: var(--gg-primary); }
.gg-meta-pill--category:hover { background: var(--gg-primary-soft); color: var(--gg-primary-hover); text-decoration: none; }
.gg-platform-whatsapp .gg-meta-pill--platform { background: rgba(37, 211, 102, .12); color: #1a8a47; border-color: rgba(37, 211, 102, .35); }
.gg-platform-telegram .gg-meta-pill--platform { background: rgba(34, 158, 217, .12); color: #1668a3; border-color: rgba(34, 158, 217, .35); }
.gg-platform-discord  .gg-meta-pill--platform { background: rgba(88, 101, 242, .14); color: #4954c2; border-color: rgba(88, 101, 242, .35); }
[data-theme="dark"] .gg-platform-whatsapp .gg-meta-pill--platform { color: #4ade80; }
[data-theme="dark"] .gg-platform-telegram .gg-meta-pill--platform { color: #60a5fa; }
[data-theme="dark"] .gg-platform-discord  .gg-meta-pill--platform { color: #a5b4fc; }

/* Primary CTA — large, contrasting, with arrow icon */
.gg-join-cta-row { display: flex; flex-direction: column; align-items: center; gap: .65rem; margin-top: 1.25rem; }
.gg-join-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    height: 44px;                /* fixed height keeps it aligned with .gg-icon-btn */
    padding: 0 1.5rem;
    font-size: .95rem; font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--gg-primary), var(--gg-primary-hover));
    border: 0;
    border-radius: var(--gg-radius-pill);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 85, 31, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform var(--gg-transition), box-shadow var(--gg-transition), filter var(--gg-transition);
    text-decoration: none;
    letter-spacing: .01em;
    white-space: nowrap;
}
.gg-join-cta:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 10px 24px rgba(255, 85, 31, .32), inset 0 1px 0 rgba(255, 255, 255, .3); color: #fff; text-decoration: none; }
.gg-join-cta:active { transform: translateY(0); }
.gg-join-cta:focus-visible { outline: 3px solid var(--gg-primary-soft); outline-offset: 3px; }
.gg-join-cta__icon { transition: transform var(--gg-transition); flex-shrink: 0; }
.gg-join-cta:hover .gg-join-cta__icon { transform: translateX(3px); }

/* Mobile: actions wrap to a full row under the title — let the Join button
   fill the leftover width next to the share icon for a tidy 2-button line.
   Slightly slimmer height so it doesn't tower over the rest of the card. */
@media (max-width: 720px) {
    .gg-join-header__actions { width: 100%; gap: .5rem; }
    .gg-join-cta { height: 42px; padding: 0 1.1rem; font-size: .9rem; flex: 1 1 auto; min-width: 0; }
    .gg-icon-btn { height: 42px; width: 42px; flex-shrink: 0; }
}

.gg-join-trust {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .78rem; color: var(--gg-text-muted);
}
.gg-join-trust__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .15);
}

/* ───── Long-description rich card ───── */
.gg-rich-card {
    margin: 1rem 0 2rem;
    padding: 1.5rem 1.25rem;
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
}
@media (min-width: 720px) {
    .gg-rich-card { padding: 1.75rem 2rem; }
}
.gg-rich-card__heading {
    font-size: 1.15rem; font-weight: 700;
    margin: 0 0 .85rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--gg-border);
    color: var(--gg-text);
}

/* Scoped typography for sanitised admin-authored HTML — keeps third-party
   pasted markup from breaking out of the card. */
.gg-rich-html { color: var(--gg-text); line-height: 1.65; font-size: .95rem; }
.gg-rich-html p { margin: 0 0 .8rem; }
.gg-rich-html p:last-child { margin-bottom: 0; }
.gg-rich-html h5 { font-size: 1rem; font-weight: 700; margin: 1.1rem 0 .4rem; }
.gg-rich-html h6 { font-size: .9rem; font-weight: 700; margin: 1rem 0 .35rem; color: var(--gg-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.gg-rich-html blockquote {
    margin: .75rem 0;
    padding: .5rem .75rem;
    border-left: 3px solid var(--gg-border-strong);
    background: var(--gg-surface-alt);
    color: var(--gg-text);
}
.gg-rich-html ul,
.gg-rich-html ol { margin: 0 0 .8rem 1.25rem; padding: 0; }
.gg-rich-html ul { list-style: disc; }
.gg-rich-html ol { list-style: decimal; }
.gg-rich-html li { margin-bottom: .25rem; }
.gg-rich-html strong, .gg-rich-html b { font-weight: 700; }
.gg-rich-html em, .gg-rich-html i { font-style: italic; }
.gg-rich-html a {
    color: var(--gg-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.gg-rich-html a:hover { color: var(--gg-primary-hover); }
.gg-rich-html table {
    width: 100%;
    border-collapse: collapse;
    margin: .75rem 0 1rem;
    font-size: .9rem;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-sm);
    overflow: hidden;
}
.gg-rich-html th,
.gg-rich-html td { border: 1px solid var(--gg-border); padding: .5rem .65rem; text-align: left; vertical-align: top; }
.gg-rich-html thead th { background: var(--gg-surface-alt); font-weight: 700; color: var(--gg-text); }
.gg-rich-html tbody tr:nth-child(even) { background: var(--gg-surface-alt); }

/* ════════════════════════════════════════════════════════════════════
   Join page v2 — two-column shell (hero strip + main + sidebar)
   Top.gg-inspired layout. Composes existing CSS variables; full
   dark-mode parity via [data-theme="dark"] cascade.
   ════════════════════════════════════════════════════════════════════ */

.gg-join-shell { padding: 0; margin-top: .5rem; }

/* ─────── Hero strip ─────── */
.gg-join-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 1.5rem;
    row-gap: 1rem;
    align-items: start;          /* avatar pinned to top, meta + tags grow downward */
    padding: 1.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gg-border);
    position: relative;
}
@media (max-width: 720px) {
    .gg-join-header {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 1.25rem 1rem 1.25rem;
        column-gap: 1rem;
    }
    .gg-join-header__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

.gg-join-header__avatar { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.gg-join-header__img {
    width: 112px; height: 112px;
    border-radius: var(--gg-radius-lg);
    border: 2px solid var(--gg-surface);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    object-fit: cover;
    display: block;
}
@media (max-width: 720px) {
    .gg-join-header__avatar { width: 88px; height: 88px; }
    .gg-join-header__img    { width: 88px; height: 88px; }
}
[data-theme="dark"] .gg-join-header__img { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }

/* Platform overlay is now a clickable link to the platform browse hub. The
   <a> wrapper carries the layout (absolute, square), the <img> inside
   inherits its dimensions. Hover lifts to signal interactivity. */
.gg-join-header__platform-link {
    position: absolute; right: -8px; bottom: -8px;
    width: 30px; height: 30px;
    z-index: 2;
    line-height: 0;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    transition: transform var(--gg-transition), box-shadow var(--gg-transition);
}
.gg-join-header__platform-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    opacity: 0;
    transition: opacity var(--gg-transition);
}
.gg-join-header__platform-link:hover { transform: translateY(-1px) scale(1.05); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.gg-join-header__platform { width: 100%; height: 100%; border-radius: 50%; display: block; }
@media (max-width: 720px) {
    .gg-join-header__platform-link { width: 30px; height: 30px; right: -8px; bottom: -8px; }
}

.gg-join-header__meta { min-width: 0; align-self: center; }
.gg-join-header__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .35rem;
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--gg-text);
    word-break: break-word;
}
@media (min-width: 720px)  { .gg-join-header__title { font-size: 2rem; } }
@media (min-width: 1200px) { .gg-join-header__title { font-size: 2.25rem; } }

.gg-join-header__sub { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; color: var(--gg-text-muted); }
.gg-join-header__platform-chip {
    display: inline-flex; align-items: center;
    padding: 3px 9px;
    font-size: .72rem; font-weight: 700;
    border-radius: var(--gg-radius-sm);
    background: var(--gg-surface-alt);
    color: var(--gg-text-muted);
    border: 1px solid var(--gg-border);
    text-decoration: none;
    transition: filter var(--gg-transition), text-decoration var(--gg-transition);
}
.gg-join-header__platform-chip:hover { text-decoration: none; filter: brightness(.95); }
.gg-platform-whatsapp .gg-join-header__platform-chip { background: rgba(37, 211, 102, .12); color: #1a8a47; border-color: rgba(37, 211, 102, .35); }
.gg-platform-telegram .gg-join-header__platform-chip { background: rgba(34, 158, 217, .12); color: #1668a3; border-color: rgba(34, 158, 217, .35); }
.gg-platform-discord  .gg-join-header__platform-chip { background: rgba(88, 101, 242, .14); color: #4954c2; border-color: rgba(88, 101, 242, .35); }
[data-theme="dark"] .gg-platform-whatsapp .gg-join-header__platform-chip { color: #4ade80; }
[data-theme="dark"] .gg-platform-telegram .gg-join-header__platform-chip { color: #60a5fa; }
[data-theme="dark"] .gg-platform-discord  .gg-join-header__platform-chip { color: #a5b4fc; }
/* Inline country/language filter strip on platform + category pages.
   Sits just above the cards. Wraps to its own line on small viewports
   so the controls stay tappable. */
.gg-listing-filters {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid var(--gg-border, #e5e7eb);
    border-radius: 8px;
    background: var(--gg-bg-soft, #f9fafb);
}
.gg-listing-filters__label {
    font-size: .75rem; font-weight: 600; color: var(--gg-text-muted, #6b7280);
    margin: 0; text-transform: uppercase; letter-spacing: .04em;
}
.gg-listing-filters__select {
    padding: 6px 10px; border: 1px solid var(--gg-border, #d1d5db);
    border-radius: 6px; background: var(--gg-bg, #fff);
    color: var(--gg-text, #111827); font-size: .875rem;
    min-width: 160px;
}
.gg-listing-filters__btn {
    padding: 6px 14px; border: 1px solid var(--gg-accent, #4f46e5);
    border-radius: 6px; background: var(--gg-accent, #4f46e5);
    color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.gg-listing-filters__btn:hover { filter: brightness(.95); }
.gg-listing-filters__clear {
    font-size: .8rem; color: var(--gg-text-muted, #6b7280);
    text-decoration: underline;
}
[data-theme="dark"] .gg-listing-filters {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .08);
}
[data-theme="dark"] .gg-listing-filters__select {
    background: var(--gg-bg, #0f172a); color: var(--gg-text, #e5e7eb);
    border-color: rgba(255, 255, 255, .12);
}

.gg-join-header__sep { color: var(--gg-text-subtle); }
.gg-join-header__chip {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 999px;
    font-size: .72rem; font-weight: 600; letter-spacing: .02em;
    background: rgba(99, 102, 241, .12); color: #4f46e5;
}
[data-theme="dark"] .gg-join-header__chip { background: rgba(129, 140, 248, .15); color: #a5b4fc; }
.gg-join-header__cat { color: var(--gg-primary); text-decoration: none; font-weight: 600; }
.gg-join-header__cat:hover { text-decoration: underline; color: var(--gg-primary-hover); }
.gg-join-header__listed { color: var(--gg-text-subtle); }

/* Tags row — sits at the very bottom of the .gg-join-shell card, AFTER the
   two-column main/sidebar grid. Full-width "filed-under" strip with a top
   divider + faint surface tint so it reads as a footer rather than
   competing for attention with the body content. */
.gg-join-shell__tags {
    list-style: none;
    margin: 0;
    padding: 1rem 1.25rem 1.1rem;
    border-top: 1px solid var(--gg-border);
    background: var(--gg-surface);
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
@media (min-width: 720px) {
    .gg-join-shell__tags { padding: 1rem 1.5rem 1.1rem; }
}
.gg-join-header__tag {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    font-size: .72rem; font-weight: 600;
    color: var(--gg-text-muted);
    background: var(--gg-surface-alt);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-pill);
    text-decoration: none;
    transition: background var(--gg-transition), color var(--gg-transition), border-color var(--gg-transition);
}
.gg-join-header__tag:hover { background: var(--gg-primary-soft); color: var(--gg-primary); border-color: var(--gg-primary); text-decoration: none; }

.gg-join-header__actions { display: flex; align-items: center; gap: .5rem; align-self: center; }

/* Square share/secondary icon button */
.gg-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--gg-radius);
    background: var(--gg-surface-alt);
    color: var(--gg-text-muted);
    border: 1px solid var(--gg-border);
    cursor: pointer;
    transition: background var(--gg-transition), color var(--gg-transition), border-color var(--gg-transition);
}
.gg-icon-btn:hover { background: var(--gg-surface); color: var(--gg-text); border-color: var(--gg-border-strong); }
.gg-icon-btn--ok { background: rgba(34, 197, 94, .15); color: #16a34a; border-color: rgba(34, 197, 94, .35); }

/* ─────── Tabs strip ─────── */
.gg-join-tabs { padding: 0 1.25rem; border-bottom: 1px solid var(--gg-border); }
.gg-join-tabs__item {
    display: inline-block;
    padding: .65rem .15rem .55rem;
    font-size: .9rem; font-weight: 600;
    color: var(--gg-text-muted);
    border-bottom: 2px solid transparent;
}
.gg-join-tabs__item--active { color: var(--gg-text); border-bottom-color: var(--gg-primary); }

/* ─────── Two-column body ─────── */
.gg-join-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1.25rem 1rem;
}
@media (min-width: 960px) {
    .gg-join-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; }
}

.gg-join-main { min-width: 0; }
.gg-join-divider { border: 0; border-top: 1px solid var(--gg-border); margin: 1.25rem 0; }

/* ─────── Sidebar cards ─────── */
.gg-join-side { display: flex; flex-direction: column; gap: 1rem; }
.gg-side-card {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    padding: 1rem 1.1rem 1.05rem;
}
.gg-side-card__title {
    display: flex; align-items: center; gap: .4rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--gg-text);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 .65rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--gg-border);
}
.gg-side-card__title svg { color: var(--gg-primary); }
.gg-side-card__body { font-size: .85rem; color: var(--gg-text-muted); margin: 0; line-height: 1.5; }
.gg-side-card--safety { background: linear-gradient(180deg, var(--gg-primary-soft), var(--gg-surface)); }

.gg-side-dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: .35rem .75rem; font-size: .85rem; }
.gg-side-dl dt { color: var(--gg-text-subtle); font-weight: 500; }
.gg-side-dl dd { margin: 0; color: var(--gg-text); font-weight: 600; word-break: break-word; }
.gg-side-link { color: var(--gg-primary); text-decoration: none; }
.gg-side-link:hover { color: var(--gg-primary-hover); text-decoration: underline; }

.gg-status { display: inline-flex; align-items: center; padding: 2px 8px; font-size: .7rem; font-weight: 700; border-radius: var(--gg-radius-pill); border: 1px solid; }
.gg-status--active   { background: rgba(34, 197, 94, .12);  color: #16a34a; border-color: rgba(34, 197, 94, .3); }
.gg-status--abandoned{ background: rgba(234, 179, 8, .12);  color: #b45309; border-color: rgba(234, 179, 8, .35); }
[data-theme="dark"] .gg-status--active    { color: #4ade80; }
[data-theme="dark"] .gg-status--abandoned { color: #fbbf24; }

.gg-tag-list--side { flex-direction: column; align-items: stretch; gap: .35rem; justify-content: flex-start; }
.gg-tag-list--side > li { display: block; }
.gg-side-tag {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    font-size: .78rem; font-weight: 600;
    color: var(--gg-text-muted);
    background: var(--gg-surface-alt);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-sm);
    text-decoration: none;
    transition: background var(--gg-transition), color var(--gg-transition);
}
.gg-side-tag:hover { background: var(--gg-primary-soft); color: var(--gg-primary); border-color: var(--gg-primary); text-decoration: none; }

/* Wrap the entire join shell in a card so the hero/tabs/grid feel unified */
.gg-join-shell {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 17, 21, .04);
}
[data-theme="dark"] .gg-join-shell { box-shadow: 0 6px 32px rgba(0, 0, 0, .35); }

/* ════════════════════════════════════════════════════════════════════
   Quill editor — public submit form skin (themed via gg.css vars)
   ════════════════════════════════════════════════════════════════════ */
.gg-quill-label {
    display: block; font-weight: 600; margin-bottom: .35rem; color: var(--gg-text);
}
.gg-quill-label__hint { font-weight: 400; color: var(--gg-text-subtle); font-size: .85rem; }
.gg-quill-shell {
    border: 1px solid var(--gg-border-strong);
    border-radius: var(--gg-radius);
    overflow: visible;
    background: var(--gg-surface);
    position: relative;
}
.gg-quill-shell .ql-toolbar.ql-snow {
    border: 0; border-bottom: 1px solid var(--gg-border);
    background: var(--gg-surface-alt);
    padding: .5rem .35rem;
}
.gg-quill-shell .ql-toolbar.ql-snow .ql-formats { margin-right: 12px; }
.gg-quill-shell .ql-container.ql-snow { border: 0; min-height: 180px; font-size: .95rem; color: var(--gg-text); background: var(--gg-surface); }
.gg-quill-shell .ql-editor { min-height: 180px; line-height: 1.55; }
.gg-quill-shell .ql-editor.ql-blank::before { color: var(--gg-text-subtle); font-style: normal; }
.gg-quill-shell .ql-editor h5 { font-size: 1rem; font-weight: 700; margin: .75rem 0 .25rem; }
.gg-quill-shell .ql-editor h6 { font-size: .9rem; font-weight: 700; margin: .75rem 0 .25rem; color: var(--gg-text-muted); }
.gg-quill-shell .ql-editor blockquote {
    margin: .75rem 0;
    padding: .4rem .75rem;
    border-left: 3px solid var(--gg-border);
    background: var(--gg-surface-alt);
    color: var(--gg-text);
}
.gg-quill-shell .ql-editor table { display: table; width: 100%; border-collapse: collapse; margin: .5rem 0; }
.gg-quill-shell .ql-editor table tbody, .gg-quill-shell .ql-editor table thead { display: table-row-group; }
.gg-quill-shell .ql-editor table tr { display: table-row; }
.gg-quill-shell .ql-editor th,
.gg-quill-shell .ql-editor td,
.gg-quill-shell .ql-snow .ql-editor th,
.gg-quill-shell .ql-snow .ql-editor td { display: table-cell; border: 1px solid var(--gg-border); padding: 4px 8px; text-align: left; }
.gg-quill-counter {
    display: flex; justify-content: space-between; gap: .75rem;
    padding: .35rem .65rem;
    background: var(--gg-surface-alt);
    border-top: 1px solid var(--gg-border);
    font-size: .75rem; color: var(--gg-text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.gg-quill-counter .gg-over { color: var(--gg-danger); font-weight: 700; }
.gg-quill-help { display: block; margin-top: .35rem; color: var(--gg-text-subtle); font-size: .8rem; }
[data-theme="dark"] .gg-quill-shell .ql-snow .ql-stroke { stroke: var(--gg-text-muted); }
[data-theme="dark"] .gg-quill-shell .ql-snow .ql-fill   { fill:   var(--gg-text-muted); }
[data-theme="dark"] .gg-quill-shell .ql-snow .ql-picker { color:  var(--gg-text-muted); }
[data-theme="dark"] .gg-quill-shell .ql-snow .ql-toolbar button:hover .ql-stroke { stroke: var(--gg-text); }
[data-theme="dark"] .gg-quill-shell .ql-snow .ql-toolbar button:hover .ql-fill   { fill:   var(--gg-text); }

/* ───── Quill toolbar polish ─────
   Button labels (H5, H6, Tbl) injected via JS need explicit colour and
   sizing because Quill's default snow theme styles only the SVG icons —
   plain-text buttons fall through with no contrast in dark mode.
   ──────────────────────────────── */
.gg-quill-shell .ql-toolbar button {
    width: 30px; height: 28px;
    border-radius: var(--gg-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    color: var(--gg-text-muted);
    transition: background var(--gg-transition), color var(--gg-transition);
}
.gg-quill-shell .ql-toolbar .ql-formats {
    display: inline-flex;
    align-items: center;
}
.gg-quill-shell .ql-toolbar button svg {
    width: 16px; height: 16px;
    display: block;
}
.gg-quill-shell .ql-toolbar .gg-tb-icon {
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gg-quill-shell .ql-toolbar button + button { margin-left: 1px; }
.gg-quill-shell .ql-toolbar button:hover { background: var(--gg-surface); color: var(--gg-text); }
.gg-quill-shell .ql-toolbar button.ql-active {
    background: var(--gg-primary-soft);
    color: var(--gg-primary);
}
.gg-quill-shell .ql-toolbar button.ql-active .ql-stroke { stroke: var(--gg-primary); }
.gg-quill-shell .ql-toolbar button.ql-active .ql-fill   { fill:   var(--gg-primary); }

.gg-quill-shell .ql-toolbar button .gg-tb-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    line-height: 1;
    font-size: 12px;
    color: var(--gg-text-muted);
}
.gg-quill-shell .ql-toolbar button:hover .gg-tb-label {
    color: var(--gg-text);
}
.gg-quill-shell .ql-toolbar button.ql-active .gg-tb-label {
    color: var(--gg-primary);
}

.gg-tb-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    color: inherit;
}

.gg-quill-shell .qlbt-operation-menu-text {
    color: var(--gg-text);
}

/* Link tooltip styling */
.gg-quill-shell .ql-tooltip {
    background: var(--gg-surface-alt);
    border: 1px solid var(--gg-border-strong);
    border-radius: var(--gg-radius-sm);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: var(--gg-text);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    z-index: 10000;
    position: fixed;
    white-space: nowrap;
    top: auto;
    left: auto;
    right: auto;
}
.gg-quill-shell .ql-tooltip a {
    color: var(--gg-link);
    text-decoration: none;
}
.gg-quill-shell .ql-tooltip a:hover {
    color: var(--gg-link-hover);
    text-decoration: underline;
}
.gg-quill-shell .ql-tooltip input {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: 0.25rem;
    color: var(--gg-text);
    padding: 0.375rem 0.5rem;
    margin: 0 0.5rem;
}
.gg-quill-shell .ql-tooltip input::placeholder {
    color: var(--gg-text-subtle);
}
.gg-quill-shell .ql-tooltip input:focus {
    outline: none;
    border-color: var(--gg-primary);
    box-shadow: 0 0 0 3px var(--gg-primary-soft);
}
.gg-quill-shell .ql-tooltip button {
    background: var(--gg-primary);
    border: 1px solid var(--gg-primary);
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background var(--gg-transition), border-color var(--gg-transition);
}
.gg-quill-shell .ql-tooltip button:hover {
    background: var(--gg-primary-hover);
    border-color: var(--gg-primary-hover);
}
.gg-quill-shell .ql-tooltip-arrow {
    display: none;
}
/* Ensure tooltip content doesn't overflow container */
.gg-quill-shell .ql-tooltip a {
    display: inline;
    word-break: break-all;
}

[data-theme="dark"] .gg-quill-shell .ql-tooltip {
    background: var(--gg-surface-alt);
    border-color: var(--gg-border-strong);
}

/* Dark-mode active state — primary-soft background reads warm-grey, so
   force the icon stroke/fill to primary so active state still pops. */
[data-theme="dark"] .gg-quill-shell .ql-toolbar button:hover { background: var(--gg-surface-alt); color: var(--gg-text); }
[data-theme="dark"] .gg-quill-shell .ql-toolbar button.ql-active { background: rgba(255, 85, 31, .15); color: var(--gg-primary); }
[data-theme="dark"] .gg-quill-shell .ql-toolbar button.ql-active .ql-stroke { stroke: var(--gg-primary); }
[data-theme="dark"] .gg-quill-shell .ql-toolbar button.ql-active .ql-fill   { fill:   var(--gg-primary); }
[data-theme="dark"] .gg-quill-shell .ql-toolbar button .gg-tb-label { color: var(--gg-text-muted); }
[data-theme="dark"] .gg-quill-shell .ql-toolbar button:hover .gg-tb-label { color: var(--gg-text); }
[data-theme="dark"] .gg-quill-shell .ql-toolbar button.ql-active .gg-tb-label { color: var(--gg-primary); }

/* The Quill link tooltip pops over the editor; theme it so it doesn't
   look like an alien dropdown in dark mode. */
.gg-quill-shell .ql-snow .ql-tooltip {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    color: var(--gg-text);
    border-radius: var(--gg-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.gg-quill-shell .ql-snow .ql-tooltip input[type="text"] {
    background: var(--gg-surface-alt);
    border: 1px solid var(--gg-border);
    color: var(--gg-text);
    border-radius: var(--gg-radius-sm);
    padding: 4px 8px;
}
.gg-quill-shell .ql-snow .ql-tooltip a.ql-action,
.gg-quill-shell .ql-snow .ql-tooltip a.ql-remove { color: var(--gg-primary); }

/* ─────── FAQ accordion (join page) ───────
   Native <details>/<summary> driven — zero JS, keyboard-accessible by default.
   Chevron rotates on open via [open] attribute selector. */
.gg-faq { margin: 1rem 0 .5rem; }
.gg-faq__heading {
    font-size: 1.15rem; font-weight: 700;
    margin: 0 0 .85rem;
    color: var(--gg-text);
}
.gg-faq__list { display: flex; flex-direction: column; gap: .5rem; }

.gg-faq__item {
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    background: var(--gg-surface);
    overflow: hidden;
    transition: border-color var(--gg-transition), box-shadow var(--gg-transition);
}
.gg-faq__item[open] {
    border-color: var(--gg-border-strong);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}
[data-theme="dark"] .gg-faq__item[open] { box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

.gg-faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .85rem 1rem;
    font-size: .95rem; font-weight: 600;
    color: var(--gg-text);
    cursor: pointer;
    list-style: none;             /* hide default disclosure triangle */
    user-select: none;
}
.gg-faq__q::-webkit-details-marker { display: none; }   /* Safari */
.gg-faq__item:hover { background: var(--gg-surface-alt); }
.gg-faq__q:focus-visible { outline: 2px solid var(--gg-primary); outline-offset: -2px; }

.gg-faq__chev {
    flex-shrink: 0;
    color: var(--gg-text-muted);
    transition: transform var(--gg-transition), color var(--gg-transition);
}
.gg-faq__item[open] .gg-faq__chev { transform: rotate(180deg); color: var(--gg-primary); }

.gg-faq__a {
    padding: 0 1rem 1rem;
    color: var(--gg-text-muted);
    font-size: .9rem;
    line-height: 1.6;
    border-top: 1px dashed var(--gg-border);
    padding-top: .85rem;
    margin-top: 0;
}

/* ─────── FAQ as a standalone card (join page, full-width) ───────
   Sits between the .gg-join-shell card and the "You may also like"
   recommendations grid. Mirrors the shell card's chrome (surface,
   border, radius, shadow) so the page reads as two stacked cards. */
.gg-faq-card {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    padding: 1.5rem 1.25rem 1.25rem;
    box-shadow: 0 4px 24px rgba(15, 17, 21, .04);
}
@media (min-width: 720px) {
    .gg-faq-card { padding: 1.25rem; }
}
[data-theme="dark"] .gg-faq-card { box-shadow: 0 6px 32px rgba(0, 0, 0, .35); }

.gg-faq-card__head {
    margin: 0 0 1rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--gg-border);
}
.gg-faq-card__heading {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 .25rem;
    color: var(--gg-text);
    letter-spacing: -.01em;
}
@media (min-width: 720px) { .gg-faq-card__heading { font-size: 1.65rem; } }
.gg-faq-card__sub {
    margin: 0;
    font-size: .9rem;
    color: var(--gg-text-muted);
}
.gg-faq-card__sub strong { color: var(--gg-text); font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────────
   TomSelect theming.

   The vendored tom-select.min.css ships its own light-only colour rules
   that fight three things on this site:
     1. The site's CSS-variable colour system (light/dark themes).
     2. The Bootstrap-ish `.form-control` class on the underlying <select>,
        which draws its own border + background — TomSelect promotes those
        classes onto its wrapper, so you end up with two borders stacked
        (a faint .form-control one + a darker .ts-control one).
     3. The default focus ring, which pulls a theme-mismatched colour.

   These overrides cancel `.form-control` decoration on the wrapper, hand
   colour authority to .ts-control, and align the focus ring with
   --gg-accent. Both light and dark themes derive entirely from variables
   — if you change a variable above, this block follows automatically.
   ───────────────────────────────────────────────────────────────────── */
/* `body` prefix bumps specificity to 0,3,1 — the vendor CSS uses
   `.ts-control { background-color: #fff }` (0,1,0) and a few
   `.ts-wrapper.X .ts-control` rules (0,2,0). Either of those can win
   over a same-specificity override depending on load order, so we
   force the issue with one extra class. Cheap and brittle-resistant. */
body .ts-wrapper.form-control,
body .ts-wrapper.form-select {
    padding: 0;
    border: none;
    background: transparent;
    height: auto;
    box-shadow: none;
}
/* Cover the four states tom-select.min.css ships:
     .ts-control                                    (specificity 0,1,0)
     .ts-wrapper.single .ts-control                 (0,2,0)
     .ts-wrapper.single.input-active .ts-control    (0,3,0)
     .ts-wrapper.multi .ts-control                  (0,2,0)
   The .input-active variant is the one that fires while the user is
   typing — that's the "white box" they were seeing on dark mode.
   `body` prefix + `!important` on background guarantee we win even if
   tom-select adds a higher-specificity rule in a future minor version. */
body .ts-wrapper .ts-control,
body .ts-wrapper.single .ts-control,
body .ts-wrapper.single.input-active .ts-control,
body .ts-wrapper.multi .ts-control,
body .ts-wrapper.multi.input-active .ts-control {
    background: var(--gg-bg) !important;
    background-color: var(--gg-bg) !important;
    color: var(--gg-text);
    border: 1px solid var(--gg-border);
    border-radius: 6px;
    padding: 8px 12px;
    min-height: 40px;
    box-shadow: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
body .ts-wrapper.single .ts-control > input,
body .ts-wrapper.multi .ts-control > input {
    color: var(--gg-text);
    background: transparent;
}
body .ts-wrapper.single .ts-control > input::placeholder,
body .ts-wrapper.multi .ts-control > input::placeholder {
    color: var(--gg-text-subtle);
    opacity: 1;
}
body .ts-wrapper.single.focus .ts-control,
body .ts-wrapper.multi.focus .ts-control {
    border-color: var(--gg-accent);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, .18);
    outline: none;
}
body .ts-wrapper.disabled .ts-control { opacity: .55; cursor: not-allowed; }

/* Multi-mode chips (Languages, Tags). The chip background is a faint tint
   so chips read as "in the same family" as the input but visibly separable
   — same pattern used by .gg-group-card__chip--followers. */
.ts-wrapper.multi .ts-control > .item {
    background: var(--gg-bg-soft, #f3f4f6);
    border: 1px solid var(--gg-border);
    color: var(--gg-text);
    border-radius: 4px;
    padding: 2px 6px;
    margin: 2px 4px 2px 0;
}
[data-theme="dark"] .ts-wrapper.multi .ts-control > .item {
    background: rgba(255, 255, 255, .06);
    border-color: var(--gg-border);
    color: var(--gg-text);
}
.ts-wrapper.multi .ts-control > .item.active {
    background: var(--gg-accent);
    border-color: var(--gg-accent);
    color: #fff;
}
.ts-wrapper.plugin-remove_button .item .remove {
    border-left-color: var(--gg-border);
    color: var(--gg-text-muted);
}
.ts-wrapper.plugin-remove_button .item .remove:hover {
    background: rgba(234, 88, 12, .12);
    color: var(--gg-accent);
}

/* Open dropdown panel. */
.ts-dropdown {
    background: var(--gg-bg);
    color: var(--gg-text);
    border: 1px solid var(--gg-border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    margin-top: 4px;
}
.ts-dropdown .option,
.ts-dropdown .optgroup-header,
.ts-dropdown .no-results,
.ts-dropdown .create {
    color: var(--gg-text);
    background: transparent;
    padding: 8px 12px;
}
.ts-dropdown .option.active,
.ts-dropdown .optgroup .active {
    background: rgba(234, 88, 12, .12);
    color: var(--gg-text);
}
.ts-dropdown .option.selected {
    background: var(--gg-accent);
    color: #fff;
}
.ts-dropdown .no-results { color: var(--gg-text-subtle); }

/* Wrapper bottom border glitch when the dropdown opens — vendored CSS
   sets a 0 radius on the bottom corners; restore it so the corners stay
   consistent with the closed state. */
.ts-wrapper.single.input-active .ts-control,
.ts-wrapper.multi.input-active .ts-control { border-radius: 6px; }
