/* =========================================================
   CareerInTrades UI Upgrade V2 - Data Platform Design System
   CareerInTrades - Global Layout Width System
   Matches GeneratePress Container Width: 1200px
   Full page frame: 1200px
   Readable long-form content: 900px
   ========================================================= */

:root {
    --cit-primary: #2563eb;
    --cit-primary-dark: #1d4ed8;
    --cit-heading: #0f172a;
    --cit-text: #475569;
    --cit-muted: #64748b;
    --cit-border: #e2e8f0;
    --cit-page: #f7f9fc;
    --cit-surface: #ffffff;
    --cit-soft: #f8fafc;
    --cit-radius: 8px;
    --cit-shadow-hover: 0 8px 20px rgba(15, 23, 42, 0.08);
}

body {
    background: var(--cit-page);
    color: var(--cit-text);
    font-size: 16px;
    line-height: 1.7;
}

.content-area,
.site-main {
    background: var(--cit-surface);
}

.site-content {
    color: var(--cit-text);
}

.site-content h1,
.site-content h2,
.site-content h3 {
    color: var(--cit-heading);
    letter-spacing: -0.018em;
}

.site-content h1 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
}

.site-content h2 {
    font-size: clamp(26px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.25;
}

.site-content h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

.site-content a {
    text-underline-offset: 3px;
}

.site-content :focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 3px;
}

.site-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-color: var(--cit-border);
}

.site-content th {
    background: var(--cit-soft);
    color: var(--cit-heading);
}

.cit-container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.cit-container-standard {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.cit-container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Legacy shared container for archive-style pages */
.cit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Keep archive breadcrumbs above their content inside GeneratePress' flex layout. */
.cit-archive-layout {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

/* Match hook-based breadcrumbs by removing GeneratePress' extra main offset. */
.separate-containers .site-main.cit-breadcrumb-layout {
    margin-top: 0;
}

/* ========================================
   CareerInTrades - Global Layout & Shared Components
   ======================================== */

/* Main content container */
.career-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cit-readable {
    max-width: 900px;
}

/* FAQ item */
.career-faq-item {
    background: #ffffff;
    border: 1px solid var(--cit-border);
    border-radius: var(--cit-radius);
    padding: 20px;
    margin-bottom: 16px;
}

/* CareerInTrades shared FAQ accordion */
.site-content .cit-faq-list > details {
    margin: 0;
    padding: 18px 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--cit-border);
    border-radius: 0;
    background: transparent;
}

.site-content .cit-faq-list > details:last-child {
    border-bottom: 1px solid var(--cit-border);
}

.site-content .cit-faq-list > details > summary {
    position: relative;
    padding: 0 44px 0 0;
    color: #172554;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.site-content .cit-faq-list > details > summary::-webkit-details-marker {
    display: none;
}

.site-content .cit-faq-list > details > summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: var(--cit-primary);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.site-content .cit-faq-list > details[open] > summary::after {
    content: "\2212";
}

.site-content .cit-faq-list > details > p {
    max-width: 900px;
    margin: 12px 0 0;
    padding: 0;
    color: var(--cit-text);
    font-size: 16px;
    line-height: 1.7;
}

/* Related links */
.related-career-links a {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    margin-top: 8px;
}

/* ========================================
   CareerInTrades - Related Careers Cards
   ======================================== */

.related-career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.related-career-card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--cit-border);
    border-radius: var(--cit-radius);
    padding: 18px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-career-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cit-shadow-hover);
}

.related-career-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-career-meta {
    display: block;
    font-size: 15px;
    color: #444;
    margin-top: 4px;
}

/* ========================================
   CareerInTrades - Available States Module
   ======================================== */

.available-states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.available-state-card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--cit-border);
    border-radius: var(--cit-radius);
    padding: 18px 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.available-state-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cit-shadow-hover);
}

