/* HoiJob public site compiled stylesheet. Source files live in assets/design/. */

/* ===== design/tokens.css ===== */
:root {
    --ink: #19202b;
    --muted: #687386;
    --line: #dde5ee;
    --panel: #ffffff;
    --soft: #f7f9fb;
    --brand: #00676a;
    --brand-dark: #00484c;
    --brand-soft: #0b7475;
    --blue: #466a96;
    --mist: #eef7f5;
    --radius-control: 8px;
    --radius-panel: 10px;
    --shadow-panel: 0 18px 45px rgba(23, 32, 51, 0.08);
    --shadow-menu: 0 20px 50px rgba(23, 32, 51, 0.14);
    --space-page-x: 32px;
    --control-min-height: 42px;
}
* {
    box-sizing: border-box;
}
html {
    min-height: 100%;
    overflow-x: hidden;
}
body.public-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: #f8fafc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.public-site main {
    flex: 1 0 auto;
    width: 100%;
    overflow-x: clip;
}
a {
    color: inherit;
}
button,
.primary,
.login-trigger {
    min-height: var(--control-min-height);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--panel);
    color: var(--ink);
    font: inherit;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}
.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
    padding: 0 16px;
}
button:hover,
.primary:hover,
.login-trigger:hover {
    border-color: rgba(12, 129, 121, 0.55);
}
.primary:hover {
    background: var(--brand-dark);
}
label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    padding: 10px 13px;
    color: var(--ink);
    font: inherit;
    font-weight: 650;
}
input::placeholder,
textarea::placeholder {
    color: rgba(101, 114, 137, 0.48);
    opacity: 1;
    font-weight: 650;
}
input:focus::placeholder,
textarea:focus::placeholder {
    color: rgba(101, 114, 137, 0.34);
}
input[readonly],
textarea[readonly] {
    color: var(--ink);
    font-weight: 500;
    background: #f8fbfc;
}
textarea {
    min-height: 110px;
    resize: vertical;
}


/* ===== design/layout.css ===== */
.site-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) 86px minmax(156px, auto);
    align-items: center;
    gap: 24px;
    min-height: 74px;
    padding: 0 var(--space-page-x);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}
.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: url("../brand/hoijob-icon.png?v=0.3.0") center / 100% 100% no-repeat;
    box-shadow: 0 8px 22px rgba(0, 72, 76, 0.16);
}
.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    color: #071528;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
}
.brand-wordmark .brand-job {
    color: var(--brand);
}
.site-topbar nav {
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 14px;
    font-weight: 800;
}
.site-topbar nav a {
    text-decoration: none;
}
.site-topbar .language-switch {
    justify-self: end;
    display: inline-flex;
    width: 86px;
    box-sizing: border-box;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(8, 94, 89, 0.08);
}
.site-topbar .language-switch a {
    display: grid;
    place-items: center;
    min-width: 36px;
    flex: 1 1 0;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.site-topbar .language-switch a.is-active {
    background: var(--brand);
    color: #ffffff;
}
.login-trigger {
    justify-self: end;
    min-width: 116px;
    padding: 0 16px;
}
.hero {
    display: grid;
    justify-items: center;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(0, 72, 76, 0.1), rgba(255, 255, 255, 0.5) 52%, rgba(11, 116, 117, 0.08)),
        repeating-linear-gradient(135deg, rgba(0, 103, 106, 0.055) 0 1px, transparent 1px 30px),
        #f7fbfa;
}
.hero-inner {
    display: grid;
    justify-items: center;
    gap: 32px;
    width: min(100%, 1120px);
    min-height: 510px;
    align-content: center;
    padding: 58px 28px 46px;
    text-align: center;
}
.hero-copy {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: 100%;
}
.hero h1 {
    width: min(100%, 1040px);
    max-width: 1040px;
    margin: 0;
    color: var(--brand-soft);
    font-size: clamp(54px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.hero p {
    width: min(100%, 760px);
    max-width: 760px;
    margin: 0;
    color: #6b7483;
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 800;
    line-height: 1.18;
}
.search {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1fr) auto;
    gap: 12px;
    width: min(100%, 1040px);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--panel);
    box-shadow: var(--shadow-panel);
}
.search-submit {
    min-width: 86px;
    align-self: end;
}
.search-filters {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, rgba(245, 248, 252, 0.68), #ffffff);
    box-shadow: none;
}
.search-filters .filters {
    grid-template-columns: repeat(3, minmax(150px, 1fr)) repeat(4, minmax(92px, max-content));
    align-items: end;
}
.section-head span,
.job-meta small {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.section-head span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 13px;
}
.notice {
    width: min(100% - 48px, 1120px);
    margin: 18px auto 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: #ffffff;
    font-weight: 800;
}
.notice-success {
    border-color: rgba(12, 129, 121, 0.35);
}
.notice-error {
    border-color: rgba(180, 55, 55, 0.4);
}
.board {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(520px, 1fr);
    gap: 18px;
    padding: 26px var(--space-page-x);
    overflow-x: clip;
}
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(0, 72, 76, 0.055), rgba(255, 255, 255, 0.62)),
        #ffffff;
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 22px;
    align-items: center;
    width: min(100% - 64px, 1120px);
    margin: 0 auto;
    padding: 28px 0;
}
.footer-brand > div,
.footer-brand span:last-child {
    display: grid;
    gap: 2px;
}
.footer-brand small,
.site-footer p {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}
.site-footer nav,
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.site-footer nav a {
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}
.footer-social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}
.site-footer p {
    grid-column: 1 / -1;
    margin: -6px 0 0;
}


