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

:root {
    --primary: #2c5f2d;
    --primary-dark: #1e4620;
    --secondary: #d4a574;
    --accent: #c41e3a;
    --light-bg: #f5f3f0;
    --dark-text: #1a1a1a;
    --muted: #666;
    --border: #ddd8d0;
    --card-bg: #ffffff;
    --ok: #2c7a3f;
    --warn: #b7791f;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

[hidden] { display: none !important; }

a { color: var(--primary); }

/* ---------- Demo banner ---------- */
#demo-banner {
    background: #fff4d6;
    color: #5c4300;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid #ecd9a0;
}

#demo-banner button {
    font: inherit;
    font-size: 0.85rem;
    margin: 0.15rem 0.25rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #c9a94a;
    background: white;
    color: #5c4300;
    cursor: pointer;
}

#demo-banner button:hover { background: #fff9e8; }

/* ---------- Header ---------- */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand { color: white; text-decoration: none; }

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: -0.3rem;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 1.6rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s;
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
}

nav a:hover { opacity: 0.8; }

nav a.active { border-bottom-color: var(--secondary); }

nav a.nav-cta {
    background: white;
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
}

/* ---------- Hero / home (from original design) ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0d2e0f 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid var(--accent);
    margin: 0 0.5rem 0.5rem 0.5rem;
    cursor: pointer;
}

.cta-button:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    border-color: white;
    color: white;
}

.cta-button.secondary:hover {
    background: white;
    color: var(--primary);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section { padding: 4rem 2rem; }

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.how-it-works { background: white; }

/* Single-headline band under the hero */
.intro-band { padding-block: 2.75rem; }
.intro-band .section-title { margin-bottom: 0; max-width: 1060px; margin-inline: auto; text-wrap: balance; }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step p { color: var(--muted); font-size: 0.95rem; }

.benefits { background: var(--light-bg); }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.benefit-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.benefit-card p { color: var(--muted); font-size: 0.95rem; }

/* "Completely Free" card: a slim full-width band under the four "Why Join" cards,
   with the two-line WhatsApp button sitting right next to the text */
.benefit-card.free-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-left-color: var(--primary);
}

.benefit-card.free-card h3 { margin-bottom: 0.15rem; }
.free-card-text { flex: 0 1 auto; min-width: 0; }
.free-card-text p { color: #3d4a3d; }

/* Less empty space between the Free card and "How to Join" */
#benefits { padding-bottom: 2rem; }
#how-it-works { padding-top: 2.5rem; }

.free-card-btn {
    flex: 0 0 auto;
    line-height: 1.25;
    text-align: center;
    padding: 0.45rem 1.1rem;
    border-radius: 14px;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.cta-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-section p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.95; }
.cta-section .cta-login { margin: 1rem 0 0; font-size: 0.95rem; }
.cta-section .cta-login a { color: var(--secondary); }

.centered-button { text-align: center; }
.centered-button a { display: inline-block; }

/* ---------- Page header for inner pages ---------- */
.page-head {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0d2e0f 100%);
    color: white;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
}

.page-head h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 0.4rem; }
.page-head p { opacity: 0.92; font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

.page-body { padding: 2.5rem 2rem 4rem; }
.narrow { max-width: 760px; margin: 0 auto; }
.narrower { max-width: 440px; margin: 0 auto; }

/* ---------- Generic UI ---------- */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}

.card h2 { color: var(--primary); font-size: 1.3rem; margin-bottom: 0.5rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.4rem;
    min-height: 44px;
    border-radius: 999px;
    border: 2px solid var(--primary);
    background: var(--primary);
    color: white;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }

.btn.ghost { background: white; color: var(--primary); }
.btn.ghost:hover { background: var(--light-bg); }

