/* GPHCB 2.0.2: application contrast and third-party floating controls.
 * Loaded AFTER app, theme, operations, and cleanup styles.
 * The selectors correspond to the actual v2 dashboard DOM:
 *   .gphcb-ops-stat > span/strong and a.gphcb-ops-link > strong/span.
 */

/* Premium, high-contrast administrative panels in dark mode. */
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-stats .gphcb-ops-stat,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-grid a.gphcb-ops-link {
  background: #1b3047 !important;
  border: 1px solid #3a5b76 !important;
  box-shadow: 0 12px 28px rgba(2,8,19,.27) !important;
  color: #e8f4fc !important;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-stats .gphcb-ops-stat {
  border-top: 3px solid #38c0ce !important;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-stats .gphcb-ops-stat:nth-child(even) {
  border-top-color: #aa87d4 !important;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-stats .gphcb-ops-stat > span {
  color: #bcd3e3 !important;
  opacity: 1 !important;
  font-weight: 720 !important;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-stats .gphcb-ops-stat > strong {
  color: #f7fbff !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-size: clamp(29px, 2.6vw, 39px) !important;
  font-variant-numeric: tabular-nums;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-grid a.gphcb-ops-link > strong,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-grid a.gphcb-ops-link > strong a {
  color: #f5faff !important;
  opacity: 1 !important;
  font-weight: 780 !important;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-grid a.gphcb-ops-link > span {
  color: #bed4e3 !important;
  opacity: 1 !important;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-grid a.gphcb-ops-link:hover,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-grid a.gphcb-ops-link:focus-visible {
  background: #25415c !important;
  border-color: #69cbd7 !important;
  box-shadow: 0 0 0 3px rgba(73,211,221,.14), 0 16px 36px rgba(0,9,22,.3) !important;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-grid a.gphcb-ops-link:focus-visible {
  outline: 2px solid #6fe4ec;
  outline-offset: 2px;
}

/* Prevent other academic, lesson and form labels from reverting to dark ink. */
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-form h3,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-resource strong,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-review > strong,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-academic-row strong,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-grade-card strong,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-panel h2,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-panel h3 {
  color: #f3faff !important;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-form label,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-select label,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-resource small,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-review > small,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-heading > p {
  color: #bdd2e0 !important;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-heading h1 {
  color: #f8fcff !important;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-form input:not([type="checkbox"]):not([type="hidden"]),
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-form select,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-form textarea {
  background: #11243a !important;
  color: #f2f9ff !important;
  border-color: #49657b !important;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-form input::placeholder,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-ops-form textarea::placeholder {
  color: #acbdcc !important;
}

/* Student/admin regular metrics and general main panel typography. */
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-metric strong {
  color: #f6fbff !important;
}
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-metric span,
html[data-gphcb-theme="dark"] body.gphcb-app-body #gphcb-application .gphcb-portal--app .gphcb-metric small {
  color: #bed1df !important;
}

/* Suppress floating vendor controls on app routes. Initial consent notices
   and dialogs are intentionally excluded; those remain available if required.
   The turquoise 'person' icon is an accessibility-widget launcher, not a cookie.
   GPHCB navigation and authenticated user controls are not targeted. */
body.gphcb-app-body .cky-btn-revisit-wrapper,
body.gphcb-app-body .cky-btn-revisit,
body.gphcb-app-body #cky-btn-revisit,
body.gphcb-app-body #cookie-law-info-again,
body.gphcb-app-body .cli-floating-button,
body.gphcb-app-body .cli-floating-button-wrapper,
body.gphcb-app-body .cookie-notice-revoke-container,
body.gphcb-app-body #cn-revoke-text,
body.gphcb-app-body .cn-revoke-cookie,
body.gphcb-app-body .cmplz-manage-consent,
body.gphcb-app-body .cmplz-manage-consent-container,
body.gphcb-app-body #iubenda-cs-preferences-link,
body.gphcb-app-body .ot-floating-button,
body.gphcb-app-body #ot-sdk-btn-floating,
body.gphcb-app-body #cookiebot-widget,
body.gphcb-app-body #pojo-a11y-toolbar,
body.gphcb-app-body #pojo-a11y-toolbar-trigger,
body.gphcb-app-body .pojo-a11y-toolbar-toggle,
body.gphcb-app-body #wpa-toolbar,
body.gphcb-app-body .a11y-toolbar,
body.gphcb-app-body .accessibility-widget,
body.gphcb-app-body #accessibility-toolbar,
body.gphcb-app-body .accessibility-floating-button,
body.gphcb-app-body #accessibility-button,
body.gphcb-app-body .accessibility-trigger,
body.gphcb-app-body #wp-accessibility-toolbar,
body.gphcb-app-body .wpa-visibility,
body.gphcb-app-body #acwp-toolbar,
body.gphcb-app-body #acwp-toolbar-btn,
body.gphcb-app-body #accessibility-onetap,
body.gphcb-app-body .acsb-trigger,
body.gphcb-app-body #acsb-trigger,
body.gphcb-app-body [data-a11y-widget-launcher],
body.gphcb-app-body [data-accessibility-toggle] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Remove only third-party mobile site bar, not GPHCB app navigation. */
@media (max-width: 991px) {
  body.gphcb-app-body .thim-footer-navbar-mobile,
  body.gphcb-app-body #thim-footer-navbar-mobile,
  body.gphcb-app-body .thim-mobile-bottom-menu,
  body.gphcb-app-body .eduma-bottom-nav,
  body.gphcb-app-body .mobile-bottom-navbar,
  body.gphcb-app-body .mobile-bottom-menu {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
