/**
 * Content Spacing CSS
 * Ensures proper spacing for page content (career pages, etc.)
 * Works with TinyMCE editor and preserves SEO-friendly HTML structure
 */

/* ULTRA-SPECIFIC: Override Tailwind prose plugin */
.prose.prose-lg ul,
.prose-lg ul,
div.prose ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 2em !important;
    margin-left: 0 !important;
}

.prose.prose-lg ol,
.prose-lg ol,
div.prose ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 2em !important;
    margin-left: 0 !important;
}

.prose.prose-lg li,
.prose-lg li,
div.prose li {
    display: list-item !important;
    margin-left: 0 !important;
}

/* Enhanced Prose Styling - Extends Tailwind's prose class */
.prose h1 {
    font-size: 20px;
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
    font-weight: 700;
}

.prose h2 {
    font-size: 16px;
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
    font-weight: 700;
}

.prose h3,
.prose h4 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
    font-weight: 700;
}

/* Remove top margin from first heading */
.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child {
    margin-top: 0;
}

/* Paragraph spacing */
.prose p {
    margin-bottom: 1.2em;
    line-height: 1.7;
}

/* Last paragraph no bottom margin */
.prose p:last-child {
    margin-bottom: 0;
}

/* List spacing */
.prose ul,
.prose ol {
    margin-bottom: 1.5em;
    margin-left: 1.5em;
    line-height: 1.6;
    padding-left: 1.5em;
}

.prose ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
}

.prose ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
}

.prose li {
    margin-bottom: 0.5em;
    display: list-item !important;
}

/* Nested lists */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Horizontal rules */
.prose hr {
    margin: 2em 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Links */
.prose a {
    color: #2563eb;
    text-decoration: underline;
}

.prose a:hover {
    color: #1d4ed8;
}

/* Strong and emphasis */
.prose strong {
    font-weight: 600;
}

.prose em {
    font-style: italic;
}

/* Blockquotes */
.prose blockquote {
    margin: 1.5em 0;
    padding-left: 1em;
    border-left: 4px solid #e5e7eb;
    color: #6b7280;
    font-style: italic;
}

/* Code blocks */
.prose code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', Courier, monospace;
}

.prose pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1em;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Tables */
.prose table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
}

.prose th,
.prose td {
    padding: 0.75em;
    border: 1px solid #e5e7eb;
}

.prose th {
    background-color: #f3f4f6;
    font-weight: 600;
    text-align: left;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
    border-radius: 0.5rem;
}

/* Job search widget spacing (from shortcodes) */
.prose .job-search-widget,
.prose .my-4 {
    margin: 2em 0;
}

/* Ensure spacing even if prose class is missing */
article h1 {
    font-size: 20px;
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
    font-weight: 700;
}

article h2 {
    font-size: 16px;
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
    font-weight: 700;
}

article h3,
article h4 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
    font-weight: 700;
}

article h1:first-child,
article h2:first-child,
article h3:first-child {
    margin-top: 0;
}

article p {
    margin-bottom: 1.2em;
    line-height: 1.7;
}

article ul,
article ol {
    margin-bottom: 1.5em;
    margin-left: 1.5em;
    padding-left: 1.5em;
}

article ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
}

article ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
}

article li {
    margin-bottom: 0.5em;
    line-height: 1.6;
    display: list-item !important;
}
