/**
 * Template PatrioHub — casca do site (barra superior, conteudo, coluna direita, hero de visitante,
 * rodape e navegacao inferior do celular). Os tokens e a escala visual vem do prototipo.
 *
 * REGRAS DESTE ARQUIVO
 *  - Toda cor sai de uma variavel --ph-* (o modo escuro entra numa 2a etapa so' redefinindo-as).
 *  - NADA de backdrop-filter/transform/filter em ancestrais do conteudo: o painel lateral do
 *    avatar e os modais do EasySocial sao position:fixed e um desses pais os prenderia dentro
 *    do proprio pai.
 *  - O scroller e' o <html>; o body usa overflow:clip (nao cria contexto de rolagem, entao o
 *    position:sticky do cabecalho e da coluna direita continua valendo).
 *  - Ponto de corte desktop/celular da casca = 960px (o mesmo em que o toolbar D vira toolbar M).
 */

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.ttf") format("truetype"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.ttf") format("truetype"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.ttf") format("truetype"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.ttf") format("truetype"); }

:root {
	--ph-blue: #0755f9;
	--ph-navy: #05265f;
	--ph-ink: #152b4f;
	--ph-muted: #687b95;
	--ph-line: #e9edf4;
	--ph-bg: #e6eaf4;
	--ph-surface: #fff;
	--ph-cyan: #25c5ec;
	--ph-focus: #9abcff;
	--ph-radius: 12px;
	--ph-radius-sm: 9px;
	--ph-shadow: 0 4px 22px #12356204;
	--ph-header-h: 56px;
	--ph-rail-w: 280px;
	--ph-gap: 30px;
	/* Variavel que o CSS das Historias le para a borda esmaecida do carrossel. */
	--bs-body-bg: var(--ph-bg);
}

*, *::before, *::after { box-sizing: border-box; }

html {
	overflow-y: scroll;
	scroll-padding-top: calc(var(--ph-header-h) + 18px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow: clip;
	background: var(--ph-bg);
	color: var(--ph-ink);
	font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

.ph-skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.ph-skip:focus { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 12px; background: #fff; border-radius: var(--ph-radius-sm); }

:where(.ph-body) :focus-visible { outline: 2px solid var(--ph-focus); outline-offset: 2px; }

.ph-only-mobile { display: none; }

/* ------------------------------------------------------------------ Cabecalho */
.ph-header {
	position: sticky;
	top: 0;
	z-index: 30;
	height: calc(var(--ph-header-h) + env(safe-area-inset-top));
	padding-top: env(safe-area-inset-top);
	/* Translucido como no prototipo. O desfoque vai num pseudo-elemento (nao no proprio header):
	   backdrop-filter num ancestral viraria o bloco contentor do painel lateral do avatar
	   (position:fixed) e o prenderia dentro do cabecalho. */
	background: transparent;
	border-bottom: 1px solid #ffffff80;
}

.ph-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Um pouco mais branco que o fundo da pagina (#e6eaf4): 50% de branco sobre ele. */
	background: #ffffff80;
	-webkit-backdrop-filter: blur(20px) saturate(1.5);
	backdrop-filter: blur(20px) saturate(1.5);
}

.ph-header__inner {
	position: relative;
	max-width: 1600px;
	height: var(--ph-header-h);
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	align-items: center;
	gap: 35px;
}

.ph-header__mods { flex: 1 1 auto; min-width: 0; align-items: center; }
.ph-header__mods > * { width: 100%; }
.ph-header #fd { width: 100%; }

/* Logo: a mesma arte serve ao simbolo e ao nome — o CSS recorta cada parte (como no prototipo). */
.ph-brand { width: 205px; height: 49px; flex: none; display: flex; align-items: center; gap: 4px; text-decoration: none; }
.ph-brand__mark { width: 54px; height: 44px; position: relative; overflow: hidden; flex: none; }
.ph-brand__mark img { position: absolute; max-width: none; width: 137px; top: -1px; left: -40px; }
.ph-brand__word { height: 32px; width: 147px; position: relative; overflow: hidden; clip-path: inset(6px 0 0); }
.ph-brand__word img { position: absolute; max-width: none; width: 147px; bottom: 0; left: 0; }

/* -------------------------------------------------------------------- Conteudo */
.ph-main { outline: 0; }

.ph-container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 24px 40px 60px;
}

.ph-container--rail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--ph-rail-w);
	gap: var(--ph-gap);
	align-items: start;
}

