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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    background: #f5f3ff;
    line-height: 1.6;
}

/* ── Header ──────────────────────────────────────────────────────── */
.public-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.875rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.logo-tenant {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6b7280;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.job-hero {
    background: linear-gradient(135deg, #4f1fa0 0%, #7c3aed 60%, #8b5cf6 100%);
    padding: 3rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.job-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.job-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.job-hero-inner {
    position: relative;
    z-index: 1;
}

.job-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.job-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Playfair Display', Georgia, serif;
}

.job-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

.job-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.job-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 500;
    color: white;
}

/* ── Main layout ──────────────────────────────────────────────────── */
.public-main {
    padding: 2rem 0 3rem;
}

.job-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: start;
}

/* ── Job content ─────────────────────────────────────────────────── */
.job-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.job-details-chips {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ede9fe;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Quill content */
.job-description {
    color: #374151;
    line-height: 1.8;
    font-size: 0.95rem;
}

.quill-content h1,
.quill-content h2,
.quill-content h3 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.quill-content h1 { font-size: 1.75rem; }
.quill-content h2 { font-size: 1.5rem; }
.quill-content h3 { font-size: 1.25rem; }

.quill-content p { margin-bottom: 1rem; }

.quill-content ul,
.quill-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.quill-content li { margin-bottom: 0.5rem; }

.quill-content a { color: #7c3aed; text-decoration: underline; }
.quill-content a:hover { color: #6d28d9; }
.quill-content strong { font-weight: 600; color: #1a1a1a; }
.quill-content em { font-style: italic; }
