/* Marca do Colégio Arquidiocesano Família de Nazaré sobre o Postiz v2.25.3 (revisado em 2026-11-02; a v1 para a v2.10.1 ficou em "brand-v1 (v2.10.1).css").
   Injetado pelo nginx do container (sub_filter); só CSS, sem mexer no DOM do React.
   Cores do Manual de Marca: azul #212F5C / #141D38, dourado #D6A542 / #A87C24, creme #F3E6C4.
   Fontes: kit Adobe rev4qmd (IvyPresto Headline). */
@import url("https://use.typekit.net/rev4qmd.css");

/* ---------- Paleta ---------- */

html:root .dark,
html:root .light {
  --new-btn-primary: #2b4596;
  --new-ai-btn: #9a7220;
  --color-forth: #2b4596;
  --color-seventh: #d6a542;
  --color-custom4: #d6a542;
  --color-custom7: #2b4596;
  --color-custom28: #e3c47a;
  --color-custom29: #141d38;
  --color-custom30: #2b4596;
  --color-custom41: #f3e6c4;
  --color-custom45: #2b4596;
  --color-custom51: #2b4596;
}

/* Escuro: preto do Postiz vira azul-noite da marca */
html:root .dark {
  --new-bgColor: #0c1224;
  --new-bgColorInner: #131b34;
  --new-bgLineColor: #1e2848;
  --new-blockSeparator: #1c2545;
  --new-btn-simple: #232e52;
  --new-box-hover: #19223f;
  --new-table-border: #232e52;
  --new-table-header: #172041;
  --new-table-text: #9ca5bf;
  --new-textItemBlur: #949db8;
  --new-textItemFocused: #141d38;
  --new-boxFocused: #f3e6c4;
  --new-table-text-focused: #d6a542;
  --new-small-strips: #121a33;
  --new-big-strips: #10172e;
  --new-col-color: #1e2848;
  --new-menu-dots: #6f7898;
  --popup-color: rgba(8, 12, 26, 0.55);
  --color-primary: #0c1224;
  --color-custom15: #0c1224;
  --color-custom40: #0c1224;
}

/* Claro: cinzas frios viram papel creme; destaques em azul */
html:root .light {
  --new-bgColor: #f5f2ea;
  --new-bgLineColor: #e8e3d6;
  --new-blockSeparator: #efebe1;
  --new-btn-simple: #ece7db;
  --new-box-hover: #f8f5ee;
  --new-table-border: #e8e3d6;
  --new-table-header: #faf8f2;
  --new-big-strips: #faf8f2;
  --new-col-color: #f0ece2;
  --new-textItemFocused: #212f5c;
  --new-boxFocused: #e6eaf5;
  --new-table-text-focused: #a87c24;
  --popup-color: rgba(20, 29, 56, 0.25);
  --color-primary: #f5f2ea;
}

/* ---------- Login (v2.25.3) ---------- */

