:root {
    /* Centralized brand palette */
    --brand-blue: #312d74;
    --brand-indigo: #312d74;
    --brand-blue-hover: #282567;
    --brand-blue-active: #221f57;
    --brand-blue-rgb: 49, 45, 116;
    --brand-black: #212529;

    /* Bootstrap theme mapping */
    --bs-primary: var(--brand-blue);
    --bs-primary-rgb: var(--brand-blue-rgb);
    --bs-secondary: var(--brand-blue);
    --bs-secondary-rgb: var(--brand-blue-rgb);
    --bs-dark: var(--brand-black);
    --bs-dark-rgb: 33, 37, 41;
    --bs-link-color: var(--brand-blue);
    --bs-link-hover-color: var(--brand-black);

    --brand-text: #172B4D;
    --brand-muted: #6B778C;
    --brand-surface: #F4F5F7;
    --brand-border: #DFE1E6;

    --bs-font-sans-serif: 'Instrument Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

body {
    font-family: var(--bs-body-font-family);
}

:where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    font-family: var(--bs-body-font-family);
}

/* Optional utility classes for easy brand usage in Blade templates */
.text-brand-blue {
    color: var(--brand-blue) !important;
}

.text-brand-black {
    color: var(--brand-black) !important;
}

.bg-brand-blue {
    background-color: var(--brand-blue) !important;
}

.bg-brand-black {
    background-color: var(--brand-black) !important;
}

.bg-brand-indigo {
    background-color: var(--brand-indigo) !important;
}

/* Ensure Bootstrap primary buttons follow brand color */
.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--brand-blue);
    --bs-btn-border-color: var(--brand-blue);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--brand-blue-hover);
    --bs-btn-hover-border-color: var(--brand-blue-hover);
    --bs-btn-focus-shadow-rgb: var(--brand-blue-rgb);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--brand-blue-active);
    --bs-btn-active-border-color: var(--brand-blue-active);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: var(--brand-blue);
    --bs-btn-disabled-border-color: var(--brand-blue);
}

.hero-brand-gradient {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-black) 100%);
}

/* Public navigation */
.public-nav {
    background: #fff;
    border-bottom: 1px solid var(--brand-border);
    box-shadow: 0 1px 0 rgba(9, 30, 66, 0.04);
    z-index: 1030;
}

.public-nav__brand img {
    display: block;
    height: 2rem;
    width: auto;
}

@media (min-width: 992px) {
    .public-nav__brand img {
        height: 2.25rem;
    }
}

.public-nav__links {
    gap: 0.25rem;
}

.public-nav__links .nav-link {
    color: var(--brand-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.public-nav__links .nav-link:hover,
.public-nav__links .nav-link:focus-visible {
    color: var(--brand-text);
}

.public-nav__links .nav-link.active {
    color: var(--brand-text);
    font-weight: 600;
}

.public-nav__actions {
    min-width: 0;
}

.public-nav__login {
    color: var(--brand-muted) !important;
    font-weight: 500;
    text-decoration: none !important;
    padding-inline: 0.75rem;
}

.public-nav__login:hover {
    color: var(--brand-text) !important;
}

.public-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.public-nav__btn--seekers {
    color: var(--brand-blue);
    background: #fff;
    border: 1.5px solid var(--brand-blue);
}

.public-nav__btn--seekers:hover,
.public-nav__btn--seekers:focus-visible {
    color: var(--brand-blue);
    background: rgba(var(--brand-blue-rgb), 0.06);
    border-color: var(--brand-blue);
}

.public-nav__btn--employers {
    color: #fff;
    background: var(--brand-blue);
    border: 1.5px solid var(--brand-blue);
}

.public-nav__btn--employers:hover,
.public-nav__btn--employers:focus-visible {
    color: #fff;
    background: var(--brand-blue-hover);
    border-color: var(--brand-blue-hover);
}

/* Public homepage */
.home-hero {
    background: #fff;
    padding: 2.5rem 0 2rem;
}

@media (min-width: 992px) {
    .home-hero {
        padding: 4rem 0 3rem;
    }
}

.home-hero__content {
    max-width: 34rem;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(var(--brand-blue-rgb), 0.08);
    color: var(--brand-blue);
    font-size: 0.8125rem;
    font-weight: 600;
}

.home-hero__title {
    margin: 0;
    color: var(--brand-text);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.home-hero__title-accent {
    color: #25cdab;
    font-style: italic;
}

.home-hero__lead {
    margin: 1.25rem 0 0;
    color: var(--brand-muted);
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 30rem;
}

.home-hero__actions {
    margin-top: 1.75rem;
}

.home-hero__cta {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 0.625rem;
}

.home-hero__visual {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 1.25rem 3rem rgba(23, 43, 77, 0.12);
}

.home-search-section {
    margin-top: 1.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 992px) {
    .home-search-section {
        margin-top: 2.5rem;
        padding-bottom: 3.5rem;
    }
}

.job-search-form__card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 0.875rem;
    box-shadow: 0 0.75rem 2rem rgba(23, 43, 77, 0.08);
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .job-search-form__card {
        padding: 1.5rem;
    }
}

.job-search-form__label {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--brand-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.job-search-form__control {
    min-height: 2.75rem;
    border-color: var(--brand-border);
    border-radius: 0.5rem;
    color: var(--brand-text);
    font-size: 0.9375rem;
}

.job-search-form__control:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-blue-rgb), 0.12);
}

.job-search-form__input-wrap {
    position: relative;
}

.job-search-form__input-icon {
    position: absolute;
    top: 50%;
    left: 0.875rem;
    transform: translateY(-50%);
    color: var(--brand-muted);
    font-size: 0.875rem;
    pointer-events: none;
}

.job-search-form__control--search {
    padding-left: 2.5rem;
    border-color: #C1C7D0;
}

