/*
 * COMADEMS · Tema filho 1.16.0
 * Refinamentos do front-end Core 0.5.3 (notícias e eventos).
 * Escopo deliberadamente restrito a .cmd05-*.
 * Sem redefinir o cabeçalho, o rodapé ou os elementos globais do Impreza.
 */
:root {
  --cmd116-blue: #164266;
  --cmd116-blue-deep: #0d2846;
  --cmd116-ink: #1d2733;
  --cmd116-muted: #5b6b7a;
  --cmd116-line: #dce3e9;
  --cmd116-focus: #3fb8e8;
}
.cmd05-news, .cmd05-evento {
  color: var(--cmd116-ink);
  min-width: 0;
}
.cmd05-news :is(h1,h2,h3), .cmd05-evento :is(h1,h2,h3) {
  letter-spacing: normal;
  text-transform: none;
}
.cmd05-news > header {
  margin-bottom: clamp(20px, 3vw, 38px);
  padding-bottom: clamp(18px, 2.5vw, 30px);
  border-bottom: 1px solid var(--cmd116-line);
}
.cmd05-news > header h1 {
  color: var(--cmd116-blue-deep);
  line-height: 1.16;
}
.cmd05-news .cmd05-featured { gap: clamp(18px, 3vw, 36px); }
.cmd05-news .cmd05-featured h3 {
  line-height: 1.25;
  color: var(--cmd116-blue-deep);
}
.cmd05-news .cmd05-grid { row-gap: clamp(26px, 3vw, 42px); }
.cmd05-news .cmd05-card { min-width: 0; }
.cmd05-news .cmd05-card h3 { color: var(--cmd116-blue-deep); }
.cmd05-news .cmd05-thumb {
  overflow: hidden;
  border-radius: 2px;
  background: #eef2f5;
}
.cmd05-news .cmd05-thumb img {
  transition: transform .24s ease-out;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .cmd05-news .cmd05-thumb:hover img { transform: scale(1.025); }
}
.cmd05-news :is(.cmd05-card h3 a, .cmd05-read):hover {
  color: var(--cmd116-blue-deep);
  text-decoration: underline;
  text-underline-offset: .17em;
}
.cmd05-news .cmd05-meta { color: var(--cmd116-muted); }
.cmd05-news .cmd05-filters a,
.cmd05-news .cmd05-pagination a {
  line-height: 1.3;
  border-radius: 3px;
  transition: border-color .16s ease, background-color .16s ease;
}
.cmd05-news .cmd05-filters a:hover,
.cmd05-news .cmd05-pagination a:hover {
  border-color: var(--cmd116-blue);
  background: #edf3f7;
}
.cmd05-news :is(.cmd05-filters,.cmd05-pagination) [aria-current]:hover {
  background: var(--cmd116-blue-deep);
  color: #fff;
}
.cmd05-form {
  max-width: 760px;
  color: var(--cmd116-ink);
  border-top-color: var(--cmd116-blue);
  border-radius: 0 0 4px 4px;
}
.cmd05-form input:not([type=checkbox]) {
  min-height: 45px;
  max-width: 100%;
  border-radius: 3px;
  color: var(--cmd116-ink);
}
.cmd05-form button {
  min-height: 46px;
  border-radius: 3px;
  font-weight: 600;
}
.cmd05-form button:hover { background: var(--cmd116-blue-deep); }
.cmd05-form :is(input,button,select,textarea):focus-visible,
.cmd05-news a:focus-visible,
.cmd05-evento a:focus-visible {
  outline: 3px solid var(--cmd116-focus);
  outline-offset: 3px;
}
.cmd05-notice {
  border-left-color: var(--cmd116-blue);
  line-height: 1.55;
}
@media (max-width: 640px) {
  .cmd05-news .cmd05-grid { gap: 26px; }
  .cmd05-news .cmd05-filters { gap: 7px; }
  .cmd05-news .cmd05-filters a { padding: 9px 11px; }
  .cmd05-form { margin: 20px 0; padding: 20px 16px; }
  .cmd05-form button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cmd05-news .cmd05-thumb img,
  .cmd05-news .cmd05-filters a,
  .cmd05-news .cmd05-pagination a { transition: none; }
}

