/* ahotml nav — checkbox toggle menu */
input[type="checkbox"]#toggle-menu { display: none; }

.menu {
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
  display: inline-block;
  user-select: none;
  line-height: 1;
}

#menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
}

#toggle-menu:checked ~ #menu {
  display: block;
}

#menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.2rem;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

#menu a:hover {
  background: #f5f5f5;
}

#menu .menu {
  text-align: right;
  font-size: 1.5rem;
  padding: 0 0.5rem 1rem 0;
}

/* footer */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

footer small {
  color: #888;
}

footer a {
  color: #666;
}

/* dark mode support */
@media (prefers-color-scheme: dark) {
  body { background: #1a1a1a; color: #ddd; }
  a, a:visited { color: #6db3db; }
  a:hover { color: #8ecff7; }
  #menu { background: #222; }
  #menu a { border-bottom-color: #333; }
  #menu a:hover { background: #333; }
  footer { border-top-color: #333; }
  footer small { color: #999; }
  footer a { color: #aaa; }
  /* disclaimer stays yellow bg, dark text */
  [style*="background:#ffeb3b"] { color: #222 !important; }
}