.job-search-form__grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-search-form__row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .job-search-form__row--top {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    }

    .job-search-form__row--bottom {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .job-search-form__field--submit {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .job-search-form__row--bottom {
        grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
        align-items: end;
    }

    .job-search-form__field--submit {
        grid-column: auto;
        align-self: end;
    }
}

.job-search-form__field--submit .job-search-form__submit,
.job-search-form__field--submit .btn {
    width: 100%;
    min-width: 8.5rem;
}

@media (min-width: 992px) {
    .job-search-form__field--submit .job-search-form__submit,
    .job-search-form__field--submit .btn {
        width: auto;
    }
}

.job-search-form__submit {
    min-height: 2.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.job-search-form__clear {
    display: block;
    margin-top: 0.5rem;
    color: var(--brand-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.job-search-form__clear:hover {
    color: var(--brand-blue);
}

.filterable-select {
    position: relative;
}

.filterable-select__wrap {
    position: relative;
}

.filterable-select__input {
    padding-right: 2.25rem;
}

.filterable-select__chevron,
.filterable-select__toggle {
    position: absolute;
    top: 50%;
    right: 0.875rem;
    transform: translateY(-50%);
    color: var(--brand-muted);
    font-size: 0.75rem;
    pointer-events: none;
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
}

.filterable-select__toggle {
    pointer-events: auto;
    cursor: pointer;
}

.filterable-select--open .filterable-select__toggle i {
    transform: rotate(180deg);
}

.filterable-select__toggle i {
    display: inline-block;
    transition: transform 0.15s ease;
}

.filterable-select__list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    max-height: 14rem;
    margin: 0;
    padding: 0.375rem 0;
    list-style: none;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 1.75rem rgba(23, 43, 77, 0.12);
}

.filterable-select__option,
.filterable-select__empty {
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.filterable-select__option {
    cursor: pointer;
    color: var(--brand-text);
}

.filterable-select__option:hover,
.filterable-select__option.filterable-select__option--active {
    background: rgba(var(--brand-blue-rgb), 0.08);
    color: var(--brand-blue);
}

.filterable-select__empty {
    color: var(--brand-muted);
    font-size: 0.875rem;
}

.home-section-header__title {
    margin: 0;
    color: var(--brand-text);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-section-header__lead {
    margin: 0;
    max-width: 40rem;
    color: var(--brand-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.home-section-header.text-center .home-section-header__lead {
    margin-left: auto;
    margin-right: auto;
}

.home-how-section {
    background: #fff;
}

.home-how-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .home-how-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .home-how-step {
        padding: 0 2rem;
    }

    .home-how-step:not(:last-child) {
        border-right: 1px solid var(--brand-border);
    }

    .home-how-step:first-child {
        padding-left: 0;
    }

    .home-how-step:last-child {
        padding-right: 0;
    }
}

.home-how-step__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-how-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(var(--brand-blue-rgb), 0.1);
    color: var(--brand-blue);
    font-size: 1.25rem;
}

.home-how-step__number {
    color: var(--brand-blue);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.home-how-step__title {
    margin: 0 0 0.75rem;
    color: var(--brand-text);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-how-step__text {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
    max-width: 22rem;
}

.home-featured-jobs {
    background: #fff;
}

.home-featured-jobs__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-blue);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.home-featured-jobs__link:hover {
    color: var(--brand-text);
}

.home-job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 0.875rem;
    padding: 0.875rem 0.875rem 0.75rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
    .home-job-card:hover {
        border-color: #C1C7D0;
        box-shadow: 0 0.5rem 1.5rem rgba(23, 43, 77, 0.08);
    }
}

.home-job-card__bookmark {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #97A0AF;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.home-job-card__bookmark:hover {
    color: var(--brand-blue);
}

.home-job-card__bookmark.is-favorited {
    color: #E56910;
}

.home-job-card__bookmark.is-favorited:hover {
    color: #CF5C0E;
}

.job-show__bookmark {
    top: 1rem;
    right: 1rem;
}

@media (min-width: 768px) {
    .job-show__bookmark {
        top: 1.25rem;
        right: 1.25rem;
    }
}

/* Public job detail header */
.job-show-header {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 0.875rem;
    overflow: hidden;
}

.job-show-header__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
    padding: 0.5rem 1.25rem;
    background: var(--brand-blue);
}

.job-show-header__topbar-start,
.job-show-header__topbar-end {
    display: flex;
    align-items: center;
    min-width: 0;
}

.job-show-header__topbar-end {
    margin-left: auto;
}

.job-show-header__applied-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.875rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
}

.job-show-header__applied-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #36B37E;
    flex-shrink: 0;
}

.job-show-header__save-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.875rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.job-show-header__save-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.job-show-header__save-btn.is-favorited {
    background: #E56910;
    color: #fff;
}

.job-show-header__save-btn.is-favorited:hover {
    background: #CF5C0E;
    color: #fff;
}

.job-show-header__claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.875rem;
    border: 0;
    border-radius: 999px;
    background: #E56910;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.job-show-header__claim-btn:hover {
    background: #CF5C0E;
    color: #fff;
}

.job-show-header__claim-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.875rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
}

.job-show-header__body {
    padding: 1.5rem 1.25rem 1.25rem;
}

@media (min-width: 768px) {
    .job-show-header__body {
        padding: 1.75rem 2rem 1.5rem;
    }
}

.job-show-header__company {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.job-show-header__logo {
    flex-shrink: 0;
    width: 4.875rem;
    height: 4.875rem;
    border-radius: 0.75rem;
    object-fit: contain;
    border: 1px solid var(--brand-border);
    background: #fff;
}

.job-show-header__logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-surface);
    color: var(--brand-muted);
    font-size: 1.6875rem;
}

.job-show-header__company-name {
    color: var(--brand-text);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
}

.job-show-header__company-industry {
    margin-top: 0.25rem;
    color: var(--brand-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
}

.job-show-header__title {
    margin: 0 0 1rem;
    color: var(--brand-blue);
    font-size: clamp(1.625rem, 3.5vw, 2.125rem);
    font-weight: 700;
    line-height: 1.2;
}

.job-show-header__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.job-show-header__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(var(--brand-blue-rgb), 0.08);
    color: var(--brand-blue);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

.job-show-header__tag-dot {
    font-size: 0.375rem;
    vertical-align: middle;
}

.job-show-header__tag--accent {
    background: rgba(229, 105, 16, 0.12);
    color: #CF5C0E;
}

.job-show-header__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--brand-border);
}

.job-show-header__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--brand-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
}

.job-show-header__meta-item time {
    color: inherit;
}

/* Public job detail share section */
.job-share-section {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 0.875rem;
    overflow: hidden;
}

.job-share-section__title {
    margin: 0;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--brand-border);
    color: var(--brand-text);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
}

.job-share-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
}

.job-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 0.875rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--brand-text);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.job-share-btn:hover {
    background: var(--brand-surface);
    color: inherit;
}

.job-share-btn--linkedin {
    border-color: rgba(10, 102, 194, 0.25);
    color: #0A66C2;
}

.job-share-btn--linkedin:hover {
    background: rgba(10, 102, 194, 0.06);
    border-color: rgba(10, 102, 194, 0.35);
    color: #0A66C2;
}

.job-share-btn--x {
    border-color: rgba(0, 0, 0, 0.12);
    color: #172B4D;
}

.job-share-btn--x:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.18);
    color: #172B4D;
}

.job-share-btn--facebook {
    border-color: rgba(24, 119, 242, 0.25);
    color: #1877F2;
}

