.official-topbar {
  height: 23px;
  background: var(--brand);
  position: sticky;
  top: 0;
  z-index: 101;
}

header {
  min-height: 98px;
  padding-top: 0;
  padding-bottom: 0;
  background: #fff;
  color: #152640;
  border-bottom: 1px solid #d9e3f2;
  position: sticky;
  top: 23px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(9, 39, 84, .06);
}

.site-brand {
  width: 155px;
  height: 60px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.site-brand-link {
  display: inline-flex;
  justify-self: start;
  line-height: 0;
}

.hero-copy {
  align-self: center;
}

header h1 {
  margin: 0;
  color: #092754;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: .04em;
}

.header-actions {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status {
  background: #f3f8f6;
  border: 1px solid #cfe5dc;
  color: #36594d;
}

.status i {
  background: #12a36d;
}

.api-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #36594d;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.api-link:hover,
.api-link:focus-visible {
  border-color: #9dc9b7;
  background: #e7f2ed;
  color: var(--brand);
}

.test-data {
  padding: 20px;
}

.test-data-heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 15px;
}

.test-data-title-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.test-data-heading h2 {
  margin-bottom: 3px;
}

.test-data-heading p,
.dataset-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.test-data-heading p {
  width: 100%;
  max-width: 100%;
  padding: 9px 11px;
  border: 1px solid #cfd8d7;
  border-radius: 7px;
  white-space: normal;
  word-break: normal;
  line-break: auto;
  text-wrap: pretty;
}

.source-link {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.test-data details {
  border-top: 1px solid var(--line);
}

.test-data summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  color: #29413f;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.test-data summary::-webkit-details-marker {
  display: none;
}

.test-data summary::before {
  content: '＋';
  color: var(--brand);
}

.test-data details[open] summary::before {
  content: '−';
}

.test-data summary span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.download-list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.download-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0 7px 18px;
  border-top: 1px dashed #e5eceb;
}

.download-list li > span,
.download-list b,
.download-list small {
  display: block;
}

.download-list b {
  font-size: 14px;
  color: var(--ink);
}

.download-list small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.download-list a {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.dataset-note {
  margin-top: 12px;
}

.site-footer {
  margin-top: 38px;
  padding: 0 var(--site-content-gutter);
  background: linear-gradient(135deg, #071f2d 0%, #0a3438 58%, #075c57 100%);
  color: #dcebea;
  text-align: left;
}

.footer-inner {
  width: 100%;
  padding: 34px 0 20px;
}

.footer-main,
.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
}

.footer-main {
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  gap: 14px;
}

.footer-brand img {
  width: 124px;
  height: 48px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.footer-logo-link {
  display: flex;
  flex: 0 0 auto;
  line-height: 0;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: #fff;
  font-size: 17px;
  letter-spacing: .05em;
}

.footer-brand span {
  margin-top: 2px;
  color: #a9cfca;
  font-size: 13px;
}

.footer-links {
  justify-content: flex-end;
  gap: 20px;
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-links a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #8ee1d4;
}

.footer-links span {
  color: #a9cfca;
}

.footer-copyright {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #8eb4b1;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 1050px) {
  header {
    grid-template-columns: 155px 1fr 155px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .header-actions {
    grid-column: auto;
    justify-self: end;
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .official-topbar {
    height: 10px;
  }

  header {
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 22px;
    grid-template-columns: 1fr;
    top: 10px;
  }

  .site-brand {
    width: 128px;
    height: auto;
  }

  .site-brand-link {
    justify-self: center;
  }

  .header-actions {
    grid-column: 1;
    justify-self: center;
    margin-top: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-main,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main,
  .footer-links {
    gap: 14px;
  }

  .footer-nav {
    width: 100%;
    align-items: flex-end;
  }
}

/* Keep CN / EN consistent with the PCG and VAG applications. */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #d7e2ee;
  border-radius: 999px;
  background: #fff;
}

.language-switch a {
  min-width: 34px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #607086;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a:focus-visible {
  color: #087f79;
  background: #edf7f4;
}

.language-switch a.active {
  color: #fff;
  background: #087f79;
}
