@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Black.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}
@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-BoldItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

:root {
    --blue: #06497d;
    --blue-dark: #004278;
    --yellow: #ffe985;
    --text: #133f6d;
    --muted: #667d94;
    --surface: #f4f7fa;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--text); background: #fff; font-family: "Lato", Arial, Helvetica, sans-serif; line-height: 1.35; display: flex; flex-direction: column; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; top: -60px; left: 1rem; z-index: 10; padding: .75rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }
.topbar { width: 100%; background: var(--blue-dark); color: #fff; }
.topbar__inner { width: min(calc(100% - 2.5rem), 940px); margin: 0 auto; padding: .55rem 0; display: flex; justify-content: flex-end; }
.topbar a { color: #fff; font-size: .95rem; font-weight: 700; text-decoration: none; }
.topbar a:hover, .topbar a:focus-visible { text-decoration: underline; }
.hero { width: 100vw; max-width: none; margin: 0; padding: 0; overflow: hidden; }
.hero a { display: block; }
.hero img { display: block; width: 100vw; max-width: none; height: auto; margin: 0; object-fit: cover; }
.hero--compact img { height: clamp(150px, 22vw, 300px); object-fit: cover; }
.content { width: min(calc(100% - 2.5rem), 940px); margin: 0 auto; padding: 3.4rem 0 4.8rem; }
.home h1 { margin: 0 0 1.2rem; font-size: clamp(1.15rem, 2.4vw, 1.55rem); }
.home p { max-width: 760px; font-size: 1.05rem; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.2rem; align-items: start; margin-top: 3.5rem; }
.portal { display: block; transition: transform .18s ease, box-shadow .18s ease; }
.portal:hover, .portal:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(6,73,125,.2); outline: 3px solid var(--blue); outline-offset: 4px; }
.portal img { width: 100%; }
.portal-grid small { display: block; margin-top: .65rem; color: var(--muted); }
.footer { margin-top: auto; background: var(--blue-dark); color: #fff; }
.footer__inner { width: min(calc(100% - 2.5rem), 940px); margin: 0 auto; padding: 2rem 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; }
.footer nav { display: flex; flex-direction: column; gap: .55rem; }
.footer a { text-decoration: none; }
.footer a:hover, .footer a:focus-visible { text-decoration: underline; }
.footer strong { display: block; margin-bottom: .45rem; }
.footer address { font-style: normal; line-height: 1.75; }
.worldwide { display: inline-block; margin-top: .25rem; padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.65); }
.socials { display: flex; gap: .55rem; margin-top: .35rem; }
.socials a { display: grid; place-items: center; width: 28px; height: 28px; background: #fff; color: #6c7d8d; font-weight: 900; text-decoration: none; }
.socials a:hover, .socials a:focus-visible { background: var(--yellow); color: var(--blue); text-decoration: none; }
.back-link { display: inline-block; margin-bottom: 1rem; text-decoration: none; font-weight: 700; }
.back-link:hover { text-decoration: underline; }
.jobs-page h1, .legal h1 { margin-bottom: .35rem; font-size: clamp(2rem, 5vw, 3rem); }
.search-panel { margin: 2.5rem 0 1.5rem; padding: 1.4rem; background: var(--surface); border-left: 5px solid var(--yellow); }
.search-panel label { display: block; margin-bottom: .5rem; font-weight: 700; }
.search-panel input { width: 100%; padding: .9rem 1rem; border: 1px solid #9eafc0; border-radius: 2px; color: var(--text); font: inherit; }
.search-panel input:focus { outline: 3px solid rgba(6,73,125,.25); border-color: var(--blue); }
.job-count { margin: .7rem 0 0; color: var(--muted); }
.job-list { display: grid; gap: 1rem; }
.job-card { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 1.5rem; border: 1px solid #d6e0e8; box-shadow: 0 3px 10px rgba(19,63,109,.06); }
.job-card h2 { margin: 0; font-size: 1.2rem; }
.job-card p { margin: .35rem 0 0; color: var(--muted); }
.job-link { flex: 0 0 auto; padding: .7rem 1rem; background: var(--yellow); color: var(--blue); font-weight: 700; text-decoration: none; }
.job-link:hover, .job-link:focus-visible { background: #ffdf52; }
.job-detail { max-width: 900px; }
.job-detail__header { margin: 1rem 0 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid #d6e0e8; }
.job-detail__header h1 { margin: .25rem 0 1.2rem; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; }
.eyebrow { margin: 0; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.job-detail__meta { display: flex; flex-wrap: wrap; gap: .55rem; }
.job-detail__meta span { padding: .4rem .65rem; background: var(--surface); }
.job-description { color: #253f59; font-size: 1.03rem; }
.job-description h2 { margin-top: 2rem; color: var(--text); }
.job-description li { margin-bottom: .5rem; }
.application-box { margin-top: 3rem; padding: 1.7rem; background: var(--surface); border-left: 6px solid var(--yellow); }
.application-box h2 { margin-top: 0; }
.apply-button { display: inline-block; margin-top: .4rem; padding: .85rem 1.2rem; background: var(--yellow); color: var(--blue); font-weight: 700; text-decoration: none; }
.apply-button:hover, .apply-button:focus-visible { background: #ffdf52; }
.status, .empty { padding: 1.25rem; background: #fff4d1; border-left: 5px solid #e8b300; }
.legal { max-width: 820px; }
.legal h2 { margin-top: 2rem; }
.legal > p > strong:first-child { color: var(--text); }
.legal p { line-height: 1.6; }
.notice { padding: 1rem 1.2rem; background: #fff4d1; border-left: 5px solid #e8b300; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 720px) {
    .portal-grid, .footer__inner { grid-template-columns: 1fr; }
    .portal-grid { gap: 2rem; margin-top: 2.5rem; }
    .content { padding: 2.5rem 0 3.5rem; }
    .job-card { align-items: flex-start; flex-direction: column; }
    .job-link { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
