/* =========================================================
   UFRB · Sistema de Recomendação de Estágio
   Design tokens — trocar estes valores altera a identidade
   visual inteira sem tocar nos componentes.
   ========================================================= */
:root {
  --primary: #1e2f6e;
  --primary-dark: #14204d;
  --secondary: #e8a020;
  --background: #f4f6fb;
  --surface: #ffffff;
  --text: #1c2333;
  --muted: #6b7280;
  --border: #e2e6ef;
  --success: #1c8a5a;
  --success-bg: #e6f6ee;
  --danger: #c0392b;
  --danger-bg: #fbeceb;
  --info-bg: #eef2fc;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 77, 0.06);
  --shadow-md: 0 4px 16px rgba(20, 32, 77, 0.08);
  --sidebar-w: 240px;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

/* Garante que o atributo `hidden` sempre vença, mesmo em elementos cuja
   classe declara `display` (ex.: .btn, .project-grid). */
[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Layout shell ---------- */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.app-header {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.brand__subtitle {
  font-size: 12.5px;
  color: var(--muted);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--primary);
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: var(--background);
}

/* ---------- Body: sidebar + main ---------- */
.app-body {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.2s ease, padding 0.2s ease;
  white-space: nowrap;
}

.sidebar.is-collapsed {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  border-right-color: transparent;
}

.sidebar.is-collapsed .sidebar__nav {
  visibility: hidden;
}

.sidebar__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar__link:hover {
  background: var(--background);
  color: var(--primary);
}

.sidebar__link.is-active {
  background: var(--info-bg);
  color: var(--primary);
  font-weight: 700;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 32px 40px 80px;
}

.page-header {
  margin-bottom: 24px;
}

.breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.breadcrumb .is-current {
  color: var(--primary);
  font-weight: 600;
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 26px;
  color: var(--primary-dark);
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 640px;
}

/* ---------- Progress ---------- */
.progress-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.progress-card__label {
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
}

.progress-card__value {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.progress-bar {
  flex: 1;
  height: 10px;
  background: var(--background);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 999px;
  transition: width 0.35s ease;
  width: 0%;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  margin-bottom: 22px;
}

.card--priority {
  border-top: 3px solid var(--primary);
}

.card--muted {
  box-shadow: none;
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.card__heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card__step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card__title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.card__subtitle {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.card--secondary .card__title {
  color: var(--muted);
}

.badge-required {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--info-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

/* ---------- Form elements ---------- */
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.field .required {
  color: var(--danger);
}

.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field input[type="password"],
.field input[type="month"],
.field input[type="date"],
.field select,
.field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input[type="month"],
.field input[type="date"] {
  cursor: pointer;
}

.field input[type="month"]::-webkit-calendar-picker-indicator,
.field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  border-radius: 4px;
  padding: 3px;
}

.field input[type="month"]::-webkit-calendar-picker-indicator:hover,
.field input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background: var(--background);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 47, 110, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input[readonly] {
  background: var(--background);
  color: var(--muted);
  cursor: not-allowed;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Tech input row ---------- */
.tech-input-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

/* Cada controle do formulário de tecnologia tem seu rótulo visível (campo, categoria e nível). */
.tech-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-field--grow {
  flex: 1;
  min-width: 0;
}

.tech-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Quando o Combobox.attach envolve o <input> num .combobox (para a
   lista de sugestões), o .combobox vira o filho direto do flex — o
   `flex: 1` no input sozinho não tem mais efeito nenhum, porque ele
   não é mais item direto deste container. */
.tech-input-row .combobox {
  flex: 1;
}

.tech-input-row input {
  flex: 1;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
}

.tech-input-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 47, 110, 0.12);
}

.tech-input-row select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  background: var(--surface);
  min-width: 150px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--primary);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger-text {
  background: none;
  border: 1px solid var(--border);
  color: var(--danger);
}

.btn-danger-text:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-ghost-toggle {
  display: inline-flex;
  gap: 8px;
}

.toggle-btn {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.toggle-btn.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Chips / pills ---------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.chip__name {
  font-weight: 600;
  font-size: 14px;
}

.chip__level-select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12.5px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
}

.chip__level-select[data-level="Básico"] {
  color: #8a6d1c;
}

.chip__level-select[data-level="Intermediário"] {
  color: var(--primary);
}

.chip__level-select[data-level="Avançado"] {
  color: var(--success);
}

.chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
}

.chip__remove:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--info-bg);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag-pill--removable button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
}

.empty-state svg {
  width: 40px;
  height: 40px;
  color: var(--border);
  margin-bottom: 12px;
}

.empty-state p {
  margin: 0 0 16px;
  font-size: 14.5px;
}

