/* Shared accessibility control; these assets are never loaded in the admin. */
.btn-contrast-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: 600 .78rem/1.4 Montserrat, Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.btn-contrast-toggle:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.navbar .btn-contrast-toggle { color: #fff; }
.contrast-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 42px; }
.contrast-toolbar .catalogo-back-link { margin-bottom: 0; }
.catalogo-detail-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.portal-topbar .btn-contrast-toggle { color: #fff; margin: 0; font-size: 11px; }
.portal-navigation { min-width: 0; }
.portal-topbar nav { flex-wrap: wrap; justify-content: flex-end; }

html.high-contrast { background: #000; color-scheme: dark; }
body.high-contrast[data-site-contrast] {
  --color-vinho: #fff;
  --color-vinho-light: #000;
  --color-menta: #ff0;
  --color-menta-dark: #000;
  --color-bg-light: #000;
  --color-bg-perola: #000;
  --color-bg-card: #000;
  --color-border: #fff;
  --text-dark: #fff;
  --text-muted: #fff;
  --wine: #fff;
  --wine-dark: #fff;
  --mint: #000;
  --mint-dark: #ff0;
  --pearl: #000;
  --card: #000;
  --line: #fff;
  --ink: #fff;
  --muted: #fff;
  --red: #ff0;
  --green: #fff;
  background: #000 !important;
  color: #fff !important;
  color-scheme: dark;
}
body.high-contrast[data-site-contrast] *,
body.high-contrast[data-site-contrast] *::before,
body.high-contrast[data-site-contrast] *::after {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  transition: none !important;
}
body.high-contrast[data-site-contrast] :is(.topbar, .portal-topbar, .page, .editorial-footer, .catalogo-hero, .catalogo-detail-page) { background: #000 !important; color: #fff !important; }
body.high-contrast[data-site-contrast] :is(.card, .desk-sidebar, .desk-metrics a, .desk-worklist, .desk-grouphead, .student-next, .student-pending, .student-steps li > span, .badge, .status, .message, .notice, .auth-session-note, .catalogo-home-card, .catalogo-home-coming, .catalogo-plan-card, .catalogo-content-card, .catalogo-home-cover, .catalogo-home-cover-fallback, .catalogo-home-badge, .catalogo-home-type, .catalogo-home-featured, .catalogo-detail-offer, .catalogo-home-coupon, .catalogo-plan-status, .catalogo-product-sample, .catalogo-preview-bar, .catalogo-journey, .table-wrap, .empty-state) {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}
body.high-contrast[data-site-contrast] :is(h1, h2, h3, h4, h5, label, dt, dd, small, .muted, .help-text, .due, .text-white-50, .catalogo-hero-lead, .catalogo-hero-reassurance, .catalogo-eyebrow, .catalogo-plans-note, .catalogo-plan-description, .catalogo-price-label, .catalogo-home-description, .catalogo-home-category, .catalogo-home-price, .catalogo-detail-price strong, .catalogo-plan-price strong, .catalogo-plan-price span, .catalogo-home-coming-title, .catalogo-home-coming-copy, .desk-metrics strong, .plan-quota strong, .plan-expiry strong, .student-direction summary span, .student-next p, .page-heading p, .login-intro p) { color: #fff !important; }
body.high-contrast[data-site-contrast] :is(a, .link-button, .eyebrow, .service-tag, .required, .overdue, .form-error, .auth-errors, .catalogo-home-coming > i) { color: #ff0 !important; }
body.high-contrast[data-site-contrast] a:not(.button):not(.catalogo-home-buy):not(.btn-editorial-primary) { text-decoration: underline; text-underline-offset: 3px; }
body.high-contrast[data-site-contrast] :is(input, select, textarea, input::file-selector-button) { background: #000 !important; color: #fff !important; border-color: #fff !important; accent-color: #ff0; }
body.high-contrast[data-site-contrast] :is(input, textarea)::placeholder { color: #fff !important; opacity: 1; }
body.high-contrast[data-site-contrast] input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #000 inset !important; }
body.high-contrast[data-site-contrast] :is(th, td, tbody tr:hover) { background: #000 !important; color: #fff !important; border-color: #fff !important; }
body.high-contrast[data-site-contrast] :is(.quota-row, .form-actions, .history-list, .plan-expiry, .catalogo-faq details) { border-color: #fff !important; }
body.high-contrast[data-site-contrast] :is(.button, .btn-editorial-secondary, .btn-contrast-toggle) { background: #000 !important; color: #ff0 !important; border: 1px solid #ff0 !important; }
body.high-contrast[data-site-contrast] :is(.button.primary, .catalogo-home-buy, .btn-editorial-primary, .catalogo-hero-action) { background: #ff0 !important; color: #000 !important; border: 2px solid #ff0 !important; }
body.high-contrast[data-site-contrast] :is(.button.primary, .catalogo-home-buy, .btn-editorial-primary, .catalogo-hero-action) * { color: #000 !important; }
body.high-contrast[data-site-contrast] :is(.message.error, .message.warning, .auth-errors, .notice, .overdue, .desk-sidebar nav a[aria-current], .student-steps .active > span) { background: #000 !important; color: #ff0 !important; border-color: #ff0 !important; }
body.high-contrast[data-site-contrast] :focus-visible { outline: 3px solid #ff0 !important; outline-offset: 4px !important; }
body.high-contrast[data-site-contrast] :is(.catalogo-home-card:hover, .catalogo-home-coming:hover, .catalogo-home-buy:hover) { transform: none !important; }
body.high-contrast[data-site-contrast] :is(.faixa-contato-clean, .price-block-pure, .alert-banner, .service-badge) { background: #ff0 !important; color: #000 !important; border-color: #ff0 !important; }
body.high-contrast[data-site-contrast] :is(.faixa-contato-clean, .price-block-pure, .alert-banner, .service-badge) * { color: #000 !important; border-color: #000 !important; }
