:root {
  --ink: #16243a;
  --blue: #1463b8;
  --pale: #eef5ff;
  --line: #d7e0ea;
  --bg: #f5f7fa;
  --warn: #fff4d8;
  --muted: #657085;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wrap {
  max-width: 1120px;
  margin: auto;
  padding: 20px;
}

header {
  background: var(--ink);
  color: #fff;
}

.head {
  max-width: 1120px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-weight: 760;
  text-decoration: none;
  color: #fff;
}

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

.tour-launch {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--blue);
  border: 1px solid #8db5df;
  border-radius: 6px;
  padding: 4px 10px;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}

.tour-launch:hover,
.tour-launch:focus-visible {
  background: #0f4f94;
}

.tour-launch:disabled {
  cursor: wait;
  opacity: .55;
}

.download-menu {
  position: relative;
}

.download-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.download-menu summary::-webkit-details-marker {
  display: none;
}

.download-menu summary::after {
  content: "▾";
  font-size: .72rem;
}

.download-menu[open] summary,
.download-menu summary:hover,
.download-menu summary:focus-visible {
  background: #d7eaff;
  border-color: #d7eaff;
}

.download-options {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 8px 24px #16243a33;
}

.download-options a,
.download-options button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 7px 12px;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
}

.download-options a:hover,
.download-options a:focus-visible,
.download-options button:hover,
.download-options button:focus-visible {
  background: var(--pale);
  color: var(--blue);
}

.switch {
  display: flex;
  gap: 6px;
}

.switch a {
  color: #d7eaff;
  border: 1px solid #7397c1;
  border-radius: 6px;
  padding: 4px 9px;
  text-decoration: none;
  font-size: .86rem;
}

.switch a[aria-current=page] {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.crumbs {
  font-size: .88rem;
  color: var(--muted);
  margin: 18px 0;
}

.crumbs a {
  color: var(--blue);
}

.crumbs span {
  margin: 0 6px;
}

.notice {
  background: var(--warn);
  border-left: 4px solid #d28f00;
  padding: 12px 14px;
  margin: 18px 0;
}

.card,
article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px #182a4410;
}

h1 {
  line-height: 1.18;
  margin: 0 0 14px;
}

h2 {
  margin-top: 1.6em;
  line-height: 1.25;
}

h3 {
  line-height: 1.3;
}

a {
  color: var(--blue);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  overflow: auto;
}

th,
td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f6fb;
}

code {
  background: #eef1f5;
  padding: 1px 4px;
  border-radius: 4px;
}

pre {
  overflow: auto;
  background: var(--bg);
  padding: 12px;
  border-radius: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.grid a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.grid .card:hover {
  border-color: var(--blue);
}

.muted,
.loader {
  color: var(--muted);
}

.muted {
  font-size: .92rem;
}

.source {
  margin-top: 26px;
  font-size: .9rem;
}

body.agreement-page .head,
body.agreement-page .wrap {
  max-width: none;
  width: 100%;
}

body.agreement-page .wrap {
  padding: 16px clamp(12px, 1.5vw, 28px) 28px;
}

@media print {
  body {
    background: #fff;
  }

  .wrap,
  body.agreement-page .wrap {
    max-width: none;
    padding: 0;
  }

  header,
  .crumbs,
  .source {
    display: none;
  }

  article,
  .card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }

  .notice {
    print-color-adjust: exact;
  }
}

@media (max-width: 600px) {
  .head {
    align-items: flex-start;
    flex-direction: column;
  }

  .head-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .download-options {
    left: 0;
    right: auto;
  }

  .wrap,
  body.agreement-page .wrap {
    padding: 14px;
  }

  article,
  .card {
    padding: 17px;
  }
}
