/* CSS for GhiaPet sites (brought forward from the legacy site) */

html, body {
  color: #30bf30;
  background-color: #fff;
  font-size: 13pt;
  font-family: Helvetica, sans-serif;
}

body {
  margin-left: 10em;
  margin-right: 10em;
}

a:link, :link {
  color: #408040;
}
a:visited, :visited {
  color: #30bf78;
}
a:active, a:hover, a:focus {
  color: #78bf30;
}

h1 {
  font-size: 2em;
}
h2 {
  font-size: 1.44em;
}
h3 {
  font-size: 1.2em;
}
h4 {
  font-size: 1em;
}
h5 {
  font-size: 0.8em;
}
h6 {
  font-size: 0.64em;
}

table {
  border: solid 2px;
  border-collapse: collapse;
}
table thead, table th, table thead tr, table thead td {
  border: solid 2px;
}
table tr, table td {
  border: solid 1px;
}

code {
  color: black;
}

.taxo {
  font-style: italic;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Modern nav, replacing the old OpenCube QuickMenu DHTML ---- */
/* Pure-CSS dropdown menu; keyboard-accessible via :focus-within. */

nav.site-nav {
  margin: 0 0 1.5em;
}
nav.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.site-nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  border-bottom: 2px solid #30bf30;
  padding-bottom: 0.3em;
}
nav.site-nav li {
  position: relative;
}
nav.site-nav > ul > li > a,
nav.site-nav > ul > li > span.section {
  font-weight: bold;
  display: inline-block;
  padding: 0.2em 0;
}
nav.site-nav span.section {
  color: #408040;
  cursor: default;
}
nav.site-nav ul ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #30bf30;
  padding: 0.4em 0.8em;
  min-width: 18em;
  z-index: 10;
}
nav.site-nav li:hover > ul,
nav.site-nav li:focus-within > ul {
  display: block;
}
nav.site-nav ul ul li {
  white-space: nowrap;
  padding: 0.15em 0;
}

/* ---- Narrow screens: drop the huge side margins, stack the nav ---- */
@media (max-width: 60em) {
  body {
    margin-left: 1.5em;
    margin-right: 1.5em;
  }
  nav.site-nav > ul {
    flex-direction: column;
    gap: 0.4em;
  }
  nav.site-nav ul ul {
    position: static;
    border: 0;
    padding: 0 0 0 1.2em;
    display: block;
    min-width: 0;
  }
}
