.landing-home {
    height: 100dvh;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    margin: 0;
    overflow: hidden;
    background: var(--workspace, #f8fafc);
    color: var(--text, #10213e);
}

.landing-home [hidden] {
    display: none !important;
}

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px clamp(18px, 4vw, 64px);
}

.landing-brand {
    color: inherit;
    text-decoration: none;
    flex: 0 0 auto;
}

.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.landing-login {
    color: inherit;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.public-theme-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-theme-control .theme-control-caption {
    display: none;
}

.landing-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 20px 24px 40px;
    overflow: hidden;
}

.landing-flow {
    display: flex;
    flex-direction: column;
    width: min(880px, 100%);
    max-height: 100%;
    min-height: 0;
    gap: 22px;
}

.landing-intro {
    flex: 0 0 auto;
    text-align: center;
}

.landing-intro h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
    letter-spacing: -.04em;
}

.landing-intro p {
    margin: 10px 0 0;
    color: var(--muted, #70839e);
    font-size: 14px;
}

.landing-home .role-options {
    flex: 0 0 auto;
}

.landing-stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.landing-home .universal-search {
    min-height: 0;
    margin: 0;
    gap: 12px;
    box-shadow: none;
}

.landing-home .universal-search[hidden] {
    display: none;
}

.landing-home .universal-search:not([hidden]) {
    display: flex;
    flex-direction: column;
}

.landing-home .universal-search-row {
    flex: 0 0 auto;
    margin: 0;
}

.landing-home .universal-search-field {
    margin: 0;
}

.landing-home .employer-search-filter-heading {
    flex: 0 0 auto;
}

.landing-search-status {
    flex: 0 0 auto;
    margin: 0;
    font-size: 12px;
    color: var(--muted, #70839e);
}

.landing-search-status:empty {
    display: none;
}

.landing-search-status.is-error {
    color: #ed766b;
}

.landing-results {
    min-height: 0;
    max-height: 32dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.landing-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 4px;
    border-top: 1px solid var(--line, #e4eaf2);
}

.landing-result-copy {
    min-width: 0;
}

.landing-result h2 {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.landing-result p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted, #70839e);
}

.landing-result .landing-result-skills {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-result a,
.landing-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    text-decoration: none;
    background: var(--orange, #ff5a1f);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
}

.landing-home .landing-more {
    flex: 0 0 auto;
    align-self: center;
    min-height: 32px;
    font-size: 12px;
}

.landing-candidate {
    margin: 0;
    text-align: center;
    box-shadow: none;
}

.landing-candidate p {
    margin: 0;
    font-size: 14px;
    color: var(--muted, #70839e);
}

.landing-candidate .landing-primary {
    justify-self: center;
}

.landing-stage> :not([hidden]) {
    animation: landing-reveal 180ms ease both;
}

.landing-home .universal-search-suggestions {
    max-height: min(240px, 32dvh);
}

@keyframes landing-reveal {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media(max-width:620px) {
    .landing-header {
        padding: 14px 18px;
        gap: 12px;
    }

    .landing-header .deal-talks-logo {
        width: 140px;
        height: 32px;
    }

    .landing-header-actions {
        gap: 12px;
    }

    .public-theme-control .theme-palette-strip {
        display: none;
    }

    .public-theme-control .theme-control-segments {
        min-width: 0;
    }

    .public-theme-control .theme-control-segments button {
        padding: 5px 7px;
        font-size: 10px;
    }

    .landing-main {
        padding: 12px 16px 22px;
    }

    .landing-flow {
        gap: 16px;
    }

    .landing-home .role-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .landing-home .role-option {
        flex-direction: column;
        align-items: flex-start;
        min-height: 112px;
        gap: 10px;
        padding: 14px;
    }

    .landing-home .role-option small {
        display: none;
    }

    .landing-home .role-option strong {
        font-size: 13px;
    }

    .landing-home .role-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .landing-home .role-icon i {
        font-size: 18px;
    }

    .landing-home .universal-search {
        padding: 14px;
    }

    .landing-result {
        gap: 10px;
    }

    .landing-result a {
        padding: 0 10px;
    }
}

@media(max-height:620px) {
    .landing-header {
        padding-block: 10px;
    }

    .landing-main {
        padding-block: 8px;
    }

    .landing-flow {
        gap: 10px;
    }

    .landing-intro h1 {
        font-size: 26px;
    }

    .landing-intro p {
        display: none;
    }

    .landing-home .role-option {
        min-height: 72px;
        padding: 10px 14px;
    }

    .landing-home .role-option small {
        display: none;
    }

    .landing-home .role-option {
        flex-direction: row;
        align-items: center;
    }

    .landing-home .universal-search .employer-search-filter-heading p {
        display: none;
    }

    .landing-home .universal-search .employer-search-filter-heading strong {
        font-size: 16px;
    }

    .landing-home .universal-search {
        padding: 12px;
        gap: 8px;
    }

    .landing-results {
        max-height: 26dvh;
    }
}

@media(prefers-reduced-motion:reduce) {
    .landing-stage> :not([hidden]) {
        animation: none;
    }
}

.landing-home {
    --orange: #FF784B;
    --accent-highlight: #ff916b;
}

.public-theme-control {
    position: relative;
}

.public-theme-trigger {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line, #e4eaf2);
    border-radius: 11px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.public-theme-trigger,
.landing-language-toggle {
    width: 32px;
    height: 32px;
}

.public-theme-trigger:hover,
.public-theme-trigger[aria-expanded="true"] {
    border-color: var(--orange);
    background: #ff784b10;
}

.public-theme-trigger:focus-visible,
.public-theme-menu button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.public-theme-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    width: 162px;
    padding: 5px;
    border: 1px solid var(--line, #e4eaf2);
    border-radius: 13px;
    background: var(--theme-surface, #fff);
    box-shadow: 0 12px 32px #00000020;
    animation: landing-reveal 140ms ease both;
}

.public-theme-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 37px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.public-theme-menu button:hover,
.public-theme-menu button:focus-visible {
    background: #ff784b10;
}

.public-theme-menu button[aria-checked="true"] {
    color: var(--orange);
    background: #ff784b10;
}

.public-theme-menu button[aria-checked="true"]::after {
    content: '✓';
    margin-left: auto;
    font-size: 12px;
}

.public-theme-option-icon {
    display: grid;
    place-items: center;
    width: 16px;
    flex: 0 0 16px;
    font-size: 14px;
}

@media(prefers-reduced-motion:reduce) {
    .public-theme-menu {
        animation: none;
    }
}

/* The welcome screen fits the viewport; choosing a role enables natural page growth. */
.landing-home:has([data-landing-role]:checked) {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    grid-template-rows: auto 1fr;
}

.landing-home:has([data-landing-role]:checked) .landing-main {
    align-items: flex-start;
    overflow: visible;
    padding-top: clamp(20px, 5dvh, 48px);
}

.landing-home:has([data-landing-role]:checked) .landing-flow {
    max-height: none;
}

.landing-home:has([data-landing-role]:checked) .landing-stage,
.landing-home:has([data-landing-role]:checked) .universal-search {
    flex-shrink: 0;
}

.landing-home:has([data-landing-role]:checked) .landing-results {
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
}

/* Suggestions take up real space instead of extending beyond a clipped container. */
.landing-home:has([data-landing-role]:checked) .universal-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.landing-home:has([data-landing-role]:checked) .universal-search-field {
    grid-column: 1;
    grid-row: 1;
}

.landing-home:has([data-landing-role]:checked) .universal-search-button {
    grid-column: 2;
    grid-row: 1;
}

.landing-home:has([data-landing-role]:checked) .universal-search-suggestions {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: min(360px, 60dvh);
}

@media (max-width: 540px) {
    .landing-home:has([data-landing-role]:checked) .universal-search-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-home:has([data-landing-role]:checked) .universal-search-button {
        grid-column: 1;
        grid-row: 2;
    }

    .landing-home:has([data-landing-role]:checked) .universal-search-suggestions {
        grid-row: 3;
    }
}

/* Shared authentication forms, displayed over the home in the current theme. */
.landing-home .landing-login {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line, #e4eaf2);
    border-radius: 11px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.landing-home .landing-login:hover {
    border-color: #FF784B;
    background: #ff784b10;
}

.landing-home .landing-login:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.landing-home .landing-auth-dialog {
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    box-sizing: border-box;
    padding: 0;
    border: 1px solid var(--line, #e4eaf2);
    border-radius: 20px;
    background: var(--theme-surface, #fff);
    color: inherit;
    box-shadow: 0 24px 80px #00000038;
    overflow: auto;
}

.landing-home .landing-auth-dialog::backdrop {
    background: #07111fcc;
    backdrop-filter: blur(5px);
}

.landing-home .landing-auth-dialog[open] {
    animation: landing-reveal 160ms ease both;
}

.landing-home .landing-auth-dialog>form,
.landing-home .landing-auth-dialog>section {
    display: grid;
    gap: 14px;
    padding: 32px;
}

.landing-home .landing-auth-dialog .close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--theme-field, #f3f6fa);
    color: inherit;
    font-size: 15px;
    cursor: pointer;
}

.landing-home .landing-auth-dialog h2 {
    margin: 0;
    padding-right: 20px;
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -.03em;
}

.landing-home .landing-auth-dialog p {
    margin: 0;
    color: var(--muted, #70839e);
    font-size: 13px;
    line-height: 1.6;
}

.landing-home .landing-auth-dialog label {
    display: grid;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
}

.landing-home .landing-auth-dialog input:not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line, #dbe4ef);
    border-radius: 10px;
    background: var(--theme-field, #fbfcfe);
    color: inherit;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.landing-home .landing-auth-dialog input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px #ff784b1a;
}

.landing-home .landing-auth-dialog .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--line, #dbe4ef);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.landing-home .landing-auth-dialog .button.primary {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
}

.landing-home .landing-auth-dialog .button.ghost:hover {
    background: #ff784b0d;
}

.landing-home .landing-auth-dialog .button:disabled {
    opacity: .6;
    cursor: wait;
}

.landing-home .landing-auth-dialog .error {
    color: #e4776d;
    font-size: 12px;
}

.landing-home .landing-auth-dialog .consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 500;
    line-height: 1.5;
}

.landing-home .landing-auth-dialog .consent input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    flex: 0 0 16px;
    accent-color: var(--orange);
}

html:has(.landing-home .landing-auth-dialog[open]) {
    overflow: hidden;
}

@media(max-width:480px) {

    .landing-home .landing-auth-dialog>form,
    .landing-home .landing-auth-dialog>section {
        padding: 28px 22px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .landing-home .landing-auth-dialog[open] {
        animation: none;
    }
}

/* Decorative background remains behind all interactive content. */
.landing-main {
    position: relative;
    isolation: isolate;
}

.landing-dot-wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* One short entrance for the heading, subtitle and role choices. */
.landing-flow {
    transform-origin: 50% 50%;
    animation: landing-flow-enter 420ms cubic-bezier(.2, .7, .25, 1);
}

@keyframes landing-flow-enter {
    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-flow {
        animation: none;
    }
}

.landing-language-toggle {
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line, #e4eaf2);
    border-radius: 11px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.landing-language-toggle:hover {
    border-color: #FF784B;
    background: #ff784b10;
}

.landing-language-toggle:focus-visible {
    outline: 2px solid #FF784B;
    outline-offset: 3px;
}