.job-share-btn--facebook:hover {
    background: rgba(24, 119, 242, 0.06);
    border-color: rgba(24, 119, 242, 0.35);
    color: #1877F2;
}

.job-share-btn--whatsapp {
    border-color: rgba(37, 211, 102, 0.3);
    color: #128C7E;
}

.job-share-btn--whatsapp:hover {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.4);
    color: #128C7E;
}

.job-share-btn--copy {
    border-color: rgba(229, 105, 16, 0.28);
    color: #E56910;
}

.job-share-btn--copy:hover {
    background: rgba(229, 105, 16, 0.08);
    border-color: rgba(229, 105, 16, 0.4);
    color: #CF5C0E;
}

.home-job-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
    padding-right: 1.5rem;
}

.home-job-card__brand {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.home-job-card__logo,
.home-job-card__mark {
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.625rem;
    object-fit: contain;
}

.home-job-card__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.home-job-card__mark--blue {
    background: var(--brand-blue);
}

.home-job-card__mark--green {
    background: #00875A;
}

.home-job-card__mark--purple {
    background: #6554C0;
}

.home-job-card__mark--orange {
    background: #E56910;
}

.home-job-card__heading {
    display: grid;
    grid-template-rows: auto auto 1fr;
    min-width: 0;
    flex: 1;
    min-height: calc(0.9375rem * 1.35 * 2 + 0.125rem + 0.75rem * 1.4);
}

.home-job-card__heading::after {
    content: "";
    display: block;
    min-height: 0;
}

.home-job-card__title {
    margin: 0 0 0.125rem;
    color: var(--brand-text);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-job-card__title a {
    color: inherit;
    text-decoration: none;
}

.home-job-card__company {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    min-width: 0;
    color: var(--brand-muted);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
}

.home-job-card__company-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-job-card__verified {
    flex-shrink: 0;
    color: var(--brand-blue);
    font-size: 0.6875rem;
}

.home-job-card__meta {
    margin: 0 0 0.5rem;
    color: var(--brand-muted);
    font-size: 0.75rem;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-job-card__tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    background: rgba(var(--brand-blue-rgb), 0.08);
    color: var(--brand-blue);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.home-job-card__footer {
    margin-top: auto;
    padding-top: 0.625rem;
    min-height: 1.3em;
}

.home-job-card__salary {
    margin: 0;
    color: var(--brand-text);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-job-card__applied {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #E3FCEF;
    color: #006644;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.home-job-card--empty {
    width: 100%;
    padding: 2.5rem 1.5rem;
}

.home-value-bar {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 0.875rem;
    overflow: hidden;
}

.home-value-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    min-width: 0;
    padding: 1.25rem 1.5rem;
}

.home-value-item:not(:last-child) {
    border-bottom: 1px solid var(--brand-border);
}

@media (min-width: 992px) {
    .home-value-bar {
        flex-direction: row;
        align-items: stretch;
        padding: 1.75rem 0;
    }

    .home-value-item {
        flex: 1 1 0;
        padding: 0 1.5rem;
        border-bottom: 0;
    }

    .home-value-item:not(:last-child) {
        border-bottom: 0;
    }

    .home-value-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 0.75rem;
        right: 0;
        bottom: 0.75rem;
        width: 1px;
        background: var(--brand-border);
    }

    .home-value-item {
        position: relative;
    }

    .home-value-item:first-child {
        padding-left: 1.75rem;
    }

    .home-value-item:last-child {
        padding-right: 1.75rem;
    }
}

.home-value-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: #E8EFFF;
    color: var(--brand-blue);
    font-size: 1.125rem;
}

.home-value-item__content {
    min-width: 0;
}

.home-value-item__title {
    margin: 0 0 0.35rem;
    color: var(--brand-text);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-value-item__text {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.8125rem;
    line-height: 1.55;
}

.home-cta-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    background: rgba(var(--brand-blue-rgb), 0.08);
    text-align: center;
}

@media (min-width: 768px) {
    .home-cta-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 2rem 2.5rem;
        text-align: left;
    }
}

.home-cta-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    background: var(--brand-blue);
    color: #fff;
    font-size: 1.25rem;
}

.home-cta-banner__content {
    flex: 1;
    min-width: 0;
}

.home-cta-banner__title {
    margin: 0;
    color: var(--brand-text);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
}

.home-cta-banner__text {
    margin: 0.5rem 0 0;
    color: var(--brand-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 36rem;
}

.home-cta-banner__actions {
    flex-shrink: 0;
}

.letter-spacing-tight {
    letter-spacing: 0.06em;
}

.btn.bg-brand-black:hover {
    background-color: #000000 !important;
    color: #fff !important;
}

.btn.bg-brand-black:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.45);
}

/* Password field: toggle sits inside the input (no bordered add-on) */
.password-field-wrap {
    display: block;
    width: 100%;
    min-width: 0;
}

.password-field-wrap .form-control.is-invalid {
    background-image: none;
}

.password-field-toggle {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 50%;
    inset-inline-end: 0.2rem;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bs-secondary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    z-index: 4;
    line-height: 1;
}

.profile-password-field {
    max-width: 22rem;
}

.password-field-wrap--sm .password-field-toggle {
    width: 1.9rem;
    inset-inline-end: 0.1rem;
}

.password-field-toggle:hover {
    color: var(--bs-body-color);
}

.password-field-toggle:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
    border-radius: 0.2rem;
}

[x-cloak] {
    display: none !important;
}

/* Job listing meta chips: slight corner radius instead of pills */
.job-meta-badge {
    border-radius: 2px;
}

/* Rich HTML from TinyMCE: inherit page font, size, and color on all elements */
.rich-html-content {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--bs-body-color);
    overflow-wrap: anywhere;
}

.rich-html-content :where(p, ul, ol, blockquote, pre, table, dl, figure) {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin-top: 0;
    margin-bottom: 1rem;
}

.rich-html-content > :first-child {
    margin-top: 0;
}

.rich-html-content > :last-child,
.rich-html-content :where(p, ul, ol, blockquote, pre, table, dl):last-child {
    margin-bottom: 0;
}

.rich-html-content :is(h1, h2, h3, h4, h5, h6) {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
    text-transform: none;
    letter-spacing: normal;
}

.rich-html-content :is(h1, h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}

.rich-html-content ul,
.rich-html-content ol {
    padding-left: 1.35rem;
}

.rich-html-content li {
    margin-bottom: 0.35rem;
}

.rich-html-content li:last-child {
    margin-bottom: 0;
}

