/* Smooth scroll behavior */
    html {
        scroll-behavior: smooth;
    }
    
    /* Remove Astra's default padding/margin */
    body .ast-container { max-width: 100% !important; padding: 0 !important; }
    body .site-content { padding: 0 !important; }
    body .entry-content { margin: 0 !important; }
    body #primary { margin: 0 !important; }
    body .ast-separate-container .ast-article-single { padding: 0 !important; }
    body .site-main { padding: 0 !important; }
    body .ir35-guide-article { margin: 0 !important; padding: 0 !important; }
    body .ir35-guide-article .entry-content { padding: 0 !important; margin: 0 !important; }
    
    /* ===== BREADCRUMBS ===== */
    .ir35-breadcrumbs {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0 108px;
        gap: 16px;
        width: 100%;
        height: 28px;
        margin-top: 73px;
    }

    .ir35-breadcrumbs a {
        font-family: 'Nunito', sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        color: #8C8C8C;
        text-decoration: none;
    }

    .ir35-breadcrumbs-link{
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 17px;
    }

    .ir35-breadcrumbs a:hover {
        color: #334EC8;
    }

    .ir35-breadcrumbs .separator {
        color: #333333;
        font-size: 20px;
    }

    .ir35-breadcrumbs .current {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: 'Nunito', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 24px;
        color: #474747;
    }

    /* ===== HERO SECTION ===== */
    .ir35-hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 108px 56px;
        gap: 10px;
        width: 100%;
        background: #F7F8FD;
        position: relative;
    }

    .ir35-hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 16px;
        width: 1224px;
        max-width: 100%;
        position: relative;
    }

    .ir35-read-time {
        display: flex;
        align-items: center;
        gap: 4px;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 16px;
        color: #617798;
    }

    .ir35-read-time svg {
        width: 18px;
        height: 18px;
        stroke: #617798;
    }

    .ir35-hero-title {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 72px;
        line-height: 80px;
        color: #000000;
        margin: 0;
        width: 100%;
        max-width: 800px;
    }

    .ir35-hero-footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 48px;
    }

    .ir35-updated {
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 14px;
        line-height: 18px;
        color: #334EC8;
        letter-spacing: -0.01em;
    }

    .ir35-share-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ir35-share-text {
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        font-size: 14px;
        line-height: 18px;
        color: #334EC8;
    }

    .ir35-social-links {
        display: flex;
        flex-direction: row;
        gap: 7px;
        width: 100%;
    }

    .ir35-social-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        border: 1px solid #E5E9F8;
        border-radius: 20px;
        background: transparent;
        cursor: pointer;
        transition: border-color 0.3s ease;
        text-decoration: none;
        padding: 0;
    }

    .ir35-social-link:hover {
        border-color: #334EC8;
    }

    .ir35-social-link svg {
        fill: #617798;
        flex-shrink: 0;
    }

    /* Hero section specific social link styles */
    .ir35-hero .ir35-social-link {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .ir35-hero .ir35-social-link svg {
        width: auto;
        height: auto;
        max-width: 18px;
        max-height: 18px;
    }

    .ir35-hero-icon {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 260px;
        height: 260px;
    }

    /* ===== MAIN LAYOUT ===== */
    .ir35-main {
        display: flex;
        flex-direction: row;
        padding: 62px 108px;
        /* gap: 92px; */
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
    }

    /* ===== STICKY NAVIGATION ===== */
    .ir35-sticky-nav {
        position: sticky;
        top: 100px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 128px;
        width: 312px;
        min-width: 220px;
        height: fit-content;
        align-self: flex-start;
    }

    .ir35-nav-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        width: 100%;
        border-left: 1px solid #E5E6E7;
    }

    .ir35-nav-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 8px;
        width: 100%;
        height: 32px;
        text-decoration: none;
        border-left: 1px solid transparent;
        margin-left: -1px;
        transition: all 0.2s ease;
    }

    .ir35-nav-item:hover {
        border-left-color: #334EC8;
    }

    .ir35-nav-item.active {
        border-left: 2px solid #0022BA;
        margin-left: -2px;
    }

    .ir35-nav-item .icon-container {
        display: flex;
        align-items: center;
        justify-content: center;
        /* padding: 6px; */
        width: 32px;
        height: 32px;
        border-radius: 4px;
    }

    .ir35-nav-item .icon-container svg {
        /* width: 20px;
        height: 20px; */
        stroke: #617798;
        fill: none;
    }

    .ir35-nav-item.active .icon-container svg {
        stroke: #334EC8;
    }

    .ir35-nav-item .nav-title {
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        font-size: 14px;
        line-height: 18px;
        color: #617798;
    }

    .ir35-nav-item.active .nav-title {
        font-weight: 600;
        color: #334EC8;
    }

    .ir35-nav-share {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .ir35-nav-share-text {
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        font-size: 14px;
        line-height: 18px;
        color: #617798;
    }

    .ir35-nav-social-links {
        display: flex;
        flex-direction: row;
        gap: 12px;
    }

    /* ===== CONTENT AREA ===== */
    .ir35-content {
        flex: 1;
        max-width: 808px;
    }

    /* Typography reset — let .ir35-title-h2/h3 component classes take over.
       Values here match Figma spec (H2 Guide blue / H3 Guide black) so bare
       h2/h3 tags also look correct as fallback. */
    .ir35-content h2 {
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 40px;
        line-height: 44px;
        color: #4b5db0;
        margin: 0;
    }

    .ir35-content h3 {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 30px;
        line-height: 35px;
        color: #333333;
        margin: 0;
    }

    .ir35-content p {
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        font-size: 17px;
        line-height: 1.5em;
        color: #333333;
        margin: 0;
    }

    .ir35-content ul, .ir35-content ol {
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        font-size: 17px;
        line-height: 1.5em;
        color: #333333;
        margin: 0;
        padding-left: 0;
    }

    .ir35-content li {
        margin-bottom: 8px;
    }

    .ir35-content strong {
        font-weight: 700;
    }

    .ir35-content a {
        color: #4b5db0;
        text-decoration: underline;
    }

    .ir35-content a:hover {
        color: #0022BA;
    }

    .ir35-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 24px 0;
    }

    /* Numeral/icon images must not inherit the content img margin */
    .ir35-content .ir35-roman-item__numeral img,
    .ir35-content .ir35-highlight__icon img,
    .ir35-content .ir35-numbered-step__number img {
        margin: 0;
        border-radius: 0;
    }

    .ir35-numbered-step-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

    .ir35-content blockquote {
        border-left: 4px solid #334EC8;
        padding-left: 20px;
        margin: 24px 0;
        font-style: italic;
        color: #474747;
    }

    /* ===== UMBRELLA COMPANIES CONTENT — isolated pixel-perfect styles =====
       Scoped to .umbrella-companies so they never leak to other pages.
       Figma node: 4783-93056  (frame 808px wide, gap 104px outer / 56px inner)
    */
    .umbrella-companies {
        width: 100%;
    }

    /* Reset section margins — parent flex gap handles all spacing */
    .umbrella-companies .ir35-section {
        margin-bottom: 0;
        margin-top: 0;
    }

    .umbrella-companies .ir35-intro-section {
        margin-bottom: 0;
    }

    /* Bordered intro block: Figma strokeWeight 0 0 0 2px, color #333 */
    .umbrella-companies .ir35-bordered-block {
        border-left-color: #333333;
    }

    /* Highlight (Exclamation) — Figma: row, padding 16px 0, gap 24px, no margin */
    .umbrella-companies .ir35-highlight {
        margin-top: 0;
        margin-bottom: 0;
        padding: 16px 0 !important;
        gap: 24px;
    }

    /* Bullet list title — Figma style_KQH64V: Inter 600, 17px, #333 */
    .umbrella-companies .ir35-bullet-list__title {
        font-weight: 600;
        font-size: 17px;
        color: #333333;
    }

    /* Bullet list with title: gap 4px between title and items (Figma layout_CMWR5H) */
    .umbrella-companies .ir35-bullet-list:has(.ir35-bullet-list__title) {
        gap: 4px;
    }

    /* Bullet list items: 28px indent, 8px gap (Figma layout_6S4QDM / layout_WX0WCT) */
    .umbrella-companies .ir35-bullet-list__items {
        margin-left: 0;
        padding-left: 28px;
        gap: 8px;
    }

    /* Roman numeral descriptions are justified (Figma style_QDV055) */
    .umbrella-companies .ir35-roman-item__description {
        text-align: justify;
    }

    /* Advantage/disadvantage span labels */
    .umbrella-companies .advantages-text-green { color: #009951; }
    .umbrella-companies .advantages-text-red   { color: #ee6e68; }

    /* Responsive adjustments */
    @media (max-width: 860px) {
        .umbrella-companies {
            gap: 40px;
        }
    }

    @media (max-width: 768px) {
        .umbrella-companies .ir35-highlight {
            gap: 16px;
        }
        .umbrella-companies .ir35-roman-item__content {
            padding-left: 0;
        }
        .umbrella-companies .ir35-numbered-step__content {
            padding-left: 44px;
        }
        .umbrella-companies .ir35-numbered-step__content::before {
            display: none;
        }
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 1200px) {
        .ir35-breadcrumbs,
        .ir35-hero,
        .ir35-main {
            padding-left: 40px;
            padding-right: 40px;
        }

        .ir35-hero-title {
            font-size: 48px;
            line-height: 56px;
        }
    }

    @media (max-width: 900px) {
        .ir35-main {
            flex-direction: column;
        }

        .ir35-sticky-nav {
            position: relative;
            top: 0;
            width: 100%;
            min-width: 100%;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 16px;
        }

        .ir35-nav-menu {
            flex-direction: row;
            flex-wrap: wrap;
            border-left: none;
            gap: 8px;
        }

        .ir35-nav-item {
            border-left: none;
            border-bottom: 2px solid transparent;
            margin-left: 0;
            width: auto;
            padding: 8px 12px;
        }

        .ir35-nav-item.active {
            border-left: none;
            border-bottom-color: #0022BA;
            margin-left: 0;
        }

        .ir35-nav-share {
            display: none;
        }

        .ir35-content {
            max-width: 100%;
        }
    }

    @media (max-width: 600px) {
        .ir35-breadcrumbs,
        .ir35-hero,
        .ir35-main {
            padding-left: 20px;
            padding-right: 20px;
        }

        .ir35-hero-title {
            font-size: 36px;
            line-height: 44px;
        }

        .ir35-hero-footer {
            flex-direction: column;
            align-items: flex-start;
            gap: 24px;
        }

        .ir35-hero-icon {
            display: none;
        }
    }

    /* ===== MOBILE STYLES ===== */
    @media (max-width: 768px) {
        /* Hide desktop sticky nav on mobile */
        .ir35-sticky-nav {
            display: none !important;
        }

        .ir35-main {
            padding: 40px 16px 100px 16px;
        }

        .ir35-content {
            max-width: 100%;
        }

        /* Mobile expandable sections */
        .ir35-mobile-section {
            width: 100%;
        }

        .ir35-content h2 {
            width: 100%;
            font-family: "Inter", sans-serif;
            font-style: normal;
            margin: 0;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(0, 34, 186, 0.2);
            margin: 0 auto!important;
            font-weight: 700;
            font-size: 32px !important;
            line-height: 40px;
            text-transform: uppercase;
        }

        .ir35-mobile-section__header {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
            cursor: pointer;
            width: 100%;
        }

        .ir35-mobile-section__title {
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            font-size: 18px;
            line-height: 24px;
            color: #333333;
            margin: 0;
            text-transform: uppercase;
        }

        .ir35-mobile-section__toggle {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 24px;
            height: 24px;
            font-size: 24px;
            font-weight: 300;
            color: #617798;
            transition: transform 0.3s ease;
        }

        .ir35-mobile-section.expanded .ir35-mobile-section__toggle {
            transform: rotate(45deg);
        }

        .ir35-mobile-section__content {
            display: none;
            padding: 0 0 24px 0;
        }

        .ir35-mobile-section.expanded .ir35-mobile-section__content {
            display: block;
        }

        /* Fixed footer */
        .ir35-mobile-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #FFFFFF;
            border-top: 1px solid #E5E6E7;
            padding: 12px 16px;
            z-index: 1000;
            display: flex;
            justify-content: center;
        }

        .ir35-mobile-footer__btn {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            background: #334EC8;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            font-size: 16px;
            line-height: 24px;
            color: #FFFFFF;
            width: 100%;
            max-width: 400px;
        }

        .ir35-mobile-footer__btn svg {
            width: 20px;
            height: 20px;
            stroke: #FFFFFF;
        }

        /* Modal overlay */
        .ir35-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .ir35-modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Modal */
        .ir35-modal {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #FFFFFF;
            border-radius: 16px 16px 0 0;
            z-index: 9999;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            max-height: 85vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .ir35-modal.active {
            transform: translateY(0);
        }

        .ir35-modal__handle {
            display: flex;
            justify-content: center;
            padding: 12px 0 8px 0;
        }

        .ir35-modal__handle-bar {
            width: 40px;
            height: 4px;
            background: #E5E6E7;
            border-radius: 2px;
        }

        .ir35-modal__header {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            padding: 8px 16px 16px 16px;
            border-bottom: 1px solid #E5E6E7;
        }

        .ir35-modal__title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            font-size: 18px;
            line-height: 24px;
            color: #333333;
        }

        .ir35-modal__title svg {
            width: 24px;
            height: 24px;
            stroke: #333333;
        }

        .ir35-modal__close {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 32px;
            height: 32px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 24px;
            color: #617798;
        }

        .ir35-modal__content {
            overflow-y: auto;
            padding: 8px 0;
            flex: 1;
        }

        .ir35-modal__nav-item {
            display: flex;
            flex-direction: row;
            align-items: center;
            padding: 16px;
            gap: 12px;
            text-decoration: none;
            transition: background 0.2s ease;
        }

        .ir35-modal__nav-item:hover,
        .ir35-modal__nav-item:active {
            background: #F7F8FD;
        }

        .ir35-modal__nav-item.active {
            background: #F7F8FD;
        }

        .ir35-modal__nav-item.active .ir35-modal__nav-title {
            color: #334EC8;
            font-weight: 600;
        }

        .ir35-modal__nav-item.active .ir35-modal__nav-icon svg {
            stroke: #334EC8;
        }

        .ir35-modal__nav-icon {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 24px;
            height: 24px;
        }

        .ir35-modal__nav-icon svg {
            /* width: 24px;
            height: 24px; */
            stroke: #617798;
        }

        .ir35-modal__nav-title {
            font-family: 'Inter', sans-serif;
            font-weight: 400;
            font-size: 16px;
            line-height: 24px;
            color: #333333;
        }

        /* Hero adjustments for mobile */
        .ir35-hero {
            padding: 32px 16px;
        }

        .ir35-hero-title {
            font-size: 32px;
            line-height: 40px;
        }

        .ir35-breadcrumbs {
            padding: 0 16px;
        }

        /* Share section mobile */
        .ir35-share-container {
            flex-direction: row;
            align-items: center;
            gap: 16px;
        }
    }

    /* Hide mobile elements on desktop */
    @media (min-width: 769px) {
        .ir35-mobile-footer,
        .ir35-modal-overlay,
        .ir35-modal,
        .ir35-mobile-sections-wrapper {
            display: none !important;
        }
    }

.ir35-author-byline {
    margin-left: 16px;
    font-size: 14px;
    color: #617798;
    font-family: Inter, sans-serif;
}

.ir35-author-byline a {
    color: #334ec8;
    font-weight: 600;
    text-decoration: underline;
}

.qc-payslip-model-container {
    margin: 32px 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
}

.qc-payslip-model__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1e293b;
}