/* Página inteira e caixa do formulário */
div.bg-\[\#0E0E0E\].min-h-screen.w-screen {
  background: #0b1122 !important;
}
div.lg\:w-\[600px\].bg-\[\#1A1919\] {
  background: #121a35 !important;
  border: 1px solid rgba(214, 165, 66, 0.22);
  border-radius: 18px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --new-bgColorInner: #0f1630;
  --new-table-border: rgba(243, 230, 196, 0.16);
  --color-fifth: rgba(243, 230, 196, 0.14);
}
div.lg\:w-\[600px\] h1 {
  font-family: ivypresto-headline, Georgia, serif;
  font-weight: 400 !important;
  font-size: 36px !important;
  letter-spacing: 0 !important;
  line-height: 1.1;
  color: #f3e6c4;
}
div.lg\:w-\[600px\] .text-\[14px\] {
  color: rgba(243, 230, 196, 0.85);
  font-weight: 500;
}
div.lg\:w-\[600px\] .border-newTableBorder {
  height: 46px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
div.lg\:w-\[600px\] .border-newTableBorder:focus-within {
  border-color: #d6a542;
  box-shadow: 0 0 0 3px rgba(214, 165, 66, 0.2);
}
div.lg\:w-\[600px\] button.bg-forth {
  font-weight: 600;
  letter-spacing: 0.02em;
  background-color: #2b4596 !important;
  box-shadow: inset 0 0 0 1px rgba(214, 165, 66, 0.35);
  transition: background-color 0.15s;
}
div.lg\:w-\[600px\] button.bg-forth:hover {
  background-color: #34529f !important;
}
div.lg\:w-\[600px\] a {
  color: #e3c47a;
  text-underline-offset: 3px;
}

/* Logo do Postiz (svg com o texto "postiz") vira brasão + "Social Media" + letreiro do Colégio */
div.max-w-\[440px\] > svg[viewBox="0 0 101 33"] {
  display: none !important;
}
div.max-w-\[440px\]:has(> svg[viewBox="0 0 101 33"])::before {
  content: "Social Media";
  display: block;
  min-height: 60px;
  padding: 0 0 0 56px;
  box-sizing: border-box;
  background:
    url(/cfn-brand/brasao.svg) left center / 46px 60px no-repeat,
    url(/cfn-brand/letreiro.svg) 57px 36px / 132px 24px no-repeat;
  font: 400 27px/32px ivypresto-headline, Georgia, serif;
  color: #f3e6c4;
  white-space: nowrap;
}

/* Painel da direita: no lugar dos depoimentos do Postiz, o painel do Colégio */
div.pt-\[88px\].lg\:flex > * {
  display: none !important;
}
@media (min-width: 1024px) {
  div.pt-\[88px\].lg\:flex {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background:
      url(/cfn-brand/brasao.svg) center calc(50% - 120px) / 134px 170px no-repeat,
      radial-gradient(ellipse 55% 42% at 50% 40%, rgba(214, 165, 66, 0.16), transparent 70%),
      linear-gradient(160deg, #263670 0%, #212f5c 40%, #141d38 100%);
    box-shadow: inset 0 0 0 1px rgba(214, 165, 66, 0.22);
  }
  div.pt-\[88px\].lg\:flex::before {
    content: "Social Media";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% + 0px);
    padding-bottom: 26px;
    text-align: center;
    font: 400 52px/1.15 ivypresto-headline, Georgia, serif;
    color: #f3e6c4;
    background: linear-gradient(90deg, transparent, #d6a542, transparent) center bottom / 170px 1px no-repeat;
  }
  div.pt-\[88px\].lg\:flex::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(50% + 112px);
    width: 320px;
    height: 74px;
    transform: translateX(-50%);
    background: url(/cfn-brand/letreiro.svg) center / contain no-repeat;
  }
}

/* ---------- Dentro do app ---------- */

/* Barra lateral: brasão no lugar do ícone do Postiz */
div:has(> svg[viewBox="0 0 60 60"]:first-child) > svg[viewBox="0 0 60 60"]:first-child {
  display: none;
}
div:has(> svg[viewBox="0 0 60 60"]:first-child)::before {
  content: "";
  display: block;
  width: 60px;
  height: 58px;
  margin-top: 14px;
  background: url(/cfn-brand/brasao.svg) center / contain no-repeat;
}

/* Título da página (Calendar, Settings...) em IvyPresto */
div.text-\[24px\].font-\[600\] > h1 {
  font-family: ivypresto-headline, Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  color: #f3e6c4;
}
.light div.text-\[24px\].font-\[600\] > h1 {
  color: #212f5c;
}

/* Marcador do item ativo nos menus: dourado no lugar do degradê roxo */
div.group\/profile > div.w-\[4px\] svg path {
  fill: #d6a542;
}

/* ---------- Ajustes para o Postiz em português ---------- */

/* Barra lateral: "Configurações" não cabe nos 64 px do Postiz e empurrava todos os
   itens 9 px para fora do cartão. Cartão de 92 px e coluna de 80 px centralizada. */
div.flex.flex-col.bg-newBgColorInner.w-\[80px\] {
  width: 92px !important;
  min-width: 92px;
}
div.fixed.h-full.w-\[64px\].start-\[17px\] {
  width: 80px !important;
  inset-inline-start: 18px !important;
}
div.fixed.h-full.w-\[64px\].start-\[17px\] .h-\[54px\].text-\[10px\] {
  padding-left: 3px;
  padding-right: 3px;
  letter-spacing: -0.01em;
}
div:has(> svg[viewBox="0 0 60 60"]:first-child)::before {
  margin-left: auto;
  margin-right: auto;
}

/* Botão "Mídia de design" (editor e Agent): largura fixa de 127 px cortava o texto */
.bg-forth.border-dashed.w-\[127px\] {
  width: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}
.bg-forth.border-dashed .text-\[12px\] {
  white-space: nowrap;
}

/* Calendário em tela estreita: as 7 colunas encolhiam até zero e "segunda-feira",
   "terça-feira"... se sobrepunham. Coluna de horas de 64 px (era 136), dia com no
   mínimo 92 px e rolagem lateral quando não couber. */
div[class*="grid-template-columns:136px_repeat(7"] {
  grid-template-columns: 64px repeat(7, minmax(92px, 1fr)) !important;
}
div.grid.grid-cols-7.grid-rows-\[62px_auto\] {
  grid-template-columns: repeat(7, minmax(92px, 1fr)) !important;
}
div[class*="grid-template-columns:136px_repeat(7"] > div.sticky.p-2,
div.grid.grid-cols-7.grid-rows-\[62px_auto\] > div.sticky.p-2 {
  padding-left: 4px;
  padding-right: 4px;
}
div[class*="grid-template-columns:136px_repeat(7"] > div.sticky .text-\[14px\],
div.grid.grid-cols-7.grid-rows-\[62px_auto\] > div.sticky.p-2 {
  font-size: 12.5px;
  white-space: nowrap;
}

/* "Criar publicação" quebrava em duas linhas no painel de canais */
button.bg-btnPrimary.min-h-\[44px\] {
  padding-inline-start: 12px !important;
  padding-inline-end: 14px !important;
}
button.bg-btnPrimary.min-h-\[44px\] .text-\[16px\] {
  white-space: nowrap;
  font-size: 15px;
}

/* Roxo desenhado fora das variáveis: gráficos de Análises e ilustração de Divulgações */
.bg-newTableHeader canvas,
img[src$="/peoplemarketplace.svg"] {
  filter: hue-rotate(-34deg) saturate(0.62) brightness(1.15);
}


/* ---------- Postiz v2.25.3: variáveis novas e cores fixas no código ---------- */

html:root .dark {
  --new-settings: #172041;
  --new-border: #232e52;
  --new-sep: #2a355c;
  --new-back-drop: #060a16;
  --copilot-kit-background-color: #0f1630;
  --copilot-kit-secondary-color: #172041;
  --copilot-kit-contrast-color: #172041;
  --copilot-kit-input-background-color: #1e2848;
  --copilot-kit-separator-color: #232e52;
  --copilot-kit-muted-color: #232e52;
}
html:root .light {
  --new-settings: #f0ece2;
  --new-border: #e8e3d6;
  --new-sep: #ddd6c6;
  --new-back-drop: #141d38;
}

/* roxo do Postiz (botões principais, destaques) → azul da marca */
.bg-\[\#612BD3\],
.bg-\[\#612bd3\],
.bg-\[\#9333EA\],
.bg-\[\#9333ea\] {
  background-color: #2b4596 !important;
}
.border-\[\#612BD3\],
.border-\[\#612bd3\],
.border-\[\#622FF6\],
.border-\[\#622ff6\] {
  border-color: #2b4596 !important;
}
.text-\[\#612BD3\],
.text-\[\#612bd3\],
.text-\[\#8B5CF6\],
.text-\[\#8b5cf6\],
.text-\[\#A78BFA\],
.text-\[\#a78bfa\] {
  color: #e3c47a !important;
}
.from-\[\#622AFF\],
.from-\[\#622aff\] {
  --tw-gradient-from: #2b4596 var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgba(43, 69, 150, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
.to-\[\#8B5CF6\],
.to-\[\#8b5cf6\] {
  --tw-gradient-to: #d6a542 var(--tw-gradient-to-position) !important;
}

/* rosa/magenta (canal selecionado, botões de IA e comentário) → dourado */
.border-\[\#FC69FF\],
.border-\[\#fc69ff\],
.border-\[\#AA0FA4\],
.border-\[\#aa0fa4\] {
  border-color: #d6a542 !important;
}
.text-\[\#FC69FF\],
.text-\[\#fc69ff\],
.\!text-\[\#FC69FF\],
.\!text-\[\#fc69ff\] {
  color: #d6a542 !important;
}
.bg-\[\#FC69FF\],
.bg-\[\#fc69ff\],
.bg-\[\#FF3EA2\],
.bg-\[\#ff3ea2\] {
  background-color: #d6a542 !important;
}
.bg-\[\#D82D7E\],
.bg-\[\#d82d7e\],
.bg-\[\#AA0FA4\],
.bg-\[\#aa0fa4\] {
  background-color: #9a7220 !important;
}

/* mesmas cores escritas direto nos SVGs (ícones, carregador) */
[fill="#612BD3" i], [fill="#622FF6" i], [fill="#9333EA" i], [fill="#8B5CF6" i] { fill: #2b4596; }
[stroke="#612BD3" i], [stroke="#622FF6" i], [stroke="#9333EA" i], [stroke="#8B5CF6" i] { stroke: #d6a542; }
[fill="#FC69FF" i], [fill="#FF3EA2" i], [fill="#D82D7E" i], [fill="#AA0FA4" i] { fill: #d6a542; }
[stroke="#FC69FF" i], [stroke="#FF3EA2" i], [stroke="#D82D7E" i], [stroke="#AA0FA4" i] { stroke: #d6a542; }
[stop-color="#612BD3" i], [stop-color="#622AFF" i], [stop-color="#8B5CF6" i] { stop-color: #2b4596; }
[stop-color="#FC69FF" i], [stop-color="#FF3EA2" i], [stop-color="#D82D7E" i] { stop-color: #d6a542; }