*,
::before,
::after {
  box-sizing: border-box;
}

*[aria-level="2"] {
  font-size: 1.5em;
  font-weight: bold;
}

*[aria-level="3"] {
  font-size: 1.17em;
  font-weight: bold;
}

:root {
  --gutter: 8px;
  --content-width: calc(1280px + calc(2 * var(--gutter)));
  --content-background: aliceblue;

  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

.tagline {
  color: #333;
  font-weight: 600;
}

header,
main {
  max-width: var(--content-width);
  width: 100%;
  margin-inline: auto;
  padding: var(--gutter);
  background-color: var(--content-background);
}

header {
  border-bottom: 1px solid gray;
  box-shadow: 0 4px 4px -4px black;
  z-index: 2;
}

nav {
  padding-block: 20px;
}

nav > p {
  display: inline-block;
}

nav > ul {
  display: inline-block;
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.nav-item {
  display: inline-block;
}

.nav-item > a {
  color: white;
  font-weight: 600;
  border: 1px solid black;
  border-radius: 5px;
  background-color: #002341;
  padding: 5px;
  user-select: none;
  text-decoration: none;
  margin-right: 10px;
  box-shadow: inset 2px 2px 5px white;
}

.nav-item.active > a,
.nav-item:hover > a {
  outline: 2px solid black;
}

.nav-item.active > a {
  text-decoration: underline;
}

main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

main h1 {
  font-size: 1.75em;
}

details {
  overflow-x: auto;
}

details > summary {
  cursor: pointer;
  transition: margin 150ms ease-out;
  user-select: none;
}

details > *:not(summary) {
  margin-left: 16px;
  margin-bottom: 10px;
}

details[open] > summary {
  margin-bottom: 10px;
}

.csv-grid {
  display: grid;
  width: max-content;
  grid-template-columns: repeat(7, 100px);
  gap: 1px;
  border: 1px solid gray;
  /* border-left: 1px solid gray;
  border-top: 1px solid gray; */
  justify-items: stretch;
  align-items: stretch;
  text-align: center;
  background-color: gray;
}

.csv-grid > * {
  display: block;
  padding: 5px;
  background-color: var(--content-background);
  /* border-right: 1px solid gray;
  border-bottom: 1px solid gray; */
}

.csv-grid .grid-header {
  font-weight: bold;
}

.csv-grid a {
  position: relative;
}

.csv-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.csv-grid a:hover {
  font-weight: bold;
}

.csv-grid a:hover::after {
  outline: 2px solid gray;
}

.csv-grid .zip-link {
  grid-column: 1 / span 7;
}

a.disabled {
  color: gray;
  background-color: lightgray;
  pointer-events: none;
}
