/* Shared styles for all family sites */
body {
  padding-top: 2rem;
  transition: background-color 0.3s, color 0.3s;
}

h1 {
  font-weight: 600;
}

nav ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

nav ul li {
  margin: 0;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Dark mode styles */
body.dark-mode {
  background-color: #121212;
  color: #f4f4f4;
}

body.dark-mode a {
  color: #aaddff;
}

/* Force white background for Pico light mode */
html,
body.light,
body:not(.dark-mode):not(.dark) {
  background-color: #fff !important;
  color: #222 !important;
}

/* For dark mode */
html.dark-mode,
body.dark-mode,
html.dark,
body.dark {
  background-color: #121212 !important;
  color: #f4f4f4 !important;
}

#dark-mode-toggle {
  font-size: 0.0rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  min-width: unset;
  min-height: unset;
  line-height: 0.2;
  transition: width 0.2s, height 0.2s;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
}

#dark-mode-toggle:hover {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  min-width: unset;
  min-height: unset;
  line-height: 1.2;
  opacity: 1;
}
