
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

/* ================= BASE ================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 17px;
    color: #111827;
    background: #f9fafb;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    overflow-x: clip;
}

.page-shell {
    width: min(100% - 2rem, 1440px);
    margin: 0 auto;
    padding: 3rem 0 4rem;
}

.page-shell--wide {
    width: min(100% - 2rem, 1600px);
}

.page-intro {
    margin: 0 0 0.75rem;
    color: #3c86b4;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.s--center {
    text-align: center;
}

.page-intro h1 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.page-intro p {
    color: #6b7280;
    font-size: 0.98rem;
    line-height: 1.7;
}

.text-content {
    line-height: 1.8;
    font-size: 1.04rem;
    color: #374151;
}

/* ================= HERO ================= */
.hero {
    position: relative;
    min-height: 34rem;
    height: 72vh;
    max-height: 48rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(17,24,39,0.75),
        rgba(17,24,39,0.65),
        rgba(17,24,39,0.85)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 3rem, 860px);
    padding: 1rem;
}

.hero h1 {
    font-size: clamp(2.7rem, 3.7vw, 4.1rem);
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: #60a5fa;
}

.hero p {
    font-size: clamp(1.08rem, 1.25vw, 1.3rem);
    color: #e5e7eb;
    margin-bottom: 2rem;
}

.btn-primary {
    background: #3c86b4;
    padding: 1rem 2rem;
    border-radius: 0.7rem;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(60,134,180,0.4);
}

/* ================= MAIN GRID ================= */
.main-grid {
    width: min(100% - 2.5rem, 1600px);
    margin: 0 auto;
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    gap: clamp(2rem, 4vw, 4rem);
}

/* ================= SOLUTIONS ================= */
.solutions-header {
    margin-bottom: 2rem;
}

.solutions-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.solutions-header p {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.7;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.solutions-grid a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: 0.25s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f9fafb;
    padding: 1rem;
}

.card-content {
    padding: 1.2rem;
}

.card-content h3 {
    color: #3c86b4;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.card-content p {
    color: #6b7280;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* ================= WHO WE ARE ================= */
.who-page {
    width: min(100% - 2rem, 1520px);
    margin: 0 auto;
    padding: 3.5rem 0 4rem;
}

.who-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1.05fr);
    gap: clamp(1.5rem, 3vw, 3.5rem);
    align-items: center;
}

.who-hero__copy {
    min-width: 0;
}

.who-eyebrow {
    margin: 0 0 0.75rem;
    color: #3c86b4;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.who-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2.45rem, 4.1vw, 3.7rem);
    line-height: 1.1;
    color: #111827;
}

.who-lead,
.who-body,
.who-panel__text {
    color: #374151;
    line-height: 1.8;
}

.who-lead {
    margin: 0 0 1rem;
    font-size: 1.12rem;
}

.who-body {
    margin: 0;
    color: #4b5563;
}

.who-hero__media {
    display: flex;
    justify-content: flex-end;
}

.who-hero__image {
    display: block;
    width: min(100%, 600px);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

.who-panel {
    margin-top: 3rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    background: #ffffff;
}

.who-panel__title {
    margin: 0 0 1rem;
    font-size: 1.65rem;
    color: #111827;
}

.who-panel__text {
    margin: 0 0 0.9rem;
}

.who-panel__text--last {
    margin-bottom: 0;
}

/* ================= PROFILE ================= */
.profile-page {
    width: min(100% - 2rem, 1440px);
    margin: 0 auto;
    padding: 3rem 0 4rem;
}

.profile-panel,
.profile-header,
.profile-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.profile-header {
    padding: 1.6rem 1.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.profile-header__copy {
    min-width: 0;
}

.profile-header__title {
    margin: 0 0 0.35rem;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.1;
}

.profile-header__subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 1.04rem;
    line-height: 1.6;
}

.profile-header__brand {
    flex-shrink: 0;
}

.profile-header__logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.profile-card {
    padding: 1.65rem;
}

.profile-card + .profile-card {
    margin-top: 1.25rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(340px, 0.85fr);
    gap: 1.4rem;
    align-items: stretch;
}

.profile-main,
.profile-sidebar {
    min-width: 0;
}

.profile-main {
    display: flex;
    flex-direction: column;
}

.profile-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.profile-panel__header {
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
}

.profile-panel__body {
    padding: 1.65rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.profile-sidebar .profile-card {
    position: sticky;
    top: 6.5rem;
    min-height: 100%;
}

.profile-card--sidebar {
    height: 100%;
}

.profile-card__intro {
    margin-bottom: 1.3rem;
}

.profile-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.55rem;
    line-height: 1.2;
}

.profile-card__subtitle {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
}

.profile-field {
    min-width: 0;
}

.profile-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: #ffffff;
    font: inherit;
}