.rich-html-content ul ul,
.rich-html-content ul ol,
.rich-html-content ol ul,
.rich-html-content ol ol {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.rich-html-content strong,
.rich-html-content b {
    font-weight: 600;
}

.rich-html-content em,
.rich-html-content i {
    font-style: italic;
}

.rich-html-content u {
    text-decoration: underline;
}

.rich-html-content blockquote {
    padding-left: 1rem;
    border-left: 3px solid var(--brand-border);
    color: var(--brand-muted);
}

.rich-html-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
}

.rich-html-content pre {
    padding: 0.75rem 1rem;
    background: var(--brand-surface);
    border-radius: 0.25rem;
    overflow-x: auto;
}

.rich-html-content pre code {
    font-size: inherit;
}

.rich-html-content hr {
    margin: 1.25rem 0;
    border: 0;
    border-top: 1px solid var(--brand-border);
    opacity: 1;
}

.rich-html-content table {
    width: 100%;
    border-collapse: collapse;
}

.rich-html-content th,
.rich-html-content td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--brand-border);
    font-size: 1rem;
    font-weight: 400;
    vertical-align: top;
}

.rich-html-content th {
    font-weight: 600;
}

/* Public /jobs cards: same black for recruiter links vs admin on-behalf plain text (Bootstrap link defaults differ). */
.public-jobs-list-card .card-body a.stretched-link,
.public-jobs-list-card .card-body a.job-listing-employer-link {
    color: #000 !important;
}

.public-jobs-list-card .card-body a.stretched-link:hover,
.public-jobs-list-card .card-body a.stretched-link:focus-visible,
.public-jobs-list-card .card-body a.job-listing-employer-link:hover,
.public-jobs-list-card .card-body a.job-listing-employer-link:focus-visible {
    color: #000 !important;
}

/* Public footer */
.public-footer {
    background: #fff;
    border-top: 1px solid var(--brand-border);
    color: var(--brand-text);
}

.public-footer__logo {
    display: inline-block;
    margin-bottom: 0.875rem;
}

.public-footer__logo img {
    display: block;
    height: 2rem;
    width: auto;
}

@media (min-width: 992px) {
    .public-footer__logo img {
        height: 2.25rem;
    }
}

.public-footer__tagline {
    max-width: 18rem;
    margin: 0 0 1.25rem;
    color: var(--brand-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.public-footer__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

.public-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--brand-surface);
    color: var(--brand-text) !important;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.public-footer__social-link:hover,
.public-footer__social-link:focus-visible {
    background: rgba(var(--brand-blue-rgb), 0.1);
    color: var(--brand-blue) !important;
    opacity: 1;
}

.public-footer__heading {
    margin: 0 0 0.875rem;
    color: var(--brand-text);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

.public-footer__heading-link {
    color: inherit;
    text-decoration: none;
}

.public-footer__heading-link:hover,
.public-footer__heading-link:focus-visible {
    color: var(--brand-blue);
}

.public-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.public-footer__links a {
    color: var(--brand-muted) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.public-footer__links a:hover,
.public-footer__links a:focus-visible {
    color: var(--brand-text) !important;
    opacity: 1;
}

@media (min-width: 992px) {
    .public-footer__links--legal {
        align-items: flex-end;
        text-align: right;
    }
}

.public-footer__copyright {
    color: var(--brand-muted);
    font-size: 0.8125rem;
}

.stt-text {
    font-size: large;
    font-weight: 600;
}

.candidate-interview-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background-color: #fef9c3;
    color: #854d0e;
}

.candidate-hired-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background-color: #d1fae5;
    color: #065f46;
}

.candidate-rejected-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background-color: #fee2e2;
    color: #991b1b;
}

.candidate-interview-card {
    margin-top: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fde68a;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #1e293b;
    background-color: #fefce8;
}

.candidate-interview-card-title {
    font-weight: 600;
    color: #0f172a;
}

.candidate-interview-card-icon {
    color: #a16207;
}

.candidate-interview-link {
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
    color: #a16207;
    text-decoration-color: #fde047;
}

.candidate-interview-link:hover {
    color: #854d0e;
}

/* Candidate job profiles — card grid */
.job-profiles-grid .job-profile-card {
    min-height: 100%;
}

.job-profile-card__summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.45;
}

.job-profile-card__actions .btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pipeline-applications-grid .pipeline-application-card {
    min-height: 100%;
}

.pipeline-application-card {
    position: relative;
}

.pipeline-card-select {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
}

.pipeline-card-select-input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    cursor: pointer;
}

.pipeline-application-card:has(.pipeline-card-select) .flex-grow-1 {
    padding-left: 1.75rem;
}

.pipeline-application-card--rejected .flex-grow-1 {
    padding-left: 0;
}

.pipeline-card-actions {
    flex-wrap: wrap;
}

.pipeline-card-actions .btn {
    font-size: 0.6875rem;
    line-height: 1.25;
    padding: 0.35rem 0.55rem;
    white-space: nowrap;
    flex: 0 1 auto;
}

.pipeline-card-actions .pipeline-card-actions__form {
    flex: 0 1 auto;
}

.pipeline-doc-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
}

.pipeline-doc-row__title {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 5.5rem);
}

.pipeline-doc-row__status {
    flex: 0 0 auto;
    white-space: nowrap;
}

.pipeline-doc-row__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.pipeline-doc-row__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
}

/* Above dashboard top bar (1030) and sidebar drawer (1050) */
.hr-overlay-modal {
    z-index: 1060 !important;
}

.hr-overlay-modal .hr-overlay-modal__panel {
    position: relative;
    z-index: 1;
}

.pipeline-card-status-badge,
.hr-job-card-status {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: none;
    border-top-right-radius: 0.75rem;
    border-bottom-left-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    line-height: 1.2;
    font-weight: 600;
    color: #ffffff;
    background-color: #475569;
}

.hr-job-card-status {
    z-index: 10;
}

.pipeline-application-card > .flex-grow-1 > section h3 {
    max-width: 62%;
    padding-inline-end: 0.375rem;
}

.hr-video-preview-open .pipeline-card-status-badge {
    z-index: -1 !important;
}

.pipeline-card-status-badge--hired {
    background-color: #059669;
    color: #ffffff;
}

