/* HorizonCash — painel admin. Mesma base do painel do TrackPDV com o acento do
   logo (azul) no lugar do roxo. */

body.is-admin {
  --navy: #1D6FCB;
  --navy-700: #175CA9;
  --focus: #2888E8;
  --focus-50: #E4F0FC;
  --top: #17181C;
  --shadow-btn: 0 6px 16px -6px rgba(29, 111, 203, .5);
  /* Os tints do acento são literais na base: com o acento trocado, precisam
     vir junto, senão o item ativo e os selos ficam com o fundo da base. */
  --accent-tint: #E4F0FC;
  --accent-line: #C7DFF8;
  --serie-0: #1D6FCB;
}
body.is-admin .g-side__quad { background: #17181C; box-shadow: 0 6px 16px -4px rgba(23, 24, 28, .45); }
body.is-admin .g-side__quad .ic { width: 22px; height: 22px; }
body.is-admin .g-menu a.is-active .g-menu__ic { background: rgba(29, 111, 203, .14); }
body.is-admin .g-badge--navy { background: #E4F0FC; color: #145BB0; }
body.is-admin .g-callout a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

:root[data-tema="escuro"] body.is-admin { --accent-tint: #16273C; --accent-line: #24456B; }

/* Listras do logo no topo do menu */
.a-listras { display: flex; height: 4px; }
.a-listras span { flex: 1; }
.a-listras span:nth-child(1) { background: #F03858; }
.a-listras span:nth-child(2) { background: #F89800; }
.a-listras span:nth-child(3) { background: #48C8E8; }
.a-listras span:nth-child(4) { background: #2888E8; }

/* Login */
.g-login__head .name { font-weight: 800; letter-spacing: -.01em; }

/* Lista de posts */
.a-post { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.a-post a { color: var(--ink); font-weight: 700; text-decoration: none; }
.a-post a:hover { text-decoration: underline; text-underline-offset: 2px; }
.a-post small { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.a-ponto { display: inline-block; width: 9px; height: 9px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; background: var(--muted); }
.a-ponto--coral { background: #F03858; }
.a-ponto--azul { background: #2888E8; }
.a-ponto--laranja { background: #F89800; }
.a-ponto--ciano { background: #48C8E8; }

/* Editor do post */
.a-editor { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.a-editor__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.a-editor__lado { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.a-capa { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line-3); background: var(--surface-2); }
.a-faq { display: flex; flex-direction: column; gap: 12px; }
.a-faq__item { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line-3); border-radius: var(--r); background: var(--surface-2); }
.a-faq__topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.a-contador { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.a-contador.is-longo { color: var(--amber-ink); font-weight: 700; }
.a-url { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.tox-tinymce { border-radius: var(--r) !important; border-color: var(--line-3) !important; }

/* Cartões do comparador */
.a-cartao-img { width: 56px; height: 36px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line-3); }
.a-nota { font-family: var(--font-mono); font-weight: 700; }
.a-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 200px; }

/* Mensagens do contato */
.a-msg { white-space: pre-line; font-size: 13.5px; line-height: 1.55; color: var(--ink); max-width: 640px; }

/* Equipe */
.a-avatar { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; background: var(--surface-2); vertical-align: middle; margin-right: 8px; }
.a-avatar-grande { width: 84px; height: 84px; border-radius: 999px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line-3); }

@media (max-width: 720px) {
  .a-editor__lado { flex-basis: 100%; }
}
