/* NAONDE — coluna esquerda, logo e rodapé estáticos (reconstrução de 16/11/2026).
   Regras: nada se move. Sem animation, transform ou will-change nesses elementos.
   Feedback visual só por cor. Medidas explícitas para não haver layout shift.
   Tudo aqui vale só para computador (min-width); o celular continua como estava. */

html { scrollbar-gutter: stable; }

/* ---------- Logo do topo ---------- */
header.navbar #logo {
  display: flex;
  align-items: center;
  flex: 0 0 139px;
  width: 139px;
  height: 40px;
}
header.navbar #logo img {
  display: block;
  width: 139px;
  height: 22px;
  object-fit: contain;
}
@media (min-width: 601px) {
  /* logo alinhada com os ícones da coluna esquerda; nunca encosta no botão Atividades (termina em 74px) */
  html:not(.nd-espelho) header.navbar #logo { margin-left: calc(max(86px, max(0px, 50vw - 630px) + 35px) - 16px) !important; }
  header.navbar .nav-left #menuBtn { position: absolute; left: 16px; top: 8px; }
  /* busca do topo sempre logo depois da logo (antes um script empurrava a busca com margem) */
  html:not(.nd-espelho) body header.navbar .search-wrap { left: calc(max(86px, max(0px, 50vw - 630px) + 35px) + 164px); margin-left: 0; }
  /* nas abas em que a busca fica no topo, ela termina antes dos ícones do centro */
  html:not(.nd-espelho) body:is(.videos, .amigos, .loja, .hub-on) header.navbar .search-wrap { max-width: calc(max(50% - 260px, min(15.35% + 329px, 50% - 110px)) - 12px - max(86px, max(0px, 50vw - 630px) + 35px) - 164px) !important; }
  html:not(.nd-espelho) body:is(.videos, .amigos, .loja, .hub-on) header.navbar .search-wrap .search { max-width: 100% !important; min-width: 0 !important; }
}
@media (max-width: 600px) {
  html:not(.nd-espelho) header.navbar #logo { margin-left: 76px !important; flex-basis: 112px; width: 112px; }
  header.navbar #logo img { width: 112px; height: 18px; }
}

/* ---------- Coluna esquerda (computador) ----------
   Mesmo visual de antes (botões grandes). Os ícones ficam alinhados com a borda esquerda da logo por uma conta fixa
   de CSS; antes um script recalculava isso a cada troca de aba e fazia a coluna tremer. */
@media (min-width: 901px) {
  html body:not(.n25-chat) #cmHomeSide .hx-nav { padding-left: calc(10px + max(0px, 51px - max(0px, 50vw - 630px))) !important; }
}

/* ---------- Coluna direita e rodapé NAONDE (computador) ---------- */
@media (min-width: 1320px) {
  body:not(.videos):not(.loja):not(.conta):not(.amigos):not(.nx-aberta):not(.hub-on) #homeDir { bottom: auto !important; }
  #homeDir#homeDir > .hd-box.n23-quem { margin-top: 0 !important; }
  #homeDir > .naonde-brasil {
    position: fixed !important;
    left: calc(min(50% + 348px, 100% - 344px) + 16px) !important;
    right: auto !important;
    bottom: 16px !important;
    top: auto !important;
    width: 308px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
}

