:root {
  --lp-viewport-height: 100svh;
}
.lp-container {
  margin-inline: auto;
  max-width: calc(var(--lp-container) + 2 * var(--lp-gutter));
  padding-inline: var(--lp-gutter);
  width: 100%;
}
.lp-visually-hidden {
  block-size: 1px;
  clip-path: inset(50%);
  inline-size: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}
:where(.lp-button) {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid var(--lp-rule-strong);
  border-radius: var(--lp-control-radius);
  color: var(--lp-ink);
  cursor: pointer;
  display: inline-flex;
  font: 500 14px/1 var(--lp-font-sans);
  gap: 10px;
  height: var(--lp-control-height);
  justify-content: center;
  letter-spacing: -0.005em;
  padding: 0 18px;
  text-decoration: none;
  transition:
    background-color 160ms var(--lp-ease-out),
    border-color 160ms var(--lp-ease-out),
    color 160ms var(--lp-ease-out),
    transform 160ms var(--lp-ease-out);
  white-space: nowrap;
}
:where(.lp-button):hover {
  border-color: var(--lp-ink);
}
:where(.lp-button):active {
  transform: translateY(1px);
}
:where(.lp-button, .lp-icon-button, .lp-link):focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: 3px;
}
:where(.lp-button[data-tone="primary"]) {
  background: var(--lp-ink);
  border-color: var(--lp-ink);
  color: var(--lp-canvas);
}
:where(.lp-button[data-tone="primary"]):hover {
  background: color-mix(in oklab, var(--lp-ink) 86%, var(--lp-canvas));
}
:where(.lp-button[data-size="small"]) {
  font-size: 13px;
  height: 32px;
  padding: 0 14px;
}
:where(.lp-button__arrow) {
  transition: transform 200ms var(--lp-ease-out);
}
:where(.lp-button:hover .lp-button__arrow) {
  transform: translateX(3px);
}
:where(.lp-icon-button) {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid var(--lp-rule-2);
  border-radius: var(--lp-control-radius);
  color: var(--lp-ink-2);
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  transition: border-color 160ms var(--lp-ease-out), color 160ms var(--lp-ease-out);
  width: 32px;
}
:where(.lp-icon-button):hover {
  border-color: var(--lp-ink);
  color: var(--lp-ink);
}
.lp-theme-icon {
  display: inline-flex;
}
:root:not([data-st-theme="dark"]) .lp-theme-icon[data-theme-icon="dark"],
[data-st-theme="dark"] .lp-theme-icon[data-theme-icon="light"] {
  display: none;
}
:where(.lp-link) {
  color: inherit;
  text-decoration: none;
}
:where(.lp-wordmark) {
  align-items: center;
  color: var(--lp-ink);
  display: inline-flex;
  gap: 9px;
}
:where(.lp-wordmark__text) {
  font: 560 17px/1 var(--lp-font-sans);
  letter-spacing: -0.025em;
}
.lp-dir-data-field {
  --lp-control-radius: 0px;
  
  --df-ink-3: #66686b;
  --df-band: var(--lp-well);
  --df-header-height: 52px;
  
  --df-field-ink: var(--lp-ink);
  --df-field-rule: var(--lp-rule-2);
  --df-field-axis: var(--lp-rule-strong);
  --df-field-dot: rgba(18, 20, 23, 0.22);
  --df-field-halo: var(--lp-canvas);
  --df-field-alpha: 0.1;
  --df-field-shortlist-alpha: 0.26;
}
[data-st-theme="dark"] .lp-dir-data-field {
  --df-ink-3: #8a8d91;
  --df-band: var(--lp-well);
  --df-field-dot: rgba(236, 238, 240, 0.2);
  --df-field-alpha: 0.1;
  --df-field-shortlist-alpha: 0.3;
}
.df-header {
  height: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.df-header__bar {
  align-items: center;
  backdrop-filter: blur(16px) saturate(1.1);
  background: color-mix(in oklab, var(--lp-canvas-raised) 78%, transparent);
  border-bottom: 1px solid var(--lp-rule-2);
  display: flex;
  gap: 8px;
  height: var(--df-header-height);
  inset-inline: 0;
  
  padding-inline: max(var(--lp-gutter), calc((100% - var(--lp-container)) / 2));
  position: absolute;
  top: 0;
}
.df-header__home {
  align-items: center;
  display: inline-flex;
  height: 36px;
  padding-inline: 4px 20px;
}
.df-header__home:focus-visible,
.df-header__link:focus-visible,
.df-header__sheet-link:focus-visible,
.df-header__tools-link:focus-visible,
.df-hero__scroll:focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: -2px;
}
.df-header__nav {
  align-items: center;
  border-inline-start: 1px solid var(--lp-rule-2);
  display: flex;
  height: 20px;
  padding-inline-start: 8px;
}
.df-header__link {
  align-items: center;
  color: var(--lp-ink-2);
  display: inline-flex;
  font: 450 14px/1 var(--lp-font-sans);
  height: 36px;
  letter-spacing: -0.005em;
  padding-inline: 12px;
  transition: color 160ms var(--lp-ease-out);
}
.df-header__link:hover {
  color: var(--lp-ink);
}
.df-header__link[aria-current="page"],
.df-header__tools:has([aria-current="page"]) .df-header__tools-toggle {
  color: var(--lp-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.df-header__tools-link[aria-current="page"],
.df-header__sheet-link[aria-current="page"] {
  background: var(--lp-well);
}
.df-header__tools {
  position: relative;
}
.df-header__tools-toggle {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  gap: 6px;
}
.df-header__tools-toggle[aria-expanded="true"] {
  color: var(--lp-ink);
}
.df-header__chevron {
  transition: transform 160ms var(--lp-ease-out);
}
.df-header__tools-toggle[aria-expanded="true"] .df-header__chevron {
  transform: rotate(180deg);
}
.df-header__tools-menu {
  background: var(--lp-canvas-raised);
  border: 1px solid var(--lp-rule-2);
  box-shadow: var(--lp-overlay-shadow);
  display: grid;
  left: 0;
  min-width: 240px;
  padding: 8px;
  position: absolute;
  top: calc(100% + 16px);
}
.df-header__tools-menu[hidden] {
  display: none;
}
.df-header__tools-link {
  align-items: center;
  color: var(--lp-ink);
  display: flex;
  font: 450 14px/1 var(--lp-font-sans);
  height: 40px;
  letter-spacing: -0.005em;
  padding-inline: 8px;
  white-space: nowrap;
}
.df-header__tools-link:hover {
  background: var(--lp-well);
}
.df-header__actions {
  align-items: center;
  display: flex;
  margin-inline-start: auto;
}
.df-header__cta {
  --lp-control-height: 36px;
  margin-inline-end: 8px;
  min-width: 156px;
}
.df-header__icon.lp-icon-button {
  height: 36px;
  width: 36px;
}
.df-header__icon + .df-header__icon {
  margin-inline-start: -1px;
}
.df-header .df-header__menu-toggle {
  display: none;
}
.df-header__sheet {
  background: var(--lp-canvas-raised);
  border: 1px solid var(--lp-rule-2);
  box-shadow: var(--lp-overlay-shadow);
  display: grid;
  
  left: 50%;
  padding: 8px;
  position: absolute;
  top: calc(var(--df-header-height) + 8px);
  transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--lp-gutter) + 16px), calc(var(--lp-container) + 16px));
}
.df-header__sheet[hidden] {
  display: none;
}
.df-header__sheet-link {
  align-items: center;
  border-bottom: 1px solid var(--lp-rule);
  color: var(--lp-ink);
  display: flex;
  font: 400 20px/1 var(--lp-font-sans);
  gap: 16px;
  height: 56px;
  letter-spacing: -0.02em;
  padding-inline: 8px;
}
.df-header__sheet-index {
  color: var(--df-ink-3);
  font: 500 11px/1 var(--lp-font-mono);
  letter-spacing: 0.08em;
}
.df-header__sheet-group {
  color: var(--df-ink-3);
  font: 500 11px/1 var(--lp-font-mono);
  letter-spacing: 0.08em;
  margin: 0;
  padding: 24px 8px 8px;
  text-transform: uppercase;
}
.df-header__sheet-cta {
  --lp-control-height: 48px;
  justify-content: space-between;
  margin-top: 16px;
}
@media (max-width: 899px) {
.df-header__nav {
    display: none;
  }
.df-header .df-header__menu-toggle {
    display: inline-flex;
  }
}
@media (max-width: 479px) {
.df-header__home {
    padding-inline-end: 8px;
  }
.df-header__cta {
    min-width: 0;
    padding-inline: 14px;
  }
}
.lp-dir-cursor-structure {
  --lp-control-height: 44px;
  --cs-header-height: 60px;
  --cs-card: var(--lp-well);
  --cs-stage: color-mix(in oklab, var(--lp-well) 64%, var(--lp-rule-2));
  --cs-stage-rule: var(--lp-rule-2);
  --cs-frame-edge: var(--lp-rule-2);
  
  --cs-muted: #686a6e;
  
  --cs-scale: 0.68;
  
  --cs-section-space: 67.2px;
  --cs-card-gap: 90px;
}
@media (max-width: 799px) {
.lp-dir-cursor-structure {
    --cs-section-space: 63px;
    --cs-card-gap: 84px;
  }
}
[data-st-theme="dark"] .lp-dir-cursor-structure {
  --cs-card: #0f1012;
  --cs-stage: #151618;
  --cs-frame-edge: var(--lp-rule-strong);
  --cs-muted: #8d9094;
}
.cs-header__brand:focus-visible,
.cs-header__link:focus-visible,
.cs-footer__link:focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: 4px;
}
.cs-header__nav ul,
.cs-footer__nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-footer {
  border-block-start: 1px solid var(--lp-rule);
  padding-block: 40px 32px;
}
.cs-footer__inner {
  display: grid;
  gap: 32px 24px;
  grid-template-columns: minmax(0, 1fr) auto;
}
.cs-footer__link {
  color: var(--lp-ink-2);
  font-size: 14px;
  line-height: 20px;
}
.cs-footer__link:hover {
  color: var(--lp-ink);
}
.cs-footer__base {
  align-items: center;
  color: var(--lp-ink-2);
  display: flex;
  font-size: 13px;
  grid-column: 1 / -1;
  justify-content: space-between;
}
@media (max-width: 1023px) {
.lp-dir-cursor-structure {
    --cs-scale: 0.62;
  }
}
@media (max-width: 767px) {
.lp-dir-cursor-structure {
    --cs-scale: 0.55;
  }
.cs-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
.cs-footer__nav ul {
    flex-wrap: wrap;
    gap: 12px 24px;
  }
}
.site-notice {
  height: 0;
  position: sticky;
  top: var(--df-header-height);
  
  z-index: 49;
}
.site-notice__bar {
  align-items: center;
  background: var(--lp-well);
  border-block-end: 1px solid var(--lp-rule);
  color: var(--lp-ink-2);
  display: grid;
  font-size: 15px;
  gap: 16px;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  inset-inline: 0;
  line-height: 20px;
  padding-block: 10px;
  
  padding-inline: max(var(--lp-gutter), calc((100% - var(--lp-container)) / 2));
  position: absolute;
  top: 0;
}
.site-notice__text {
  grid-column: 2;
  margin: 0;
  text-align: center;
  text-wrap: balance;
}
.site-notice strong {
  color: var(--lp-ink);
  font-weight: 500;
}
.site-notice sup,
.site-footer__notes sup {
  font-size: 0.75em;
  line-height: 0;
}
.site-notice sup a {
  padding-inline: 0.15em;
  text-decoration: none;
}
.site-notice__dismiss.lp-icon-button {
  block-size: 28px;
  inline-size: 28px;
}
.site-footer {
  padding-block: 56px 32px;
}
.site-footer__inner {
  display: grid;
  gap: 40px 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.site-footer__brand {
  align-self: start;
  grid-column: 1 / span 4;
  justify-self: start;
}
.site-footer__brand:focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: 4px;
}
.site-footer__columns {
  display: grid;
  gap: 32px 16px;
  grid-column: 5 / span 8;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.site-footer__title {
  color: var(--lp-ink-3);
  font: 500 11px/16px var(--lp-font-mono);
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.site-footer__links {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__notes {
  border-block-start: 1px solid var(--lp-rule);
  color: var(--lp-ink-2);
  display: grid;
  font-size: 13px;
  gap: 12px;
  grid-column: 1 / -1;
  padding-block-start: 24px;
}
.site-footer__notes p {
  line-height: 20px;
  margin: 0;
}
.site-footer__base {
  
  align-items: flex-end;
  border-block-start: 1px solid var(--lp-rule);
  gap: 16px;
  padding-block-start: 24px;
}
.site-footer__legal {
  display: grid;
  gap: 4px;
}
.site-footer__controls {
  align-items: center;
  display: flex;
  gap: 16px;
}
.site-footer__cookies {
  background: none;
  border: 0;
  color: var(--lp-ink-2);
  cursor: pointer;
  font: inherit;
  padding: 0;
  white-space: nowrap;
}
.site-banner {
  align-items: center;
  background: var(--lp-canvas-raised);
  border: 1px solid var(--lp-rule-2);
  bottom: 16px;
  box-shadow: var(--lp-overlay-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  inset-inline: 16px;
  justify-content: space-between;
  margin-inline: auto;
  max-inline-size: 760px;
  padding: 16px 20px;
  position: fixed;
  z-index: 50;
}
.site-banner__text {
  color: var(--lp-ink-2);
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}
.site-banner__text a,
.site-notice a,
.site-footer__legal a {
  color: var(--lp-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-banner__actions {
  display: flex;
  gap: 8px;
}
.site-consent {
  align-items: stretch;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 16px;
  
  max-block-size: calc(var(--lp-viewport-height) - 32px);
  overflow-y: auto;
}
.site-consent__heading {
  color: var(--lp-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
}
.site-consent__top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.site-consent__actions {
  align-self: flex-end;
  display: grid;
  gap: 8px;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
}
.site-consent__inverse.lp-button,
.site-consent__answer {
  background: var(--lp-canvas);
  border: 1px solid var(--lp-ink);
  color: var(--lp-ink);
}
.site-consent__row {
  align-items: center;
  border-block-start: 1px solid var(--lp-rule);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-block: 12px;
}
.site-consent__row:last-child {
  border-block-end: 1px solid var(--lp-rule);
}
.site-consent__name {
  color: var(--lp-ink);
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.site-consent__row .site-banner__text {
  display: block;
}
.site-consent__always {
  color: var(--lp-ink-2);
  flex: none;
  font-size: 13px;
  white-space: nowrap;
}
.site-consent__answers {
  display: grid;
  flex: none;
  gap: 8px;
  grid-template-columns: 64px 64px;
}
.site-consent__answer {
  align-items: center;
  border-radius: var(--lp-control-radius);
  cursor: pointer;
  display: inline-flex;
  font: 500 13px/1 var(--lp-font-sans);
  height: 32px;
  justify-content: center;
  position: relative;
}
.site-consent__answer:has(:checked) {
  background: var(--lp-ink);
  color: var(--lp-canvas);
}
.site-consent__answer:has(:focus-visible) {
  outline: 2px solid var(--lp-ink);
  outline-offset: 3px;
}
.site-consent__save {
  display: flex;
  justify-content: flex-end;
}
.site-consent__save .lp-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
@media (max-width: 1023px) {
.site-split__head,
  .site-split__body,
  .site-footer__brand,
  .site-footer__columns {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
.site-footer__base {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }
.site-footer__controls {
    justify-content: flex-end;
  }
.site-footer__cookies {
    margin-inline-end: auto;
  }
.site-consent {
    border-inline: 0;
    border-block-end: 0;
    bottom: 0;
    inset-inline: 0;
    max-block-size: calc(var(--lp-viewport-height) - 16px);
  }
.site-consent__actions {
    align-self: stretch;
    display: flex;
    flex-direction: column-reverse;
  }
.site-consent__row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
.site-consent__answers {
    grid-template-columns: 1fr 1fr;
  }
.site-consent__save .lp-button {
    inline-size: 100%;
  }
.site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/*
 * The analytics box on tool pages (tool-gate.ts, LP-D176), for pages that load landing.css but not site.css: the
 * cookie panel's place and look (site.css `.site-banner`, `.site-consent`), its first line in the Manage box's row-name
 * style (`.site-consent__name`), its link and buttons as the cookie panel's; its error as the request demo form's alert.
 * Change those there first, then here.
 */

/* Over the whole page, header included, and unshaded: a click on it moves focus to the box. */
.tool-gate-layer {
  inset: 0;
  position: fixed;
  z-index: 60;
}

/* The box and, right on top of it, the error when the browser blocks storing the choice (LP-D177): one column, one
 * width, one shadow, nothing of the page between them. */
.tool-gate-dock {
  bottom: 16px;
  box-shadow: var(--lp-overlay-shadow);
  display: flex;
  flex-direction: column;
  inset-inline: 16px;
  margin-inline: auto;
  max-block-size: calc(var(--lp-viewport-height) - 32px);
  max-inline-size: 760px;
  position: fixed;
  z-index: 61;
}

.tool-gate {
  /* The site's buttons are 44px tall: its pages set this on their root (cursor-structure.css), which tool pages lack. */
  --lp-control-height: 44px;
  background: var(--lp-canvas-raised);
  border: 1px solid var(--lp-rule-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-block-size: 0;
  overflow-y: auto;
  padding: 16px 20px;
}

/* The request demo form's alert (site.css `.site-form__alert`, `--site-error`: the product's loss red) on the box's
 * surface, its text in line with the box's; its bottom border lies over the box's top one. */
.tool-gate-error {
  --tool-gate-error: #a52836;
  background: var(--lp-canvas-raised);
  border: 1px solid var(--tool-gate-error);
  color: var(--tool-gate-error);
  flex-shrink: 0;
  font-size: 14px;
  line-height: 20px;
  margin: 0 0 -1px;
  padding: 12px 20px;
  position: relative;
}

[data-st-theme="dark"] .tool-gate-error {
  --tool-gate-error: #e0675e;
}

/* The site's focus style, on a programmatic focus too (a click on the layer). */
.tool-gate:focus {
  outline: 2px solid var(--lp-ink);
  outline-offset: 3px;
}

.tool-gate__heading {
  color: var(--lp-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  margin: 0;
}

.tool-gate__text {
  color: var(--lp-ink-2);
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.tool-gate__text a {
  color: var(--lp-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

/* Back and Accept, left to right: one size, the wider label's. */
.tool-gate__actions {
  align-self: flex-end;
  display: grid;
  gap: 8px;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
}

/* Back: the primary button's colours swapped, in either theme. */
.tool-gate__back.lp-button {
  background: var(--lp-canvas);
  border: 1px solid var(--lp-ink);
  color: var(--lp-ink);
}

/* Phones: the window's width, buttons stacked full width, Accept on top; the desktop row stays the Tab order. */
@media (max-width: 767px) {
  .tool-gate-dock {
    bottom: 0;
    inset-inline: 0;
    max-block-size: calc(var(--lp-viewport-height) - 16px);
  }

  .tool-gate {
    border-block-end: 0;
    border-inline: 0;
  }

  .tool-gate-error {
    border-inline: 0;
  }

  .tool-gate__actions {
    align-self: stretch;
    display: flex;
    flex-direction: column-reverse;
  }
}

/*
 * Where the site's chrome sits on the Market Data Visualizer's pages; its look is the site's own rules, which the build
 * takes from the landing-page submodule ahead of these (build.ts). On structure.fi's pages the header is a zero-height
 * sticky bar over the page, which pads its content for it and for the beta notice lying under it; these pages give each
 * a row of their own, so neither covers anything: the header's row sticky at the top, the notice's pinned under it on
 * the landing and guide pages, a grid row of the app.
 */
.structure-site-header {
  height: var(--df-header-height);
  position: sticky;
  top: 0;
  z-index: 10;
}

[data-structure-site-notice] .site-notice {
  height: auto;
  position: static;
}

[data-structure-site-notice] .site-notice__bar {
  position: static;
}

/* The landing and guide pages' header is sticky at the top, `--guide-header-height` tall, the site header's height. */
.structure-site-notice {
  position: sticky;
  top: var(--guide-header-height, 0px);
  z-index: 9;
}

/* Cookie settings (REF:landing-page-rules R2), a control of the footer's row of its own, only in the consent regions. */
.structure-site-cookies {
  display: contents;
}

/*
 * The app's menu on its wordmark (site-menu.tsx): the wordmark at the app header's start, the dropdown just under the
 * app's shorter header and over its panes; the phone's header shows the mark alone. The menu is not the header's Tools
 * menu, so its button is never marked as a current section.
 */
.structure-site-menu {
  align-items: center;
  display: flex;
  position: relative;
}

.structure-site-menu .structure-site-menu__toggle {
  height: 100%;
  padding-inline: 0;
}

.structure-site-menu .df-header__tools-menu {
  top: calc(100% + 4px);
  z-index: 50;
}

.structure-site-menu[data-compact] .lp-wordmark__text {
  display: none;
}
