body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

div.header {
  background-color: lightgray;
  text-transform: uppercase;
  padding: 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.25em 1.5em;
}

/* the logo next to the title, its padding taken out of the bar's so the bar is no taller */
div.header a.title {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

div.header a.title img {
  margin: -0.5em 0;
}

div.header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 1em;
}

main.data {
  padding: 1em;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 8px;
  text-align: right;
  border-bottom: 1px solid #ddd;
}

td.plus {
  color: green;
}

td.minus {
  color: red;
}

td.zero {
  color: gray;
}

td.bold {
  font-weight: bold;
}

h1 {
  font-size: large;
}

h2 {
  font-size: medium;
}

/* the table scrolls sideways on narrow screens instead of widening the page */
div.scroll {
  overflow-x: auto;
}

a:link, a:visited {
  color: gray;
  text-decoration: none;
}

div.header a:link, div.header a:visited {
  color: #555;
}

div.header a[aria-current="page"] {
  color: black;
  font-weight: bold;
}

/* the title links to the home page, but looks the same on every page */
div.header a.title:link, div.header a.title:visited {
  color: black;
  font-weight: normal;
}

a:hover, a:active, div.header a:hover, div.header a:active {
  color: red;
}

/* the network links at the bottom, with the logos next to the names */
footer.bottom {
  color: #666;
  text-align: center;
  padding: 1em;
}

footer.bottom a.network img {
  vertical-align: middle;
  margin-right: 0.25em;
}

/* the charts page, a chart for each ETF under its name */
section.chart {
  margin-bottom: 2em;
}

div.chart {
  height: 320px;
}

/* in place of a chart whose holdings couldn't be loaded */
div.chart.failed {
  height: auto;
  color: #666;
}

/* the buttons above each chart for the time range shown */
div.ranges {
  display: flex;
  gap: 0.25em;
  margin-bottom: 0.5em;
}

div.ranges button {
  font: inherit;
  font-size: small;
  color: #333;
  background: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.3em 0.7em;
  cursor: pointer;
}

div.ranges button:hover {
  border-color: #999;
}

div.ranges button[aria-pressed="true"] {
  color: black;
  background: #ddd;
  font-weight: bold;
}
