/* ==========================================================================
   NIDHI Vagas — design system
   Mobile-first · grid de 8px · WCAG 2.2 AA · sem frameworks
   ========================================================================== */

/* Tipografia da marca — Inter (texto) e Inter Tight (títulos), auto-hospedadas, licença OFL */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --primary: #2563EB;
  --primary-600: #1D4ED8;
  --primary-700: #1E40AF;
  --primary-50: #EFF4FF;
  --primary-100: #DBE6FE;
  --navy: #0F172A;
  --text: #172033;
  --muted: #5B6474;
  --muted-2: #8A94A6;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F3F6FA;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --success: #15803D;
  --success-50: #ECFDF3;
  --warning: #B45309;
  --warning-50: #FFF7EB;
  --danger: #B91C1C;
  --danger-50: #FEF2F2;
  --focus: #2563EB;

  /* Acentos por área — usados apenas em ícones, tags e detalhes */
  --a-indigo: #4338CA; --a-indigo-bg: #EEF0FF;
  --a-teal: #0F766E; --a-teal-bg: #E8F6F4;
  --a-slate: #475569; --a-slate-bg: #F1F5F9;
  --a-emerald: #047857; --a-emerald-bg: #EAF7F1;
  --a-amber: #B45309; --a-amber-bg: #FEF5E7;
  --a-sky: #0369A1; --a-sky-bg: #EAF5FB;
  --a-orange: #C2410C; --a-orange-bg: #FFF1EA;
  --a-violet: #6D28D9; --a-violet-bg: #F3EEFE;
  --a-wine: #9F1239; --a-wine-bg: #FCEEF2;
  --a-navy: #1E3A8A; --a-navy-bg: #EDF1FB;
  --a-magenta: #A21CAF; --a-magenta-bg: #FAEDFB;
  --a-rose: #BE123C; --a-rose-bg: #FDEEF1;

  --r-xs: 6px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .03);
  --shadow-pop: 0 12px 32px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .06);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Tokens semânticos (fase 2) — apelidos dos valores acima, para uso em componentes novos */
  --color-primary: var(--primary);
  --color-navy: var(--navy);
  --color-surface: var(--surface);
  --color-background: var(--bg);
  --color-border: var(--border);
  --color-tint: #F4F7FE;
  --color-navy-soft: #1E293B;
  --color-on-navy: #E2E8F0;
  --color-on-navy-muted: #94A3B8;
  --color-on-navy-accent: #93B4FA;
  --radius-sm: var(--r-sm);
  --radius-md: var(--r);
  --radius-lg: 16px;
  --shadow-subtle: var(--shadow-sm);
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-5: 40px; --space-6: 48px; --space-8: 64px; --space-10: 80px;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --dur: 180ms;
  --measure: 68ch;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1280px;
  --header-h: 72px;
  --gutter: 16px;
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1280px) { :root { --gutter: 32px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
svg.i { display: inline-block; flex-shrink: 0; vertical-align: middle; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.005em; font-weight: 700; font-family: var(--font-display); }
h1 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.625rem); letter-spacing: -0.018em; line-height: 1.12; }
h2 { font-size: clamp(1.375rem, 1.15rem + .9vw, 1.75rem); letter-spacing: -0.012em; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
small { font-size: .8125rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
ul, ol { padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary-100); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; }
.container-text { max-width: 760px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .8125rem; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 32px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grow { flex: 1 1 auto; min-width: 0; }
@media (max-width: 899px) { .hide-mobile { display: none !important; } }
@media (min-width: 900px) { .hide-desktop { display: none !important; } }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ demo */
.demo-bar {
  background: var(--navy); color: #E2E8F0; font-size: .8125rem; text-align: center; padding: 6px 16px;
}
.demo-bar strong { color: #fff; letter-spacing: .04em; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--border); height: var(--header-h);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(8px); } }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo {
  display: inline-flex; align-items: baseline; gap: 6px; font-weight: 800; font-size: 1.375rem;
  letter-spacing: -0.02em; color: var(--navy); line-height: 1; white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo b { color: var(--primary); font-weight: 800; letter-spacing: .02em; }
.logo span { font-weight: 600; color: var(--navy); }
.main-nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent; color: var(--text); position: relative;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .dot {
  position: absolute; top: 9px; right: 9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px;
  background: var(--danger); color: #fff; font-size: .6875rem; font-weight: 700; line-height: 16px; text-align: center;
}
@media (min-width: 1024px) {
  .main-nav { display: flex; align-items: center; gap: 4px; height: 100%; }
  .nav-item { position: relative; height: 100%; display: flex; align-items: center; }
  .nav-link {
    display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: var(--r-sm);
    color: var(--text); font-weight: 500; font-size: .9375rem; background: none; border: 0;
  }
  .nav-link:hover { background: var(--surface-2); text-decoration: none; }
  .nav-link[aria-current="page"], .nav-link.active { color: var(--primary-600); }
  .nav-link .i { color: var(--muted); transition: transform .15s; }
  .nav-item.open .nav-link .i { transform: rotate(180deg); }
  .menu-toggle { display: none !important; }
}

/* mega menu */
.mega {
  position: absolute; top: calc(100% - 4px); left: -12px; width: 640px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
  padding: 24px; display: none; grid-template-columns: 1fr 1fr; gap: 8px 32px; z-index: 60;
}
.nav-item.open .mega { display: grid; }
.mega h6 {
  margin: 0 0 8px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.mega a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--r-sm);
  color: var(--text); font-size: .9375rem;
}
.mega a:hover { background: var(--surface-2); text-decoration: none; }
.mega a .i { color: var(--muted); }
.mega-cta {
  grid-column: 1 / -1; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.mega-cta p { margin: 0; color: var(--muted); font-size: .875rem; }

/* mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 90; display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); background: var(--surface); z-index: 100;
  display: none; flex-direction: column; overflow-y: auto; animation: drawerin .2s ease;
}
@keyframes drawerin { from { transform: translateX(100%); } to { transform: none; } }
body.drawer-open .drawer { display: flex; }
body.drawer-open .drawer-backdrop { display: block; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); min-height: var(--header-h); }
.drawer nav { padding: 8px 8px 24px; }
.drawer-group { padding: 12px 8px 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.drawer a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-sm); color: var(--text); font-weight: 500; min-height: 48px; }
.drawer a:hover { background: var(--surface-2); text-decoration: none; }
.drawer a .i { color: var(--muted); }
.drawer-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--border); display: grid; gap: 8px; }

/* user menu */
.user-menu { position: relative; }
.user-trigger { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 4px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); }
.user-trigger:hover { border-color: var(--border-strong); }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-pop); padding: 8px; display: none; z-index: 70;
}
.dropdown.open { display: block; }
.dropdown a, .dropdown button.link {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--text); font-size: .9375rem; background: none; border: 0; text-align: left;
}
.dropdown a:hover, .dropdown button.link:hover { background: var(--surface-2); text-decoration: none; }
.dropdown .head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dropdown .head strong { display: block; }

