/* IN-BOUND — layout comum às páginas SVG */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  background: #08111d;
  color: #c4d4e0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Página Career Profiles — área principal clara; fundo alinhado ao resto do site só no footer */
body.page--avatars {
  background: #eef4f9;
  color: #0f172a;
}

body.page--avatars .site-footer,
body.page--profile .site-footer {
  position: relative;
  background: linear-gradient(180deg, #08111d 0%, #0f2233 100%);
  border-top: 1px solid #1d3448;
  box-shadow: 0 -12px 40px rgba(8, 17, 29, 0.12);
}

/* Textura tipo grelha (discreta), como na home, só na zona do footer */
body.page--avatars .site-footer::before,
body.page--profile .site-footer::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(#1d3448 1px, transparent 1px),
    linear-gradient(90deg, #1d3448 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Conteúdo e imagens do footer acima da grelha decorativa */
body.page--avatars .site-footer__columns,
body.page--avatars .site-footer__bar,
body.page--profile .site-footer__columns,
body.page--profile .site-footer__bar {
  position: relative;
  z-index: 1;
}

/* Página de perfil individual (SVG escuro, alinhada ao tema do projeto) */
body.page--profile {
  background: #07131e;
  color: #c4d4e0;
}

body.page--profile .page-svg .career-path-card .level-select a {
  cursor: pointer;
}

body.page--profile .page-svg .career-path-card .level-select a text {
  pointer-events: none;
}

body.page--profile .page-svg .career-path-card .level-select a:hover rect {
  stroke: #00c7be;
  fill: #1a3d52;
}

body.page--profile .page-svg .career-path-card .level-select a:hover text {
  fill: #ffffff;
}

body.page--profile .page-svg .career-path-card .level-select a:focus {
  outline: none;
}

body.page--profile .page-svg .career-path-card .level-select a:focus-visible rect {
  stroke: #67e8f9;
  stroke-width: 2;
}

body.page--profile .sector-snapshot-btn {
  cursor: pointer;
}

body.page--profile .sector-snapshot-btn text {
  pointer-events: none;
}

body.page--profile .sector-snapshot-btn:focus {
  outline: none;
}

body.page--profile .sector-snapshot-btn:focus-visible rect {
  stroke: #ffffff;
  stroke-width: 2;
}

body.sector-modal-open {
  overflow: hidden;
}

.sector-modal[hidden] {
  display: none !important;
}

.sector-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.sector-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 14, 0.72);
  cursor: pointer;
}

.sector-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  max-height: min(85vh, 36rem);
  overflow-y: auto;
  padding: 1.75rem 1.75rem 1.5rem;
  background: linear-gradient(180deg, #122437 0%, #0b1724 100%);
  border: 1px solid #274255;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  color: #d8e6ef;
  font-family: Arial, Helvetica, sans-serif;
}

.sector-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: #1d3040;
  color: #e2eef5;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.sector-modal__close:hover {
  background: #274255;
  color: #ffffff;
}

.sector-modal__title {
  margin: 0 2.5rem 0.75rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #67e8f9;
  line-height: 1.25;
}

.sector-modal__intro {
  margin: 0 0 1.125rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #9db3c4;
}

.sector-modal__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d8e6ef;
}

.sector-modal__list li {
  margin-bottom: 0.5rem;
}

/* Framework page — competency infographic modal */
body.competency-modal-open {
  overflow: hidden;
}

.competency-infographic-modal[hidden] {
  display: none !important;
}

.competency-infographic-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.competency-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 14, 0.78);
  cursor: pointer;
}

.competency-infographic-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  max-height: min(90vh, 40rem);
  overflow-y: auto;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(165deg, #15212d 0%, #0b1724 55%, #0f1f14 100%);
  border: 1px solid #3d3518;
  border-radius: 22px;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(211, 165, 81, 0.12);
  color: #d8e6ef;
  font-family: Arial, Helvetica, sans-serif;
}

.competency-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: #1d3040;
  color: #e2eef5;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.competency-modal__close:hover {
  background: #274255;
  color: #fff;
}

.competency-infographic-modal__title {
  margin: 0 2.75rem 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #f9d28c;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.competency-infographic-modal__description {
  margin: 0 2.75rem 1.25rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #9db3c4;
}

.competency-infographic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .competency-infographic-grid {
    grid-template-columns: 1fr;
  }
}

