/* Foreign workforce framework — article + accordions */

.page-fwf {
    margin: 0;
    min-height: 100vh;
    background: #fff;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #0c0d0d;
    font-size: 16px;
    line-height: 1.55;
}

.page-fwf .ea-nav > a[aria-current="page"] {
    color: #005a8c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fwf-main {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px 20px 44px;
}

.fwf-main h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 22px;
    color: #0c0d0d;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.fwf-prose p {
    margin: 0 0 16px;
    font-size: 16px;
    color: #333;
    line-height: 1.65;
}

.fwf-prose strong {
    color: #0c0d0d;
}

.fwf-prose a {
    color: #006eab;
    text-decoration: underline;
    font-weight: 600;
}

.fwf-prose a:hover {
    color: #005a8c;
}

.fwf-note {
    margin: 20px 0 24px;
    padding: 14px 16px;
    background: #f5f9fc;
    border-left: 4px solid #006eab;
    border-radius: 0 6px 6px 0;
    font-size: 15px;
    color: #222;
    line-height: 1.6;
}

.fwf-accordion-wrap {
    margin: 28px 0 32px;
    padding: 8px 16px 16px;
    background: #eaf2f8;
    border: 1px solid #d0e0ed;
    border-radius: 8px;
}

.fwf-acc {
    border-bottom: 1px solid #c5d6e4;
}

.fwf-acc:last-child {
    border-bottom: none;
}

.fwf-acc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 4px 14px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0c0d0d;
    line-height: 1.4;
}

.fwf-acc summary::-webkit-details-marker {
    display: none;
}

.fwf-acc__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #006eab;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s ease;
}

.fwf-acc[open] .fwf-acc__icon {
    transform: rotate(45deg);
}

.fwf-acc__body {
    padding: 0 4px 18px 44px;
    font-size: 15px;
    color: #333;
    line-height: 1.65;
}

.fwf-acc__body p {
    margin: 0 0 14px;
}

.fwf-acc__body p:last-child {
    margin-bottom: 0;
}

.fwf-acc__body ul {
    margin: 8px 0 14px;
    padding-left: 1.25em;
}

.fwf-acc__body li {
    margin-bottom: 8px;
}

.fwf-acc__h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 18px 0 10px;
    color: #0c0d0d;
}

.fwf-acc__h3:first-child {
    margin-top: 0;
}

.fwf-acc__h3 a {
    color: #006eab;
    text-decoration: none;
}

.fwf-acc__h3 a:hover {
    text-decoration: underline;
}

.fwf-summary-lead {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: #0c0d0d;
}

.fwf-summary-list {
    margin: 0 0 20px;
    padding-left: 1.35em;
    font-size: 16px;
    color: #333;
    line-height: 1.65;
}

.fwf-summary-list li {
    margin-bottom: 10px;
}

.fwf-search-float {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    background: #006eab;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 110, 171, 0.35);
    z-index: 35;
    font-size: 1.15rem;
    transition: background 0.15s ease, transform 0.15s ease;
}

.fwf-search-float:hover {
    background: #005a8c;
    color: #fff !important;
    transform: scale(1.04);
}

@media (max-width: 600px) {
    .fwf-main h1 {
        font-size: 1.65rem;
    }

    .fwf-acc__body {
        padding-left: 12px;
    }

    .fwf-search-float {
        right: 12px;
        bottom: 72px;
        width: 42px;
        height: 42px;
    }
}
