/* Dark theme (default). Classic restores the original stylesheet. */
html:not(.theme-classic) body {
  background: #0c0f14;
  color: #d7dee6;
}

html:not(.theme-classic) .header {
  background-color: #0c0f14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cg %3E%3Cg transform='' style='transform-origin:center'%3E%3Cg transform='translate(1000 0)'%3E%3Cg stroke='%23191916'%3E%3Cg id='c'%3E%3Cg id='b'%3E%3Cpath stroke-width='1' stroke-linecap='round' id='a' d='M0 0L4000 1000' transform=''/%3E%3Cuse href='%23a' y='50'/%3E%3Cuse href='%23a' y='100'/%3E%3Cuse href='%23a' y='150'/%3E%3Cuse href='%23a' y='200'/%3E%3Cuse href='%23a' y='250'/%3E%3C/g%3E%3Cuse href='%23b' y='300'/%3E%3Cuse href='%23b' y='600'/%3E%3Cuse href='%23b' y='900'/%3E%3C/g%3E%3C/g%3E%3Cg stroke='%23161a1d'%3E%3Cuse href='%23c' transform='scale(-1 1)'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

html:not(.theme-classic) .cover {
  background-color: #0c0f14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3Cpath id='a' d='M60-130C73-115 190 41 161 51 55 85-148 87-164 75S-53-97-35-190c13-68 83 44 95 60z' vector-effect='non-scaling-stroke'/%3E%3Cpath id='b' d='M155 46C-17-314-13-249-144-4c-38 71 4 74 87 77 173 4 230 10 212-27z' vector-effect='non-scaling-stroke'/%3E%3Cpath id='c' d='M-154 63C-162 49-25-188-4-194S164 17 154 35c-5 9-68 21-144 21-77-1-160 14-164 7z' vector-effect='non-scaling-stroke'/%3E%3Cpath id='d' d='M-156 71C-182 58-23-205-2-206S168 39 158 55c-10 15-287 29-314 16z' vector-effect='non-scaling-stroke'/%3E%3C/defs%3E%3Cpattern id='p' width='1600' height='1600' patternUnits='userSpaceOnUse' patternTransform='scale(0.24) translate(3166.67 2375)'%3E%3Cg fill='none' stroke='%23161a1d' stroke-width='3.9' stroke-miterlimit='10'%3E%3Cg id='z'%3E%3Cg transform='translate(0 1200)'%3E%3Cuse href='%23d'/%3E%3Cuse href='%23a' transform='scale(.7)' style='transform-origin:0 0'/%3E%3Cuse href='%23c' transform='scale(.4)' style='transform-origin:0 0'/%3E%3C/g%3E%3Cg transform='translate(0 400)'%3E%3Cuse href='%23b'/%3E%3Cuse href='%23d' transform='scale(.7)' style='transform-origin:0 0'/%3E%3Cuse href='%23c' transform='scale(.4)' style='transform-origin:0 0'/%3E%3C/g%3E%3Cg transform='translate(0 810)'%3E%3Cuse href='%23c'/%3E%3Cuse href='%23a' y='-15' transform='scale(.6)' style='transform-origin:0 0'/%3E%3Cuse href='%23d' y='-35' transform='scale(.4)' style='transform-origin:0 0'/%3E%3C/g%3E%3Cuse href='%23a' y='9'/%3E%3Cuse href='%23d' y='9' transform='scale(.7)' style='transform-origin:0 0'/%3E%3Cuse href='%23c' y='9' transform='scale(.4)' style='transform-origin:0 0'/%3E%3C/g%3E%3Cuse href='%23z' x='400' y='400'/%3E%3Cuse href='%23z' x='400' y='-1200'/%3E%3Cuse href='%23z' x='800' y='800'/%3E%3Cuse href='%23z' x='800' y='-800'/%3E%3Cuse href='%23z' x='1200' y='1200'/%3E%3Cuse href='%23z' x='1200' y='-400'/%3E%3Cuse href='%23z' x='-1400' y='-200' transform='rotate(180)'/%3E%3Cuse href='%23z' x='-1400' y='-1800' transform='rotate(180)'/%3E%3Cuse href='%23z' x='-1000' y='-1000' transform='rotate(180)'/%3E%3Cuse href='%23z' x='-1000' y='-2600' transform='rotate(180)'/%3E%3Cuse href='%23z' x='-600' y='-600' transform='rotate(180)'/%3E%3Cuse href='%23z' x='-600' y='-2200' transform='rotate(180)'/%3E%3Cuse href='%23z' x='-200' y='-1400' transform='rotate(180)'/%3E%3Cuse href='%23z' x='-200' y='200' transform='rotate(180)'/%3E%3Cuse href='%23z' y='1600'/%3E%3Cuse href='%23z' x='1600' y='1600'/%3E%3Cuse href='%23z' x='1600'/%3E%3C/g%3E%3C/pattern%3E%3Crect fill='url(%23p)' width='100%25' height='100%25'/%3E%3C/svg%3E");
}

.navbar-brand .logo-dark {
  display: none;
}

html:not(.theme-classic) .navbar-brand .logo-classic {
  display: none;
}

html:not(.theme-classic) .navbar-brand .logo-dark {
  display: inline;
}

html:not(.theme-classic) .navbar .navbar-toggler {
  background-color: #141a22;
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
}

html:not(.theme-classic) #navbar .navbar-nav {
  background: #12171e;
  border-color: #2a333d;
}

.theme-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  margin: 0.45rem 0 0.15rem;
  color: #ddd;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.theme-switch .track {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #3a4450;
  position: relative;
  flex: none;
  transition: background 0.15s ease;
}

