:root {
    --color-brand: #28588f;
    --color-brand-hover: #204875;
    --color-brand-soft: #f1f5fa;
    --color-navy: #0b1f3a;
    --scrollbar-thumb: #9fb3c8;
    --scrollbar-thumb-hover: #738fae;
    --scrollbar-track: #eef3f8;
}

html {
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

/* Shared scrollbar language for the document, panels, modals, tables and horizontal rails. */
* {
    scrollbar-width: thin !important;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track) !important;
}

@supports selector(::-webkit-scrollbar) {
    *::-webkit-scrollbar {
        width: 9px !important;
        height: 9px !important;
    }

    *::-webkit-scrollbar-track {
        border-radius: 999px !important;
        background: var(--scrollbar-track) !important;
    }

    *::-webkit-scrollbar-thumb {
        min-width: 44px;
        min-height: 44px;
        border: 2px solid transparent !important;
        border-radius: 999px !important;
        background: var(--scrollbar-thumb) !important;
        background-clip: padding-box !important;
    }

    *::-webkit-scrollbar-thumb:hover {
        background-color: var(--scrollbar-thumb-hover) !important;
    }

    *::-webkit-scrollbar-corner {
        background: transparent !important;
    }

    *::-webkit-scrollbar-button {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body.font-site-source-sans-3 .text-\[8px\] {
    font-size: 0.6875rem;
    line-height: 0.9375rem;
}

body.font-site-source-sans-3 .text-\[9px\],
body.font-site-source-sans-3 .text-\[10px\] {
    font-size: 0.75rem;
    line-height: 1rem;
}

body.font-site-source-sans-3 .text-\[11px\],
body.font-site-source-sans-3 .text-xs {
    font-size: 0.8125rem;
    line-height: 1.125rem;
}

body.font-site-source-sans-3 .text-sm {
    font-size: 0.9375rem;
    line-height: 1.375rem;
}

body.font-site-source-sans-3 .text-slate-400 {
    color: #64748b;
}

body.font-site-source-sans-3 input::placeholder,
body.font-site-source-sans-3 textarea::placeholder {
    color: #7c8aa0;
    opacity: 1;
}

.site-main-nav {
    display: none;
    height: 100%;
    align-items: center;
    gap: 1.75rem;
}

.site-main-nav-link {
    position: relative;
    display: inline-flex;
    height: 100%;
    align-items: center;
    color: #334155;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25rem;
    transition: color 180ms ease;
}

.site-main-nav-link:hover {
    color: var(--color-brand);
}

.site-main-nav-link[aria-current="page"] {
    color: var(--color-brand);
    font-weight: 700;
}

.site-main-nav-link[aria-current="page"]::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--color-brand);
    content: "";
}

.site-mobile-nav-link {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    color: #334155;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25rem;
    transition: color 180ms ease, background-color 180ms ease;
}

.site-mobile-nav-link:hover,
.site-mobile-nav-link[aria-current="page"] {
    background: var(--color-brand-soft);
    color: var(--color-brand);
}

.site-mobile-nav-link[aria-current="page"] {
    font-weight: 700;
}

@media (min-width: 1280px) {
    .site-main-nav {
        display: flex;
    }
}

html.offcanvas-open,
body.offcanvas-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.jobs-city-list {
    height: 106px;
    overflow: hidden;
    transition: height 220ms ease;
}

.jobs-city-list.is-expanded {
    height: 190px;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-color: #b8c7d9 transparent;
    scrollbar-width: thin;
}

.jobs-city-list.is-expanded::-webkit-scrollbar {
    width: 5px;
}

.jobs-city-list.is-expanded::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #b8c7d9;
}

.member-panel-link {
    color: #475569;
    background-color: transparent;
    transition: background-color 160ms ease, color 160ms ease;
}

