.sector-roles {
    --sector-role-accent: var(--blue);
    min-width: 0;
}

.purple__page .sector-roles { --sector-role-accent: var(--purple); }
.orange__page .sector-roles { --sector-role-accent: var(--orange); }
.yellow__page .sector-roles { --sector-role-accent: var(--yellow); }
.darkBlue__page .sector-roles { --sector-role-accent: var(--darkblue); }
.green__page .sector-roles { --sector-role-accent: var(--green); }
.turnkey__page .sector-roles { --sector-role-accent: #37b6a9; }

.sector-roles .sector-roles-list {
    margin: 0;
    padding: 0 0 0 24px;
    list-style: disc;
}

.sector-roles .sector-roles-list li {
    padding: 0;
    margin: 0 0 12px;
}

.sector-role-button {
    position: relative;
    border: 0;
    border-radius: 4px;
    padding: 8px 12px;
    margin-left: -12px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 21px;
    line-height: 1.5;
    text-align: left;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: transform .2s ease;
}

.sector-role-button:after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 5px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--sector-role-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.sector-role-button:hover,
.sector-role-button:focus-visible { transform: translateX(4px); }
.sector-role-button:hover:after,
.sector-role-button:focus-visible:after { transform: scaleX(1); }

.sector-role-button:focus-visible,
.sector-roles-popup button:focus-visible,
.sector-roles-popup a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

.sector-roles-popup {
    --sector-role-accent: #37b6a9;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.sector-role-underlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 30, 53, .48);
    backdrop-filter: blur(4px);
}

.sector-role-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
    grid-template-rows: minmax(0, 1fr);
    width: 960px;
    max-width: 100%;
    min-height: min(480px, 100%);
    max-height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 24px 80px rgba(8, 30, 53, .22);
}

.sector-role-image {
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.sector-role-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sector-roles-popup .sector-role-title {
    margin: 0 0 28px;
    padding: 0 20px 0 0;
    color: var(--blue);
    font: 700 48px/1.1 "Barlow", sans-serif;
    overflow-wrap: anywhere;
}

.sector-role-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin-top: 24px;
    border-radius: 2px;
    background: var(--sector-role-accent);
}

.sector-role-content {
    min-width: 0;
    min-height: 0;
    padding: 64px 48px 48px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--sector-role-accent) transparent;
}

.sector-role-content:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: -6px;
}

.sector-role-description {
    color: var(--blue);
    font: 300 18px/1.7 "Comfortaa", sans-serif;
    overflow-wrap: anywhere;
}

.sector-role-description p { margin: 0 0 20px; }
.sector-role-description p:last-child { margin-bottom: 0; }
.sector-role-description ul,
.sector-role-description ol { padding-left: 24px; margin: 0 0 20px; }
.sector-role-description h1,
.sector-role-description h2,
.sector-role-description h3 { font-family: "Barlow", sans-serif; color: var(--blue); }
.sector-role-description img { max-width: 100%; height: auto; }

.sector-role-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--blue);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.sector-role-close:hover { background: #e7f7f5; }

@media (max-width: 768px) {
    .sector-role-button { font-size: 16px; }
    .turnkey__page .sector-roles-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 20px;
    }
    .sector-roles-popup { padding: 16px; }
    .sector-role-dialog {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 180px) minmax(0, 1fr);
        min-height: 0;
    }
    .sector-role-image { height: 180px; }
    .sector-roles-popup .sector-role-title {
        padding-right: 0;
        font-size: 36px;
        margin-bottom: 24px;
    }
    .sector-role-title:after { margin-top: 20px; }
    .sector-role-content { padding: 24px; }
    .sector-role-description { font-size: 16px; }
    .sector-role-close { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .sector-role-button,
    .sector-role-button:after { transition: none; }
    .sector-role-button:hover,
    .sector-role-button:focus-visible { transform: none; }
}
