:root {
  color-scheme: light;

  --showcase-header-height: 66px;
  --showcase-blue: #2563eb;
  --showcase-ink: #101828;
  --showcase-muted: #667085;
  --showcase-line: #e5eaf1;

  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--showcase-ink);
  background: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 10% 12%, rgba(37, 99, 235, 0.045), transparent 24%), #fff;
}

a {
  color: inherit;
}

.showcase-shell {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.showcase-rail {
  position: fixed;
  top: 50%;
  left: max(28px, calc((100vw - 1500px) / 2));
  z-index: 20;
  display: grid;
  width: 205px;
  max-height: calc(100svh - var(--showcase-header-height) - 64px);
  overflow-y: auto;
  padding-left: 20px;
  transform: translateY(-44%);
  border-left: 1px solid #dce3ed;
}

.showcase-rail p {
  margin: 0 0 18px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.showcase-rail a {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 42px;
  padding: 10px 6px 10px 0;
  border-radius: 5px;
  color: #526174;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.showcase-rail a::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -20px;
  width: 3px;
  border-radius: 99px;
  background: transparent;
  content: '';
}

.showcase-rail a span {
  color: #7b8798;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
}

.showcase-rail a:hover,
.showcase-rail a.active {
  color: var(--showcase-ink);
}

.showcase-rail a.active {
  background: #eef4ff;
  font-weight: 600;
}

.showcase-rail a:hover {
  background: #f1f4f8;
}

.showcase-rail a.active:hover {
  background: #e7efff;
}

.showcase-rail a.active::before {
  background: var(--showcase-blue);
}

.showcase-rail a.active span {
  color: var(--showcase-blue);
}

.showcase-rail-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0 5px;
  color: #8793a5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.showcase-rail-divider::after {
  flex: 1;
  height: 1px;
  background: #e3e8ef;
  content: '';
}

.showcase-mobile-navigation {
  display: none;
}

.showcase-nav-group {
  border-top: 1px solid #e3e8ef;
}

.showcase-nav-group summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.showcase-nav-group summary::-webkit-details-marker {
  display: none;
}

.showcase-nav-children {
  margin: 1px 0 8px 26px;
  border-left: 1px solid #dce3ed;
}

.showcase-nav-children[hidden] {
  display: none;
}

.showcase-nav-parent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
}

.showcase-database-toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #667085;
  background: transparent;
  cursor: pointer;
}

.showcase-database-toggle:hover {
  color: var(--showcase-blue);
  background: #eef4ff;
}

.showcase-database-toggle::after {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentcolor;
  border-bottom: 1px solid currentcolor;
  transform: rotate(-45deg);
  content: '';
}

.showcase-database-toggle[aria-expanded='true']::after {
  transform: rotate(45deg);
}

.showcase-rail a.showcase-sub-link {
  grid-template-columns: minmax(0, 1fr);
  min-height: 32px;
  margin-left: 0;
  padding: 7px 5px 7px 14px;
  font-size: 12px;
  line-height: 18px;
}

.showcase-rail a.showcase-sub-link::before {
  top: 16px;
  bottom: auto;
  left: 0;
  width: 8px;
  height: 1px;
  border-radius: 0;
  background: #dce3ed;
}

.showcase-rail a.showcase-sub-link.active::before {
  background: var(--showcase-blue);
}

.showcase-rail a.has-active-child {
  color: var(--showcase-blue);
}

.showcase-nav-group summary::after {
  width: 6px;
  height: 6px;
  margin-left: auto;
  margin-right: 4px;
  border-right: 1px solid currentcolor;
  border-bottom: 1px solid currentcolor;
  transform: rotate(-45deg);
  content: '';
}

.showcase-nav-group[open] summary::after {
  transform: rotate(45deg);
}

.showcase-nav-group.contains-active summary {
  color: var(--showcase-blue);
}

.showcase-nav-group summary:focus-visible,
.showcase-database-toggle:focus-visible,
.showcase-rail a:focus-visible {
  outline: 2px solid #8fb0f8;
  outline-offset: -2px;
}