.pipeline-card-status-badge--rejected {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.pipeline-card-status-badge--withdrawn {
    background-color: #64748b;
    color: #ffffff;
}

.pipeline-card-status-badge--shortlisted {
    background-color: #4f46e5;
    color: #ffffff;
}

.pipeline-card-status-badge--video-cv-submitted {
    background-color: #059669;
    color: #ffffff;
}

.pipeline-card-status-badge--interview_scheduled,
.pipeline-card-status-badge--post_interview,
.pipeline-card-status-badge--awaiting_interview_scheduling {
    background-color: #d97706;
    color: #ffffff;
}

.pipeline-card-status-badge--applied,
.pipeline-card-status-badge--video_cv_requested,
.pipeline-card-status-badge--assigned_to_hiring_manager,
.pipeline-card-status-badge--hiring_manager_review {
    background-color: #475569;
    color: #ffffff;
}

/* Inner bordered shell — status badge is position:absolute; anchor it inside this box */
.hr-job-card-shell {
    position: relative;
}

.hr-job-card-status--draft {
    background-color: #64748b;
    color: #ffffff;
}

.hr-job-card-status--published {
    background-color: #059669;
    color: #ffffff;
}

.hr-job-card-status--closed {
    background-color: #92400e;
    color: #ffffff;
}

.hr-job-card-status--paused {
    background-color: #d97706;
    color: #ffffff;
}

.hr-job-card-status--expired {
    background-color: #475569;
    color: #ffffff;
}

.hr-job-card-status--deleted {
    background-color: #991b1b;
    color: #ffffff;
}

.hr-job-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem 1rem 1rem;
}

@media (min-width: 640px) {
    .hr-job-card-body {
        padding: 1rem 1.125rem 1rem;
    }
}

.hr-job-card-title {
    margin: 0;
    padding-inline-end: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hr-job-card-title .min-w-0 {
    max-width: 62%;
    padding-inline-end: 0.375rem;
}

@media (min-width: 640px) {
    .hr-job-card-title {
        font-size: 1rem;
    }
}

.hr-job-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #64748b;
}

.hr-job-card-meta-count {
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.hr-job-card-meta-visibility {
    font-weight: 600;
    color: #475569;
}

.hr-job-card-meta-sep {
    color: #cbd5e1;
    user-select: none;
}

.hr-job-card-meta-date {
    color: #64748b;
}

.hr-job-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.hr-job-card-actions-form {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.hr-job-card-actions-form button {
    width: 100%;
}

.hr-job-card-actions a,
.hr-job-card-actions button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    min-height: 2rem;
    box-sizing: border-box;
    padding: 0.375rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hr-job-card-actions a span,
.hr-job-card-actions button span {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.hr-job-card-actions i {
    font-size: 0.6875rem;
    line-height: 1;
}

.hr-job-card-actions button {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.hr-job-card-actions-secondary.hr-job-copy-link {
    border: 0;
}

.hr-job-card-actions-primary {
    background-color: #fff3cd;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.hr-job-card-actions-primary:hover {
    background-color: #ffedd5;
}

.hr-job-card-actions-secondary {
    background-color: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.hr-job-card-actions-secondary:hover {
    background-color: #f8fafc;
}

.hr-job-card-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.hr-job-card-actions button:disabled:hover {
    background-color: #ffffff;
    color: #334155;
    border-color: #e2e8f0;
}

/* Legal / policy pages */
.legal-page {
    max-width: 42rem;
}

.legal-page section + section {
    margin-top: 0;
}

.legal-page p,
.legal-page li {
    line-height: 1.65;
    color: #212529;
}

.legal-page ul {
    padding-left: 1.25rem;
}

.legal-page ul li + li {
    margin-top: 0.35rem;
}

.cookie-consent-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1080;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 -0.35rem 1.25rem rgba(0, 0, 0, 0.08);
}

.cookie-consent-banner__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 0;
}

.cookie-consent-banner__text {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--brand-black);
}

@media (min-width: 768px) {
    .cookie-consent-banner__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
    }
}

/* Floating WhatsApp chat widget */
.whatsapp-chat-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1090;
    font-family: var(--bs-body-font-family);
}

.whatsapp-chat-widget__launcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-chat-widget__launcher:hover {
    transform: scale(1.04);
    box-shadow: 0 0.65rem 1.75rem rgba(0, 0, 0, 0.22);
    background: #1ebe57;
}

.whatsapp-chat-widget__launcher:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.whatsapp-chat-widget__launcher-icon {
    font-size: 1.65rem;
    line-height: 1;
}

.whatsapp-chat-widget__launcher-icon--close {
    display: none;
    font-size: 1.35rem;
}

.whatsapp-chat-widget.is-open .whatsapp-chat-widget__launcher-icon--open {
    display: none;
}

.whatsapp-chat-widget.is-open .whatsapp-chat-widget__launcher-icon--close {
    display: block;
}

.whatsapp-chat-widget__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.85rem);
    display: flex;
    flex-direction: column;
    width: min(22rem, calc(100vw - 2.5rem));
    max-height: min(28rem, calc(100vh - 6rem));
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
    animation: whatsapp-chat-panel-in 0.22s ease-out;
}

.whatsapp-chat-widget__panel[hidden] {
    display: none !important;
}

@keyframes whatsapp-chat-panel-in {
    from {
        opacity: 0;
        transform: translateY(0.75rem) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.whatsapp-chat-widget__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem;
    background: var(--brand-blue);
    color: #fff;
}

.whatsapp-chat-widget__header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.whatsapp-chat-widget__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.25rem;
}

.whatsapp-chat-widget__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.whatsapp-chat-widget__subtitle {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    line-height: 1.35;
    opacity: 0.9;
}

.whatsapp-chat-widget__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.whatsapp-chat-widget__close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.whatsapp-chat-widget__body {
    flex: 1 1 auto;
    min-height: 8rem;
    max-height: 14rem;
    overflow-y: auto;
    padding: 1rem;
    background: #f4f5f7;
}

.whatsapp-chat-widget__message {
    max-width: 88%;
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--brand-black);
}

.whatsapp-chat-widget__message--incoming {
    border-bottom-left-radius: 0.25rem;
    background: #fff;
    box-shadow: 0 0.1rem 0.35rem rgba(0, 0, 0, 0.06);
}

.whatsapp-chat-widget__composer {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--brand-border);
    background: #fff;
}

.whatsapp-chat-widget__input {
    flex: 1 1 auto;
    min-height: 2.5rem;
    max-height: 6rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.75rem;
    resize: none;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--brand-black);
}

.whatsapp-chat-widget__input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.15rem rgba(var(--brand-blue-rgb), 0.15);
}

.whatsapp-chat-widget__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.whatsapp-chat-widget__send:hover {
    background: #1ebe57;
    transform: scale(1.03);
}

.whatsapp-chat-widget__send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 575.98px) {
    .whatsapp-chat-widget {
        right: 1rem;
        bottom: 1rem;
    }

    .whatsapp-chat-widget__panel {
        width: min(20rem, calc(100vw - 2rem));
    }
}

/* Admin dashboard charts */
.dashboard-analytics-charts > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.dashboard-analytics-charts > [class*="col-"] > .dashboard-chart-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
}

.dashboard-chart-card {
    background: #fff;
}

