/* ===========================================================
   Maxana Work, Lda — folha de estilos do website e do Portal do Candidato
   Marca: azul-marinho #17376E · laranja #EF6524 · Montserrat
   (os tipos de letra vêm da biblioteca MaxanaWork.UI, servidos pelo próprio website)
   =========================================================== */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/_content/MaxanaWork.UI/fonts/montserrat-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/_content/MaxanaWork.UI/fonts/montserrat-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/_content/MaxanaWork.UI/fonts/montserrat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/_content/MaxanaWork.UI/fonts/montserrat-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/_content/MaxanaWork.UI/fonts/montserrat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/_content/MaxanaWork.UI/fonts/montserrat-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/_content/MaxanaWork.UI/fonts/montserrat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/_content/MaxanaWork.UI/fonts/montserrat-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("/_content/MaxanaWork.UI/fonts/montserrat-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("/_content/MaxanaWork.UI/fonts/montserrat-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
    --navy: #17376E;
    --navy-900: #0E2450;
    --orange: #EF6524;
    --orange-600: #D9541A;
    --orange-700: #B9470F;
    --orange-50: #FDEBE1;
    --orange-200: #F7D7C4;
    --orange-light: #FF9C66;
    --ink: #1B2333;
    --muted: #5A6577;
    --muted-2: #7C8699;
    --line: #E4E8EF;
    --line-2: #EEF1F6;
    --bg: #F5F7FA;
    --green: #1E874B;
    --green-700: #166B3C;
    --green-50: #E3F4E9;
    --green-100: #CFE8D9;
    --red: #C0392B;
    --red-700: #A5342A;
    --red-50: #FBECEA;
    --amber-50: #FFF6E5;
    --amber-700: #8A5A00;

    --radius-card: 18px;
    --radius-panel: 24px;
    --radius-field: 12px;
    --radius-pill: 999px;

    --shadow-xs: 0 2px 10px rgba(16, 32, 66, .05);
    --shadow-sm: 0 2px 12px rgba(16, 32, 66, .06);
    --shadow-md: 0 10px 30px rgba(16, 32, 66, .1);
    --shadow-lg: 0 18px 44px rgba(16, 32, 66, .14);
    --shadow-hover: 0 16px 34px rgba(16, 32, 66, .13);

    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* o atributo «hidden» ganha sempre (os botões escondidos até o site.js os mostrar têm display próprio) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-wrap: pretty;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange-600); }
p a, .micro a, .body--sm a, .alerta a { text-decoration: underline; text-underline-offset: 2px; }