/* Critical mobile panel navigation layout lives in the preloaded stylesheet so it never shifts while Tailwind initializes. */
html.member-panel-document,
body.member-panel-page {
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

html.member-panel-document {
    container-type: inline-size;
}

@supports (overflow: clip) {
    html.member-panel-document,
    body.member-panel-page {
        overflow-x: clip;
    }
}

.member-mobile-bottom-bar {
    position: fixed !important;
    z-index: 70 !important;
    inset: auto auto calc(12px + env(safe-area-inset-bottom, 0px)) 12px !important;
    display: grid !important;
    width: calc(100cqw - 24px) !important;
    max-width: none !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    overflow: hidden;
    padding: 8px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 16px 50px rgba(15, 23, 42, .18) !important;
    isolation: isolate;
    backdrop-filter: none !important;
    transform: none !important;
    touch-action: pan-y;
}

.member-mobile-bottom-bar :where(a, button) {
    min-width: 0;
    font-size: 14px !important;
    line-height: 1.25;
}

.member-mobile-bottom-bar--three {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (min-width: 1024px) {
    .member-mobile-bottom-bar { display: none !important; }
}

.site-header-notification {
    position: relative;
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6e0eb;
    border-radius: 9px;
    background: #fff;
    color: #425b76;
    font-size: 21px;
    line-height: 1;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.site-header-notification:hover {
    border-color: #9ebbd8;
    background: #f1f6fb;
    color: var(--color-brand);
}

.site-header-notification:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 3px;
}

.site-header-notification__badge {
    position: absolute;
    top: -7px;
    right: -7px;
    display: inline-flex;
    min-width: 23px;
    height: 23px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d9364f;
    padding: 0 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 3px 9px rgba(160, 29, 50, .22);
}

.site-header-notification__badge[hidden],
.site-header-notification__badge.hidden { display: none !important; }

/* Keep every desktop sidebar and mobile account-menu row at the same readable scale. */
.member-panel-surface aside nav :where(a, button) {
    font-size: 14px !important;
    line-height: 1.25rem;
}

/* Shared member-panel typography: calm, readable section labels without tiny all-caps text. */
.member-panel-surface :where([class*="uppercase"][class*="tracking"]) {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.035em !important;
    text-transform: none !important;
}

.member-panel-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e8eef5;
    background: linear-gradient(110deg, #ffffff 0%, #f8fbff 100%);
}

.member-panel-section-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.member-panel-section-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e7f5;
    border-radius: 7px;
    background: #f3f8fd;
    color: #246196;
    font-size: 19px;
}

.member-panel-section-title {
    margin: 0;
    color: var(--color-navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.012em;
}

.member-panel-section-description {
    margin-top: 3px;
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

@media (min-width: 640px) {
    .member-panel-section-head {
        padding-inline: 24px;
    }
}

/* The link itself owns its hover state, never the sidebar or a parent group. */
@media (hover: hover) {
    a.member-panel-link:hover {
        color: var(--color-brand);
        background-color: #f8fafc;
    }
}

a.member-panel-link:focus-visible {
    color: var(--color-brand);
    background-color: #f8fafc;
    outline: 2px solid #9db6d0;
    outline-offset: -2px;
}

/* Company menus only: always-open section groups with scoped link sizing. */
.company-menu-group-static + .company-menu-group-static { margin-top: 24px; }
.company-menu-group-title {
    margin: 0;
    padding: 0 12px;
    color: #60748b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.company-menu-group-static > div > a,
.company-menu-group-static > div > button { font-size: 14px; }

.member-sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color: #c6d5e5 transparent;
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

.member-modal-scroll {
    overscroll-behavior: contain;
    scroll-behavior: auto;
}

/* Course form: calm field surfaces and a clear, consistent interaction state. */
[data-training-course-form] input,
[data-training-course-form] select,
[data-training-course-form] textarea {
    border-color: #cbd8e6;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.035);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

[data-training-course-form] input:hover:not(:disabled),
[data-training-course-form] select:hover:not(:disabled),
[data-training-course-form] textarea:hover:not(:disabled) {
    border-color: #9fb3c8;
}

[data-training-course-form] input:focus,
[data-training-course-form] select:focus,
[data-training-course-form] textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.12), 0 1px 2px rgb(15 23 42 / 0.04);
}

[data-training-course-form] input:disabled,
[data-training-course-form] select:disabled,
[data-training-course-form] textarea:disabled {
    cursor: not-allowed;
    background-color: #f1f5f9;
}

[data-training-course-form] select { cursor: pointer; }
[data-training-course-form] textarea { resize: vertical; }

/* Chromium/WebKit: rounded, inset thumb without native arrow buttons. */
@supports selector(::-webkit-scrollbar) {
    .member-sidebar-scroll { scrollbar-width: auto; scrollbar-color: auto; }
    .member-sidebar-scroll::-webkit-scrollbar { width: 8px; }
    .member-sidebar-scroll::-webkit-scrollbar-track { background: transparent; margin-block: 12px; }
    .member-sidebar-scroll::-webkit-scrollbar-thumb {
        background: #c6d5e5;
        border: 2px solid transparent;
        background-clip: padding-box;
        border-radius: 20px;
        min-height: 44px;
    }
    .member-sidebar-scroll::-webkit-scrollbar-thumb:hover { background-color: #9db6d0; }
    .member-sidebar-scroll::-webkit-scrollbar-thumb:active { background-color: #7799bb; }
    .member-sidebar-scroll::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .member-sidebar-scroll { scroll-behavior: auto; }
}

.job-mobile-apply-bar {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.font-site-inter {
    font-family: "Inter", Arial, sans-serif;
}

.font-site-manrope {
    font-family: "Manrope", Arial, sans-serif;
}

.font-site-nunito-sans {
    font-family: "Nunito Sans", Arial, sans-serif;
}

.font-site-roboto {
    font-family: "Roboto", Arial, sans-serif;
}

.font-site-source-sans-3 {
    font-family: "Source Sans 3", Arial, sans-serif;
}

.site-toast-region {
    position: fixed;
    z-index: 200;
    right: 1.5rem;
    bottom: 1.5rem;
    display: grid;
    width: min(25rem, calc(100vw - 2rem));
    gap: 0.75rem;
    pointer-events: none;
}

.site-toast {
    --toast-accent: #2563eb;
    --toast-soft: #eff6ff;
    --toast-border: #bfdbfe;
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2rem;
    gap: 0.75rem;
    overflow: hidden;
    padding: 0.875rem 0.875rem 1rem;
    border: 1px solid var(--toast-border);
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 18px 45px -20px rgba(15, 23, 42, 0.28), 0 8px 18px -12px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: auto;
    transform: translate3d(1.25rem, 0, 0) scale(0.98);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-toast.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.site-toast.is-leaving {
    opacity: 0;
    transform: translate3d(0.75rem, 0, 0) scale(0.98);
}

.site-toast--success {
    --toast-accent: #059669;
    --toast-soft: #ecfdf5;
    --toast-border: #a7f3d0;
}

.site-toast--error {
    --toast-accent: #dc2626;
    --toast-soft: #fef2f2;
    --toast-border: #fecaca;
}

.site-toast--warning {
    --toast-accent: #d97706;
    --toast-soft: #fffbeb;
    --toast-border: #fde68a;
}

.site-toast__icon {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--toast-soft);
    color: var(--toast-accent);
    font-size: 1.2rem;
}

.site-toast__content {
    min-width: 0;
    padding-top: 0.1rem;
}

.site-toast__title {
    color: #0f172a;
    font-size: 0.8125rem;
    font-weight: 750;
    line-height: 1.25rem;
}

.site-toast__message {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.15rem;
}

.site-toast__close {
    display: flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 150ms ease, color 150ms ease;
}

.site-toast__close:hover,
.site-toast__close:focus-visible {
    background: #f1f5f9;
    color: #334155;
    outline: none;
}

.site-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--toast-accent);
    animation: site-toast-progress var(--toast-duration) linear forwards;
}

@keyframes site-toast-progress {
    to {
        width: 0;
    }
}

@media (max-width: 640px) {
    .site-toast-region {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-toast {
        transition: opacity 100ms linear;
        transform: none;
    }
}
[data-auth-guest][hidden],
[data-auth-member][hidden] {
    display: none !important;
}



/* Public directory search standard: companies, jobs and training courses. */
.home-job-search.public-search-panel {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border-color: rgba(148, 172, 199, 0.55);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(73, 126, 181, 0.09), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 253, 0.98));
    box-shadow: 0 24px 64px rgba(15, 45, 80, 0.16), 0 2px 8px rgba(15, 45, 80, 0.05);
}

.home-job-search.public-search-panel::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #28588f, #4d88bd 52%, #79a8ce);
    content: "";
}

.home-job-search-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: fit-content;
    margin: 0 0 1.125rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d9e5f0;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.88);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-navy);
}