.dashboard-chart-card .dashboard-chart-wrap {
    flex: 1 1 auto;
    min-height: 220px;
}

.dashboard-chart-wrap {
    position: relative;
    height: 220px;
    width: 100%;
}

.dashboard-chart-wrap--tall {
    height: 280px;
}

.dashboard-chart-wrap--medium {
    height: 240px;
}

@media (min-width: 1200px) {
    .dashboard-chart-wrap--tall {
        height: 300px;
    }
}

/* Dashboard shell: sidebar + main column */
.dashboard-shell {
    background-color: var(--bs-body-bg);
}

.dashboard-main {
    background-color: #fff;
}

.dashboard-top-bar {
    flex-shrink: 0;
}

/* Dashboard sidebar: navy panel, white links, translucent active item */
#dashboard-sidebar {
    background-color: var(--brand-blue) !important;
    color: #fff;
}

#dashboard-sidebar .list-group-item {
    background-color: transparent !important;
    border-color: transparent !important;
}

#dashboard-sidebar .list-group-item-action {
    color: rgba(255, 255, 255, 0.92) !important;
    background-color: transparent !important;
    padding: 0.55rem 0.75rem;
}

#dashboard-sidebar .list-group-item-action:active {
    color: #fff !important;
}

#dashboard-sidebar .sidebar-nav-link .sidebar-nav-icon,
#dashboard-sidebar .sidebar-nav-link .sidebar-link-label {
    color: inherit;
}

#dashboard-sidebar .sidebar-nav-link--current,
#dashboard-sidebar .sidebar-nav-link--current:hover,
#dashboard-sidebar .sidebar-nav-link--current:focus {
    background-color: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
}

#dashboard-sidebar .sidebar-nav-link--current .sidebar-nav-icon,
#dashboard-sidebar .sidebar-nav-link--current .sidebar-link-label {
    color: #fff !important;
}

#dashboard-sidebar .sidebar-nav-link:not(.sidebar-nav-link--current):hover,
#dashboard-sidebar .sidebar-nav-link:not(.sidebar-nav-link--current):focus-visible {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

#dashboard-sidebar .sidebar-logout-btn {
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

#dashboard-sidebar .sidebar-logout-btn:hover,
#dashboard-sidebar .sidebar-logout-btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Dashboard pages — shared page chrome (profile, my-jobs, etc.) */
.dashboard-page__title,
.candidate-jobs-page__title,
.profile-page__title {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: var(--brand-text);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.dashboard-page__subtitle,
.profile-page__subtitle {
    color: var(--brand-muted);
    font-size: 0.9375rem;
}

.dashboard-page .dashboard-panel + .dashboard-panel {
    margin-top: 0;
}

.dashboard-page .alert {
    margin-bottom: 0;
}

.dashboard-panel {
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(9, 30, 66, 0.06);
}

.dashboard-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    background-color: var(--brand-blue);
    color: #fff;
}

.dashboard-panel__heading {
    font-size: 0.9375rem;
    font-weight: 600;
}

.dashboard-panel__subheading {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-panel__body {
    padding: 1rem;
}

/* Profile page */
.profile-page__title {
    font-size: clamp(1.75rem, 3vw, 2.125rem);
}

.profile-page__subtitle {
    color: var(--brand-muted);
    font-size: 0.9375rem;
}

.profile-page .dashboard-panel__body {
    padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
    .profile-page .dashboard-panel__body {
        padding: 1.75rem 1.5rem;
    }
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.profile-identity__avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

.profile-identity__avatar--image {
    object-fit: cover;
    background: var(--brand-surface);
}

.profile-identity__name {
    color: var(--brand-text);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
}

.profile-identity__email {
    margin-top: 0.125rem;
    color: var(--brand-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.profile-form-fields {
    display: grid;
    gap: 1.25rem;
}

.profile-form-fields .form-label {
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
}

.profile-form-fields .form-control {
    padding: 0.625rem 0.875rem;
    border-color: var(--brand-border);
    border-radius: 0.5rem;
}

.profile-form-fields .form-control:disabled,
.profile-form-fields .form-control[readonly] {
    background-color: var(--brand-surface);
    color: var(--brand-muted);
}

.profile-field-note {
    margin-top: 0.375rem;
    color: var(--brand-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.profile-page .profile-password-field {
    max-width: none;
}

.profile-page .profile-password-field .form-control {
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
}

.dashboard-panel--danger {
    background: #FFF8F8;
    border-color: rgba(222, 53, 11, 0.16);
}

.dashboard-panel__header--danger {
    background: #FFEBE6;
    color: #AE2E24;
}

.profile-danger-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #AE2E24;
}

.profile-danger-info {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(222, 53, 11, 0.12);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--brand-text);
    font-size: 0.8125rem;
    line-height: 1.55;
}

.profile-danger-info__icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--brand-blue);
}

.profile-danger-proceed {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    background: #fff;
    color: #DE350B;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.profile-danger-proceed:hover {
    background: #FFF5F5;
    border-color: rgba(222, 53, 11, 0.25);
    color: #BF2600;
}

.profile-danger-proceed:focus-visible {
    outline: 2px solid #DE350B;
    outline-offset: 2px;
}

/* Dashboard nested items — match panel border chrome without full section headers */
.dashboard-shortcut {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-shortcut > p:last-child {
    margin-top: auto;
    padding-top: 0.75rem;
}

.dashboard-shortcuts-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.dashboard-shortcuts-row > [class*="col-"] > .dashboard-shortcut {
    flex: 1 1 auto;
    width: 100%;
}

.dashboard-shortcut:hover {
    border-color: #C1C7D0;
    box-shadow: 0 0.25rem 0.75rem rgba(23, 43, 77, 0.06);
    color: inherit;
}

.dashboard-empty-state {
    padding: 2rem 1.25rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    background: var(--brand-surface);
    color: var(--brand-muted);
    font-size: 0.875rem;
    text-align: center;
}

.dashboard-item-card {
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    background: #fff;
}

.dashboard-subpanel {
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}

.dashboard-subpanel + .dashboard-subpanel {
    margin-top: 1rem;
}

.dashboard-subpanel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: var(--brand-blue);
    color: #fff;
}

.dashboard-subpanel__header .h6 {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.dashboard-subpanel__body {
    padding: 1rem;
}

.dashboard-mass-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 0.5rem;
    background: #FEF2F2;
    padding: 0.625rem 1rem;
}

.dashboard-stat-tile {
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    background: var(--brand-surface);
    padding: 0.875rem 1rem;
    height: 100%;
}

.dashboard-table-panel {
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}

.dashboard-subpanel__header .btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.45);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-hover-border-color: #fff;
    --bs-btn-hover-color: #fff;
}
.dashboard-page .hr-job-card-shell,
.dashboard-page .pipeline-application-card {
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: none;
}

