.utility-actions{display:flex;align-items:center;gap:16px}
/* Fonte de interface mais aberta; a tipografia editorial continua nas matérias. */
.nav,.channel-navigation,.channel-subcategories,.city-topics{font-family:'Segoe UI',Arial,sans-serif;letter-spacing:normal}
.nav a,.nav-dropdown-label>button,.nav .nav-dropdown-panel a{font-size:14px;font-weight:600;letter-spacing:0;line-height:1.45}
.channel-tabs>a{font-size:14px;font-weight:600;letter-spacing:0}
.nav>.nav-items{gap:12px;flex-wrap:wrap}
@media(min-width:761px) and (max-width:1150px){.nav>.nav-items{justify-content:flex-start;column-gap:20px;row-gap:0}.nav-items>a,.nav-dropdown-label>a{min-height:44px;padding-block:10px}}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:76px;min-height:44px;padding:0 9px;color:#fff;background:transparent;border:0;font-size:11px;letter-spacing:0}
.theme-toggle:hover{background:#ffffff18;color:#8be5f5}.theme-toggle:focus-visible{outline:2px solid #8be5f5;outline-offset:-3px}
.brand-dark{display:none!important}
html[data-theme=dark] body:has(.masthead){--ink:#eef4fc;--muted:#aebfd4;--line:#283c55;--soft:#13253b;--white:#102137;--navy:#d5e9ff;--paper:#102137;--blue:#4dcbe9;--cyan:#8be5f5;background:#091525;color:var(--ink);color-scheme:dark}
html[data-theme=dark] .masthead{background:linear-gradient(145deg,transparent 25%,#031e5f88 42%,transparent 57%),radial-gradient(ellipse at 90% 85%,#0e8cc966,transparent 64%),linear-gradient(125deg,#071d3b,#0a3156 60%,#085577)}
html[data-theme=dark] .brand-light{display:none!important}
html[data-theme=dark] .brand-dark{display:block!important}
html[data-theme=dark] :is(.nav,.channel-navigation,.nav-dropdown-panel,.nav-mobile-toggle){background:var(--white);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.channel-tabs>a[aria-current],.channel-tabs>a:hover,.nav-dropdown-panel a:hover){background:var(--line);color:var(--ink)}
html[data-theme=dark] :is(.eyebrow,.latest small,.nav a:last-child,.team-profile strong){color:#70d8ed}
html[data-theme=dark] :is(.search input,.search button){color:#eef4fc}
html[data-theme=dark] .search input::placeholder{color:#b5c8dc}
html[data-theme=dark] a:hover{color:#8be5f5}
html[data-theme=dark] .video-section{background:var(--white);color:var(--ink)}
html[data-theme=dark] .ad-placeholder{background:linear-gradient(115deg,#102b45,#19415a);color:#d5e9ff}
html[data-theme=dark] :is(.photo,.photo-empty){background:var(--white)}
html[data-theme=dark] :is(.channel-tabs img){background:#fff;border-radius:3px;padding:2px}
html[data-theme=dark] :is(.pagination a,.channel-subcategories a,.legal-nav a,.city-topic-nav a){background:var(--white);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.article-summary,.institutional-note,.demo-note){background:var(--white);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.article-body,.article-deck){color:#d3dfed}
html[data-theme=dark] .playlist-footer>a{background:#d5e9ff;color:#071326}
html[data-theme=dark] :is(input,textarea,select){color:#eef4fc}
@media(max-width:760px){.utility-actions{gap:6px}.theme-toggle{min-width:44px;padding:0 6px}.theme-toggle span{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.theme-toggle{transition:none}}
/* Cada grande divisão reinicia o degradê; a grade editorial permanece alinhada. */
html[data-theme=dark] .home-regions{isolation:isolate;position:relative}
html[data-theme=dark] .editorial-band::before{content:'';position:absolute;z-index:-1;left:calc(50% - 50vw);right:calc(50% - 50vw);top:0;bottom:0;pointer-events:none}
html[data-theme=dark] .home-regions::before{background:radial-gradient(ellipse at 90% 0%,#104b6966,transparent 65%),linear-gradient(125deg,#07172b,#0e2d48);bottom:auto;height:440px}
html[data-theme=dark] .editorial-band{position:relative;isolation:isolate;display:flow-root;padding-block:38px;margin-block:0;border:0}
html[data-theme=dark] .editorial-band[hidden]{display:none}
html[data-theme=dark] .editorial-band::before{background:radial-gradient(ellipse at var(--glow-x,95%) 0%,var(--glow,#12648a55),transparent 65%),linear-gradient(var(--angle,125deg),#08182b 5%,var(--band-end,#103553) 100%);border-top:1px solid #80cfff14}
html[data-theme=dark] .band-headlines{--glow-x:85%;--glow:#0e8cc94d;--band-end:#0b233e;--angle:140deg;padding-top:8px}
html[data-theme=dark] .band-headlines::before{top:0}
html[data-theme=dark] body:has(.home-regions){overflow-x:clip}
html[data-theme=dark] .band-opening{padding-block:1px;--band-end:#0b233e;--glow:#0e8cc94d}
html[data-theme=dark] .home-regions::before{display:none}
html[data-theme=dark] .band-ms{--glow-x:10%;--glow:#147bab55;--angle:225deg;--band-end:#123954}
html[data-theme=dark] .band-government{--glow-x:90%;--glow:#2352a04a;--band-end:#122d4b}
html[data-theme=dark] .band-cities{--glow-x:0%;--glow:#087d914d;--angle:210deg;--band-end:#10353e}
html[data-theme=dark] .band-editorials{--glow-x:95%;--glow:#1355a155;--band-end:#112d4b}
html[data-theme=dark] .band-concept{--glow-x:10%;--glow:#1e7eaa66;--angle:225deg;--band-end:#14394e}
html[data-theme=dark] .band-national{--glow-x:90%;--glow:#145d9b66;--band-end:#102c47}
html[data-theme=dark] .home-regions .video-section{background:linear-gradient(120deg,#0b213d,#114567);border:1px solid #365878}
html[data-theme=dark] .home-regions :is(.city-links a,.regional-grid>section){background:transparent}
@media(max-width:760px){html[data-theme=dark] .editorial-band{padding-block:28px}}
html[data-theme=dark] .photo-tag{color:#071326} html[data-theme=dark] .ad-label{color:#aebfd4}
/* Títulos editoriais com letras abertas e peso legível nos dois temas. */
body:has(.masthead) :is(h1,h2,h3){
  font-family:'Segoe UI',Arial,sans-serif;
  font-weight:700;
  letter-spacing:0;
  line-height:1.3;
}
body:has(.masthead) :is(.latest,.block-list) h3{line-height:1.4}
.ad>div:has(.advertise-banner){container-type:inline-size}
.ad a.advertise-banner{
  display:flex;align-items:center;justify-content:space-between;gap:4cqw;
  padding:2cqw 4cqw;position:relative;overflow:hidden;text-align:left;
  background:radial-gradient(ellipse at 75% 120%,#168cba88,transparent 60%),linear-gradient(115deg,#071c40,#073e69);
  color:#fff;font-family:'Segoe UI',Arial,sans-serif;border:1px solid #38bad455;
}
.ad .advertise-banner:hover{color:#fff;background:linear-gradient(115deg,#0c2d57,#08567e)}
.ad .advertise-logo{width:13cqw;height:auto;object-fit:contain;flex-shrink:0}
.advertise-message{display:flex;flex-direction:column;gap:.65cqw;flex:1}
.advertise-message strong{font-size:3cqw;font-weight:700;line-height:1.2;letter-spacing:0}
.advertise-message>span{font-size:1.65cqw;line-height:1.4;color:#d6effa}
.advertise-cta{flex-shrink:0;background:#7ee5f6;color:#052541;border-radius:5px;padding:1.35cqw 1.9cqw;font-size:1.8cqw;font-weight:700;line-height:1.3;white-space:nowrap}
.advertise-cta>span{margin-left:.7cqw}
.ad-300 a.advertise-banner{flex-direction:column;align-items:flex-start;justify-content:center;padding:9cqw;gap:7cqw}
.ad-300 .advertise-logo{width:32cqw}
.ad-300 .advertise-message strong{font-size:8cqw}
.ad-300 .advertise-message>span{font-size:4.5cqw}
.ad-300 .advertise-message{flex:0;gap:3cqw}
.ad-300 .advertise-cta{font-size:4.5cqw;padding:3.5cqw 5cqw}
/* Uma única família legível em toda a interface pública, incluindo etiquetas. */
body:has(.masthead){--font:'Segoe UI',Arial,sans-serif;font-family:var(--font)}
body:has(.masthead) :is(.eyebrow,.photo-tag,.ad-label,.block-topic,.top-tagline){font-family:var(--font);font-weight:600;letter-spacing:.05em}
body:has(.masthead) .eyebrow{font-size:11px;line-height:1.5}
body:has(.masthead) .photo-tag{font-size:11px;line-height:1.4;letter-spacing:.04em}
.city-archive-footer:has(.numbered-pages){justify-content:flex-end}
html[data-theme=dark] :is(.city-topics,.legal-topics,.channel-subcategories) a[aria-current]{background:#164d68;color:#fff;border-color:#46bdd9}
/* Redação: mesma identidade e tipografia do portal. */
body:has(.admin-shell,.login-shell){--font:'Segoe UI',Arial,sans-serif;font-family:var(--font);background:#f3f6fa}
:is(.admin-shell,.login-shell) :is(h1,h2,h3,strong){letter-spacing:0;font-family:var(--font)}
:is(.admin-shell,.login-shell) :is(h1,h2,h3){font-weight:700;line-height:1.3}
:is(.admin-shell,.login-shell) .eyebrow{font-weight:600;letter-spacing:.06em;font-size:11px}
.login-brand,.admin-nav{background:radial-gradient(ellipse at 100% 0%,#12648a88,transparent 65%),linear-gradient(145deg,#08182b,#103553);color:#eef4fc}
.login-brand img{width:260px;max-width:100%;height:auto;background:transparent;padding:0}
.admin-brand img{width:180px;max-width:100%;height:auto;background:transparent;padding:0}
.login-brand h1{font-size:clamp(30px,3.2vw,48px)}
.login-tools{display:flex;justify-content:flex-end;margin-bottom:24px}
.login-tools .theme-toggle,.admin-top .theme-toggle{color:var(--ink)}
.admin-nav nav button{font-size:14px;font-weight:500;line-height:1.4;min-height:44px;border-radius:6px}
.admin-nav nav button.active{background:#17607e;color:#fff;box-shadow:inset 3px 0 #7ee5f6}
.admin-top{min-height:64px;gap:16px}.admin-heading h1{font-size:32px}
:is(.admin-shell,.login-shell) :is(input,textarea,select){font-size:15px;line-height:1.5;border-radius:6px}
:is(.admin-shell,.login-shell) :is(.primary,.secondary){min-height:44px;border-radius:6px;font-weight:600}
.admin-shell .panel,.admin-shell .stat{border-radius:10px}
html[data-theme=dark] body:has(.admin-shell,.login-shell){--ink:#eef4fc;--muted:#b1c4da;--line:#2b4158;--soft:#142a40;--white:#102137;--paper:#102137;--navy:#d5e9ff;--blue:#4dcbe9;background:#091525;color:#eef4fc;color-scheme:dark}
html[data-theme=dark] :is(.admin-main,.login-shell){background:radial-gradient(ellipse at 90% 0%,#104b694d,transparent 60%),#091525}
html[data-theme=dark] :is(.admin-top,.login-card,.admin-shell .panel,.admin-shell .stat){background:#102137;color:#eef4fc;border-color:#2b4158}
html[data-theme=dark] :is(.admin-shell,.login-shell) :is(input,select,textarea){background:#091a2c;color:#eef4fc;border-color:#3a526d}
html[data-theme=dark] :is(.admin-shell,.login-shell) :is(input,textarea)::placeholder{color:#8fa6bf}
html[data-theme=dark] :is(.admin-shell,.login-shell) .primary{background:#7ee5f6;color:#052541;border-color:#7ee5f6}
html[data-theme=dark] :is(.admin-shell,.login-shell) :is(.secondary,.upload){background:#17334c;color:#e1efff;border-color:#3a526d}
html[data-theme=dark] .admin-shell :is(th,.ad-map>div,.docs pre){background:#132b42;color:#eef4fc}
html[data-theme=dark] .admin-shell :is(td,.list-row,.capture-row){border-color:#2b4158}
html[data-theme=dark] .admin-shell .welcome-panel{background:linear-gradient(120deg,#10304e,#12516b);color:#fff}
html[data-theme=dark] .admin-shell .panel code{background:#19354e;color:#bcf1ff}
html[data-theme=dark] :is(.admin-shell,.login-shell) .notice.error{background:#401f2b;color:#ffd7df}
html[data-theme=dark] .admin-shell .notice.success{background:#123d35;color:#c5f6e5}
@media(max-width:760px){.login-brand img{width:200px}.login-brand{padding:28px}.admin-heading h1{font-size:28px}.admin-top{padding:10px 16px}.login-tools{margin-bottom:16px}}
html[data-theme=dark] :is(.admin-shell,.login-shell) :is(.field,.check){color:#d7e6f6}
/* Densidade da redação e edição em lista/grade. */
.admin-main>main{padding:24px}.admin-shell .panel{padding:20px;margin-bottom:18px}
.admin-shell .section-heading{margin-bottom:16px}.admin-shell .form-grid{gap:12px 18px}
.admin-shell .field{margin-bottom:12px;font-size:13px}.admin-shell .field :is(input,select){min-height:40px;padding:8px 12px}
.admin-shell .button-row{gap:8px}.admin-shell :is(.list-row,.capture-row){padding:12px 0}
.admin-shell :is(th,td){padding:10px 12px}.admin-shell .admin-heading{margin-bottom:20px}
.config-view-toggle{display:flex;gap:8px;justify-content:flex-end;margin-bottom:12px}
.config-view-toggle button[aria-pressed=true]{background:#087da1;color:#fff;border-color:#087da1}
.admin-shell .config-row{padding:12px 0;margin:0;min-width:0;border-top:1px solid var(--line)}
.admin-shell .config-row .field{margin:0}.admin-shell .config-row>.button-row{margin:0;justify-content:flex-end;align-self:end;flex-wrap:nowrap}
.config-view-list:is(.config-menu,.config-social) .config-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}
.config-view-list:is(.config-cities,.config-editorials) .config-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}
.config-view-list.config-editorials .config-row{grid-template-columns:minmax(0,1fr) 150px auto}
.config-view-list:is(.config-cities,.config-editorials) .form-grid{grid-template-columns:1fr 1fr 1.4fr}
.config-view-grid .config-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.admin-shell .config-view-grid .config-row{display:flex;flex-direction:column;gap:12px;border:1px solid var(--line);border-radius:8px;padding:16px;background:var(--soft)}
.config-view-grid .config-row>.button-row{margin-top:auto}.config-view-grid .config-row>.form-grid{width:100%}
.config-view-grid.config-pages .form-grid{grid-template-columns:1fr}
@media(max-width:1100px){.config-view-list.config-editorials .config-row{grid-template-columns:1fr auto}.config-view-list.config-editorials .config-row>.form-grid{grid-column:1/-1}.config-view-grid .config-items{grid-template-columns:1fr}}
@media(max-width:760px){.admin-main>main{padding:16px}.admin-shell .panel{padding:16px}.config-view-list:is(.config-menu,.config-social,.config-cities,.config-editorials) .config-row{grid-template-columns:1fr}.config-view-list:is(.config-cities,.config-editorials) .form-grid{grid-template-columns:1fr}.config-view-toggle{justify-content:flex-start}}
.history-log>summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600;color:var(--ink)}
.history-log[open]>.table-wrap{margin-top:16px}
.history-log>summary:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.campaign-schedule,.campaign-order{padding:14px 0;border-top:1px solid var(--line);margin:12px 0}
.campaign-schedule p,.campaign-order p{font-size:13px;color:var(--muted);margin:8px 0}
.campaign-order summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600}
.campaign-order .field{max-width:240px}
.admin-shell .ad-map .ad-map-campaign{display:flex;flex-direction:column;gap:8px;width:100%;padding:10px;margin-top:10px;text-align:left;border:1px solid var(--line);border-radius:6px;background:var(--white);color:var(--ink)}
.ad-map-campaign img{display:block;width:100%;height:90px;object-fit:contain;background:var(--soft);border-radius:4px}
.ad-map-copy{display:flex;flex-direction:column;gap:4px}.ad-map-copy strong{font-size:13px;overflow-wrap:anywhere}.ad-map-copy small{font-size:12px;color:var(--muted)}
.ad-map-video{display:grid;place-items:center;width:100%;height:90px;background:var(--soft);color:var(--ink)}
/* A lateral permanece escura nos dois temas: textos sempre claros. */
.admin-shell .admin-nav{color:#edf5ff}
.admin-shell .admin-nav nav button{color:#e0edf9}
.admin-shell .admin-nav nav button>span{color:#8bd9ed}
.admin-shell .admin-nav nav button:hover{background:#234d67;color:#fff}
.admin-shell .admin-nav nav button.active{background:#17607e;color:#fff}
.admin-shell .admin-nav :is(.nav-caption,.admin-user small){color:#b6cede}
.admin-shell .admin-nav :is(.visit,.admin-user strong,.admin-user button){color:#edf5ff}
.admin-shell .admin-brand{background:transparent;padding:8px 0}
.admin-shell .admin-brand img{background:transparent;padding:0}
html[data-theme=light] .admin-main{--muted:#46576c}
html[data-theme=light] .admin-shell :is(.field,.check){color:#24354b}
.ad-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.admin-shell .ad-map .ad-quick-actions button{width:auto;margin:0;padding:8px 12px}
.ad-quick-editor{margin-top:12px;padding:14px;border:1px solid var(--blue);border-radius:6px;background:var(--soft)}
.ad-quick-editor>strong{display:block;margin-bottom:12px}.ad-quick-editor .media-field{flex-wrap:wrap}.ad-quick-editor .field{min-width:0;width:100%}
.admin-shell .ad-map .ad-quick-editor button{width:auto;margin:0}
.campaign-advanced{margin:16px 0;border-top:1px solid var(--line);padding-top:8px}.campaign-advanced>summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600}.campaign-advanced[open]>summary{margin-bottom:12px}
.admin-shell .ad-map .ad-slot-add{margin-top:12px;font-size:13px}
/* Vídeos municipais: superfície escura independente da cor de texto --navy. */
html[data-theme=dark] .city-video{background:linear-gradient(125deg,#0d233c,#12435c);color:#f0f6ff;border:1px solid #36566e}
html[data-theme=dark] .city-video :is(h2,h3){color:#f0f6ff}
html[data-theme=dark] .city-video .eyebrow{color:#8be5f5}
html[data-theme=dark] .city-video-choices button{background:#102c43;color:#f0f6ff;border-color:#527089}
html[data-theme=dark] .city-video-choices button[aria-pressed=true]{background:#20546c;border-color:#8be5f5}

/* Barras de configuração usam a mesma superfície e contraste dos painéis. */
.admin-shell .save-bar{background:var(--white);color:var(--ink);border-color:var(--line)}
.admin-shell button:disabled{opacity:1;background:#e4e9ee;color:#526174;border-color:#c8d1dc;cursor:not-allowed}
html[data-theme=dark] .admin-shell .save-bar{background:#102137;color:#eef4fc;border-color:#3a526d}
html[data-theme=dark] .admin-shell button:disabled{background:#244454;color:#c0d4e7;border-color:#3a526d}
html[data-theme=dark] .admin-shell .danger{color:#ffbdc6}
html[data-theme=dark] .admin-shell .bulk-bar{background:#142a40;color:#eef4fc}

/* Fontes automáticas: filtros e cards agrupados por prioridade. */
.news-source-section{margin-top:28px;border-top:1px solid var(--line);padding-top:24px}
.news-source-section .section-heading{align-items:flex-start;gap:16px;flex-wrap:wrap}
.news-source-section .section-heading p{font-size:13px;color:var(--muted);margin:8px 0 0;max-width:760px}
.news-source-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.news-priority-filters{display:flex;gap:8px;flex-wrap:wrap}
.news-priority-filters button{font-size:12px;padding:8px 12px}
.news-priority-filters button span{margin-left:6px;font-size:11px}
.admin-shell .news-priority-filters button[aria-pressed=true]{background:#08708c;color:#fff;border-color:#08708c}
html[data-theme=dark] .admin-shell .news-priority-filters button[aria-pressed=true]{background:#7ee5f6;color:#052541;border-color:#7ee5f6}
.news-source-search{display:flex;gap:12px;flex-wrap:wrap;flex:1 1 320px}
.news-source-search .field:first-child{flex:1 1 190px}.news-source-search .field:last-child{flex:1 1 120px}
.news-source-count{font-size:12px;color:var(--muted);margin:14px 0}
.news-priority-group{margin:24px 0}.news-priority-group h4{font-size:16px;margin:0 0 12px;color:var(--ink)}
.news-priority-group h4 span{font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}
.news-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.news-source-card{min-width:0;border:1px solid var(--line);border-left:3px solid var(--blue);border-radius:8px;padding:18px;background:var(--soft);color:var(--ink)}
.news-source-card header{display:flex;justify-content:space-between;gap:12px;align-items:start}
.news-source-card h5{font-size:15px;line-height:1.4;margin:0 0 4px}.news-source-card a{font-size:12px;overflow-wrap:anywhere;color:var(--muted)}
.news-source-badge{font-size:11px;font-weight:600;white-space:nowrap;border:1px solid var(--line);border-radius:20px;padding:3px 9px}
.news-source-summary{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0}.news-source-summary span{font-size:11px;background:var(--white);border:1px solid var(--line);border-radius:5px;padding:4px 8px}
.news-source-controls{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.news-source-controls .field{flex:1 1 140px}.news-source-controls .check{flex:1 1 160px}
.news-source-settings{border-top:1px solid var(--line);margin-top:10px}.news-source-settings summary{cursor:pointer;min-height:44px;align-content:center;font-size:13px;font-weight:600}.news-source-settings summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.news-source-settings .form-grid{grid-template-columns:1fr;margin-top:12px}.news-source-empty{padding:24px;border:1px dashed var(--line);border-radius:8px}
@media(max-width:1000px){.news-source-grid{grid-template-columns:1fr}}

.news-schedule-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px 24px;max-width:960px;margin:16px 0}
.admin-shell .news-schedule-fields .field{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:6px;margin:0}
.admin-shell .news-schedule-fields input{width:112px;max-width:100%;min-height:44px}
@media(max-width:480px){.news-schedule-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-shell .news-schedule-fields .field{font-size:12px}}

/* Fontes: lista compacta e grade, sem alterar a configuração da coleta. */
.news-source-viewbar,.news-source-view-actions,.news-source-view-actions [role="group"]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.news-source-viewbar{justify-content:space-between;margin:12px 0}
.news-source-view-actions{margin-left:auto}
.news-source-view-actions button{min-height:44px}
.news-source-view-actions button[aria-pressed="true"]{background:var(--blue);color:var(--on-accent,#fff);border-color:var(--blue)}
.news-source-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.news-source-card{padding:12px;border-left-width:1px}
.news-source-card h5{font-size:14px;margin:0}
.news-source-card header{min-width:0}
.news-source-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 0;flex-wrap:wrap}
.news-source-controls .field{margin:0;max-width:150px;font-size:12px}
.news-source-controls .check{margin:0;min-height:44px;white-space:nowrap}
.news-source-settings{border:0;margin:0}
.news-source-settings summary{font-size:12px}
.news-source-view-list{grid-template-columns:minmax(0,1fr);gap:6px}
.news-source-view-list .news-source-card{display:grid;grid-template-columns:minmax(180px,1fr) auto 110px;align-items:center;gap:8px 20px;padding:8px 12px}
.news-source-view-list .news-source-controls{margin:0;gap:24px;flex-wrap:nowrap}
.news-source-view-list .news-source-controls .field{display:flex;align-items:center;gap:8px;max-width:none}
.news-source-view-list .news-source-controls select{width:150px}
.news-source-view-list .news-source-settings summary{text-align:right}
.news-source-view-list .news-source-settings[open]{grid-column:1/-1}
.news-source-view-list .news-source-settings .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1200px){.news-source-view-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.news-source-view-grid{grid-template-columns:minmax(0,1fr)}.news-source-view-list .news-source-card{grid-template-columns:minmax(0,1fr)}.news-source-view-list .news-source-controls{justify-content:space-between;gap:8px}.news-source-view-list .news-source-settings .form-grid{grid-template-columns:minmax(0,1fr)}.news-source-view-actions{margin-left:0}.news-source-view-list .news-source-controls .field{flex-wrap:wrap}}
.admin-shell .news-source-view-actions button[aria-pressed="true"]{background:#08708c;color:#fff;border-color:#08708c}
html[data-theme=dark] .admin-shell .news-source-view-actions button[aria-pressed="true"]{background:#7ee5f6;color:#052541;border-color:#7ee5f6}
.news-source-view-list .news-source-controls .check,.news-source-view-list .news-source-controls .field{flex:0 1 auto}

/* Histórico compacto: fechado por padrão, detalhes sob demanda. */
.news-execution > .news-source-viewbar{margin:0}
.news-execution > .news-source-viewbar h2{margin:0}
.news-history{display:grid;gap:10px;align-items:start}
.news-history-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.news-history-list{grid-template-columns:minmax(0,1fr)}
.news-history-card{min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px;overflow-wrap:anywhere}
.news-history-card > summary{cursor:pointer;min-height:24px;line-height:1.6}
.news-history-card ul{padding-left:20px}
.news-history-card p{margin:10px 0}
@media(max-width:1100px){.news-history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.news-history-grid{grid-template-columns:minmax(0,1fr)}}

.nav-dropdown-panel[hidden]{display:none}
.event-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.event-card{padding:20px;border:1px solid var(--line);border-radius:8px}.event-card time{color:var(--muted);font-weight:700}.event-card h2{font-size:22px;line-height:1.3}.event-card p{overflow-wrap:anywhere}@media(max-width:700px){.event-list{grid-template-columns:1fr}}

.collection-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.collection-filters label{display:grid;gap:6px;font-weight:600}.collection-filters select,.collection-filters button{padding:10px;min-height:44px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink)}.collection-filters button{background:var(--blue);color:var(--navy)}

.collection-home .city-masthead{display:block}.collection-home .city-masthead p{max-width:65ch;color:var(--muted);margin:12px 0 0}.collection-filters button{background:var(--cyan,#7ee5f6);color:#052541}.nav-dropdown:last-child>.nav-dropdown-panel{min-width:270px}@media(max-width:760px){.nav-dropdown:last-child>.nav-dropdown-panel{grid-template-columns:1fr;min-width:0}}

.retry-selection-row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:start;margin:10px 0}.retry-selection-row>.check{margin:0;min-height:24px}.retry-reason{display:block;color:var(--muted);font-size:13px;font-weight:400;overflow-wrap:anywhere;margin:4px 0 8px}

.admin-shell .retry-selection-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:16px 0;padding:0}.admin-shell .retry-selection-toolbar>.check{display:inline-flex;align-items:center;gap:8px;margin:0;min-height:44px}.admin-shell .retry-selection-toolbar>button{flex:0 0 auto;align-self:center;min-height:44px;height:auto;margin:0;padding:10px 16px}.admin-shell .retry-selection-toolbar>button:disabled{cursor:default}

.news-source-section>summary{font-weight:700;cursor:pointer}.news-source-section[open]>summary{margin-bottom:16px}

html[data-theme=dark] .brand:has(.brand-dark){background:transparent}
html[data-theme=dark] .brand .brand-dark{background:transparent;object-fit:contain;filter:brightness(0) invert(1)}

/* Cores da marca para o cabeçalho e as páginas internas. */
html[data-theme="light"] .masthead{
 background:var(--brand-surface,#fff);
 color:#17212b;
}
html[data-theme="light"] .masthead :is(.edition,.mobile-brand-tagline,.search,.mobile-search){color:inherit}
html[data-theme="light"] .masthead .search input{color:inherit;background:transparent;border-color:currentColor}
html[data-theme="light"] .masthead .search input::placeholder{color:inherit;opacity:.85}
html[data-theme="dark"] body:has(.masthead){
 --ink:#f1f3f5;
 --muted:#c1c6cd;
 --line:color-mix(in srgb,var(--portal-brand-nav) 42%,#41444b);
 --white:color-mix(in srgb,var(--portal-brand-nav) 19%,#202126);
 --soft:var(--white);
 --paper:var(--white);
 background:color-mix(in srgb,var(--portal-brand-nav) 22%,#14161a);
}
html[data-theme="dark"] .masthead{background:transparent;color:var(--ink)}
html .utility{background:var(--portal-brand-nav);color:#fff}
html .utility a,html .utility .theme-toggle{color:inherit}

/* Mantém o rodapé interno na mesma família de cinzas da página inicial. */
html[data-theme="light"] body footer{background:#f0f1f3;color:#20252b;border-top-color:#c8cdd2}
html[data-theme="dark"] body footer{background:var(--white);color:var(--ink);border-top-color:var(--line)}
html body footer a{color:inherit}

html[data-theme=light] .footer-grid .brand-light{background:transparent;filter:none}

html body .utility{position:sticky;top:0;z-index:50}
html body .utility .top-date{font-variant-numeric:tabular-nums;letter-spacing:0;white-space:nowrap}

.portal-fixed-masthead{position:sticky;top:0;z-index:50;background:var(--brand-surface,#fff)}
html[data-theme=dark] .portal-fixed-masthead{background:var(--white)}
html[data-theme=dark] .portal-fixed-masthead .utility{background:var(--white);color:var(--ink);border-bottom:1px solid var(--line)}
html body .portal-fixed-masthead .utility{position:static}