.theme-switch .track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.theme-switch input:checked + .track {
  background: #2f8cff;
}

.theme-switch input:checked + .track::after {
  transform: translateX(16px);
}

.theme-switch input:focus-visible + .track {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

html:not(.theme-classic) .confidence-score {
  color: #efce9b;
}

html:not(.theme-classic) .confidence-score .credits {
  opacity: 1;
}

.score-layers {
  position: relative;
  display: inline-block;
  line-height: 0.82;
}

.score-shadow,
.score-ring {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  user-select: none;
}

html.theme-classic .score-shadow,
html.theme-classic .score-ring {
  display: none;
}

html.theme-classic .score-face {
  text-shadow:
    1px 1px #dd8861,
    2px 2px #dd8861,
    3px 3px #dd8861,
    4px 4px #dd8861,
    5px 5px #dd8861,
    6px 6px #dd8861,
    7px 7px #dd8861,
    8px 8px #dd8861;
}

html:not(.theme-classic) .confidence-score .title {
  text-shadow: none;
  line-height: 0.82;
}

html:not(.theme-classic) .score-shadow {
  z-index: 0;
  background-image: linear-gradient(#ba7438, #945728);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html:not(.theme-classic) .score-shadow:nth-child(1) { transform: translate(1px, 1px); }
html:not(.theme-classic) .score-shadow:nth-child(2) { transform: translate(2px, 2px); }
html:not(.theme-classic) .score-shadow:nth-child(3) { transform: translate(3px, 3px); }
html:not(.theme-classic) .score-shadow:nth-child(4) { transform: translate(4px, 4px); }
html:not(.theme-classic) .score-shadow:nth-child(5) { transform: translate(5px, 5px); }
html:not(.theme-classic) .score-shadow:nth-child(6) { transform: translate(6px, 6px); }
html:not(.theme-classic) .score-shadow:nth-child(7) { transform: translate(7px, 7px); }

html:not(.theme-classic) .score-face {
  position: relative;
  z-index: 2;
  background-image: linear-gradient(#fcd393, #d39852);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 0;
  filter: url(#score-outline);
}

html:not(.theme-classic) .score-ring {
  display: none;
}

html:not(.theme-classic) .confidence-score .metrics-disabled-alert,
html:not(.theme-classic) .confidence-score .mode-note {
  color: #e4c48a;
}

html:not(.theme-classic) .description .title .accent-1 {
  color: #d0781f;
}

html:not(.theme-classic) .description .paragraph,
html:not(.theme-classic) .description .paragraph b {
  color: #fff;
}

html:not(.theme-classic) .description .title .accent-3,
html:not(.theme-classic) .description .paragraph a,
html:not(.theme-classic) .description [data-toggle="tooltip"] {
  color: #fff;
  border-bottom-width: 1px;
  border-bottom-color: #ac9164;
}

html:not(.theme-classic) .description .title .accent-3:hover,
html:not(.theme-classic) .description .paragraph a:hover,
html:not(.theme-classic) .description [data-toggle="tooltip"]:hover {
  color: #fff;
  border-bottom-color: #ac9164;
}

html:not(.theme-classic) .description .disclaimer .disclaimer-title {
  color: #e0c47b;
}

html:not(.theme-classic) .description .disclaimer {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html:not(.theme-classic) .metrics {
  background: linear-gradient(#1b1a16, #131416);
  border-bottom: none;
  position: relative;
}

html:not(.theme-classic) .metrics::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 575.98px) {
  html:not(.theme-classic) .metrics .metric:last-child {
    border-bottom-color: transparent;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  html:not(.theme-classic) .metrics .metric:last-child {
    border-bottom-color: transparent;
  }
}

@media (min-width: 768px) and (max-width: 1550px) {
  html:not(.theme-classic) .metrics .metric:nth-child(n+7) {
    border-bottom-color: transparent;
  }
}

html:not(.theme-classic) .metrics .metric a,
html:not(.theme-classic) .metrics .metric a:hover {
  color: #fff;
  text-shadow: none;
}

html:not(.theme-classic) .metrics .metric .score {
  color: #fdeeab;
}

html:not(.theme-classic) .metrics .metric a:hover .score {
  color: #fff;
}

html:not(.theme-classic) .metrics-extra .toggle-all,
html:not(.theme-classic) .share-chart .copy-link {
  color: #d7dee6;
  background: linear-gradient(#2a3138, #1c2228);
}

html:not(.theme-classic) .metrics-extra .toggle-all:hover,
html:not(.theme-classic) .share-chart .copy-link:hover {
  background: linear-gradient(#343c44, #242b32);
}

html:not(.theme-classic) .share-chart .title,
html:not(.theme-classic) .chart-description,
html:not(.theme-classic) .chart-mode {
  color: #e8eaed;
}

html:not(.theme-classic) .chart-mode .chart-mode-name.is-on {
  color: #f3d7a4;
}

.chart-mode {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  padding: 6px 14px;
  background: #f3f6fa;
  border: 1px solid #d5dee8;
  border-radius: 999px;
}

html:not(.theme-classic) .chart-mode {
  background: transparent;
  border-color: transparent;
}

html:not(.theme-classic) .highcharts-container input {
  background: transparent !important;
  color: #c5ced6 !important;
  box-shadow: none !important;
}

html:not(.theme-classic) .table thead th {
  background: #1a2128;
  color: #e8eaed;
}

html:not(.theme-classic) .table tbody tr {
  background: #141a22;
  color: #e8eaed;
}