/* ------------------------------------------------------------------ avatar / logos */
.avatar {
  --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--primary-50); color: var(--primary-700);
  display: inline-grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .38); flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { --s: 32px; } .avatar-lg { --s: 64px; } .avatar-xl { --s: 96px; }
.co-logo {
  --s: 48px; width: var(--s); height: var(--s); border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .34); flex-shrink: 0; overflow: hidden; color: var(--navy);
  letter-spacing: -.02em;
}
.co-logo img { width: 100%; height: 100%; object-fit: contain; }
.co-logo-sm { --s: 36px; } .co-logo-lg { --s: 72px; border-radius: var(--r); }
.co-logo.locked { background: var(--surface-2); color: var(--muted); }

/* acentos */
[data-accent="indigo"] { --acc: var(--a-indigo); --acc-bg: var(--a-indigo-bg); }
[data-accent="teal"] { --acc: var(--a-teal); --acc-bg: var(--a-teal-bg); }
[data-accent="slate"] { --acc: var(--a-slate); --acc-bg: var(--a-slate-bg); }
[data-accent="emerald"] { --acc: var(--a-emerald); --acc-bg: var(--a-emerald-bg); }
[data-accent="amber"] { --acc: var(--a-amber); --acc-bg: var(--a-amber-bg); }
[data-accent="sky"] { --acc: var(--a-sky); --acc-bg: var(--a-sky-bg); }
[data-accent="orange"] { --acc: var(--a-orange); --acc-bg: var(--a-orange-bg); }
[data-accent="violet"] { --acc: var(--a-violet); --acc-bg: var(--a-violet-bg); }
[data-accent="wine"] { --acc: var(--a-wine); --acc-bg: var(--a-wine-bg); }
[data-accent="navy"] { --acc: var(--a-navy); --acc-bg: var(--a-navy-bg); }
[data-accent="magenta"] { --acc: var(--a-magenta); --acc-bg: var(--a-magenta-bg); }
[data-accent="rose"] { --acc: var(--a-rose); --acc-bg: var(--a-rose-bg); }
.co-logo[data-accent] { background: var(--acc-bg); color: var(--acc); border-color: transparent; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: .9375rem; line-height: 1;
  white-space: nowrap; text-decoration: none !important; transition: background .12s, border-color .12s, color .12s; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #1E293B; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--muted-2); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--primary-600); }
.btn-ghost:hover { background: var(--primary-50); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #F2C7C7; }
.btn-danger:hover { background: var(--danger-50); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn .i { margin: 0 -2px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary-600); font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.save-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); flex-shrink: 0;
}
.save-btn:hover { color: var(--primary-600); border-color: var(--border-strong); }
.save-btn[aria-pressed="true"] { color: var(--primary-600); background: var(--primary-50); border-color: var(--primary-100); }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.label { font-weight: 600; font-size: .875rem; color: var(--navy); }
.label .opt { font-weight: 400; color: var(--muted); }
.help { font-size: .8125rem; color: var(--muted); margin: 0; }
.error-text { font-size: .8125rem; color: var(--danger); margin: 0; display: flex; gap: 6px; align-items: center; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font-size: 1rem; transition: border-color .12s, box-shadow .12s;
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B6474' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.form-grid { display: grid; gap: 16px; }
.form-grid > .field + .field { margin-top: 0; }  /* a grade já espaça pelo gap; evita desalinhar colunas */
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .span-2 { grid-column: span 2; } }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; min-height: 28px; font-size: .9375rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.check-list { display: grid; gap: 8px; }
.check-count { margin-left: auto; color: var(--muted); font-size: .8125rem; }
.pill-check { position: relative; }
.pill-check input { position: absolute; opacity: 0; pointer-events: none; }
.pill-check span {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--border-strong);
  border-radius: 99px; font-size: .9375rem; cursor: pointer; background: var(--surface); user-select: none;
}
.pill-check input:checked + span { background: var(--primary-50); border-color: var(--primary); color: var(--primary-700); font-weight: 600; }
.pill-check input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 99px; background: var(--border-strong); position: relative; flex-shrink: 0; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .875rem; color: var(--navy); margin-bottom: 8px; padding: 0; }

/* tag input */
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; min-height: 46px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); }
.tag-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.tag-input input { border: 0; outline: none; flex: 1 1 140px; min-width: 120px; height: 32px; padding: 0 6px; background: transparent; }
.tag-input .tag button { background: none; border: 0; padding: 0 0 0 4px; color: inherit; display: inline-grid; place-items: center; }

