/* PATCH 530 CONSOLIDADO: ORDEM ORIGINAL PRESERVADA - 527 -> 528 -> 530. */
/* QI DO MECANICO — MEGA PATCH 527 / 2026-11-16
   Camada corretiva PONTUAL sobre 521-526. Sem alterar a logica PHP das paginas.
   Navegacao: todas as paginas com paleta 521, exceto a experiencia MotoClubes.
   Modulos: SOMENTE body.qi527-theme; o PHP exclui Manuais, Habilitacao,
   Leis e Multas, MotoClubes, leitor PDF e Loja QI.
   Cores semanticas: vantagem/erro/sucesso mantidas, com tinta apropriada.
*/

/* 1. NAVEGACAO — escala compacta fiel aos 5 cards de referencia. */
body.qi-palette-521 .site-header .nav-submenu{
  width:min(410px,calc(100vw - 22px));padding:7px!important;
  background:#e8edf4!important;border-color:#566071!important;
}
body.qi-palette-521 .site-header .nav-submenu .qi524-menu-item{
  grid-template-columns:48px minmax(0,1fr) 58px!important;
  column-gap:10px!important;min-height:69px!important;
  padding:6px 0 6px 8px!important;border-radius:16px!important;
  background:#1c2027!important;border-color:#404956!important;
  text-decoration:none!important;
}
body.qi-palette-521 .site-header .nav-submenu .qi524-menu-item + .qi524-menu-item{margin-top:6px!important}
body.qi-palette-521 .site-header .nav-submenu .qi524-menu-item .qi524-menu-icon{
  width:45px!important;height:45px!important;padding:3px!important;
  border-radius:13px!important;overflow:hidden!important;
}
body.qi-palette-521 .site-header .nav-submenu .qi524-menu-item .qi524-menu-icon img,
body.qi-palette-521 .site-header .nav-submenu .qi524-menu-item .qi524-menu-icon svg{
  width:39px!important;height:39px!important;max-width:100%!important;object-fit:contain!important;
}
body.qi-palette-521 .site-header .nav-submenu .qi524-menu-item .nav-submenu-copy strong{
  font-size:.89rem!important;line-height:1.15!important;letter-spacing:0!important;
  color:#fff!important;white-space:normal!important;
}
body.qi-palette-521 .site-header .nav-submenu .qi524-menu-item .nav-submenu-copy small{
  margin-top:3px!important;font-size:.705rem!important;line-height:1.25!important;
  color:#d7e0ec!important;white-space:normal!important;overflow-wrap:break-word!important;
}
body.qi-palette-521 .site-header .nav-submenu .qi524-menu-item .qi524-menu-arrow{
  width:58px!important;height:auto!important;min-width:0!important;
  margin:-6px 0!important;border-radius:38px 15px 15px 38px!important;
  font-size:1.6rem!important;color:#fff!important;
}
body.qi-palette-521 .site-header .nav-submenu .qi524-menu-item .qi524-menu-arrow::before{
  width:31px!important;height:31px!important;border-radius:11px!important;
}
body.qi-palette-521 .site-header .nav-submenu .qi524-menu-item:is(:focus-visible,:hover){
  background:#292f38!important;border-color:#9babbf!important;
}
/* Excecao visual absoluta do item de menu MotoClubes, sem esconder sua marca. */
body.qi-palette-521 .site-header .nav-submenu-link--motoclubes{
  min-width:0!important;overflow:hidden!important;
}
body.qi-palette-521 .site-header .nav-submenu-link--motoclubes .nav-motoclubes-copy small{
  white-space:normal!important;overflow-wrap:break-word!important;
}
/* Mobile, navegacao aberta: nada de branco com texto branco. */
@media(max-width:1040px){
  body.qi-palette-521 .site-header .main-nav.open .nav-group-toggle,
  body.qi-palette-521 .site-header .main-nav.open .nav-group .nav-group-toggle[aria-expanded="false"]{
    background:#252a32!important;color:#fff!important;border-color:#555d6b!important;
  }
  body.qi-palette-521 .site-header .main-nav.open .nav-group-toggle :is(.nav-group-label,.nav-chevron){color:#fff!important;opacity:1!important}
  body.qi-palette-521 .site-header .main-nav.open .nav-group .nav-group-toggle[aria-expanded="true"]{
    background:#a91e29!important;color:#fff!important;border-color:#df5260!important;
  }
  body.qi-palette-521 .site-header .main-nav.open .nav-submenu{
    width:100%!important;max-width:none!important;
  }
  body.qi-palette-521 .site-header .main-nav.open .nav-submenu .qi524-menu-item{
    grid-template-columns:45px minmax(0,1fr) 46px!important;
    min-height:68px!important;column-gap:7px!important;
    padding:6px 0 6px 7px!important;border-radius:14px!important;
  }
  body.qi-palette-521 .site-header .main-nav.open .nav-submenu .qi524-menu-item .qi524-menu-icon{
    width:42px!important;height:42px!important;padding:2px!important;
  }
  body.qi-palette-521 .site-header .main-nav.open .nav-submenu .qi524-menu-item .qi524-menu-icon :is(img,svg){
    width:37px!important;height:37px!important;
  }
  body.qi-palette-521 .site-header .main-nav.open .nav-submenu .qi524-menu-item .nav-submenu-copy strong{
    font-size:.88rem!important;
  }
  body.qi-palette-521 .site-header .main-nav.open .nav-submenu .qi524-menu-item .nav-submenu-copy small{
    font-size:.70rem!important;line-height:1.25!important;
  }
  body.qi-palette-521 .site-header .main-nav.open .nav-submenu .qi524-menu-item .qi524-menu-arrow{
    width:46px!important;min-height:48px!important;margin:-6px 0!important;
    border-radius:35px 13px 13px 35px!important;
  }
  body.qi-palette-521 .site-header .main-nav.open .nav-submenu .qi524-menu-item .qi524-menu-arrow::before{
    width:28px!important;height:28px!important;
  }
  body.qi-palette-521 .site-header .nav-toggle.open{color:#fff!important;border-color:#697487!important}
  body.qi-palette-521 .site-header .nav-toggle.open::after{color:#f8f9fc!important}
}
@media(max-width:370px){
  body.qi-palette-521 .site-header .main-nav.open .nav-submenu .qi524-menu-item{
    grid-template-columns:40px minmax(0,1fr) 40px!important;column-gap:6px!important;
  }
  body.qi-palette-521 .site-header .main-nav.open .nav-submenu .qi524-menu-item .qi524-menu-icon{width:39px!important;height:39px!important}
  body.qi-palette-521 .site-header .main-nav.open .nav-submenu .qi524-menu-item .qi524-menu-arrow{width:40px!important}
}

/* 2. PALETA DE MODULOS — somente escopo deliberado pelo servidor. */
body.qi527-theme{
  --qi527-ink:#f7f9fc;--qi527-muted:#d0d7e1;--qi527-paper:#f8fafc;
  --qi527-dark-ink:#13243b;--qi527-dark-muted:#42536b;
  --qi527-panel:#1c2027;--qi527-outline:#4d5869;
}

/* 3. ADMIN > ATUALIZACOES: avisos claros ganham texto ESCURO real. */
body.qi527-theme .admin-page .update-result-notice:not(.is-error),
body.qi527-theme .admin-page .update-file-ready,
body.qi527-theme .admin-page .update-status-v2.ok{
  background:#e7f7eb!important;color:#124f2b!important;border-color:#70b68d!important;
  opacity:1!important;
}
body.qi527-theme .admin-page .update-result-notice.is-error,
body.qi527-theme .admin-page .update-status-v2.error{
  background:#fff0f0!important;color:#84232c!important;border-color:#e2a4aa!important;
}
body.qi527-theme .admin-page .update-result-notice :is(strong,small,span:not(.update-result-notice-icon),a),
body.qi527-theme .admin-page .update-file-ready :is(strong,small),
body.qi527-theme .admin-page .update-status-v2.ok :is(strong,span,small),
body.qi527-theme .admin-page .update-status-v2.error :is(strong,span,small){
  color:inherit!important;opacity:1!important;text-shadow:none!important;
}
body.qi527-theme .admin-page .update-result-notice .update-result-notice-icon,
body.qi527-theme .admin-page .update-file-ready>span{
  background:#15783c!important;color:#fff!important;
}
body.qi527-theme .admin-page .update-result-notice.is-error .update-result-notice-icon{background:#a72b38!important;color:#fff!important}
body.qi527-theme .admin-page .update-result-notice a{color:inherit!important;text-decoration:underline!important}
body.qi527-theme .admin-page :is(.sql-status-executed,.sql-status-ignored,.sql-status-error) :is(strong,small,span){color:inherit!important}

/* 4. TABELA FIPE — nenhum label invisivel sobre caixas claras. */
body.qi527-theme .fipe-page .fipe-panel .fipe-field{
  background:#2a3039!important;border:1px solid #4c596a!important;
  border-radius:15px!important;padding:10px!important;
}
body.qi527-theme .fipe-page .fipe-panel .fipe-field>label,
body.qi527-theme .fipe-page .fipe-panel .fipe-field label{
  color:#f6f8fc!important;opacity:1!important;text-shadow:none!important;
}
body.qi527-theme .fipe-page .fipe-panel .fipe-field :is(select,input){
  background:#141a21!important;color:#fff!important;border:1px solid #647083!important;
}
body.qi527-theme .fipe-page .fipe-panel .fipe-field :is(select,input):disabled{
  background:#343b44!important;color:#e0e7f0!important;opacity:.76!important;
}
body.qi527-theme .fipe-page :is(.fipe-panel-head,.fipe-popular-head) :is(h2,h3,p,small){color:var(--qi527-ink)!important}
body.qi527-theme .fipe-page .fipe-popular-item{background:#252b35!important;border-color:#4c596a!important;color:#fff!important}
body.qi527-theme .fipe-page .fipe-popular-item strong{color:#fff!important}
body.qi527-theme .fipe-page .fipe-popular-item :is(small,span){color:#d9e2ed!important}

/* 5. QI TECNICO / BIKES ELETRICAS — fundo geral e cards legiveis.
   Nunca substituir background-image original de .qit-brand-card. */
body.qi527-theme .qit-page,
body.qi527-theme .qie-page{
  background:radial-gradient(circle at 85% 0%,rgba(200,35,51,.12),transparent 32%),linear-gradient(180deg,#161a20,#101217 75%)!important;
  color:#f8f9fc!important;
}
body.qi527-theme :is(.qit-page,.qie-page) :is(.qit-head,.qie-head) :is(h2,h3){color:#fff!important}
body.qi527-theme :is(.qit-page,.qie-page) :is(.qit-head,.qie-head) :is(p,small,span:not(.qit-category)){color:#d3dbe5!important}
body.qi527-theme .qit-page .qit-head,
body.qi527-theme .qie-page .qie-head{margin:16px 0 16px!important;align-items:center!important}
body.qi527-theme .qie-page .qie-card{
  background:#1c2027!important;color:#f8f9fc!important;border-color:#4a5563!important;
}
body.qi527-theme .qie-page .qie-card :is(h2,h3,h4,strong){color:#f8f9fc!important}
body.qi527-theme .qie-page .qie-card :is(p,small){color:#d9e1ea!important}
body.qi527-theme .qie-page .qie-card :is(.qie-status,.qie-line){color:#a9f0d9!important}
body.qi527-theme .qie-page .qie-card .qie-open,
body.qi527-theme .qie-page .qie-card .qie-open :is(span,strong){color:#87f1d5!important;text-decoration:none!important}
body.qi527-theme .qie-page .qie-card .qie-open:hover{color:#cbfff1!important}
body.qi527-theme .qie-page .qie-card .qie-counts :is(span,small){color:#13372e!important}
body.qi527-theme .qie-page .qie-card :is(.qie-card-top,.qie-counts){min-width:0}
body.qi527-theme .qie-page .qie-head + .qie-grid{margin-top:8px!important}
body.qi527-theme .qit-page .qit-card :is(h2,h3,h4,strong){color:#fff!important}
body.qi527-theme .qit-page .qit-card :is(p,small){color:#d8e0e9!important}
/* Brand cards are deliberately exempt from the dark-card rule. */
body.qi527-theme .qit-page .qit-brand-card :is(h2,h3,h4,strong){color:#14263d!important}
body.qi527-theme .qit-page .qit-brand-card :is(p,small){color:#47566b!important}

/* 6. PECAS COMPATIVEIS — subcard de papel e observacao escura. */
body.qi527-theme .compat-page .compat-variant{
  background:#fff!important;border-color:#c6d3e0!important;color:#15253a!important;
}
body.qi527-theme .compat-page .compat-variant :is(h3,h4,strong,p,small,span:not(.compat-mini-chip)){
  color:#15253a!important;opacity:1!important;
}
body.qi527-theme .compat-page .compat-variant :is(a,.compat-variant-search){color:#005db0!important;font-weight:850!important}
body.qi527-theme .compat-page .compat-variant .compat-tech-note{
  background:#252b33!important;border-color:#536071!important;color:#f3f6fb!important;
}
body.qi527-theme .compat-page .compat-variant .compat-tech-note :is(b,strong,span,small,p){color:#f3f6fb!important}
body.qi527-theme .compat-page .compat-variant .compat-variant-meta,
body.qi527-theme .compat-page .compat-variant .compat-variant-meta :is(span,small){color:#34475e!important}
body.qi527-theme .compat-page .compat-variant .compat-position-chip{color:#2d3e51!important}
body.qi527-theme .compat-page .compat-result-card :is(.section-title h2,.compact-title h2){color:#fff!important}

/* 7. COMPARADOR — fundo pastel = texto escuro, inclusive vantagens e badges. */
body.qi527-theme .qidisc-page{background:linear-gradient(180deg,#151920,#101217)!important;color:#f8f9fc!important}
body.qi527-theme .qidisc-page .qidisc-number-card,
body.qi527-theme .qidisc-page .qidisc-number-card.is-equal,
body.qi527-theme .qidisc-page .qidisc-number-card.is-neutral{
  background:#edf2f8!important;color:#14243a!important;border-color:#d6e1ed!important;
}
body.qi527-theme .qidisc-page .qidisc-number-card.is-better{background:#e6f8ec!important;border-color:#85d5a3!important}
body.qi527-theme .qidisc-page .qidisc-number-card.is-worse{background:#fff0ee!important;border-color:#efa9a6!important}
body.qi527-theme .qidisc-page .qidisc-number-card :is(small,span){color:#33465c!important;opacity:1!important}
body.qi527-theme .qidisc-page .qidisc-number-card strong{color:#14243a!important;opacity:1!important}
body.qi527-theme .qidisc-page .qidisc-number-card.is-better strong{color:#125d37!important}
body.qi527-theme .qidisc-page .qidisc-number-card.is-worse strong{color:#8c2630!important}
body.qi527-theme .qidisc-page .qidisc-number-card.is-better em{background:#c5efda!important;color:#125d37!important}
body.qi527-theme .qidisc-page .qidisc-number-card.is-worse em{background:#ffdad6!important;color:#8c2630!important}
body.qi527-theme .qidisc-page .qidisc-compare-cell.is-better{background:#e8f7ef!important}
body.qi527-theme .qidisc-page .qidisc-compare-cell.is-worse{background:#fff0ee!important}
body.qi527-theme .qidisc-page .qidisc-compare-cell.is-equal{background:#edf2f8!important}
body.qi527-theme .qidisc-page .qidisc-compare-cell :is(strong,.qidisc-compare-value){color:#17324a!important}
body.qi527-theme .qidisc-page .qidisc-compare-cell.is-better .qidisc-compare-value{color:#12663c!important}
body.qi527-theme .qidisc-page .qidisc-compare-cell.is-worse .qidisc-compare-value{color:#912934!important}
body.qi527-theme .qidisc-page .qidisc-compare-cell .qidisc-compare-badge{color:#28435a!important}
body.qi527-theme .qidisc-page .qidisc-compare-cell.is-better .qidisc-compare-badge{background:#caefd9!important;color:#155c37!important}
body.qi527-theme .qidisc-page .qidisc-compare-cell.is-worse .qidisc-compare-badge{background:#fbdad7!important;color:#842e2e!important}
body.qi527-theme .qidisc-page .qidisc-compare-cell.is-equal .qidisc-compare-badge{background:#d9e3ed!important;color:#354b60!important}
body.qi527-theme .qidisc-page .qidisc-compare-cell .qidisc-confidence{color:#214060!important}
body.qi527-theme .qidisc-page .qidisc-compare-legend{background:#252b34!important;color:#f8f9fc!important;border-color:#586373!important}
body.qi527-theme .qidisc-page .qidisc-compare-legend small{color:#d7e0eb!important}
body.qi527-theme .qidisc-page .qidisc-compare-legend .is-better{color:#8becb2!important}
body.qi527-theme .qidisc-page .qidisc-compare-legend .is-worse{color:#ffb7b8!important}
body.qi527-theme .qidisc-page .qidisc-compare-legend .is-neutral{color:#dae2ed!important}

/* 8. GARAGEM QI — formularios e estados vazios, sem afetar logica de negocios. */
body.qi527-theme .gq-page :is(.gq-empty-actions,.gq-my-actions) .gq-chip-btn:not(.primary){
  background:#29323e!important;color:#fff!important;border:1px solid #8590a0!important;
}
body.qi527-theme .gq-page :is(.gq-empty-actions,.gq-my-actions) .gq-chip-btn.primary,
body.qi527-theme .gq-page :is(.gq-empty-actions,.gq-my-actions) .gq-chip-btn.primary :is(span,strong){
  background:var(--qi523-action,#d52b34)!important;color:#fff!important;
}
body.qi527-theme .gq-page :is(.gq-form-shell,.gq-panel) .gq-chip-btn:not(.primary){
  color:#fff!important;background:#303945!important;border-color:#707d90!important;
}
body.qi527-theme .gq-page .gq-nav a:not(.primary){color:#f8f9fc!important;background:#2a3038!important;border-color:#697486!important}
body.qi527-theme .gq-page .gq-nav a.primary{color:#fff!important;background:var(--qi523-action,#d52b34)!important}
body.qi527-theme .gq-page .gq-empty{color:#f8f9fc!important}
body.qi527-theme .gq-page .gq-empty :is(strong,p,small){color:#f8f9fc!important}
body.qi527-theme .gq-page :is(.gq-form-shell,.gq-panel) :is(input:not([type=checkbox]),select,textarea){
  color:#17253a!important;background:#f8fafc!important;border-color:#aabbd0!important;
}
body.qi527-theme .gq-page :is(.gq-form-shell,.gq-panel) :is(input,textarea)::placeholder{color:#59687b!important}
body.qi527-theme .gq-page .gq-form-shell :is(h1,h2,h3,label,strong){color:#10233c!important}

/* 9. FORUM E AVALIACOES — estatisticas e resultados visiveis. */
body.qi527-theme :is(.forum-page,.reviews-page) :is(.forum-stat,.reviews-stat){
  background:#272c35!important;color:#fff!important;border:1px solid #626d7c!important;
  border-radius:12px!important;padding:9px 13px!important;min-width:100px;
}
body.qi527-theme :is(.forum-page,.reviews-page) :is(.forum-stat,.reviews-stat) :is(strong,b){
  color:#fff!important;font-size:1.17rem!important;line-height:1.2!important;
}
body.qi527-theme :is(.forum-page,.reviews-page) :is(.forum-stat,.reviews-stat) :is(span,small){
  color:#d9e0ec!important;font-size:.74rem!important;opacity:1!important;line-height:1.35!important;
}
body.qi527-theme :is(.forum-page,.reviews-page) :is(.forum-feed-head,.reviews-feed-head) :is(h2,h3){color:#fff!important}
body.qi527-theme :is(.forum-page,.reviews-page) :is(.forum-feed-head,.reviews-feed-head) :is(p,span){color:#cbd4df!important}
body.qi527-theme .forum-page .forum-topic-card{background:#21262f!important;color:#fff!important;border-color:#4a5665!important}
body.qi527-theme .forum-page .forum-topic-card :is(h2,h3,strong){color:#fff!important}
body.qi527-theme .forum-page .forum-topic-card :is(p,small){color:#d3dce7!important}
body.qi527-theme .forum-page .forum-category-chip:not(.active){background:#303844!important;color:#fff!important;border-color:#728097!important}
body.qi527-theme .forum-page .forum-topic-card :is(a,.forum-topic-link){color:#a7d7ff!important}
body.qi527-theme .reviews-page .review-card .review-summary-item{background:#f3f6fb!important}
body.qi527-theme .reviews-page .review-card .review-summary-item :is(strong,small,p,span){color:#23364b!important}
body.qi527-theme .reviews-page .review-card .review-read-more{color:#a91e29!important}
body.qi527-theme .reviews-page .reviews-side-card .reviews-tips :is(li,span,small){color:#e6ebf3!important}

/* 10. RANKING COMUNIDADE: badges claros exigem tinta escura. */
body.qi527-theme :is(.ranking-card,.ranking-row) :is(.member-novo,.member-new,.member-badge,.points-combo, .member-level){opacity:1!important}
body.qi527-theme :is(.ranking-card,.ranking-row) .points-combo :is(span,strong,small),
body.qi527-theme :is(.ranking-card,.ranking-row) :is(.member-novo,.member-new,.member-badge,.member-level) :is(span,strong,small){
  color:#19344c!important;opacity:1!important;text-shadow:none!important;
}
body.qi527-theme .ranking-card :is(.member-badge,.member-novo,.member-new),
body.qi527-theme .ranking-row :is(.member-badge,.member-novo,.member-new){background:#eaf7ed!important;color:#13542c!important;border-color:#a4d6b6!important}
body.qi527-theme .ranking-card .points-combo,
body.qi527-theme .ranking-row .points-combo{background:#e8edf6!important;color:#173149!important;border-radius:999px!important}
body.qi527-theme .ranking-card .points-combo :is(span,strong),
body.qi527-theme .ranking-row .points-combo :is(span,strong){color:#173149!important}

/* 11. NOTICIAS E GUIAS — fundos laterais e tipografia da leitura. */
body.qi527-theme .news-detail,
body.qi527-theme .news-public{background:#101217!important;color:#f8f9fc!important}
body.qi527-theme .news-detail .detail-card,
body.qi527-theme .news-detail .detail-body{background:#1c2027!important;color:#f8f9fc!important;border-color:#4c5665!important}
body.qi527-theme .news-detail .detail-body :is(h1,h2,h3,h4),
body.qi527-theme .news-detail .detail-text :is(h1,h2,h3,h4){color:#fff!important}
body.qi527-theme .news-detail .detail-body .detail-summary{color:#d6dfea!important}
body.qi527-theme .news-detail .detail-text,
body.qi527-theme .news-detail .detail-text :is(p,li,blockquote){color:#edf2f9!important}
body.qi527-theme .news-detail .detail-pill{background:#edf2f7!important;color:#213650!important;border-color:#cfdae8!important}
body.qi527-theme .news-detail .detail-editorial-responsibility{background:#252f3b!important;color:#f4f7fc!important;border-color:#586b82!important}
body.qi527-theme .news-detail .detail-editorial-responsibility :is(strong,h3,p,small){color:#edf3f9!important}
body.qi527-theme .news-detail .detail-editorial-responsibility a{color:#b7ddff!important}
body.qi527-theme .news-detail .news-reader{
  background:#edf3fa!important;color:#142c46!important;border-color:#b8cadd!important;
}
body.qi527-theme .news-detail .news-reader :is(h2,h3,strong,label,.news-reader-title,.news-reader-time,.news-reader-status){color:#213b57!important}
body.qi527-theme .news-detail .news-reader :is(p,small,span){color:#41566d!important}
body.qi527-theme .news-detail .news-reader :is(select,input:not([type=checkbox])){
  background:#171e28!important;color:#fff!important;border-color:#526278!important;
}
body.qi527-theme .news-detail .news-reader .reader-btn:not(.primary){background:#fff!important;color:#17334f!important;border-color:#a8bbd0!important}
body.qi527-theme .news-detail .news-reader .reader-btn.primary{background:#b71e30!important;color:#fff!important}
body.qi527-theme .news-detail :is(.qiv472-toc,.news-context-card,.news-related-card){background:#242c36!important;color:#f7f9fc!important;border-color:#536073!important}
body.qi527-theme .news-detail :is(.qiv472-toc,.news-context-card,.news-related-card) :is(h2,h3,h4,strong){color:#f7f9fc!important}
body.qi527-theme .news-detail :is(.qiv472-toc,.news-context-card,.news-related-card) :is(p,small,span){color:#d6e0ea!important}
body.qi527-theme .news-detail :is(.qiv472-toc,.news-context-card) a{color:#afd9ff!important}
body.qi527-theme .news-public .news-public-card{background:#222831!important;color:#f8f9fc!important;border-color:#485567!important}
body.qi527-theme .news-public .news-public-card :is(.news-public-title,h2,h3,strong){color:#fff!important}
body.qi527-theme .news-public .news-public-card :is(.news-public-desc,p,small,.news-public-meta){color:#d7e0eb!important}
body.qi527-theme .news-public .news-public-read{color:#fff!important;background:#b71e30!important}
body.qi527-theme .news-public .news-category-head :is(h2,p){color:#f8f9fc!important}
body.qi527-theme .qidisc-page .qidisc-guide-card{
  background:#232934!important;color:#f8f9fc!important;border-color:#48566b!important;
}
body.qi527-theme .qidisc-page .qidisc-guide-card :is(h2,h3,h4,strong){color:#fff!important}
body.qi527-theme .qidisc-page .qidisc-guide-card :is(p,small,span,.qidisc-guide-meta){color:#dae3ed!important}
body.qi527-theme .qidisc-page .qidisc-guide-card .btn-primary{background:var(--qi523-action,#d52b34)!important;color:#fff!important}
body.qi527-theme .qidisc-page .qidisc-guide-list a:hover{border-color:#b05260!important}

/* 12. ACESSIBILIDADE MOBILE: cards e botoes nao podem ficar menores que o toque. */
@media(max-width:680px){
  body.qi527-theme .fipe-page .fipe-panel .fipe-field :is(select,input){min-height:44px!important}
  body.qi527-theme :is(.forum-page,.reviews-page) :is(.forum-stats,.reviews-stats){gap:8px!important}
  body.qi527-theme :is(.forum-page,.reviews-page) :is(.forum-stat,.reviews-stat){min-width:0;padding:8px 10px!important}
  body.qi527-theme .gq-page :is(.gq-empty-actions,.gq-my-actions) .gq-chip-btn{min-height:44px!important}
  body.qi527-theme .qidisc-page .qidisc-guide-card{min-width:0}
}
@media(prefers-reduced-motion:reduce){body.qi-palette-521 .site-header .qi524-menu-item{transition:none!important}}

/* FIM 527 / INICIO 528 */
/* QI do Mecânico — PATCH 528 | Correção de contraste por COMPONENTE.
 * Carregado SOMENTE quando qi523_theme_allowed() é verdadeiro.
 * Nunca altera dados, permissões, links, leitor PDF, checkout ou imagens de montadoras.
 * Não recolore /manuais, /habilitacao, /leis-multas, MotoClubes nem Loja QI.
 * Evitar seletores globais de tags que quebram cards de fundo claro. */
body.qi527-theme{
  --qi528-dark:var(--qi521-bg,#101217);
  --qi528-card:var(--qi521-surface,#1c2027);
  --qi528-border:#46505e;
  --qi528-ink:#f6f8fc;
  --qi528-muted:#d0d9e5;
  --qi528-paper:#f8fafc;
  --qi528-paper-ink:#17283f;
  --qi528-paper-muted:#435570;
  --qi528-action:var(--qi521-primary,#d52b34);
}
/* 1. FIPE: painel 'consultas populares' era branco, mas herdava texto branco.
   Mantê-lo escuro e os cards escuros, sem mudar dados e rolagem horizontal. */
body.qi527-theme .fipe-page .fipe-popular{
  background:var(--qi528-card)!important;color:var(--qi528-ink)!important;
  border:1px solid var(--qi528-border)!important;border-radius:20px!important;
  padding:16px!important;min-width:0!important;
}
body.qi527-theme .fipe-page .fipe-popular :is(h2,h3,strong){color:var(--qi528-ink)!important}
body.qi527-theme .fipe-page .fipe-popular :is(p,small,.fipe-popular-hint){color:var(--qi528-muted)!important;opacity:1!important}
body.qi527-theme .fipe-page .fipe-popular .fipe-popular-count,
body.qi527-theme .fipe-page .fipe-popular .fipe-popular-nav{
  background:#29333f!important;color:#fff!important;border:1px solid #68788c!important;
}
body.qi527-theme .fipe-page .fipe-popular .fipe-popular-item{
  background:#27303c!important;border:1px solid #617087!important;color:#fff!important;
}
body.qi527-theme .fipe-page .fipe-popular .fipe-popular-item .fipe-popular-copy strong{color:#fff!important;opacity:1!important}
body.qi527-theme .fipe-page .fipe-popular .fipe-popular-item .fipe-popular-copy span,
body.qi527-theme .fipe-page .fipe-popular .fipe-popular-item .fipe-popular-total :is(span,small){color:#e0e9f3!important;opacity:1!important}
body.qi527-theme .fipe-page .fipe-popular .fipe-popular-rank{
  background:#e9f1fb!important;color:#123763!important;
}
body.qi527-theme .fipe-page .fipe-popular .fipe-popular-rail{min-width:0!important}
body.qi527-theme .fipe-page .fipe-panel :is(.fipe-field label,.fipe-field>label){color:#fff!important;opacity:1!important}
body.qi527-theme .fipe-page .fipe-panel .fipe-field select,
body.qi527-theme .fipe-page .fipe-panel .fipe-field input{color:#fff!important;background:#171d26!important;border-color:#8592a4!important}
body.qi527-theme .fipe-page .fipe-panel .fipe-field select:disabled{
  color:#d1dbe8!important;background:#353e4a!important;opacity:1!important;
}
/* 2. QI Técnico: o Patch 527 cobria apenas qit/qie. Cobrir também a
   página de montadora (qib), família (qif), geração (qitm) e elétrica (qiem).
   Imagens e logotipos originais são mantidos, sem mudar background-image. */
body.qi527-theme :is(.qit-page,.qib-page,.qif-page,.qitm-page,.qie-page,.qiem-page){
  background:linear-gradient(180deg,#171b22 0%,var(--qi528-dark) 78%)!important;
  color:var(--qi528-ink)!important;
}
body.qi527-theme :is(.qit-page,.qib-page,.qif-page,.qitm-page,.qie-page,.qiem-page) :is(.qit-head,.qib-head,.qif-head,.qie-head) h2{color:#fff!important}
body.qi527-theme :is(.qit-page,.qib-page,.qif-page,.qitm-page,.qie-page,.qiem-page) :is(.qit-head,.qib-head,.qif-head,.qie-head) p{color:#d9e3ed!important}
body.qi527-theme .qib-page .qib-filter,
body.qi527-theme .qif-page .qif-side-card,
body.qi527-theme .qitm-page .qitm-side-card,
body.qi527-theme .qiem-page .qiem-side-card{
  background:#252c35!important;color:#f5f7fb!important;border-color:#536170!important;
}
body.qi527-theme .qib-page .qib-filter .qib-field label{color:#f6f8fc!important;opacity:1!important}
body.qi527-theme .qib-page .qib-filter .qib-field :is(select,input),
body.qi527-theme .qif-page .qif-side-card :is(select,input){
  color:#f8f9fc!important;background:#141b23!important;border:1px solid #78889d!important;
}
body.qi527-theme .qib-page .qib-filter .qib-field :is(input,select)::placeholder{color:#bbc8d7!important;opacity:1!important}
body.qi527-theme .qib-page .qib-head :is(h2,p),
body.qi527-theme .qif-page .qif-head :is(h2,p){color:#f3f7fc!important}
body.qi527-theme .qif-page .qif-side-card :is(h2,h3,strong){color:#fff!important}
body.qi527-theme .qif-page .qif-side-card p{color:#d4dee9!important}
body.qi527-theme .qif-page .qif-side-card .qif-actions a:not(:first-child),
body.qi527-theme .qif-page .qif-side-card .qif-related a{background:#eaf1fa!important;color:#19334e!important;border-color:#b8c9dd!important}
/* Cards individuais e miniaturas por montadora permanecem com fundos claros
   e as artes existentes. Não alterar .qib-card-media, .qif-hero-media ou --brand-bg. */
body.qi527-theme .qib-page .qib-card,
body.qi527-theme .qif-page .qif-card{
  background-color:#fff!important;color:#14243b!important;border-color:#b7c8dd!important;
}
body.qi527-theme .qib-page .qib-card :is(h2,h3,strong),
body.qi527-theme .qif-page .qif-card :is(h2,h3,strong){color:#14243b!important}
body.qi527-theme .qib-page .qib-card :is(p,small),
body.qi527-theme .qif-page .qif-card :is(p,small){color:#48596e!important}
body.qi527-theme .qib-page .qib-card :is(.qib-counts span,.qib-generations span,.qib-badge),
body.qi527-theme .qif-page .qif-card :is(.qif-counts span,.qif-year){
  background:#eaf2fa!important;color:#204263!important;border-color:#bccde0!important;
}
body.qi527-theme .qib-page .qib-card .qib-main-link,
body.qi527-theme .qif-page .qif-card .qif-open{color:#0960a6!important}
/* Painéis de especificações: superfície clara e texto escuro para leitura técnica. */
body.qi527-theme :is(.qitm-page .qitm-panel,.qiem-page .qiem-panel){
  background:#f7f9fc!important;color:#172d46!important;border:1px solid #c7d3e2!important;
}
body.qi527-theme :is(.qitm-page .qitm-panel,.qiem-page .qiem-panel) :is(h2,h3,h4,strong,label){color:#152c47!important}
body.qi527-theme :is(.qitm-page .qitm-panel,.qiem-page .qiem-panel) :is(p,li,small){color:#3f526b!important;opacity:1!important}
body.qi527-theme :is(.qitm-page .qitm-panel,.qiem-page .qiem-panel) a:not(.btn){color:#055d9f!important}
body.qi527-theme .qitm-page .qitm-table th{background:#e1ebf5!important;color:#142b45!important}
body.qi527-theme .qitm-page .qitm-table td{background:#fff!important;color:#193047!important}
/* Preservar explicitamente as imagens de fundo das montadoras qit. */
body.qi527-theme .qit-page .qit-brand-card{
  background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.93) 38%,rgba(255,255,255,.70) 62%,rgba(255,255,255,.08) 100%),var(--brand-bg,none)!important;
  background-repeat:no-repeat!important;background-position:center!important;background-size:cover!important;
}
body.qi527-theme .qit-page .qit-brand-card :is(h3,p){text-shadow:0 1px 2px rgba(255,255,255,.65)!important}
/* 3. Garagem QI: contadores claros recebiam texto branco da paleta global. */
body.qi527-theme .gq-page .gq-admin-stat{
  background:#242b36!important;color:#f7f9fc!important;border:1px solid #566475!important;
}
body.qi527-theme .gq-page .gq-admin-stat :is(strong,b,small,span){color:#f7f9fc!important;opacity:1!important}
body.qi527-theme .gq-page .gq-section-head :is(h2,h3,strong){color:#fff!important}
body.qi527-theme .gq-page .gq-section-head :is(p,small,span){color:#d0d9e5!important}
body.qi527-theme .gq-page .gq-chip-btn:not(.primary){background:#edf3fb!important;color:#1a344e!important;border:1px solid #bbcddd!important}
body.qi527-theme .gq-page .gq-chip-btn.primary{background:var(--qi528-action)!important;color:#fff!important;border-color:var(--qi528-action)!important}
body.qi527-theme .gq-page .gq-empty .gq-chip-btn:not(.primary){background:#e6eef7!important;color:#17324f!important}
/* 4. Lançamentos: status de região mantém fundo claro + tinta escura. */
body.qi527-theme .launch-page .launch-region-note{
  background:#e9f2fc!important;color:#183a5a!important;border:1px solid #b2c8dd!important;
}
body.qi527-theme .launch-page .launch-region-note :is(span,strong,b,small){color:#183a5a!important;opacity:1!important}
/* 5. Notícias: a vitrine de conteúdo alternava fundo escuro e texto escuro;
   cartões de ação em papel branco precisam de texto escuro. */
body.qi527-theme .news-public .qiv472-panel{background:#222934!important;color:#f6f9fc!important;border-color:#5a687a!important}
body.qi527-theme .news-public .qiv472-panel :is(h2,h3){color:#fff!important}
body.qi527-theme .news-public .qiv472-panel .qiv472-journeys a{
  background:#f4f7fc!important;color:#183149!important;border:1px solid #bdccdf!important;
}
body.qi527-theme .news-public .qiv472-panel .qiv472-journeys a :is(strong,span,small){color:#1b344e!important;opacity:1!important}
body.qi527-theme .news-public .news-category-section{background:#1e252e!important;color:#f6f8fc!important;border-color:#48586c!important}
body.qi527-theme .news-public .news-category-head h2{color:#fff!important}
body.qi527-theme .news-public .news-category-head span{background:#e8f0fa!important;color:#214263!important}
body.qi527-theme .news-public .news-public-card{background:#222934!important;color:#fff!important;border-color:#4f6074!important}
body.qi527-theme .news-public .news-public-card :is(h3,.news-public-title){color:#fff!important}
body.qi527-theme .news-public .news-public-card :is(.news-public-desc,.news-public-footer>span,.news-public-meta>span:not(.news-cat)){color:#dbe5f0!important}
body.qi527-theme .news-public .news-public-card .news-cat{background:#eaf2fc!important;color:#164575!important}
body.qi527-theme .news-public .news-category-links a{background:#eef3fb!important;color:#193b61!important}
/* Páginas de artigo: preencher laterais escuras e dar contraste aos avisos. */
body.qi527-theme .news-detail{background:#11151b!important;color:#fff!important;min-height:100vh!important}
body.qi527-theme .news-detail .detail-card{background:#1e242d!important;color:#f6f9fc!important}
body.qi527-theme .news-detail .detail-body :is(h1,h2,h3,h4){color:#fff!important}
body.qi527-theme .news-detail .detail-body :is(.detail-summary,.detail-text,.detail-text p,.detail-text li){color:#e1e9f4!important}
body.qi527-theme .news-detail .detail-pill{background:#eef3fa!important;color:#243e5b!important}
body.qi527-theme .news-detail .news-reader{background:#f3f7fd!important;color:#213b55!important}
body.qi527-theme .news-detail .news-reader :is(label,small,span,h2,strong){color:#27415b!important}
body.qi527-theme .news-detail .news-reader select{background:#1d2631!important;color:#fff!important}
body.qi527-theme .news-detail .news-reader :is(.reader-btn,.reader-btn:not(.primary)){background:#e5edf7!important;color:#1a395a!important}
body.qi527-theme .news-detail .news-reader .reader-btn.primary{background:var(--qi528-action)!important;color:#fff!important}
/* Guias: cards claros com texto escuro; mesmo que a paleta anterior imponha branco. */
body.qi527-theme .qidisc-page .qidisc-guide-card{
  background:#f7fafc!important;color:#1b3249!important;border:1px solid #c6d3e2!important;
}
body.qi527-theme .qidisc-page .qidisc-guide-card .qidisc-guide-body :is(h2,h3,h4,strong){color:#18324e!important;opacity:1!important}
body.qi527-theme .qidisc-page .qidisc-guide-card .qidisc-guide-body :is(p,small,span,.qidisc-guide-meta){color:#435870!important;opacity:1!important}
body.qi527-theme .qidisc-page .qidisc-guide-card .qidisc-guide-body .btn-primary{background:var(--qi528-action)!important;color:#fff!important}
body.qi527-theme .qidisc-page .qidisc-guide-card .qidisc-guide-meta span{background:#eaf2fc!important;color:#234e72!important}
/* 6. Admin: mensagens sem contraste na tela de instalação. */
body.qi527-theme .admin-page .update-result-notice:not(.is-error),
body.qi527-theme .admin-page .update-file-ready{
  background:#e8f8ef!important;color:#135334!important;border:1px solid #71b990!important;
}
body.qi527-theme .admin-page .update-result-notice:not(.is-error) :is(strong,small,span,a):not(.update-result-notice-icon),
body.qi527-theme .admin-page .update-file-ready :is(strong,small,span):not(:first-child){color:#145231!important;opacity:1!important}
body.qi527-theme .admin-page .update-result-notice.is-error{
  background:#fff0f0!important;color:#87252b!important;border-color:#ce959c!important;
}
body.qi527-theme .admin-page .update-result-notice.is-error :is(strong,small,span,a):not(.update-result-notice-icon){color:#87252b!important;opacity:1!important}
body.qi527-theme .admin-page .update-result-notice :is(.update-result-notice-icon),
body.qi527-theme .admin-page .update-file-ready>span:first-child{background:#13783e!important;color:#fff!important}
body.qi527-theme .admin-page .update-result-notice.is-error .update-result-notice-icon{background:#b52937!important}
/* 7. Fórum e avaliações: counters com alto contraste, sem pintar textos
   de cartões brancos ou badges semânticos por herança. */
body.qi527-theme :is(.forum-page,.reviews-page) :is(.forum-stat,.reviews-stat){
  background:#27303b!important;color:#fff!important;border:1px solid #53677a!important;
}
body.qi527-theme :is(.forum-page,.reviews-page) :is(.forum-stat,.reviews-stat) :is(strong,span,small,b){color:#fff!important;opacity:1!important}
body.qi527-theme :is(.forum-page,.reviews-page) :is(.forum-hero,.reviews-hero) :is(h1,h2,p){color:#f4f7fc!important}
body.qi527-theme :is(.forum-page,.reviews-page) :is(.forum-feed-head,.reviews-feed-head) :is(h2,h3){color:#fff!important}
/* 8. Controles e consentimento no celular, sem alterar eventos JavaScript. */
@media(max-width:760px){
  body.qi527-theme .qi-radio:not(.is-open){bottom:calc(92px + env(safe-area-inset-bottom,0px))!important}
  body.qi527-theme .qi-consent-banner-509:not([hidden]){
    max-height:min(45dvh,350px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;
    bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
  }
  body.qi527-theme .fipe-page .fipe-popular{padding:12px!important}
  body.qi527-theme .qib-page .qib-filter{gap:10px!important}
  body.qi527-theme .qib-page .qib-card :is(h2,p,.qib-counts){max-width:100%!important}
  body.qi527-theme :is(.qitm-page,.qiem-page,.qif-page,.qib-page){overflow-x:clip!important}
}
@media(prefers-reduced-motion:reduce){body.qi527-theme .fipe-popular-rail{scroll-behavior:auto!important}}

/* FIM 528 / INICIO REGRAS 530 */
/* QI do Mecanico | PATCH 530 | Integridade visual incremental
   Carregado apenas com qi523_theme_allowed(), apos 528.
   Nenhuma regra de tag global: somente componentes especificos.
   As excecoes sao protegidas no PHP ANTES da emissao dos CSS 521–530. */

/* 1. QI Tecnico: card Bikes Eletricas. Preserva foto via --brand-bg;
   sobrepoe gradiente claro, com texto escuro e pequenos metadados legiveis. */
body.qi527-theme .qit-page .qit-brand-card.qit-electric-card{
  background-color:#f4fcf8!important;
  background-image:linear-gradient(90deg,rgba(250,255,252,.99) 0%,rgba(250,255,252,.97) 35%,rgba(250,255,252,.88) 57%,rgba(250,255,252,.42) 85%,rgba(250,255,252,.20) 100%),var(--brand-bg,none)!important;
  background-size:cover,cover!important;
  background-position:center,center!important;
  background-repeat:no-repeat!important;
  border-color:#7db69f!important;
}
body.qi527-theme .qit-page .qit-electric-card :is(h3,p){
  color:#18382f!important;text-shadow:0 1px 2px rgba(255,255,255,.85)!important;opacity:1!important;
}
body.qi527-theme .qit-page .qit-electric-card .qit-counts span{
  background:#ecf8f2!important;color:#194a38!important;border-color:#a2cbb5!important;
  text-shadow:none!important;opacity:1!important;
}
body.qi527-theme .qit-page .qit-electric-card .qit-brand-icon{
  background:linear-gradient(135deg,#064e3b,#087d5c)!important;color:#fff!important;
}
body.qi527-theme .qit-page .qit-electric-card:focus-visible{
  outline:3px solid #0b7752!important;outline-offset:3px!important;
}

/* 2. Guias de Motos: os quatro atalhos sao superficies escuras com
   textos claros; os artigos mantem papel claro + texto escuro. */
body.qi527-theme .qidisc-page .qidisc-guide-actions>a{
  background:#242c36!important;color:#f8fafc!important;
  border:1px solid #65758a!important;box-shadow:none!important;min-width:0;
}
body.qi527-theme .qidisc-page .qidisc-guide-actions>a strong{color:#fff!important;opacity:1!important}
body.qi527-theme .qidisc-page .qidisc-guide-actions>a span{color:#d8e4ef!important;opacity:1!important}
body.qi527-theme .qidisc-page .qidisc-guide-actions>a:is(:hover,:focus-visible){
  background:#303947!important;border-color:#f16b73!important;
  outline-offset:2px!important;
}
/* A imagem/capa da materia usa fundo claro, inclusive se nao houver foto. */
body.qi527-theme .qidisc-page .qidisc-guide-card .qidisc-guide-media{
  background:#e8f2fa!important;color:#194d79!important;
  border-color:#b7cfe1!important;
}
body.qi527-theme .qidisc-page .qidisc-guide-card .qidisc-guide-media :is(strong,span){
  color:#194d79!important;opacity:1!important;
}
body.qi527-theme .qidisc-page .qidisc-guide-card .qidisc-guide-body :is(h3,strong){color:#183149!important}
body.qi527-theme .qidisc-page .qidisc-guide-card .qidisc-guide-body p{color:#3b5067!important;opacity:1!important}
body.qi527-theme .qidisc-page .qidisc-guide-card .qidisc-guide-footer>span{color:#42566c!important}
body.qi527-theme .qidisc-page .qidisc-info{
  background:#f5f8fc!important;color:#203751!important;border:1px solid #c3d2e0!important;
}
body.qi527-theme .qidisc-page .qidisc-info :is(h2,h3){color:#18344f!important}
body.qi527-theme .qidisc-page .qidisc-info p{color:#42576f!important;opacity:1!important}
body.qi527-theme .qidisc-page .qidisc-info>span{background:#e2eef9!important;color:#194d79!important}

/* 3. Focus real e alvo de toque mobile nas areas que foram alteradas.
   Nao desloca Radio QI, consentimento nem altera menu compacto aprovado. */
@media(max-width:760px){
  body.qi527-theme .qidisc-page .qidisc-guide-actions>a{
    padding:13px 14px!important;min-height:62px;overflow-wrap:anywhere;
  }
  body.qi527-theme .qidisc-page .qidisc-guide-card .qidisc-guide-footer>a{
    min-height:44px!important;display:inline-flex;align-items:center;justify-content:center;
  }
  body.qi527-theme .qit-page .qit-electric-card{min-width:0;overflow-wrap:break-word}
  body.qi527-theme .qit-page .qit-electric-card .qit-counts{max-width:100%!important}
}
@media(prefers-reduced-motion:reduce){
  body.qi527-theme .qidisc-page .qidisc-guide-actions>a{transition:none!important}
}