/* ---------- Project cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--background);
}

.project-card__title {
  margin: 0;
  font-size: 15.5px;
  color: var(--primary-dark);
}

.project-card__type {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card__desc {
  font-size: 13.5px;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card__area {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
}

.project-card__link {
  font-size: 12.5px;
  color: var(--primary);
  text-decoration: underline;
  word-break: break-all;
}

.project-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* ---------- Interests ---------- */
/* ---------- Experience ---------- */
.experience-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
  background: var(--background);
}

.experience-item__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.experience-item h4 {
  margin: 0 0 2px;
  font-size: 14.5px;
}

.experience-item__meta {
  font-size: 12.5px;
  color: var(--muted);
}

.experience-item p {
  font-size: 13.5px;
  margin: 8px 0;
}

/* ---------- Lattes import ---------- */
.lattes-card {
  background: linear-gradient(135deg, var(--info-bg), var(--surface));
  border: 1px solid var(--border);
}

.lattes-grid {
  display: grid;
  grid-template-columns: 110px 1fr 260px;
  gap: 28px;
  align-items: center;
}

.lattes-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.lattes-icon img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.lattes-main h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--primary-dark);
}

.lattes-main p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
}

.lattes-howto {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.lattes-howto__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.lattes-howto ol {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.6;
}

.lattes-howto a {
  font-size: 12.5px;
  color: var(--primary);
  text-decoration: underline;
}

/* ---------- Footer actions ---------- */
.form-footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.form-footer-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}

.form-footer-hint.is-complete {
  color: var(--success);
  font-weight: 600;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 51, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.modal--sm {
  max-width: 460px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
}

.modal__header h2 {
  margin: 0;
  font-size: 17px;
  color: var(--primary-dark);
}

.modal__header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal__header-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.modal__close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
}

.modal__close:hover {
  background: var(--background);
  color: var(--text);
}

.modal__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
}

/* ---------- Upload dropzone ---------- */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.dropzone svg {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: var(--muted);
}

.dropzone strong {
  color: var(--text);
}

.dropzone-or {
  margin: 10px 0;
  font-size: 12px;
}

/* ---------- Combobox (autocomplete) ---------- */
.combobox {
  position: relative;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.input-icon-wrap input[type="text"] {
  padding-left: 36px;
}

.combobox__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 220px;
  overflow-y: auto;
}

.combobox__option {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  cursor: pointer;
}

.combobox__option:hover,
.combobox__option.is-active {
  background: var(--info-bg);
  color: var(--primary);
}

.combobox__group-header {
  padding: 8px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: default;
}

.combobox__empty {
  padding: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: default;
}

.combobox__create {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}

.combobox__create:hover {
  background: var(--info-bg);
}

/* ---------- Month picker (data de início/término) ---------- */
.month-picker {
  position: relative;
}

/* O <input type="month"> nativo continua no DOM como fonte de verdade
   do valor, só não é mais visível — o visual é 100% o popover abaixo. */
.month-picker__native-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.month-picker__trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.month-picker__trigger .icon {
  color: var(--muted);
  flex-shrink: 0;
}

.month-picker__trigger.is-empty .month-picker__label {
  color: var(--muted);
}

.month-picker__trigger:hover {
  border-color: var(--primary);
}

.month-picker__trigger.is-open {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 47, 110, 0.12);
}

.month-picker__trigger.is-disabled {
  background: var(--background);
  color: var(--muted);
  cursor: not-allowed;
  border-color: var(--border);
}

.month-picker__trigger.is-disabled .icon {
  opacity: 0.5;
}

.month-picker__label {
  flex: 1;
}

.month-picker__popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: 266px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.month-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.month-picker__year {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
}

.month-picker__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}

.month-picker__nav:hover {
  background: var(--info-bg);
  color: var(--primary);
}

.month-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.month-picker__month {
  padding: 9px 4px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.month-picker__month:hover {
  background: var(--info-bg);
  color: var(--primary);
}

.month-picker__month.is-today {
  border-color: var(--primary);
}

.month-picker__month.is-selected,
.month-picker__month.is-selected:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.month-picker__clear {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.month-picker__clear:hover {
  color: var(--danger);
}

/* ---------- Bloco de TCC ---------- */
.tcc-block {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
}

.tcc-block__title {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

/* ---------- Checkbox inline (ex.: Experiência atual) ---------- */
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  cursor: pointer;
}

.checkbox-inline input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.field-error {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
}

.notice-box {
  background: var(--info-bg);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  margin-top: 14px;
}

/* ---------- Importação Lattes: extração e preview ---------- */
.lattes-loading {
  text-align: center;
  padding: 36px 10px;
  color: var(--muted);
  font-size: 14px;
}

.spinner {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin: 0 auto 14px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.lattes-preview-block {
  margin-bottom: 18px;
}

.lattes-preview-block:last-child {
  margin-bottom: 0;
}

.lattes-preview-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.lattes-preview-value {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.chip-list-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lattes-preview-project {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--background);
  margin-bottom: 8px;
}

.lattes-preview-project:last-child {
  margin-bottom: 0;
}

.lattes-preview-project__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-dark);
}

.lattes-preview-project__desc {
  font-size: 12.5px;
  color: var(--muted);
  margin: 4px 0 0;
}

.lattes-section-title {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lattes-language-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.lattes-language-card:last-child {
  margin-bottom: 0;
}

.lattes-language-card__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.lattes-language-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--muted);
}

