:root {
  color-scheme: light;
  --page-bg: #003300;
  --page-width: 1100px;
  font-family: Geneva, Arial, Helvetica, sans-serif;
  color: #000;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background-color: var(--page-bg); }
a:link, a:visited { color: #000099; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid #187238; outline-offset: 2px; }
.site-wrap { width: min(100%, var(--page-width)); margin-inline: auto; background: #fff; padding: 6px; }
.site-wrap h1, .site-wrap h2, .site-wrap h3 { overflow-wrap: anywhere; }
.site-wrap h1 { color: #0000cc; }
.site-wrap [bgcolor="#000000"] h1 { color: #f0f8ff; }
.site-wrap table { max-width: 100%; }
.site-wrap img { max-width: 100%; height: auto; vertical-align: middle; }
.site-wrap table[background] { background-repeat: repeat; }
.site-wrap img[align=left] { margin-inline-end: .5em; }
.site-wrap img[align=right] { margin-inline-start: .5em; }
.site-footer { max-width: var(--page-width); margin: auto; padding: 12px; text-align: center; background: #999; font: 14px/1.6 Arial, sans-serif; }
.site-footer nav { margin-top: 4px; }
.skip-link { position: absolute; top: 0; left: 0; z-index: 10; padding: .5em; background: #fff; transform: translateY(-110%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-search { display: flex; justify-content: center; align-items: stretch; gap: 4px; margin: 6px auto; max-width: 32rem; font: 15px/1.35 Arial, sans-serif; }
.site-search input { min-width: 0; width: 100%; padding: 6px 8px; border: 1px solid #777; border-radius: 2px; font: inherit; color: #000; background: #fff; }
.site-search button { flex: none; padding: 5px 9px; border: 1px solid #666; border-radius: 2px; font: inherit; color: #111; background: #eee; cursor: pointer; }
.site-search button:hover { background: #ddd; }

.historic-menu { display: flex; flex-wrap: wrap; align-items: start; gap: 4px; margin: 6px auto; text-align: left; font: 15px/1.35 Arial, sans-serif; }
.historic-menu details { flex: 0 1 auto; position: relative; min-width: 0; }
.historic-menu summary { padding: 8px 12px; border: 1px solid #666; border-radius: 3px; background: #d9d9d9 url('/menufiles/button_bg.png') repeat-x top left; color: #1b1b1b; cursor: pointer; }
.historic-menu summary:hover { background-image: url('/menufiles/buttonhot_bg.png'); }
.historic-menu details > ul, .historic-menu details > a { position: relative; z-index: 2; display: block; margin: 0; padding: 6px 12px; background: #f1f1f1; }
.historic-menu details > ul { position: absolute; min-width: 16rem; max-width: 23rem; padding-inline-start: 28px; border: 1px solid #999; box-shadow: 1px 3px 5px #0003; }
.historic-menu li { margin: 6px 0; }
.historic-menu ul ul { margin-top: 3px; padding-inline-start: 18px; }
.animal-sections { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); justify-items: stretch; align-items: end; gap: 6px; width: 100%; text-align: center; font: bold 16px/1.25 Arial, sans-serif; }
.animal-sections a { display: grid; grid-template-rows: 50px auto; align-items: end; justify-items: center; gap: 5px; min-width: 0; padding: 2px 0 5px; }
.animal-sections img { max-height: 50px; width: auto; max-width: 100%; }
.animal-sections span { max-width: 100%; text-transform: uppercase; }
.utility { max-width: 760px; margin: 22px auto; padding: 8px 14px; min-height: 50vh; }
.utility .site-search { margin: 8px 0; }
#search-results li { margin-bottom: 1rem; }
#search-results p { margin: 4px 0; }

@media (max-width: 820px) {
  .site-wrap { padding: 6px; }
  .site-wrap table[width], .site-wrap .layout-table { width: 100% !important; }
  .site-wrap .layout-table td, .site-wrap .layout-table th { max-width: 100%; width: auto; min-width: 0; }
  .site-wrap .wide-layout, .site-wrap .wide-layout > tbody, .site-wrap .wide-layout > tbody > tr { display: block; width: 100%; }
  .site-wrap .wide-layout > tbody > tr > td, .site-wrap .wide-layout > tbody > tr > th { overflow-wrap: anywhere; }
  .site-wrap .wide-layout > tbody > tr:has(> [valign=top]),
  .site-wrap .wide-layout > tbody > tr:has(> :is(td, th)[width^="6"] > div > p) { display: flex; flex-direction: column; align-items: stretch; }
  .site-wrap .wide-layout > tbody > tr:has(> [valign=top]) > :is(td, th)[width^="6"],
  .site-wrap .wide-layout > tbody > tr:has(> [valign=top]) > :is(td, th)[width^="7"] { order: -1; }
  .site-wrap .wide-layout > tbody > tr:has(> [valign=top]) > :is(td, th),
  .site-wrap .wide-layout > tbody > tr:has(> :is(td, th)[width^="6"] > div > p) > :is(td, th) { display: block; }
  .site-wrap .layout-table > tbody > tr.primary-columns { display: flex; flex-direction: column; align-items: stretch; }
  .site-wrap .layout-table > tbody > tr.primary-columns > :is(td, th) { display: block; }
  .site-wrap .layout-table > tbody > tr.primary-columns > .primary-column { order: -2; }
  .historic-menu details > ul { position: static; max-width: 100%; min-width: auto; box-shadow: none; }
  .historic-menu details { flex: 1 1 13rem; }
  .animal-sections { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 13px; }
  .animal-sections span { text-transform: none; }
  .site-wrap .layout-table > tbody > tr.header-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; }
  .site-wrap .layout-table > tbody > tr.header-tools > :is(td, th) { display: block; flex: 1 1 26%; min-width: 0; padding: 2px; }
  .site-wrap .layout-table > tbody > tr.header-tools > .header-search-cell { flex-basis: 100%; order: 1; }
  .site-wrap .layout-table > tbody > tr:has(> td > .animal-sections), .site-wrap .layout-table > tbody > tr > td:has(> .animal-sections) { display: block; width: 100%; }
}

@media (max-width: 540px) {
  .site-wrap :is(td, th, p, li, div) { overflow-wrap: anywhere; }
  .site-wrap :is(td, th) { width: auto; min-width: 0; }
  .site-wrap .layout-table { border-spacing: 1px; }
  .site-wrap .layout-table > tbody > tr:not(.header-tools):has(> :nth-child(4)):not(:has(> :nth-child(8))) { display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%; gap: 4px; }
  .site-wrap .layout-table > tbody > tr:not(.header-tools):has(> :nth-child(4)):not(:has(> :nth-child(8))) > :is(td, th) { display: block; flex: 1 1 26%; min-width: 0; max-width: 100%; padding: 2px; }
  .site-wrap .layout-table > tbody > tr:has(> :is(td, th)[width^="3"] > div > .site-search) { display: flex; flex-wrap: wrap; justify-content: space-around; }
  .site-wrap p { margin-block: .7em; }
  .site-wrap > :is(table, div) { min-width: 0; max-width: 100%; }
  .site-wrap :is(table, div):not(.layout-table) { max-width: 100%; }
  .site-wrap table:not(.layout-table):has(> tbody > tr > :nth-child(4)) { display: block; overflow-x: auto; }
  .site-footer { padding-inline: 6px; }
}