/* ------------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.card-pad { padding: 20px; }
@media (min-width: 768px) { .card-pad { padding: 24px; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card-muted { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; border-color: var(--border-strong); }

/* ------------------------------------------------------------------ badges/tags/chips */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px;
  font-size: .75rem; font-weight: 600; line-height: 1; white-space: nowrap; border: 1px solid transparent;
}
.badge-neutral { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.badge-primary { background: var(--primary-50); color: var(--primary-700); }
.badge-success { background: var(--success-50); color: var(--success); }
.badge-warning { background: var(--warning-50); color: var(--warning); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-info { background: var(--primary-50); color: var(--primary-700); }
.badge-sponsored { background: #FFF8EB; color: #8A4B08; border-color: #F5DDB1; }
.badge-premium { background: var(--navy); color: #fff; }
.badge-demo { background: #F1F5F9; color: #334155; border: 1px dashed #94A3B8; letter-spacing: .06em; }
.badge-highlight { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary-100); }
.verified { color: var(--primary); display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 600; }
.verified .i { color: var(--primary); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-xs);
  background: var(--surface-2); color: var(--text); font-size: .8125rem; font-weight: 500; border: 1px solid var(--border);
}
.tag[data-accent] { background: var(--acc-bg); color: var(--acc); border-color: transparent; }
.tag-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc, var(--muted)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: .875rem; font-weight: 500;
  text-decoration: none !important; white-space: nowrap;
}
.chip:hover { border-color: var(--muted-2); background: var(--surface-2); }
.chip.active, .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .i { color: var(--muted); }
.chip.active .i { color: #cbd5e1; }
.chip-remove { padding-right: 8px; }
.scroll-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }

/* meta row */
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .875rem; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .i { color: var(--muted-2); }
.meta strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ sections */
.section { padding: 48px 0; }
.section-sm { padding: 32px 0; }
@media (min-width: 900px) { .section { padding: 64px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head .more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; font-size: .9375rem; }
.kicker { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-600); margin: 0 0 12px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1180px) { .grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------------ hero (home) */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 40px 0 32px; }
@media (min-width: 900px) { .hero { padding: 64px 0 48px; } }
.hero-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1100px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
.hero h1 { max-width: 16ch; margin-bottom: 12px; }
.hero .lead { font-size: 1.0625rem; color: var(--muted); max-width: 56ch; margin-bottom: 28px; }
@media (min-width: 900px) { .hero .lead { font-size: 1.125rem; } }
.search-bar {
  display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  padding: 8px; box-shadow: var(--shadow-sm);
}
.search-bar .input { border-color: transparent; background: var(--surface-2); }
.search-bar .input:focus { background: var(--surface); }
@media (min-width: 768px) {
  .search-bar { grid-template-columns: 1.3fr 1fr auto; align-items: center; }
  .search-bar .input { background: transparent; height: 52px; }
  .search-bar .input-icon + .input-icon { border-left: 1px solid var(--border); }
  .search-bar .btn { height: 52px; padding: 0 28px; }
}
.quick-chips { margin-top: 16px; }
.quick-chips .label-inline { font-size: .8125rem; color: var(--muted); margin-right: 4px; }
.hero-panel { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); padding: 20px; }
.hero-panel h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.stat-list { display: grid; gap: 14px; margin: 0; }
.stat-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--border); padding-bottom: 12px; }
.stat-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-list dt { color: var(--muted); font-size: .9375rem; }
.stat-list dd { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ job card */
.job-list { display: grid; gap: 12px; }
.job-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; transition: border-color .12s, box-shadow .12s;
}
@media (min-width: 768px) { .job-card { padding: 20px; gap: 4px 16px; } }
.job-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.job-card.is-sponsored { border-color: #F0E1C4; }
.job-card .co-logo { grid-row: span 2; }
.job-card-top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.job-card-title { font-size: 1.0625rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin: 0; }
.job-card-title a { color: inherit; }
.job-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.job-card-title a:hover { text-decoration: none; }
.job-card:hover .job-card-title a { color: var(--primary-600); }
.job-card-company { display: flex; align-items: center; gap: 6px; font-size: .9375rem; color: var(--text); margin-top: 2px; flex-wrap: wrap; }
.job-card-body { grid-column: 2; }
@media (max-width: 519px) { .job-card-body { grid-column: 1 / -1; } .job-card .co-logo { grid-row: auto; --s: 40px; } }
.job-card .meta { margin-top: 10px; }
.job-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.job-card-foot .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-card .actions { margin-left: auto; display: flex; gap: 8px; position: relative; z-index: 2; }
.job-card .corner { margin-left: auto; display: flex; gap: 6px; align-items: center; position: relative; z-index: 2; flex-shrink: 0; }
.job-card .salary { color: var(--text); font-weight: 600; }
.job-card .posted { font-size: .8125rem; color: var(--muted); }

/* compatibility */
.match { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--text); }
.match-bar { width: 56px; height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.match-bar i { display: block; height: 100%; border-radius: 99px; background: var(--muted-2); }
.match[data-level="high"] .match-bar i { background: var(--success); }
.match[data-level="good"] .match-bar i { background: var(--primary); }
.match[data-level="partial"] .match-bar i { background: #D97706; }
.factors { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.factors li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.factors .ok { color: var(--success); }
.factors .warn { color: var(--warning); }
.factors .sym { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; margin-top: 1px; font-weight: 700; font-size: .75rem; }
.factors .ok .sym { background: var(--success-50); }
.factors .warn .sym { background: var(--warning-50); }
.factors li span:last-child { color: var(--text); }

/* ------------------------------------------------------------------ search layout */
.page-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 24px 0 20px; }
.page-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 6px; }
.page-head .lead { color: var(--muted); max-width: 72ch; margin: 0; }
.search-inline { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 768px) { .search-inline { grid-template-columns: 1.4fr 1fr auto; } }
.results-layout { display: grid; gap: 24px; padding: 24px 0 64px; }
@media (min-width: 1024px) { .results-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; } }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-count { font-size: .9375rem; color: var(--muted); }
.results-count strong { color: var(--navy); font-size: 1.0625rem; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
.sort .select { height: 40px; width: auto; font-size: .875rem; }
.filters-panel { align-self: start; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--border); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group h3 { font-size: .875rem; margin-bottom: 10px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters-head h2 { font-size: 1rem; margin: 0; }
.mobile-filter-bar { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
@media (min-width: 1024px) {
  .mobile-filter-bar .btn-filters { display: none; }
  .filters-panel { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 4px; }
  .filters-panel .sheet-head, .filters-panel .sheet-foot { display: none; }
}
@media (max-width: 1023px) {
  .filters-panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; background: var(--surface); border-radius: 16px 16px 0 0;
    max-height: 86vh; display: flex; flex-direction: column; transform: translateY(105%); transition: transform .22s ease, visibility .22s; visibility: hidden;
    box-shadow: var(--shadow-pop);
  }
  .filters-panel.open { transform: none; visibility: visible; }
  .filters-panel .sheet-body { overflow-y: auto; padding: 0 20px; flex: 1; }
  .filters-panel .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--border); }
  .filters-panel .sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 99px; background: var(--border-strong); }
  .filters-panel .sheet-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
  .filters-panel .filters-head { display: none; }
}
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 105; display: none; }
.sheet-backdrop.open { display: block; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ------------------------------------------------------------------ pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 500; font-size: .9375rem;
}
.pagination a:hover { border-color: var(--border-strong); text-decoration: none; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .gap { border: 0; background: none; min-width: 20px; }

/* ------------------------------------------------------------------ empty / states */
.empty {
  text-align: center; padding: 48px 24px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface);
}
.empty .icon-wrap { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); display: inline-grid; place-items: center; color: var(--muted); margin-bottom: 16px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 48ch; margin: 0 auto 20px; }
.empty .row-wrap { justify-content: center; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, #eef2f7 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: var(--r-sm); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface); font-size: .9375rem;
}
.notice > .i { margin-top: 2px; }
.notice p { margin: 0; }
.notice strong { color: var(--navy); }
.notice-info { background: var(--primary-50); border-color: var(--primary-100); }
.notice-info > .i { color: var(--primary-600); }
.notice-warning { background: var(--warning-50); border-color: #F5D9B0; }
.notice-warning > .i { color: var(--warning); }
.notice-success { background: var(--success-50); border-color: #BFE5CD; }
.notice-success > .i { color: var(--success); }
.notice-danger { background: var(--danger-50); border-color: #F4C7C7; }
.notice-danger > .i { color: var(--danger); }
.notice-neutral { background: var(--surface-2); border-color: var(--border); }

/* flash messages */
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; left: 16px; z-index: 200; display: grid; gap: 8px; pointer-events: none; }
@media (min-width: 640px) { .flash-stack { left: auto; width: 420px; } }
.flash { pointer-events: auto; box-shadow: var(--shadow-pop); animation: flashin .2s ease; }
.flash .close { margin-left: auto; background: none; border: 0; color: var(--muted); padding: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; }
@keyframes flashin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ breadcrumbs */
.breadcrumbs { font-size: .8125rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary-600); }

/* ------------------------------------------------------------------ job detail */
.detail-layout { display: grid; gap: 24px; padding: 24px 0 96px; }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 32px 0 80px; } }
.detail-head { padding: 20px; }
@media (min-width: 768px) { .detail-head { padding: 28px; } }
.detail-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0 0 8px; }
.detail-head .company-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; }
.detail-head .company-line a { color: var(--text); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); font-size: .9375rem; }
.prose { font-size: 1rem; line-height: 1.7; color: var(--text); }
.prose h2 { font-size: 1.1875rem; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.0625rem; margin: 1.4em 0 .5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 16px; border-left: 3px solid var(--primary); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose > :first-child { margin-top: 0; }
.detail-section { padding: 20px; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .detail-section { padding: 24px 28px; } }
.detail-section h2 { font-size: 1.0625rem; margin-bottom: 12px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before {
  content: ""; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--primary); flex-shrink: 0;
}
.benefits { display: flex; flex-wrap: wrap; gap: 8px; }
.aside-stack { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1024px) { .aside-sticky { position: sticky; top: calc(var(--header-h) + 16px); } }
.apply-card .btn { width: 100%; }
.source-note { display: flex; gap: 8px; align-items: flex-start; font-size: .8125rem; color: var(--muted); }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--border);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: center;
  box-shadow: 0 -4px 16px rgba(15,23,42,.06);
}
.sticky-cta .btn-primary { flex: 1; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
body.has-bottom-nav .sticky-cta { bottom: 64px; }
.closed-banner { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; align-items: center; }

/* ------------------------------------------------------------------ timeline (concursos) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 20px 28px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: -2px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); }
.timeline li.done .dot { background: var(--muted-2); border-color: var(--muted-2); }
.timeline li.current .dot { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.timeline .when { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .what { font-weight: 600; color: var(--navy); }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr:hover { background: #FAFBFD; }
.table .actions { white-space: nowrap; text-align: right; }
.table-sm th, .table-sm td { padding: 9px 12px; font-size: .875rem; }
@media (max-width: 639px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .table-stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; text-align: right; }
  .table-stack td::before { content: attr(data-label); color: var(--muted); font-size: .8125rem; text-align: left; font-weight: 600; }
  .table-stack td.num { text-align: right; }
}
.updates { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.updates li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }

/* contest card */
.contest-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; height: 100%; position: relative; }
.contest-card h3 { font-size: 1rem; margin: 0; line-height: 1.35; }
.contest-card h3 a { color: var(--navy); }
.contest-card h3 a::after { content: ""; position: absolute; inset: 0; }
.contest-card:hover { border-color: var(--border-strong); }
.contest-card .kpis { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 20px; font-size: .8125rem; color: var(--muted); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.contest-card .kpis strong { display: block; color: var(--navy); font-size: .9375rem; }
.deadline { font-size: .8125rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.deadline.soon { color: var(--warning); }
.deadline.ok { color: var(--success); }

/* course card */
.course-card { display: flex; flex-direction: column; height: 100%; padding: 18px; gap: 10px; position: relative; }
.course-card h3 { font-size: 1rem; margin: 0; }
.course-card h3 a { color: var(--navy); }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; }
.course-card:hover { border-color: var(--border-strong); }
.course-card .provider { font-size: .8125rem; color: var(--muted); }
.course-card .price { font-weight: 700; color: var(--navy); }
.course-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.partner-note { font-size: .75rem; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }

/* company card */
.company-card { display: flex; gap: 14px; align-items: center; padding: 16px; position: relative; }
.company-card a.stretched::after { content: ""; position: absolute; inset: 0; }
.company-card:hover { border-color: var(--border-strong); }
.company-card h3 { font-size: 1rem; margin: 0 0 2px; }
.company-card h3 a { color: var(--navy); }

/* area tiles */
.area-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .area-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.area-tile { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); color: var(--text); position: relative; overflow: hidden; }
.area-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc); opacity: 0; transition: opacity .12s; }
.area-tile:hover { text-decoration: none; border-color: var(--border-strong); }
.area-tile:hover::before { opacity: 1; }
.area-tile .ic { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--acc-bg); color: var(--acc); display: grid; place-items: center; flex-shrink: 0; }
.area-tile strong { display: block; color: var(--navy); font-size: .9375rem; line-height: 1.3; }
.area-tile span { font-size: .8125rem; color: var(--muted); }

