/* Links & Touch Targets */
a:hover,
a:focus {
  color: #FF0000;
}

.linkfont {
  text-decoration: none;
  color: #FF6600;
  display: inline-block;
  padding: 4px 2px; /* Improves tap comfort on mobile touchscreens */
}

/* Responsive Typography (Converted from pt to scalable rem) */
.pagetitle {
  font-family: Arial, sans-serif;
  font-size: clamp(1.15rem, 3.8vw, 1.35rem);
  color: #00509F;
  font-weight: bold;
}

.verdana8 {
  font-family: Verdana, sans-serif;
  font-size: 0.75rem; /* ~12px for mobile legibility */
}

.ms8 {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
}

.ms10 {
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 0.875rem; /* ~14px */
}

.arial10 {
  font-family: Arial, sans-serif;
  font-size: 0.875rem;
}

.defaultfont10 {
  font-family: Verdana, sans-serif;
  font-size: 0.875rem;
}

.defaultfontjustify10 {
  font-family: Verdana, sans-serif;
  font-size: 0.875rem;
  text-align: left; /* Left-aligned reads cleaner on narrow phone screens than justify */
}

.defaultfont {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
}

.defaultfontbg {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  background-color: #E1E1E1;
  padding: 4px 6px;
}

.errorfont {
  font-family: Verdana, sans-serif;
  font-size: 0.875rem;
  color: #FF0000;
  font-weight: bold;
}

/* Backgrounds & Responsive Containers */
.managerbgcolor {
  background-color: #E1E1E1;
}

.bgcolor {
  background-color: #E8E6E3;
}

.tableheaderbgcolor {
  background-color: #003366;
  color: #FFFFFF;
}

.menutablebgcolor {
  background-color: #D7D7D7;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  width: 100%;
  overflow-x: auto; /* Allows menu links to scroll smoothly on small phones */
}

.maintablebordercolor {
  border: 2px solid #000000;
  width: 100%;
  max-width: 100%;
}

/* Tablet & Desktop Adjustments */
@media (min-width: 768px) {
  .verdana8,
  .ms8,
  .defaultfont,
  .defaultfontbg {
    font-size: 0.8125rem;
  }

  .ms10,
  .arial10,
  .defaultfont10,
  .errorfont {
    font-size: 0.9375rem;
  }

  .defaultfontjustify10 {
    font-size: 0.9375rem;
    text-align: justify; /* Restores justified alignment on wider screens */
  }
}