/* ============================================
   Public Site (Directory + Org Portal)
   Scoped by `.public-site` to avoid impacting app UI
   ============================================ */

.public-site {
    --ps-bg: #f7f8fb;
    --ps-card: #ffffff;
    --ps-border: rgba(15, 23, 42, 0.10);
    --ps-text: #0f172a;
    --ps-muted: #64748b;
    --ps-primary: #2563eb;
    --ps-primary-2: #1d4ed8;
    --ps-shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
    color: var(--ps-text);
    background: radial-gradient(900px 600px at 90% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
                radial-gradient(900px 600px at 10% 0%, rgba(99, 102, 241, 0.14), transparent 55%),
                var(--ps-bg);
    min-height: 100vh;
}

.public-site a { text-decoration: none; }

.public-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 16px 28px;
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--ps-border);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.public-brand .logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(99, 102, 241, 0.10));
    border: 1px solid var(--ps-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.public-brand .title {
    font-weight: 900;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.public-brand .subtitle {
    color: var(--ps-muted);
    font-size: 12px;
    margin-top: 2px;
}

.public-hero {
    margin-top: 16px;
    border: 1px solid var(--ps-border);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(255, 255, 255, 0.85));
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: var(--ps-shadow);
}

.public-hero h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.public-hero p {
    margin: 10px 0 0;
    color: var(--ps-muted);
    line-height: 1.8;
}

.public-panel {
    margin-top: 14px;
    border: 1px solid var(--ps-border);
    background: var(--ps-card);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.06);
}

.public-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .public-filter-grid {
        grid-template-columns: 1.2fr 0.8fr 0.8fr;
        align-items: end;
    }
}

.public-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    font-weight: 900;
}

.public-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .public-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .public-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.public-card {
    border: 1px solid var(--ps-border);
    background: var(--ps-card);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.public-card .name {
    font-weight: 900;
    margin: 0;
}

.public-card .meta {
    color: var(--ps-muted);
    font-size: 12px;
}

.public-card .desc {
    color: var(--ps-muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.public-card .actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.public-btn-primary {
    background: var(--ps-primary);
    border-color: var(--ps-primary);
    color: #fff;
    border-radius: 12px;
    font-weight: 800;
}

.public-btn-primary:hover {
    background: var(--ps-primary-2);
    border-color: var(--ps-primary-2);
    color: #fff;
}

.public-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--ps-border);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ps-muted);
}

.public-cart-pill {
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.20);
    font-weight: 800;
    color: #1d4ed8;
    font-size: 12px;
}