/* article card */
.article-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; height: 100%; position: relative; }
.article-card h3 { font-size: 1.0625rem; margin: 0; line-height: 1.35; }
.article-card h3 a { color: var(--navy); }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.article-card:hover { border-color: var(--border-strong); }
.article-card p { color: var(--muted); font-size: .9375rem; margin: 0; }
.article-card .foot { margin-top: auto; padding-top: 8px; font-size: .8125rem; color: var(--muted); }

/* how it works / steps */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-weight: 700; color: var(--primary); font-size: .875rem; letter-spacing: .08em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.0625rem; }
.step p { color: var(--muted); margin: 0; font-size: .9375rem; }

/* faq */
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .15s; color: var(--muted); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details > div { padding: 0 20px 16px; color: var(--muted); }

/* split CTA */
.split { display: grid; gap: 16px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 24px; } }
.split-card { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.split-card.dark { background: var(--navy); border-color: var(--navy); color: #CBD5E1; }
.split-card.dark h2, .split-card.dark h3 { color: #fff; }
.split-card ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.split-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.split-card li .i { color: var(--primary); margin-top: 3px; }
.split-card.dark li .i { color: #93B4FA; }
.split-card .actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* alert band */
.alert-band { display: grid; gap: 16px; align-items: center; padding: 24px; border-radius: var(--r-lg); background: var(--primary-50); border: 1px solid var(--primary-100); }
@media (min-width: 900px) { .alert-band { grid-template-columns: 1fr auto; padding: 28px 32px; } }
.alert-band h2 { margin: 0 0 4px; font-size: 1.25rem; }
.alert-band p { margin: 0; color: var(--muted); }
.alert-band form { display: grid; gap: 8px; }
@media (min-width: 640px) { .alert-band form { grid-template-columns: minmax(220px, 1fr) auto; } }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--navy); color: #94A3B8; padding: 56px 0 24px; margin-top: 0; font-size: .9375rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: #fff; }
.site-footer .logo b { color: #7EA6F7; }
.site-footer h3 { color: #fff; font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1E293B; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .8125rem; }

/* ------------------------------------------------------------------ app shell */
.app-shell { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 1024px) { .app-shell { grid-template-columns: 256px minmax(0, 1fr); } }
.app-side { display: none; }
@media (min-width: 1024px) {
  .app-side { display: block; border-right: 1px solid var(--border); background: var(--surface); padding: 20px 12px; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; }
}
.side-nav { display: grid; gap: 2px; }
.side-nav .group { padding: 16px 12px 6px; font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); font-size: .9375rem; font-weight: 500; }
.side-nav a:hover { background: var(--surface-2); text-decoration: none; }
.side-nav a .i { color: var(--muted); }
.side-nav a.btn .i, .side-nav .btn .i { color: currentColor; }
.side-nav a[aria-current="page"] { background: var(--primary-50); color: var(--primary-700); font-weight: 600; }
.side-nav a[aria-current="page"] .i { color: var(--primary-600); }
.side-nav .count { margin-left: auto; font-size: .75rem; color: var(--muted); font-weight: 600; }
.side-nav .lock-ic { margin-left: auto; color: var(--muted-2); }
.side-card { margin: 16px 4px 0; padding: 16px; border-radius: var(--r); background: var(--surface-2); font-size: .875rem; }
.side-card strong { display: block; color: var(--navy); margin-bottom: 4px; }
.app-main { padding: 24px var(--gutter) 96px; min-width: 0; }
@media (min-width: 1024px) { .app-main { padding: 32px 40px 64px; } }
.app-main-inner { max-width: 1120px; margin: 0 auto; }
.app-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.app-title h1 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin: 0 0 4px; }
.app-title p { margin: 0; color: var(--muted); }
.app-title .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.subnav { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 24px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: .9375rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a[aria-current="page"] { color: var(--primary-700); border-color: var(--primary); }
.mobile-app-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 16px; margin-bottom: 8px; scrollbar-width: none; }
.mobile-app-nav::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .mobile-app-nav { display: none; } }

/* bottom nav (candidato mobile) */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--border); z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: .6875rem; font-weight: 600; min-height: 48px; }
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav a[aria-current="page"] { color: var(--primary-600); }
@media (min-width: 1024px) { .bottom-nav { display: none; } }
body.has-bottom-nav { padding-bottom: 64px; }
@media (min-width: 1024px) { body.has-bottom-nav { padding-bottom: 0; } }