.lattes-formation-option__meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

.lattes-formation-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--background);
}

.lattes-formation-option:last-child {
  margin-bottom: 0;
}

.lattes-formation-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--info-bg);
}

.lattes-formation-option input {
  margin-top: 3px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.lattes-formation-option__level {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 6px;
}

.lattes-formation-option__course {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.lattes-formation-option__institution {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Bloco de identidade importada do Lattes ---------- */
.lattes-identity-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--info-bg);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--primary);
}

.lattes-identity-block__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.lattes-identity-block strong {
  display: block;
  font-size: 13.5px;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: var(--success);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: var(--danger);
}

/* ---------- Mobile menu overlay ---------- */
.sidebar-backdrop {
  display: none;
}

/* ---------- Sidebar: separador ---------- */
.sidebar__separator {
  height: 1px;
  background: var(--border);
  margin: 10px 14px;
  list-style: none;
}

/* =========================================================
   Painel administrativo
   ========================================================= */
.admin-gate {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.admin-gate__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--info-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-gate__title {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--primary-dark);
}

.admin-gate__text {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.admin-gate__form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-gate__error {
  margin: -6px 0 0;
  font-size: 12.5px;
  color: var(--danger);
  font-weight: 600;
}

.admin-gate__notice {
  margin-top: 22px;
  text-align: left;
}

.admin-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.admin-tab {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.admin-tab:hover {
  color: var(--primary-dark);
}

.admin-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.admin-tab-panel[hidden] {
  display: none;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-toolbar__summary {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.admin-stat-card__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
}

.admin-stat-card__label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.admin-search {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  margin: 16px 0 18px;
}

.admin-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 47, 110, 0.12);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: var(--background);
}

.admin-progress-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--primary);
}

.admin-progress-badge.is-complete {
  background: var(--success-bg);
  color: var(--success);
}

.tag-pill--muted {
  background: var(--background);
  color: var(--muted);
}

.admin-detail-section {
  margin-bottom: 22px;
}

.admin-detail-section:last-child {
  margin-bottom: 0;
}

.admin-detail-section__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.admin-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.admin-detail-row:last-child {
  border-bottom: none;
}

.admin-detail-row__label {
  color: var(--muted);
  flex-shrink: 0;
}

.admin-detail-row__value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

/* =========================================================
   Responsividade
   ========================================================= */
