/* Salary Hub programmatic SEO landing pages */
.salary-hub-page {
    --salary-hub-accent: var(--accent);
}

.salary-hub {
    max-width: 1120px;
}

.salary-hub-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 1.75rem;
    align-items: start;
}

.salary-hub-article {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.35rem 2rem;
    min-width: 0;
}

.salary-hub-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.salary-hub-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--border);
}

.salary-hub-breadcrumb a {
    color: var(--accent);
}

.salary-hub-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--prose);
    margin: 0.75rem 0 1.1rem;
}

.salary-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.salary-hub-btn {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-active);
    color: var(--text);
    cursor: pointer;
}

.salary-hub-btn:hover,
.salary-hub-btn:focus-visible {
    border-color: var(--accent);
    outline: none;
}

.salary-hub-summary,
.salary-hub-stat-grid,
.salary-hub-budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0.5rem;
}

.salary-hub-card,
.salary-hub-stat,
.salary-hub-budget-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
    background: var(--surface-active);
}

.salary-hub-card-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.salary-hub-card-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.salary-hub-section {
    margin-top: 2rem;
    padding-top: 0.25rem;
}

.salary-hub-section h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.salary-hub-section p {
    line-height: 1.65;
    color: var(--prose);
}

.salary-hub-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.salary-hub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.salary-hub-table th,
.salary-hub-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.salary-hub-table th[scope="col"] {
    background: var(--surface-active);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.salary-hub-table tr:last-child th,
.salary-hub-table tr:last-child td {
    border-bottom: none;
    font-weight: 700;
}

.salary-hub-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-active);
    margin: 1rem 0;
}

.salary-hub-highlight-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.salary-hub-highlight-value {
    font-size: 1.5rem;
    color: var(--text);
}

.salary-hub-cta-row {
    margin-top: 1rem;
}

.salary-hub-ranges,
.salary-hub-compare-list,
.salary-hub-related,
.salary-hub-tool-links,
.salary-hub-contrib-links {
    padding-left: 1.2rem;
    line-height: 1.7;
}

.salary-hub-faq {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 0.55rem;
    background: var(--surface-active);
}

.salary-hub-faq summary {
    cursor: pointer;
    font-weight: 600;
}

.salary-hub-faq p {
    margin: 0.65rem 0 0.25rem;
}

.salary-hub-sidebar {
    position: sticky;
    top: 5.5rem;
}

.salary-hub-toc {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1rem 1.1rem;
    background: var(--card);
}

.salary-hub-toc-title {
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

.salary-hub-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.salary-hub-toc li {
    margin: 0.35rem 0;
}

.salary-hub-toc a {
    display: block;
    font-size: 0.88rem;
    color: var(--prose);
    text-decoration: none;
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
    border-left: 3px solid transparent;
}

.salary-hub-toc a:hover,
.salary-hub-toc a:focus-visible {
    color: var(--accent);
    outline: none;
    background: var(--surface-active);
}

.salary-hub-toc a.is-active {
    color: var(--accent);
    font-weight: 600;
    border-left-color: var(--accent);
    background: var(--surface-active);
}

.salary-hub-toc a::before {
    content: "✓ ";
    color: var(--muted);
    font-size: 0.8em;
}

@media (max-width: 900px) {
    .salary-hub-layout {
        grid-template-columns: 1fr;
    }

    .salary-hub-sidebar {
        position: static;
        order: -1;
    }

    .salary-hub-toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
    }

    .salary-hub-toc li {
        margin: 0;
    }

    .salary-hub-toc a {
        border-left: none;
        padding: 0.35rem 0.55rem;
        background: var(--surface-active);
    }

    .salary-hub-toc a.is-active {
        border-left: none;
        box-shadow: inset 0 -2px 0 var(--accent);
    }
}

@media print {
    .salary-hub-sidebar,
    .salary-hub-actions,
    .site-header,
    .nav-toggle,
    .theme-toggle {
        display: none !important;
    }

    .salary-hub-layout {
        display: block;
    }

    .salary-hub-article {
        border: none;
        padding: 0;
    }
}