/* stat tiles */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); display: block; color: inherit; }
a.stat:hover { border-color: var(--border-strong); text-decoration: none; }
.stat .label-sm { font-size: .8125rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .value { display: block; font-size: 1.625rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .delta { display: block; font-size: .8125rem; color: var(--muted); margin-top: 2px; }

/* progress */
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.progress i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.progress-label { display: flex; justify-content: space-between; font-size: .875rem; margin-bottom: 6px; }

/* list rows */
.list { list-style: none; padding: 0; margin: 0; }
.list > li { display: flex; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }
.list .title { font-weight: 600; color: var(--navy); }
.list .title a { color: inherit; }
.list .sub { font-size: .875rem; color: var(--muted); }
.list-compact > li { padding: 10px 16px; }

/* premium lock rows */
.lock-row { display: flex; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.lock-row:last-child { border-bottom: 0; }
.redacted { display: inline-block; height: 12px; border-radius: 4px; background: var(--border); vertical-align: middle; }
.upsell {
  display: grid; gap: 12px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface);
}
@media (min-width: 768px) { .upsell { grid-template-columns: auto 1fr auto; align-items: center; } }
.upsell .ic { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--navy); color: #fff; display: grid; place-items: center; }
.upsell h3 { margin: 0 0 2px; font-size: 1rem; }
.upsell p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* sparkline bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.bars div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars i { display: block; width: 100%; max-width: 28px; background: var(--primary-100); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars div:last-child i { background: var(--primary); }
.bars span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: clip; font-size: .6875rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px; min-height: 240px; display: flex; flex-direction: column; gap: 8px; }
.kanban-col.drop { border-color: var(--primary); background: var(--primary-50); }
.kanban-col h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; margin: 4px 6px 4px; }
.k-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; cursor: grab; box-shadow: var(--shadow-xs); }
.k-card:active { cursor: grabbing; }
.k-card.dragging { opacity: .5; }
.k-card .name { font-weight: 600; color: var(--navy); font-size: .9375rem; }
.k-card .sub { font-size: .8125rem; color: var(--muted); }
.k-card select { margin-top: 8px; height: 34px; font-size: .8125rem; }
@media (max-width: 899px) { .kanban { grid-auto-flow: row; grid-auto-columns: auto; } .kanban-col { min-height: 0; } .k-card { cursor: default; } }