/* ===== design/vacancies.css ===== */
.filter-drawer,
.job-list,
.job-detail {
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--panel);
}
.filter-drawer {
    grid-column: 1 / -1;
    position: relative;
    padding: 0;
}
.filter-drawer summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-min-height);
    padding: 0 18px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}
.filter-drawer summary::-webkit-details-marker {
    display: none;
}
.filter-drawer summary::after {
    content: "+";
    margin-left: 10px;
    color: var(--brand);
    font-weight: 900;
}
.filter-drawer[open] summary::after {
    content: "-";
}
.filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, max-content));
    align-items: center;
    gap: 10px;
    padding: 0 14px 14px;
}
.filters .filter-choice {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: #ffffff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
}
.filters .filter-field {
    display: grid;
    gap: 5px;
    font-size: 11px;
}
.filters input,
.filters select {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 13px;
}
.filters input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 16px;
    accent-color: var(--brand);
}
.filters button {
    padding: 0 18px;
    min-height: 40px;
    font-size: 13px;
}
.section-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 18px 18px 14px;
}
.section-head h2 {
    margin: 0;
    font-size: 22px;
}
.job-list {
    display: grid;
    align-content: start;
    gap: 0;
    padding-bottom: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbfc);
}
.job-card {
    display: grid;
    gap: 8px;
    margin: 0 10px;
    padding: 14px 16px 15px;
    border: 0;
    border-left: 4px solid transparent;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: linear-gradient(90deg, rgba(0, 72, 76, 0.028), rgba(255, 255, 255, 0) 32%);
    cursor: pointer;
}
.job-card.is-active {
    border-left-color: var(--brand);
    background:
        linear-gradient(135deg, rgba(0, 103, 106, 0.16), rgba(244, 253, 251, 0.98) 48%, rgba(224, 244, 240, 0.96)),
        #f3fbf9;
    box-shadow: 0 5px 12px rgba(0, 72, 76, 0.07), inset 0 0 0 1px rgba(0, 103, 106, 0.14);
}
.job-source-line,
.detail-source-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.job-source-line > span:not(.source-badge),
.detail-source-line > span:not(.source-badge) {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}
.source-relation {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.job-card.is-active .job-source-line > span:not(.source-badge) {
    color: var(--muted);
}
.job-card h3 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
}
.job-card.is-active h3 {
    color: var(--brand-dark);
}
.job-card p {
    color: var(--muted);
    line-height: 1.6;
}
.source-badge {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}
.source-badge-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border: 1px solid rgba(0, 84, 88, 0.18);
    border-radius: 7px;
    background: #ffffff;
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0;
}
.source-badge-logo {
    padding: 3px;
}
.source-badge-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.source-badge strong {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.source-badge-detail .source-badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    font-size: 12px;
}
.source-linkedin .source-badge-icon {
    background: #0a66c2;
    color: #ffffff;
}
.source-indeed .source-badge-icon {
    background: #2557a7;
    color: #ffffff;
}
.source-adzuna .source-badge-icon {
    background: #e8f5f2;
}
.source-offiss .source-badge-icon {
    background: #ffffff;
}
.source-werk .source-badge-icon,
.source-nvb .source-badge-icon {
    background: #f0f6ff;
    color: #244a8f;
}
.source-randstad .source-badge-icon,
.source-tempo .source-badge-icon,
.source-youngcapital .source-badge-icon,
.source-yacht .source-badge-icon,
.source-jobbird .source-badge-icon {
    background: #fff8e6;
    color: #755500;
}
.job-card.is-active .source-badge {
    color: var(--muted);
}
.job-card.is-active .source-badge-icon {
    border-color: rgba(0, 84, 88, 0.2);
    background: #ffffff;
    color: var(--brand-dark);
}
.detail p,
.panel,
.extract,
.extract li {
    color: #050b18;
    line-height: 1.7;
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 7px;
}
.job-card.is-active .job-meta small {
    border-color: rgba(0, 84, 88, 0.16);
    background: rgba(255, 255, 255, 0.82);
    color: var(--brand-dark);
}
.job-detail {
    min-height: 680px;
    overflow: hidden;
}
.detail {
    display: none;
}
.detail.is-active {
    display: block;
}
.detail header {
    padding: 28px;
    border-bottom: 1px solid var(--line);
    background: var(--soft);
}
.detail h2 {
    margin: 8px 0;
    font-size: 29px;
    line-height: 1.1;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.actions button {
    padding: 0 14px;
}
.tabs {
    display: flex;
    width: fit-content;
    margin: 20px 28px 0 auto;
    gap: 0;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f2f8f7;
}
.tabs button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    min-height: 32px;
    padding: 0 14px;
    font-size: 13px;
}
.tabs button.is-active {
    background: var(--brand-dark);
    color: #ffffff;
}
.panel {
    display: none;
    padding: 22px 28px 30px;
}
.panel.is-active {
    display: block;
}
.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 20px;
    border-block: 1px solid var(--line);
    background: #ffffff;
}
.extract {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
.facts div,
.extract section {
    padding: 16px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.facts div {
    border-left: 1px solid var(--line);
}
.facts div:first-child {
    border-left: 0;
}
.extract section {
    border-bottom: 1px solid var(--line);
}
.facts dt {
    color: var(--brand);
    font-size: 11px;
    font-weight: 850;
}
.facts dd {
    margin: 5px 0 0;
    color: var(--brand);
    font-weight: 850;
}
.extract h3 {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 20px;
}
.extract h3::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand));
}
.extract ul {
    margin: 0;
    padding-left: 18px;
}
.original-text {
    max-height: none;
    white-space: normal;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: #ffffff;
    color: #050b18;
    font-size: 15px;
    line-height: 1.78;
}
.original-text p {
    color: #050b18;
    margin: 0 0 16px;
}
.original-text .original-heading {
    margin: 24px 0 8px;
    color: var(--brand);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.35;
}
.original-text .original-bullet {
    margin: 0 0 7px 18px;
    text-indent: -14px;
}
.original-text p:first-child {
    margin-top: 0;
}
.original-text p:last-child {
    margin-bottom: 0;
}
.extract-mark {
    border-radius: 0;
    background: transparent;
    color: var(--brand-dark);
    font-weight: inherit;
    box-shadow: none;
    text-decoration-line: underline;
    text-decoration-color: rgba(0, 103, 106, 0.58);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}