.career-button {
    display: inline-block;
    padding: 10px 16px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.career-button:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* Shared card treatment across archives, career pages, and state hubs. */
.site-content .cit-comparison-card,
.site-content .cit-ranking-card,
.site-content .state-career-card,
.site-content .cit-state-career-card,
.site-content .state-industry-card,
.site-content .major-city-card,
.site-content .career-employer-card,
.site-content .cit-apprenticeship-card {
    background: var(--cit-surface);
    border: 1px solid var(--cit-border);
    border-radius: var(--cit-radius);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-content .cit-comparison-card:hover,
.site-content .cit-ranking-card:hover,
.site-content .state-career-card:hover,
.site-content .cit-state-career-card:hover,
.site-content .state-industry-card:hover,
.site-content .major-city-card:hover,
.site-content .career-employer-card:hover,
.site-content .cit-apprenticeship-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: var(--cit-shadow-hover);
}


/* CareerInTrades Breadcrumb Navigation */
.cit-breadcrumbs {
    max-width: 1200px;
    margin: 20px auto 10px;
    padding: 0 20px;
    font-size: 14px;
    color: #64748b;
}

.cit-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.cit-breadcrumbs a:hover {
    text-decoration: underline;
}

.cit-breadcrumbs span {
    margin: 0 4px;
}

@media (max-width: 768px) {
    .cit-breadcrumbs {
        margin: 14px auto 8px;
        font-size: 13px;
    }
}

/* Career In Trades Homepage */
.cit-home {
    background: #f8fafc;
}

.cit-home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cit-home-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #ffffff;
    padding: 80px 0;
}

.cit-home-hero h1 {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
}

.cit-home-hero p {
    max-width: 720px;
    margin: 0 0 32px;
    font-size: 17px;
    line-height: 1.7;
    color: #dbeafe;
}

.cit-home-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cit-home-button {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.cit-home-button.primary {
    background: #ffffff;
    color: #1e3a8a;
}

.cit-home-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #93c5fd;
}

.cit-home-section {
    padding: 64px 0;
    background: #ffffff;
}

.cit-home-light {
    background: #f8fafc;
}

.cit-home-section h2 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.3;
}

.cit-home-intro {
    max-width: 760px;
    margin: 0 0 32px;
    font-size: 18px;
    color: #475569;
    line-height: 1.6;
}

.cit-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cit-home-card {
    display: block;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

.cit-home-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.cit-home-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
}

.cit-home-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .cit-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cit-home-hero h1 {
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    .cit-home-hero {
        padding: 56px 0;
    }

    .cit-home-hero h1 {
        font-size: 26px;
    }

    .cit-home-hero p {
        font-size: 15px;
    }

    .cit-home-grid {
        grid-template-columns: 1fr;
    }
}

/* CareerInTrades Trust Pages */

body.cit-trust-page .site-content .inside-article {

    background:#ffffff;

    border:1px solid #e2e8f0;

    border-radius:8px;

    padding:40px;

    margin-bottom:60px;

}


body.cit-trust-page .entry-content {

    line-height:1.75;

}


body.cit-trust-page h1 {

    font-size:38px;

}


body.cit-trust-page h2 {

    font-size:28px;

    margin-top:40px;

}


@media(max-width:768px){

body.cit-trust-page .inside-article {

padding:24px;

}

}

/* CareerInTrades Text Logo */
.site-header .main-title {
    margin: 0;
    line-height: 1;
}

.site-header .main-title a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-decoration: none;
}

/* Blue brand marker */
.site-header .main-title a::before {
    content: "";
    display: block;
    width: 8px;
    height: 24px;
    flex: 0 0 8px;

    background: #2563eb;
    border-radius: 2px;
}

.site-header .main-title a:hover {
    color: #1d4ed8;
}

/* Keyboard accessibility */
.site-header .main-title a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 5px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .site-header .main-title a {
        gap: 8px;
        font-size: 24px;
    }

    .site-header .main-title a::before {
        width: 7px;
        height: 21px;
        flex-basis: 7px;
    }
}