html {
  position: relative;
  min-height: 100%;
  color: #000;
  background: #fff;
}

body {
  font-family: sans-serif;
  font-size: 13pt;
  color: #000;
  margin-bottom: 60px;
  background: #fff;
  text-align: center;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  line-height: 60px;
}

.hvmtb {
  width: 400px;
  height: auto;
  content: url("/assets/images/hvmtb_l.3.png");
}

.title,
a {
  color: #fff;
}

/* Keep focus-visible always; hover gets gated to pointer devices below */
a:focus-visible {
  color: #abff92;
  text-decoration: none;
}

.contact {
  font-family: sans-serif;
  font-size: 10pt;
  color: #999;
}

.vizlink {
  color: #000;
  font-family: sans-serif;
  font-size: 14pt;
  line-height: 27pt;
  text-decoration: none;
}

/* FIX: target the anchor itself (not a nonexistent nested <a>) */
.vizlink:focus-visible {
  color: #abff92;
  text-decoration: none;
}

/* Improve tap UX on mobile */
a.vizlink { touch-action: manipulation; }

.active {
  color: #000;
  font-weight: bold;
  font-size: 13pt;
  text-decoration: underline;
}

.wrapper {
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
}

.page-content {
  height: 100%;
  width: 100%;
  text-align: center;
}

.cardcolumn {
  width: 350px;
  margin: 0 auto;
}

.card {
  font-size: 14pt;
  height: 36px;
  background: #e6ffdf;
  border-radius: 8px;
  border: 1px solid #000;
  margin: 10px 20px;
  padding: 5px 30px;
  box-shadow: 1px 1px 5px #999;
}

/* ---------- Hover visuals only on devices that actually hover ---------- */
@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: #abff92;
    text-decoration: none;
  }
  .vizlink:hover {
    color: #abff92;
    text-decoration: none;
  }
}

/* Light mode overrides */
@media (prefers-color-scheme: light) {
  html,
  body {
    color: #000;
    background: #fff;
  }

  .hvmtb {
    content: url("/assets/images/hvmtb_l.3.png");
  }

  .vizlink {
    color: #000;
  }

  /* Light-mode hover colors */
  @media (hover: hover) and (pointer: fine) {
    .vizlink:hover,
    a:hover {
      color: #000;
      font-weight: bold;
      text-decoration: none;
    }
    .card:hover {
      border: 1px solid #000;
      background: #c6fcb6;
      color: #000;
    }
  }

  .card {
    border: 1px solid #000;
    /*background: #ecffe6;*/
    /*box-shadow: 1px 1px 5px #999;*/
  }

  .active {
    color: #000;
    /*font-weight: bold;*/
    text-decoration: underline;
  }

  /* Light-mode focus override */
  a:focus-visible {
    color: #000;
    text-decoration: none;
  }
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  html,
  body {
    color: #bdffa5;
    background: #1e1e1e;
  }

  .hvmtb {
    content: url("/assets/images/hvmtb_d.3.png");
  }

  .card {
    border: 1px solid #cceebb;
    background: #444;
    /*box-shadow: 1px 1px 5px #000;*/
  }

  /* Dark-mode hover visuals */
  @media (hover: hover) and (pointer: fine) {
    .card:hover {
      border: 1px solid #fff;
      background: #666;
      color: #fff;
    }
    .card:hover span {
      color: #fff;
    }
    .vizlink:hover,
    a:hover {
      color: #fff;
    }
  }

  .vizlink {
    color: #bdffa5;
  }

  .active {
    color: #fff;
    /*font-weight: bold;*/
    text-decoration: underline;
  }

  /* Dark-mode focus override */
  a:focus-visible,
  .vizlink:focus-visible {
    color: #fff;
    text-decoration: none;
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
