/* GoHub palette "Cyber Teal": deep teal #02313a with mint #8ffde2 (logo tile and G).
   Loaded after application.css, so these tokens override flexadmin_main.scss.
   Contrast: teal 14:1 on white / 13:1 on the page background; mint on teal 11.5:1;
   dark-mode mint 13:1 on the dark surface. */
:root {
  --accent-color: #02313a;
  --accent-strong: #02313a;
  --accent-highlight: #8ffde2;
  --sidebar-hover-bg: rgba(2, 49, 58, 0.08);
  --sidebar-active-bg: rgba(2, 49, 58, 0.14);
  /* The video call button takes the edition accent (mint on teal, 11.5:1) instead of the green. */
  --video-call-bg: var(--accent-color);
  --video-call-bg-hover: var(--accent-strong);
  --video-call-color: var(--accent-highlight);
}

/* Filled buttons are the brand card: mint on teal (teal on mint in dark mode). */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  --bs-btn-color: var(--accent-highlight);
  --bs-btn-hover-color: var(--accent-highlight);
  --bs-btn-active-color: var(--accent-highlight);
  color: var(--accent-highlight);
}

/* Plan reminders (custom/trial_expiring_banner.scss): brand card instead of the stock gradients.
   The grace, locked and payment-failed banners keep their warning colours. */
.trial-expiring-banner:not(.trial-expiring-banner--grace):not(.trial-expiring-banner--locked):not(.trial-expiring-banner--payment-failed) {
  background: #02313a;
  color: #8ffde2;
}

/* Compact cards (core/tables/_table-mobile.scss, Bootstrap md-down, max-width 991.98px, and touch screens from
   992px, as fx-list-cards-media): the deep teal title link is close to the heading ink, so a light underline marks it as a link.
   `!important` beats `.text-decoration-none` on some title links. */
@media (max-width: 991.98px), (min-width: 992px) and (pointer: coarse) {
  .fx-list-table-wrap:not(.fx-list-table-wrap--scroll) .table.table-stacked.fx-list-table--cards [data-mobile-role="title"] > a:not(.avatar),
  .fx-list-table-wrap:not(.fx-list-table-wrap--scroll) .table.table-stacked.fx-list-table--cards [data-mobile-role="title"] .fx-list-title-link {
    text-decoration-line: underline !important;
    text-decoration-thickness: 1px !important;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent) !important;
    text-underline-offset: 0.2em;
  }
}