@media (max-width: 1024px) {
  .field-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .lattes-grid {
    grid-template-columns: 90px 1fr;
  }

  .lattes-howto {
    grid-column: 1 / -1;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 60;
    box-shadow: var(--shadow-md);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(20, 26, 51, 0.4);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-content {
    padding: 22px 18px 60px;
  }
}

@media (max-width: 640px) {
  .app-header {
    padding: 0 16px;
  }

  .brand__title {
    font-size: 13px;
  }

  .brand__subtitle {
    font-size: 11px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .progress-card {
    flex-wrap: wrap;
  }

  .card {
    padding: 18px;
  }

  .lattes-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .lattes-icon {
    width: 64px;
    height: 64px;
  }

  .tech-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-detail-row {
    flex-direction: column;
    gap: 2px;
  }

  .admin-detail-row__value {
    text-align: left;
  }

  .form-footer-wrap {
    align-items: stretch;
  }

  .form-footer-hint {
    text-align: left;
  }

  .form-footer {
    flex-direction: column-reverse;
  }

  .form-footer .btn {
    width: 100%;
  }

  .modal__body {
    padding: 18px;
  }
}

/* =========================================================
   Login / Cadastro
   ========================================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 32px;
}

.auth-card__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-card__brand img {
  height: 52px;
  width: auto;
}

.auth-card__brand span {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.4;
}

.auth-card__title {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--primary-dark);
  text-align: center;
}

.auth-card__subtitle {
  margin: 0 0 24px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form__error {
  margin: 0;
  font-size: 13px;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 600;
}

.auth-form__success {
  margin: 0;
  font-size: 13px;
  color: var(--success);
  background: var(--success-bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 600;
}

.auth-card__footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.auth-card__footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-card__footer a:hover {
  text-decoration: underline;
}

.auth-card__links {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.auth-card__links a {
  font-size: 12.5px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-card__links a:hover {
  text-decoration: underline;
}

.auth-form .btn {
  width: 100%;
  margin-top: 4px;
}

/* "Sair" reaproveita o visual de .sidebar__link, mas é um <button> —
   reseta os estilos padrão do elemento para se igualar aos <a>. */
button.sidebar__link {
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

/* =========================================================
   Oportunidades — carrossel de vagas
   ========================================================= */
.opportunities-carousel {
  position: relative;
}

.opportunities-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  scrollbar-width: thin;
}

.opportunity-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.opportunity-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.opportunity-card__company {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.opportunity-card__badge {
  background: var(--info-bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.opportunity-card__title {
  margin: 0;
  font-size: 16.5px;
  color: var(--primary-dark);
  line-height: 1.3;
}

.opportunity-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.opportunity-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.opportunity-card__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}

.opportunity-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.opportunity-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.opportunities-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.opportunities-nav:hover {
  border-color: var(--primary);
}

.opportunities-nav--prev {
  left: -14px;
}

.opportunities-nav--next {
  right: -14px;
}

@media (max-width: 640px) {
  .opportunities-nav {
    display: none;
  }
}

/* =========================================================
   Recomendações (Fase 8/9)
   ========================================================= */
.rec-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.rec-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.rec-filter {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.rec-filter.is-active {
  background: var(--info-bg);
  color: var(--primary);
  border-color: var(--primary);
}

.rec-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
  padding: 14px 0;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.rec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.rec-card--prospeccao {
  border-style: dashed;
  background: var(--background);
}

.rec-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rec-card__company {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rec-card__title {
  margin: 2px 0 0;
  font-size: 16.5px;
  color: var(--primary-dark);
  line-height: 1.3;
}

.rec-level {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.rec-level--alta {
  background: var(--success-bg);
  color: var(--success);
}

.rec-level--media {
  background: var(--info-bg);
  color: var(--primary);
}

.rec-level--baixa {
  background: var(--danger-bg);
  color: var(--danger);
}

.rec-card__prospeccao-badge {
  display: inline-flex;
  align-self: flex-start;
  background: var(--surface);
  border: 1px dashed var(--muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.rec-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.rec-convenio-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.rec-convenio-badge--vigente {
  background: var(--success-bg);
  color: var(--success);
}

.rec-convenio-badge--vencido {
  background: var(--danger-bg);
  color: var(--danger);
}

.rec-convenio-badge--indeterminado {
  background: var(--info-bg);
  color: var(--muted);
}

.rec-card__section {
  font-size: 13px;
}

.rec-card__section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 6px;
}

.rec-card__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--text);
}

.rec-card__list--lacunas {
  color: var(--muted);
}

.rec-card__justificativa {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.rec-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.rec-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

/* Categoria da tecnologia no chip (escolhida pelo estudante; some quando a tecnologia foi cadastrada sem categoria). */
.chip__category {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg, #f3f5fa);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* Opção do autocomplete com texto secundário à direita (ex.: a categoria da tecnologia). */
.combobox__option.has-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.combobox__meta {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}

/* A lista de tecnologias é longa (dezenas de sugestões por curso): mais alta que as demais. */
.tech-field .combobox__list {
  max-height: 340px;
}

/* Seletor de tecnologias no modal de projeto: cada item da lista do estudante liga/desliga. */
.tech-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
}

.tech-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.tech-pick:hover {
  border-color: var(--primary);
}

.tech-pick.is-selected {
  background: var(--info-bg);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.tech-pick.is-selected::before {
  content: "\2713";
  font-weight: 700;
}

.tech-pick.is-legacy {
  opacity: 0.65;
  border-style: dashed;
}

.tech-pick__level {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* Dica à esquerda e botão pequeno de ação à direita (quebra para a linha de baixo em telas estreitas). */
.field-hint-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

/* Card de editais e avisos de estágio (site da UFRB) na página de Oportunidades. */
.editais-lista {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.editais-lista__item {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.editais-lista__item:first-child {
  border-top: 0;
}

.editais-lista__titulo {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.editais-lista__titulo:hover {
  text-decoration: underline;
}

.editais-lista__novo {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.editais-lista__data {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Faixa do NUGEST no topo do card de editais: mostra de onde vêm os avisos. */
.editais-banner {
  display: block;
  margin-bottom: 14px;
}

.editais-banner img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: var(--radius-sm);
}
