/*  global A+/A− scaling via html font-size */
html {
  font-size: 100%;
}

body {
  font-size: 1rem;
  line-height: 1.6;
}


/* HIGH CONTRAST MODE */

.high-contrast,
.high-contrast body {
  background-color: #000 !important;
  color: #fff !important;
}

/* Override Minima layout containers */
.high-contrast .site-header,
.high-contrast .site-footer,
.high-contrast .page-content,
.high-contrast .wrapper,
.high-contrast main,
.high-contrast header,
.high-contrast footer,
.high-contrast section,
.high-contrast article {
  background-color: #000 !important;
  color: #fff !important;
}

/* Links */
.high-contrast a,
.high-contrast a:visited {
  color: #0ff !important;
}

/* Borders & dividers */
.high-contrast hr,
.high-contrast table,
.high-contrast th,
.high-contrast td {
  border-color: #fff !important;
}

/*    REDUCED MOTION */

.reduced-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* ACCESSIBILITY PANEL*/

/* ACCESSIBILITY PANEL */

#a11y-panel {
  position: fixed;
  bottom: 4rem;
  right: 1rem;
  z-index: 1000;

  background: #fff;
  border: 1px solid #ccc;
  padding: 0.5rem;

  /* added (recommended) */
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 14rem;
}

#a11y-panel button {
  display: block;
  width: 100%;
  margin: 0.25rem 0;
  font-size: 1rem;   /* scales with A+/A− */
  line-height: 1.2;
  padding: 0.4rem 0.6rem;
}


/* Keep panel readable in high contrast */
.high-contrast #a11y-panel {
  background: #111 !important;
  border-color: #666 !important;
}

.high-contrast #a11y-panel button {
  background: #222 !important;
  color: #fff !important;
  border: 1px solid #666 !important;
}