.home-job-search-title > i { font-size: 1.5rem; color: var(--color-brand); }
.home-job-search-grid { display: grid; gap: 0.875rem; }
.home-job-search-field {
    display: flex;
    min-width: 0;
    gap: 0.75rem;
    padding: 0.875rem;
    border: 1px solid #dce6f0;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 7px 20px rgba(27, 61, 96, 0.045);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.home-job-search-field:focus-within {
    border-color: #8eb2d3;
    box-shadow: 0 10px 26px rgba(40, 88, 143, 0.1), 0 0 0 3px rgba(40, 88, 143, 0.07);
}
.home-job-search-icon-wrap {
    display: flex;
    width: 2.25rem;
    height: 2.25rem;
    flex: none;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6e5f2;
    border-radius: 0.6875rem;
    background: linear-gradient(145deg, #f5f9fd, #eaf2f9);
    color: var(--color-brand);
}
.home-job-search-icon { font-size: 1.25rem; line-height: 1; color: inherit; }
.home-job-search-content { flex: 1; min-width: 0; }
.home-job-search .public-search-label { margin-bottom: 0.375rem; font-size: 0.9375rem; font-weight: 700; color: #183b61; }
.home-job-search-location { display: grid; gap: 0.625rem; }
.home-job-search-district,
.home-job-search-subfield {
    padding-top: 0.625rem;
    border-top: 1px solid #e1eaf2;
}
.home-job-search-district[hidden],
.home-job-search-subfield[hidden] { display: none; }
.home-job-search-sublabel {
    display: block;
    margin-bottom: 0.375rem;
    color: #49647f;
    font-size: 0.875rem;
    font-weight: 600;
}
.home-job-search .public-search-select {
    height: 2.875rem;
    border-color: #d4e0eb;
    border-radius: 0.6875rem;
    padding-left: 0.75rem;
    padding-right: 2.25rem;
    background-color: #fbfdff;
    background-position: right 0.75rem center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #344e68;
}
.home-job-search .public-search-select:hover { border-color: #9ebbd5; background-color: #fff; }
.home-job-search .public-search-select:focus { border-color: var(--color-brand); background-color: #fff; }
.home-job-search .public-search-select:disabled { cursor: not-allowed; color: #64748b; }
.home-job-search-submit { width: 100%; margin-top: 1rem; }
.home-job-search .home-job-search-submit {
    height: 3.125rem;
    border-color: #214d7d;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #2e659e, #244f7d);
    font-size: 1rem;
    box-shadow: 0 12px 24px rgba(40, 88, 143, 0.22);
}
.home-job-search .home-job-search-submit:hover {
    border-color: #183f69;
    background: linear-gradient(135deg, #285b92, #1d456f);
    box-shadow: 0 14px 28px rgba(40, 88, 143, 0.28);
}
.home-job-search-error { margin-top: 0.75rem; color: #b91c1c; font-size: 0.875rem; }
.home-job-search-error > button { margin-left: 0.5rem; font-weight: 600; text-decoration: underline; }

@media (min-width: 640px) {
    .home-job-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-job-search-date { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
    .home-job-search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.public-search-panel {
    border: 1px solid #d6e1ed;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.045);
}

.public-search-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25rem;
}

.public-search-control {
    display: flex;
    height: 2.75rem;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #fff;
    padding-inline: 0.75rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.public-search-control:focus-within,
.public-search-select:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 2px #dbeafe;
}

.public-search-control > i {
    flex: none;
    color: #94a3b8;
    font-size: 1.125rem;
}

.public-search-input {
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: #1e293b;
    font-size: 14px;
    outline: 0;
}

.public-search-input::placeholder {
    color: #94a3b8;
}

.public-search-select {
    appearance: none;
    width: 100%;
    height: 2.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.125rem;
    padding-inline: 0.75rem 2.25rem;
    color: #475569;
    font-size: 14px;
    outline: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.public-search-submit,
.public-search-reset {
    display: inline-flex;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding-inline: 1rem;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.public-search-submit {
    border: 1px solid var(--color-brand);
    background: var(--color-brand);
    color: #fff;
}

.public-search-submit:hover {
    border-color: var(--color-brand-hover);
    background: var(--color-brand-hover);
}

.public-search-reset {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.public-search-reset:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: var(--color-brand);
}

.public-search-submit:focus-visible,
.public-search-reset:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

@media (min-width: 640px) {
    .public-search-panel {
        padding: 1.25rem;
    }
}