.profile-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 0.78rem 1.15rem;
    border-radius: 0.7rem;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-button:hover {
    transform: translateY(-1px);
}

.profile-button--primary {
    margin-top: 1.25rem;
    background: #3c86b4;
    color: #ffffff;
}

.profile-button--ghost {
    background: transparent;
    border-color: #d1d5db;
    color: #374151;
}

.profile-button--danger {
    min-width: 148px;
    background: #dc2626;
    color: #ffffff;
}

.profile-actions {
    display: grid;
    gap: 0.9rem;
}

.profile-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1rem 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
}

.profile-action-row--danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.profile-action-row__title {
    margin: 0 0 0.2rem;
    font-size: 1.08rem;
}

.profile-action-row__title--danger {
    color: #b91c1c;
}

.profile-action-row__text {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.profile-action-row__text--danger {
    color: #7f1d1d;
}

.profile-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.profile-modal__panel {
    background: #ffffff;
    padding: 1.8rem;
    border-radius: 1rem;
    max-width: 440px;
    width: min(100%, 440px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.profile-modal__title {
    margin: 0 0 1rem;
    text-align: center;
    font-size: 1.4rem;
}

.profile-modal__fields {
    display: grid;
    gap: 0.8rem;
}

.profile-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ================= SOLUTIONS PAGE ================= */
.solutions-page {
    padding-top: 3rem;
}

.solutions-page__intro {
    margin-bottom: 2.2rem;
}

.solutions-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.solutions-page__card {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.4rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.solutions-page__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.solutions-page__card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 180px;
    min-height: 150px;
    padding: 1rem;
    border-radius: 0.9rem;
    background: #f8fafc;
}

.solutions-page__card-media img {
    width: 100%;
    max-width: 150px;
    max-height: 120px;
    object-fit: contain;
}

.solutions-page__card-body {
    flex: 1;
    min-width: 0;
}

.solutions-page__card-title {
    margin: 0 0 0.55rem;
    font-size: 1.32rem;
    line-height: 1.25;
    color: #111827;
}

.solutions-page__card-text {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

/* ================= SEGMENTATION PAGE ================= */

.segmentation-page .directive-panel {
    padding: 0;
    margin-bottom: 2.5rem;
}

.segmentation-page .directive-panel__header {
    padding: 1.6rem 1.8rem;
}

.segmentation-page .directive-panel__colouredHeader {
    padding: 1.6rem 1.8rem;
    background: #eff6ff;
}

.segmentation-page .profile-panel__body {
    padding: 1.8rem;
    gap: 1.2rem;
}

.segmentation-page h3 {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-size: 1.25rem;
    color: #111827;
}

.segmentation-page p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.segmentation-page h3 + p {
    margin-bottom: 1.3rem;
}

.segmentation-page .profile-form-grid {
    gap: 1.2rem 1.4rem;
    margin-top: 0.5rem;
}

.segmentation-page .profile-button {
    margin-top: 1.5rem;
}

.segmentation-page .directive-bibliography a {
    display: block;
    margin-bottom: 0.7rem;
}

.segmentation-consent {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.8rem;
    background: #f8fafc;
}

.segmentation-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
    line-height: 1.6;
    color: #374151;
}

.segmentation-consent__checkbox {
    margin-top: 0.25rem;
    accent-color: #3c86b4;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.segmentation-consent__link {
    color: #3c86b4;
    text-decoration: none;
    margin-left: 0.3rem;
}

.segmentation-consent__link:hover {
    text-decoration: underline;
}

/* ================= CONSENT PAGE ================= */

.consent-page__intro {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 1.5rem 2rem;
}

.consent-page__intro h1 {
    color: #3c86b4 !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
    font-size: 2.05rem !important;
    text-align: start;

}

.consent-page__intro p {
    width: 100%;
    max-width: none;
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-top: 1rem;
}

.consent-info-panel {
    margin: 0;
}

.consent-info-panel .profile-panel__body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.consent-info-panel .profile-panel__body p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.8;
    color: #374151;
}

.consent-list {
    margin: 0;
    padding-left: 1.35rem;
    display: grid;
    gap: 0.85rem;
}

.consent-list li {
    color: #374151;
    line-height: 1.75;
}

.consent-page .directive-panel {
    padding: 0;
    margin: 0;
}

.consent-page .directive-table-wrap {
    border-radius: 1rem;
}

.consent-page .directive-table td {
    font-size: 0.96rem;
    line-height: 1.7;
}

.consent-page .directive-table__section td {
    font-size: 1rem;
}

@media (max-width: 640px) {
    .consent-page__intro {
        padding: 1.35rem;
    }

    .consent-page__eyebrow {
        font-size: 1.5rem;
    }

    .consent-info-panel .profile-panel__body {
        padding: 1.35rem;
    }

    .consent-list {
        padding-left: 1.1rem;
    }
}

/* ================= DIRECTIVE PAGE ================= */
.directive-page {
    display: grid;
    gap: 1.6rem;
}

.directive-page__intro {
    margin-bottom: 0;
}

.directive-page__intro h1 {
    font-size: clamp(2.4rem, 3.5vw, 3.2rem);
    line-height: 1.1;
    color: #111827;
}

.directive-page__intro h3 {
    margin-top: 0.5rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.6;
    font-size: 1.1rem;
}


.directive-resources {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.directive-resources__card,
.directive-panel,
.directive-bibliography {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.1rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
    margin-bottom: 2rem;
}

.directive-resources__card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.35rem;
    color: inherit;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.directive-resources__card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.directive-resources__label {
    color: #3c86b4;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.directive-resources__card strong {
    font-size: 1.08rem;
    line-height: 1.35;
}

.directive-resources__card p,
.directive-panel__header p,
.directive-bibliography p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

.directive-panel {
    overflow: hidden;
    padding: 0.75rem;
    border-radius: 1.25rem;
}

.directive-panel__header,
.directive-bibliography {
    padding: 1.5rem;
}

.directive-panel__header {
    border-bottom: 1px solid #e5e7eb;
}

.directive-panel__header h2,
.directive-bibliography h2 {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    color: #111827;
}

.directive-table-wrap {
    overflow-x: auto;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.directive-table {
    border: 1px solid #9ca3af;
    border-collapse: collapse;
    border-radius: 0.8rem;
    overflow: hidden;
}

.directive-table tr {
    border-bottom: 1px solid #cbd5e1;
}

.directive-table tbody tr:hover {
    background: #f8fafc;
}

.directive-table th,
.directive-table td {
    padding: 1rem 1.1rem;
    vertical-align: top;
    text-align: left;
    border: 1px solid #cbd5e1;
    line-height: 1.75;
    color: #374151;
}

.directive-table th {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #f1f5f9 0%, #eaf2f8 100%);
    color: #111827;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 1;
}

.directive-table td:first-child,
.directive-table th:first-child {
    width: 42%;
}

.directive-table a,
.directive-bibliography a {
    color: #3c86b4;
    text-decoration: none;
}

.directive-table a:hover,
.directive-bibliography a:hover {
    text-decoration: underline;
}

.directive-table p {
    margin: 0.45rem 0 0;
}

.directive-table__section td {
    background: linear-gradient(135deg, #e0edff 0%, #f8fafc 100%);
    color: #111827;
    font-weight: 700;
    border: 1px solid #d6e4f0;
}

/* ================= LEARN ================= */
.learn-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: clamp(1.5rem, 2vw, 2rem);
}

.learn-box h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.learn-box p {
    margin-bottom: 1.2rem;
    color: #374151;
    font-size: 1.02rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.learn-box a {
    color: #3c86b4;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ================= CONTACT ================= */
.contact {
    width: min(100% - 3rem, 1100px);
    margin: 0 auto;
    text-align: center;
    padding: 3rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
}

.contact p {
    color: #4b5563;
    font-size: 1.02rem;
    margin-top: 1rem;
}

/* ================= LOGOS ================= */
.logos-section {
    padding: 2rem 0;
}

.logos-section__inner {
    width: min(100% - 2.5rem, 1600px);
    margin: 0 auto;
    text-align: center;
}

.logos-section__title {
    margin-top: 1rem;
    font-size: 2rem;
}

.carousel-container {
    overflow: hidden;
    margin-top: 1.5rem;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 25s linear infinite;
    align-items: center;
    will-change: transform;
}

.carousel-group {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
    padding-right: 40px;
}

.carousel-track img {
    height: 80px;
    opacity: 0.85;
}

@keyframes scroll {
    100% {
        transform: translateX(-50%);
    }
}


/* ================= PRIVATE DASHBOARD ================= */

.private-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.private-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.private-header .page-intro {
    color: #3c86b4;
}

.private-title {
    margin-top: 0.5rem;
    font-size: clamp(2.2rem, 3vw, 3rem);
}

.private-subtitle {
    color: #6b7280;
    margin-top: 0.5rem;
}

.private-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 999px;
    color: #166534;
    font-weight: 700;
}

.private-status__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #16a34a;
}

.private-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.private-metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.4rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.private-metric-card__label {
    display: block;
    color: #6b7280;
    margin-bottom: 0.6rem;
}

.private-metric-card strong {
    font-size: 2rem;
}

.private-button {
    border: none;
    background: #3c86b4;
    color: white;
    padding: 0.55rem 0.85rem;
    border-radius: 0.55rem;
    cursor: pointer;
    font-weight: 600;
}

.private-button--red {
    background: rgba(220, 38, 38, 0.75);
}

.private-button--green {
    background: rgba(22, 163, 74, 0.5);
}

.private-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.private-badge--green {
    background: #dcfce7;
    color: #166534;
}

.private-badge--red {
    background: #fee2e2;
    color: #991b1b;
}

.private-legend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.private-legend {
    padding: 1.5rem;
}

.private-legend p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.private-session {
    border: none;
    background: transparent;
    color: #3c86b4;
    cursor: pointer;
    font-weight: 700;
}

.private-page .directive-panel__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title search"
        "text search";
    align-items: start;
    column-gap: 1.25rem;
    row-gap: 0.35rem;
}

.private-page .directive-panel__colouredHeader {
    margin: 1rem;
    padding: 1rem;
    background: #eff6ff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title search"
        "text search";
    align-items: start;
    column-gap: 1.25rem;
    row-gap: 0.35rem;
}

.private-page .directive-panel__header h2 {
    grid-area: title;
    margin-bottom: 0;
}

.private-page .directive-panel__header p {
    grid-area: text;
}

.private-workers-panel .directive-table {
    width: 100%;
    table-layout: auto;
}

.private-workers-panel .directive-table td:first-child,
.private-workers-panel .directive-table th:first-child {
    width: 72px;
}

.private-workers-panel .directive-table td:nth-child(2),
.private-workers-panel .directive-table th:nth-child(2) {
    width: 24%;
}

.private-workers-panel .directive-table td:nth-child(3),
.private-workers-panel .directive-table th:nth-child(3) {
    width: 18%;
}

.private-workers-panel .directive-table td:nth-child(4),
.private-workers-panel .directive-table th:nth-child(4),
.private-workers-panel .directive-table td:nth-child(5),
.private-workers-panel .directive-table th:nth-child(5) {
    width: 96px;
    text-align: center;
}

.private-workers-panel .directive-table td:nth-child(6),
.private-workers-panel .directive-table th:nth-child(6),
.private-workers-panel .directive-table td:nth-child(7),
.private-workers-panel .directive-table th:nth-child(7) {
    width: 156px;
    text-align: center;
}

.private-toolbar {
    grid-area: search;
    display: flex;
    justify-content: flex-end;
    align-self: center;
}

.private-search {
    width: min(100%, 320px);
    padding: 0.8rem 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 0.8rem;
    background: #ffffff;
    color: #111827;
    font: inherit;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.private-search::placeholder {
    color: #9ca3af;
}

.private-search:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.private-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 1.1rem 1.25rem 0;
}

.private-pagination__control,
.private-pagination__page {
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.7rem;
    border: 1px solid #d1d5db;
    border-radius: 0.7rem;
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.private-pagination__control:hover,
.private-pagination__page:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.private-pagination__page.is-active {
    background: #3c86b4;
    border-color: #3c86b4;
    color: #ffffff;
}

.private-pagination__control:disabled {
    background: #f8fafc;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.private-consent-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.private-consent-check {
    color: #16a34a;
    font-size: 1.2rem;
    font-weight: 700;
}

.private-consent-cross {
    color: #dc2626;
    font-size: 1.2rem;
    font-weight: 700;
}

.private-consent-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    border-radius: 999px;

    background: #3b82f6;
    color: white;

    text-decoration: none;

    font-size: 0.85rem;
    font-weight: 700;
}

.private-button--muted {
    background: #cbd5e1;
    color: #475569;
    cursor: not-allowed;
}

/* ================= DROPDOWN LEGENDS ================= */

.private-dropdown {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.private-dropdown__summary {
    list-style: none;
    cursor: pointer;

    padding: 1.25rem 1.4rem;

    font-weight: 700;
    font-size: 1rem;

    color: #111827;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.private-dropdown__summary::-webkit-details-marker {
    display: none;
}

.private-dropdown__summary::after {
    content: "+";
    color: #3c86b4;
    font-size: 1.4rem;
    font-weight: 400;
}

.private-dropdown[open] .private-dropdown__summary::after {
    content: "−";
}

.private-dropdown__content {
    padding: 0 1.4rem 1.4rem;
    border-top: 1px solid #e5e7eb;
}

.private-dropdown__content p {
    margin-top: 0.85rem;
    line-height: 1.7;
    color: #374151;
}

/* ================= PRIVATE JOB MODAL ================= */

body.private-modal-open {
    overflow: hidden;
}

.private-job-modal[hidden] {
    display: none;
}

.private-job-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.private-job-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
}

.private-job-modal__panel {
    position: relative;
    width: min(1080px, 100%);
    max-height: min(85vh, 900px);
    overflow: auto;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.private-job-modal__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.private-job-modal__eyebrow {
    margin: 0 0 0.35rem;
    color: #3c86b4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
}

.private-job-modal__title {
    margin: 0;
    font-size: 1.45rem;
    color: #111827;
}

.private-job-modal__close {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.private-job-modal__status {
    margin: 0 0 1rem;
    color: #374151;
}

.private-job-modal__notice {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #fde68a;
    border-radius: 0.8rem;
    background: #fffbeb;
    color: #92400e;
}

.private-job-detail-table {
    width: 100%;
}

.private-job-detail-table td:first-child,
.private-job-detail-table th:first-child {
    width: auto;
}

/* ================= MY ENTRIES ================= */

.my-entries-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.my-entries-page .private-legend-grid {
    align-items: start;
}

.my-entries-page .directive-panel__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title search"
        "text search";
    align-items: start;
    column-gap: 1.25rem;
    row-gap: 0.35rem;
}

.my-entries-page .directive-panel__header h2 {
    grid-area: title;
    margin-bottom: 0;
}

.my-entries-page .directive-panel__header p {
    grid-area: text;
}

.my-entries-page .directive-table {
    width: 100%;
}

.my-entries-page .directive-table td:first-child,
.my-entries-page .directive-table th:first-child {
    width: auto;
}

.my-entries-page .directive-table td:last-child,
.my-entries-page .directive-table th:last-child {
    width: 110px;
}

.my-entries-page .private-consent-cell {
    justify-content: center;
}


@media (max-width: 1100px) {

    .private-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .private-legend-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .private-metrics {
        grid-template-columns: 1fr;
    }

    .private-page .directive-panel__header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "text"
            "search";
    }

    .my-entries-page .directive-panel__header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "text"
            "search";
    }

    .private-toolbar {
        justify-content: stretch;
    }

    .private-search {
        width: 100%;
    }

    .private-pagination {
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* ================= RESPONSIVE ================= */

@media (min-width: 1200px) {
    .solutions-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

    .solutions-page__grid {
        grid-template-columns: repeat(2, minmax(340px, 1fr));
    }

    .who-hero {
        grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.18fr);
    }

    .who-hero__image {
        width: min(100%, 760px);
    }
}

/* Tablet */
@media (max-width: 1180px) {

    .main-grid {
        grid-template-columns: 1fr;
        width: min(100% - 3rem, 1120px);
        padding: 3rem 0;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.16rem;
    }

    .logos-section__inner {
        width: min(100% - 3rem, 1120px);
    }

    .who-page {
        width: min(100% - 2.5rem, 1280px);
    }

    .who-hero {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.9fr);
        gap: 1.5rem;
    }

    .who-hero__image {
        width: min(100%, 520px);
    }

    .profile-page {
        width: min(100% - 2.5rem, 1240px);
    }

    .page-shell,
    .page-shell--wide {
        width: min(100% - 2.5rem, 1280px);
    }

    .solutions-page__grid {
        grid-template-columns: 1fr;
    }

    .solutions-page__card {
        gap: 1.15rem;
    }

    .directive-resources {
        grid-template-columns: 1fr;
    }

    .solutions-page__card-media {
        flex-basis: 150px;
        min-height: 135px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar .profile-card {
        position: static;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 640px) {

    .hero {
        min-height: 30rem;
        height: 64vh;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .main-grid {
        width: min(100% - 2rem, 100%);
        padding: 2rem 0;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .learn-box {
        padding: 1.2rem;
    }

    .card img {
        height: 160px;
    }

    .carousel-track img {
        height: 50px;
    }

    .logos-section__inner,
    .contact,
    .who-page {
        width: min(100% - 2.5rem, 100%);
    }

    .page-shell,
    .page-shell--wide,
    .profile-page {
        width: min(100% - 2.5rem, 100%);
    }

    .page-shell {
        padding: 2.5rem 0 3rem;
    }

    .solutions-page {
        padding-top: 2.5rem;
    }

    .solutions-page__card {
        flex-direction: column;
        align-items: stretch;
        padding: 1.15rem;
    }

    .solutions-page__card-media {
        flex-basis: auto;
        min-height: 160px;
        padding: 1rem;
    }

    .solutions-page__card-title {
        font-size: 1.18rem;
    }

    .directive-panel__header,
    .directive-bibliography {
        padding: 1.2rem;
    }

    .directive-table th,
    .directive-table td {
        padding: 0.85rem 0.9rem;
    }

    .who-page {
        padding: 2.75rem 0 3rem;
    }

    .who-hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(130px, 0.95fr);
        gap: 1rem;
        align-items: start;
    }

    .who-title {
        font-size: 2.05rem;
    }

    .who-lead {
        font-size: 1.05rem;
    }

    .who-hero__media {
        justify-content: flex-end;
    }

    .who-hero__image {
        width: 100%;
        max-width: 260px;
    }

    .who-panel {
        margin-top: 2rem;
        padding: 1.4rem;
    }

    .profile-page {
        width: min(100% - 2.5rem, 100%);
        padding: 2.4rem 0 3rem;
    }

    .profile-header,
    .profile-card {
        padding: 1.25rem;
    }


    .profile-header {
        align-items: flex-start;
    }

    .profile-header__title {
        font-size: 1.75rem;
    }

    .profile-header__logo {
        width: 64px;
        height: 64px;
    }

    .profile-button,
    .profile-button--danger {
        width: 100%;
        min-width: 0;
    }

    .profile-action-row {
        align-items: stretch;
    }

    .profile-modal__panel {
        padding: 1.35rem;
    }

    .profile-modal__actions {
        flex-direction: column;
    }
}
