/* =========================================================
   Dark Contrast Olive — refinamento sênior para tema escuro
   Objetivo: aumentar contraste, profundidade e hierarquia visual
   sem perder o posicionamento institucional verde oliva.
   ========================================================= */

html[data-theme='dark']{
  color-scheme:dark;
  --bg:#151a16 !important;
  --bg-section:#1b221d !important;
  --bg-section-2:#222b25 !important;
  --bg-dark:#101411 !important;
  --bg-elev:#242d27 !important;
  --bg-elev-2:#2d372f !important;
  --institutional:#708d57 !important;
  --olive:#708d57 !important;
  --olive-light:#91ab73 !important;
  --olive-mid:#7f9b63 !important;
  --olive-dark:#edf4e8 !important;
  --olive-darker:#dce8d6 !important;
  --olive-darkest:#f7fbf4 !important;
  --olive-text:#edf4e8 !important;
  --olive-accent:#b0c78e !important;
  --gold:#d6ad58 !important;
  --gold-light:#e7c377 !important;
  --gold-dark:#b48a34 !important;
  --gold-text:#f4d694 !important;
  --border:rgba(237,244,232,.12) !important;
  --border-strong:rgba(237,244,232,.22) !important;
  --text:#f5f8f2 !important;
  --text-soft:#dbe6d6 !important;
  --text-mute:#afbcab !important;
  --shadow-sm:0 10px 24px rgba(0,0,0,.24) !important;
  --shadow:0 22px 52px rgba(0,0,0,.34) !important;
}

html[data-theme='dark'],
html[data-theme='dark'] body{
  background:
    radial-gradient(circle at top right, rgba(145,171,115,.12), transparent 22%),
    radial-gradient(circle at bottom left, rgba(214,173,88,.05), transparent 26%),
    linear-gradient(180deg,#1a201b 0%, #151a16 100%) !important;
  color:var(--text) !important;
}

html[data-theme='dark'] p,
html[data-theme='dark'] li,
html[data-theme='dark'] dd,
html[data-theme='dark'] dt,
html[data-theme='dark'] .section__lead,
html[data-theme='dark'] .page-banner__subtitle,
html[data-theme='dark'] .portal-hero__text,
html[data-theme='dark'] .rich p,
html[data-theme='dark'] .rich li,
html[data-theme='dark'] .timeline__text,
html[data-theme='dark'] .aside__box p,
html[data-theme='dark'] .aside__box li,
html[data-theme='dark'] .event-card__meta,
html[data-theme='dark'] .shop-card p,
html[data-theme='dark'] .shop-card__meta,
html[data-theme='dark'] .home-shop-carousel-card__cat,
html[data-theme='dark'] .home-gallery-carousel-card__count,
html[data-theme='dark'] .home-gallery-carousel-card__date,
html[data-theme='dark'] .services-toolbar__copy,
html[data-theme='dark'] .services-search__hint{
  color:var(--text-soft) !important;
}

html[data-theme='dark'] .header,
html[data-theme='dark'] .nav-desktop,
html[data-theme='dark'] .footer,
html[data-theme='dark'] .mobile-dock{
  background:rgba(28,35,30,.94) !important;
  border-color:rgba(237,244,232,.10) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.22) !important;
}

html[data-theme='dark'] .theme-toggle,
html[data-theme='dark'] .header__entrar,
html[data-theme='dark'] .btn--outline,
html[data-theme='dark'] .btn--ghost{
  background:rgba(43,54,46,.92) !important;
  border-color:rgba(237,244,232,.12) !important;
  color:var(--text) !important;
}

html[data-theme='dark'] .theme-toggle:hover,
html[data-theme='dark'] .header__entrar:hover,
html[data-theme='dark'] .btn--outline:hover,
html[data-theme='dark'] .btn--ghost:hover{
  background:rgba(57,71,61,.96) !important;
  border-color:rgba(214,173,88,.30) !important;
}