/* ------------------------------------------------------------------ wizard */
.wizard { display: grid; gap: 24px; }
@media (min-width: 1024px) { .wizard { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; } }
.wizard-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.wizard-steps::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .wizard-steps { flex-direction: column; gap: 2px; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.wizard-steps a, .wizard-steps span {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); font-size: .875rem; color: var(--muted); white-space: nowrap; font-weight: 500;
}
.wizard-steps .n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; background: var(--surface); }
.wizard-steps .done .n { background: var(--success-50); border-color: #BFE5CD; color: var(--success); }
.wizard-steps .current { background: var(--primary-50); color: var(--primary-700); font-weight: 600; }
.wizard-steps .current .n { background: var(--primary); border-color: var(--primary); color: #fff; }
.wizard-steps a:hover { background: var(--surface-2); text-decoration: none; }

/* ------------------------------------------------------------------ resume editor */
.resume-editor { display: grid; gap: 24px; }
@media (min-width: 1200px) { .resume-editor { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); } }
.resume-preview-wrap { background: #E9EDF3; border-radius: var(--r-lg); padding: 16px; overflow: auto; }
@media (min-width: 1200px) { .resume-preview-wrap { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); } }
.resume-paper { background: #fff; width: 100%; max-width: 794px; margin: 0 auto; box-shadow: 0 2px 10px rgba(15,23,42,.1); color: #172033; font-size: 13px; line-height: 1.5; min-height: 600px; }
.rp-essencial { padding: 44px 48px; }
.rp h1 { font-size: 26px; margin: 0; color: #0F172A; letter-spacing: -.01em; }
.rp .rp-headline { color: #1D4ED8; font-size: 15px; margin-top: 2px; }
.rp .rp-contact { color: #5B6474; font-size: 12px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.rp .rp-sec { margin-top: 18px; }
.rp .rp-sec h2 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #1D4ED8; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid #E2E8F0; }
.rp .rp-item { margin-bottom: 10px; }
.rp .rp-item-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; color: #0F172A; }
.rp .rp-item-head span { font-weight: 400; color: #5B6474; font-size: 12px; white-space: nowrap; }
.rp .rp-org { color: #1D4ED8; font-size: 12.5px; }
.rp ul { margin: 4px 0 0; padding-left: 16px; }
.rp p { margin: 0; }
.rp-executivo .rp-top { background: #0F172A; color: #fff; padding: 32px 48px 24px; }
.rp-executivo .rp-top h1 { color: #fff; }
.rp-executivo .rp-top .rp-headline { color: #CBD5E1; }
.rp-executivo .rp-top .rp-contact { color: #E2E8F0; }
.rp-executivo .rp-body { padding: 20px 48px 40px; }
.rp-executivo .rp-sec { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.rp-executivo .rp-sec h2 { color: #0F172A; border: 0; padding: 0; margin: 2px 0 0; }
.rp-executivo .rp-org { color: #334155; }
.rp-contemporaneo { display: grid; grid-template-columns: 34% 1fr; min-height: 900px; }
.rp-contemporaneo .rp-side { background: #F1F5F9; padding: 40px 22px; }
.rp-contemporaneo .rp-side h1 { font-size: 21px; }
.rp-contemporaneo .rp-side .rp-sec h2 { border: 0; padding: 0; }
.rp-contemporaneo .rp-side ul { list-style: none; padding: 0; }
.rp-contemporaneo .rp-main { padding: 40px 32px; }
.rp-hidden { display: none; }
.section-sorter { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.section-sorter li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.section-sorter li .grip { color: var(--muted-2); cursor: grab; }
.section-sorter li.dragging { opacity: .5; }
.section-sorter .move { margin-left: auto; display: flex; gap: 2px; }
.section-sorter .move button { width: 32px; height: 32px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.template-pick { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.template-pick label { position: relative; border: 1px solid var(--border-strong); border-radius: var(--r); padding: 10px; cursor: pointer; font-size: .8125rem; font-weight: 600; display: grid; gap: 8px; background: var(--surface); }
.template-pick input { position: absolute; opacity: 0; }
.template-pick input:checked + .thumb { outline: 2px solid var(--primary); outline-offset: 2px; }
.template-pick label:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.template-pick .thumb { height: 64px; border-radius: 6px; background: #fff; border: 1px solid var(--border); position: relative; overflow: hidden; }
.template-pick .thumb.t-essencial::before { content: ""; position: absolute; left: 10%; right: 10%; top: 14%; height: 8%; background: #0F172A; box-shadow: 0 12px 0 -1px #93B4FA, 0 24px 0 -2px #E2E8F0, 0 32px 0 -2px #E2E8F0, 0 40px 0 -2px #E2E8F0; }
.template-pick .thumb.t-executivo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 32%; background: #0F172A; }
.template-pick .thumb.t-contemporaneo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 34%; background: #E2E8F0; }
.template-pick .lock { position: absolute; top: 6px; right: 6px; color: var(--muted); }

/* ------------------------------------------------------------------ auth */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: start center; padding: 40px var(--gutter) 64px; }
@media (min-width: 900px) { .auth-wrap { place-items: center; } }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.625rem; margin-bottom: 6px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: .9375rem; color: var(--muted); }
.auth-split { display: grid; gap: 24px; width: 100%; max-width: 1040px; }
@media (min-width: 960px) { .auth-split { grid-template-columns: 1fr 440px; gap: 64px; align-items: center; } }
.auth-aside h2 { font-size: 1.5rem; }
.auth-aside ul { list-style: none; padding: 0; display: grid; gap: 12px; margin: 16px 0 0; }
.auth-aside li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.auth-aside li .i { color: var(--primary); margin-top: 3px; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8125rem; margin: 20px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* onboarding */
.onb { max-width: 680px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.onb-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.onb-progress i { flex: 1; height: 4px; border-radius: 99px; background: var(--border); }
.onb-progress i.on { background: var(--primary); }
.onb-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* plans */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 0 auto; } }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan.featured { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.plan .price { font-size: 2.25rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.plan .price small { font-size: .9375rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.plan li .i { margin-top: 3px; color: var(--success); }
.plan li.off { color: var(--muted); }
.plan li.off .i { color: var(--muted-2); }
.plan .actions { margin-top: auto; }
.matrix th:not(:first-child), .matrix td:not(:first-child) { text-align: center; }
.matrix td .i { display: inline-block; }
.yes { color: var(--success); }
.no { color: var(--muted-2); }

/* recruiter talent card */
.talent-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 16px; position: relative; }
@media (min-width: 768px) { .talent-card { grid-template-columns: auto minmax(0, 1fr) auto; padding: 20px; } }
.talent-card .name { font-weight: 700; color: var(--navy); font-size: 1rem; }
.talent-card .name a { color: inherit; }
.talent-card .side { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
@media (min-width: 768px) { .talent-card .side { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; margin: 0; } }
.band { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 800; font-size: .8125rem; }
.band-A { background: var(--success-50); color: var(--success); }
.band-B { background: var(--primary-50); color: var(--primary-700); }
.band-C { background: var(--warning-50); color: var(--warning); }
.band-D { background: var(--surface-2); color: var(--muted); }

/* profile */
.profile-head { display: grid; gap: 16px; grid-template-columns: auto 1fr; align-items: center; }
.profile-head h1 { font-size: 1.5rem; margin: 0; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: .9375rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); font-weight: 500; }
.xp { display: grid; gap: 16px; }
.xp-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.xp-item .ic { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.xp-item h4 { margin: 0; font-size: 1rem; }
.xp-item .sub { color: var(--muted); font-size: .875rem; }
.repeat-item { border: 1px solid var(--border); border-radius: var(--r); padding: 16px; background: var(--surface); }
.repeat-item + .repeat-item { margin-top: 12px; }
details.editor { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
details.editor > summary { padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
details.editor > summary::-webkit-details-marker { display: none; }
details.editor[open] > summary { border-bottom: 1px solid var(--border); }
details.editor > .body { padding: 16px; }

/* modal */
dialog.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); color: var(--text); }
dialog.modal::backdrop { background: rgba(15,23,42,.45); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 1.125rem; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* admin */
.admin-body { background: #F4F6F9; }
.admin-shell .app-side { background: var(--navy); border-right: 0; }
.admin-shell .side-nav a { color: #CBD5E1; }
.admin-shell .side-nav a:hover { background: #1E293B; }
.admin-shell .side-nav a .i { color: #64748B; }
.admin-shell .side-nav a[aria-current="page"] { background: #1E293B; color: #fff; }
.admin-shell .side-nav a[aria-current="page"] .i { color: #93B4FA; }
.admin-shell .side-nav .group { color: #64748B; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { height: 40px; width: auto; min-width: 180px; font-size: .9375rem; }
.code { font-family: var(--mono); font-size: .8125rem; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
pre.code { padding: 12px; overflow: auto; white-space: pre-wrap; max-height: 360px; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.status-dot.ok::before { background: var(--success); }
.status-dot.warn::before { background: #D97706; }
.status-dot.err::before { background: var(--danger); }

/* error pages */
.error-page { padding: 80px 0; text-align: center; }
.error-page .code-big { font-size: 4.5rem; font-weight: 800; color: var(--border-strong); letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }

/* print (currículo e páginas) */
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .site-header, .site-footer, .bottom-nav, .app-side, .no-print, .demo-bar, .flash-stack, .sticky-cta, .resume-controls, .app-title, .mobile-app-nav { display: none !important; }
  .app-shell { display: block; }
  .app-main { padding: 0; }
  .resume-preview-wrap { background: none; padding: 0; position: static; max-height: none; }
  .resume-paper { box-shadow: none; max-width: none; width: 210mm; min-height: 297mm; }
  a { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Itens de grade não podem forçar largura maior que a coluna (evita rolagem horizontal) */
.grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-2-1 > *, .split > *, .steps > *, .aside-stack > *, .stack-lg > *, .footer-grid > * { min-width: 0; }
.app-title form.row { flex-wrap: wrap; max-width: 100%; }
.app-title form.row .select { max-width: 100%; }
.table-wrap { max-width: 100%; }
.kv dd { overflow-wrap: anywhere; }

/* ==========================================================================
   FASE 2 — identidade visual, mídia e ritmo editorial
   Acrescentado sem reescrever o sistema original; valores via tokens.
   ========================================================================== */

/* ---- tipografia e assinatura */
.logo { font-family: var(--font-display); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); letter-spacing: .14em; }
.kicker::before { content: ""; width: 20px; height: 2px; background: currentColor; flex-shrink: 0; }
.section-head .kicker { margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); letter-spacing: -0.016em; line-height: 1.15; }
.section-head p { max-width: 60ch; }
.rule-progress { border: 0; height: 2px; margin: 8px 0 32px; background: linear-gradient(to right, var(--primary) 0 34%, var(--border) 34% 100%); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---- microinterações: somente feedback, 150–220 ms */
.btn, .chip, .card, .area-tile, .place-list a, .board-list a, .job-card { transition-duration: var(--dur); transition-timing-function: var(--ease); }
.btn { transition-property: background, border-color, color, box-shadow; }
.btn:active { transform: translateY(1px); }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); }
.card { transition-property: border-color, box-shadow; }
.course-card:hover, .article-card:hover, .company-card:hover, .contest-card:hover, .area-tile:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.course-card:focus-within, .article-card:focus-within, .company-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.course-card:focus-within .stretched:focus-visible, .article-card:focus-within .stretched:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---- faixas de seção */
.section-tint { background: var(--color-tint); border-top: 1px solid var(--primary-100); border-bottom: 1px solid var(--primary-100); }
.section-navy { background: var(--navy); color: var(--color-on-navy); }
.section-navy .section-head h2 { color: #fff; }
.section-navy .section-head p { color: var(--color-on-navy-muted); }
.section-navy .kicker { color: var(--color-on-navy-accent); }
.section-navy .more { color: #BFD3FD; }
.navy-empty { border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 16px; align-items: center; }
.navy-empty p { margin: 0; color: var(--color-on-navy); max-width: 64ch; }
@media (min-width: 768px) { .navy-empty { grid-template-columns: 1fr auto; } }

/* ---- hero */
.hero { padding: 36px 0 40px; background: var(--surface); }
@media (min-width: 900px) { .hero { padding: 64px 0; } }
.hero-grid { gap: 32px; }
@media (min-width: 1280px) { .hero-grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 56px; align-items: center; } }
@media (max-width: 1279px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-visual { max-width: 680px; } }
.hero h1 { font-size: clamp(2.125rem, 1.35rem + 2.8vw, 3.5rem); letter-spacing: -0.024em; line-height: 1.04; max-width: 14ch; margin-bottom: 16px; }
.hero .lead { max-width: 52ch; }
.hero-copy { min-width: 0; }
.quick-chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 639px) {
  .quick-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); padding-bottom: 2px; }
  .quick-chips::-webkit-scrollbar { display: none; }
  .quick-chips .chip { flex-shrink: 0; }
}
.hero-visual { position: relative; min-width: 0; }
.hero-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; background: var(--surface-2); }
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1279px) { .hero-photo { aspect-ratio: 16 / 10; max-height: 420px; } }
.hero-visual.has-photo .board { margin: -72px 16px 0; position: relative; }
@media (min-width: 1280px) { .hero-visual.has-photo .board { position: absolute; left: -40px; bottom: 32px; width: min(360px, 88%); margin: 0; } }

/* ---- quadro de oportunidades (assinatura NIDHI) */
.board { background: var(--navy); color: var(--color-on-navy); border-radius: var(--radius-lg); padding: 20px 20px 16px; box-shadow: var(--shadow-pop); }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.board-head h2 { margin: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-on-navy-accent); }
.board-status { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--color-on-navy-muted); }
.board-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.board-list a { flex: 1 1 auto; min-width: 0; display: block; padding: 12px 0; color: inherit; text-decoration: none; }
.board-list a:hover .b-title, .board-list a:focus-visible .b-title { color: #BFD3FD; text-decoration: underline; text-underline-offset: 3px; }
.board-list a:focus-visible { outline-color: #93B4FA; outline-offset: 0; }
.b-title { display: block; font-weight: 600; color: #fff; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-meta { display: block; font-size: .8125rem; color: var(--color-on-navy-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-time { flex-shrink: 0; padding-top: 14px; font-size: .75rem; color: var(--color-on-navy-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-foot { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .9375rem; color: #BFD3FD; }
.board-foot:hover { color: #fff; }
.board-empty p { margin: 14px 0 16px; color: var(--color-on-navy); font-size: .9375rem; }
@media (min-width: 1280px) { .hero-visual:not(.has-photo) .board { padding: 24px 24px 20px; } }

/* ---- vagas por localização */
.places-band { border-bottom: 1px solid var(--border); background: var(--surface); }
.places { display: grid; gap: 12px; align-items: center; }
@media (min-width: 900px) { .places { grid-template-columns: auto 1fr; gap: 24px; } }
.places-title { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; margin: 0; color: var(--navy); white-space: nowrap; }
.places-title .i { color: var(--primary); }
.place-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.place-list a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .875rem; font-weight: 500; transition-property: border-color, background; }
.place-list a:hover { text-decoration: none; border-color: var(--border-strong); background: var(--surface-2); }
.place-list .uf { font-size: .6875rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.place-list .n { font-size: .75rem; font-weight: 700; color: var(--primary-700); background: var(--primary-50); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }

/* ---- mídia */
.media-frame { position: relative; overflow: hidden; background: var(--surface-2); }
.media-frame.r16x9 { aspect-ratio: 16 / 9; }
.media-frame.r4x5 { aspect-ratio: 4 / 5; }
.media-frame.r1200x630 { aspect-ratio: 1200 / 630; }
.media-frame picture, .media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-fallback { display: flex; flex-direction: column; justify-content: space-between; padding: 16px; background-color: var(--acc-bg, var(--surface-2)); background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(15, 23, 42, .045) 23px 24px); color: var(--acc, var(--muted)); }
.media-fallback .mf-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow-xs); }
.media-fallback { container-type: inline-size; }
.media-fallback .mf-label { font-family: var(--font-display); font-size: clamp(1.125rem, 7.5cqi, 2.75rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.05; display: block; max-width: 12ch; }
.media-fallback .mf-label::before { content: ""; display: block; width: 28px; height: 3px; background: currentColor; margin-bottom: 12px; }
.article-card .media-fallback ~ .article-body > .kicker, .course-card .media-fallback ~ .course-body .tag { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- card de curso (16:9 padronizado) */
.course-card { padding: 0; gap: 0; overflow: hidden; }
.course-card h3 a::after { content: none; }
.course-card .course-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1 1 auto; }
.course-card h3 { font-size: 1.0625rem; line-height: 1.3; }
.course-card .summary { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-hero-media { border-bottom: 1px solid var(--border); }

/* ---- card de artigo */
.article-card { padding: 0; gap: 0; overflow: hidden; }
.article-card h3 a::after { content: none; }
.article-card .article-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1 1 auto; }
.article-card .kicker { margin: 0; font-size: .6875rem; }
.article-card h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.005em; }
.article-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.editorial-grid { display: grid; gap: 16px; }
@media (min-width: 640px) and (max-width: 899px) { .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .editorial-grid > .is-lead { grid-column: span 2; } }
@media (min-width: 900px) {
  .editorial-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
  .editorial-grid > .is-lead { grid-row: span 2; }
  .editorial-grid > .article-card:not(.is-lead) { flex-direction: row; }
  .editorial-grid > .article-card:not(.is-lead) .media-frame { width: 38%; flex-shrink: 0; aspect-ratio: auto; }
  .editorial-grid > .article-card:not(.is-lead) p { -webkit-line-clamp: 2; }
  .article-card.is-lead h3 { font-size: 1.5rem; line-height: 1.2; }
  .article-card.is-lead .article-body { padding: 24px 28px 28px; }
}

/* ---- página de artigo */
.article-page { padding: 24px 0 56px; background: var(--surface); }
.article-head { padding-top: 8px; }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); letter-spacing: -0.02em; line-height: 1.08; }
.article-dek { font-size: 1.1875rem; line-height: 1.5; color: var(--muted); margin: 0 0 8px; max-width: 60ch; }
.article-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 0 24px; font-size: .9375rem; }
.article-byline > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.35; }
.article-byline .muted { font-size: .8125rem; }
.byline-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; font-weight: 700; font-size: .875rem; flex-shrink: 0; }
.article-cover { max-width: 1104px; margin: 0 auto 40px; }
.article-cover .media-frame { border-radius: var(--radius-lg); }
.article-cover figcaption { font-size: .8125rem; color: var(--muted); margin-top: 8px; }
.prose-editorial { font-size: 1.0625rem; line-height: 1.75; max-width: var(--measure); }
.prose-editorial h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose-editorial h3 { margin-top: 1.5em; }
.prose-editorial blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); color: var(--navy); font-size: 1.125rem; }

/* ---- bloco "Seu currículo" (composição do produto, decorativa) */
.feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; } }
.lead-sm { font-size: 1.0625rem; color: var(--muted); max-width: 56ch; }
.steps-inline { list-style: none; counter-reset: s; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--border); }
.steps-inline li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.steps-inline li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--font-display); font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.steps-inline strong { color: var(--navy); }
.steps-inline span { color: var(--muted); font-size: .9375rem; }
.resume-sheet { justify-self: center; width: min(420px, calc(100% - 16px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); padding: 28px; display: grid; gap: 20px; position: relative; isolation: isolate; }
.resume-sheet::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--primary-100); border-radius: var(--radius-md); background: var(--color-tint); z-index: -1; }
.rs-head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 2px solid var(--primary); }
.rs-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-100); flex-shrink: 0; }
.rs-lines, .rs-sec { display: grid; gap: 8px; flex: 1; }
.rs-lines i, .rs-sec i { display: block; height: 8px; border-radius: 4px; background: var(--border); }
.rs-lines i:first-child { height: 12px; background: var(--navy); }
.rs-sec b { font-family: var(--font-display); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-700); }
.rs-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rs-tags em { width: 64px; height: 22px; border-radius: 999px; background: var(--primary-50); border: 1px solid var(--primary-100); }
.rs-tags em:nth-child(2) { width: 84px; }
.rs-tags em:nth-child(4) { width: 52px; }
.rs-note { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--success); }

.split-card.dark .kicker { color: var(--color-on-navy-accent); }

/* ---- mídia no admin */
.media-field { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin: 24px 0 0; background: var(--bg); min-width: 0; }
.media-field legend { padding: 0 6px; }
.media-field-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .media-field-grid { grid-template-columns: 280px minmax(0, 1fr); align-items: start; } }
.media-preview { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.media-preview.r4x5 { max-width: 240px; }
.media-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; }
.focal-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary), 0 1px 4px rgba(0, 0, 0, .4); pointer-events: none; }
.media-field input[type="range"] { width: 100%; accent-color: var(--primary); }

/* ---- empty state inline (dentro de cards de painel) */
.empty-inline { display: flex; gap: 12px; align-items: flex-start; }
.empty-inline > .i { color: var(--muted-2); flex-shrink: 0; margin-top: 2px; }
.empty-inline strong { display: block; color: var(--navy); font-size: .9375rem; }
.empty-inline p { margin: 2px 0 0; color: var(--muted); font-size: .875rem; }

/* ---- "Quem viu meu perfil" / "Aparições": indicador editorial e linhas bloqueadas */
.insight { display: flex; align-items: center; gap: 16px; margin: 0; }
.insight-num { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--primary); font-variant-numeric: tabular-nums; }
.insight-text { font-size: 1.0625rem; font-weight: 600; color: var(--navy); line-height: 1.35; max-width: 34ch; }
.co-logo.locked { background: repeating-linear-gradient(135deg, #E8EDF4 0 6px, #F3F6FA 6px 12px); color: var(--muted-2); border: 1px solid var(--border); }
.lock-row .title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lock-row .redacted { height: 10px; background: linear-gradient(90deg, #E2E8F0, #EDF1F6); }
.lock-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--navy); font-size: .75rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.lock-chip .i { color: var(--muted); }
.lock-chip:hover { background: var(--surface-2); border-color: var(--muted-2); text-decoration: none; }

/* ---- planos: valor concreto do Premium */
.plan .price { font-family: var(--font-display); }
.plan.featured::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px; background: var(--primary); border-radius: 0 0 3px 3px; }
.value-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.value-grid > * { background: var(--surface); padding: 24px; }
.value-intro h2 { margin-bottom: 8px; }
.value-intro p.muted { margin: 0; }
.value-item .ic { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; margin-bottom: 14px; }
.value-item h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.value-item p { margin: 0; color: var(--muted); font-size: .9375rem; }
@media (min-width: 700px) { .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .value-intro { grid-column: span 2; } }
@media (min-width: 1100px) { .value-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .value-intro { grid-column: span 1; grid-row: span 2; background: var(--color-tint); } }

/* ---- concursos: cabeçalho institucional */
.contest-card { border-top: 3px solid var(--a-navy); }
.contest-top { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.contest-top .organ { font-size: .8125rem; font-weight: 600; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.contest-top .badge { flex-shrink: 0; }
.emblem { width: 40px; height: 44px; flex-shrink: 0; border-radius: 6px; background: var(--a-navy-bg); color: var(--a-navy); display: grid; place-items: center; align-content: center; gap: 1px; border: 1px solid #D6DEF3; }
.emblem b { font-family: var(--font-display); font-size: .625rem; letter-spacing: .08em; line-height: 1; }

/* ---- cabeçalho do concurso e da empresa */
.contest-head { border-top: 4px solid var(--a-navy); background: linear-gradient(to bottom, var(--a-navy-bg), var(--surface) 140px); }
.company-hero { padding: 24px 0 28px; background: linear-gradient(to bottom, var(--color-tint), var(--surface)); border-bottom: 1px solid var(--border); }
.company-hero .co-logo-lg { background-color: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.company-hero h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }

/* faixa compacta de categoria (página de curso sem imagem) */
.media-frame.r-banner { height: 120px; flex-direction: row; align-items: flex-end; justify-content: space-between; }
.media-frame.r-banner .mf-label { font-size: 1.5rem; order: -1; max-width: none; }
.media-frame.r-banner .mf-icon { align-self: flex-start; }

/* ---- mobile: seções mais curtas e cabeçalhos empilhados */
@media (max-width: 639px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-visual:not(.has-photo) .board-list li:nth-child(n+4) { display: none; }
  .section { padding: 40px 0; }
}
.hero-copy .search-bar, .hero-copy .quick-chips { max-width: 760px; }

/* Performance: seções abaixo da dobra só são renderizadas ao se aproximarem da tela */
.cv { content-visibility: auto; contain-intrinsic-size: auto 760px; }