/* Central editorial de Notícias — somente área interna, sem tocar no cabeçalho. */
.cmd05-news{max-width:1200px;margin:0 auto;padding:20px 0 64px}
.cmd05-news .cmd05-heading{border-bottom:1px solid #d6e0ea;padding:0 0 20px;margin:0 0 20px}
.cmd05-heading h1{font-size:clamp(30px,4vw,44px);margin:0 0 8px;color:#13324c}
.cmd05-heading p{margin:0;color:#5b6b7a;font-size:16px}
.cmd05-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.cmd05-filters a{border:1px solid #d6e0ea;border-radius:30px;padding:8px 14px;color:#164266;text-decoration:none;font-size:14px}
.cmd05-filters a[aria-current]{background:#13324c;color:#fff;border-color:#13324c}
.cmd05-search{max-width:520px;margin:0 0 30px}
.cmd05-search label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}
.cmd05-search>div{display:flex;gap:8px}
.cmd05-search input{flex:1;min-width:0;border:1px solid #b9c7d5;min-height:44px;padding:8px 12px}
.cmd05-search button{border:0;background:#164266;color:white;min-height:44px;padding:8px 16px;cursor:pointer}
.cmd05-hero{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);gap:24px;margin:0 0 40px;border-bottom:1px solid #d6e0ea;padding-bottom:34px}
.cmd05-hero-side{display:grid;gap:22px}
.cmd05-hero-side .cmd05-card{display:grid;grid-template-columns:44% minmax(0,1fr);gap:14px;align-content:start}
.cmd05-hero-side .cmd05-card p,.cmd05-hero-side .cmd05-read{display:none}
.cmd05-hero-side .cmd05-card h3{font-size:clamp(16px,1.7vw,20px)}
.cmd05-section-head{border-bottom:2px solid #13324c;margin:10px 0 24px}
.cmd05-section-head h2{font-size:clamp(23px,2.5vw,30px);margin:0 0 9px;color:#13324c}
.cmd05-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}
.cmd05-card{min-width:0}
.cmd05-card .cmd05-thumb{display:block;aspect-ratio:16/9;overflow:hidden;background:#13324c}
.cmd05-card .cmd05-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cmd05-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:linear-gradient(135deg,#0d2846,#2a5a85);color:#eef3f8;font-size:14px;letter-spacing:.12em}
.cmd05-card .cmd05-meta{font-size:12px;color:#5b6b7a;margin:12px 0 6px}
.cmd05-card h3{font-size:20px;line-height:1.3;margin:0 0 10px}
.cmd05-card h3 a{color:#13324c;text-decoration:none}
.cmd05-card p{font-size:15px;line-height:1.6;margin:0 0 10px;color:#4a5968}
.cmd05-read{font-size:14px;font-weight:600;color:#164266;text-decoration:none}
.cmd05-hero-main .cmd05-card h3{font-size:clamp(24px,3vw,35px)}
.cmd05-pagination{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;margin:42px 0 0}
.cmd05-pagination a,.cmd05-pagination span{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d6e0ea;padding:6px 12px}
.cmd05-pagination .current{background:#13324c;color:white}
.cmd05-article-end{border-top:1px solid #d6e0ea;margin:40px 0 0;padding-top:24px}
.cmd05-article-end h2{font-size:24px;color:#13324c}
.cmd05-share{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:32px}
.cmd05-share a{display:inline-block;border:1px solid #d6e0ea;color:#164266;padding:10px 14px;text-decoration:none}
.cmd05-news :is(a,button,input):focus-visible,.cmd05-article-end a:focus-visible{outline:3px solid #3fb8e8;outline-offset:3px}
@media(max-width:900px){.cmd05-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cmd05-hero{grid-template-columns:1fr}.cmd05-hero-side{grid-template-columns:repeat(2,minmax(0,1fr))}.cmd05-hero-side .cmd05-card{display:block}}
@media(max-width:600px){.cmd05-news{padding-top:12px}.cmd05-grid,.cmd05-hero-side{grid-template-columns:1fr}.cmd05-hero-side .cmd05-card{display:grid}.cmd05-search>div{flex-wrap:wrap}.cmd05-search button{width:100%}.cmd05-hero{gap:22px}}

/* COMADEMS 1.16.2 — portal em duas colunas. Escopo isolado da Central. */
.cmd05-news{max-width:1240px;width:100%;margin-inline:auto}
.cmd05-news .cmd05-portal{display:grid;grid-template-columns:minmax(0, 1fr) minmax(255px, 300px);gap:clamp(24px,3vw,42px);align-items:start}
.cmd05-news .cmd05-feed,.cmd05-news .cmd05-sidebar{min-width:0}
.cmd05-news .cmd05-feed .cmd05-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.cmd05-news .cmd05-card{display:flex;flex-direction:column;background:#fff;border:1px solid #dbe4ed;border-radius:12px;overflow:hidden;box-shadow:0 4px 18px rgba(13,40,70,.06);transition:box-shadow .2s,transform .2s}
.cmd05-news .cmd05-card:hover{box-shadow:0 12px 30px rgba(13,40,70,.13);transform:translateY(-2px)}
.cmd05-news .cmd05-card .cmd05-thumb{aspect-ratio:16/10;border-radius:0}
.cmd05-news .cmd05-card .cmd05-card-body{padding:17px 18px 19px;display:flex;flex-direction:column;flex:1;gap:9px}
.cmd05-news .cmd05-card .cmd05-meta{margin:0;color:#526a7e;font-size:12px;font-weight:650}
.cmd05-news .cmd05-card h3{margin:0!important;font-size:clamp(17px,1.5vw,21px)!important;line-height:1.32!important}
.cmd05-news .cmd05-card p{margin:0!important;color:#4d5e6e;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.cmd05-news .cmd05-card .cmd05-read{margin-top:auto;padding-top:7px;color:#164266;font-weight:700}
.cmd05-news .cmd05-hero{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:18px}
.cmd05-news .cmd05-hero .cmd05-card-body{padding:17px}
.cmd05-news .cmd05-hero-main .cmd05-card h3{font-size:clamp(21px,2.4vw,30px)!important}
.cmd05-news .cmd05-hero-side .cmd05-card{display:flex;flex-direction:column;gap:0}
.cmd05-news .cmd05-hero-side .cmd05-card .cmd05-thumb{aspect-ratio:16/7}
.cmd05-news .cmd05-hero-side .cmd05-card h3{font-size:16px!important}
.cmd05-news .cmd05-hero-side .cmd05-card .cmd05-card-body{padding:12px}
.cmd05-news .cmd05-sidebar{display:grid;gap:22px}
.cmd05-news .cmd05-widget{background:#f5f8fb;border:1px solid #dbe4ed;border-radius:12px;padding:22px;overflow:hidden}
.cmd05-news .cmd05-widget h2{color:#13324c!important;font-size:22px!important;line-height:1.2;margin:0 0 14px!important;text-transform:none!important}
.cmd05-news .cmd05-widget-kicker{color:#2a5a85;font-size:11px;letter-spacing:.12em;font-weight:800}
.cmd05-news .cmd05-widget-events .cmd-v-events{display:grid;grid-template-columns:1fr;gap:14px}
.cmd05-news .cmd05-widget-events .cmd-v-event{box-shadow:none}
.cmd05-news .cmd05-widget-events .cmd-v-event__body{padding:14px}
.cmd05-news .cmd05-widget-events .cmd-v-event__title{font-size:18px!important}
.cmd05-news .cmd05-widget-events .cmd-v-event__count strong{font-size:21px}
.cmd05-news .cmd05-widget-events .cmd-v-event__media img{aspect-ratio:16/9}
.cmd05-news .cmd05-widget-empty{color:#5b6b7a}
.cmd05-news .cmd05-widget-links a{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid #d6e0ea;color:#164266;text-decoration:none;font-weight:650;font-size:14px}
.cmd05-news .cmd05-widget-links a:hover{text-decoration:underline}
@media(max-width:950px){.cmd05-news .cmd05-portal{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.cmd05-news .cmd05-hero{grid-template-columns:1fr}.cmd05-news .cmd05-hero-side{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.cmd05-news .cmd05-portal{grid-template-columns:1fr}.cmd05-news .cmd05-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.cmd05-news .cmd05-hero{grid-template-columns:1fr}}
@media(max-width:560px){.cmd05-news .cmd05-feed .cmd05-grid,.cmd05-news .cmd05-sidebar,.cmd05-news .cmd05-hero-side{grid-template-columns:1fr}.cmd05-news .cmd05-card{border-radius:9px}}
@media(prefers-reduced-motion:reduce){.cmd05-news .cmd05-card{transition:none}.cmd05-news .cmd05-card:hover{transform:none}}


/* COMADEMS 1.16.3 — composição editorial inspirada na clareza dos blogs modernos.
   Apenas .cmd05-news-editorial; topo, rodapé e Home permanecem intactos. */
.cmd05-news-editorial{max-width:1230px;padding:28px 0 70px;color:#243346}
.cmd05-news-editorial .cmd05-heading{display:flex;justify-content:space-between;align-items:end;gap:26px;
  margin:0 0 35px;padding:0 0 24px;border-bottom:1px solid #d6e0ea}
.cmd05-news-editorial .cmd05-eyebrow{display:block;font-size:12px;letter-spacing:.1em;text-transform:uppercase;
  color:#2a5a85;font-weight:750;margin-bottom:8px}
.cmd05-news-editorial .cmd05-heading h1{font-size:clamp(32px,3vw,43px);line-height:1.08;margin:0 0 8px}
.cmd05-news-editorial .cmd05-heading p{font-size:15px;line-height:1.55;max-width:660px}
.cmd05-news-editorial .cmd05-search{display:flex;align-items:stretch;flex:0 0 305px;max-width:305px;gap:0;margin:0}
.cmd05-news-editorial .cmd05-search input{background:#f7f9fb;border:1px solid #d6e0ea;border-right:0;
  border-radius:5px 0 0 5px;min-width:0;width:100%;height:44px;font-size:13px;padding:0 12px}
.cmd05-news-editorial .cmd05-search button{font-size:13px;background:#13324c;border-radius:0 5px 5px 0;
  min-height:44px;padding:0 13px;white-space:nowrap;font-weight:650}
.cmd05-news-editorial .cmd05-portal{grid-template-columns:minmax(0,1fr) 275px;gap:clamp(28px,3vw,44px)}
.cmd05-news-editorial .cmd05-section-head{border:0;border-bottom:1px solid #d6e0ea;margin:0 0 20px;padding:0}
.cmd05-news-editorial .cmd05-section-head h2{font-size:24px!important;line-height:1.2;margin:0 0 13px!important;font-weight:750}
.cmd05-news-editorial .cmd05-card{border:1px solid #e2e8ed;border-radius:7px;box-shadow:none;transform:none}
.cmd05-news-editorial .cmd05-card:hover{box-shadow:0 8px 22px rgba(13,40,70,.09);transform:none}
.cmd05-news-editorial .cmd05-card .cmd05-thumb{aspect-ratio:16/10}
.cmd05-news-editorial .cmd05-card .cmd05-card-body{padding:15px 16px 19px;gap:9px}
.cmd05-news-editorial .cmd05-card h3{font-size:19px!important;line-height:1.31!important}
.cmd05-news-editorial .cmd05-card .cmd05-meta{font-size:11px;font-weight:700;letter-spacing:.025em;color:#51718d;text-transform:uppercase}
.cmd05-news-editorial .cmd05-card p{font-size:14px;line-height:1.55;-webkit-line-clamp:3}
.cmd05-news-editorial .cmd05-card .cmd05-read{font-size:13px;padding-top:6px}
.cmd05-news-editorial .cmd05-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:17px;
  border:0;margin:0 0 36px;padding:0}
.cmd05-news-editorial .cmd05-hero-main .cmd05-card{display:grid;grid-template-columns:52% minmax(0,1fr);min-height:260px}
.cmd05-news-editorial .cmd05-hero-main .cmd05-card .cmd05-thumb{aspect-ratio:auto;height:100%;min-height:260px}
.cmd05-news-editorial .cmd05-hero-main .cmd05-card .cmd05-card-body{padding:clamp(18px,2vw,28px);justify-content:center}
.cmd05-news-editorial .cmd05-hero-main .cmd05-card h3{font-size:clamp(21px,2.15vw,27px)!important;line-height:1.25!important}
.cmd05-news-editorial .cmd05-hero-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cmd05-news-editorial .cmd05-hero-side .cmd05-card{display:grid;grid-template-columns:38% minmax(0,1fr);min-height:120px}
.cmd05-news-editorial .cmd05-hero-side .cmd05-card .cmd05-thumb{height:100%;min-height:120px;aspect-ratio:auto}
.cmd05-news-editorial .cmd05-hero-side .cmd05-card .cmd05-card-body{padding:13px;justify-content:center}
.cmd05-news-editorial .cmd05-hero-side .cmd05-card h3{font-size:15px!important;line-height:1.3!important}
.cmd05-news-editorial .cmd05-hero-side .cmd05-card p,.cmd05-news-editorial .cmd05-hero-side .cmd05-card .cmd05-read{display:none}
.cmd05-news-editorial .cmd05-feed .cmd05-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.cmd05-news-editorial .cmd05-sidebar{display:grid;gap:19px}
.cmd05-news-editorial .cmd05-widget{border:1px solid #dce5ed;border-radius:7px;background:#fff;padding:21px}
.cmd05-news-editorial .cmd05-widget-events{background:#f4f8fb;border-top:3px solid #164266}
.cmd05-news-editorial .cmd05-widget h2{font-size:20px!important;font-weight:750!important;margin:0 0 15px!important}
.cmd05-news-editorial .cmd05-widget-kicker{text-transform:uppercase;display:block;margin-bottom:7px}
.cmd05-news-editorial .cmd05-widget-categories a{display:flex;align-items:center;justify-content:space-between;
  gap:8px;padding:11px 0;border-top:1px solid #e4eaf0;text-decoration:none;color:#183c59;font-size:13px}
.cmd05-news-editorial .cmd05-widget-categories a:hover{text-decoration:underline}
.cmd05-news-editorial .cmd05-widget-categories a[aria-current]{font-weight:800;color:#0d2846}
.cmd05-news-editorial .cmd05-widget-categories a span{color:#698297;font-size:11px}
.cmd05-news-editorial .cmd05-widget-links a{font-size:13px}
.cmd05-news-editorial .cmd05-pagination{margin-top:36px}
@media(max-width:990px){
 .cmd05-news-editorial .cmd05-portal{grid-template-columns:minmax(0,1fr) 240px;gap:20px}
 .cmd05-news-editorial .cmd05-hero-main .cmd05-card{grid-template-columns:1fr}
 .cmd05-news-editorial .cmd05-hero-main .cmd05-card .cmd05-thumb{height:auto;aspect-ratio:16/8;min-height:0}
 .cmd05-news-editorial .cmd05-hero-side{grid-template-columns:1fr}
}
@media(max-width:760px){
 .cmd05-news-editorial .cmd05-heading{align-items:start;flex-direction:column;gap:18px}
 .cmd05-news-editorial .cmd05-search{flex:auto;width:100%;max-width:480px}
 .cmd05-news-editorial .cmd05-portal{grid-template-columns:1fr}
 .cmd05-news-editorial .cmd05-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cmd05-news-editorial .cmd05-widget-events{grid-column:1/-1}
 .cmd05-news-editorial .cmd05-hero-side{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
 .cmd05-news-editorial .cmd05-hero-side,.cmd05-news-editorial .cmd05-feed .cmd05-grid,
 .cmd05-news-editorial .cmd05-sidebar{grid-template-columns:1fr}
 .cmd05-news-editorial .cmd05-card .cmd05-thumb{aspect-ratio:16/10}
 .cmd05-news-editorial .cmd05-search button{padding:0 11px}
}