input, select, textarea, button { font-family: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ligação «Saltar para o conteúdo» (só aparece com o teclado) */
.saltar {
    position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
    background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
}
.saltar:focus { top: 12px; color: #fff; }

/* --------------------------------------- layout --------------- */

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container--texto { max-width: 900px; }
.container--medio { max-width: 760px; }
.container--estreito { max-width: 560px; }

.section { padding: clamp(56px, 6.5vw, 92px) 0; }
.section--tight { padding: clamp(36px, 4.5vw, 64px) 0; }
.section--muted { background: var(--bg); }
.section--navy { background: var(--navy); }
.section--flush-top { padding-top: 0; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.grid--tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.grid--fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.grid--filtros { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.grid--valores { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-bottom: 26px; }
.grid--diferenciais { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid--contactos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(16px, 2vw, 22px); }
.grid--documentos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.grid--checks { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.grid--checks-peq { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.grid--totais { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.grid--checklist { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }

.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row--between { justify-content: space-between; align-items: center; gap: 20px; }
.row--end { align-items: flex-end; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack--lg { gap: clamp(16px, 2vw, 22px); }

/* --------------------------------------- tipografia ----------- */

.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-600); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow--light { color: var(--orange-light); }

.h1 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.h1--navy { color: var(--navy); }
.h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.h2--light { color: #fff; }
.h2--sm { font-size: clamp(25px, 2.9vw, 36px); line-height: 1.14; }
.h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--navy); }
.h4 { margin: 0 0 9px; font-size: 16.5px; font-weight: 700; color: var(--navy); }

.lead { margin: 0; font-size: clamp(14.5px, 1.3vw, 16.5px); line-height: 1.7; font-weight: 500; color: var(--muted); max-width: 64ch; }
.lead--light { color: rgba(255, 255, 255, .88); }
.centrado { margin-left: auto; margin-right: auto; }
.body { margin: 0; font-size: 15px; line-height: 1.75; font-weight: 500; color: var(--muted); }
.body--sm { margin: 0; font-size: 14px; line-height: 1.7; font-weight: 500; color: var(--muted); }
.small { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.micro { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--muted-2); line-height: 1.55; }
.label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 3px; }
.section-head { max-width: 660px; margin-bottom: clamp(28px, 3vw, 44px); }
.section-head--linha { margin-bottom: clamp(28px, 3vw, 42px); }

/* texto das descrições e das notícias (HTML do editor da Administração) */
.texto-rico { font-size: 15px; line-height: 1.8; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.texto-rico > :first-child { margin-top: 0; }
.texto-rico > :last-child { margin-bottom: 0; }
.texto-rico p { margin: 0 0 14px; }
.texto-rico h2, .texto-rico h3 { margin: 26px 0 10px; font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--navy); }
.texto-rico h4 { margin: 20px 0 8px; font-size: 16px; font-weight: 700; color: var(--navy); }
.texto-rico ul, .texto-rico ol { margin: 0 0 14px; padding-left: 22px; }
.texto-rico li { margin: 4px 0; }
.texto-rico li::marker { color: var(--orange); }
.texto-rico blockquote { margin: 0 0 14px; padding: 4px 0 4px 16px; border-left: 3px solid var(--orange); color: var(--muted); }
.texto-rico a { color: var(--orange-700); text-decoration: underline; text-underline-offset: 2px; }
.texto-rico strong { font-weight: 700; }
.texto-rico--corpo { color: var(--muted); }

/* --------------------------------------- ícones --------------- */

.ico { flex: none; }
.ico-13 { width: 13px; height: 13px; }
.ico-14 { width: 14px; height: 14px; }
.ico-15 { width: 15px; height: 15px; }
.ico-16 { width: 16px; height: 16px; }
.ico-17 { width: 17px; height: 17px; }
.ico-18 { width: 18px; height: 18px; }
.ico-20 { width: 20px; height: 20px; }
.ico-22 { width: 22px; height: 22px; }
.ico-24 { width: 24px; height: 24px; }
.ico-26 { width: 26px; height: 26px; }
.ico-40 { width: 40px; height: 40px; }

.medallion {
    width: 52px; height: 52px; border-radius: var(--radius-pill);
    background: var(--orange-50); display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.medallion--sm { width: 48px; height: 48px; margin-bottom: 16px; }

/* --------------------------------------- botões --------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 26px; border: none; border-radius: var(--radius-pill);
    font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn--md { min-height: 48px; padding: 0 22px; font-size: 14px; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 13.5px; }
.btn--xs { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }

.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-600); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-900); color: #fff; }
.btn--ghost-navy { background: #fff; border: 1.5px solid var(--navy); color: var(--navy); }
.btn--ghost-navy:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { background: transparent; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--quiet { background: #fff; border: 1.5px solid var(--line); color: var(--muted); }
.btn--quiet:hover { border-color: var(--orange); color: var(--orange-600); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--orange); color: #fff; }
.btn--outline-orange { background: #fff; border: 1.5px solid var(--orange); color: var(--orange-700); }
.btn--outline-orange:hover { background: var(--orange); color: #fff; }
.btn--perigo:hover { border-color: var(--red); color: var(--red); }
.btn:active { transform: scale(.98); }
/* com JavaScript, os filtros enviam-se sozinhos e o botão «Filtrar» sai */
.js [data-sem-js] { display: none; }

.link-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--orange-700); }
.link-cta:hover { color: var(--orange-600); }
.link-cta--navy { color: var(--navy); }
.link-cta--light { color: var(--orange-light); }
.link-cta--verde { color: var(--green-700); }

.ligacao { background: none; border: 0; padding: 0; font: 600 13px var(--font, inherit); color: var(--orange-700); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ligacao:hover { color: var(--orange-600); }

/* --------------------------------------- cartões -------------- */

.card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-xs); padding: 26px; }
.card--pad { padding: clamp(22px, 2.8vw, 32px); }
.card--panel { border-radius: var(--radius-panel); box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 40px); }
.card--bordered { border: 1px solid var(--line); box-shadow: none; }
.card--hover { transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card--step { border-top: 4px solid var(--orange); }
.card--soft { background: var(--bg); box-shadow: none; }
.card--tip { background: #FFF8F4; border: 1px solid var(--orange-200); box-shadow: none; }
.card--resumo { border-radius: 20px; box-shadow: 0 8px 26px rgba(16, 32, 66, .1); }

.panel-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); border-radius: 28px; overflow: hidden; }

.badge {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
    border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700;
}
.badge--sector { background: var(--orange-50); color: #A8420E; }
.badge--activa { background: var(--green-50); color: var(--green-700); }
.badge--expirada { background: var(--line-2); color: #5F6A7D; }
.badge--light { background: rgba(255, 255, 255, .14); color: #fff; }
.badge--neutro { background: var(--bg); color: var(--muted); }
a.badge--light:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* --------------------------------------- avisos --------------- */

.alerta {
    display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; margin-bottom: 16px;
    font-size: 14px; font-weight: 500; line-height: 1.6; border: 1px solid transparent;
}
.alerta > svg { margin-top: 2px; }
.alerta__texto { min-width: 0; }
.alerta--ok { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.alerta--erro { background: var(--red-50); color: var(--red-700); border-color: #F3D3CE; }
.alerta--aviso { background: var(--amber-50); color: var(--amber-700); border-color: #F5DFAE; }
.alerta--info { background: #EEF3FB; color: var(--navy); border-color: #D9E3F4; }
.faixa-aviso { padding-top: 16px; }

.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 18px; }
.notice--ok { background: var(--green-50); }
.notice--grey { background: var(--line-2); }
.notice__title { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: var(--green-700); }
.notice__title--neutro { color: var(--muted); }

/* --------------------------------------- cabeçalho ------------ */

.topbar { background: var(--navy); color: #fff; }
.topbar__inner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
    padding: 9px 20px; font-size: 12.5px; font-weight: 500; line-height: 1.5;
    max-width: 1240px; margin: 0 auto;
}
.topbar__item { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .92); }
.topbar a { color: #fff; }
.topbar a:hover { color: #FFD2BB; }
.topbar__sep { color: rgba(255, 255, 255, .45); }
.topbar__hours { margin-left: auto; color: rgba(255, 255, 255, .78); }

.headerbar { background: #fff; }
.headerbar__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 14px 20px; max-width: 1240px; margin: 0 auto;
}
.headerbar__logo img { height: clamp(38px, 4.4vw, 56px); width: auto; }
.headerbar__accoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* menu da conta do candidato (sem JavaScript: <details>) */
.conta-menu { position: relative; }
.conta-menu summary {
    display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 14px 4px 4px; border: 1.5px solid var(--line);
    border-radius: var(--radius-pill); cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 700; color: var(--navy);
}
.conta-menu summary::-webkit-details-marker { display: none; }
.conta-menu[open] summary { border-color: var(--navy); }
.conta-menu__avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center;
    font-size: 12.5px; font-weight: 800;
}
.conta-menu__painel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 240px; background: #fff; border-radius: 16px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column;
}
.conta-menu__painel a, .conta-menu__painel button {
    display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 0; background: none;
    font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; text-align: left; width: 100%;
}
.conta-menu__painel a:hover, .conta-menu__painel button:hover { background: var(--bg); color: var(--orange-600); }
.conta-menu__painel form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line-2); }
.conta-menu__codigo { margin: 4px 12px 8px; font-size: 13px; font-weight: 700; color: var(--navy); display: flex; flex-direction: column; gap: 2px; }
.conta-menu__codigo span { font-size: 12px; font-weight: 600; color: var(--muted-2); }

.mainnav { background: var(--orange); position: sticky; top: 0; z-index: 60; box-shadow: 0 4px 14px rgba(16, 32, 66, .14); }
.mainnav__alternar { position: absolute; opacity: 0; pointer-events: none; }
.mainnav__list { display: flex; align-items: stretch; gap: 2px; }
.mainnav__link {
    display: flex; align-items: center; padding: 0 16px; height: 50px;
    color: #fff; font-size: 13.5px; font-weight: 700;
    transition: background 200ms var(--ease);
}
.mainnav__link:hover { background: var(--orange-600); color: #fff; }
.mainnav__link.active { background: var(--navy); box-shadow: inset 0 -3px 0 #fff; color: #fff; }

.mainnav__mobile { display: none; align-items: center; justify-content: space-between; height: 52px; }
.mainnav__mobile-title { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.burger {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
    border: 1.5px solid rgba(255, 255, 255, .7); background: transparent; color: #fff;
    border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; cursor: pointer;
}
.burger__fechar { display: none; }
.mainnav__alternar:focus-visible ~ .mainnav__mobile .burger { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 1039px) {
    .mainnav__mobile { display: flex; }
    .mainnav__list { display: none; }
    .mainnav__alternar:checked ~ .mainnav__list {
        display: flex; flex-direction: column; gap: 0; margin: 0 -20px; padding: 8px 20px 16px; background: #fff;
        box-shadow: 0 14px 30px rgba(16, 32, 66, .18);
    }
    .mainnav__alternar:checked ~ .mainnav__list .mainnav__link {
        height: auto; min-height: 48px; padding: 0; font-size: 15px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line);
    }
    .mainnav__alternar:checked ~ .mainnav__list .mainnav__link:last-child { border-bottom: none; }
    .mainnav__alternar:checked ~ .mainnav__list .mainnav__link:hover { background: none; color: var(--orange-600); }
    .mainnav__alternar:checked ~ .mainnav__list .mainnav__link.active { background: none; box-shadow: none; color: var(--orange-700); }
    .mainnav__alternar:checked ~ .mainnav__mobile .burger__abrir { display: none; }
    .mainnav__alternar:checked ~ .mainnav__mobile .burger__fechar { display: inline; }
}

.so-tel { display: none; }

@media (max-width: 760px) {
    .headerbar__instalar { display: none; }
    .topbar__item:first-child, .topbar__hours { display: none; }
    .topbar__inner { gap: 6px 16px; font-size: 12px; }
    .headerbar__inner { padding: 12px 16px; }
    .headerbar__alertas { display: none; }
    .conta-menu__nome { display: none; }
    .conta-menu summary { padding-right: 10px; }
}

@media (max-width: 520px) {
    .so-pc { display: none; }
    .so-tel { display: inline; }
}

/* --------------------------------------- carrossel ------------ */
/* sem JavaScript, desliza com o dedo (scroll-snap) e os pontos são ligações; o site.js passa sozinho de 7 em 7 segundos */

.hero { position: relative; overflow: hidden; background: var(--navy-900); }
.hero__viewport {
    position: relative; display: flex; height: clamp(440px, 46vw, 600px); overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.hero__viewport::-webkit-scrollbar { display: none; }
.hero__slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img--left { object-position: left center; }
.hero__img--right { object-position: right center; }
.hero__scrim { position: absolute; inset: 0; }
.hero__scrim--right { background: linear-gradient(270deg, rgba(14, 36, 80, .94) 0%, rgba(14, 36, 80, .82) 34%, rgba(14, 36, 80, .1) 72%, rgba(14, 36, 80, 0) 100%); }
.hero__scrim--left { background: linear-gradient(90deg, rgba(14, 36, 80, .94) 0%, rgba(14, 36, 80, .8) 34%, rgba(14, 36, 80, .1) 72%, rgba(14, 36, 80, 0) 100%); }
.hero__inner {
    position: relative; height: 100%; max-width: 1240px; margin: 0 auto;
    padding: clamp(28px, 4vw, 56px) 20px clamp(92px, 8vw, 108px); display: flex; align-items: center;
}
.hero__inner--right { justify-content: flex-end; }
.hero__content { max-width: min(560px, 100%); }
.hero__content .h1 { font-size: clamp(28px, 4vw, 50px); line-height: 1.08; margin-bottom: 16px; }
.hero__content p { margin: 0 0 26px; font-size: clamp(14.5px, 1.3vw, 17px); line-height: 1.65; font-weight: 500; color: rgba(255, 255, 255, .92); max-width: 46ch; }

.hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, .45); background: rgba(14, 36, 80, .45);
    backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 3;
}
.hero__arrow:hover { background: var(--orange); }
.hero__arrow--prev { left: 14px; }
.hero__arrow--next { right: 14px; }
/* a caixa de pesquisa sobe 38px sobre o carrossel: os pontos ficam acima dela */
.hero__dots { position: absolute; left: 0; right: 0; bottom: 54px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero__dot { width: 10px; height: 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .55); transition: width 250ms var(--ease); }
.hero__dot.active { width: 30px; background: var(--orange); }

@media (max-width: 760px) {
    .hero__arrow { display: none; }
    /* nos telemóveis o texto fica por cima da fotografia, com o véu inteiro */
    .hero__scrim--right, .hero__scrim--left { background: linear-gradient(180deg, rgba(14, 36, 80, .55) 0%, rgba(14, 36, 80, .9) 60%, rgba(14, 36, 80, .96) 100%); }
    .hero__inner, .hero__inner--right { align-items: flex-end; justify-content: flex-start; }
    /* o texto mais comprido não fica cortado: os diapositivos crescem todos até ao mais alto */
    .hero__viewport { height: auto; min-height: 480px; }
    .hero__slide { height: auto; display: flex; }
    .hero__inner { height: auto; flex: 1; }
}

/* --------------------------------------- topo das páginas ----- */

.page-hero { position: relative; background: var(--navy); overflow: hidden; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .24; }
.page-hero__inner { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) 20px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.breadcrumb a { color: rgba(255, 255, 255, .72); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #fff; }

/* --------------------------------------- formulários ---------- */

.searchbar {
    margin-top: -38px; position: relative; z-index: 4; background: #fff;
    border-radius: 20px; box-shadow: 0 18px 44px rgba(16, 32, 66, .14);
    padding: clamp(18px, 2vw, 26px);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 12px; align-items: end;
}
.searchbar__botao { border-radius: 10px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field__label--plain { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.field__obrigatorio { color: var(--red); margin-left: 3px; }
.field__opcional { font-weight: 500; color: var(--muted-2); margin-left: 4px; text-transform: none; letter-spacing: 0; }
.field__ajuda { font-size: 12.5px; font-weight: 500; color: var(--muted-2); line-height: 1.5; }
.field__erro { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--red-700); }
.field--erro .input, .field--erro .select, .field--erro .textarea { border-color: var(--red); background: #FFFCFB; }

.input, .select, .textarea {
    height: 48px; padding: 0 15px; border: 1.5px solid var(--line); border-radius: 10px; width: 100%;
    font-size: 15px; font-weight: 500; color: var(--ink); background: #fff; outline: none; min-width: 0;
    transition: border-color 200ms var(--ease);
}
.input--pill, .select--pill { height: 48px; border-radius: var(--radius-pill); }
.input--field, .select--field, .textarea { border-radius: var(--radius-field); }
.input--codigo { max-width: 180px; font-size: 22px; letter-spacing: .3em; font-weight: 700; text-align: center; }
.input--meio { max-width: 340px; }
.textarea { height: auto; padding: 14px 15px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 101, 36, .15); }
.checkbox { width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.6; font-weight: 500; color: var(--muted); }
.check-line input { margin-top: 2px; }
.check-line--erro { color: var(--red-700); }
.check-tile {
    display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid var(--line); background: #fff;
    border-radius: var(--radius-field); font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer;
}
.check-tile:hover { border-color: var(--orange-200); }
.check-tile:has(input:checked) { border-color: var(--orange); background: #FFF8F4; }
.check-tile input[type="radio"] { width: 18px; height: 18px; accent-color: var(--orange); }
.check-tile--peq { padding: 10px 12px; font-size: 13px; }
.check-tile--off { opacity: .55; cursor: not-allowed; }

.formulario { gap: 16px; }
.formulario--estreito { max-width: 460px; }
.formulario__linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.escolha { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bloco-form { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bloco-form__titulo { padding: 0; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--navy); }

/* campo escondido para os robôs (as pessoas não o vêem) */
.isco { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------- vagas ---------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.stat__value { margin: 0 0 6px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat__label { margin: 0; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .76); }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }

.job-card { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; box-shadow: var(--shadow-xs); color: inherit; }
.job-card:hover { color: inherit; }
.job-card__titulo { margin: 0 0 6px; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.job-card__empresa { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.job-card__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.job-card__meta--col { grid-template-columns: 1fr; gap: 9px; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }

.filtros { padding: clamp(18px, 2vw, 26px); margin-bottom: clamp(20px, 2.5vw, 32px); }
.filtros__rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.filtros__resumo { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(18px, 2vw, 26px); }
.tab {
    display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 22px;
    border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: #fff;
    color: var(--muted); font-size: 13.5px; font-weight: 700;
}
.tab:hover { border-color: var(--navy); color: var(--navy); }
.tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.empty-state { background: #fff; border: 1px dashed #C7CEDA; border-radius: 20px; padding: clamp(32px, 4vw, 56px); text-align: center; }
.empty-state img { margin: 0 auto 16px; }
.empty-state .body--sm { margin: 0 auto 22px; max-width: 52ch; }
.empty-state--simples { padding: clamp(24px, 3vw, 36px); }

.detail { display: flex; flex-wrap: wrap; gap: clamp(20px, 2.6vw, 32px); align-items: flex-start; }
.detail > .flex-1 { flex: 1 1 360px; min-width: 0; }
.detail__main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: clamp(16px, 2vw, 22px); }
.detail__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: clamp(16px, 2vw, 22px); position: sticky; top: 72px; }
.detail__block { background: #fff; border-radius: 20px; padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.detail__block h2 { margin: 0 0 18px; font-size: 20px; font-weight: 700; color: var(--navy); }
.bullet { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; line-height: 1.7; font-weight: 500; color: var(--ink); }
.bullet .ico { margin-top: 4px; }
.bullet--sm { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.aside-item { display: flex; gap: 11px; }
.aside-item .ico { margin-top: 2px; }
.aside-item p:last-child { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.aside-divider { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.caixa-navy { background: var(--navy); border-radius: 20px; padding: 26px; }
.caixa-navy .h3 { font-size: 15px; color: #fff; margin-bottom: 14px; }
.similar { display: block; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); transition: background 200ms var(--ease); }
.similar:hover { background: rgba(255, 255, 255, .16); }
.similar p:first-child { margin: 0 0 5px; font-size: 14.5px; font-weight: 700; color: #fff; line-height: 1.35; }
.similar p:last-child { margin: 0; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .74); }

.vaga-cabeca { padding-bottom: clamp(36px, 4vw, 56px); }
.vaga-cabeca__titulo { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 12px; }
.vaga-cabeca__sub { margin: 0; font-size: clamp(14.5px, 1.3vw, 17px); font-weight: 600; color: rgba(255, 255, 255, .88); }
.vaga-corpo { padding-top: clamp(32px, 4vw, 56px); }
.vaga-resumo { font-size: 15.5px; line-height: 1.8; }
.documento-pedido { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; color: var(--navy); }
.documento-pedido small { display: block; font-size: 12px; font-weight: 600; color: var(--muted-2); }
.documento-pedido__obrigatorio { color: var(--red-700) !important; }

.partilhar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.partilhar__rotulo { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.partilhar__botao {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill);
    border: 1.5px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 700; color: var(--navy);
}
.partilhar__botao:hover { border-color: var(--orange); color: var(--orange-700); }

@media (max-width: 900px) {
    .detail__aside { position: static; }
}

/* --------------------------------------- portal --------------- */

.portal { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 24px); align-items: flex-start; }
.portal__nav { flex: 1 1 230px; min-width: 0; background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow-sm); position: sticky; top: 66px; }
.portal__main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: clamp(16px, 2vw, 22px); }
.portal__btn {
    width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px;
    margin-bottom: 4px; border: none; border-radius: var(--radius-field); background: transparent;
    color: var(--navy); font-size: 14px; font-weight: 700; cursor: pointer; text-align: left;
}
.portal__btn:hover { background: var(--bg); color: var(--navy); }
.portal__btn.active, .portal__btn.active:hover { background: var(--navy); color: #fff; }
.portal__sair { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line-2); }
.portal__sair .portal__btn { margin-bottom: 0; color: var(--muted); }

@media (max-width: 860px) {
    .portal__nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: thin; }
    .portal__btn { width: auto; flex: none; margin: 0; min-height: 42px; font-size: 13px; white-space: nowrap; }
    .portal__sair { margin: 0; padding: 0; border: 0; }
}

.portal-titulo { font-size: 20px; }
.portal-head { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.portal-head__quem { display: flex; gap: 16px; align-items: center; min-width: 0; }
.portal-head__nome { margin: 0 0 4px; font-size: 19px; font-weight: 700; color: var(--navy); }
.portal-head__perfil { flex: 1 1 280px; min-width: 0; }
.portal-head__pct { font-size: 20px; font-weight: 800; }
.avatar {
    width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--navy);
    display: flex; align-items: center; justify-content: center; flex: none;
    font-size: 19px; font-weight: 800; color: #fff;
}
.progress { height: 10px; border-radius: var(--radius-pill); background: var(--line-2); overflow: hidden; }
.progress__bar { height: 100%; border-radius: var(--radius-pill); transition: width 400ms var(--ease); }
.progress__bar--grad { background: linear-gradient(90deg, var(--orange), var(--green)); }

.total-portal { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-xs); }
.total-portal:hover { box-shadow: var(--shadow-md); }
.total-portal__valor { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1; }
.total-portal__rotulo { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.check-tile-state { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 14px; border: 1px solid var(--line); }
.check-tile-state.is-ok { border-color: var(--green-100); background: #F4FBF6; }
.check-tile-state.is-missing { border-color: #F3D3CE; background: #FFF9F8; }
a.check-tile-state:hover { border-color: var(--orange); }
.check-tile-state__nome { display: block; margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--navy); }
.state-ok { display: block; font-size: 12px; font-weight: 600; color: var(--green-700); margin: 0; }
.state-missing { display: block; font-size: 12px; font-weight: 600; color: var(--red-700); margin: 0; }

.doc-row {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
    padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.doc-row.is-ok { border-color: var(--green-100); background: #F4FBF6; }
.doc-row.is-missing { border-color: #F3D3CE; background: #FFF9F8; }
.doc-row__info { display: flex; gap: 14px; align-items: flex-start; min-width: 0; flex: 1 1 260px; }
.doc-row__info > .ico { margin-top: 2px; }
.doc-row__name { margin: 0 0 3px; font-size: 15.5px; font-weight: 700; color: var(--navy); }
.doc-row__descricao { font-size: 13px; margin-bottom: 6px; }
.doc-row__ficheiro { font-size: 13px; overflow-wrap: anywhere; }
.doc-row__req { font-size: 11.5px; font-weight: 700; color: var(--orange-700); }
.doc-row__opt { font-size: 11.5px; font-weight: 700; color: var(--muted-2); }
.doc-ficheiro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.doc-ficheiro__texto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; font-size: 13.5px; font-weight: 600; }
.doc-ficheiro__texto a { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 2px; }
.doc-ficheiro__motivo { flex-basis: 100%; font-size: 12.5px; font-weight: 600; color: var(--red-700); }
.upload-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.upload {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px;
    border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; cursor: pointer; position: relative; overflow: hidden;
}
.upload--new { background: var(--orange); color: #fff; }
.upload--replace { background: var(--bg); color: var(--navy); border: 1.5px solid var(--line); }
.upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.upload--a-enviar { opacity: .6; pointer-events: none; cursor: progress; }

.app-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: inherit; }
a.app-row:hover { border-color: var(--orange-200); box-shadow: var(--shadow-sm); color: inherit; }
.app-row__titulo { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; color: var(--navy); }
.app-row__destaque { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--orange-700); }
.app-row__mensagem { margin: 8px 0 0; font-size: 13px; font-weight: 500; font-style: italic; color: var(--muted); }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status-chip--mini { padding: 3px 9px; font-size: 11px; }
.status-chip--ok { background: var(--green-50); color: var(--green-700); }
.status-chip--wip { background: var(--orange-50); color: #A8420E; }
.status-chip--neutral { background: var(--line-2); color: var(--muted); }
.status-chip--no { background: var(--red-50); color: var(--red-700); }

/* linha do tempo de uma candidatura */
.cronologia-site { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cronologia-site li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.cronologia-site li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.cronologia-site li:last-child::before { display: none; }
.cronologia-site__ponto { width: 16px; height: 16px; border-radius: 50%; flex: none; margin-top: 3px; padding: 0; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); }
.cronologia-site__ponto.status-chip--ok { background: var(--green); }
.cronologia-site__ponto.status-chip--wip { background: var(--orange); }
.cronologia-site__ponto.status-chip--no { background: var(--red); }
.cronologia-site__ponto.status-chip--neutral { background: var(--muted-2); }
.cronologia-site__titulo { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: var(--navy); }

/* candidatar-me: escolher os documentos */
.candidatar-vaga .small { line-height: 1.6; }
.doc-escolha { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 18px; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.doc-escolha--erro { border-color: var(--red); background: #FFFCFB; }
.doc-escolha__titulo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 0 4px; font-size: 15px; font-weight: 700; color: var(--navy); }
.doc-escolha__titulo .doc-row__req, .doc-escolha__titulo .doc-row__opt { white-space: nowrap; }
.doc-escolha__descricao { font-size: 13px; }
.doc-opcao { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; }
.doc-opcao:hover { background: var(--bg); }
.doc-opcao:has(input:checked) { border-color: var(--orange); background: #FFF8F4; }
.doc-opcao input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.doc-opcao--off { opacity: .6; cursor: not-allowed; }
.doc-opcao__texto { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; font-size: 14px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.doc-opcao__texto small { font-size: 12.5px; color: var(--muted-2); }
.doc-opcao__ver { font-size: 12.5px; font-weight: 700; color: var(--orange-700); text-decoration: underline; }
.doc-novo { display: flex; flex-direction: column; gap: 10px; margin: 0 0 4px 40px; }
.input-ficheiro { font-size: 13.5px; max-width: 100%; }
.input-ficheiro::file-selector-button {
    margin-right: 12px; min-height: 38px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--line);
    background: #fff; color: var(--navy); font: 700 13px 'Montserrat', system-ui, sans-serif; cursor: pointer;
}
/* com navegadores que conhecem :has(), o campo do ficheiro só aparece com «Carregar outro ficheiro» marcado */
@supports selector(:has(*)) {
    .doc-escolha:has(input[value="novo"]:not(:checked)) .doc-novo { display: none; }
}
.candidatar-enviar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.candidatar-enviar .micro { flex: 1 1 280px; }

.tabs-pill { display: flex; gap: 8px; padding: 6px; background: var(--bg); border-radius: var(--radius-pill); margin-bottom: 22px; }
.tabs-pill a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--radius-pill); color: var(--muted); font-size: 13.5px; font-weight: 700; }
.tabs-pill a.active { background: var(--navy); color: #fff; }

/* entrada no portal */
.acesso__grelha { align-items: stretch; gap: clamp(24px, 3vw, 40px); }
.acesso__painel {
    flex: 1 1 380px; min-width: 0; position: relative; overflow: hidden; border-radius: var(--radius-panel);
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); padding: clamp(28px, 3.4vw, 44px);
}
.acesso__titulo { font-size: clamp(26px, 3vw, 38px); }
.acesso__lead { color: rgba(255, 255, 255, .86); margin-bottom: 28px; }
.acesso__vantagem { margin: 0 0 3px; font-size: 14.5px; font-weight: 700; color: #fff; }
/* o .aside-item das páginas claras escurece o último parágrafo (.aside-item p:last-child): no painel azul ganha esta regra */
.acesso__painel .aside-item .acesso__vantagem-texto { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 500; color: rgba(255, 255, 255, .9); }
.acesso__cartao { flex: 1 1 380px; min-width: 0; }
.acesso__subtitulo { font-size: 21px; margin: 0 0 12px; }
/* nos telemóveis o formulário vem primeiro; as vantagens ficam por baixo */
@media (max-width: 860px) { .acesso__cartao { order: -1; } }

/* --------------------------------------- sectores / passos ---- */

.sector-tile {
    display: flex; align-items: center; gap: 13px; padding: 16px 18px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff;
    transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.sector-tile:hover { border-color: var(--orange); background: #FFF8F4; }
.sector-tile span { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.sector-tile__n { margin-left: auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--orange-50); color: #A8420E !important; font-size: 12px !important; font-weight: 800 !important; display: grid; place-items: center; }

.step-num { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--orange-700); }
.step-navy { background: rgba(255, 255, 255, .08); border-radius: var(--radius-card); padding: 24px; }
.step-navy h3 { margin: 0 0 9px; font-size: 16.5px; font-weight: 700; color: #fff; }
.step-navy p { margin: 0; font-size: 13.5px; line-height: 1.7; font-weight: 500; color: rgba(255, 255, 255, .78); }
.step-navy__num { margin: 0 0 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; color: var(--orange-light); }

.feature-line { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.feature-line .ico { margin-top: 2px; }
.feature-line--light { color: #fff; }
.feature-line--sm { font-size: 14px; }
.feature-line--falta { color: var(--muted-2); }

/* página inicial: o portal */
.promo-portal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.promo-portal__texto { padding: clamp(32px, 4vw, 56px); }
.promo-portal__lead { color: rgba(255, 255, 255, .84); margin-bottom: 24px; }
.promo-portal__visual { position: relative; min-height: 320px; padding: clamp(24px, 3vw, 40px); display: flex; align-items: center; justify-content: center; }
.perfil-exemplo { position: relative; width: min(400px, 100%); background: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 22px 50px rgba(6, 18, 44, .4); }
.perfil-exemplo__nome { margin: 0; font-size: 17px; font-weight: 700; color: var(--navy); }
.perfil-exemplo__pct { font-size: 24px; font-weight: 800; color: var(--green); }

/* --------------------------------------- notícias ------------- */

.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-xs); color: inherit; }
.news-card:hover { color: inherit; }
.news-card__img { width: 100%; height: 190px; object-fit: cover; }
.news-card__img--vazia { display: grid; place-items: center; background: var(--orange-50); }
.news-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__titulo { margin: 0; font-size: 17.5px; line-height: 1.35; font-weight: 700; color: var(--navy); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-700); }
.news-meta span { color: var(--muted-2); letter-spacing: .02em; }
.news-meta .sep { color: #C7CEDA; }
.news-featured { background: #fff; border-radius: var(--radius-panel); overflow: hidden; box-shadow: var(--shadow-md); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-bottom: clamp(24px, 3vw, 40px); color: inherit; }
.news-featured img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.news-featured__body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.news-featured__titulo { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.01em; }

.artigo__titulo { font-size: clamp(26px, 3.4vw, 42px); }
.artigo__meta { margin: 0; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.artigo__corpo { background: #fff; border-radius: var(--radius-panel); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 22px; }
.artigo__capa { width: 100%; border-radius: 16px; max-height: 480px; object-fit: cover; }
.artigo__resumo { margin: 0; font-size: 17px; line-height: 1.7; font-weight: 600; color: var(--navy); }
.artigo__etiquetas { gap: 8px; }

.chips { gap: 10px; margin-bottom: clamp(20px, 2.4vw, 30px); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__n { font-size: 11.5px; opacity: .8; }

.faixa-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(28px, 3.4vw, 44px); padding: clamp(26px, 3.2vw, 44px); }
.faixa-cta__titulo { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; margin-bottom: 10px; }
.faixa-cta__texto { color: rgba(255, 255, 255, .84); margin: 0; }
.painel-cta { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.painel-cta .faixa-cta__texto { margin-bottom: 26px; }
.flex-1 { flex: 1 1 280px; min-width: 0; }

/* --------------------------------------- FAQ ------------------ */

.faq-grupo { margin: 28px 0 14px; font-size: 20px; scroll-margin-top: 70px; }
.faq-grupo:first-of-type { margin-top: 0; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(16, 32, 66, .04); scroll-margin-top: 70px; }
.faq-item__btn { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 20px 24px; cursor: pointer; list-style: none; }
.faq-item__btn::-webkit-details-marker { display: none; }
.faq-item__q { font-size: 16px; line-height: 1.45; font-weight: 700; color: var(--navy); }
.faq-item__mais { transition: transform 200ms var(--ease); }
.faq-item[open] .faq-item__mais { transform: rotate(45deg); }
.faq-item__body { padding: 0 24px 22px; }
.app-ajuda { margin-top: clamp(28px, 3.4vw, 44px); scroll-margin-top: 70px; }
.app-ajuda__icone { border-radius: 14px; flex: none; }
.faq-contacto { margin-top: 20px; gap: 20px; }
.lista-passos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--muted); }
.lista-passos li::marker { color: var(--orange); font-weight: 700; }

/* --------------------------------------- empresas, formação, contacto ---- */

.servico__entrega { margin: 0; font-size: 13px; font-weight: 700; color: var(--orange-700); }
.curso { display: flex; flex-direction: column; gap: 14px; }
.curso__titulo { margin: 0; font-size: 18.5px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.curso__publico { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--orange-700); }
.curso__temas { gap: 9px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.turma { border: none; padding: 20px 24px; }
.turma__curso { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--navy); }

.contactos-cartoes { padding-bottom: clamp(24px, 3vw, 36px); }
.contacto-linha { display: block; font-size: 14.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.contacto-linha:hover { color: var(--orange-700); }
.contacto-linha--whatsapp { color: var(--green-700); }
.mapa { border-radius: var(--radius-panel); overflow: hidden; min-height: 260px; background: var(--line-2); }
.mapa iframe { display: block; width: 100%; height: 300px; border: 0; }
.como-chegar { position: relative; min-height: 240px; border-radius: var(--radius-panel); overflow: hidden; background: var(--navy); }
.como-chegar__veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 36, 80, .3) 0%, rgba(14, 36, 80, .9) 100%); }
.como-chegar__texto { position: relative; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 26px; }
.como-chegar__morada { margin: 0 0 16px; font-size: 15.5px; line-height: 1.6; font-weight: 600; color: #fff; }
.dados-empresa { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 12px 18px; margin: 0; font-size: 14.5px; }
.dados-empresa dt { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); padding-top: 3px; }
.dados-empresa dd { margin: 0; font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .dados-empresa { grid-template-columns: 1fr; gap: 2px; } .dados-empresa dd { margin-bottom: 10px; } }

.alertas-lado { flex: 1 1 300px; }

.img-frame { border-radius: var(--radius-panel); overflow: hidden; box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-soft { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.relative { position: relative; }

/* --------------------------------------- paginação ------------ */

.paginas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: clamp(24px, 3vw, 36px); }
.paginas__numero, .paginas__seta {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; min-height: 42px; padding: 0 12px;
    border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 700;
}
.paginas__numero:hover, .paginas__seta:hover { border-color: var(--navy); }
.paginas__numero.activo { background: var(--navy); border-color: var(--navy); color: #fff; }
.paginas__reticencias { color: var(--muted-2); padding: 0 4px; }

/* --------------------------------------- alertas / rodapé ----- */

.newsletter { background: var(--orange); padding: clamp(40px, 5vw, 60px) 0; }
.newsletter__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(24px, 3vw, 48px); align-items: center; }
.newsletter .eyebrow { color: rgba(255, 255, 255, .9); }
.newsletter h2 { margin: 0 0 10px; font-size: clamp(23px, 2.6vw, 32px); line-height: 1.15; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.newsletter p { margin: 0; font-size: 14.5px; line-height: 1.6; font-weight: 500; color: #fff; max-width: 46ch; }
.newsletter__card { background: #fff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 30px rgba(16, 32, 66, .18); }
.newsletter__card .micro { color: var(--muted); max-width: none; }
.newsletter__card .micro a { color: var(--navy); }
.newsletter__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.newsletter__card .btn { min-height: 50px; }

.footer { background: var(--navy); color: #fff; }
.footer__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: clamp(28px, 3.4vw, 48px);
    padding: clamp(48px, 6vw, 72px) 20px clamp(28px, 3vw, 40px);
    max-width: 1240px; margin: 0 auto;
}
.footer h2 { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-light); }
.footer p { color: rgba(255, 255, 255, .8); }
.footer__logo { height: 46px; width: auto; margin-bottom: 18px; }
.footer__nuit { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .65) !important; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .84); }
.footer__links a:hover { color: #fff; }
.footer__contact { display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.6; font-weight: 500; color: rgba(255, 255, 255, .84); }
.footer__contact div { display: flex; gap: 10px; }
.footer__contact .ico { margin-top: 3px; }
.footer__contact a { color: rgba(255, 255, 255, .9); }
.footer__contact a:hover { color: #fff; }
.footer__app { margin-top: 22px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__app p { margin: 0; font-size: 13px; line-height: 1.55; }
.footer__app strong { display: block; color: #fff; font-size: 14px; }
.footer__app-ajuda { font-size: 12.5px; font-weight: 700; color: var(--orange-light); }
.redes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.redes a { display: inline-flex; min-height: 34px; align-items: center; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .3); font-size: 12.5px; font-weight: 700; color: #fff; }
.redes a:hover { background: #fff; color: var(--navy); }
@media (max-width: 560px) {
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
    .footer__grid > :first-child, .footer__grid > :last-child { grid-column: 1 / -1; }
}
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .16); }
.footer__bottom-inner {
    max-width: 1240px; margin: 0 auto; padding: 20px; display: flex; flex-wrap: wrap;
    gap: 10px 24px; align-items: center; justify-content: space-between;
    font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .68);
}
.footer__bottom-inner a { color: rgba(255, 255, 255, .68); }
.footer__bottom-inner a:hover { color: #fff; }

/* convite para instalar a app de vagas (o site.js mostra-o: no Android com o botão «Instalar», no iPhone com a explicação) */
.dica-app {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; max-width: 560px; margin: 0 auto;
    display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 18px;
    background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
}
.dica-app__icone { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.dica-app__texto { margin: 0; flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.dica-app__texto strong { display: block; font-size: 14px; color: #fff; }
.dica-app__partilhar { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .16); font-weight: 700; white-space: nowrap; color: #fff; }
.dica-app .btn { flex: none; }
.dica-app__fechar { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; cursor: pointer; }
.dica-app__fechar:hover { background: rgba(255, 255, 255, .2); }

.pagina-erro { min-height: 50vh; display: flex; align-items: center; }
.pagina-erro > .container { width: 100%; }

/* --------------------------------------- utilitários ---------- */

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }

/* impressão (uma vaga ou uma candidatura): sem menus, sem rodapé, sem botões */
@media print {
    .topbar, .mainnav, .headerbar__accoes, .newsletter, .footer, .portal__nav, .partilhar, .btn, .dica-app, .hero__dots, .hero__arrow { display: none !important; }
    .section, .section--tight { padding: 16px 0; }
    .section--navy, .page-hero { background: #fff !important; }
    .section--navy .h1, .page-hero .h1, .vaga-cabeca__sub, .breadcrumb, .breadcrumb a, .breadcrumb span { color: var(--navy) !important; }
    .detail__aside { position: static; }
    a { text-decoration: none; }
}
