/* Salary programmatic SEO landing pages */
.salary-seo-page {
    --salary-seo-net: #2f6f4e;
    --salary-seo-tax: #b45309;
    --salary-seo-sss: #1d4ed8;
    --salary-seo-philhealth: #0f766e;
    --salary-seo-pagibig: #7c3aed;
}

.salary-seo {
    max-width: 880px;
}

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

.salary-seo-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-seo-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--border);
}

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

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

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

.salary-seo-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-seo-btn:hover,
.salary-seo-btn:focus-visible {
    border-color: var(--accent);
    outline: none;
}

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

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

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

.salary-seo-card-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.salary-seo-card--net {
    border-color: color-mix(in srgb, var(--salary-seo-net) 45%, var(--border));
}

.salary-seo-card--net .salary-seo-card-value {
    color: var(--salary-seo-net);
}

.salary-seo-section {
    margin-top: 2rem;
}

.salary-seo-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.salary-seo-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.1rem 0 0.55rem;
}

.salary-seo-section p,
.salary-seo-section li {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--prose);
}

.salary-seo-formula {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.salary-seo-formula li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border);
    margin: 0;
}

.salary-seo-formula li:last-child {
    border-bottom: none;
}

.salary-seo-formula-result {
    background: var(--surface-active);
    font-weight: 700;
}

.salary-seo-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.salary-seo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    display: table;
    margin: 0;
}

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

.salary-seo-table thead th {
    background: var(--surface-active);
    font-weight: 600;
}

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

.salary-seo-rates {
    list-style: none;
    padding: 0;
    margin: 0;
}

.salary-seo-rate {
    margin-bottom: 0.85rem;
}

.salary-seo-rate-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.salary-seo-progress {
    height: 0.55rem;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.salary-seo-progress > span {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
}

.salary-seo-chart-layout {
    display: grid;
    grid-template-columns: minmax(140px, 180px) 1fr;
    gap: 1.25rem;
    align-items: center;
}

.salary-seo-pie {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid var(--border);
    content-visibility: auto;
}

.salary-seo-legend {
    list-style: none;
    padding: 0;
    margin: 0;
}

.salary-seo-legend li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
}

.salary-seo-legend li:nth-child(1) .salary-seo-swatch { background: var(--salary-seo-net); }
.salary-seo-legend li:nth-child(2) .salary-seo-swatch { background: var(--salary-seo-tax); }
.salary-seo-legend li:nth-child(3) .salary-seo-swatch { background: var(--salary-seo-sss); }
.salary-seo-legend li:nth-child(4) .salary-seo-swatch { background: var(--salary-seo-philhealth); }
.salary-seo-legend li:nth-child(5) .salary-seo-swatch { background: var(--salary-seo-pagibig); }

.salary-seo-swatch {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 3px;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.salary-seo-faq {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.55rem;
    background: var(--card);
}

.salary-seo-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

.salary-seo-faq p {
    margin: 0.65rem 0 0.2rem;
}

.salary-seo-related,
.salary-seo-tool-links,
.salary-seo-contrib-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.45rem 1rem;
    padding-left: 1.1rem;
    margin: 0.5rem 0 0;
}

.salary-seo-cta {
    margin-top: 2.25rem;
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(
        160deg,
        color-mix(in srgb, var(--accent) 12%, var(--card)),
        var(--card) 55%
    );
    text-align: center;
}

.salary-seo-cta h2 {
    margin: 0 0 0.5rem;
}

.salary-seo-cta p {
    margin: 0 0 1rem;
    color: var(--prose);
}

.salary-seo-cta .btn-primary {
    text-decoration: none;
}

@media (max-width: 640px) {
    .salary-seo-chart-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .salary-seo-article {
        padding: 1.15rem 1rem 1.5rem;
    }
}

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

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