/* Panorama RJ — Colunistas 1.2.3 | diretório e coluna editorial responsivos */
.prjc-wrap { --prjc-accent:#c32b45; --prjc-line:rgba(130,135,145,.27); --prjc-surface:rgba(128,128,128,.065); box-sizing:border-box; max-width:1180px; margin:18px auto 44px; padding:0 14px; font:inherit; color:inherit; }
.prjc-wrap *, .prjc-wrap *::before, .prjc-wrap *::after { box-sizing:border-box; }
.prjc-wrap :is(h1,h2,h3,h4) { color:inherit!important; font-family:inherit!important; line-height:1.22; text-transform:none; letter-spacing:normal; }
.prjc-wrap a { color:inherit; }
.prjc-wrap a:hover { color:var(--prjc-accent); }
.prjc-wrap :is(p,h1,h2,h3,h4) { overflow-wrap:break-word; }
.prjc-eyebrow { margin:0 0 7px!important; color:var(--prjc-accent)!important; font-size:.72rem!important; letter-spacing:.11em; text-transform:uppercase; font-weight:750; line-height:1.4; }

/* Acesso dos colunistas: primeiro elemento, permanente durante a rolagem.
   Escopo restrito ao diretorio e aos perfis; nao altera o cabecalho global do portal. */
.prjc-wrap .prjc-access-top {
  position:sticky;
  top:12px;
  z-index:500;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px 20px;
  margin:0 0 24px;
  padding:13px 18px;
  border:1px solid rgba(255,255,255,.12);
  border-left:4px solid #f19cac;
  border-radius:8px;
  color:#fff;
  background:#0b3c6e;
  box-shadow:0 5px 16px rgba(0,0,0,.14);
}
.prjc-wrap .prjc-access-top-copy { display:flex; flex:1 1 210px; flex-direction:column; gap:2px; line-height:1.35; min-width:0; }
.prjc-wrap .prjc-access-top-copy strong { color:#fff!important; font-size:.94rem; font-weight:760; }
.prjc-wrap .prjc-access-top-copy span { color:#e6edf6!important; font-size:.80rem; }
.prjc-wrap .prjc-access-top-button,
.prjc-wrap .prjc-access-top-button:visited {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  flex:0 0 auto;
  padding:11px 18px;
  border:2px solid #fff;
  border-radius:6px;
  color:#fff!important;
  background:#a91f3e!important;
  font-size:.90rem;
  font-weight:780;
  line-height:1.25;
  text-align:center;
  text-decoration:none!important;
  white-space:nowrap;
}
.prjc-wrap .prjc-access-top-button:hover { background:#861631!important; color:#fff!important; border-color:#fff; }
.prjc-wrap .prjc-access-top-button:focus-visible { outline:3px solid #ffe269!important; outline-offset:3px; }
body.admin-bar .prjc-wrap .prjc-access-top {top:44px;}

/* Diretório: avatar + nome na mesma linha, 3 colunas no computador. */
.prjc-directory-head { margin:0 0 23px; padding:0 0 17px; border-bottom:1px solid var(--prjc-line); }
.prjc-directory-head h1 { margin:0 0 9px!important; font-size:clamp(1.65rem,3vw,2.15rem)!important; font-weight:800!important; }
.prjc-directory-head > p:last-child { margin:0!important; font-size:.98rem; line-height:1.5; opacity:.76; }
.prjc-grid { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 24px; }
.prjc-card { display:grid!important; grid-template-columns:76px minmax(0,1fr); align-items:center!important; column-gap:13px; text-align:left!important; min-width:0; padding:15px 3px; background:transparent!important; border:0!important; border-bottom:1px solid var(--prjc-line)!important; border-radius:0!important; box-shadow:none!important; }
.prjc-card-photo { display:block; width:76px; line-height:0; }
.prjc-avatar { display:block; width:76px; height:76px; object-fit:cover; border-radius:50%; border:2px solid var(--prjc-line); background:var(--prjc-surface); }
.prjc-card .prjc-avatar { width:76px; height:76px; }
.prjc-card-body { min-width:0; }
.prjc-card h2 { margin:0 0 5px!important; font-size:clamp(.99rem,1.3vw,1.17rem)!important; font-weight:760!important; line-height:1.26!important; }
.prjc-card h2 a { text-decoration:none!important; color:inherit!important; }
.prjc-card h2 a:hover { color:var(--prjc-accent)!important; }
.prjc-byline { font-size:.85rem!important; font-weight:500!important; line-height:1.35!important; opacity:.74; margin:0!important; }
.prjc-access { margin:26px 0 0; padding:12px 15px; border-left:3px solid var(--prjc-accent); background:var(--prjc-surface); font-size:.87rem; }
.prjc-access a { color:var(--prjc-accent); text-decoration:underline; }

/* Página individual: bloco de identificação horizontal até no telefone. */
.prjc-back { margin:2px 0 15px; font-size:.86rem; }
.prjc-back a { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.prjc-profile-header { display:grid!important; grid-template-columns:128px minmax(0,1fr)!important; align-items:center!important; gap:21px!important; margin:0 0 29px!important; padding:20px 22px!important; background:var(--prjc-surface)!important; border:1px solid var(--prjc-line)!important; border-radius:9px!important; text-align:left!important; }
.prjc-profile-photo { align-self:start; }
.prjc-profile-photo .prjc-avatar { width:118px!important; height:118px!important; max-width:none; }
.prjc-profile-main { min-width:0; }
.prjc-profile-main h1 { font-size:clamp(1.4rem,2.5vw,2rem)!important; font-weight:800!important; margin:0 0 5px!important; }
.prjc-profile-main .prjc-byline { margin:0 0 8px!important; font-size:.95rem!important; font-weight:650!important; }
.prjc-bio-preview { margin:0 0 6px!important; font-size:.88rem!important; line-height:1.45!important; opacity:.82; }
.prjc-bio-more { font-size:.85rem!important; line-height:1.5; }
.prjc-bio-more summary { display:inline-block; color:var(--prjc-accent); text-decoration:underline; text-underline-offset:3px; font-size:.82rem; font-weight:700; cursor:pointer; }
.prjc-bio-more summary::marker { color:var(--prjc-accent); }
.prjc-bio-full { margin-top:12px; padding:12px 0 0; border-top:1px solid var(--prjc-line); white-space:normal; }
.prjc-email { margin:8px 0 0!important; font-size:.82rem; overflow-wrap:anywhere; }
.prjc-email a { color:var(--prjc-accent); text-decoration:underline; }

/* Lista editorial: manchete e resumo ao lado da imagem, data discreta. */
.prjc-list-title { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:7px 16px; border-bottom:2px solid var(--prjc-accent); margin:0 0 10px; padding:0 0 10px; }
.prjc-list-title h2 { font-size:clamp(1.22rem,2vw,1.55rem)!important; font-weight:800!important; margin:0!important; }
.prjc-list-title span { font-size:.85rem; opacity:.65; }
.prjc-articles { display:block!important; }
.prjc-article { display:grid!important; grid-template-columns:188px minmax(0,1fr)!important; gap:18px!important; align-items:start!important; padding:18px 0!important; border:0!important; border-bottom:1px solid var(--prjc-line)!important; border-radius:0!important; box-shadow:none!important; background:transparent!important; min-width:0; }
.prjc-article-media { display:block; width:100%; aspect-ratio:16/10; line-height:0; overflow:hidden; border-radius:5px; background:var(--prjc-surface); }
.prjc-article-media img { display:block; width:100%!important; height:100%!important; max-width:none!important; object-fit:cover!important; border:0; }
.prjc-article-placeholder { display:flex; width:100%; height:100%; align-items:center; justify-content:center; font-size:.9rem; font-weight:800; letter-spacing:-.025em; opacity:.5; }
.prjc-article-copy { min-width:0; }
.prjc-article h3 { font-size:clamp(1.06rem,1.55vw,1.37rem)!important; font-weight:780!important; line-height:1.3!important; margin:0 0 9px!important; }
.prjc-article h3 a { color:inherit!important; text-decoration:none!important; }
.prjc-article h3 a:hover { color:var(--prjc-accent)!important; }
.prjc-article-excerpt { font-size:.9rem!important; line-height:1.48!important; opacity:.76; margin:0 0 8px!important; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.prjc-article-meta { font-size:.73rem!important; line-height:1.45!important; opacity:.57; margin:0!important; }
.prjc-pages { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.prjc-pages a { padding:6px 12px; border:1px solid var(--prjc-line); border-radius:4px; text-decoration:none; }
.prjc-pages a[aria-current="page"] { background:var(--prjc-accent); color:#fff; }

/* Painel editorial existente: manter seu editor e permissões, com boa legibilidade. */
.prjc-portal { max-width:980px; }
.prjc-portal-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:15px; }
.prjc-portal-head h2 { font-size:1.5rem!important; margin:0!important; }
.prjc-tabs { display:flex; gap:12px; flex-wrap:wrap; margin:16px 0 24px; border-bottom:1px solid var(--prjc-line); padding-bottom:10px; }
.prjc-tabs a { padding:7px 10px; text-decoration:none; }
.prjc-tabs a.is-active { font-weight:750; border-bottom:3px solid var(--prjc-accent); }
.prjc-panel { background:var(--prjc-surface); border:1px solid var(--prjc-line); border-radius:11px; padding:22px; margin:16px 0 24px; }
.prjc-panel h3 { font-size:1.25rem!important; }
.prjc-form { display:flex; flex-direction:column; gap:11px; }
.prjc-form label { font-size:.95rem; font-weight:650; margin-top:8px; }
.prjc-form input[type="text"],.prjc-form input[type="email"],.prjc-form textarea { display:block; width:100%; background:#fff; color:#20242b; border:1px solid #bfc5ce; border-radius:7px; padding:12px; font:inherit; }
.prjc-form input[type="file"] { padding:9px 0; max-width:100%; }
.prjc-form .prjc-checkbox { display:flex; align-items:center; gap:10px; font-weight:400; }
.prjc-form .prjc-checkbox input { width:18px; height:18px; }
.prjc-form .wp-editor-wrap { width:100%; }
.prjc-field-help { margin:-5px 0 6px!important; font-size:.82rem; opacity:.7; }
.prjc-button,.prjc-wrap button.prjc-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:6px; background:var(--prjc-accent); color:#fff!important; text-decoration:none!important; padding:12px 19px; font-size:.93rem; font-weight:700; cursor:pointer; }
.prjc-button:hover,.prjc-wrap button.prjc-button:hover { filter:brightness(.9); }
.prjc-secondary,.prjc-wrap button.prjc-secondary { background:#ecedf0!important; color:#222!important; }
.prjc-actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-top:12px; }
.prjc-my-posts { list-style:none; padding:0; margin:0; }
.prjc-my-posts li { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 0; border-bottom:1px solid var(--prjc-line); }
.prjc-my-posts li:last-child { border-bottom:0; }
.prjc-my-posts small { display:block; margin-top:5px; opacity:.7; }
.prjc-notice,.prjc-success,.prjc-error { border-radius:8px; padding:16px 20px; margin:14px 0; background:var(--prjc-surface); border:1px solid var(--prjc-line); }
.prjc-success { border-color:#44966a; }
.prjc-error { border-color:#c64d4d; }
.prjc-author-signature { margin-top:32px; border-top:1px solid var(--prjc-line); padding:15px 0; }
.prjc-small img { vertical-align:middle; margin-left:12px; max-height:60px; width:auto; }


/* Editor frontal (Quicktags + TinyMCE): contrates acessiveis no modo Codigo e Visual.
   Escopo limitado ao painel dos colunistas para nao modificar Elementor nem WP Admin. */
.prjc-portal .wp-editor-wrap {
  --prjc-editor-fg: #1d2327;
  --prjc-editor-stroke: #8c9299;
  --prjc-editor-bg: #fff;
  color: var(--prjc-editor-fg) !important;
}
.prjc-portal .wp-editor-wrap .wp-editor-tools {
  min-height: 37px;
}
.prjc-portal .wp-editor-wrap .wp-switch-editor {
  background: #eef0f3 !important;
  color: #1d2327 !important;
  border: 1px solid #8c9299 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-weight: 650 !important;
  padding: 7px 12px !important;
  opacity: 1 !important;
}
.prjc-portal .wp-editor-wrap.html-active .switch-html,
.prjc-portal .wp-editor-wrap.tmce-active .switch-tmce {
  background: #fff !important;
  color: #a0203d !important;
  border-bottom-color: #fff !important;
  box-shadow: inset 0 3px 0 #c32b45 !important;
}
.prjc-portal .wp-editor-wrap .wp-switch-editor:hover,
.prjc-portal .wp-editor-wrap .wp-switch-editor:focus-visible {
  color: #fff !important;
  background: #234e83 !important;
  outline: 2px solid #234e83;
  outline-offset: 2px;
}
.prjc-portal .wp-editor-wrap .wp-editor-container,
.prjc-portal .wp-editor-wrap .quicktags-toolbar,
.prjc-portal .wp-editor-wrap .mce-toolbar-grp,
.prjc-portal .wp-editor-wrap .mce-statusbar {
  border-color: #b7bcc4 !important;
}
.prjc-portal .wp-editor-wrap .quicktags-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px;
  min-height: 40px;
  padding: 7px !important;
  background: #f1f3f6 !important;
  color: #1d2327 !important;
}
.prjc-portal .wp-editor-wrap .quicktags-toolbar :is(input.ed_button, input.button, button) {
  appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 33px;
  min-height: 31px;
  width: auto;
  padding: 4px 9px !important;
  border: 1px solid #747b84 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  background: #fff !important;
  color: #1d2327 !important;
  font-family: inherit;
  font-weight: 700 !important;
  font-size: 13px !important;
  opacity: 1 !important;
  text-shadow: none !important;
  cursor: pointer;
}
.prjc-portal .wp-editor-wrap .quicktags-toolbar :is(input.ed_button, input.button, button):hover,
.prjc-portal .wp-editor-wrap .quicktags-toolbar :is(input.ed_button, input.button, button):focus-visible {
  border-color: #234e83 !important;
  background: #e4eefb !important;
  color: #122e4d !important;
  outline: 2px solid #234e83;
  outline-offset: 1px;
}
.prjc-portal .wp-editor-wrap .quicktags-toolbar :is(input.ed_button, input.button, button):active {
  background: #c8def7 !important;
}
/* Barra visual TinyMCE 4/5 – neutraliza elementos escuros herdados do tema. */
.prjc-portal .wp-editor-wrap .mce-toolbar-grp,
.prjc-portal .wp-editor-wrap .mce-container-body.mce-flow-layout,
.prjc-portal .wp-editor-wrap .mce-toolbar {
  background: #f1f3f6 !important;
}
.prjc-portal .wp-editor-wrap .mce-btn {
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.prjc-portal .wp-editor-wrap .mce-btn button {
  background: transparent !important;
  color: #1d2327 !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
.prjc-portal .wp-editor-wrap .mce-btn :is(.mce-ico, .mce-txt, .mce-caret) {
  color: #1d2327 !important;
  opacity: 1 !important;
}
.prjc-portal .wp-editor-wrap .mce-btn:hover,
.prjc-portal .wp-editor-wrap .mce-btn:focus-within,
.prjc-portal .wp-editor-wrap .mce-btn.mce-active {
  border-color: #8c9299 !important;
  background: #dce9f8 !important;
}
.prjc-portal .wp-editor-wrap .mce-btn.mce-disabled {opacity: .50 !important;}
.prjc-portal .wp-editor-wrap .wp-editor-area {
  background: #fff !important;
  color: #1d2327 !important;
  border-radius: 0 !important;
}

@media (max-width:1020px) {
  .prjc-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .prjc-wrap .prjc-access-top {top:8px; gap:10px; padding:11px 12px; margin-bottom:18px;}
  .prjc-wrap .prjc-access-top-copy {flex:1 1 100%;}
  .prjc-wrap .prjc-access-top-button {width:100%; min-height:42px;}
  body.admin-bar .prjc-wrap .prjc-access-top {top:56px;}

  .prjc-wrap { margin:12px auto 32px; padding:0 14px; }
  .prjc-grid { grid-template-columns:minmax(0,1fr); }
  .prjc-card { grid-template-columns:64px minmax(0,1fr); gap:13px; padding:12px 0; }
  .prjc-card-photo,.prjc-card .prjc-avatar { width:64px; height:64px; }
  .prjc-card h2 { font-size:1.04rem!important; }
  .prjc-directory-head { margin-bottom:8px; padding-bottom:12px; }
  .prjc-directory-head h1 { font-size:1.68rem!important; }
  .prjc-directory-head > p:last-child { font-size:.88rem; }
  .prjc-profile-header { grid-template-columns:84px minmax(0,1fr)!important; align-items:start!important; gap:13px!important; padding:14px!important; margin-bottom:22px!important; }
  .prjc-profile-photo .prjc-avatar { width:78px!important; height:78px!important; }
  .prjc-profile-main h1 { font-size:1.34rem!important; margin:0 0 4px!important; }
  .prjc-profile-main .prjc-byline { font-size:.85rem!important; }
  .prjc-profile-main .prjc-eyebrow { font-size:.64rem!important; }
  .prjc-bio-preview { font-size:.78rem!important; line-height:1.42!important; }
  .prjc-list-title h2 { font-size:1.28rem!important; }
  .prjc-list-title span { font-size:.77rem; }
  .prjc-article { grid-template-columns:112px minmax(0,1fr)!important; gap:12px!important; padding:14px 0!important; }
  .prjc-article-media { aspect-ratio:4/3; }
  .prjc-article h3 { font-size:.98rem!important; line-height:1.32!important; margin:0 0 8px!important; }
  .prjc-article-excerpt { display:none; }
  .prjc-article-meta { font-size:.68rem!important; }
  .prjc-portal-head { align-items:flex-start; flex-direction:column; }
  .prjc-panel { padding:15px; }
  .prjc-my-posts li { align-items:flex-start; }
  .prjc-form .prjc-actions { align-items:stretch; flex-direction:column; }
  .prjc-form .prjc-actions > * { width:100%; }
}
@media (max-width:380px) {
  .prjc-profile-header { grid-template-columns:68px minmax(0,1fr)!important; gap:11px!important; padding:11px!important; }
  .prjc-profile-photo .prjc-avatar { width:64px!important; height:64px!important; }
  .prjc-article { grid-template-columns:96px minmax(0,1fr)!important; gap:10px!important; }
  .prjc-article h3 { font-size:.93rem!important; }
}


/* V1.2.3 — o cabeçalho editorial aparece dentro da matéria sem afetar a
   navegação global do tema ou as demais notícias do Panorama RJ. */
.prjc-single-hero { display:block; max-width:1100px; margin:0 auto 26px; padding:18px 0 0; color:inherit; }
.prjc-single-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:0 0 16px; font-size:.86rem; line-height:1.4; opacity:.8; }
.prjc-single-breadcrumb a { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.prjc-single-eyebrow { margin:0 0 11px!important; color:#b72844!important; font-size:.76rem!important; font-weight:760!important; line-height:1.5!important; letter-spacing:.08em; text-transform:uppercase; }
.prjc-single-title { display:block; margin:0 0 13px!important; font-size:clamp(1.9rem,3.2vw,2.85rem)!important; line-height:1.14!important; font-weight:800!important; letter-spacing:-.027em!important; color:inherit!important; overflow-wrap:break-word; }
.prjc-single-meta { margin:0 0 22px!important; font-size:.90rem!important; line-height:1.6!important; opacity:.82; }
.prjc-single-meta a { color:inherit; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.prjc-single-cover { display:block; width:100%; margin:0 0 22px!important; padding:0; overflow:hidden; border-radius:7px; background:rgba(125,125,125,.10); }
.prjc-single-cover img { display:block; width:100%!important; height:auto!important; max-height:550px; object-fit:cover; margin:0 auto!important; }
.prjc-single-edit { margin:0 0 19px!important; }
.prjc-single-edit a { display:inline-flex; align-items:center; gap:8px; padding:9px 13px; font-size:.86rem; font-weight:750; text-decoration:none!important; color:#fff!important; background:#0b4b87; border-radius:5px; }
.prjc-single-edit a:focus-visible { outline:3px solid #b72844; outline-offset:3px; }

/* A lista vem antes do editor; os botões de edição ficam acessíveis. */
.prjc-publications-panel { scroll-margin-top:95px; }
.prjc-editor-panel { scroll-margin-top:24px; }
.prjc-publications-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
.prjc-publications-head h3 { margin:0 0 5px!important; }
.prjc-publications-head p { margin:0!important; font-size:.88rem; opacity:.75; }
.prjc-my-posts li .prjc-my-post-description { flex:1 1 260px; min-width:0; overflow-wrap:anywhere; }
.prjc-my-post-actions { display:flex; gap:9px; flex:0 0 auto; align-items:center; flex-wrap:wrap; }
.prjc-my-post-actions a { display:inline-flex; align-items:center; justify-content:center; text-decoration:none!important; border-radius:6px; padding:8px 12px; font-size:.83rem; font-weight:700; line-height:1.35; }
.prjc-my-post-actions .prjc-edit-link { color:#fff!important; background:#0b4b87; }
.prjc-my-post-actions .prjc-view-link { color:inherit; border:1px solid var(--prjc-line); }
.prjc-my-post-actions a:focus-visible, .prjc-my-post-actions a:hover { outline:2px solid #b72844; outline-offset:2px; }
.prjc-edit-notice { margin:4px 0 13px!important; padding:11px 14px; border-left:4px solid #0b4b87; background:rgba(11,75,135,.08); font-size:.87rem; }
@media(max-width:700px) {
  .prjc-single-hero { padding:12px 0 0; margin-bottom:20px; }
  .prjc-single-title { font-size:clamp(1.55rem,6.1vw,2rem)!important; line-height:1.19!important; }
  .prjc-single-breadcrumb { font-size:.78rem; }
  .prjc-single-meta { font-size:.82rem!important; }
  .prjc-single-cover img { max-height:none; }
  .prjc-my-posts li { flex-wrap:wrap; gap:10px; }
  .prjc-my-post-actions { width:100%; }
  .prjc-my-post-actions .prjc-edit-link { flex:1; }
  .prjc-publications-head .prjc-button { width:100%; }
}

/* v1.2.4 — Painel editorial: área de escrita ampla e publicações na lateral. */
.prjc-wrap.prjc-portal {
  width: min(1240px, calc(100vw - 40px));
  max-width: none !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.prjc-portal .prjc-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 20px;
  align-items: start;
}
.prjc-portal .prjc-editor-column,
.prjc-portal .prjc-sidebar-column { min-width: 0; }
.prjc-portal .prjc-dashboard-layout .prjc-panel { margin: 0 0 22px; }
.prjc-portal .prjc-publications-panel {
  background: var(--prjc-surface);
  padding: 15px;
  overflow-wrap: anywhere;
}
.prjc-portal .prjc-publications-toggle > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 800;
}
.prjc-portal .prjc-publications-toggle > summary::-webkit-details-marker { display: none; }
.prjc-portal .prjc-publications-toggle > summary small { font-size: .78rem; opacity: .65; }
.prjc-portal .prjc-publications-toggle > summary .prjc-summary-chevron { font-size: 1.2rem; transform: rotate(180deg); transition: transform .15s ease; }
.prjc-portal .prjc-publications-toggle:not([open]) > summary .prjc-summary-chevron { transform: rotate(0); }
.prjc-portal .prjc-publications-toggle > summary:focus-visible,
.prjc-portal .prjc-older-articles > summary:focus-visible { outline: 2px solid #164c80; outline-offset: 4px; }
.prjc-portal .prjc-publications-inner { padding-top: 12px; }
.prjc-portal .prjc-publications-hint { margin: 0 0 12px; font-size: .81rem; opacity: .77; line-height: 1.45; }
.prjc-portal .prjc-new-post { width: 100%; padding: 10px 11px; margin-bottom: 8px; }
.prjc-portal .prjc-my-posts { list-style: none; padding: 0; margin: 0; }
.prjc-portal .prjc-my-posts .prjc-publication-row {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--prjc-line);
}
.prjc-portal .prjc-publication-row.is-current { border-left: 3px solid var(--prjc-accent); padding-left: 9px; }
.prjc-portal .prjc-publication-title {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.38;
}
.prjc-portal .prjc-publication-title:hover { text-decoration: underline !important; }
.prjc-portal .prjc-my-posts small { display: block; font-size: .71rem; line-height: 1.45; margin: 6px 0; opacity: .78; }
.prjc-portal .prjc-status.is-published { color: #137246; font-weight: 700; }
.prjc-portal .prjc-my-post-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.prjc-portal .prjc-my-post-actions > a {
  display: inline-block;
  text-decoration: none !important;
  padding: 5px 9px;
  border: 1px solid #aab3bd;
  border-radius: 4px;
  font-size: .77rem;
  line-height: 1.35;
  color: #163c68 !important;
  background: #fff;
}
.prjc-portal .prjc-my-post-actions > a:hover { background: #e6eff9; }
.prjc-portal .prjc-older-articles { margin-top: 13px; }
.prjc-portal .prjc-older-articles > summary { cursor: pointer; font-size: .83rem; font-weight: 750; color: #164c80; }
.prjc-portal .prjc-older-articles > ul { margin-top: 6px; }

/* O wp_editor possui dois modos: nunca mostrar Quicktags e TinyMCE juntos. */
.prjc-portal .wp-editor-wrap .quicktags-toolbar,
.prjc-portal .wp-editor-wrap.tmce-active .quicktags-toolbar { display: none !important; }
.prjc-portal .wp-editor-wrap.html-active .quicktags-toolbar { display: flex !important; }
.prjc-portal .wp-editor-wrap .mce-toolbar-grp,
.prjc-portal .wp-editor-wrap .mce-toolbar { background: #f2f4f7 !important; }
.prjc-portal .wp-editor-wrap .mce-toolbar .mce-btn { margin: 1px; }
.prjc-portal .wp-editor-wrap .mce-toolbar .mce-btn button { min-height: 30px; }
.prjc-portal .wp-editor-wrap .mce-toolbar .mce-btn .mce-txt,
.prjc-portal .wp-editor-wrap .mce-toolbar .mce-btn .mce-ico { color: #1d2327 !important; }
.prjc-portal .wp-editor-wrap .wp-media-buttons { margin: 4px 0 8px; }
.prjc-portal .wp-editor-wrap .wp-media-buttons .button,
.prjc-portal .wp-editor-wrap .wp-media-buttons button {
  background: #eef2f7 !important;
  color: #1b3654 !important;
  border: 1px solid #98a6b5 !important;
  padding: 5px 12px !important;
  font-weight: 650 !important;
  border-radius: 4px !important;
}
.prjc-portal .wp-editor-wrap .wp-media-buttons .button:hover { background: #dfeafa !important; }
.prjc-portal .wp-editor-wrap .mce-listbox button { min-width: 95px; }
.prjc-portal .wp-editor-wrap .wp-editor-container { background: #fff; }
.prjc-portal .wp-editor-wrap .wp-editor-area { min-height: 425px; }
.prjc-portal .prjc-editor-panel { padding: 22px; }

@media (max-width: 900px) {
  .prjc-wrap.prjc-portal { width: calc(100vw - 24px); }
  .prjc-portal .prjc-dashboard-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .prjc-portal .prjc-sidebar-column { order: -1; }
  .prjc-portal .prjc-publications-panel { padding: 12px 15px; }
  .prjc-portal .prjc-dashboard-layout .prjc-panel { margin-bottom: 10px; }
}
@media (max-width: 600px) {
  .prjc-portal .prjc-editor-panel { padding: 13px; }
  .prjc-portal .wp-editor-wrap .mce-toolbar-grp { overflow-x: auto; }
  .prjc-portal .wp-editor-wrap .wp-editor-area { min-height: 360px; }
}


/* v1.2.5 — Lixeira restrita e compartilhamento no cabeçalho dos artigos. */
.prjc-portal .prjc-my-post-actions .prjc-trash-form {
  display: inline-flex;
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
}
.prjc-portal .prjc-my-post-actions .prjc-trash-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 5px 9px;
  border: 1px solid #ab3948;
  border-radius: 4px;
  background: transparent;
  color: #a02034;
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}
.prjc-portal .prjc-trash-button:hover { background: #fae9ed; color:#861a2c; }
.prjc-portal .prjc-trash-button:focus-visible { outline: 3px solid #a02034; outline-offset: 2px; }
.prjc-single-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: -5px 0 22px;
  font-size: .82rem;
  line-height: 1.35;
}
.prjc-single-share .prjc-share-label { font-weight: 750; margin-right: 2px; }
.prjc-single-share .prjc-share-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 32px;
  border: 1px solid #8c9eaf;
  border-radius: 5px;
  padding: 5px 10px;
  color: #173e64 !important;
  background: #fff;
  text-decoration: none !important;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}
.prjc-single-share .prjc-share-link:hover { color:#fff !important; background:#0b4b87; border-color:#0b4b87; }
.prjc-single-share .prjc-share-link:focus-visible { outline: 3px solid #b72844; outline-offset: 2px; }
.prjc-single-share .prjc-share-feedback { min-width: 0; color:#16643e; font-weight: 750; }
.prjc-single-share .prjc-share-native[hidden] { display: none; }
@media (max-width: 600px) {
  .prjc-single-share { gap: 6px; margin: 0 0 18px; }
  .prjc-single-share .prjc-share-label { width: 100%; }
  .prjc-single-share .prjc-share-link { min-height: 38px; padding: 8px 10px; }
  .prjc-portal .prjc-my-post-actions .prjc-trash-form { flex: 1 0 100%; }
  .prjc-portal .prjc-my-post-actions .prjc-trash-button { width: 100%; min-height: 38px; }
}

/* v1.2.6 — Envio de múltiplas fotos pelo formulário, sem botão Adicionar mídia. */
.prjc-portal .prjc-images-section {
  display: flex; flex-direction: column; gap: 11px;
  margin: 12px 0 4px; padding: 18px;
  border: 1px solid var(--prjc-line); border-radius: 9px;
  background: rgba(128,128,128,.035);
}
.prjc-portal .prjc-images-section h4 {
  margin: 0 0 2px !important; font-size: 1.14rem !important;
  line-height: 1.3 !important; font-weight: 750 !important;
}
.prjc-portal .prjc-images-section label { margin-top: 5px; }
.prjc-portal .prjc-images-section .prjc-field-help { margin: 0 0 5px !important; opacity: .85; }
.prjc-portal .prjc-images-section input[type="file"] {
  width: 100%; max-width: 100%; padding: 11px;
  border: 1px dashed #9ca7b7; border-radius: 7px;
  color: #1d2327; background: #fff;
}
.prjc-portal .prjc-images-section select {
  width: 100%; max-width: 220px; min-height: 44px;
  padding: 8px 12px; background: #fff; color: #1d2327;
  border: 1px solid #aeb6c1; border-radius: 6px; font: inherit;
}
.prjc-portal .prjc-gallery-existing {
  border: 1px solid var(--prjc-line); border-radius: 7px;
  padding: 12px; margin: 4px 0 0; min-width: 0;
}
.prjc-portal .prjc-gallery-existing legend { font-size: .9rem; font-weight: 700; padding: 0 5px; }
.prjc-portal .prjc-gallery-existing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(115px,1fr)); gap: 10px;
}
.prjc-portal .prjc-gallery-existing-item {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 7px; margin: 0; font-size: .8rem; font-weight: 500;
}
.prjc-portal .prjc-gallery-existing-item img {
  display: block; width: 100%; height: 90px; object-fit: cover;
  border-radius: 5px; border: 1px solid var(--prjc-line);
}
.prjc-portal .prjc-gallery-existing-item span { display: inline-flex; align-items: flex-start; gap: 5px; line-height: 1.3; }
.prjc-portal .prjc-gallery-existing-item input[type="checkbox"] { margin: 1px 0 0; flex: 0 0 auto; }

/* Carrossel público: capa + imagens extras, setas grandes, contador e pausa. */
.prjc-carousel {
  position: relative; isolation: isolate; width: 100%; max-width: 1100px;
  margin: 0 0 22px; border-radius: 8px; overflow: hidden;
  background: #121820; color: #fff; border: 1px solid rgba(255,255,255,.13);
}
.prjc-carousel-slides { width: 100%; min-width: 0; }
.prjc-carousel-slide { width: 100%; height: clamp(220px, 53vw, 580px); margin: 0; padding: 0; }
.prjc-carousel-slide[hidden] { display: none !important; }
.prjc-carousel-slide img {
  width: 100% !important; height: 100% !important;
  max-width: 100% !important; max-height: 100% !important;
  display: block !important; object-fit: contain !important; margin: 0 auto !important;
}
.prjc-carousel-arrow {
  position: absolute; top: calc(50% - 32px); z-index: 2;
  width: 44px; height: 54px; display: inline-flex; align-items: center;
  justify-content: center; padding: 0 !important; border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: 7px; color: #fff !important; background: rgba(9,22,38,.76) !important;
  font: 800 23px/1 system-ui,sans-serif !important; cursor: pointer;
}
.prjc-carousel-prev { left: 11px; }
.prjc-carousel-next { right: 11px; }
.prjc-carousel-arrow:hover, .prjc-carousel-play:hover { background: #0b4b87 !important; }
.prjc-carousel-arrow:focus-visible, .prjc-carousel-play:focus-visible {
  outline: 3px solid #ffde66 !important; outline-offset: 2px;
}
.prjc-carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 45px; padding: 7px 13px;
  background: #121820; color: #fff; font: 500 .82rem/1.3 system-ui,sans-serif;
}
.prjc-carousel-counter { font-weight: 800; font-variant-numeric: tabular-nums; }
.prjc-carousel-play {
  border: 1px solid rgba(255,255,255,.5) !important; border-radius: 5px;
  padding: 5px 10px !important; background: #27394d !important;
  color: #fff !important; font: 700 .78rem/1.4 system-ui,sans-serif !important;
  cursor: pointer;
}
.prjc-carousel-timing { opacity: .8; }
@media (max-width: 600px) {
  .prjc-portal .prjc-images-section { padding: 12px; }
  .prjc-carousel-slide { height: clamp(220px, 58vw, 380px); }
  .prjc-carousel-arrow { top: calc(50% - 28px); width: 42px; height: 52px; }
  .prjc-carousel-prev { left: 6px; }
  .prjc-carousel-next { right: 6px; }
  .prjc-carousel-controls { gap: 9px; font-size: .73rem; }
  .prjc-carousel-timing { font-size: .72rem; }
}