.candidate-updates-scroll {
    max-height: 22rem;
    overflow-y: auto;
    padding: 0.75rem;
}

.candidate-updates-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 1rem;
    font-size: 0.75rem;
    color: var(--brand-muted);
    background: #fff;
}

.candidate-updates-scroll-hint__line {
    flex: 0 1 3.5rem;
    width: 3.5rem;
    height: 1px;
    background-color: #c1c7d0;
}

.candidate-updates-empty,
.candidate-applications-empty {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--brand-muted);
}

.candidate-update-card {
    padding: 0.875rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    border-left-width: 4px;
}

.candidate-update-card + .candidate-update-card {
    margin-top: 0.625rem;
}

.candidate-update-card--reject {
    background-color: #fef2f2;
    border-left-color: #dc2626;
    border-color: #fecaca;
}

.candidate-update-card--hire {
    background-color: #ecfdf5;
    border-left-color: #059669;
    border-color: #a7f3d0;
}

.candidate-update-card--next-stage {
    background-color: #eff6ff;
    border-left-color: var(--brand-blue);
    border-color: #bfdbfe;
}

.candidate-update-card--default {
    background-color: #f8fafc;
    border-left-color: #94a3b8;
    border-color: #e2e8f0;
}

.candidate-update-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-text);
}

.candidate-update-card__label {
    margin-top: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--brand-muted);
}

.candidate-update-card__message {
    font-size: 0.875rem;
    color: #334155;
}

.candidate-update-card__time {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    color: var(--brand-muted);
}

.candidate-update-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.candidate-update-badge--reject {
    background-color: #fee2e2;
    color: #991b1b;
}

.candidate-update-badge--hire {
    background-color: #d1fae5;
    color: #065f46;
}

.candidate-update-badge--next-stage {
    background-color: #dbeafe;
    color: #1e40af;
}

.candidate-update-badge--default {
    background-color: #e2e8f0;
    color: #475569;
}

.candidate-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid var(--brand-border);
    background: #fff;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.candidate-filter-chip:hover {
    border-color: #cbd5e1;
    color: var(--brand-text);
}

.candidate-filter-chip--active,
.candidate-filter-chip--active:hover {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.candidate-applications-list {
    border-top: 1px solid var(--brand-border);
}

.candidate-application-row {
    padding: 1rem 0;
    border-bottom: 1px solid var(--brand-border);
}

.candidate-application-row:last-child {
    border-bottom: 0;
}

.candidate-application-row__title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-text);
}

.candidate-application-row__title:hover {
    color: var(--brand-blue);
}

.candidate-application-row__meta,
.candidate-application-row__applied {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--brand-muted);
}

.candidate-application-row__removed {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #dc2626;
}

.candidate-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.candidate-status-badge--default {
    background-color: var(--brand-blue);
    color: #fff;
}

.candidate-status-badge--assigned {
    background-color: #ede9fe;
    color: #5b21b6;
}

.candidate-status-badge--hired {
    background-color: #d1fae5;
    color: #065f46;
}

.candidate-status-badge--rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.candidate-status-badge--interview {
    background-color: #fef9c3;
    color: #854d0e;
}

.candidate-credentials-btn {
    white-space: nowrap;
}

/* HR job applications — AI screening */
.ai-screening-stat {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    box-shadow: none;
}

.ai-screening-table thead th {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.ai-screening-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.ai-screening-score-wrap {
    min-width: 11rem;
}

.ai-screening-score-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.ai-screening-score-label--high,
.ai-screening-score-value--high {
    color: #15803d;
}

.ai-screening-score-label--strong,
.ai-screening-score-value--strong {
    color: #1d4ed8;
}

.ai-screening-score-label--partial,
.ai-screening-score-value--partial {
    color: #b45309;
}

.ai-screening-score-label--low,
.ai-screening-score-value--low,
.ai-screening-score-label--pending,
.ai-screening-score-value--pending {
    color: #64748b;
}

.ai-screening-progress {
    height: 0.35rem;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    max-width: 8rem;
}

.ai-screening-progress-bar {
    height: 100%;
    border-radius: 999px;
}

.ai-screening-progress-bar--high {
    background: #22c55e;
}

.ai-screening-progress-bar--strong {
    background: #3b82f6;
}

.ai-screening-progress-bar--partial {
    background: #f59e0b;
}

.ai-screening-progress-bar--low,
.ai-screening-progress-bar--pending {
    background: #94a3b8;
}

.ai-screening-score-value {
    font-weight: 700;
    min-width: 1.75rem;
    text-align: right;
}

.ai-screening-reason {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
}

.ai-screening-reason-row td {
    border-top: none;
    padding-top: 0;
}

.ai-screening-actions .btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
}

.ai-screening-table td {
    vertical-align: middle;
}

.ai-screening-progress-track {
    background-color: #e2e8f0;
}

.admin-recruiter-companies-table {
    table-layout: fixed;
}

.admin-recruiter-companies-table__meta {
    width: 16rem;
    white-space: nowrap;
}

.admin-recruiter-companies-table__meta-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#ai-screening-pagination .page-link {
    cursor: pointer;
}

/* Auth (guest) layout */
.guest-auth-logo {
    height: auto;
    width: auto;
}

.guest-auth-logo--desktop {
    width: 70%;
    max-width: 24rem;
}

.guest-auth-logo--mobile {
    height: 2.75rem;
}

.guest-auth-back {
    color: #fff !important;
    text-decoration: none !important;
}

.guest-auth-back:hover,
.guest-auth-back:focus-visible {
    color: rgba(255, 255, 255, 0.88) !important;
}

.guest-auth-back .fa-arrow-left {
    font-size: 0.875rem;
}

.guest-auth-layout__columns {
    align-items: flex-start !important;
}

.guest-auth-aside {
    margin-top: 0;
    padding-top: 0.5rem;
    max-width: 36rem;
}

@media (min-width: 992px) {
    .guest-auth-aside {
        margin-top: 0;
        padding-top: 0.25rem;
    }

    .guest-auth-form-wrap {
        max-width: 32rem;
    }
}

/* Public announcement bar (Jobberman-style) */
.announcement-bar {
    background: var(--brand-surface);
    border-bottom: 1px solid var(--brand-border);
}

.announcement-bar__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.announcement-bar__viewport {
    display: grid;
    min-height: 3.5rem;
}

.announcement-bar__slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.announcement-bar__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.announcement-bar--reduced-motion .announcement-bar__slide {
    transition: none;
}

.announcement-bar__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
}

.announcement-slide__icon--announcement {
    background: var(--brand-blue);
}

