/* MLSS Jobs Portal: lightweight, dependency-free stylesheet (~10 KB).
   Built for low-bandwidth use; no web fonts, no JavaScript framework. */

:root {
    /* Zambian flag palette. --green is darkened from flag green (#198A00) for AA text contrast. */
    --flag-green: #198a00;
    --flag-red: #de2010;
    --flag-black: #111111;
    --flag-orange: #ef7d00;
    --green: #146e0a;
    --green-dark: #0c4a06;
    --green-soft: #eaf5e6;
    --copper: #b85f00;
    --ink: #1c2321;
    --muted: #59615e;
    --line: #d7dcd9;
    --surface: #ffffff;
    --page: #f5f7f6;
    --danger: #b3261e;
    --danger-soft: #fbeaea;
    --warning-soft: #fdf3e2;
    --info-soft: #e8f0fb;
    --radius: 8px;
    --focus: 3px solid #f2b705;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); font-size: 1rem; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 1.5rem; padding-bottom: 3rem; min-height: 70vh; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.inline { display: inline; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.row--between { justify-content: space-between; }
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--sidebar { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid--sidebar { grid-template-columns: 260px 1fr; } }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; }

/* Top bar, header and flag stripe */
.topbar { background: var(--flag-black); color: #e6e6e6; font-size: .825rem; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-top: .4rem; padding-bottom: .4rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__links { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-header { background: var(--surface); position: relative; }
.site-header__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; padding-top: .85rem; padding-bottom: .85rem; }
.brand { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: var(--ink); }
.brand__crest { width: 58px; height: auto; display: block; }
.brand__name { display: block; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; color: var(--green-dark); }
.brand__tag { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
.site-nav a, .link-button { color: var(--ink); text-decoration: none; padding: .3rem 0; font: inherit; font-weight: 500; }
.site-nav a.active { color: var(--green); font-weight: 700; box-shadow: inset 0 -3px 0 var(--flag-orange); }
.link-button { background: none; border: 0; cursor: pointer; }
.link-button:hover, .site-nav a:hover { color: var(--green); }
.pill { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 1em; background: var(--flag-red); color: #fff; font-size: .75rem; text-align: center; }
/* The flag's colours as a stripe: green field, then red, black and orange bars. */
.flag-stripe { display: grid; grid-template-columns: 1fr 48px 48px 48px; height: 5px; }
.flag-stripe span:nth-child(1) { background: var(--flag-green); }
.flag-stripe span:nth-child(2) { background: var(--flag-red); }
.flag-stripe span:nth-child(3) { background: var(--flag-black); }
.flag-stripe span:nth-child(4) { background: var(--flag-orange); }

/* Footer */
.site-footer { background: #0f1a0d; color: #cfd8cc; font-size: .925rem; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding-top: 2.5rem; padding-bottom: 2rem; }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--flag-orange); margin-bottom: .75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-brand img { width: 52px; height: auto; margin-bottom: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid #263523; padding-top: 1rem; padding-bottom: 1.25rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card + .card { margin-top: 1rem; }
.card__title { font-size: 1.1rem; margin-bottom: .75rem; }
.page-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.page-header p { margin: 0; }
.page-header__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.hero { background: var(--green); color: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; margin-bottom: 1.5rem; }
.hero h1 { font-size: 2rem; }
.hero p { max-width: 640px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.stat__value { font-size: 1.75rem; font-weight: 700; display: block; }
.stat__label { color: var(--muted); font-size: .9rem; }
.empty-state { text-align: center; padding: 2rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.empty-state__title { font-weight: 600; margin-bottom: .25rem; }

/* Buttons */
.button { display: inline-block; border: 2px solid var(--green); background: var(--green); color: #fff; padding: .55rem 1.1rem; border-radius: 6px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.button--secondary { background: #fff; color: var(--green); }
.button--secondary:hover { background: var(--green-soft); color: var(--green-dark); }
.button--danger { background: var(--danger); border-color: var(--danger); }
.button--danger:hover { background: #8c1d17; border-color: #8c1d17; }
.button--small { padding: .3rem .7rem; font-size: .9rem; }
.button[disabled] { opacity: .55; cursor: not-allowed; }

/* Forms */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .25rem; }
.field .hint { color: var(--muted); font-size: .875rem; margin: 0 0 .25rem; }
.field .error { color: var(--danger); font-size: .9rem; margin: .25rem 0 0; font-weight: 600; }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=datetime-local],
input[type=number], input[type=search], input[type=url], input[type=file], select, textarea {
    width: 100%; padding: .55rem .65rem; border: 1px solid #8a948f; border-radius: 6px; font: inherit; background: #fff; color: var(--ink);
}
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border: 2px solid var(--danger); }
.checkbox { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .75rem; }
.checkbox input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0 0 1rem; }
legend { font-weight: 600; padding: 0 .25rem; }
.form-narrow { max-width: 480px; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }

/* Alerts & badges */
.alert { border-left: 5px solid; border-radius: 6px; padding: .8rem 1rem; margin-bottom: 1rem; background: var(--info-soft); border-color: #2b5ea7; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert p:last-child { margin: 0; }
.alert--success { background: var(--green-soft); border-color: var(--green); }
.alert--danger { background: var(--danger-soft); border-color: var(--danger); }
.alert--warning { background: var(--warning-soft); border-color: var(--copper); }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eceeed; color: var(--ink); white-space: nowrap; }
.badge--success { background: var(--green-soft); color: var(--green-dark); }
.badge--warning { background: var(--warning-soft); color: #7a3a05; }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: #1e4479; }

/* Tables & lists */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f0f3f1; font-size: .875rem; }
tr:last-child td { border-bottom: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.vacancy-card h2 { font-size: 1.15rem; margin-bottom: .25rem; }
.vacancy-card h2 a { text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; padding: 0; list-style: none; }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
dl.details dt { font-weight: 600; color: var(--muted); }
dl.details dd { margin: 0; }
.prose { white-space: pre-line; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1rem .75rem; }
.timeline li::before { content: ""; position: absolute; left: -1.72rem; top: .3rem; width: .85rem; height: .85rem; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.timeline time { display: block; color: var(--muted); font-size: .85rem; }

/* Side navigation */
.side-nav { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.side-nav a { display: block; padding: .6rem 1rem; text-decoration: none; color: var(--ink); border-left: 4px solid transparent; }
.side-nav a.active { border-left-color: var(--green); background: var(--green-soft); font-weight: 600; }
.side-nav li + li a { border-top: 1px solid var(--line); }

.pagination { display: flex; gap: .25rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 1rem 0 0; }
.pagination a, .pagination span { display: block; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; }
.pagination .active span { background: var(--green); color: #fff; border-color: var(--green); }

@media print { .site-header, .site-footer, .no-print { display: none; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-nav a.button { color: #fff; box-shadow: none; padding: .45rem .9rem; border-radius: 999px; }
.site-nav a.button:hover { color: #fff; }
.grid > .card + .card, .stack > .card + .card { margin-top: 0; }
.page-header__actions { align-items: center; }
details > summary { cursor: pointer; }

/* ===== Home page ===== */
.main--wide { padding-top: 0; padding-bottom: 0; }
.section { padding: 4rem 0; }
.section--tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 2rem; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin-bottom: .5rem; }

.hero-search { display: flex; flex-wrap: wrap; gap: .5rem; background: #fff; padding: .5rem; border-radius: 14px; max-width: 620px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.hero-search input, .hero-search select { border: 0; flex: 1 1 180px; min-width: 0; font-size: 1rem; padding: .7rem .8rem; }
.hero-search select { flex: 0 1 200px; border-left: 1px solid var(--line); border-radius: 0; }
.hero-search .button { border-radius: 10px; padding: .7rem 1.4rem; }

.icon-badge { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--orange { background: #fff1e0; color: var(--copper); }
.icon-badge--red { background: #fde8e6; color: #b21a0d; }
.icon-badge--black { background: #ececec; color: #111; }


.vacancy-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.vacancy-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; border-top: 4px solid var(--flag-green); }
.vacancy-tile:nth-child(4n+2) { border-top-color: var(--flag-orange); }
.vacancy-tile:nth-child(4n+3) { border-top-color: var(--flag-red); }
.vacancy-tile:nth-child(4n+4) { border-top-color: var(--flag-black); }
.vacancy-tile h3 { font-size: 1.1rem; margin: 0; }
.vacancy-tile h3 a { text-decoration: none; color: var(--ink); }
.vacancy-tile h3 a:hover { color: var(--green); }
.vacancy-tile .meta { margin: 0; }
.vacancy-tile__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .9rem; padding-top: .75rem; border-top: 1px solid var(--line); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); counter-reset: step; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.25rem 1.25rem; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; margin-bottom: .75rem; }
.steps li:last-child::before { background: var(--flag-orange); }
.steps h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }


.assurance { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.assurance > div { display: flex; gap: .9rem; align-items: flex-start; }
.assurance h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.assurance p { color: var(--muted); margin: 0; font-size: .95rem; }

.cta-band { background: linear-gradient(110deg, var(--flag-black) 0%, #1e2a1b 100%); color: #fff; border-radius: 22px; padding: 2.5rem; display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; position: relative; overflow: hidden; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; padding: 3rem; } }
.cta-band::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(var(--flag-red) 0 33%, var(--flag-black) 33% 66%, var(--flag-orange) 66%); }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; margin-bottom: .4rem; }
.cta-band p { color: #d5dcd2; margin: 0; }
.button--orange { background: var(--flag-orange); border-color: var(--flag-orange); color: #1b1100; }
.button--orange:hover { background: #d66f00; border-color: #d66f00; color: #1b1100; }
.button--light { background: transparent; border-color: #fff; color: #fff; }
.button--light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.button--lg { padding: .8rem 1.5rem; font-size: 1.05rem; border-radius: 10px; }

@media (max-width: 640px) {
    .topbar__inner > span:first-child { display: none; }
    .topbar__inner { justify-content: flex-end; }
    .brand__crest { width: 44px; }
    .brand__tag { font-size: .68rem; }
    .brand__name { font-size: 1.05rem; }
    .site-nav { gap: .25rem 1rem; font-size: .95rem; align-items: center; }
    .site-nav a.button { padding: .4rem .9rem; font-size: .9rem; }
    .topbar__inner a[href^="mailto"] { display: none; }
    .hero-search select { border-left: 0; border-top: 1px solid var(--line); flex-basis: 100%; }
    .hero-search .button { flex: 1 1 100%; }
    .section { padding: 2.75rem 0; }
}

/* Vacancies listing */
.jobs-search { background: linear-gradient(135deg, var(--green-dark), var(--green)); padding: 1.75rem 0 1.25rem; }
.jobs-search__bar { display: flex; flex-wrap: wrap; gap: .5rem; background: #fff; padding: .45rem; border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.jobs-search__field { display: flex; align-items: center; gap: .5rem; flex: 2 1 260px; padding: 0 .75rem; min-width: 0; }
.jobs-search__field + .jobs-search__field { flex: 1 1 200px; border-left: 1px solid var(--line); }
.jobs-search__field svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; }
.jobs-search__field input, .jobs-search__field select { border: 0; width: 100%; padding: .7rem 0; font-size: 1rem; background: transparent; }
.jobs-search__field input:focus, .jobs-search__field select:focus { outline: none; }
.jobs-search__field:focus-within { box-shadow: inset 0 -2px 0 var(--flag-orange); }
.jobs-search__bar .button { border-radius: 10px; padding: .7rem 1.6rem; }
.type-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .3rem .85rem; font-size: .9rem; }
.chip:hover { background: rgba(255,255,255,.12); }
.chip--on { background: #fff; color: var(--green-dark); border-color: #fff; font-weight: 600; }

.jobs-layout { display: grid; gap: 1.5rem; padding-top: 1.75rem; padding-bottom: 2.5rem; }
@media (min-width: 960px) { .jobs-layout { grid-template-columns: 270px 1fr; align-items: start; } .jobs-filters { position: sticky; top: 1rem; } }
.jobs-filters details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.jobs-filters summary { cursor: pointer; font-weight: 700; padding: 1rem 1.1rem; display: flex; align-items: center; gap: .5rem; }
.jobs-filters form { padding: 0 1.1rem 1.1rem; }
.jobs-filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: .9rem 0; }
.jobs-filters legend { font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .9rem 0 .4rem; float: left; width: 100%; }
.jobs-filters fieldset > :nth-child(2) { clear: both; }
.jobs-filters fieldset .field { margin: 0; }
.jobs-filters fieldset .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.opt { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: .95rem; cursor: pointer; }
.opt input { accent-color: var(--green); width: 1.05rem; height: 1.05rem; margin: 0; }
.opt__count { margin-left: auto; font-size: .8rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 0 .5rem; }
.opt--switch { border-top: 1px solid var(--line); padding-top: .9rem; }
.jobs-filters__actions { margin-top: 1rem; }

.jobs-results__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .75rem; margin-bottom: 1rem; }
.jobs-results__head h1 { font-size: 1.6rem; margin: 0 0 .15rem; }
.jobs-results__head p { margin: 0; }
.jobs-sort { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.jobs-sort select { width: auto; padding: .4rem .6rem; }

.job-card { display: grid; gap: .75rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--flag-green); border-radius: 12px; padding: 1.15rem 1.25rem; margin-bottom: .85rem; transition: box-shadow .15s, border-color .15s; position: relative; }
.job-card:hover { box-shadow: 0 8px 22px rgba(12,74,6,.1); border-color: #cfdccb; border-left-color: var(--flag-orange); }
@media (min-width: 720px) { .job-card { grid-template-columns: 1fr 190px; } }
.job-card--closed { border-left-color: var(--line); opacity: .8; }
.job-card__title { font-size: 1.15rem; margin: 0 0 .2rem; }
.job-card__title a { text-decoration: none; color: var(--green-dark); }
.job-card__title a::after { content: ""; position: absolute; inset: 0; }
.job-card__org { margin: 0 0 .6rem; color: var(--ink); font-size: .95rem; }
.job-card__org span { color: var(--muted); margin: 0 .25rem; }
.job-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 .6rem; padding: 0; }
.job-card__tags li { background: var(--green-soft); color: var(--green-dark); border-radius: 6px; padding: .15rem .55rem; font-size: .82rem; font-weight: 500; }
.job-card__tags .job-card__salary { background: #fff3e3; color: var(--copper); }
.job-card__summary { margin: 0; color: var(--muted); font-size: .93rem; }
.job-card__side { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); }
@media (min-width: 720px) { .job-card__side { align-items: flex-end; text-align: right; border-left: 1px solid var(--line); padding-left: 1.25rem; } }
.job-card__due { font-weight: 600; color: var(--ink); }
.job-card__due--soon { color: var(--flag-red); }
.job-card__cta { margin-top: auto; font-weight: 600; text-decoration: none; position: relative; z-index: 1; }

.jobs-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--flag-black); color: #fff; border-radius: 12px; padding: 1.25rem 1.4rem; margin-bottom: .85rem; border-right: 6px solid var(--flag-orange); }
.jobs-promo h2 { font-size: 1.1rem; margin: 0 0 .2rem; color: #fff; }
.jobs-promo p { margin: 0; color: #d6d6d6; font-size: .93rem; }

.jobs-browse { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.jobs-browse h2 { font-size: 1rem; }
.jobs-browse ul { list-style: none; padding: 0; margin: 0 0 1rem; columns: 2; font-size: .92rem; }
.jobs-browse li { padding: .2rem 0; }
.small { font-size: .85rem; }

@media (max-width: 640px) {
    .jobs-search__field + .jobs-search__field { border-left: 0; border-top: 1px solid var(--line); flex-basis: 100%; }
    .jobs-search__bar .button { flex: 1 1 100%; }
    .type-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
    .chip { white-space: nowrap; }
    .jobs-results__head h1 { font-size: 1.3rem; }
}

/* Homepage picture slider */
.hero-slider { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--green-dark), var(--green)); min-height: 520px; display: flex; flex-direction: column; justify-content: center; }
.hero-slider__track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-slider__track img.is-active { opacity: 1; }
.hero-slider__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,30,3,.35) 0%, rgba(5,30,3,.55) 60%, rgba(5,30,3,.75) 100%); }
.hero-slider__content { position: relative; z-index: 1; text-align: center; padding-top: 4rem; padding-bottom: 4.5rem; }
.hero-slider h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 auto .75rem; max-width: 16ch; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-slider h1 em { font-style: normal; color: #ffd08a; }
.hero-slider p { font-size: 1.1rem; color: rgba(255,255,255,.92); margin: 0 auto 1.75rem; max-width: 46ch; }
.hero-slider .hero-search { margin: 0 auto; max-width: 720px; text-align: left; }
.hero-slider__link { display: inline-block; margin-top: 1.1rem; color: #fff; font-weight: 600; }
.hero-slider__dots { position: absolute; z-index: 1; bottom: 1.1rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; }
.hero-slider__dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s, background .3s; }
.hero-slider__dots button.is-active { width: 28px; background: var(--flag-orange); }
@media (prefers-reduced-motion: reduce) { .hero-slider__track img { transition: none; } }
@media (max-width: 640px) {
    .hero-slider { min-height: 440px; }
    .hero-slider__content { padding-top: 2.75rem; padding-bottom: 3.5rem; }
    .hero-slider p { font-size: 1rem; }
}

.slide-admin { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.slide-admin__item { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.slide-admin__item img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.slide-admin__item figcaption { padding: .5rem .75rem; }

/* Signed-in account layout: left sidebar */
.has-app-shell { background: #f3f6f2; }
.app-shell { display: grid; min-height: 100vh; }
@media (min-width: 1024px) { .app-shell { grid-template-columns: 264px minmax(0, 1fr); } }
.app-sidebar { background: #0f1a0d; color: #d9e3d6; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 40; transform: translateX(-100%); transition: transform .25s ease; }
@media (min-width: 1024px) { .app-sidebar { position: sticky; top: 0; height: 100vh; transform: none; } }
.sidebar-open .app-sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
.app-shell__backdrop { display: none; }
.sidebar-open .app-shell__backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 30; }
.app-sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1rem 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.app-brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.15; }
.app-brand img { width: 34px; height: auto; background: #fff; border-radius: 8px; padding: 3px; }
.app-brand small { display: block; font-size: .68rem; letter-spacing: .1em; color: var(--flag-orange); font-weight: 700; }
.app-sidebar__close { background: none; border: 0; color: #fff; padding: .25rem; cursor: pointer; }
@media (min-width: 1024px) { .app-sidebar__close { display: none; } }
.app-nav { flex: 1; overflow-y: auto; padding: .75rem .75rem 1rem; }
.app-nav__title { margin: 1rem .6rem .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7f927a; }
.app-nav ul { list-style: none; margin: 0; padding: 0; }
.app-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem; margin-bottom: 2px; border-radius: 9px; color: #d9e3d6; text-decoration: none; font-size: .93rem; position: relative; }
.app-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-nav a.is-active { background: linear-gradient(90deg, rgba(25,138,0,.45), rgba(25,138,0,.15)); color: #fff; font-weight: 600; }
.app-nav a.is-active::before { content: ""; position: absolute; left: -.75rem; top: 20%; bottom: 20%; width: 4px; border-radius: 0 4px 4px 0; background: var(--flag-orange); }
.nav-icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-nav a .nav-icon { opacity: .85; }
.app-nav__count { margin-left: auto; background: var(--flag-red); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; }
.app-user { display: flex; align-items: center; gap: .65rem; padding: .9rem 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.app-user__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--flag-orange); color: #111; font-weight: 800; flex: none; }
.app-user__who { min-width: 0; flex: 1; line-height: 1.2; }
.app-user__who strong { display: block; color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-user__who small { color: #8fa38a; font-size: .76rem; }
.app-user form { margin: 0; }
.app-user__out { background: rgba(255,255,255,.06); border: 0; border-radius: 8px; color: #d9e3d6; padding: .45rem; cursor: pointer; display: grid; }
.app-user__out:hover { background: var(--flag-red); color: #fff; }

.app-shell__body { min-width: 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; align-items: center; gap: .75rem; background: #fff; padding: .8rem clamp(1rem, 3vw, 2rem); position: sticky; top: 0; z-index: 20; }
.app-topbar__menu { background: none; border: 1px solid var(--line); border-radius: 8px; padding: .4rem; cursor: pointer; display: grid; color: var(--ink); }
@media (min-width: 1024px) { .app-topbar__menu { display: none; } }
.app-topbar__title { font-weight: 700; color: var(--green-dark); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-topbar__bell { position: relative; color: var(--ink); display: grid; padding: .35rem; border-radius: 8px; }
.app-topbar__bell:hover { background: var(--green-soft); }
.app-topbar__bell span { position: absolute; top: -2px; right: -4px; background: var(--flag-red); color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 700; padding: 0 .35rem; }
.app-main { padding: 1.75rem clamp(1rem, 3vw, 2rem) 3rem; max-width: 1200px; width: 100%; }
/* Pages that used to carry their own section menu now span the full width. */
.app-main .grid--sidebar { grid-template-columns: minmax(0, 1fr); }

/* Sign-in security */
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; list-style: none; padding: 0; margin: 1rem 0; }
.recovery-codes code, .mfa-key { display: inline-block; background: var(--green-soft); color: var(--green-dark); border-radius: 6px; padding: .35rem .6rem; font-size: 1rem; letter-spacing: .04em; }
.mfa-setup { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .mfa-setup { grid-template-columns: 1fr 220px; align-items: start; } }
.mfa-qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; width: 220px; max-width: 100%; }
.mfa-qr svg { display: block; width: 100%; height: auto; }
.mfa-steps { padding-left: 1.2rem; margin-top: 0; }
.mfa-steps li { margin-bottom: .4rem; }
.auth-recovery { margin-top: 1.25rem; font-size: .95rem; }
.auth-recovery summary { cursor: pointer; color: var(--green); font-weight: 600; }
.auth-recovery form { margin-top: 1rem; }

/* Settings and roles */
.settings-section { margin-bottom: 1.25rem; }
.settings-section__intro { margin-bottom: 1rem; }
.settings-section__intro h2, .settings-section h2 { font-size: 1.1rem; margin: 0 0 .2rem; }
.check-grid { display: grid; gap: .25rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: .75rem; }
.perm-group { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; margin: 0 0 1rem; }
.perm-group legend { font-weight: 700; padding: 0 .35rem; }
.perm-group .checkbox span small { display: block; color: var(--muted); }
.role-table td { vertical-align: top; }

/* Workspace dashboard */
.kpi-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 1.25rem; }
.kpi { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label icon" "value icon" "meta meta"; gap: .1rem .75rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--flag-green); }
.kpi--orange::before { background: var(--flag-orange); } .kpi--red::before { background: var(--flag-red); } .kpi--black::before { background: var(--flag-black); }
a.kpi:hover { box-shadow: 0 8px 22px rgba(12,74,6,.08); }
.kpi__icon { grid-area: icon; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.kpi--orange .kpi__icon { background: #fff1e0; color: var(--copper); } .kpi--red .kpi__icon { background: #fde8e6; color: #b21a0d; } .kpi--black .kpi__icon { background: #ececec; color: #111; }
.kpi__label { grid-area: label; font-size: .85rem; color: var(--muted); font-weight: 600; }
.kpi__value { grid-area: value; font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.kpi__meta { grid-area: meta; font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.kpi__meta b.up { color: var(--green); } .kpi__meta b.down { color: var(--flag-red); }
.dash-grid { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-card { margin: 0; }
.dash-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.dash-card__head h2 { font-size: 1.02rem; margin: 0; }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 1rem; }
.trend__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.trend__bar { width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--flag-green), var(--green-dark)); min-height: 2px; }
.trend__col:last-child .trend__bar { background: linear-gradient(180deg, var(--flag-orange), var(--copper)); }
.trend__value { font-size: .7rem; color: var(--muted); min-height: 1em; }
.trend__day { font-size: .7rem; color: var(--muted); }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pipeline li { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 2.5rem; align-items: center; gap: .6rem; font-size: .88rem; }
.pipeline__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipeline__track { background: #eef2ed; border-radius: 999px; height: 10px; overflow: hidden; }
.pipeline__bar { display: block; height: 100%; border-radius: 999px; background: var(--flag-green); }
.pipeline__bar--good { background: var(--flag-orange); } .pipeline__bar--bad { background: #9aa59a; }
.pipeline__count { text-align: right; font-weight: 700; }
.dash-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.dash-row:first-of-type { border-top: 0; }
.dash-row strong { display: block; font-size: .93rem; }
.dash-row small { display: block; color: var(--muted); font-size: .8rem; }
a.dash-row:hover strong { color: var(--green); }
.dash-pill { flex: none; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .2rem .6rem; background: var(--green-soft); color: var(--green-dark); }
.dash-pill--hot { background: #fde8e6; color: #b21a0d; }
.dash-date { flex: none; width: 46px; text-align: center; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); font-size: .7rem; text-transform: uppercase; padding: .3rem 0; line-height: 1.1; }
.dash-date b { display: block; font-size: 1.15rem; }
.activity { display: flex; gap: .75rem; padding: .55rem 0; font-size: .9rem; border-top: 1px solid var(--line); }
.activity:first-of-type { border-top: 0; }
.activity small { display: block; color: var(--muted); font-size: .78rem; }
.activity__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--flag-orange); margin-top: .4rem; }
.activity__dot--new { background: var(--flag-green); }
@media (min-width: 1024px) { .app-shell { background: linear-gradient(90deg, #0f1a0d 264px, transparent 264px); } }
/* == White sidebar == */
.app-sidebar { background: #fff; color: #33402f; border-right: 1px solid #e3e8e1; }
@media (min-width: 1024px) { .app-shell { background: linear-gradient(90deg, #fff 264px, transparent 264px); } }
.sidebar-open .app-sidebar { box-shadow: 0 0 40px rgba(0,0,0,.18); }
.app-sidebar__head { border-bottom: 1px solid #eef1ec; }
.app-brand { color: #13200f; }
.app-brand img { background: none; padding: 0; border-radius: 0; }
.app-sidebar__close { color: #33402f; }
.app-nav__title { color: #8a9686; }
.app-nav a { color: #3c4838; }
.app-nav a .nav-icon { opacity: 1; color: #7b8777; }
.app-nav a:hover { background: #f3f6f2; color: #13200f; }
.app-nav a:hover .nav-icon { color: var(--green); }
.app-nav a.is-active { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.app-nav a.is-active .nav-icon { color: var(--green); }
.app-nav a.is-active::before { background: var(--green); }
.app-user { border-top: 1px solid #eef1ec; background: #fafbf9; }
.app-user__who strong { color: #13200f; }
.app-user__who small { color: #7b8777; }
.app-user__out { background: #fff; border: 1px solid #e3e8e1; color: #5b6757; }
.app-user__out:hover { background: var(--flag-red); border-color: var(--flag-red); color: #fff; }
.app-topbar { border-bottom: 1px solid #e3e8e1; }
/* == End white sidebar == */
/* == Profile sections == */
.pf-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.pf-head__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.pf-head__icon .nav-icon { width: 26px; height: 26px; }
.pf-head__text { flex: 1; min-width: 220px; }
.pf-head h1 { margin: 0; font-size: 1.6rem; display: flex; align-items: center; gap: .6rem; }
.pf-head p { margin: .2rem 0 0; color: var(--muted); max-width: 62ch; }
.pf-head__add { display: inline-flex; align-items: center; gap: .4rem; }
.pf-head__add .nav-icon { width: 18px; height: 18px; }
.pf-count { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .45rem; border-radius: 999px; background: #eef1ec; color: #4a5646; font-size: .8rem; font-weight: 700; }

.pf-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1180px) { .pf-layout { grid-template-columns: minmax(0, 1fr) 380px; } .pf-form { position: sticky; top: 5rem; } .pf-head__add { display: none; } }
.pf-list { display: grid; gap: .85rem; }

.entry { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid #e3e8e1; border-radius: 14px; padding: 1.1rem 1.2rem; transition: border-color .15s, box-shadow .15s; }
.entry:hover { border-color: #cfd8cc; box-shadow: 0 6px 18px rgba(16, 32, 12, .06); }
.entry--editing { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.entry--flat { border: 0; border-top: 1px solid #eef1ec; border-radius: 0; padding: .9rem 0; box-shadow: none !important; }
.entry--flat:first-of-type { border-top: 0; }
.entry__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #f3f6f2; color: var(--green); flex: none; }
.entry__icon--file { font-size: .68rem; font-weight: 800; letter-spacing: .04em; color: var(--green-dark); background: var(--green-soft); }
.entry__icon--initial { border-radius: 50%; background: #fff3e6; color: #b45a00; font-weight: 800; }
.entry__body { flex: 1; min-width: 0; }
.entry__title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.entry__meta { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.entry__text { margin: .6rem 0 0; font-size: .92rem; color: #3c4838; line-height: 1.55; }
.entry__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .18rem .6rem; border-radius: 999px; background: #f3f6f2; color: #3c4838; font-size: .78rem; font-weight: 600; }
.chip .nav-icon { width: 14px; height: 14px; }
.chip--ok { background: var(--green-soft); color: var(--green-dark); }
.chip--muted { background: transparent; border: 1px solid #e3e8e1; color: var(--muted); font-weight: 500; }
.entry__actions { display: flex; gap: .35rem; flex: none; }
.entry__versions { list-style: none; margin: .7rem 0 0; padding: 0; font-size: .85rem; color: var(--muted); }
.entry__versions li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-top: 1px dashed #e3e8e1; }
.entry__more { margin-top: .7rem; font-size: .9rem; }
.entry__more summary { cursor: pointer; color: var(--green); font-weight: 600; }
.entry__more form { margin-top: .75rem; }

.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid #e3e8e1; background: #fff; color: #5b6757; cursor: pointer; padding: 0; text-decoration: none; }
.icon-btn .nav-icon { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.icon-btn--danger:hover { border-color: var(--flag-red); color: #fff; background: var(--flag-red); }

.pf-empty { text-align: center; background: #fff; border: 1.5px dashed #d5ddd2; border-radius: 14px; padding: 2.5rem 1.5rem; }
.pf-empty > span { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); margin-bottom: .6rem; }
.pf-empty > span .nav-icon { width: 26px; height: 26px; }
.pf-empty h2 { margin: 0 0 .25rem; font-size: 1.1rem; }
.pf-empty p { margin: 0; color: var(--muted); }

.pf-form { background: #fff; border: 1px solid #e3e8e1; border-radius: 14px; padding: 1.3rem 1.3rem .4rem; scroll-margin-top: 5rem; }
.pf-form__head { margin: -1.3rem -1.3rem 1.1rem; padding: 1rem 1.3rem; border-bottom: 1px solid #eef1ec; background: #fafbf9; border-radius: 14px 14px 0 0; }
.pf-form__head h2 { margin: 0; font-size: 1.05rem; }
.pf-form__head p { margin: .15rem 0 0; color: var(--muted); font-size: .85rem; }
.pf-form .field { margin-bottom: .85rem; }
.pf-form .field label { font-size: .88rem; }
.pf-form input:not([type=checkbox]):not([type=file]), .pf-form select, .pf-form textarea { width: 100%; border-radius: 9px; }
.pf-form input[type=file] { width: 100%; font-size: .85rem; padding: .55rem; border: 1.5px dashed #d5ddd2; border-radius: 9px; background: #fafbf9; }
.pf-pair > * { min-width: 0; }
.pf-form input, .pf-form select, .pf-form textarea { box-sizing: border-box; min-width: 0; max-width: 100%; }
.pf-pair { display: grid; gap: 0 .8rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .pf-pair { grid-template-columns: 1fr; } }
.pf-note { margin: -.4rem 0 .85rem; font-size: .8rem; color: var(--muted); }
.pf-check { font-size: .92rem; }
.pf-form__foot { display: flex; justify-content: flex-end; gap: .5rem; margin: .4rem -1.3rem 0; padding: .9rem 1.3rem; border-top: 1px solid #eef1ec; }

.pf-panel { background: #fff; border: 1px solid #e3e8e1; border-radius: 14px; padding: 1.1rem 1.2rem; }
.pf-panel__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.pf-panel__head h2 { margin: 0; font-size: 1.1rem; }
.skill-tags { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .35rem .3rem .8rem; border: 1px solid #dfe6dc; border-radius: 999px; background: #fafbf9; font-weight: 600; font-size: .9rem; }
.skill-tag small { margin-left: .4rem; color: var(--muted); font-weight: 500; }
.skill-tag .icon-btn { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; }
.skill-tag .icon-btn .nav-icon { width: 14px; height: 14px; }
.skill-add { display: grid; gap: 0 .8rem; grid-template-columns: 2fr 1fr auto; align-items: end; border-top: 1px solid #eef1ec; padding-top: 1rem; }
.skill-add .button { margin-bottom: 1rem; }
.skill-add .hint { display: none; }
@media (max-width: 640px) { .skill-add { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .entry { flex-wrap: wrap; } .entry__actions { width: 100%; justify-content: flex-end; } }
/* == End profile sections == */
/* == App mode == */
/* Bottom tab bar on phones for signed-in users, like a native app. */
.tabbar { display: none; }
@media (max-width: 1023px) {
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-top: 1px solid #e3e8e1; padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(16,32,12,.06); }
  .tabbar__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .3rem 0; border: 0; background: none;
    color: #6b7767; font: inherit; font-size: .68rem; font-weight: 600; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar__item .nav-icon { width: 24px; height: 24px; transition: transform .15s; }
  .tabbar__item::before { content: ""; position: absolute; top: .05rem; width: 54px; height: 30px; border-radius: 999px; background: transparent; transition: background .2s; z-index: -1; }
  .tabbar__item.is-active { color: var(--green-dark); }
  .tabbar__item.is-active::before { background: var(--green-soft); }
  .tabbar__item:active .nav-icon { transform: scale(.88); }
  .tabbar__badge { position: absolute; top: .05rem; left: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--flag-red);
    color: #fff; font-size: .62rem; line-height: 17px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
  .has-tabbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .has-tabbar .app-topbar__menu { display: none; }
  .has-tabbar .site-footer { padding-bottom: 1rem; }
  .sidebar-open .tabbar { z-index: 25; }
  .has-tabbar .app-topbar__bell { display: none; }
}
/* Tables become stacked cards on small phones instead of being cut off. */
@media (max-width: 640px) {
  .app-main .table-wrap { border: 0; background: none; overflow: visible; }
  .app-main .table-wrap table, .app-main .table-wrap tbody { display: block; width: 100%; }
  .app-main .table-wrap thead { display: none; }
  .app-main .table-wrap tr { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; background: #fff; border: 1px solid #e3e8e1; border-radius: 12px; padding: .8rem .9rem; margin-bottom: .6rem; }
  .app-main .table-wrap td { display: block; padding: 0; border: 0; font-size: .88rem; }
  .app-main .table-wrap td:first-child { grid-column: 1 / -1; font-size: .98rem; }
  .app-main .table-wrap td:not(:first-child) { color: var(--muted); }
}
.push-card [hidden] { display: none !important; }
/* Installed app: tighter, app-like top bar that respects the phone's notch. */
.is-app .app-topbar { padding-top: calc(.8rem + env(safe-area-inset-top)); }
.is-app .topbar { display: none; }
.is-app body { overscroll-behavior-y: none; }
.is-app a, .is-app button { -webkit-tap-highlight-color: transparent; }
@media (max-width: 1023px) { .is-app .site-footer { display: none; } }

.offline-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 60; background: #1b2618; color: #fff;
  padding: .6rem 1rem; border-radius: 10px; font-size: .88rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100% - 2rem); }
@media (min-width: 1024px) { .offline-bar { bottom: 1.25rem; } }

.install-banner { position: fixed; left: .75rem; right: .75rem; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1px solid #e3e8e1; border-radius: 16px; padding: .75rem .9rem; box-shadow: 0 12px 32px rgba(16,32,12,.18); animation: banner-in .35s ease; }
.install-banner img { border-radius: 11px; border: 1px solid #eef1ec; flex: none; }
.install-banner div { flex: 1; min-width: 0; line-height: 1.25; }
.install-banner strong { display: block; font-size: .95rem; }
.install-banner span { font-size: .82rem; color: var(--muted); }
.install-banner__close { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: #8a9686; cursor: pointer; padding: 0 .25rem; }
@media (min-width: 1024px) { .install-banner { left: auto; right: 1.25rem; bottom: 1.25rem; width: 380px; } }
body:not(.has-tabbar) .install-banner { bottom: calc(1rem + env(safe-area-inset-bottom)); }
@keyframes banner-in { from { transform: translateY(20px); opacity: 0; } }

.push-card { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff; border: 1px solid #e3e8e1; border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.25rem; }
.push-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.push-card__text { flex: 1; min-width: 220px; }
.push-card__text h2 { margin: 0; font-size: 1.02rem; }
.push-card__text p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.push-card__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.offline-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; background: #f3f6f2; padding: 1.25rem; margin: 0; }
.offline-card { position: relative; overflow: hidden; width: 100%; max-width: 440px; background: #fff; border: 1px solid #e3e8e1; border-radius: 18px; padding: 2rem 1.5rem 2.25rem; text-align: center; }
.offline-card h1 { margin: .75rem 0 .35rem; font-size: 1.5rem; }
.offline-card p { color: var(--muted); margin: 0 0 1.25rem; }
.offline-card .flag-stripe { position: absolute; left: 0; right: 0; bottom: 0; }
.offline-saved { text-align: left; margin-top: 1.5rem; border-top: 1px solid #eef1ec; padding-top: 1rem; }
.offline-saved h2 { font-size: .95rem; margin: 0 0 .5rem; }
.offline-saved ul { margin: 0; padding-left: 1.1rem; }
.offline-saved li { margin: .3rem 0; }
/* == End app mode == */
/* == Polish == */
/* One consistent look for every signed-in page: headings, cards, forms, tables, buttons, empty states. */
.app-main { --line-soft: #eef1ec; --edge: #e3e8e1; --field: #d5ddd2; font-size: .96rem; }
.app-main > * + * { margin-top: 0; }

/* Page header */
.app-main .page-header { align-items: center; margin-bottom: 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--edge); }
.app-main .page-header h1 { font-size: 1.6rem; letter-spacing: -.01em; margin: 0; }
.app-main .page-header p { margin-top: .25rem; max-width: 70ch; font-size: .95rem; }
.app-main h2 { font-size: 1.08rem; }

/* Cards */
.app-main .card { border: 1px solid var(--edge); border-radius: 14px; padding: 1.25rem 1.4rem; box-shadow: 0 1px 2px rgba(16,32,12,.03); }
.app-main .card + .card, .app-main .card + form, .app-main form + .card, .app-main .card + .table-wrap, .app-main .table-wrap + .card { margin-top: 1.25rem; }
.app-main .card__title { font-size: 1.02rem; margin: -1.25rem -1.4rem 1.1rem; padding: .95rem 1.4rem; border-bottom: 1px solid var(--line-soft); }
.app-main .grid { gap: 1.25rem; }
.app-main .stack > * + * { margin-top: 1.25rem; }
.app-main .grid > .card + .card, .app-main .stack > .card + .card { margin-top: 0; }

/* Forms */
.app-main .field { margin-bottom: 1rem; }
.app-main .field label { font-size: .86rem; color: #2b3628; margin-bottom: .3rem; }
.app-main .field .hint { font-size: .8rem; margin: -.1rem 0 .35rem; }
.app-main input[type=text], .app-main input[type=email], .app-main input[type=password], .app-main input[type=tel], .app-main input[type=date],
.app-main input[type=datetime-local], .app-main input[type=number], .app-main input[type=search], .app-main input[type=url], .app-main select, .app-main textarea {
  width: 100%; box-sizing: border-box; min-height: 42px; padding: .55rem .75rem; border: 1px solid var(--field); border-radius: 9px; background: #fff; font: inherit; font-size: .95rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; }
.app-main textarea { min-height: 96px; line-height: 1.5; }
.app-main input:focus, .app-main select:focus, .app-main textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,138,0,.14); }
.app-main input[type=file] { width: 100%; box-sizing: border-box; padding: .6rem; border: 1.5px dashed var(--field); border-radius: 9px; background: #fafbf9; font-size: .88rem; }
.app-main input[aria-invalid=true], .app-main select[aria-invalid=true], .app-main textarea[aria-invalid=true] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180,35,24,.1); }
.app-main .checkbox { align-items: center; gap: .55rem; font-size: .93rem; }
.app-main .checkbox input { margin: 0; width: 1.05rem; height: 1.05rem; accent-color: var(--green); flex: none; }
.app-main .check-grid { gap: .35rem 1.25rem; }
.app-main form > .row:last-child, .app-main .form-actions { margin-top: .5rem; }

/* Buttons */
.app-main .button { border-radius: 9px; padding: .58rem 1.1rem; font-size: .93rem; }
.app-main .button--small { padding: .32rem .75rem; font-size: .84rem; border-radius: 8px; border-width: 1.5px; }
.app-main .button--secondary { border-color: var(--field); color: var(--green-dark); }
.app-main .button--secondary:hover { border-color: var(--green); }

/* Tables */
.app-main .table-wrap { border: 1px solid var(--edge); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,32,12,.03); }
.app-main th { background: #fafbf9; color: #5b6757; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .75rem 1rem; border-bottom: 1px solid var(--edge); white-space: nowrap; }
.app-main td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: .92rem; }
.app-main tbody tr:last-child td { border-bottom: 0; }
.app-main tbody tr:hover td { background: #fbfcfa; }
.app-main td a { font-weight: 600; }
.app-main .card > .table-wrap, .app-main .card table { border: 0; box-shadow: none; }

/* Lists inside cards */
.app-main .list > li { padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
.app-main .card.list, .app-main ul.list.card { padding-top: .25rem; padding-bottom: .25rem; }

/* Badges and alerts */
.app-main .badge { padding: .16rem .6rem; font-size: .75rem; letter-spacing: .01em; }
.app-main .alert { border-left-width: 4px; border-radius: 10px; padding: .85rem 1rem; font-size: .93rem; }

/* Empty states */
.app-main .empty-state { border: 1.5px dashed #d5ddd2; border-radius: 14px; padding: 2.5rem 1.5rem; background: #fff; }
.app-main .empty-state::before { content: ""; display: block; width: 52px; height: 52px; margin: 0 auto .75rem; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23198a00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18v13H3z'/%3E%3Cpath d='M3 7l3-4h12l3 4M9 12h6'/%3E%3C/svg%3E") center / 24px no-repeat; }
.app-main .empty-state__title { font-size: 1.05rem; }

/* Number tiles (reports, delivery monitor) */
.app-main .stat { border: 1px solid var(--edge); border-radius: 14px; padding: 1.1rem 1.25rem; position: relative; overflow: hidden; }
.app-main .stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green); }
.app-main .grid > .stat:nth-child(4n+2)::before { background: var(--flag-orange); }
.app-main .grid > .stat:nth-child(4n+3)::before { background: #1b2618; }
.app-main .grid > .stat:nth-child(4n+4)::before { background: var(--flag-red); }
.app-main .stat__value { font-size: 1.9rem; letter-spacing: -.02em; }
.app-main .stat__label { font-size: .85rem; }

/* Detail lists */
.app-main .details { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; margin: 0; font-size: .93rem; }
.app-main .details dt { color: var(--muted); }
.app-main .details dd { margin: 0; font-weight: 500; }

/* Pagination spacing */
.app-main nav[aria-label*="agination"], .app-main .pagination { margin-top: 1.25rem; }

/* Settings page */
.settings-nav { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.settings-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border: 1px solid #e3e8e1; border-radius: 999px; background: #fff; color: #3c4838; text-decoration: none; font-size: .88rem; font-weight: 600; }
.settings-nav a:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.settings-nav a .nav-icon { width: 16px; height: 16px; }
.setting-block { display: grid; gap: 1rem 2rem; padding: 1.4rem; scroll-margin-top: 5rem; }
@media (min-width: 960px) { .setting-block { grid-template-columns: 220px minmax(0, 1fr); } }
.app-main .setting-block.card { padding: 1.4rem; }
.setting-block + .setting-block { margin-top: 1.25rem; }
.setting-block__intro { display: flex; gap: .8rem; align-items: flex-start; }
.setting-block__intro .nav-icon { flex: none; width: 38px; height: 38px; padding: 9px; box-sizing: border-box; border-radius: 10px; background: var(--green-soft); color: var(--green); }
.setting-block__intro h2 { margin: 0 0 .25rem; font-size: 1.02rem; }
.setting-block__intro p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.setting-fields { display: grid; gap: 0 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .setting-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.setting-fields .span-2 { grid-column: 1 / -1; }
.setting-subhead { grid-column: 1 / -1; margin: .25rem 0 .75rem; padding-top: .9rem; border-top: 1px solid #eef1ec; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7b8777; }
.setting-test { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: #fafbf9; border: 1px solid #eef1ec; border-radius: 10px; padding: .8rem 1rem; font-size: .88rem; color: var(--muted); }
.role-checks { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.role-check { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border: 1px solid #e3e8e1; border-radius: 10px; cursor: pointer; font-size: .92rem; font-weight: 500; transition: border-color .15s, background .15s; }
.role-check:hover { border-color: #c9d3c6; }
.role-check:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.role-check input { accent-color: var(--green); width: 1.05rem; height: 1.05rem; margin: 0; }
.setting-tip { grid-column: 1 / -1; margin: .9rem 0 0; font-size: .84rem; color: var(--muted); }
.save-bar { position: sticky; bottom: 0; z-index: 15; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; margin-top: 1.25rem; padding: .85rem 1.1rem;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border: 1px solid #e3e8e1; border-radius: 14px; box-shadow: 0 -6px 20px rgba(16,32,12,.06); }
.save-bar span { color: var(--muted); font-size: .86rem; margin-right: auto; }
@media (max-width: 1023px) { .has-tabbar .save-bar { bottom: calc(70px + env(safe-area-inset-bottom)); } }
.page-header__actions .button { display: inline-flex; align-items: center; gap: .4rem; }
.page-header__actions .button .nav-icon { width: 17px; height: 17px; }
/* Notifications page */
.notice-group { margin: 1.5rem 0 .6rem; font-size: .76rem !important; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #7b8777; }
.notice-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #e3e8e1; border-radius: 14px; overflow: hidden; }
.notice-list li + li { border-top: 1px solid #eef1ec; }
.notice { display: flex; align-items: flex-start; gap: .9rem; padding: .95rem 1.1rem; color: inherit; text-decoration: none; position: relative; transition: background .15s; }
.notice:hover { background: #fafbf9; }
.notice__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #f3f6f2; color: #5b6757; }
.notice__icon .nav-icon { width: 20px; height: 20px; }
.notice__icon--calendar { background: #fff3e6; color: #b45a00; }
.notice__icon--flow { background: #e8f0fb; color: #1e4479; }
.notice__icon--file, .notice__icon--bell { background: var(--green-soft); color: var(--green); }
.notice__icon--briefcase { background: #f1ecfb; color: #5b3a9e; }
.notice__icon--mail { background: #fdecea; color: #b42318; }
.notice__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.notice__title { font-weight: 500; color: #2b3628; }
.notice__text { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.notice__time { flex: none; font-size: .8rem; color: #8a9686; white-space: nowrap; margin-top: .1rem; }
.notice--unread { background: #fbfdf9; }
.notice--unread .notice__title { font-weight: 700; color: var(--ink); }
.notice--unread::before { content: ""; position: absolute; left: 0; top: .8rem; bottom: .8rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
.notice--unread .notice__time { color: var(--green-dark); font-weight: 700; }
/* == End polish == */
/* == Launcher == */
/* Phone home screen: app-style icon grid, compact header and a notifications prompt. */
.launcher, .app-topbar__crest { display: none; }
.push-prompt[hidden] { display: none !important; }
.push-prompt { display: flex; align-items: center; gap: .8rem; background: linear-gradient(120deg, #0f5a05, #198a00); color: #fff; border-radius: 16px;
  padding: .9rem 1rem; margin-bottom: 1.25rem; box-shadow: 0 10px 24px rgba(25,138,0,.25); position: relative; }
.push-prompt__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.18); flex: none; animation: bell-ring 2.4s ease-in-out infinite; }
.push-prompt__icon .nav-icon { width: 22px; height: 22px; }
.push-prompt div { flex: 1; min-width: 0; line-height: 1.3; }
.push-prompt strong { display: block; font-size: .98rem; }
.push-prompt span { font-size: .84rem; opacity: .9; }
.push-prompt .button { background: #fff; color: var(--green-dark); border-color: #fff; flex: none; }
.push-prompt__close { background: none; border: 0; color: rgba(255,255,255,.8); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 .1rem; align-self: flex-start; }
@keyframes bell-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }

@media (max-width: 1023px) {
  .app-topbar { gap: .6rem; padding-top: calc(.6rem + env(safe-area-inset-top)); padding-bottom: .6rem; }
  .app-topbar__crest { display: block; line-height: 0; }
  .app-topbar__crest img { width: 28px; height: auto; }
  .app-topbar__title { font-size: 1.02rem; }
  .app-main { padding-top: 1.1rem; }
  .app-main .page-header { margin-bottom: 1rem; padding-bottom: .8rem; }
  .app-main .page-header h1 { font-size: 1.35rem; }
  .app-main .page-header p { font-size: .88rem; }

  .page-header:has(+ .launcher) .page-header__actions { display: none; }
  .launcher { display: block; margin: 0 0 1.25rem; background: #fff; border: 1px solid #e3e8e1; border-radius: 20px; padding: 1.1rem .6rem .5rem; }
  .launcher__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem .25rem; }
  .launcher__tile { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-decoration: none; color: #2b3628; -webkit-tap-highlight-color: transparent; }
  .launcher__tile:active .launcher__icon { transform: scale(.92); }
  .launcher__icon { position: relative; width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; color: #fff;
    box-shadow: 0 6px 14px rgba(16,32,12,.16), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .12s; }
  .launcher__icon .nav-icon { width: 27px; height: 27px; stroke-width: 2; }
  .launcher__icon b { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
    background: #fff; color: var(--flag-red); font-size: .7rem; line-height: 20px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
  .launcher__label { font-size: .74rem; font-weight: 600; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .launcher__icon--green { background: linear-gradient(145deg, #2fae12, #157500); }
  .launcher__icon--orange { background: linear-gradient(145deg, #ff9a2e, #e06d00); }
  .launcher__icon--blue { background: linear-gradient(145deg, #4a8fe7, #1f5fbf); }
  .launcher__icon--purple { background: linear-gradient(145deg, #9a6cf0, #6a3fc4); }
  .launcher__icon--teal { background: linear-gradient(145deg, #2bb5a6, #0f857a); }
  .launcher__icon--amber { background: linear-gradient(145deg, #f5c33b, #d99a00); }
  .launcher__icon--red { background: linear-gradient(145deg, #f2554a, #c8231a); }
  .launcher__icon--slate { background: linear-gradient(145deg, #6f7d6b, #45523f); }
}
@media (max-width: 360px) { .launcher__icon { width: 52px; height: 52px; border-radius: 15px; } }
/* == End launcher == */
/* == Vacancy list == */
.status-tabs { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1rem; padding-bottom: .1rem; }
.status-tabs::-webkit-scrollbar { display: none; }
.status-tab { display: inline-flex; align-items: center; gap: .45rem; flex: none; padding: .45rem .9rem; border-radius: 999px; border: 1px solid #e3e8e1; background: #fff;
  color: #3c4838; font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.status-tab span { min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: #eef1ec; color: #5b6757; font-size: .75rem; line-height: 1.4rem; text-align: center; }
.status-tab:hover { border-color: #c9d3c6; }
.status-tab.is-active { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.status-tab.is-active span { background: rgba(255,255,255,.2); color: #fff; }
.status-tab--pending_approval:not(.is-active) span { background: var(--warning-soft); color: #7a3a05; }

.list-toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid #e3e8e1; border-radius: 14px; padding: .6rem; margin-bottom: 1rem; }
.list-toolbar__search { flex: 1 1 260px; display: flex; align-items: center; gap: .5rem; padding: 0 .75rem; border: 1px solid #d5ddd2; border-radius: 10px; background: #fafbf9; }
.list-toolbar__search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,138,0,.14); background: #fff; }
.list-toolbar__search .nav-icon { width: 18px; height: 18px; color: #8a9686; flex: none; }
.app-main .list-toolbar__search input { border: 0; box-shadow: none; background: transparent; padding-left: 0; min-height: 40px; }
.list-toolbar__sort { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); }
.app-main .list-toolbar__sort select { width: auto; min-height: 40px; }
.list-toolbar__clear { font-size: .88rem; }
.list-count { margin: 0 0 .6rem; font-size: .82rem; color: var(--muted); }

.vac-list { display: grid; gap: .65rem; }
.vac-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 100px 118px; align-items: center; gap: 1rem 1.25rem; background: #fff; border: 1px solid #e3e8e1;
  border-left: 4px solid #c9d3c6; border-radius: 14px; padding: 1rem 1.15rem; transition: border-color .15s, box-shadow .15s; }
.vac-row:hover { box-shadow: 0 6px 18px rgba(16,32,12,.06); border-color: #cfd8cc; }
.vac-row--published { border-left-color: var(--green); }
.vac-row--pending_approval { border-left-color: var(--flag-orange); }
.vac-row--closed { border-left-color: #2b5ea7; }
.vac-row--draft, .vac-row--archived { border-left-color: #a7b2a3; }
.vac-row__top { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.vac-row__ref { font-size: .78rem; color: #8a9686; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vac-row__title { margin: 0; font-size: 1.05rem !important; line-height: 1.3; }
.vac-row__title a { color: var(--ink); text-decoration: none; }
.vac-row__title a:hover { color: var(--green-dark); text-decoration: underline; }
.vac-row__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .4rem 0 0; font-size: .84rem; color: var(--muted); }
.vac-row__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.vac-row__meta .nav-icon { width: 14px; height: 14px; }
.vac-row__date, .vac-row__apps { display: flex; flex-direction: column; line-height: 1.25; }
.vac-row__date strong { font-size: .9rem; }
.vac-row__date strong.is-soon { color: var(--flag-red); }
.vac-row__date span, .vac-row__apps span { font-size: .78rem; color: var(--muted); }
.vac-row__apps a { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.vac-row__apps strong { font-size: 1.35rem; letter-spacing: -.01em; color: var(--green-dark); }
.vac-row__actions { display: flex; gap: .35rem; justify-content: flex-end; }
@media (max-width: 860px) {
  .vac-row { grid-template-columns: 1fr 1fr; }
  .vac-row__main { grid-column: 1 / -1; }
  .vac-row__actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid #eef1ec; padding-top: .7rem; }
  .list-toolbar__sort span { display: none; }
}
/* == End vacancy list == */
/* == Update prompt == */
/* "Update available" banner shown when a new version of the app is ready. */
.update-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 1200;
  width: min(460px, calc(100% - 1.5rem)); box-sizing: border-box; display: flex; align-items: center; gap: .75rem;
  background: #10240b; color: #fff; border-radius: 16px; padding: .75rem .8rem .75rem 1rem; box-shadow: 0 14px 34px rgba(0,0,0,.28);
  animation: update-in .3s ease-out; }
.update-bar__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--flag-green, #198a00); font-size: 1.25rem; flex: none; }
.update-bar div { flex: 1; min-width: 0; line-height: 1.3; }
.update-bar strong { display: block; font-size: .95rem; }
.update-bar div span { font-size: .82rem; opacity: .8; }
.update-bar__go { flex: none; background: #fff; color: #10240b; border: 0; border-radius: 10px; padding: .55rem 1rem; font: inherit; font-weight: 700; cursor: pointer; }
.update-bar__go:disabled { opacity: .7; }
.update-bar__later { flex: none; background: none; border: 0; color: rgba(255,255,255,.7); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.has-tabbar .update-bar { bottom: calc(78px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .has-tabbar .update-bar { bottom: 1.25rem; } }
@keyframes update-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* == End update prompt == */
/* == Public app == */
/* Phones: public pages (home, jobs, help) look and behave like the app, with an app header,
   icon tiles and the bottom tab bar. Computers keep the website layout. */
.app-actions { display: none; }
@media (max-width: 1023px) {
  .is-public .topbar, .is-public .site-nav, .is-public .site-footer, .is-public .desktop-only { display: none !important; }
  .is-public .site-header { position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 #e3e8e1; }
  .is-public .site-header__inner { flex-wrap: nowrap; gap: .75rem; padding-top: calc(.55rem + env(safe-area-inset-top)); padding-bottom: .55rem; }
  .is-public .brand { gap: .55rem; min-width: 0; }
  .is-public .brand__crest { width: 32px; }
  .is-public .brand__tag { display: none; }
  .is-public .brand__name { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .is-public .site-header .flag-stripe { height: 3px; }
  .app-actions { display: flex; align-items: center; gap: .35rem; flex: none; }
  .app-actions__pill { background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: .45rem 1rem; border-radius: 999px; }
  .app-actions__pill:hover { color: #fff; background: var(--green-dark); }
  .app-actions__icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); background: #f3f6f2; }
  .app-actions__icon .nav-icon { width: 21px; height: 21px; }
  .app-actions__icon b { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 999px;
    background: var(--flag-red); color: #fff; font-size: .66rem; line-height: 18px; text-align: center; }
  .is-public .main { padding-top: 1rem; min-height: 0; }
  .is-public .main--wide { padding-top: 0; }

  /* Home: short green banner with search, then the icon tiles */
  .hero-slider { min-height: 0; border-radius: 0 0 26px 26px; }
  .hero-slider__content { padding-top: 1.5rem; padding-bottom: 3.2rem; }
  .hero-slider h1 { font-size: 1.55rem; max-width: 20ch; margin-bottom: .4rem; }
  .hero-slider p { font-size: .9rem; margin-bottom: 1rem; }
  .hero-slider .hero-search { flex-wrap: nowrap; padding: .35rem; border-radius: 14px; }
  .hero-slider .hero-search input { flex: 1 1 auto; padding: .6rem .7rem; }
  .hero-slider .hero-search select, .hero-slider__link, .hero-slider__dots { display: none; }
  .hero-slider .hero-search .button { padding: .6rem 1rem; flex: none; }
  .home-launcher { position: relative; z-index: 2; margin-top: -2.2rem; }
  .home-launcher .launcher { box-shadow: 0 12px 28px rgba(16,32,12,.12); margin-bottom: .5rem; }
  .home-latest { padding: 1rem 0 1.5rem; }
  .home-latest .section__head { margin-bottom: .8rem; align-items: center; flex-wrap: nowrap; }
  .home-latest .eyebrow { display: none; }
  .home-latest .section__head h2 { font-size: 1.15rem; margin: 0; }
  .home-latest .section__head .button { border: 0; padding: .3rem 0; background: none; font-size: .9rem; }
  .vacancy-grid { gap: .6rem; }
  .vacancy-tile { padding: .85rem 1rem; gap: .25rem; border-radius: 14px; border-top-width: 1px; border-left: 4px solid var(--flag-green); }
  .vacancy-tile h3 { font-size: 1rem; }
  .vacancy-tile .meta { font-size: .84rem; }
  .vacancy-tile__foot { padding-top: .35rem; border-top: 0; font-size: .82rem; }

  /* Jobs list: compact search and app-style cards */
  .jobs-search { padding: .9rem 0 .8rem; border-radius: 0 0 22px 22px; }
  .jobs-search__bar { flex-wrap: nowrap; padding: .3rem; }
  .jobs-search__field + .jobs-search__field { display: none; }
  .jobs-search__bar .button { padding: .6rem 1rem; flex: none; }
  .type-chips { flex-wrap: nowrap; overflow-x: auto; margin-top: .7rem; padding-bottom: .1rem; scrollbar-width: none; }
  .type-chips::-webkit-scrollbar { display: none; }
  .type-chips > * { flex: none; }
  .jobs-results__head h1 { font-size: 1.2rem; }
  .job-card { gap: .4rem; padding: .95rem 1rem; border-radius: 14px; position: relative; }
  .job-card__title { font-size: 1.02rem; }
  .job-card__org { font-size: .86rem; margin-bottom: .45rem; }
  .job-card__tags { margin-bottom: 0; }
  .job-card__tags li { font-size: .75rem; }
  .job-card__summary, .job-card__ref, .job-card__age, .jobs-browse { display: none; }
  .job-card__side { flex-direction: row; align-items: center; justify-content: space-between; padding-top: .55rem; border-top: 1px solid #eef1ec; }
  .job-card__cta { margin-top: 0; background: var(--green-soft); color: var(--green-dark); padding: .35rem .8rem; border-radius: 999px; font-size: .84rem; }
}
/* == End public app == */
