header{background:var(--bg,#17181f);color:var(--text,#f6f1eb)}header .brand{font-family:Arial,Helvetica,sans-serif!important;font-size:22px!important;font-weight:900!important;letter-spacing:-.7px!important;white-space:nowrap!important;text-decoration:none!important;gap:0!important}header .brand img,header .brand-emblem,header .brand-period,header .brand b{display:none!important}header .nav{display:grid!important;grid-template-columns:auto minmax(0,1fr) 40px!important;align-items:center!important;gap:30px!important;height:auto!important;min-height:88px!important;padding:18px 0!important}body>header:not(:has(.nav)){display:grid!important;grid-template-columns:auto minmax(0,1fr) 40px!important;max-width:1240px!important;min-height:88px!important;padding:18px 24px!important;margin:auto!important;gap:30px!important}header nav.primary-menu,header #navLinks{display:grid!important;grid-template-columns:.9fr 1.5fr 1fr 1fr!important;gap:8px!important;width:100%!important;margin:0!important;padding:0!important;position:static!important;order:unset!important;background:none!important}header .primary-menu a{font:700 13px Arial,Helvetica,sans-serif!important;padding:13px 5px!important;text-align:center!important;min-width:0!important;text-decoration:none!important}header .nav-actions{margin:0!important;display:block!important}header #theme,header #themeToggle{border:0!important;background:transparent!important;box-shadow:none!important;font-size:23px!important;padding:8px!important;min-width:36px!important;color:inherit!important}header .theme-label,header .nav-actions>.btn,header #menuToggle{display:none!important}@media(max-width:1100px){header .nav,body>header:not(:has(.nav)){grid-template-columns:minmax(0,1fr) 36px!important;gap:12px!important}header nav.primary-menu,header #navLinks{grid-column:1/-1!important;grid-row:2!important}header .nav-actions,header #theme{grid-column:2!important;grid-row:1!important}header .nav{padding:14px 0!important;min-height:0!important}}@media(max-width:560px){header .primary-menu a{font-size:clamp(9px,2.6vw,12px)!important;padding:12px 2px!important}header .brand{font-size:21px!important}body>header:not(:has(.nav)){padding:14px 16px!important}}

html[data-theme="light"] header{background:#fff;color:#24242c}html[data-theme="light"] header .brand,html[data-theme="light"] header .primary-menu a{color:#24242c}html[data-theme="light"] header .primary-menu a.active-page{color:#ba590d}

html[data-theme="light"] .portal-tools{background:#fff;color:#24242c}html[data-theme="light"] .portal-tools small,html[data-theme="light"] .portal-tools .preview-note{color:#5b5b65}html[data-theme="light"] .forecast-grid,html[data-theme="light"] .forecast-grid>div{border-color:#e2e2e7}.preview-note a{color:inherit}.portal-tools{overflow-wrap:anywhere}

.market{flex-wrap:wrap;gap:16px!important}.market-stock{border:0;background:none;color:inherit;font:inherit;text-align:left;padding:0;min-width:75px;cursor:pointer}.market-stock b{display:block}.market-stock:focus-visible{outline:2px solid currentColor;outline-offset:4px}@media(max-width:560px){.market{gap:10px!important;justify-content:space-between}.market>small{flex-basis:100%}}

.market-stock{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;min-width:160px;white-space:nowrap;font-size:12px}.market-stock b{display:inline;font-weight:500}.market-stock{order:5;margin-left:8px}.market-stock .up{color:#22834a}.market-stock .down{color:#ce3535}@media(max-width:560px){.market-stock{order:5;margin-left:auto;min-width:160px}.market>small{order:6}}

.portal-tools .preview-note{border-top:0;padding:0 0 3px!important;margin:0;font-size:10px!important;min-height:0}.portal-sources{text-align:right}.portal-sources summary{display:inline-block;cursor:pointer;color:var(--muted,#73737d);font-size:10px;line-height:1.2;padding:1px 0}.portal-sources summary:hover{text-decoration:underline}.portal-sources>div{padding:6px 0;line-height:1.6}.portal-sources[open] summary{font-weight:700}

/* Faixa de serviços compacta: preserva largura e área clicável do clima. */
.portal-tools>.wrap:first-child{min-height:30px!important;gap:12px!important}
.portal-tools .weather-toggle{padding:5px 0!important;line-height:1.3}
.portal-tools .market{row-gap:4px!important;padding-bottom:2px!important;line-height:1.3}
.portal-tools .market b{margin-top:1px}
.portal-tools .preview-note{padding-bottom:1px!important;line-height:1.2}
.portal-sources summary{padding:0;line-height:1.2}
@media(max-width:700px){
 .portal-tools>.wrap:first-child{gap:1px!important;min-height:0!important}
 .portal-tools .weather-toggle{padding:4px 0!important}
 .portal-tools .market{padding-bottom:3px!important;row-gap:4px!important}
 .portal-tools .preview-note:has(.portal-sources:not([open])){margin-top:-14px;position:relative;pointer-events:none}
 .portal-sources summary{pointer-events:auto}
 .portal-sources[open]>div{padding-top:4px}
}

#weatherPreview:focus{outline:none}
#weatherPreview:focus-visible{outline:1px solid currentColor;outline-offset:2px;border-radius:3px}
@media(max-width:560px){
 .account-entry .wrap{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;gap:8px!important;align-items:center}
 .account-entry #entryStatus{display:none!important}
 .account-entry #entryLogin{grid-column:1;grid-row:1;margin:0}
 .account-entry #entrySignup,.account-entry #entryLogout{grid-column:3;grid-row:1;margin:0}
 .account-entry .weather-in-account{grid-column:2;grid-row:1;justify-self:center;border:0;background:transparent;color:inherit;margin:0;padding:5px 0;font-size:10px;line-height:1.3;white-space:nowrap}
 .weather-in-account small{display:none}
 .weather-in-account strong{font-weight:600}
 .account-entry .quiz-ranking-link{grid-column:1/-1;grid-row:2;justify-content:center}
}