.announcement-slide__icon--offer {
    background: #7c3aed;
}

.announcement-slide__icon--warning {
    background: #d97706;
}

.announcement-bar__content {
    flex: 1;
    min-width: 0;
}

.announcement-bar__message {
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--brand-text);
    overflow-wrap: break-word;
}

.announcement-bar__link {
    display: inline;
    font-size: inherit;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.announcement-bar__link:hover {
    text-decoration: underline;
}

.announcement-bar__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.announcement-bar__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-blue);
    cursor: pointer;
}

.announcement-bar__nav-btn:hover {
    color: var(--brand-black);
}

.announcement-bar__dots {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.announcement-bar__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 2px solid var(--brand-blue);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.announcement-bar__dot.is-active {
    background: var(--brand-blue);
}

@media (min-width: 768px) {
    .announcement-bar__inner {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .announcement-bar__viewport {
        flex: 1;
        min-height: 3rem;
    }

    .announcement-bar__nav {
        flex-shrink: 0;
        justify-content: flex-end;
    }
}

/* Alert modals — job detail header style (colored top bar, rounded card) */
.app-alert-modal .modal-content {
    border: 1px solid var(--brand-border);
    border-radius: 0.875rem;
    overflow: hidden;
}

.app-alert-modal .modal-header {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 0;
}

.app-alert-modal .modal-title {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.app-alert-modal .modal-body {
    padding: 1.25rem;
    color: var(--brand-text);
    background: #fff;
}

.app-alert-modal [data-app-dialog-body] {
    white-space: pre-line;
}

.app-alert-modal .modal-footer {
    padding: 0 1.25rem 1.25rem;
    border-top: 0;
    background: #fff;
}

.app-alert-modal.app-alert-modal--success .modal-header {
    background: #36B37E;
}

.app-alert-modal.app-alert-modal--warning .modal-header {
    background: #E56910;
}

.app-alert-modal.app-alert-modal--error .modal-header {
    background: #c9372c;
}

.app-alert-modal.app-alert-modal--info .modal-header {
    background: var(--brand-blue);
}

.app-alert-modal:not([class*="app-alert-modal--"]) .modal-header {
    background: var(--brand-blue);
}

/* Dashboard overlay panels — match alert modal card radius + colored header bar */
.hr-overlay-modal__panel {
    border: 1px solid var(--brand-border) !important;
    border-radius: 0.875rem !important;
    overflow: hidden;
    background: #fff;
}

.hr-overlay-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    background: var(--brand-blue);
}

.hr-overlay-modal__title {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.hr-overlay-modal__subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.125rem;
}

.hr-overlay-modal__body {
    padding: 1.25rem;
    color: var(--brand-text);
    background: #fff;
}

.hr-overlay-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 0 1.25rem 1.25rem;
    background: #fff;
}

.hr-overlay-modal__panel--scrollable {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.hr-overlay-modal__panel--scrollable .hr-overlay-modal__body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.hr-overlay-modal__body--flush {
    padding: 0;
}

.hr-overlay-modal__header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.hr-overlay-modal__header--danger {
    background: #c9372c;
}

/* Public e-resume (/r/{token}) */
.resume-public-layout {
    background: #e8eaed;
    min-height: 100vh;
}

.resume-public-shell {
    min-height: 100vh;
}

.resume-public-page {
    padding-bottom: 1rem;
}

.resume-public-toolbar {
    max-width: 850px;
    margin-inline: auto;
}

.resume-public-back {
    color: var(--brand-text) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.resume-public-back:hover,
.resume-public-back:focus-visible {
    color: var(--brand-blue) !important;
}

.resume-public-download {
    --bs-btn-color: var(--brand-blue);
    --bs-btn-border-color: var(--brand-blue);
    --bs-btn-hover-bg: var(--brand-blue);
    --bs-btn-hover-border-color: var(--brand-blue);
    --bs-btn-hover-color: #fff;
}

.resume-document {
    background: #fff;
    color: #212529;
    max-width: 850px;
    margin-inline: auto;
    padding: 2.5rem 2.75rem;
    box-shadow:
        0 1px 2px rgba(9, 30, 66, 0.08),
        0 8px 24px rgba(9, 30, 66, 0.1);
    border: 1px solid #dfe1e6;
    border-radius: 0.25rem;
}

@media (max-width: 575.98px) {
    .resume-document {
        padding: 1.5rem 1.25rem;
    }
}

.job-profile-render--resume {
    font-size: 0.9375rem;
    line-height: 1.55;
}

.job-profile-render--resume .resume-header {
    border-bottom: 2px solid #212529 !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.job-profile-render--resume .resume-header h1 {
    color: #212529;
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}

.job-profile-render--resume .resume-header .fs-5 {
    color: #495057 !important;
    font-size: 1.0625rem !important;
    font-weight: 500;
}

.job-profile-render--resume .resume-header .small {
    color: #495057 !important;
}

.job-profile-render--resume .resume-header a {
    color: #212529;
    text-decoration: none;
}

.job-profile-render--resume .resume-header a:hover {
    color: var(--brand-blue);
    text-decoration: underline;
}

.job-profile-render--resume section {
    margin-bottom: 1.5rem !important;
}

.job-profile-render--resume section:last-child {
    margin-bottom: 0 !important;
}

.job-profile-render--resume h2 {
    color: #212529 !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid #ced4da;
    padding-bottom: 0.35rem;
    margin-bottom: 0.75rem !important;
}

.job-profile-render--resume p,
.job-profile-render--resume .fw-semibold {
    color: #212529;
}

.job-profile-render--resume .text-secondary {
    color: #5c6770 !important;
}

.job-profile-render--resume .resume-entry {
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
}

.job-profile-render--resume .resume-entry:last-child {
    margin-bottom: 0;
}

.job-profile-render--resume .resume-entry .fw-semibold {
    font-size: 0.975rem;
}

.job-profile-render--resume .resume-entry .small {
    font-size: 0.8125rem;
}

.resume-public-footer {
    max-width: 850px;
    margin: 1.5rem auto 0;
    padding: 0 0.5rem 1.5rem;
    text-align: center;
    color: #6b778c;
    font-size: 0.8125rem;
}

.resume-public-footer__brand {
    display: inline-flex;
    align-items: center;
}

.resume-public-footer__logo {
    display: block;
    height: 1.35rem;
    width: auto;
}

@media print {
    .resume-public-toolbar,
    .resume-public-footer,
    .cookie-consent,
    .whatsapp-chat-widget {
        display: none !important;
    }

    .resume-public-layout {
        background: #fff;
    }

    .resume-document {
        box-shadow: none;
        border: none;
        max-width: none;
        padding: 0;
    }
}