.qc-payslip-model__intro {
    font-size: 14px;
    color: #475569;
    margin: 0 0 20px;
}

.qc-payslip-model__flow {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: Inter, sans-serif;
    font-size: 14px;
}

.qc-payslip-model__step {
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 700;
    color: #0f172a;
}

.qc-payslip-model__step--primary {
    background: #eef2f6;
}

.qc-payslip-model__step--secondary {
    background: #e2e8f0;
}

.qc-payslip-model__step--net {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.qc-payslip-model__arrow {
    padding-left: 20px;
    color: #b91c1c;
    font-size: 13px;
}

.qc-payslip-model__detail {
    margin-left: 20px;
    background: #ffffff;
    border-left: 3px solid #dc2626;
    padding: 10px 14px;
    border-radius: 4px;
    color: #334155;
}

.qc-umbrella-comparison-matrix {
    margin: 32px 0;
    overflow-x: auto;
    scroll-margin-top: 100px;
}

.qc-umbrella-comparison-matrix__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
}

.qc-umbrella-comparison-matrix__table {
    width: 100%;
    border-collapse: collapse;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.qc-umbrella-comparison-matrix__table thead tr {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.qc-umbrella-comparison-matrix__table th,
.qc-umbrella-comparison-matrix__table td {
    padding: 12px 14px;
    color: #334155;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.qc-umbrella-comparison-matrix__table thead th:nth-child(2) {
    color: #1e40af;
}

.qc-umbrella-comparison-matrix__table thead th:nth-child(3) {
    color: #047857;
}

.qc-umbrella-comparison-matrix__table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.qc-umbrella-comparison-matrix__table tbody th {
    font-weight: 600;
    color: #1e293b;
    width: 20%;
}

.qc-compliance-checklist {
    margin: 32px 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px;
}

.qc-compliance-checklist__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1e293b;
}

.qc-compliance-checklist__list {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    list-style: disc;
}

.qc-compliance-checklist__list li {
    margin-bottom: 8px;
    display: list-item;
}

.qc-compliance-checklist__list li:last-child {
    margin-bottom: 0;
}

.qc-compliance-checklist a {
    color: #334ec8;
}

@media (max-width: 768px) {
    .ir35-author-byline {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }
}

.ir35-share-container.ir35-share-container-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .ir35-share-container-desktop {
        display: none !important;
    }

    .ir35-share-container-mobile {
        display: flex;
        justify-content: flex-end;
        width: 100%;
        margin-top: 24px;
        padding: 0 16px;
    }
}