.competency-infographic-card {
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  border-radius: 16px;
  border: 1px solid #274255;
  background: linear-gradient(180deg, rgba(16, 30, 43, 0.95) 0%, rgba(11, 23, 36, 0.98) 100%);
  min-height: 7.5rem;
  box-sizing: border-box;
}

.competency-infographic-card::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #d3a551;
  opacity: 0.9;
}

.competency-infographic-card--lo::before {
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 100%);
}

.competency-infographic-card--avatars::before {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
}

.competency-infographic-card--scenarios::before {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.competency-infographic-card--qual::before {
  background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
}

.competency-infographic-card__label {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9db3c4;
}

.competency-infographic-card__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #c8dce8;
}

body.page--framework .framework-competency-hit {
  cursor: pointer;
}

body.page--framework .framework-competency-hit:focus {
  outline: none;
}

body.page--framework .framework-competency-hit .framework-competency-hit__area {
  transition: fill 0.15s ease;
}

body.page--framework .framework-competency-hit:hover .framework-competency-hit__area {
  fill: rgba(211, 165, 81, 0.12);
}

body.page--framework .framework-competency-hit:focus-visible .framework-competency-hit__area {
  stroke: #67e8f9;
  stroke-width: 2;
  fill: rgba(103, 232, 249, 0.08);
}

body.page--framework .framework-column-backdrop {
  pointer-events: none;
}

body.page--framework .framework-competency-hit text {
  pointer-events: none;
}

body.page--framework .framework-competency-hit line,
body.page--framework .framework-competency-hit circle {
  pointer-events: none;
}

body.page--avatars .page-svg .filter-chip {
  cursor: pointer;
}

/* Chips com rect largo: o texto deixa passar o clique para o rect. Na legenda o rect é pequeno — o texto tem de receber o clique. */
body.page--avatars .page-svg #sectorChip text,
body.page--avatars .page-svg #countryChip text {
  pointer-events: none;
}

body.page--avatars .page-svg .filter-chip:focus {
  outline: none;
}

body.page--avatars .page-svg .filter-chip:focus-visible > rect:first-of-type {
  stroke: #00c7be;
  stroke-width: 2;
}

body.page--avatars .page-svg .avatar-pair a:hover .pair-card rect[stroke="#D8E3EC"] {
  stroke: #00c7be;
  stroke-width: 2;
}

body.page--avatars .page-svg .avatar-pair a .pair-card text {
  pointer-events: none;
}

body.page--avatars .page-svg .avatar-pair a:focus {
  outline: none;
}

body.page--avatars .page-svg .avatar-pair a:focus-visible .pair-card rect[stroke="#D8E3EC"] {
  stroke: #00c7be;
  stroke-width: 2;
}

.page-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
}

.page-svg {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.page-svg a {
  cursor: pointer;
  text-decoration: none;
}

/* Hover branco só na barra de topo (links filhos diretos do SVG), não nos cartões claros */
.page-svg > a:hover text {
  fill: #ffffff;
}

/* Resto dos SVG (ex.: cartões na home): texto claro no hover */
.page-svg g a:hover text {
  fill: #ffffff;
}

/* Explorador de perfis — cartões brancos: anula o branco e mantém contraste no hover */
body.page--avatars .page-svg .avatar-pair a:hover .pair-card text,
body.page--avatars .page-svg .avatar-pair a:hover .pair-card tspan {
  fill: #0f172a !important;
}

body.page--avatars .page-svg .avatar-pair a:hover .pair-card text.pair-tone-muted {
  fill: #475569 !important;
}

body.page--avatars .page-svg .avatar-pair[data-sector="food"] a:hover .pair-card text.pair-tone {
  fill: #0f766e !important;
}

body.page--avatars .page-svg .avatar-pair[data-sector="automotive"] a:hover .pair-card text.pair-tone {
  fill: #c2410c !important;
}

body.page--avatars .page-svg .avatar-pair[data-sector="metal"] a:hover .pair-card text.pair-tone {
  fill: #1d4ed8 !important;
}

body.page--avatars .page-svg .avatar-pair[data-sector="pharma"] a:hover .pair-card text.pair-tone {
  fill: #6d28d9 !important;
}

body.page--avatars .page-svg .avatar-pair[data-sector="logistics"] a:hover .pair-card text.pair-tone {
  fill: #0d9488 !important;
}

.page-svg a:focus {
  outline: none;
}

.page-svg a:focus-visible rect,
.page-svg a:focus-visible circle {
  stroke: #00d1c7;
  stroke-width: 2;
}

.subpage-strip {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 1rem clamp(1rem, 3vw, 2.5rem) 2rem;
  background: #07131e;
  border-top: 1px solid #23394c;
}

.subpage-strip h2 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8da6b8;
  text-transform: uppercase;
}

