/* =====================================================================
   Kinjila – visual identity v3 ("Azulejo")
   Portuguese blue-and-white tiles meet a clean, modern job search.
   Palette   Orient #005587 (ink & surfaces) · Lochmara #0175BE (actions, tile line)
             Crimson #ED1C24 (one primary action per page) · Tile #EAF3FA · White
   Type      Bricolage Grotesque (headings) · Figtree (text)
   Motion    One moment only: the hero tiles turn over on load. Everything else
             moves only when the user does something.
   ===================================================================== */
:root {
    --navy: #005587;
    --navy-deep: #00324f;
    --blue: #0175BE;
    --crimson: #ED1C24;
    --crimson-deep: #c9141b;
    --tile: #EAF3FA;
    --tile-line: #cfe2f1;
    --ink: #102435;
    --muted: #586b7c;
    --line: #e1e9f0;
    --paper: #ffffff;
    --r-lg: 18px;
    --r: 12px;
    --r-sm: 8px;
    --shadow: 0 18px 44px -22px rgba(0, 50, 79, .45);
    --ease: cubic-bezier(.22, .8, .24, 1);
    --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-text: "Figtree", "Segoe UI", system-ui, sans-serif;

    --bs-primary: #005587;
    --bs-primary-rgb: 0, 85, 135;
    --bs-link-color: #0175BE;
    --bs-link-color-rgb: 1, 117, 190;
    --bs-link-hover-color: #005587;
    --bs-link-hover-color-rgb: 0, 85, 135;
    --bs-body-font-family: var(--font-text);
    --bs-body-color: #102435;
    --bs-body-bg: #ffffff;
    --bs-border-color: #e1e9f0;
    --bs-border-radius: 12px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-text); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--paper);
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-head); color: var(--navy-deep); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
h1, .h1 { font-weight: 800; }
p { max-width: 72ch; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--navy); }
.min-w-0 { min-width: 0; }
.text-brand { color: var(--navy) !important; }
.text-accent { color: var(--crimson) !important; }
.text-muted { color: var(--muted) !important; }
::selection { background: #cfe2f1; color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* Azulejo surfaces (original tile artwork in /images) */
.tiles { background-color: var(--tile); background-image: url("../images/azulejo.svg"); background-size: 88px 88px; }
.tiles-navy { background-color: var(--navy); background-image: url("../images/azulejo-navy.svg"); background-size: 88px 88px; }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 600; border-radius: 10px; padding: .6rem 1.1rem; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1.05rem; }
.btn-sm { padding: .35rem .7rem; border-radius: 8px; }
.btn-brand { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-accent { background: var(--crimson); color: #fff; border: 1px solid var(--crimson); }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--crimson-deep); border-color: var(--crimson-deep); color: #fff; }
.btn-outline-brand { background: #fff; color: var(--navy); border: 1px solid #b9d3e6; }
.btn-outline-brand:hover { border-color: var(--navy); color: var(--navy); background: var(--tile); }
.btn-soft { background: var(--tile); color: var(--navy); border: 1px solid transparent; }
.btn-soft:hover { background: #dcebf6; color: var(--navy-deep); }
.btn-light { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-light:hover { background: #f4f8fb; border-color: #cfdbe6; }
.btn-link { color: var(--blue); }
.btn-primary { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy-deep); --bs-btn-hover-border-color: var(--navy-deep); }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 1.05rem; height: 1.05rem; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-outline-brand.is-loading::after, .btn-light.is-loading::after, .btn-soft.is-loading::after { border-color: #cfe2f1; border-top-color: var(--navy); }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: var(--r-sm); border: 1px solid #ccdae6; padding: .6rem .8rem; background-color: #fff; }
.form-control-lg, .form-select-lg { padding: .78rem 1rem; border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 117, 190, .15); }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; color: var(--ink); }
.form-text { color: var(--muted); }
.required::after { content: " *"; color: var(--crimson); }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
input[type=checkbox] { accent-color: var(--blue); width: 1.05rem; height: 1.05rem; vertical-align: -2px; }
.form-check span input[type=checkbox], .form-switch span input[type=checkbox], span.form-check-input-wrap input { margin-right: .45rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .navbar { padding: .55rem 0; }
.brand-logo { height: 42px; width: auto; }
.site-header .nav-link { color: var(--ink); font-weight: 600; padding: .5rem .85rem !important; position: relative; }
.site-header .nav-link:hover { color: var(--blue); }
.site-header .nav-link.active { color: var(--navy); }
.site-header .nav-link.active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -.62rem; height: 3px; background: var(--crimson); }
.navbar-toggler { border: 0; padding: .25rem .4rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
    .site-header .offcanvas { max-width: 88vw; }
    .site-header .offcanvas .nav-link { font-size: 1.1rem; padding: .75rem 0 !important; border-bottom: 1px solid var(--line); }
    .site-header .nav-link.active::after { display: none; }
    .site-header .offcanvas .btn { width: 100%; }
}

/* Language switch: two plain choices, the current one filled */
.lang-pill { display: inline-flex; border: 1px solid #ccdae6; border-radius: 8px; overflow: hidden; }
.lang-pill a { padding: .3rem .65rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.lang-pill a + a { border-left: 1px solid #ccdae6; }
.lang-pill a:hover { color: var(--navy); background: var(--tile); }
.lang-pill a.on { background: var(--navy); color: #fff; }

.avatar-sm, .avatar-md, .avatar-lg { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    background: var(--navy); color: #fff; font-weight: 700; flex-shrink: 0; font-family: var(--font-head); }
.avatar-sm { width: 32px; height: 32px; font-size: .78rem; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 96px; height: 96px; font-size: 1.8rem; object-fit: cover; }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: .35rem; }
.dropdown-item { border-radius: 6px; padding: .5rem .75rem; }
.dropdown-item:active, .dropdown-item.active { background: var(--navy); }

/* ---------- Hero (home) ---------- */
.hero-home { position: relative; background: #fff; overflow: hidden; }
.hero-home .copy { padding: 4.5rem 0 3.5rem; position: relative; z-index: 2; }
.hero-home h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; max-width: 12ch; margin-bottom: 1.1rem; }
.hero-home .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.hero-home .stats-line { color: var(--muted); font-size: .95rem; margin-top: 1.2rem; }
.hero-home .stats-line strong { color: var(--navy-deep); font-family: var(--font-head); font-size: 1.1rem; }
/* The signature: a wall of tiles on the right that turns over when the page opens */
.tile-wall { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; overflow: hidden; perspective: 900px; }
.tile-wall span { background-size: cover; aspect-ratio: 1; backface-visibility: hidden; animation: tile-turn .7s var(--ease) both; }
.tile-wall span:nth-child(odd) { background-image: url("../images/azulejo.svg"); }
.tile-wall span:nth-child(even) { background-image: url("../images/azulejo-navy.svg"); }
.tile-wall span:nth-child(8n+5), .tile-wall span:nth-child(8n+7) { background-image: url("../images/azulejo-navy.svg"); }
.tile-wall span:nth-child(8n+6), .tile-wall span:nth-child(8n+8) { background-image: url("../images/azulejo.svg"); }
.tile-wall::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 120px; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); z-index: 1; pointer-events: none; }

.search-box { background: #fff; border: 1px solid #c8d9e7; border-radius: 14px; padding: .4rem; box-shadow: var(--shadow); position: relative; z-index: 3; max-width: 760px; }
.search-box .form-control, .search-box .form-select { border: 0; box-shadow: none !important; padding: .85rem .6rem; font-size: 1.02rem; background-color: transparent; }
.search-box .divider { border-left: 1px solid var(--line); }
.search-box .input-icon { color: var(--navy); padding-left: .85rem; font-size: 1.05rem; }
.search-box .btn { border-radius: 10px; padding: .85rem 1.3rem; font-size: 1rem; }
.popular { margin-top: 1rem; }
.popular a { display: inline-block; color: var(--navy); background: var(--tile); padding: .28rem .75rem; border-radius: 999px; font-size: .88rem; font-weight: 500; margin: .2rem .15rem 0 0; }
.popular a:hover { background: #d7e8f5; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: #f6f9fc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: .4rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; }

/* Category index: a two-column list with counts, like the index of a book */
.cat-index { columns: 2 320px; column-gap: 3rem; list-style: none; padding: 0; margin: 0; }
.cat-index li { break-inside: avoid; }
.cat-index a { display: flex; align-items: center; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.cat-index a i { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--tile); color: var(--navy); font-size: 1.05rem; flex-shrink: 0; transition: background .15s, color .15s; }
.cat-index a .name { flex-grow: 1; min-width: 0; }
.cat-index a .n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; font-size: .92rem; }
.cat-index a:hover { color: var(--navy); }
.cat-index a:hover i { background: var(--navy); color: #fff; }

/* Tiles used for the companies grid */
.cat-tile { display: flex; align-items: center; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); height: 100%; transition: border-color .15s, background .15s; }
.cat-tile:hover { border-color: #9cc3e0; background: #fbfdff; color: var(--ink); }
.cat-tile .count { color: var(--muted); font-size: .85rem; }
.cat-tile .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--tile); color: var(--navy); }

/* ---------- Job rows (used for every job list) ---------- */
.job-card { position: relative; padding: 1.15rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, box-shadow .15s; height: 100%; }
.job-card:hover { border-color: #9cc3e0; box-shadow: 0 10px 26px -18px rgba(0, 50, 79, .55); }
.job-card.featured { border-left: 4px solid var(--crimson); padding-left: calc(1.25rem - 3px); }
.job-card h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; margin: 0 0 .1rem; line-height: 1.3; }
.job-card h3 a { color: var(--navy-deep); }
.job-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.job-card:hover h3 a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.job-card .company { font-weight: 600; font-size: .93rem; color: var(--ink); }
.job-card .meta { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .15rem 1rem; margin-top: .2rem; }
.job-card .snippet { color: var(--muted); font-size: .9rem; margin: .55rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card .go { display: none; }
.job-list { display: grid; gap: .75rem; }
.company-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 4px; flex-shrink: 0; }
.company-logo-lg { width: 92px; height: 92px; border-radius: 16px; padding: 8px; }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; padding: .22rem .55rem; border-radius: 6px; background: #f0f5f9; color: #3a5064; margin: .3rem .3rem 0 0; }
.tag-salary { background: #e5f5ec; color: #0c6b3d; }
.tag-featured { background: #fde8e9; color: var(--crimson-deep); }
.tag-new { background: var(--tile); color: var(--blue); }
.chip { display: inline-block; padding: .3rem .7rem; border-radius: 999px; font-size: .82rem; border: 1px solid rgba(255,255,255,.22); color: #d2e3f0; }
.chip:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Employer band (home) ---------- */
.employer-band { background: var(--navy); color: #d6e7f4; position: relative; overflow: hidden; }
.employer-band h2 { color: #fff; }
.employer-band p { color: #c3d9ea; }
.employer-band .tile-edge { position: absolute; top: 0; right: 0; bottom: 0; width: 30%; background-image: url("../images/azulejo-navy.svg"); background-size: 110px 110px; opacity: .9; }
.employer-band .tile-edge::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(0,85,135,0) 60%); }
.employer-band ul { list-style: none; padding: 0; margin: 1.4rem 0 2rem; }
.employer-band li { padding: .35rem 0; display: flex; gap: .6rem; }
.employer-band li i { color: #8cc4ea; }

/* Steps (a real sequence, so it is numbered) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--navy); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--blue); line-height: 1; margin-bottom: .6rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); margin: 0; }

/* District index */
.district-list { columns: 4 180px; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.district-list a { display: block; padding: .35rem 0; color: var(--ink); }
.district-list a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Inner page heads ---------- */
.page-head, .job-head { background: var(--tile); border-bottom: 1px solid var(--tile-line); position: relative; overflow: hidden; }
.page-head::after, .job-head::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 220px; background-image: url("../images/azulejo.svg"); background-size: 88px 88px; opacity: .55;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 80%); mask-image: linear-gradient(90deg, transparent, #000 80%); pointer-events: none; }
.page-head > .container, .job-head > .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.breadcrumb { font-size: .86rem; --bs-breadcrumb-divider-color: #8aa0b3; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.filter-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; background: #fff; }
.filter-card label { font-weight: 600; font-size: .85rem; margin-bottom: .25rem; }
@media (min-width: 992px) { .filter-sticky { position: sticky; top: 88px; } }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.empty-state { text-align: center; padding: 3.5rem 1rem; border: 1px dashed #c3d6e6; border-radius: var(--r); background: #fff; }
.empty-state i { font-size: 2.6rem; color: #9db6cb; }

/* ---------- Job detail ---------- */
.job-body { font-size: 1.03rem; line-height: 1.75; max-width: 72ch; }
.job-body h2 { font-size: 1.25rem; margin: 2.2rem 0 .7rem; }
.side-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; background: #fff; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fact { padding: .85rem 1rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact small { display: block; color: var(--muted); font-size: .8rem; }
.fact strong { font-size: .98rem; color: var(--navy-deep); }
.share-btn { width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; background: #f0f5f9; color: var(--navy); }
.share-btn:hover { background: var(--navy); color: #fff; }
.mobile-apply { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: #fff; border-top: 1px solid var(--line);
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); box-shadow: 0 -12px 28px -20px rgba(0, 50, 79, .6); }
@media (max-width: 991.98px) { body.has-mobile-apply { padding-bottom: 82px; } }

/* ---------- Dashboards ---------- */
.panel-wrap { background: #f6f9fc; min-height: 75vh; }
@media (min-width: 992px) { .panel-side { position: sticky; top: 88px; } }
.panel-nav .nav-link { color: var(--ink); border-radius: 8px; padding: .55rem .75rem; font-weight: 600; font-size: .94rem; display: flex; align-items: center; }
.panel-nav .nav-link i { width: 1.5rem; color: var(--muted); }
.panel-nav .nav-link:hover { background: #f0f5f9; }
.panel-nav .nav-link.active { background: var(--tile); color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); }
.panel-nav .nav-link.active i { color: var(--navy); }
.stat-card { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 1.1rem 1.2rem; height: 100%; }
.stat-card .num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--navy-deep); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card .lbl { color: var(--muted); font-size: .88rem; }
.card { border-radius: var(--r); border: 1px solid var(--line); }
.card.border-0 { border: 1px solid var(--line) !important; }
.card.shadow-sm { box-shadow: none !important; }
.card-header { background: #fff; font-family: var(--font-head); font-weight: 700; color: var(--navy-deep); border-bottom: 1px solid var(--line); padding: .9rem 1.2rem; }
.card-header:first-child { border-radius: var(--r) var(--r) 0 0; }
.table > :not(caption) > * > * { vertical-align: middle; padding: .75rem .9rem; border-bottom-color: var(--line); }
.table thead th { font-size: .82rem; color: var(--muted); font-weight: 600; background: #f8fbfd; }
.table tbody tr:hover { background: #f8fbfd; }
.badge { font-weight: 600; border-radius: 6px; padding: .38em .6em; }
.alert { border-radius: var(--r); border: 1px solid transparent; }
.access-banner { border-radius: var(--r); padding: .95rem 1.15rem; }
.list-group-item { border-color: var(--line); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 66px); display: flex; background: #f6f9fc; }
.auth-side { background-color: var(--navy); background-image: url("../images/azulejo-navy.svg"); background-size: 120px 120px; color: #fff; position: relative; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0, 50, 79, .96) 0%, rgba(0, 85, 135, .88) 55%, rgba(0, 85, 135, .55) 100%); }
.auth-side > div { position: relative; }
.auth-side h2 { color: #fff; font-size: 2.2rem; }
.auth-side li { margin-bottom: .8rem; display: flex; gap: .65rem; color: #d6e7f4; }
.auth-side li i { color: #8cc4ea; }
.auth-side .blob { display: none; }
.auth-card { max-width: 500px; width: 100%; margin: 2.5rem auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.role-switch { background: #eef4f9; padding: 4px; border-radius: 10px; }
.role-switch .btn { flex: 1; border: 0; }
.role-switch .btn-outline-brand { background: transparent; color: var(--muted); }
.role-switch .btn-outline-brand:hover { color: var(--navy); background: rgba(255,255,255,.6); }

/* ---------- Pricing ---------- */
.pricing-head { background: var(--tile); border-bottom: 1px solid var(--tile-line); }
.plan-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; background: #fff; height: 100%; display: flex; flex-direction: column; position: relative; }
.plan-card.popular { border: 2px solid var(--navy); }
.plan-card .price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--navy-deep); letter-spacing: -.03em; }
.plan-card .ribbon { position: absolute; top: -12px; left: 2rem; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; padding: .25rem .75rem; border-radius: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b6cadb; padding: 0 0 1.5rem; }
.site-footer .tile-strip { height: 22px; background-image: url("../images/azulejo-navy.svg"); background-size: 22px 22px; margin-bottom: 3.5rem; opacity: .9; }
.site-footer h6 { color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: #b6cadb; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: .5rem; }
.site-footer hr { border-color: rgba(255,255,255,.12); opacity: 1; }
.footer-logo { background: #fff; border-radius: 10px; padding: 6px 10px; height: 50px; width: auto; }
.site-footer .lang-pill { border-color: rgba(255,255,255,.25); }
.site-footer .lang-pill a { color: #b6cadb; }
.site-footer .lang-pill a + a { border-left-color: rgba(255,255,255,.25); }
.site-footer .lang-pill a.on { background: #fff; color: var(--navy); }

/* ---------- Pager ---------- */
.pagination { gap: .3rem; }
.pagination .page-link { color: var(--navy); border-radius: 8px !important; border: 1px solid var(--line); min-width: 40px; text-align: center; font-weight: 600; }
.pagination .page-link:hover { background: var(--tile); }
.pagination .active > .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Toasts / back to top ---------- */
.toast-wrap { position: fixed; top: 78px; right: 1rem; z-index: 1090; max-width: calc(100vw - 2rem); }
.k-toast { display: flex; gap: .7rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1rem; min-width: 280px; max-width: 420px;
    box-shadow: var(--shadow); border-left: 4px solid var(--blue); animation: toast-in .35s var(--ease); }
.k-toast.success { border-left-color: #16a34a; } .k-toast.success .lead-ico { color: #16a34a; }
.k-toast.danger { border-left-color: var(--crimson); } .k-toast.danger .lead-ico { color: var(--crimson); }
.k-toast.warning { border-left-color: #d97706; } .k-toast.warning .lead-ico { color: #d97706; }
.k-toast.info .lead-ico { color: var(--blue); }
.k-toast.hide { animation: toast-out .3s var(--ease) forwards; }
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 1010; width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--navy); color: #fff;
    opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
body.has-mobile-apply .to-top { bottom: 94px; }

/* ---------- Motion ---------- */
@keyframes tile-turn { from { transform: rotateY(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .section { padding: 3.25rem 0; }
    .tile-wall { position: relative; width: 100%; height: 64px; grid-template-columns: repeat(12, 64px); grid-auto-rows: 64px; overflow: hidden; }
    .tile-wall::before { display: none; }
    .tile-wall span:nth-child(n+13) { display: none; }
    .hero-home .copy { padding: 2.5rem 0 2.75rem; }
    .employer-band .tile-edge { width: 100%; height: 40px; top: auto; opacity: .6; background-size: 40px 40px; }
    .employer-band .tile-edge::before { display: none; }
    .fact { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 767.98px) {
    .search-box .divider { border-left: 0; border-top: 1px solid var(--line); }
    .search-box .btn { width: 100%; }
    .job-card { padding: 1rem; }
    .job-card.featured { padding-left: calc(1rem - 3px); }
    .company-logo { width: 44px; height: 44px; }
    .toast-wrap { left: 1rem; right: 1rem; top: 70px; }
    .k-toast { min-width: 0; max-width: none; }
    .brand-logo { height: 36px; }
    .page-head::after, .job-head::after { width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