.showcase-content {
  margin-left: 225px;
}

.showcase-chapter {
  display: grid;
  grid-template-columns: minmax(290px, 380px) 700px;
  gap: clamp(34px, 4vw, 66px);
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--showcase-header-height));
  padding: 56px 28px;
  scroll-margin-top: var(--showcase-header-height);
  border-bottom: 1px solid #eef1f5;
}

.financial-database-chapter {
  grid-template-columns: minmax(220px, 255px) minmax(0, 952px);
  gap: 22px;
  align-items: center;
  padding-right: 18px;
  padding-left: 18px;
}

.financial-database-visuals {
  display: grid;
  grid-template-columns: 700px 230px;
  gap: 22px;
  align-items: start;
  align-self: center;
  width: 952px;
}

.financial-catalog {
  align-self: start;
  width: 230px;
  min-height: 480px;
  padding: 16px 14px;
  border: 1px solid #dce3ec;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.financial-catalog-head {
  margin-bottom: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6ebf2;
}

.financial-catalog-head p {
  margin: 0 0 4px;
  color: var(--showcase-blue);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.financial-catalog-head h3 {
  margin: 0;
  color: #101828;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.financial-catalog-group + .financial-catalog-group {
  margin-top: 12px;
}

.financial-catalog-group h4 {
  margin: 0 0 6px;
  color: #7b8798;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.financial-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.financial-catalog-grid button {
  min-width: 0;
  min-height: 28px;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid #e4eaf2;
  border-radius: 5px;
  background: #fbfcfe;
  color: #526174;
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  cursor: pointer;
}

.financial-catalog-abbreviation {
  display: block;
  white-space: nowrap;
}

@media (max-width: 1480px) and (min-width: 1261px) {
  .financial-database-chapter {
    grid-template-columns: minmax(250px, 1fr) 700px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .financial-database-visuals {
    grid-template-columns: 700px;
    width: 700px;
  }

  .financial-catalog {
    width: 100%;
    min-height: 0;
  }

  .financial-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.financial-catalog-grid button:hover {
  border-color: #bcd0fb;
  color: #1d4ed8;
  background: #f4f7fe;
}

.financial-catalog-grid button.active {
  border-color: #2563eb;
  color: #fff;
  background: #2563eb;
}

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

.showcase-eyebrow {
  margin: 0 0 14px;
  color: var(--showcase-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.showcase-copy h1,
.showcase-copy h2 {
  margin: 0;
  color: #0b1731;
  font-size: clamp(36px, 3.35vw, 52px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.showcase-intro {
  margin: 24px 0 0;
  color: #42526a;
  font-size: 16px;
  line-height: 1.65;
}

.showcase-points {
  display: grid;
  gap: 11px;
  margin: 26px 0 0;
  padding: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  list-style: none;
}

.showcase-points li {
  position: relative;
  padding-left: 18px;
}

.showcase-points li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #91aff6;
  content: '';
}

.showcase-preview {
  position: relative;
  width: 700px;
  height: 480px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
}

.showcase-preview::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid #dce3ec;
  box-shadow: inset 0 1px 0 rgba(71, 84, 103, 0.08);
  pointer-events: none;
  content: '';
}

.showcase-preview iframe {
  display: block;
  width: 700px;
  height: 480px;
  border: 0;
  background: #fff;
}

.showcase-demo {
  width: 700px;
}

.showcase-release-note {
  margin: 12px 0 0;
  color: var(--showcase-muted);
  font-size: 11px;
  line-height: 1.5;
}

.showcase-select-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
  color: #7a8699;
  font-size: 11px;
  font-weight: 600;
}

.showcase-select-control select {
  min-width: 174px;
  height: 34px;
  padding: 0 34px 0 11px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #344054;
  font: inherit;
  cursor: pointer;
}

#equity-dataset-select {
  min-width: 226px;
}

.custom-example-control,
.comparison-example-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
  color: #7a8699;
  font-size: 11px;
  font-weight: 600;
}

.custom-example-slider,
.comparison-example-slider {
  display: inline-grid;
  gap: 3px;
  padding: 3px;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  background: #f1f4f8;
}

.custom-example-slider {
  grid-template-columns: repeat(4, minmax(72px, 1fr));
}

.comparison-example-slider {
  grid-template-columns: repeat(2, minmax(126px, 1fr));
}

.custom-example-slider button,
.comparison-example-slider button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #526174;
  font: inherit;
  cursor: pointer;
}

.custom-example-slider button:hover,
.comparison-example-slider button:hover {
  color: #1d4ed8;
}

.custom-example-slider button.active,
.comparison-example-slider button.active {
  background: #fff;
  color: #172033;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.showcase-select-control select:focus {
  border-color: #8fb0f8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.showcase-footer {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  padding: 26px max(28px, calc((100vw - 1500px) / 2));
  color: #7a8699;
  font-size: 11px;
}

.showcase-footer span {
  margin-right: auto;
}

.showcase-footer a {
  text-decoration: none;
}

@media (max-width: 1260px) {
  .showcase-rail {
    position: sticky;
    top: var(--showcase-header-height);
    left: auto;
    z-index: 40;
    display: flex;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    padding: 8px 22px;
    transform: none;
    border-bottom: 1px solid var(--showcase-line);
    border-left: 0;
    background: rgba(255, 255, 255, 0.97);
    scrollbar-width: none;
  }

  .showcase-rail::-webkit-scrollbar {
    display: none;
  }

  .showcase-rail p {
    display: none;
  }

  .showcase-nav-group {
    display: none;
  }

  .showcase-mobile-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
  }

  .showcase-mobile-navigation select {
    flex: 1;
    min-width: 0;
    max-width: 360px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font: inherit;
  }

  .showcase-rail a {
    display: flex;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
  }

  .showcase-rail a::before {
    inset: auto 10px -8px;
    width: auto;
    height: 2px;
  }

  .showcase-content {
    margin-left: 0;
  }

  .showcase-chapter {
    grid-template-columns: 700px;
    gap: 38px;
    min-height: auto;
    padding: 72px 24px;
    scroll-margin-top: calc(var(--showcase-header-height) + 50px);
  }

  .financial-database-chapter {
    grid-template-columns: 700px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .financial-database-visuals {
    grid-template-columns: 700px;
    width: 700px;
  }

  .financial-catalog {
    width: 700px;
    min-height: 0;
  }

  .financial-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .showcase-copy {
    width: 700px;
  }

  .showcase-demo {
    width: 700px;
  }

  .showcase-copy h1,
  .showcase-copy h2 {
    max-width: 650px;
  }
}

@media (max-width: 760px) {
  .showcase-shell,
  .showcase-content,
  .showcase-chapter,
  .showcase-copy {
    min-width: 0;
    max-width: 100%;
  }

  .showcase-rail {
    padding-inline: 8px;
  }

  .showcase-rail a span {
    display: none;
  }

  .showcase-chapter {
    display: block;
    padding: 58px 16px;
  }

  .showcase-copy {
    width: 100%;
    margin-bottom: 34px;
  }

  .showcase-copy h1,
  .showcase-copy h2 {
    overflow-wrap: anywhere;
    font-size: clamp(34px, 10vw, 42px);
  }

  .showcase-intro {
    font-size: 15px;
  }

  .showcase-preview,
  .showcase-demo {
    width: 100%;
  }

  .financial-database-visuals {
    display: block;
    width: 100%;
  }

  .financial-catalog {
    width: 100%;
    margin-top: 28px;
  }

  .financial-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-preview {
    position: relative;
    height: auto;
    aspect-ratio: 700 / 480;
  }

  .showcase-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(var(--preview-scale, 1));
    transform-origin: top left;
  }

  .showcase-footer {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
