/*
 * FMTech blue theme — shared overrides, linked last in each user page's <head>.
 * Pages define their own colour variables under different names; this maps them all to one palette.
 * Only colour tokens are changed here: layout, spacing and component behaviour stay as each page defines them.
 */
:root {
  --fm-blue: #023A5A;
  --fm-blue-dark: #012A42;
  --fm-blue-light: #E3EEF4;
  --fm-bg: #F5F8FC;
  --fm-text: #263238;

  /* service / history page template */
  --primary: #023A5A;
  --primary-dark: #012A42;
  --primary-light: #E3EEF4;
  --bg: #F5F8FC;
  --text: #263238;
  --info: #023A5A;
  --info-light: #E3EEF4;

  /* airtime, data, personalization pages */
  --brand: #023A5A;
  --brand-hover: #012A42;
  --light-blue-bg: #E3EEF4;

  /* login / signup */
  --brand-dark: #012A42;

  /* landing page */
  --brand-primary: #023A5A;
  --brand-primary-rgb: 2, 58, 90;
  --brand-secondary: #012A42;
}

/* Keyboard focus is always visible in the theme colour */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #023A5A;
  outline-offset: 2px;
}

/* SweetAlert2 dialogs used across the site */
.swal2-styled.swal2-confirm { background-color: #023A5A !important; }
.swal2-styled.swal2-confirm:hover { background-color: #012A42 !important; }

/* Phones: the fixed round menu button (service/history page template) sat on top of the page title.
   Start the content below it. */
@media (max-width: 768px) {
  .mobile-menu-btn ~ .main,
  .mobile-menu-btn ~ main,
  body:has(> .mobile-menu-btn) .main { padding-top: 74px; }
}
/* Keyboard users can see where focus is on the template's div buttons (made focusable by pwa.js). */
.mobile-menu-btn:focus-visible, .toggle-btn:focus-visible { outline: 3px solid #7FB2CC; outline-offset: 2px; }