.subpage-strip ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.subpage-strip a {
  color: #67e8f9;
  font-size: 1rem;
  text-decoration: none;
}

.subpage-strip a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer (HTML): fundo transparente; painéis semelhantes ao mockup */
.site-footer {
  align-self: stretch;
  width: 100%;
  background: transparent;
  margin-top: 0;
}

.site-footer__columns {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.5rem clamp(1rem, 3vw, 2.5rem) 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .site-footer__columns {
    grid-template-columns: 1fr;
  }
}

.site-footer__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  color: #c8d7e2;
  font-size: 0.8125rem;
  line-height: 1.55;
  box-sizing: border-box;
}

.site-footer__card a {
  color: #67e8f9;
  text-decoration: none;
}

.site-footer__card a:hover {
  text-decoration: underline;
}

/* Mesma área de exibição para CC e EU (logos com proporções diferentes) */
.site-footer__card img {
  display: block;
  margin: 0 auto 1.125rem;
  width: min(100%, 440px);
  height: 100px;
  object-fit: contain;
  object-position: center;
}

.site-footer__fine {
  margin: 0;
  max-width: 36rem;
  margin-inline: auto;
}

.site-footer__project {
  margin: 1rem 0 0;
  font-weight: 700;
  color: #e8f0f6;
}

.site-footer__bar {
  width: 100%;
  background: #000000;
  color: #ffffff;
  text-align: center;
  padding: 0.85rem 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.site-footer__bar p {
  margin: 0;
}

.site-footer__brand {
  color: #67e8f9;
  font-weight: 700;
}

/* Toolkit page — Hub actions (foreignObject) + flipbook modal */
body.toolkit-flipbook-open {
  overflow: hidden;
}

.toolkit-hub__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

.toolkit-hub__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0 1.35rem;
  border-radius: 18px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: nowrap;
}

.toolkit-hub__btn--primary {
  border: none;
  background: #8b5cf6;
  color: #ffffff;
}

.toolkit-hub__btn--primary:hover {
  background: #7c3aed;
  color: #ffffff;
}

.toolkit-hub__btn--primary:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}

.toolkit-hub__btn--secondary {
  background: #f3e8ff;
  color: #6d28d9;
  border-color: #c4b5fd;
}

.toolkit-hub__btn--secondary:hover {
  background: #ede9fe;
  color: #5b21b6;
}

.toolkit-hub__btn--secondary:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.toolkit-flipbook-modal[hidden] {
  display: none !important;
}

.toolkit-flipbook-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.toolkit-flipbook-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 14, 0.82);
  cursor: pointer;
}

.toolkit-flipbook-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(56rem, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(165deg, #1a0f2f 0%, #0d1825 55%, #151f31 100%);
  border: 1px solid #4c3d6b;
  border-radius: 22px;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55);
  color: #e2e8f0;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.toolkit-flipbook-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: #2d2640;
  color: #e9d5ff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.toolkit-flipbook-modal__close:hover {
  background: #3b3254;
  color: #ffffff;
}

.toolkit-flipbook-modal__title {
  margin: 0 2.75rem 0.35rem 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #d8b4fe;
  letter-spacing: -0.02em;
}

.toolkit-flipbook-modal__hint {
  margin: 0 2.75rem 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #94a3b8;
}

.toolkit-flipbook-modal__frame-wrap {
  flex: 1;
  min-height: min(70vh, 640px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #3a2f5b;
  background: #0b1220;
}

.toolkit-flipbook-modal__iframe {
  display: block;
  width: 100%;
  height: min(70vh, 640px);
  border: none;
  background: #101a28;
}

.toolkit-flipbook-modal__footer-actions {
  margin: 0.75rem 0 0;
  text-align: right;
}

.toolkit-flipbook-modal__download {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #c4b5fd;
  text-decoration: none;
}

.toolkit-flipbook-modal__download:hover {
  color: #ede9fe;
  text-decoration: underline;
}
