/* V2 — Warmer, softer. Same FEA brand, friendlier shapes: circular photos,
   pill chips, soft tinted blocks, rounded corners. Scoped under .v2-root. */

@font-face {
    font-family: 'Poppins';
    src: url('../shared/fonts/Poppins-600.woff2') format('woff2');
    font-weight: 600;
}
@font-face {
    font-family: 'Poppins';
    src: url('../shared/fonts/Poppins-700.woff2') format('woff2');
    font-weight: 700;
}
@font-face {
    font-family: 'Inter';
    src: url('../shared/fonts/Inter-Variable.woff2') format('woff2');
    font-weight: 100 900;
}

.v2-root {
    --brand-navy: #1f487e;
    --brand-navy-deep: #153155;
    --brand-navy-ink: #102541;
    --brand-orange: #f27046;
    --brand-orange-text: #cd3d0e;
    --brand-orange-soft: #fde9e1;
    --brand-cream: #f8f7f4;
    --brand-line: #eeece4;
    --font-display: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    font-family: var(--font-body);
    color: var(--brand-navy);
    font-size: 16px;
    line-height: 1.45;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem;
}

/* ---- Grid view ---- */

.v2-root .directory-header h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
    line-height: 1.1;
    margin: 0.5rem 0 0.75rem;
}

.v2-root .filter-group {
    display: inline-flex;
    gap: 0.25rem;
    background: #ffffff;
    border-radius: 25px;
    padding: 0.25rem;
    margin-bottom: 1.25rem;
}

.v2-root .filter-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--brand-navy);
    font: inherit;
    font-size: 0.875rem;
    padding: 0.35rem 1rem;
    border-radius: 25px;
    cursor: pointer;
}

.v2-root .filter-btn.is-active {
    background: var(--brand-orange-text);
    color: #ffffff;
    font-weight: 700;
}

.v2-root .card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

@media (min-width: 48em) {
    .v2-root .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.v2-root .candidate-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(31, 72, 126, 0.06);
    transition: box-shadow 0.15s ease;
}

.v2-root .candidate-card:hover {
    box-shadow: 0 6px 20px rgba(31, 72, 126, 0.12);
}

.v2-root .candidate-card:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

.v2-root .card-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.v2-root .photo-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-orange-soft);
    border: 3px solid var(--brand-orange-soft);
}

.v2-root .photo-wrap.large {
    width: 10rem;
    height: 10rem;
}

.v2-root .photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-root .photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    opacity: 0.4;
}

.v2-root .photo-placeholder svg {
    width: 2.5rem;
    height: 2.5rem;
}

.v2-root .card-head-text {
    min-width: 0;
}

.v2-root .card-head-text h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.25;
    margin: 0;
}

.v2-root .ref-line {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0.1rem 0 0.35rem;
}

.v2-root .meta-line,
.v2-root .work-line,
.v2-root .currently-in,
.v2-root .salary-line {
    font-size: 0.875rem;
    margin: 0.15rem 0;
}

.v2-root .currently-in {
    font-weight: 500;
    color: var(--brand-navy-deep);
}

.v2-root .row-label {
    font-weight: 700;
}

.v2-root .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.3rem 0;
}

.v2-root .chip {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.65rem;
    border-radius: 25px;
    background: var(--brand-orange-soft);
    color: var(--brand-navy-deep);
}

.v2-root .accent-lines {
    margin-top: 0.75rem;
}

.v2-root .fact-block .row-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-navy-deep);
}

.v2-root .salary-line {
    font-weight: 700;
}

.v2-root .worker-note {
    text-wrap: pretty;
    font-size: 0.875rem;
    line-height: 1.45;
    margin: 0.75rem 0 0;
    padding: 0.75rem;
    background: var(--brand-cream);
    border-radius: 10px;
}

/* Clamping happens on the inner span: padding + -webkit-box on the same
   element lets a fourth line paint into the padding in Chromium */
.v2-root .worker-note-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.v2-root .card-actions {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.v2-root .read-more-link {
    color: var(--brand-orange-text);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
}

.v2-root .read-more-link:hover,
.v2-root .read-more-link:focus {
    text-decoration: underline;
}

.v2-root .enquire-btn {
    appearance: none;
    background: var(--brand-orange-text);
    border: 0;
    color: #ffffff;
    border-radius: 25px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
}

.v2-root .enquire-btn:hover {
    background: var(--brand-navy-ink);
}

.v2-root .load-more-row {
    text-align: center;
    padding: 2rem 0 1rem;
}

.v2-root .load-more-btn,
.v2-root .nav-btn {
    appearance: none;
    background: #ffffff;
    border: 1px solid var(--brand-line);
    color: var(--brand-navy);
    border-radius: 25px;
    font: inherit;
    font-size: 0.875rem;
    padding: 0.45rem 1.1rem;
    cursor: pointer;
}

.v2-root .nav-btn:hover:not(:disabled) {
    border-color: var(--brand-navy);
}

.v2-root .nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.v2-root .empty-state,
.v2-root .detail-not-found {
    padding: 2rem 0;
    opacity: 0.7;
}

/* ---- Detail view ---- */

.v2-root .detail-view {
    max-width: 56rem;
    margin: 0 auto;
}

.v2-root .detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.v2-root .prev-next-group {
    display: inline-flex;
    gap: 0.4rem;
}

.v2-root .detail-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(31, 72, 126, 0.06);
}

.v2-root .detail-card .card-head-text p,
.v2-root .detail-card .chip {
    font-size: 0.9375rem;
}

.v2-root .detail-card .card-head-text .chip {
    font-size: 0.8125rem;
}

.v2-root .detail-section {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--brand-cream);
    border-radius: 12px;
}

.v2-root .section-title {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-navy-deep);
    margin: 0 0 0.35rem;
}

.v2-root .detail-body {
    text-wrap: pretty;
    font-size: 0.875rem;
    line-height: 1.45;
    margin: 0.15rem 0;
}

.v2-root .pre-wrap {
    white-space: pre-wrap;
}

.v2-root .detail-card .card-actions {
    margin-top: 1.5rem;
    padding-top: 0;
}

.v2-root .detail-card .enquire-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 1rem;
}

/* Phones: photo centers above the facts */
@media (max-width: 47.99em) {
    .v2-root .card-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .v2-root .card-head .chip-row {
        justify-content: center;
    }

    .v2-root .card-head-text {
        width: 100%;
    }
}

/* Browser surfaces: selection from the palette; icons optically aligned */
.v2-root ::selection {
    background: var(--brand-orange);
    color: #ffffff;
}

.v2-root .nav-btn .icon,
.v2-root .read-more-link .icon {
    vertical-align: -0.15em;
}