.ph-content { min-width: 0; }

/* ------------------------------------------------------------ Coluna direita */
.ph-rail {
	position: sticky;
	top: calc(var(--ph-header-h) + 18px);
	display: grid;
	gap: 20px;
	align-self: start;
}

.ph-railmod { min-width: 0; }
.ph-railmod__title { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ph-ink); }

/* --------------------------------------------------------- Hero do visitante */
.ph-hero {
	min-height: calc(100dvh - var(--ph-header-h));
	display: flex;
	align-items: center;
	color: #fff;
	background:
		radial-gradient(900px 420px at 85% -10%, rgba(37, 197, 236, .35), transparent 60%),
		linear-gradient(135deg, var(--ph-navy) 0%, var(--ph-blue) 100%);
}

.ph-hero__inner {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 24px;
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 48px;
	align-items: center;
}

.ph-hero__copy h1 { margin: 0 0 16px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.ph-hero__copy p { margin: 0 0 24px; font-size: 20px; line-height: 1.5; color: rgba(255, 255, 255, .9); }

.ph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: var(--ph-radius-sm);
	font: 600 14px/1.45 Inter, sans-serif;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	border: 1px solid transparent;
}
.ph-btn--primary { background: var(--ph-blue); color: #fff; box-shadow: 0 3px 8px #0755f916; }
.ph-btn--light { background: #fff; color: var(--ph-blue); }
.ph-btn:hover { filter: brightness(.97); }

/* ------------------------------------------------------------------- Rodape */
.ph-footer { background: var(--ph-navy); color: rgba(255, 255, 255, .86); font-size: 13px; }
.ph-footer__inner { max-width: 1600px; margin: 0 auto; padding: 22px 40px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ph-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------- Navegacao inferior (celular) */
.ph-bottomnav {
	display: none;
	position: fixed;
	z-index: 25;
	left: 0;
	right: 0;
	bottom: 0;
	justify-content: space-around;
	align-items: center;
	padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .98);
	border-top: 1px solid var(--ph-line);
	box-shadow: 0 -5px 25px #19334e05;
}

.ph-bottomnav > a,
.ph-bottomnav > button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 60px;
	min-height: 46px;
	padding: 0;
	border: 0;
	background: none;
	border-radius: var(--ph-radius-sm);
	color: #93a0b4;
	font: 500 10px/1.2 Inter, sans-serif;
	text-decoration: none;
	cursor: pointer;
}

.ph-bottomnav .is-active { color: var(--ph-blue); }

/* ------------------------------------------------------------ Pagina de erro */
.ph-errorbox { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.ph-errorbox h1 { margin: 0; font-size: 56px; line-height: 1; color: var(--ph-blue); }
.ph-errorbox p { margin: 0; color: var(--ph-muted); }

/* ---------------------------------------------------------- Pontos de corte */
@media (min-width: 1500px) {
	:root { --ph-rail-w: 300px; --ph-gap: 36px; }
}

@media (max-width: 1199.98px) {
	.ph-container { padding-left: 24px; padding-right: 24px; }
	.ph-header__inner { padding: 0 24px; gap: 24px; }
}

@media (max-width: 1049.98px) {
	.ph-container--rail { display: block; }
	.ph-rail { display: none; }
}

@media (max-width: 959.98px) {
	.ph-only-desktop { display: none !important; }
	.ph-only-mobile { display: flex; }
	.ph-topmobile.ph-only-mobile { display: block; }

	.ph-header__inner { padding: 0 14px; gap: 12px; }
	.ph-brand { transform: scale(.8); transform-origin: left center; margin-right: -41px; }
	.ph-container { padding: 16px 14px 24px; }

	.ph-user .ph-bottomnav { display: flex; }
	.ph-user .ph-main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

	.ph-hero { align-items: flex-start; }
	.ph-hero__inner { grid-template-columns: 1fr; gap: 24px; padding: 28px 16px; }
	.ph-hero__copy { text-align: center; }
	.ph-hero__copy p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------- Busca global (topo) */
.ph-search {
	/* Alinhada ao feed: o template.js grava --ph-sl/--ph-sw a partir da coluna de conteudo;
	   sem feed (ou sem JS) fica centralizada no cabecalho. */
	position: absolute;
	left: var(--ph-sl, 50%);
	width: var(--ph-sw, 500px);
	max-width: calc(100% - 560px);
	transform: translateX(var(--ph-st, -50%));
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 40px;
	padding: 0 18px;
	/* Mesmo cartao da pilula de icones (+ sino) e do avatar: branco translucido, borda clara, sombra. */
	background: #ffffffd9;
	border: 1px solid #ffffffb8;
	border-radius: 999px;
	box-shadow: 0 6px 18px #0d2a5c1f, 0 1px 4px #0d2a5c10;
	color: #8994a8;
	transition: box-shadow .18s;
}
.ph-search:focus-within { box-shadow: 0 6px 18px #0d2a5c1f, 0 0 0 2px #9abcff; }

.ph-search svg { width: 18px; height: 18px; flex: none; }
.ph-search input { flex: 1; min-width: 0; border: 0; padding: 10px 0; background: none; outline: 0; font: 12px Inter, sans-serif; color: var(--ph-ink); }
.ph-search input::placeholder { color: #8d98ab; }

/* ------------------------------------- Cartoes da coluna direita (rail-card) */
.ph-railmod {
	padding: 18px;
	background: var(--ph-surface);
	border: 1px solid var(--ph-line);
	border-radius: var(--ph-radius);
	box-shadow: var(--ph-shadow);
}

/* Modulos que ja desenham o proprio cartao (anuncio, lojinha) ficam sem moldura dupla. */
.ph-railmod--135, .ph-railmod--113 { padding: 0; background: none; border: 0; box-shadow: none; }
.ph-railmod--135 .ph-railmod__title { padding: 0 2px; }

.ph-railmod__title { margin: 0 0 14px; font-size: 13px; font-weight: 700; color: var(--ph-navy); }

.ph-rail__foot { padding: 0 10px; font-size: 9px; line-height: 2; color: #9aa5b5; }
.ph-rail__foot a { color: #7183a0; }

@media (max-width: 959.98px) {
	.ph-search { display: none; }
}

/* Icones do topo no estilo do prototipo (linha fina) no lugar do Font Awesome. */
.ph-header .fdi.fa-user-friends::before { content: ""; display: block; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6'/%3E%3Cpath d='M16 5.2a3.2 3.2 0 0 1 0 5.6M18 14.3c1.8.8 3 2.6 3 4.7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6'/%3E%3Cpath d='M16 5.2a3.2 3.2 0 0 1 0 5.6M18 14.3c1.8.8 3 2.6 3 4.7'/%3E%3C/svg%3E") center / contain no-repeat; }
.ph-header .fdi.fa-bell::before { content: ""; display: block; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.ph-header .fdi.fa-comment-alt::before { content: ""; display: block; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ph-header .fdi.fa-plus::before { content: ""; display: block; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.ph-header .fdi.fa-plus::before { width: 16px; height: 16px; }

/* O atributo hidden precisa vencer qualquer `display` de autor (o UIkit garantia isso antes):
   sem isto o <video hidden> do visualizador de Historias ocupa lugar no flex e empurra a foto. */
[hidden] { display: none !important; }

/* ------------------------------------------------- Botao flutuante do chat */
.ph-chatfab {
	position: fixed;
	right: 24px;
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 30;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(145deg, #3a82ff, var(--ph-blue));
	box-shadow: 0 8px 24px #0755f94d;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s;
}

.ph-chatfab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px #0755f966; }

.ph-chatfab__badge {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border: 2px solid var(--ph-bg);
	border-radius: 11px;
	box-sizing: border-box;
	background: #e5195e;
	font: 700 11px/18px Inter, sans-serif;
	text-align: center;
}

/* Com o painel de conversas aberto o botao some (o painel ocupa o mesmo canto). */
body:has([data-ck-window]:not(.is-hidden)) .ph-chatfab { display: none; }

@media (max-width: 959.98px) {
	.ph-chatfab { width: 56px; height: 56px; right: 20px; bottom: calc(83px + env(safe-area-inset-bottom)); }
}

/* ======================================================================= Offcanvas */
.ph-oc[hidden] { display: none !important; }

.ph-oc { position: fixed; inset: 0; z-index: 2147483600; } /* acima da faixa de Modo suporte e do aviso de instalar o app */

.ph-oc__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 25, 45, .38);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .25s ease;
}

.ph-oc__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 50vw;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -12px 0 40px rgba(15, 25, 45, .18);
	transform: translateX(100%);
	transition: transform .25s ease;
}

.ph-oc.is-open .ph-oc__backdrop { opacity: 1; }
.ph-oc.is-open .ph-oc__panel { transform: none; }

.ph-oc__head {
	flex: none;
	height: 56px;
	padding: 0 14px 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--ph-line);
}

.ph-oc__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ph-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ph-oc__close {
	flex: none;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #2a2f3a;
	color: #fff;
	cursor: pointer;
}

.ph-oc__close:hover { background: #000; }

.ph-oc__body { position: relative; flex: 1; min-height: 0; }
.ph-oc__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }

.ph-oc__loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1; background: #fff; }
.ph-oc.is-loading .ph-oc__loading { display: flex; }
.ph-oc__loading::after {
	content: "";
	width: 30px;
	height: 30px;
	border: 3px solid var(--ph-line);
	border-top-color: var(--ph-blue);
	border-radius: 50%;
	animation: ph-spin .7s linear infinite;
}

@keyframes ph-spin { to { transform: rotate(360deg); } }

html.ph-oc-open { overflow: hidden; }

@media (max-width: 1360px) { .ph-oc__panel { width: 60vw; } }
@media (max-width: 1199.98px) { .ph-oc__panel { width: 75vw; } }
@media (max-width: 760px) { .ph-oc__panel { width: 90vw; } }

/* ----------------------------------------- Pagina dentro do offcanvas (iframe) */
html.ph-embed body { background: #fff; }

html.ph-embed .ph-header,
html.ph-embed .ph-rail,
html.ph-embed .ph-footer,
html.ph-embed .ph-bottomnav,
html.ph-embed .ph-chatfab,
html.ph-embed .ph-hero,
html.ph-embed .ph-topmobile,
html.ph-embed .ph-skip { display: none !important; }

html.ph-embed .ph-container,
html.ph-embed .ph-container--rail { display: block; max-width: none; padding: 20px 24px 40px; }

html.ph-embed .ph-user .ph-main { padding-bottom: 0; }

html.ph-embed #es .es-container { display: block; }
html.ph-embed #es .es-container__sidebar { display: none !important; }
html.ph-embed #es .es-container .es-content { width: 100% !important; max-width: none !important; margin: 0 !important; }

/* Faixas e avisos globais ficam so' na pagina de baixo, nao dentro do painel. */
html.ph-embed #edubase-ps-frame,
html.ph-embed #edubase-ps-bar,
html.ph-embed #edubase-pwa-install,
html.ph-embed [id^="edubase-push"],
html.ph-embed [id^="edubase-warn"] { display: none !important; }
html.ph-embed body { padding-top: 0 !important; margin-top: 0 !important; }

/* Privacidade e notificacoes: a coluna esquerda e' o menu de secoes da propria tela, entao fica
   (com largura fixa) e o conteudo ocupa o resto. */
html.ph-embed #es:is(.layout-editPrivacy, .layout-editNotifications, .layout-switchProfileEdit) .es-container { display: flex; gap: 24px; align-items: flex-start; }
html.ph-embed #es:is(.layout-editPrivacy, .layout-editNotifications, .layout-switchProfileEdit) .es-container__sidebar { display: block !important; flex: 0 0 220px; width: 220px; position: static; }
html.ph-embed #es:is(.layout-editPrivacy, .layout-editNotifications, .layout-switchProfileEdit) .es-container .es-content { flex: 1 1 auto; min-width: 0; width: auto !important; }

/* O menu principal do site nao se repete dentro do painel. */
html.ph-embed #es .ph-miniprofile,
html.ph-embed #es .ph-sidenav,
html.ph-embed #es .ph-invite,
html.ph-embed #es .ebc,
html.ph-embed #es .es-side-widget:has(.ebc) { display: none !important; }

/* ============================================================== Dicas (i) + balao */
.ph-tip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-left: 6px;
	border-radius: 50%;
	background: #e9f0ff;
	color: var(--ph-blue);
	font: 700 10px/1 Inter, sans-serif;
	font-style: italic;
	text-transform: none;
	letter-spacing: 0;
	vertical-align: middle;
	cursor: help;
	user-select: none;
}

.ph-tip:hover, .ph-tip:focus-visible { background: var(--ph-blue); color: #fff; outline: 0; }

.ph-tip-src { display: none !important; }

.ph-tooltip {
	position: fixed;
	z-index: 2147483646;
	max-width: 280px;
	padding: 8px 11px;
	border-radius: 8px;
	background: #111827;
	color: #fff;
	font: 500 12px/1.45 Inter, sans-serif;
	white-space: pre-line;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity .12s;
}

.ph-tooltip.is-on { opacity: 1; visibility: visible; }

/* ================================================== Desktop: topo (prototipo)
   Onde ficava a fileira de icones do EasySocial agora ha': "+" (publicar) e sino (com o numero de
   notificacoes, 1 a 9+) numa pilula, e o avatar num circulo a direita. Amigos e conversas saem do topo
   (conversas: botao flutuante e "Mensagens" no menu lateral). Mesma tecnica do topo mobile abaixo: a pilula
   e' UMA so' (a do sino) e o "+" fica por cima do espaco reservado a esquerda (padding-left). */
.ph-header__mods.ph-only-desktop #fd nav.fd-toolbar__o-nav { display: flex; align-items: center; gap: 10px; width: max-content; margin-left: auto; }

.ph-header__mods.ph-only-desktop #fd .fd-toolbar__o-nav-item:has(.fa-user-friends),
.ph-header__mods.ph-only-desktop #fd .fd-toolbar__o-nav-item:has(.fa-comment-alt) { display: none !important; }

/* "+": circulo cinza-azulado por cima da pilula do sino. */
.ph-header__mods.ph-only-desktop #fd .fd-toolbar__o-nav-item.ck-post-modal-trigger {
	order: 1;
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: none;
	margin-right: -46px;
	/* 3px de folga ate a curva da pilula (a mesma do topo e da base do circulo) e 5px ate o sino. */
	transform: translateX(-1px);
}

/* O modulo da toolbar (tmpl/default.php) desenha o "+" como quadrado com borda, com !important. */
.ph-header__mods.ph-only-desktop #fd .fd-toolbar__o-nav-item.ck-post-modal-trigger > .fd-toolbar__link.ck-post-open {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	border: 0 !important;
	border-radius: 50%;
	background: #eef2f8 !important;
	color: #4b5b75 !important;
	transition: background .18s, color .18s;
}

.ph-header__mods.ph-only-desktop #fd .fd-toolbar__o-nav-item.ck-post-modal-trigger > .fd-toolbar__link.ck-post-open:hover { background: var(--ph-blue) !important; color: #fff !important; }
.ph-header__mods.ph-only-desktop #fd .fd-toolbar__o-nav-item.ck-post-modal-trigger > .fd-toolbar__link.ck-post-open .fdi { font-size: 15px; }

/* Pilula do sino. */
.ph-header__mods.ph-only-desktop #fd .fd-toolbar__o-nav-item:has(.fa-bell) {
	order: 2;
	display: flex;
	align-items: center;
	height: 40px !important;
	width: auto !important;
	min-width: max-content !important;
	flex: 0 0 auto !important;
	overflow: visible;
	padding: 0 13px 0 41px !important;
	background: #ffffffd9;
	border: 1px solid #ffffffb8;
	border-radius: 999px;
	box-shadow: 0 6px 18px #0d2a5c1f, 0 1px 4px #0d2a5c10;
}

.ph-header__mods.ph-only-desktop #fd .fd-toolbar__o-nav-item:has(.fa-bell) > .fd-toolbar__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: auto !important;
	min-width: max-content !important;
	max-width: none !important;
	flex: 0 0 auto !important;
	white-space: nowrap;
	height: auto !important;
	padding: 0 !important;
	border: 0;
	background: none !important;
	color: #4b5b75;
}

/* Contador ao lado do sino (1 a 9+; o template.js limita) e ponto vermelho de "novo". */
.ph-header__mods.ph-only-desktop #fd .fa-bell + .fd-toolbar__link-bubble {
	position: static !important;
	min-width: 0;
	height: auto;
	padding: 0;
	background: none !important;
	border: 0;
	color: var(--ph-ink) !important;
	font: 700 12px/1 Inter, sans-serif;
	transform: none;
}

.ph-header__mods.ph-only-desktop #fd .fa-bell + .fd-toolbar__link-bubble:empty { display: none; }

.ph-header__mods.ph-only-desktop #fd .fd-toolbar__o-nav-item:has(.fa-bell) .fa-bell {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 34px !important;
	height: 34px !important;
	border-radius: 50%;
	background: #eef2f8;
	color: #4b5b75;
}

.ph-header__mods.ph-only-desktop #fd .has-new .fa-bell::after {
	content: "";
	position: absolute;
	right: 3px;
	top: 3px;
	width: 8px;
	height: 8px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #ef3b5d;
}

/* Avatar: circulo com a mesma sombra da pilula. */
.ph-header__mods.ph-only-desktop #fd .fd-toolbar__o-nav-item.is-user {
	order: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	margin: 0;
	background: #ffffffd9;
	border: 1px solid #ffffffb8;
	border-radius: 50%;
	box-shadow: 0 6px 18px #0d2a5c1f, 0 1px 4px #0d2a5c10;
}

/* Avatar do topo (desktop e celular): preenche o circulo e fica so' com o aro branco do prototipo
   (sem o anel verde de "online" — e' sempre a propria pessoa). */
.ph-header #fd .fd-toolbar__avatar .o-avatar { box-shadow: none !important; }

/* O circulo do avatar e' 40x40: o CSS do Foundry fixa o item em 30px de largura (`flex: 0 0 30px`) e o
   avatar em 32px, com `#fd` — por isso o seletor aqui tambem leva `#fd` (senao o circulo vira oval). */
.ph-header #fd .fd-toolbar__o-nav-item.is-user { flex: 0 0 40px !important; min-width: 40px !important; width: 40px !important; height: 40px !important; }
.ph-header #fd .fd-toolbar__o-nav-item.is-user > .fd-toolbar__link { width: 100%; min-width: 0; height: 100%; padding: 0; align-items: center; justify-content: center; }
.ph-header #fd .fd-toolbar__o-nav-item.is-user .fd-toolbar__avatar { width: auto; padding: 0; }
.ph-header #fd .fd-toolbar__o-nav-item.is-user .o-avatar { width: 36px; height: 36px; }
.ph-header #fd .fd-toolbar__o-nav-item.is-user .o-avatar__content,
.ph-header #fd .fd-toolbar__o-nav-item.is-user .o-avatar__content img { width: 100%; height: 100%; }

/* ================================================== Mobile: topo e menu inferior (prototipo) */
.ph-mobsearch { display: none; }

@media (max-width: 959.98px) {
	/* Topo: logo a esquerda; lupa + sino numa pilula e o avatar num circulo, a direita. */
	.ph-header__mods.ph-only-mobile { flex: 0 0 auto; width: max-content; margin-left: 0; }
	.ph-header__mods.ph-only-mobile > * { width: auto; }

	/* A pilula e' UMA so' (a do sino); a lupa fica por cima do espaco que ela reserva a esquerda
	   (padding-left do sino) — sem emenda entre as duas metades. */
	.ph-mobsearch {
		position: relative;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-left: auto;
		margin-right: -46px;
		transform: translateX(3px);
		width: 34px;
		height: 34px;
		flex: none;
		border-radius: 50%;
		background: #eef2f8;
		color: #4b5b75;
	}

	.ph-mobsearch svg { width: 20px; height: 20px; }

	.ph-header__mods.ph-only-mobile #fd nav.fd-toolbar__o-nav { display: flex; align-items: center; gap: 10px; }

	/* So' o sino e o avatar ficam no topo; amigos, conversas e "+" vao para o menu inferior/painel. */
	.ph-header__mods.ph-only-mobile #fd .fd-toolbar__o-nav-item:has(.fa-user-friends),
	.ph-header__mods.ph-only-mobile #fd .fd-toolbar__o-nav-item:has(.fa-comment-alt),
	.ph-header__mods.ph-only-mobile #fd .fd-toolbar__o-nav-item.ck-post-modal-trigger { display: none !important; }

	.ph-header__mods.ph-only-mobile #fd .fd-toolbar__o-nav-item:has(.fa-bell) {
		display: flex;
		align-items: center;
		height: 40px !important;
		width: auto !important;
		min-width: max-content !important;
		flex: 0 0 auto !important;
		overflow: visible;
		padding: 0 13px 0 41px !important;
		background: #ffffffd9;
		border: 1px solid #ffffffb8;
		border-radius: 999px;
		box-shadow: 0 6px 18px #0d2a5c1f, 0 1px 4px #0d2a5c10;
	}

	.ph-header__mods.ph-only-mobile #fd .fd-toolbar__o-nav-item:has(.fa-bell) > .fd-toolbar__link {
		position: relative;
		display: inline-flex;
		align-items: center;
		gap: 4px;
		width: auto !important;
		min-width: max-content !important;
		max-width: none !important;
		flex: 0 0 auto !important;
		white-space: nowrap;
		height: auto !important;
		padding: 0 !important;
		background: none !important;
		color: #4b5b75;
	}

	/* Contador ao lado do sino (em vez do selo sobreposto) e ponto vermelho de "novo". */
	.ph-header__mods.ph-only-mobile #fd .fa-bell + .fd-toolbar__link-bubble {
		position: static !important;
		min-width: 0;
		height: auto;
		padding: 0;
		background: none !important;
		border: 0;
		color: var(--ph-ink) !important;
		font: 700 12px/1 Inter, sans-serif;
		transform: none;
	}

	.ph-header__mods.ph-only-mobile #fd .fa-bell + .fd-toolbar__link-bubble:empty { display: none; }

	/* Cada icone da pilula tem o seu circulo (o do sino e' o proprio <i>). */
	.ph-header__mods.ph-only-mobile #fd .fd-toolbar__o-nav-item:has(.fa-bell) .fa-bell {
		position: relative;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 34px !important;
		height: 34px !important;
		border-radius: 50%;
		background: #eef2f8;
		color: #4b5b75;
	}

	.ph-header__mods.ph-only-mobile #fd .has-new .fa-bell::after {
		content: "";
		position: absolute;
		right: 3px;
		top: 3px;
		width: 8px;
		height: 8px;
		border: 2px solid #fff;
		border-radius: 50%;
		background: #ef3b5d;
	}

	.ph-header__mods.ph-only-mobile #fd .fd-toolbar__o-nav-item.is-user {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px !important;
		height: 40px !important;
		padding: 0 !important;
		margin: 0;
		background: #ffffffd9;
		border: 1px solid #ffffffb8;
		border-radius: 50%;
		box-shadow: 0 6px 18px #0d2a5c1f, 0 1px 4px #0d2a5c10;
	}

	/* Chat vai para o menu inferior: o botao flutuante some no celular. */
	.ph-chatfab { display: none !important; }

	/* Menu inferior: pilula flutuante, so' icones em circulos (home, comunidades, criar, chat, menu). */
	.ph-user .ph-bottomnav {
		left: 50%;
		right: auto;
		bottom: calc(14px + env(safe-area-inset-bottom));
		transform: translateX(-50%);
		width: calc(100% - 24px);
		max-width: 460px;
		justify-content: space-between;
		gap: 4px;
		padding: 8px 14px;
		border: 1px solid #ffffffb8;
		border-radius: 999px;
		background: #ffffffd9;
		box-shadow: 0 14px 34px #0d2a5c2e, 0 2px 8px #0d2a5c14;
	}

	.ph-bottomnav > a,
	.ph-bottomnav > button {
		position: relative;
		width: 46px;
		height: 46px;
		min-width: 46px;
		min-height: 46px;
		padding: 0;
		border-radius: 50%;
		background: #eef2f8;
		color: #6d7b92;
		gap: 0;
		transition: background .2s, color .2s, transform .15s;
	}

	.ph-bottomnav > a > span:not(.ph-bnbadge),
	.ph-bottomnav > button > span:not(.ph-bnbadge) { display: none; }

	.ph-bottomnav svg { width: 21px; height: 21px; stroke-width: 1.8; }
	.ph-bottomnav > a:active, .ph-bottomnav > button:active { transform: scale(.92); }

	.ph-bottomnav .is-active {
		background: linear-gradient(145deg, #4a8bff, #0755f9);
		color: #fff;
		box-shadow: 0 6px 14px #0755f93d;
	}

	.ph-bottomnav .ph-bottomnav__create {
		width: 50px;
		height: 50px;
		min-width: 50px;
		min-height: 50px;
		background: var(--ph-navy);
		color: #fff;
		box-shadow: 0 6px 14px #05265f40;
	}

	.ph-bottomnav .ph-bottomnav__create svg { width: 23px; height: 23px; stroke-width: 2.2; }

	.ph-bnbadge {
		position: absolute;
		top: 1px;
		right: 1px;
		min-width: 17px;
		height: 17px;
		padding: 0 4px;
		border: 2px solid #fff;
		border-radius: 9px;
		box-sizing: border-box;
		background: #e5195e;
		color: #fff;
		font: 700 9px/13px Inter, sans-serif;
		text-align: center;
	}
}