.extract-mark-offer {
    background: transparent;
}
.extract-mark-requirement {
    background: transparent;
}
.extract-mark-task {
    background: transparent;
}


/* ===== design/account.css ===== */
.account-menu {
    position: relative;
    grid-column: 4;
    justify-self: end;
}
.account-menu summary {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    min-width: 156px;
    cursor: pointer;
    list-style: none;
}
.account-menu summary strong {
    max-width: 128px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-menu summary .account-initials {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--brand);
    color: #ffffff;
    font-weight: 900;
}
.account-menu summary .account-company-logo {
    border: 1px solid var(--line);
    background: #ffffff;
}
.account-menu summary .account-company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.account-menu[open] {
    z-index: 30;
}
.account-menu-panel {
    display: none;
}
.account-menu[open] .account-menu-panel {
    position: absolute;
    right: 0;
    top: 48px;
    width: 270px;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--panel);
    box-shadow: var(--shadow-menu);
}
.account-menu a,
.account-menu form {
    display: block;
    margin: 0;
}
.account-menu .menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: calc(var(--radius-control) - 2px);
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
}
.account-menu .menu-item:hover {
    border-color: rgba(12, 129, 121, 0.18);
    background: rgba(12, 129, 121, 0.07);
}
.account-menu .menu-switch {
    border-color: rgba(12, 129, 121, 0.35);
    color: var(--brand-dark);
}
.account-menu .menu-logout {
    justify-content: center;
    border-color: var(--line);
    background: #ffffff;
}
.menu-form button {
    font-family: inherit;
}
.account {
    width: min(100% - 64px, 1120px);
    margin: 8px auto 44px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--panel);
}
.account-hero {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 54px 28px 24px;
    text-align: center;
}
.account-hero h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
}
.account-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}
.account-page-panel {
    margin-top: 18px;
}
.account p {
    color: var(--muted);
    line-height: 1.6;
}
.account-empty {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
}
.account-empty h2 {
    margin: 0;
}
.profile-layout,
.employer {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
}
.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.account-tabs a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}
.account-tabs a:hover {
    border-color: rgba(12, 129, 121, 0.55);
}
.account-tabs a.is-active {
    border-color: var(--brand);
    background: rgba(12, 129, 121, 0.08);
    color: var(--brand-dark);
}
.profile-card,
.profile-form {
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: #ffffff;
    padding: 20px;
}
.static-field {
    display: grid;
    gap: 8px;
    align-content: start;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.static-field span {
    display: block;
}
.static-field strong {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 11px 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
}
.profile-card {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    text-align: center;
}
.avatar-portrait {
    --skin: #d99b72;
    --hair: #2b1d18;
    --shirt: var(--brand);
    --bg-a: rgba(8, 94, 89, 0.14);
    --bg-b: rgba(49, 87, 164, 0.18);
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-a), var(--bg-b));
    box-shadow: 0 0 0 1px var(--line), 0 12px 26px rgba(23, 32, 51, 0.1);
}
.avatar-portrait.has-gallery-avatar .avatar-bg,
.avatar-portrait.has-gallery-avatar .avatar-shadow,
.avatar-portrait.has-gallery-avatar .avatar-body,
.avatar-portrait.has-gallery-avatar .avatar-neck,
.avatar-portrait.has-gallery-avatar .avatar-face,
.avatar-portrait.has-gallery-avatar .avatar-hair,
.avatar-portrait.has-photo .avatar-bg,
.avatar-portrait.has-photo .avatar-shadow,
.avatar-portrait.has-photo .avatar-body,
.avatar-portrait.has-photo .avatar-neck,
.avatar-portrait.has-photo .avatar-face,
.avatar-portrait.has-photo .avatar-hair {
    display: none;
}
.avatar-mini {
    width: 38px;
    height: 38px;
    border-width: 1px;
}
.avatar-large {
    width: 72px;
    height: 72px;
}
.avatar-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(var(--avatar-shift-x, 0%), var(--avatar-shift-y, 0%)) scale(var(--avatar-zoom, 1));
    transform-origin: center;
}
.avatar-portrait .avatar-bg,
.avatar-portrait .avatar-shadow,
.avatar-portrait .avatar-body,
.avatar-portrait .avatar-neck,
.avatar-portrait .avatar-face,
.avatar-portrait .avatar-hair {
    position: absolute;
}
.avatar-portrait .avatar-bg {
    inset: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 42%);
}
.avatar-portrait .avatar-shadow {
    left: 15%;
    right: 15%;
    bottom: 8%;
    height: 12%;
    border-radius: 50%;
    background: rgba(23, 32, 51, 0.14);
}
.avatar-portrait .avatar-face {
    left: 31%;
    top: 24%;
    width: 38%;
    height: 40%;
    border-radius: 46% 46% 48% 48%;
    background: var(--skin);
    box-shadow: inset -4px -5px 0 rgba(80, 41, 24, 0.08);
    z-index: 4;
}
.avatar-portrait .avatar-face::before {
    content: "";
    position: absolute;
    left: 28%;
    top: 42%;
    width: 8%;
    height: 8%;
    border-radius: 50%;
    background: #162033;
    box-shadow: 145% 0 0 #162033;
}
.avatar-portrait .avatar-face::after {
    content: "";
    position: absolute;
    left: 34%;
    top: 69%;
    width: 32%;
    height: 10%;
    border-bottom: 2px solid rgba(22, 32, 51, 0.55);
    border-radius: 50%;
}
.avatar-portrait .avatar-hair {
    left: 26%;
    top: 18%;
    width: 48%;
    height: 25%;
    border-radius: 42% 42% 20% 20%;
    background: var(--hair);
    box-shadow: -5px 7px 0 -4px var(--hair), 5px 7px 0 -4px var(--hair);
    z-index: 5;
}
.avatar-portrait .avatar-body {
    left: 18%;
    bottom: -10%;
    width: 64%;
    height: 34%;
    border-radius: 44% 44% 14% 14%;
    background: var(--shirt);
    z-index: 2;
}
.avatar-portrait .avatar-neck {
    left: 40%;
    top: 59%;
    width: 20%;
    height: 15%;
    border-radius: 0 0 8px 8px;
    background: var(--skin);
    z-index: 3;
}
.avatar-mini .avatar-face::after {
    border-bottom-width: 1px;
}
.avatar-02 { --skin: #f0c7a6; --hair: #6e3d1e; --shirt: var(--blue); --bg-a: rgba(49, 87, 164, 0.16); }
.avatar-03 { --skin: #8f5d43; --hair: #161313; --shirt: #0d6f70; --bg-a: rgba(12, 129, 121, 0.18); }
.avatar-04 { --skin: #e2ad86; --hair: #caa04b; --shirt: #3157a4; --bg-b: rgba(49, 87, 164, 0.25); }
.avatar-05 { --skin: #c98663; --hair: #2e211c; --shirt: #21334f; }
.avatar-05 .avatar-hair,
.avatar-09 .avatar-hair {
    border-radius: 50% 50% 24% 24%;
    height: 31%;
}
.avatar-06 { --skin: #f2d0b1; --hair: #843232; --shirt: #0c8179; }
.avatar-06 .avatar-hair,
.avatar-10 .avatar-hair {
    width: 42%;
    left: 29%;
    border-radius: 46% 46% 14% 14%;
}
.avatar-07 { --skin: #6f4637; --hair: #111827; --shirt: #3157a4; --bg-a: rgba(49, 87, 164, 0.18); }
.avatar-08 { --skin: #dfb08a; --hair: #202a44; --shirt: #08736f; }
.avatar-09 { --skin: #f0bb92; --hair: #3d291d; --shirt: #21334f; }
.avatar-10 { --skin: #b87555; --hair: #111111; --shirt: #0c8179; }
.avatar-11 { --skin: #edc4a3; --hair: #d6ac4b; --shirt: #3157a4; }
.avatar-12 { --skin: #9d6b4d; --hair: #4a2418; --shirt: #1f5f70; }
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.avatar-persona {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f2f8f7;
}
.avatar-persona label {
    cursor: pointer;
}
.avatar-persona input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.avatar-persona span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}
.avatar-persona input:checked + span {
    background: var(--brand-dark);
    color: #ffffff;
}
.avatar-card {
    display: grid;
    gap: 6px;
}
.avatar-card[hidden] {
    display: none;
}
.avatar-choice {
    display: grid;
    justify-items: center;
    gap: 0;
    padding: 14px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: #ffffff;
    color: var(--muted);
    cursor: pointer;
}
.avatar-choice[hidden] {
    display: none;
}
.avatar-delete {
    min-height: 28px;
    padding: 0 9px;
    border-color: rgba(166, 49, 49, 0.24);
    color: #8f2d2d;
    font-size: 12px;
}
.avatar-empty {
    margin: 0;
    color: var(--muted);
}
.avatar-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.avatar-choice.is-selected,
.avatar-choice:has(input:checked) {
    border-color: var(--brand);
    background: rgba(12, 129, 121, 0.06);
    color: var(--brand-dark);
}
.photo-cropper {
    display: grid;
    gap: 16px;
    margin-top: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: linear-gradient(180deg, #ffffff, #f8fbfc);
}
.photo-upload {
    max-width: 460px;
}
.photo-crop-preview {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}
.photo-crop-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: 240px;
    height: 240px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.76) 0 1px, transparent 1px 33.333%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0 1px, transparent 1px 33.333%),
        #eef5f6;
}
.photo-crop-frame .avatar-portrait {
    width: 210px;
    height: 210px;
    border-width: 0;
    box-shadow: 0 0 0 1px rgba(0, 84, 88, 0.12), 0 18px 38px rgba(23, 32, 51, 0.14);
}
.photo-crop-frame .avatar-portrait.has-photo {
    cursor: grab;
    touch-action: none;
}
.photo-crop-frame .avatar-portrait.has-photo:active {
    cursor: grabbing;
}
.photo-crop-grid {
    position: absolute;
    inset: 15px;
    pointer-events: none;
    border-radius: 50%;
    box-shadow: 0 0 0 999px rgba(248, 251, 252, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    background:
        linear-gradient(90deg, transparent 32.9%, rgba(255, 255, 255, 0.72) 33%, rgba(255, 255, 255, 0.72) 33.7%, transparent 33.8%, transparent 66.2%, rgba(255, 255, 255, 0.72) 66.3%, rgba(255, 255, 255, 0.72) 67%, transparent 67.1%),
        linear-gradient(180deg, transparent 32.9%, rgba(255, 255, 255, 0.72) 33%, rgba(255, 255, 255, 0.72) 33.7%, transparent 33.8%, transparent 66.2%, rgba(255, 255, 255, 0.72) 66.3%, rgba(255, 255, 255, 0.72) 67%, transparent 67.1%);
}
.photo-settings {
    display: grid;
    gap: 14px;
    align-items: center;
}
.photo-settings input[type="range"] {
    min-height: 24px;
    padding: 0;
    accent-color: var(--brand);
}
.photo-settings input[type="range"]:disabled {
    opacity: 0.42;
}
.photo-cropper.is-waiting-for-photo .photo-crop-frame {
    opacity: 0.74;
}
.company-logo-section {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
}
.company-logo-preview {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: #ffffff;
    color: var(--brand-dark);
    font-size: 24px;
    font-weight: 950;
}
.company-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.company-logo-fallback {
    background: rgba(0, 84, 88, 0.08);
}
.cv-upload-form {
    display: grid;
    gap: 12px;
}
.cv-current {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: #f8fbfc;
}
.cv-current p {
    color: var(--ink);
}
.cv-readout {
    display: grid;
    gap: 12px;
    padding-top: 4px;
}
.cv-readout h3,
.cv-readout h4 {
    margin: 0;
}
.cv-readout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.cv-readout-grid section {
    padding: 13px;
    border-left: 3px solid rgba(12, 129, 121, 0.55);
    background: #f8fbfc;
}
.cv-readout-grid p {
    margin: 4px 0 0;
}
.profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.profile-form .wide,
.profile-form button {
    grid-column: 1 / -1;
}
.form-section {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: #ffffff;
}
.form-section h2 {
    margin: 0;
    font-size: 20px;
}
.form-section p {
    margin: 0;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    color: var(--ink);
    font-size: 13px;
}
.toggle-row input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    accent-color: var(--brand);
}
.employer-section {
    margin-top: 22px;
}
.employer-vacancy-workspace {
    display: grid;
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    gap: 18px;
}
.employer-vacancy-list,
.employer-vacancy-editor {
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: #ffffff;
}
.employer-vacancy-list {
    display: grid;
    align-content: start;
    gap: 10px;
    padding-bottom: 14px;
}
.employer-vacancy-list .section-head {
    padding: 16px 16px 4px;
}
.small-action {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}
.employer-vacancy-card {
    display: grid;
    gap: 5px;
    margin: 0 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    color: var(--ink);
    text-decoration: none;
}
.employer-vacancy-card.is-active {
    border-color: rgba(12, 129, 121, 0.75);
    box-shadow: inset 3px 0 0 var(--brand);
}
.employer-vacancy-card span,
.employer-vacancy-card small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}
.employer-vacancy-card strong {
    color: var(--brand-dark);
    font-size: 15px;
    line-height: 1.25;
}
.employer-vacancy-editor {
    padding: 20px;
}
.record-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.record-actions {
    margin-top: 12px;
}
.empty-state {
    margin: 0 16px;
}
.login-dialog {
    width: min(460px, calc(100vw - 32px));
    border: 0;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 30px 90px rgba(23, 32, 51, 0.24);
}
.login-dialog::backdrop {
    background: rgba(23, 32, 51, 0.42);
}
.login-box {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 28px;
}
.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
}
.role-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.role-switch label {
    display: flex;
    align-items: center;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    padding: 0 12px;
    color: var(--ink);
    font-size: 15px;
}
.role-switch input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 0 10px 0 0;
}


/* ===== design/mobile.css ===== */
@media (max-width: 1080px) {
    .board {
        grid-template-columns: minmax(0, 1fr);
    }
    .job-detail {
        min-height: auto;
    }
}
@media (max-width: 760px) {
    html,
    body.public-site {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    body.public-site .site-topbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 12px 18px;
        overflow: visible;
    }
    .brand {
        width: auto;
    }
    body.public-site .login-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: min(220px, calc(100vw - 36px));
        max-width: 220px;
        align-self: center;
        margin: 0;
        text-align: center;
    }
    .account-menu {
        align-self: flex-end;
    }
    .site-topbar nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }
    .site-topbar .language-switch {
        width: auto;
        justify-content: flex-start;
        overflow: visible;
    }
    .hero-inner,
    .board {
        padding-left: 18px;
        padding-right: 18px;
    }
    .hero {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }
    .hero-inner {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        justify-items: center;
        text-align: center;
    }
    .site-topbar,
    .hero,
    .filters,
    .job-list,
    .job-detail,
    .detail,
    .panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .hero-inner,
    .board {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        box-sizing: border-box;
    }
    .hero h1 {
        width: 100%;
        max-width: min(340px, calc(100vw - 44px));
        font-size: 42px;
        line-height: 1;
    }
    .hero p {
        width: 100%;
        max-width: min(340px, calc(100vw - 44px));
        font-size: 18px;
        line-height: 1.24;
    }
    .search {
        width: min(340px, calc(100vw - 36px));
        max-width: min(340px, calc(100vw - 36px));
    }
    .search,
    .filters,
    .facts,
    .extract,
    .account-empty,
    .photo-settings,
    .photo-crop-preview,
    .company-logo-section,
    .profile-layout,
    .employer,
    .employer-vacancy-workspace,
    .profile-form {
        grid-template-columns: 1fr;
    }
    .avatar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .photo-crop-frame {
        width: min(240px, calc(100vw - 76px));
        height: min(240px, calc(100vw - 76px));
    }
    .photo-crop-frame .avatar-portrait {
        width: calc(min(240px, calc(100vw - 76px)) - 30px);
        height: calc(min(240px, calc(100vw - 76px)) - 30px);
    }
    .filter-drawer {
        width: 100%;
        min-width: 0;
    }
    .filters {
        grid-template-columns: 1fr;
    }
    .search-filters .filters,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .filters .filter-choice {
        justify-content: flex-start;
    }
    .account-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }
    .section-head,
    .job-meta,
    .tabs,
    .actions {
        min-width: 0;
        max-width: 100%;
        flex-wrap: wrap;
    }
    .tabs {
        width: fit-content;
        margin-right: 18px;
        margin-left: auto;
    }
    .account {
        width: calc(100% - 36px);
        padding: 18px;
    }
    .account-menu[open] .account-menu-panel {
        right: 0;
        width: min(240px, calc(100vw - 36px));
    }
    .account-hero {
        padding-left: 18px;
        padding-right: 18px;
    }
    .site-footer {
        padding: 32px 18px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
    }
    .site-footer nav,
    .footer-social {
        justify-content: flex-start;
    }
}