/* ---------- Fotos e vídeos dos posts sem faixa preta ---------- */
.n23r-midia, .ndp, .ndp > video, video.pc-img, .nd58-vid, .nd58-player, .nd59 .nxp-midia video,
.n32v-caixa:not(.sem-midia), .n32v-midia { background: transparent !important; }
@media (min-width: 761px) {
  .n32v-caixa.nd-ajustada { max-width: calc(100vw - 48px); }
  .n32v-caixa.nd-ajustada .n32v-midia img,
  .n32v-caixa.nd-ajustada .n32v-midia video { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
}

/* ---------- Premium: some toda propaganda "Ver planos" para quem já assina ---------- */
html.nd-premium-on .hd-premium { display: none !important; }

/* ---------- Seguidores / Seguindo / Amigos: tipografia Apple, sem ícones ---------- */
.nxp-seg, .nd-segs, .n32-hc-n, .n23pf-n, .nd-pf-num, .nd58-meu-n {
  font-family: var(--nd-fonte) !important;
  font-size: 15px !important;
  letter-spacing: -.01em;
  color: #6e6e73 !important;
}
.nxp-seg { display: flex !important; align-items: baseline !important; gap: 22px !important; }
.nxp-seg button, .nxp-seg span, .nd-segs button, .nd-segs span, .n23pf-n button {
  display: inline-flex !important; align-items: baseline !important; gap: 5px !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important;
  font: inherit !important; font-size: 15px !important; font-weight: 400 !important;
  color: #6e6e73 !important; text-decoration: none !important;
  transition: color .15s ease;
}
.nxp-seg b, .nd-segs b, .n32-hc-n b, .n23pf-n b, .nd-pf-num b, .nd58-meu-n b {
  color: #1d1d1f !important; font-weight: 600 !important; font-variant-numeric: tabular-nums;
}
.nxp-seg button:hover, .nd-segs button:hover, .n23pf-n button:hover { color: #1d1d1f !important; text-decoration: none !important; }
.nxp-seg .nxp-amg { margin-left: auto !important; }
.nxp-seg i.ti, .nd-segs i.ti, .n32-hc-n i.ti, .n23pf-n i.ti { display: none !important; }
body.escuro .nxp-seg b, body.escuro .nd-segs b, body.escuro .n32-hc-n b { color: #f5f5f7 !important; }
body.escuro .nxp-seg button, body.escuro .nd-segs button { color: #a1a1a6 !important; }

/* ---------- Story: anel colorido (estilo Instagram) em volta de quem postou story ---------- */
.nd42-anel:not(.sem):not(.visto) {
  padding: 4px !important;
  background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #962fbf, #d62976, #fa7e1e, #feda75) !important;
}
.nd42-anel:not(.sem) .nd42-foto { width: 70px !important; height: 70px !important; box-shadow: 0 0 0 2.5px #fff !important; }
.nd42-anel.visto { padding: 4px !important; background: #d2d2d7 !important; }
html.nd-escuro .nd42-anel:not(.sem) .nd42-foto { box-shadow: 0 0 0 2.5px #000 !important; }
@media (max-width: 600px) { .nd42-anel:not(.sem) .nd42-foto { width: 62px !important; height: 62px !important; } }
.sc:not(.criar):not(.visto) .sc-anel { background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #962fbf, #d62976, #fa7e1e, #feda75) !important; }

/* ---------- Menu dos 3 pontos (posts próprios) ---------- */
.nd-meu3-pop { position: absolute; z-index: 100050; min-width: 210px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 12px 32px rgba(17, 24, 39, .18); font-family: var(--nd-fonte); }
.nd-meu3-pop button { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: #1d1d1f; font: inherit; font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer; transition: background-color .15s ease; }
.nd-meu3-pop button:hover { background: rgba(0, 0, 0, .05); }
.nd-meu3-pop button i { font-size: 18px; color: #1d1d1f; }
.nd-meu3-pop button.perigo, .nd-meu3-pop button.perigo i { color: #ff3b30; }
html.nd-escuro .nd-meu3-pop { background: rgba(28, 28, 30, .92); border-color: rgba(255, 255, 255, .08); }
html.nd-escuro .nd-meu3-pop button, html.nd-escuro .nd-meu3-pop button i { color: #f5f5f7; }

/* ---------- Rodapé NAONDE: vira "NAONDE Premium" para quem assina ---------- */
html.nd-premium-on .ft-linha .ft-logo-btn { display: inline-flex !important; align-items: center !important; gap: 6px !important; width: auto !important; }
html.nd-premium-on .ft-linha .ft-logo-btn::after {
  content: "Premium";
  font-family: var(--nd-fonte);
  font-size: 15px; font-weight: 700; letter-spacing: .01em; line-height: 1; color: #1d1d1f; white-space: nowrap;
}
html.nd-escuro.nd-premium-on .ft-linha .ft-logo-btn::after { color: #f5f5f7; }

/* rodapé NAONDE: sem piano; "NAONDE É BRASILEIRA" e os links só aparecem no clique, ao lado direito da marca */
.naonde-brasil.nb33 > .nb33-piano, .nb33-flutua { display: none !important; }
.naonde-brasil.nb33 > .nb33-info, .naonde-brasil.nb33:hover > .nb33-info, .naonde-brasil.nb33:focus-within > .nb33-info { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transition: none !important; transform: none !important; }
html body .naonde-brasil.nb33.nb33-info-on > .nb33-info { position: fixed !important; left: var(--nb33-l, 0px) !important; top: var(--nb33-t, 0px) !important; right: auto !important; bottom: auto !important; translate: none !important; transform: none !important; width: max-content !important; max-width: calc(100vw - 24px) !important; margin: 0 !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; z-index: 60 !important; }
html body .naonde-brasil.nb33.nb33-info-on > .nb33-info, html body .naonde-brasil.nb33.nb33-info-on > .nb33-info * { text-align: left !important; justify-content: flex-start !important; }
html body .naonde-brasil.nb33.nb33-info-on > .nb33-info[data-lado="cima"], html body .naonde-brasil.nb33.nb33-info-on > .nb33-info[data-lado="cima"] * { text-align: right !important; justify-content: flex-end !important; }

/* "Quem seguir": só pessoas com Seguir; sem ninguém para sugerir, a caixa não aparece */
#homeDir .n23-quem .hd-vazio, #homeDir .n23-quem .n23-ach, #homeDir .n23-quem .n25-mais-dir { display: none !important; }
#homeDir .n23-quem.nd-vazio, #homeDir .n23-quem:not(:has(.hd-pessoa, .n25-ps)) { display: none !important; }
html body #homeDir > .naonde-brasil.nb33.nb33-info-on > .nb33-info :is(.nb33-lema, .nb33-links) { justify-content: flex-start !important; }
html body #homeDir > .naonde-brasil.nb33.nb33-info-on > .nb33-info[data-lado="cima"] :is(.nb33-lema, .nb33-links) { justify-content: flex-end !important; }