html[data-theme='dark'] .btn--primary,
html[data-theme='dark'] .btn-associe-desk,
html[data-theme='dark'] .nav-shop-pill,
html[data-theme='dark'] .nav-desktop a.nav-shop-pill{
  background:linear-gradient(180deg,#7a9661 0%, #5f774b 100%) !important;
  border-color:#93ad76 !important;
  color:#0f140f !important;
  box-shadow:0 10px 24px rgba(122,150,97,.22) !important;
}

html[data-theme='dark'] .btn--primary:hover,
html[data-theme='dark'] .btn-associe-desk:hover,
html[data-theme='dark'] .nav-shop-pill:hover,
html[data-theme='dark'] .nav-shop-pill.is-active,
html[data-theme='dark'] .nav-desktop a.nav-shop-pill:hover{
  background:linear-gradient(180deg,#8cab6d 0%, #6f8a57 100%) !important;
  border-color:#a9c489 !important;
  color:#0f140f !important;
}

html[data-theme='dark'] .nav-desktop a,
html[data-theme='dark'] .header__desktop-title strong,
html[data-theme='dark'] .header__desktop-title span,
html[data-theme='dark'] .header__title strong,
html[data-theme='dark'] .header__title span,
html[data-theme='dark'] .header__entrar-tipo{
  color:var(--text) !important;
}

html[data-theme='dark'] .nav-desktop a:hover,
html[data-theme='dark'] .nav-desktop a.is-active,
html[data-theme='dark'] .mobile-dock__item.is-active{
  background:rgba(145,171,115,.14) !important;
  color:#ffffff !important;
}

html[data-theme='dark'] .nav-desktop .sub,
html[data-theme='dark'] .offcanvas,
html[data-theme='dark'] .offcanvas__menu .sub{
  background:rgba(31,39,33,.98) !important;
  border-color:rgba(237,244,232,.10) !important;
}

html[data-theme='dark'] .card,
html[data-theme='dark'] .news-related__body .card,
html[data-theme='dark'] .gallery-alego-page .card,
html[data-theme='dark'] .download-card,
html[data-theme='dark'] .central-card,
html[data-theme='dark'] .event-card,
html[data-theme='dark'] .value-card,
html[data-theme='dark'] .aviso-card,
html[data-theme='dark'] .news-card,
html[data-theme='dark'] .service-card,
html[data-theme='dark'] .shop-info-card,
html[data-theme='dark'] .shop-card,
html[data-theme='dark'] .auth-card,
html[data-theme='dark'] .aside__box,
html[data-theme='dark'] .contact-mobile .aside__box,
html[data-theme='dark'] .assoc-panel-card,
html[data-theme='dark'] .assoc-admin-panel,
html[data-theme='dark'] .services-toolbar,
html[data-theme='dark'] .news-list-compact,
html[data-theme='dark'] .portal-hero__stat,
html[data-theme='dark'] .portal-chip-card,
html[data-theme='dark'] .portal-hero__panel-card,
html[data-theme='dark'] .services-stat,
html[data-theme='dark'] .assoc-feed__item,
html[data-theme='dark'] .home-gallery-carousel-card,
html[data-theme='dark'] .home-shop-carousel-card,
html[data-theme='dark'] .home-pa-carousel-card,
html[data-theme='dark'] .army-news-card,
html[data-theme='dark'] .army-news-mobile__slide,
html[data-theme='dark'] .cta-banner .container,
html[data-theme='dark'] .contact-bar__item,
html[data-theme='dark'] .services-search,
html[data-theme='dark'] .services-tag,
html[data-theme='dark'] .shop-product__info,
html[data-theme='dark'] .shop-summary,
html[data-theme='dark'] .shop-checkout-success,
html[data-theme='dark'] .shop-order-card,
html[data-theme='dark'] .shop-admin-product,
html[data-theme='dark'] .shop-cart-item{
  background:linear-gradient(180deg,#263027 0%, #202822 100%) !important;
  border-color:rgba(237,244,232,.10) !important;
  box-shadow:var(--shadow-sm) !important;
}

html[data-theme='dark'] .portal-hero__surface,
html[data-theme='dark'] .services-hero,
html[data-theme='dark'] .services-highlight,
html[data-theme='dark'] .assoc-hero{
  background:linear-gradient(180deg,#303b31 0%, #232c25 100%) !important;
  border-color:rgba(237,244,232,.11) !important;
  box-shadow:var(--shadow) !important;
}

html[data-theme='dark'] .portal-hero__panel-card--primary,
html[data-theme='dark'] .cta-banner .container,
html[data-theme='dark'] .assoc-metric,
html[data-theme='dark'] .event-card__date{
  background:linear-gradient(180deg,#5f784b 0%, #425536 100%) !important;
  border-color:rgba(176,199,142,.28) !important;
}

html[data-theme='dark'] .portal-hero__stat,
html[data-theme='dark'] .portal-chip-card,
html[data-theme='dark'] .services-stat,
html[data-theme='dark'] .services-tag,
html[data-theme='dark'] .assoc-feed__item,
html[data-theme='dark'] .assoc-action,
html[data-theme='dark'] .assoc-action--emerald,
html[data-theme='dark'] .assoc-action--blue,
html[data-theme='dark'] .assoc-action--amber,
html[data-theme='dark'] .assoc-action--violet,
html[data-theme='dark'] .assoc-action--rose,
html[data-theme='dark'] .assoc-action--cyan{
  background:linear-gradient(180deg,#2b352d 0%, #232b25 100%) !important;
}

html[data-theme='dark'] .portal-chip-card i,
html[data-theme='dark'] .central-card i,
html[data-theme='dark'] .central-card img,
html[data-theme='dark'] .services-stat__icon,
html[data-theme='dark'] .services-section__title i,
html[data-theme='dark'] .service-card__icon,
html[data-theme='dark'] .assoc-action__icon,
html[data-theme='dark'] .footer__social a,
html[data-theme='dark'] .assoc-feed__badge,
html[data-theme='dark'] .home-carousel__btn{
  background:rgba(145,171,115,.14) !important;
  color:var(--gold-light) !important;
  border-color:rgba(214,173,88,.24) !important;
}

html[data-theme='dark'] .home-carousel__btn:hover,
html[data-theme='dark'] .footer__social a:hover,
html[data-theme='dark'] .assoc-feed__badge:hover{
  background:rgba(145,171,115,.22) !important;
  color:#fff4d6 !important;
}

html[data-theme='dark'] .army-news-card,
html[data-theme='dark'] .army-news-mobile__slide{
  background:#2a342c !important;
}

html[data-theme='dark'] .army-news-card::after{
  background:linear-gradient(180deg,rgba(7,10,8,.08) 0%, rgba(7,10,8,.14) 30%, rgba(7,10,8,.76) 100%) !important;
}

html[data-theme='dark'] .army-news-card__category,
html[data-theme='dark'] .army-news-mobile .army-news-card__category,
html[data-theme='dark'] .event-card__cat,
html[data-theme='dark'] .news-list-compact .meta .cat,
html[data-theme='dark'] .home-shop-carousel-card__badge{
  background:rgba(214,173,88,.16) !important;
  color:#ffe5b0 !important;
  border:1px solid rgba(214,173,88,.24) !important;
}

html[data-theme='dark'] .home-pa-carousel-card{
  background:linear-gradient(180deg,#3a3020 0%, #2b2418 100%) !important;
  border-color:rgba(214,173,88,.18) !important;
}

html[data-theme='dark'] .home-pa-carousel-card h3,
html[data-theme='dark'] .home-pa-carousel-card strong,
html[data-theme='dark'] .home-pa-carousel-card .home-pa-carousel-card__title,
html[data-theme='dark'] .home-pa-carousel-card .home-pa-carousel-card__name,
html[data-theme='dark'] .home-pa-carousel-card .home-pa-carousel-card__cat,
html[data-theme='dark'] .home-pa-carousel-card .home-pa-carousel-card__meta{
  color:#fff5dc !important;
}

html[data-theme='dark'] .form-control,
html[data-theme='dark'] select.form-control,
html[data-theme='dark'] textarea.form-control{
  background:#202822 !important;
  color:var(--text) !important;
  border-color:rgba(237,244,232,.14) !important;
}

html[data-theme='dark'] .form-control:focus,
html[data-theme='dark'] select.form-control:focus,
html[data-theme='dark'] textarea.form-control:focus{
  border-color:rgba(214,173,88,.52) !important;
  box-shadow:0 0 0 3px rgba(214,173,88,.16) !important;
}

html[data-theme='dark'] .table-wrap,
html[data-theme='dark'] .admin-table th,
html[data-theme='dark'] .admin-results-bar{
  background:#212923 !important;
}

html[data-theme='dark'] .timeline__item::before{
  background:var(--gold-light) !important;
  box-shadow:0 0 0 4px rgba(214,173,88,.14) !important;
}

html[data-theme='dark'] .assoc-topbar{
  background:rgba(27,34,29,.94) !important;
  border-bottom:1px solid rgba(237,244,232,.10) !important;
}

html[data-theme='dark']{
  --assoc-topbar-bg:rgba(27,34,29,.94) !important;
  --assoc-topbar-border:rgba(237,244,232,.10) !important;
  --assoc-sidebar-bg:linear-gradient(180deg,#1f2721 0%, #181f1a 100%) !important;
  --assoc-sidebar-border:rgba(237,244,232,.10) !important;
  --assoc-sidebar-link:#f2f7ef !important;
  --assoc-sidebar-link-hover:rgba(145,171,115,.14) !important;
  --assoc-sidebar-link-active:rgba(145,171,115,.20) !important;
  --assoc-chip-bg:linear-gradient(135deg,rgba(145,171,115,.18) 0%, rgba(214,173,88,.08) 100%) !important;
  --assoc-chip-border:rgba(214,173,88,.24) !important;
  --assoc-chip-text:#f5f8f2 !important;
  --assoc-chip-muted:#cfdac9 !important;
  --assoc-surface:#232d27 !important;
  --assoc-surface-soft:#2b362f !important;
  --assoc-surface-strong:rgba(255,255,255,.07) !important;
  --assoc-overlay:rgba(0,0,0,.62) !important;
  --assoc-public-start:#7b9862 !important;
  --assoc-public-end:#5d7649 !important;
  --assoc-public-border:rgba(176,199,142,.28) !important;
  --assoc-logout-bg:rgba(214,173,88,.10) !important;
  --assoc-logout-border:rgba(214,173,88,.22) !important;
  --assoc-logout-text:#f4d694 !important;
  --assoc-title:#f5f8f2 !important;
}

html[data-theme='dark'] .assoc-sidebar ul li a,
html[data-theme='dark'] .assoc-topbar__brand-text strong,
html[data-theme='dark'] .assoc-main h1,
html[data-theme='dark'] .assoc-main h2,
html[data-theme='dark'] .assoc-main h3,
html[data-theme='dark'] .assoc-main h4,
html[data-theme='dark'] .assoc-main h5,
html[data-theme='dark'] .assoc-main h6{
  color:#f5f8f2 !important;
}

html[data-theme='dark'] .assoc-sidebar ul li a:hover,
html[data-theme='dark'] .assoc-sidebar ul li a.is-active{
  border-color:rgba(214,173,88,.20) !important;
}
