/**
 * Job Description Content Styling
 * Shared component for rendering job descriptions across all pages.
 * Used by: /jobs, /dashboard#search, /dashboard#jobs
 */

.job-description-content {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
}

/* Headings */
.job-description-content h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: #1e293b;
}
.job-description-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.25rem;
}
.job-description-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.25rem;
    color: #475569;
}
.job-description-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.75rem 0 0.25rem;
    color: #475569;
}
.job-description-content h5,
.job-description-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
    color: #64748b;
}

/* Paragraphs */
.job-description-content p {
    margin: 0.5rem 0;
}

/* Lists */
.job-description-content ul,
.job-description-content ol {
    margin: 0.25rem 0 0.5rem;
    padding-left: 1.5rem;
}
.job-description-content ul {
    list-style-type: disc;
}
.job-description-content ol {
    list-style-type: decimal;
}
.job-description-content li {
    margin: 0.25rem 0;
}
.job-description-content li > ul,
.job-description-content li > ol {
    margin: 0.125rem 0;
}

/* Links */
.job-description-content a {
    color: #3b82f6;
    text-decoration: underline;
}
.job-description-content a:hover {
    color: #2563eb;
}

/* Text formatting */
.job-description-content strong,
.job-description-content b {
    font-weight: 600;
    color: #334155;
}
.job-description-content em,
.job-description-content i {
    font-style: italic;
}
.job-description-content code {
    font-family: ui-monospace, monospace;
    font-size: 0.85em;
    background: #f1f5f9;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}
.job-description-content pre {
    font-family: ui-monospace, monospace;
    font-size: 0.85em;
    background: #f1f5f9;
    padding: 0.75rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}

/* Tables */
.job-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}
.job-description-content th,
.job-description-content td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    text-align: left;
}
.job-description-content th {
    background: #f8fafc;
    font-weight: 600;
}

/* Blockquotes */
.job-description-content blockquote {
    border-left: 3px solid #e2e8f0;
    margin: 0.5rem 0;
    padding: 0.25rem 0 0.25rem 1rem;
    color: #64748b;
    font-style: italic;
}

/* Horizontal rules */
.job-description-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1rem 0;
}

/* Clean up excessive br tags */
.job-description-content h1 + br,
.job-description-content h2 + br,
.job-description-content h3 + br,
.job-description-content h4 + br,
.job-description-content h5 + br,
.job-description-content h6 + br {
    display: none;
}
.job-description-content br + h1,
.job-description-content br + h2,
.job-description-content br + h3,
.job-description-content br + h4 {
    margin-top: 1rem;
}
.job-description-content ul + br,
.job-description-content ol + br {
    display: none;
}
.job-description-content br + ul,
.job-description-content br + ol {
    margin-top: 0;
}
.job-description-content p + br {
    display: none;
}
.job-description-content br + br {
    display: block;
    content: '';
    margin-top: 0.5rem;
}

/* First element spacing */
.job-description-content > *:first-child {
    margin-top: 0;
}
.job-description-content > *:last-child {
    margin-bottom: 0;
}