.btn.danger { background: white; color: var(--accent); border-color: var(--accent); }
.btn.danger:hover { background: #fdf0f2; }

.btn.small { padding: 0.3rem 0.9rem; min-height: 34px; font-size: 0.85rem; }

.link-btn {
    background: none;
    border: 0;
    color: var(--primary);
    text-decoration: underline;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.alert {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    border: 1px solid;
}

.alert.error { background: #fdf0f2; border-color: #f0b8c2; color: #8a1328; }
.alert.info { background: #eef6ee; border-color: #b9d8ba; color: #1e4620; }
.alert.warn { background: #fff7e6; border-color: #f0d49a; color: #6b4a00; }

.muted { color: var(--muted); }
.small-text { font-size: 0.875rem; }
.center { text-align: center; }
.mt { margin-top: 1rem; }

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #d9e5d9;
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 3rem auto;
    animation: spin 0.8s linear infinite;
}

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

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    background: var(--dark-text);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    z-index: 300;
    max-width: calc(100% - 2rem);
    font-size: 0.95rem;
}

.toast.error { background: var(--accent); }

/* Badges & chips */
.badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #eef3ee;
    color: var(--primary);
    white-space: nowrap;
}

.badge.fee { background: #f8efe4; color: #7a4f1d; }
.badge.vol { background: #fbe9ec; color: var(--accent); }
.badge.status-pending { background: #fff3d6; color: #7a5200; }
.badge.status-approved { background: #e3f3e6; color: var(--ok); }
.badge.status-hidden { background: #eee; color: #555; }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.chip {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    color: #444;
}

button.chip { cursor: pointer; font: inherit; font-size: 0.85rem; padding: 0.3rem 0.8rem; }
button.chip:hover { border-color: var(--primary); }
button.chip.on { background: var(--primary); border-color: var(--primary); color: white; }

/* ---------- Directory ---------- */
.dir-tools {
    background: white;
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.dir-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.search-input,
.cat-select {
    font: inherit;
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: white;
    color: var(--dark-text);
    min-width: 0;
}

.search-input { flex: 2 1 280px; }

.cat-select {
    flex: 1 1 220px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232c5f2d' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.search-input:focus,
.cat-select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

.card-cat {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: -0.35rem;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0 1rem;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.filter-label { font-size: 0.85rem; color: var(--muted); margin-right: 0.3rem; min-width: 4.5rem; }

.result-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
}

.listing-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.4rem;
    border-top: 4px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.listing-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }

.listing-card h3 { font-size: 1.15rem; line-height: 1.3; }
.listing-card h3 a { color: var(--dark-text); text-decoration: none; }
.listing-card h3 a:hover { color: var(--primary); text-decoration: underline; }
.listing-card .vol-text { color: #444; font-size: 0.95rem; white-space: pre-line; }
.listing-card .more { margin-top: auto; font-size: 0.9rem; color: var(--primary); font-weight: 600; white-space: nowrap; }
.listing-card.is-clickable { cursor: pointer; }
.listing-card.is-clickable:hover h3 a { color: var(--primary); text-decoration: underline; }

.card-foot {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0ece6;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.card-foot .more { margin-top: 0; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.contact-actions a {
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    color: var(--primary);
    white-space: nowrap;
}

.contact-actions a:hover { background: var(--primary); color: white; }

.empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
    background: white;
    border-radius: var(--radius);
    grid-column: 1 / -1;
}

/* Listing detail */
.detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.detail-list { list-style: none; }
.detail-list li { padding: 0.45rem 0; border-bottom: 1px solid #f0ece6; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.detail-list li:last-child { border-bottom: 0; }
.detail-list .k { color: var(--muted); min-width: 7.5rem; font-size: 0.9rem; }
.detail-list .v { flex: 1; word-break: break-word; }

.about-card h3 {
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.about-text { white-space: pre-line; color: #333; max-width: 65ch; }

.service-list {
    list-style: none;
    display: grid;
    gap: 0.35rem;
    max-width: 65ch;
}

.service-list li {
    position: relative;
    padding-left: 1.4rem;
    color: #333;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.6em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--secondary);
}

.char-count { margin-top: 0.3rem; text-align: right; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table td { padding: 0.4rem 0; border-bottom: 1px solid #f0ece6; }
.hours-table td:last-child { text-align: right; }

.back-link { display: inline-block; margin-bottom: 1rem; font-size: 0.95rem; }

/* Floating "Back" button on a listing's details page */
.fab-back {
    position: fixed;
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    transition: background 0.2s, transform 0.2s;
}

.fab-back:hover { background: var(--primary-dark); transform: translateY(-2px); }
.fab-back:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }

/* Leave room so the button never covers the last lines of the page */
.page-body:has(~ .fab-back) { padding-bottom: 6rem; }

/* ---------- Forms ---------- */
.org-form fieldset {
    border: 0;
    background: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.org-form legend {
    float: left;
    width: 100%;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.org-form legend + * { clear: both; }

.section-note {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.visibility {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.visibility.private { background: #f1ede7; color: #5a4a35; }
.visibility.public { background: #e3f3e6; color: var(--ok); }

.field { margin-bottom: 1.15rem; }

.field > label,
.field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.req { color: var(--accent); }

.hint { color: var(--muted); font-size: 0.85rem; margin: -0.15rem 0 0.4rem; }

.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=url],
.field input[type=password],
.field input[type=time],
.field select,
.field textarea,
.form-control {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cfc8bd;
    border-radius: 6px;
    background: white;
    color: var(--dark-text);
}

.field textarea { min-height: 110px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus,
.form-control:focus {
    outline: 2px solid var(--primary);
    outline-offset: 0;
    border-color: var(--primary);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--accent); }

.err { color: var(--accent); font-size: 0.85rem; margin-top: 0.3rem; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0.4rem;
}

.check input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }

.check-group { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }

.tag-preview { margin-top: 0.5rem; }

.hours-grid { border: 1px solid #eee7dd; border-radius: 6px; margin-top: 0.5rem; }

.hours-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #eee7dd;
}

.hours-row:last-child { border-bottom: 0; }
.hours-day { width: 8rem; font-weight: 600; font-size: 0.92rem; }
.hours-row select { width: auto !important; min-width: 10rem; }
.hours-times { display: inline-flex; align-items: center; gap: 0.4rem; }
.hours-times input { width: 8.5rem !important; }

.rank-grid { display: grid; gap: 0.5rem; max-width: 420px; }
.rank-row { display: flex; align-items: center; gap: 0.75rem; }
.rank-row span { width: 3.5rem; font-weight: 600; font-size: 0.92rem; }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.save-bar {
    position: sticky;
    bottom: 0;
    background: rgba(255,255,255,0.97);
    border-top: 1px solid var(--border);
    padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    margin: 0 -0rem 1.5rem;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.06);
    z-index: 50;
}

.dirty-note { color: var(--warn); font-size: 0.9rem; font-weight: 600; }

/* Stepper */
.stepper {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    margin-bottom: 1.5rem;
    counter-reset: s;
}

.stepper li {
    flex: 1;
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    padding-top: 0.6rem;
    border-top: 4px solid #e2ddd5;
    line-height: 1.3;
}

.stepper li.done { border-top-color: var(--secondary); }
.stepper li.current { border-top-color: var(--primary); color: var(--primary); font-weight: 700; }

.draft-note { font-size: 0.9rem; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; font-weight: 600; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 24px; background: #ccc; border-radius: 999px; position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: transform 0.2s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(20px); }

/* Dashboard */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.dash-head h2 { margin-bottom: 0.25rem; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1rem; }

/* ---------- Admin ---------- */
.admin-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.admin-tools .form-control { max-width: 320px; border-radius: 999px; }

.table-wrap { overflow-x: auto; background: white; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 760px; }
.admin-table th { text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); background: #faf8f5; }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #f0ece6; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.cat-sugg-card { border-left: 4px solid var(--secondary); }
.cat-sugg { padding: 0.9rem 0; border-top: 1px solid #f0ece6; }
.cat-sugg p { margin-bottom: 0.5rem; }
.cat-sugg-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.cat-sugg-actions .form-control { width: auto; flex: 1 1 200px; min-width: 0; padding: 0.4rem 0.7rem; font-size: 0.92rem; }

.cat-manage { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.25rem 1.5rem; margin-bottom: 1rem; }
.cat-manage li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid #f0ece6; }

.cat-add { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cat-add .form-control { width: auto; flex: 1 1 220px; max-width: 360px; padding: 0.45rem 0.8rem; }

.suggestion { border-left: 3px solid var(--secondary); padding: 0.5rem 0 0.5rem 1rem; margin-bottom: 1rem; }
.suggestion p { white-space: pre-line; }

.prose h2 { color: var(--primary); margin: 1.5rem 0 0.5rem; font-size: 1.2rem; }
.prose p, .prose li { margin-bottom: 0.6rem; }
.prose ul { padding-left: 1.25rem; }

/* ---------- Start a New Community Service ---------- */
.button-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

.request-band {
    margin-top: 2rem;
    background: white;
    border-radius: var(--radius);
    border: 2px dashed var(--secondary);
    padding: 1.75rem;
    text-align: center;
}

.request-band h2 { color: var(--primary); font-size: 1.35rem; margin-bottom: 0.35rem; text-wrap: balance; }
.request-band p { color: var(--muted); margin: 0 auto 1.1rem; max-width: 60ch; }

.start-service { background: #fbf6ef; border-top: 1px solid #efe4d3; border-bottom: 1px solid #efe4d3; }
.request-count { text-align: center; font-weight: 600; color: var(--primary); margin: -1.75rem 0 1.5rem; }

.req-intro { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.req-intro p { flex: 1 1 320px; color: #444; }

.req-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cat-select.cat-select-sm { flex: 0 1 240px; font-size: 0.92rem; padding: 0.45rem 2.2rem 0.45rem 0.9rem; }

.req-list { display: grid; gap: 1rem; }

.req-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-left: 4px solid var(--secondary);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.req-card.req-available { border-left-color: var(--ok); }
.req-card.req-in_progress { border-left-color: #6b2c91; }

.req-votes { text-align: center; min-width: 4.5rem; display: flex; flex-direction: column; }
.req-votes .n { font-size: 1.7rem; font-weight: 700; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.req-votes .l { font-size: 0.75rem; color: var(--muted); }

.req-body { flex: 1; min-width: 0; display: grid; gap: 0.5rem; }
.req-body h3 { font-size: 1.12rem; line-height: 1.3; }
.req-details { color: #444; font-size: 0.95rem; white-space: pre-line; }
.req-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.badge.req-new { background: #fff3d6; color: #7a5200; }
.badge.req-open { background: #e8f0fb; color: #1d4f91; }
.badge.req-in_progress { background: #f3e8fb; color: #6b2c91; }
.badge.req-available { background: #e3f3e6; color: var(--ok); }
.badge.req-declined, .badge.req-merged { background: #eee; color: #555; }

.req-panel { border-top: 1px solid #f0ece6; padding-top: 0.75rem; }
.req-form { display: grid; gap: 0.6rem; }
.req-form .form-control { font-size: 0.95rem; padding: 0.5rem 0.7rem; }
.req-form-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.req-form-row .form-control { flex: 1 1 180px; width: auto; min-width: 0; }
.req-thanks { color: var(--ok); font-weight: 600; }

.similar-box {
    background: #fff8ec;
    border: 1px solid #f0d49a;
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    margin: -0.4rem 0 1.15rem;
}

.similar-box ul { list-style: none; display: grid; gap: 0.5rem; margin: 0.6rem 0; }
.similar-box li.req-card {
    padding: 0.6rem 0.8rem;
    box-shadow: none;
    border-left-width: 3px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Spam trap: hidden from people, visible to bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Admin: requests */
.admin-switch { display: flex; gap: 0.25rem; border-bottom: 2px solid var(--border); margin-bottom: 1.25rem; }
.admin-switch-tab {
    padding: 0.6rem 1.1rem;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.admin-switch-tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.count-pill { background: var(--accent); color: white; font-size: 0.72rem; padding: 0.05rem 0.5rem; border-radius: 999px; margin-left: 0.3rem; }

.rq-admin { display: grid; gap: 0.6rem; }
.rq-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
.rq-head h3 { font-size: 1.15rem; }
.rq-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.rq-need { font-size: 0.9rem; color: var(--muted); }
.rq-need strong { color: var(--primary); font-size: 1.1rem; }
.rq-people { background: #faf8f5; border-radius: 6px; padding: 0.75rem 0.9rem; display: grid; gap: 0.4rem; font-size: 0.92rem; }
.rq-people summary { cursor: pointer; font-weight: 600; }
.rq-people ul { list-style: none; display: grid; gap: 0.4rem; margin: 0.4rem 0 0 1rem; }
.who-asked { border-top: 1px solid #ece6dc; padding-top: 0.5rem; display: grid; gap: 0.4rem; justify-items: start; }
.who-asked textarea { font-size: 0.85rem; }
.rq-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rq-tool { border-top: 1px solid #f0ece6; padding-top: 0.75rem; display: grid; gap: 0.5rem; justify-items: start; }
.rq-tool .field { width: 100%; margin-bottom: 0.4rem; }
.rq-tool .row-2 { width: 100%; }

@media (max-width: 768px) {
    .req-card { flex-direction: column; gap: 0.5rem; }
    .req-votes { flex-direction: row; gap: 0.4rem; align-items: baseline; text-align: left; }
    .rq-meta { align-items: flex-start; }
}

/* ---------- Footer ---------- */
footer {
    background: var(--dark-text);
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

footer a { color: var(--secondary); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header { padding: 0.75rem 1rem; }

    .nav-toggle { display: block; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--primary-dark);
        padding: 0.5rem 1rem 1rem;
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    }

    nav.open { display: flex; }
    nav a { padding: 0.75rem 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
    nav a.active { border-bottom-color: rgba(255,255,255,0.12); color: var(--secondary); }
    nav a.nav-cta { margin-top: 0.75rem; text-align: center; padding: 0.7rem 1rem; }

    .logo { font-size: 1.5rem; }
    .logo-subtitle { font-size: 0.65rem; }

    .hero { padding: 4rem 1rem; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }

    .section-title { font-size: 1.8rem; margin-bottom: 0.8rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }

    section { padding: 2.5rem 1rem; }
    .container { padding: 0 1rem; }

    .steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .step { padding: 1.5rem; }
    .benefits-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .benefit-card { padding: 1.5rem; }

    .button-group { flex-direction: column; align-items: center; gap: 0.75rem; }

    .cta-button {
        display: block;
        width: 100%;
        max-width: 300px;
        padding: 0.9rem 2rem;
        min-height: 44px;
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .centered-button a { display: block; width: 100%; max-width: 300px; margin: 0 auto; }

    .cta-section { padding: 3rem 1rem; }
    .cta-section h2 { font-size: 1.5rem; }
    .cta-section p { font-size: 1rem; }

    .page-head { padding: 2.25rem 1rem 2rem; }
    .page-head h1 { font-size: 1.7rem; }
    .page-body { padding: 1.5rem 1rem 3rem; }

    .card, .org-form fieldset { padding: 1.25rem; }
    .row-2 { grid-template-columns: 1fr; }
    .stepper li span { display: none; }
    .hours-day { width: 100%; }
    .hours-row select { flex: 1; }

    footer { padding: 1.5rem 1rem; font-size: 0.85rem; }
}
