section.cdndata {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
}
section.cdndata > header {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--h-gap-content-small) 1em;
  margin-top: var(--h-gap-content-small);
}
section.cdndata > header > a {
  line-height: 2;
  padding: 0 1ch;
  border-radius: 0.5ch;
  -webkit-user-select: none;
  user-select: none;
}
section.cdndata > header > a:not([href]) {
  color: var(--text-disabled);
}
section.cdndata > header > a:nth-child(1 of :not([href])) {
  background-color: var(--button-color);
  color: var(--header-bg);
}
section.cdndata > header a.link {
  line-height: 1.5;
  text-decoration: underline;
  color: var(--link-color);
  padding: 0 1ch;
  white-space: nowrap;
}
section.cdndata h1 {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: var(--h-gap);
}
section.cdndata h2 {
  grid-column: 1 / -1;
  text-align: center;
}
section.cdndata h2 + header {
  margin-top: var(--h-gap);
}
section.cdndata > menu {
  grid-column: 1 / -1;
  margin-top: var(--h-gap-content-small);
}
section.cdndata > menu > a {
  line-height: 1.5;
  text-decoration: underline;
  color: var(--link-color);
  padding: 0 1ch;
}
section.cdndata .graph.data {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  height: auto;
  margin-right: var(--v-gap-content-small);
  padding-right: 0.5ch;
}
section.cdndata .graph.data > h3 {
  text-align: center;
  font-weight: bold;
  padding: 0.75rem var(--right, 0px) 0 var(--left, 0px);
}
section.cdndata .graph.data > label {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  transform: translateY(5px);
  gap: 1.5ch;
  font-size: 14px;
}
section.cdndata .graph.data > label span {
  display: flex;
  align-items: center;
}
section.cdndata .graph.data > label span::before {
  content: "";
  width: 2em;
  border-top: 3px solid var(--color);
  margin-right: 0.5ch;
}
section.cdndata .graph.data > label span.dotted::before {
  border-top-style: dotted;
}
section.cdndata .graph.data > div {
  flex-basis: 0;
  flex-grow: 1;
}
section.cdndata .graph.mean {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  height: 596px;
}
section.cdndata .graph.mean > div {
  flex-basis: 0;
  flex-grow: 1;
}
section.cdndata .graph.mean > h3 {
  text-align: center;
  font-weight: bold;
  padding-top: 1rem;
}
section.cdndata .graph.mean > label {
  flex-direction: row;
  margin-top: 8px;
  transform: translateY(-15px);
}
section.cdndata .graph.mean > label > span {
  text-align: center;
  flex-basis: 0;
  flex-grow: 1;
}
section.cdndata .graph {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  background-color: var(--header-bg);
  border-radius: 0.75ch;
  box-shadow: var(--shadow);
  margin-top: var(--h-gap-content-small);
  height: 290px;
}
section.cdndata .graph > label {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: space-around;
  font-size: 13px;
  margin: var(--top, 0px) var(--right, 0px) var(--bottom, 0px) var(--left, 0px);
  transform: translateX(20px);
}
section.cdndata .graph > label > span {
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
section.cdndata .graph > label > span.link {
  color: var(--link-color);
  text-decoration: underline;
  cursor: pointer;
}
section.cdndata .graph > h3 {
  grid-column: 1 / -1;
  font-weight: bolder;
  text-align: center;
  padding: 0.75rem var(--right, 0px) 0.25rem var(--left, 0px);
}
section.cdndata .graph > h3 a {
  opacity: 0.5;
  vertical-align: super;
  font-size: 70%;
  padding-left: 0.5ch;
}
section.cdndata .graph > div {
  position: relative;
  overflow: hidden;
}
section.cdndata canvas {
  width: 100%;
  height: 100%;
}
section.cdndata menu {
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75em;
}
section.cdndata select {
  background-color: var(--header-bg);
  border: 1px solid var(--input-border);
  line-height: 1.5;
  padding: 0.25em 0.5ch;
  border-radius: 0.5ch;
  outline: none;
}
section.cdndata select:focus {
  outline: 1px solid var(--input-border-hovered);
  outline-offset: 0;
}
section.cdndata select:not(:disabled) {
  cursor: pointer;
}
section.cdndata select:disabled {
  opacity: 0.5;
}
section.cdndata > span {
  grid-column: 1 / -1;
  margin-top: var(--h-gap-content);
  border-radius: 0.75ch;
  background-color: var(--header-bg);
  box-shadow: var(--shadow);
  padding: 0.5rem 1rem;
}
section.cdndata > span:has(h2:first-child) {
  padding-top: 0;
}
section.cdndata > span h2 {
  border-bottom: 1px solid var(--input-border);
  margin-bottom: var(--h-gap-content-small);
  margin-inline: -1rem;
  padding: 0.5rem 1rem;
}
section.cdndata > span table {
  margin-left: 1em;
}
section.cdndata > span th {
  padding: 0 1ch;
}
section.cdndata > span td {
  padding: 0 2ch;
}
section.cdndata > span ul {
  padding-left: 1em;
}
section.cdndata > span ul li::marker {
  content: "\2013\2009";
}
@media (max-width: 1060px) {
  section.cdndata {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--v-gap-content-small);
  }
  section.cdndata .graph.data {
    height: 320px;
    grid-column: 1 / -1;
    margin-right: 0;
  }
  section.cdndata .graph.mean {
    height: 320px;
    grid-column: 1 / -1;
  }
  section.cdndata > header menu {
    flex: 1;
  }
  section.cdndata > header menu a {
    margin-left: auto;
  }
}
@media (max-width: 800px) {
  section.cdndata {
    grid-template-columns: 100%;
  }
}
@media (max-width: 650px) {
  section.cdndata > header:first-of-type > a {
    flex-basis: 25%;
    flex-grow: 1;
    flex-shrink: 1;
  }
  section.cdndata > header > a {
    flex: 1;
    text-align: center;
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
  }
}
@media (max-width: 450px) {
  section.cdndata .graph > h2 {
    font-size: 1.1rem;
  }
  section.cdndata menu {
    flex-wrap: wrap;
  }
  section.cdndata menu > a {
    order: -1;
    width: 100%;
    text-align: center;
  }
  section.cdndata menu > select {
    flex-grow: 1;
    flex-shrink: 1;
  }
}
