/* Identidade oficial TechSol — pacote P1 preparado, sem dependencia Wix em paginas privadas.
 * Asset original Wix: /assets/brand/techsol-logo.png (500x500).
 * Favicon local derivado: /assets/brand/techsol-favicon-32.png.
 * Mantem o CSS de layout legado; nao altera regras de autorizacao.
 */

:root {
  --techsol-brand-navy: #011C31;
  --techsol-brand-blue: #0A4272;
  --techsol-brand-cyan: #2FC0F1;
}

.brand-mark.brand-mark--official {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 5px;
  flex: 0 0 48px;
  overflow: hidden;
  border: 1px solid rgba(10,66,114,.13);
  border-radius: 13px;
  background: #fff;
  color: var(--techsol-brand-navy);
  box-shadow: 0 9px 22px rgba(1,28,49,.11);
}

.brand-compact .brand-mark.brand-mark--official {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  padding: 4px;
  border-radius: 12px;
}

.brand-mark--official img,
.orbit-core--official img,
.topbar-brand-logo {
  display: block;
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

.brand-mark--official img {
  width: 100%;
  aspect-ratio: 1;
}

.brand-copy strong { color: var(--techsol-brand-navy); }
.brand-copy { min-width: 0; overflow-wrap: anywhere; }

.login-orbit .orbit-core.orbit-core--official {
  inset: 12px;
  border-radius: 16px;
  padding: 6px;
  border: 1px solid rgba(10,66,114,.2);
  background: #fff;
  box-shadow: 0 5px 14px rgba(1,28,49,.12);
}
.login-orbit .orbit-core--official img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topbar .topbar-title {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
}
.topbar-title-text { min-width: 0; }
.topbar-title-text h1 { overflow-wrap: anywhere; }
.topbar-brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 4px;
  border: 1px solid rgba(10,66,114,.14);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(1,28,49,.09);
}

.brand:focus-visible,
.organization-picker select:focus-visible,
.menu-toggle:focus-visible,
.profile-top-actions a:focus-visible {
  outline: 3px solid var(--techsol-brand-cyan);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .public-header .brand, .profile-topbar .brand { max-width: 100%; }
  .topbar .topbar-title { gap: 8px; }
}

@media (max-width: 620px) {
  .brand-mark.brand-mark--official { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-compact .brand-mark.brand-mark--official { width: 38px; height: 38px; flex-basis: 38px; }
  .public-header .brand, .profile-topbar .brand { min-width: 0; }
  .brand strong { font-size: .88rem; }
  .brand small { font-size: .7rem; }
  .profile-topbar { flex-wrap: wrap; min-width: 0; padding-block: 12px; }
  .profile-top-actions { min-width: 0; max-width: 100%; flex-wrap: wrap; }
  .topbar { gap: 8px; }
  .topbar .topbar-title { gap: 7px; }
  .topbar-brand-logo { width: 34px; height: 34px; flex-basis: 34px; }
  .topbar-title-text h1 { font-size: 1rem; }
  .account-actions { gap: 5px; }
}

@media (max-width: 390px) {
  .dashboard { width: calc(100% - 20px); }
  .topbar { gap: 6px; }
  .topbar-brand-logo { width: 32px; height: 32px; flex-basis: 32px; }
  .topbar-title-text h1 { font-size: .94rem; letter-spacing: -.02em; }
  .account-actions { gap: 4px; flex: 0 0 auto; }
  .identity-chip { padding: 4px; }
  .account-actions form .button { min-width: 48px; padding-inline: 6px; }
}

@media (max-width: 340px) {
  .topbar-title-text h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand, .brand-mark--official img, .topbar-brand-logo { transition: none; }
}

/* P0 | Legibilidade da marca oficial.
 * O arquivo original 500x500 contem simbolo + lettering; em 32-48px
 * a escrita bitmap fica ilegivel. O recorte e exclusivamente CSS:
 * exibir o SIMBOLO no quadrado e o NOME real em HTML, sem alterar a arte.
 * Recorte normalizado da imagem: x~113..382, y~51..320 (500x500).
 */
.brand-mark.brand-mark--official {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  padding: 0;
  overflow: hidden;
  background: #011c31;
  border: 1px solid rgba(47,192,241,.20);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(1,28,49,.13);
}
.brand-compact .brand-mark.brand-mark--official {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  padding: 0;
  border-radius: 13px;
}
.brand-mark.brand-mark--official img,
.login-orbit .orbit-core--official img,
.topbar-brand-logo-wrap img.topbar-brand-logo {
  position: absolute;
  top: -19%;
  left: -42%;
  display: block;
  width: 186%;
  max-width: none;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: initial;
  aspect-ratio: auto;
}
.brand .brand-copy strong {
  display: block;
  color: #011c31;
  font-size: 1.03rem;
  font-weight: 780;
  line-height: 1.16;
  letter-spacing: -.025em;
  overflow-wrap: normal;
}
.brand .brand-copy small {
  display: block;
  color: #36566f;
  font-size: .77rem;
  line-height: 1.24;
  letter-spacing: 0;
}
.login-orbit .orbit-core.orbit-core--official {
  position: absolute;
  inset: 12px;
  display: block;
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
  background: #011c31;
}
.topbar-brand-logo-wrap {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border-radius: 12px;
  background: #011c31;
  border: 1px solid rgba(47,192,241,.2);
  box-shadow: 0 6px 14px rgba(1,28,49,.12);
}
.topbar .topbar-title-text .eyebrow {
  color: #315477;
  font-weight: 800;
  letter-spacing: .075em;
}
@media (max-width: 620px) {
  .brand-mark.brand-mark--official { width: 48px; height: 48px; flex-basis: 48px; }
  .brand-compact .brand-mark.brand-mark--official { width: 46px; height: 46px; flex-basis: 46px; }
  .brand .brand-copy strong { font-size: .96rem; }
  .brand .brand-copy small { font-size: .72rem; }
  .topbar-brand-logo-wrap { width: 40px; height: 40px; flex-basis: 40px; }
}
@media (max-width: 390px) {
  .brand-mark.brand-mark--official { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-compact .brand-mark.brand-mark--official { width: 42px; height: 42px; flex-basis: 42px; }
  .topbar-brand-logo-wrap { width: 36px; height: 36px; flex-basis: 36px; }
}
