/* Accredited Investors page. Sits on the home design system. */

@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/GlacialIndifference-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/GlacialIndifference-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/GlacialIndifference-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body.qg-capital {
  overflow-x: clip;
}

.qg-capital [id] {
  scroll-margin-top: 96px;
}

html:not([data-theme='dark']) body.qg-home.qg-capital .qg-hero,
html[data-theme='dark'] body.qg-capital .qg-hero {
  background: #070b14;
}

.qg-capital .qg-hero__inner {
  grid-template-columns: minmax(0, 760px);
}

.qg-capital .qg-hero h1 {
  white-space: normal;
  max-width: 12em;
  margin-top: 44px;
  font-family: "Glacial Indifference", "Futura", "Century Gothic", sans-serif;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 550;
  font-feature-settings: normal;
  letter-spacing: -0.015em;
  line-height: 0.98;
  color: #f4f7fb;
}

.qg-capital .qg-hero__copy .qg-hero__sub + .qg-hero__sub {
  margin-top: 16px;
}

.qg-capital .qg-hero__stage .qg-cm-chart {
  background: var(--qg-surface);
  border: 1px solid var(--qg-line);
  border-radius: var(--qg-r-panel);
  box-shadow: var(--qg-sh-float);
}

.qg-capital .qg-sec-head {
  margin-bottom: 36px;
}

.qg-cm-em {
  color: var(--qg-accent);
  font-weight: 600;
}

/* Thesis */
.qg-cm-thesis {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: stretch;
}

.qg-cm-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qg-cm-quote__mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 0.6;
  color: var(--qg-accent);
  opacity: 0.35;
}

.qg-cm-quote .qg-lede {
  color: var(--qg-text);
}

.qg-cm-quote__src {
  margin-top: auto;
  padding-top: 8px;
  font-size: var(--qg-fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--qg-ls-eyebrow);
  text-transform: uppercase;
  color: var(--qg-text-muted);
}

.qg-cm-chart h3 {
  margin: 0 0 4px;
}

.qg-cm-chart .qg-sub {
  margin-bottom: 14px;
}

.qg-cm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--qg-text-muted);
}

.qg-cm-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qg-cm-chart {
  --cm-grid: rgba(0, 74, 173, 0.1);
  --cm-vol: #3d74c4;
  --cm-vol-fill: rgba(0, 74, 173, 0.16);
  --cm-hedge: #b8860b;
  --cm-hedge-fill: rgba(184, 134, 11, 0.16);
  --cm-ring: #ffffff;
}

html[data-theme="dark"] .qg-cm-chart {
  --cm-grid: rgba(255, 255, 255, 0.08);
  --cm-vol: #8fbaf0;
  --cm-vol-fill: rgba(143, 186, 240, 0.2);
  --cm-hedge: #ffcb05;
  --cm-hedge-fill: rgba(255, 203, 5, 0.18);
  --cm-ring: #071428;
}

.qg-cm-swatch {
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

.qg-cm-swatch--vol { background: var(--cm-vol); }
.qg-cm-swatch--hedge { background: var(--cm-hedge); }

.qg-cm-chart canvas {
  display: block;
  width: 100%;
  height: 260px;
}

.qg-cm-chart__foot {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--qg-text-muted);
}

.qg-cm-chart__foot i {
  margin-top: 3px;
  color: var(--qg-accent);
}

/* Strategy */
.qg-cm-streams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.qg-capital .qg-tile:hover {
  transform: none;
}

/* Section washes retired. The page is one paper. */
.qg-capital .qg-cm-band--light,
.qg-capital .qg-cm-band--white,
.qg-capital .qg-cm-band--deep,
.qg-capital .qg-cm-band--split {
  background: transparent;
  color: inherit;
}

.qg-capital .qg-cm-band--white {
  background: #ffffff;
  --qg-text: #0c111b;
  --qg-text-body: #3d4759;
  --qg-text-muted: #6b7689;
  --qg-surface: #ffffff;
}

.qg-capital .qg-cm-band--deep {
  background: linear-gradient(180deg, #00204f, #001a4d);
  color: #fff;
  --qg-text: #ffffff;
  --qg-text-body: rgba(255, 255, 255, 0.85);
  --qg-text-muted: rgba(255, 255, 255, 0.72);
}

.qg-capital .qg-cm-band--deep .qg-card {
  --qg-text: #0c111b;
  --qg-text-body: #3d4759;
  --qg-text-muted: #6b7689;
  --qg-surface: #ffffff;
  --qg-line: #e4ebf5;
  background: #fff;
  color: #0c111b;
}

.qg-capital .qg-cm-band--deep .qg-secnum,
.qg-capital .qg-cm-band--split .qg-secnum {
  color: rgba(255, 255, 255, 0.55);
}

.qg-capital .qg-cm-band--deep .qg-secnum::after,
.qg-capital .qg-cm-band--split .qg-secnum::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}

/* Access: dark left half, light blue right half, content slides over it. */
.qg-capital .qg-cm-band--split {
  background: linear-gradient(#00204f, #00204f) left / 50% 100% no-repeat, #e3f2fd;
  overflow: hidden;
}

.qg-cm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}

.qg-cm-pane--dark {
  color: #fff;
  padding-right: 52px;
  --qg-text: #ffffff;
  --qg-text-body: rgba(255, 255, 255, 0.82);
  --qg-text-muted: rgba(255, 255, 255, 0.72);
}

.qg-cm-pane--light {
  color: #0c111b;
  padding-left: 52px;
  --qg-text: #0c111b;
  --qg-text-body: #3d4759;
  --qg-text-muted: #6b7689;
}

.qg-cm-pane--dark .qg-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.qg-cm-pane--dark .qg-cm-list p {
  color: rgba(255, 255, 255, 0.78);
}

.qg-cm-pane--dark .qg-cm-list strong {
  color: #fff;
}

.qg-cm-pane .qg-h3 {
  margin: 12px 0 18px;
}

.qg-cm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qg-cm-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.qg-cm-list li > i {
  flex: none;
  width: 1.15rem;
  margin-top: 3px;
  text-align: center;
  color: var(--qg-accent);
  font-size: 15px;
}

.qg-cm-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--qg-text);
  font-weight: 600;
}

.qg-cm-list p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--qg-text-muted);
}

/* Request form */
.qg-cm-join {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: 40px;
  align-items: start;
}

.qg-cm-join__copy .qg-sec-head {
  margin-bottom: 28px;
}

.qg-cm-join .qg-cm-pane {
  margin-top: 0;
}

.qg-cm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.qg-cm-stage {
  position: relative;
}

.qg-cm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.qg-cm-stage.is-done .qg-cm-form {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.qg-cm-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 12px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease 0.08s, visibility 0.4s ease 0.08s;
}

.qg-cm-stage.is-done .qg-cm-success,
html.qg-cm-has-request .qg-cm-success {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.qg-cm-has-request .qg-cm-form,
.qg-cm-stage.is-restored .qg-cm-form {
  display: none;
}

html.qg-cm-has-request .qg-cm-success,
.qg-cm-stage.is-restored .qg-cm-success {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  padding: 32px 20px;
}

html.qg-cm-has-request .qg-cm-join {
  grid-template-rows: auto minmax(0, 1fr);
}

html.qg-cm-has-request .qg-cm-join__copy {
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  grid-template-rows: subgrid;
  align-items: stretch;
}

html.qg-cm-has-request .qg-cm-join > .qg-card {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

html.qg-cm-has-request .qg-cm-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

@media (max-width: 900px) {
  html.qg-cm-has-request .qg-cm-join {
    grid-template-rows: none;
  }

  html.qg-cm-has-request .qg-cm-join__copy {
    display: block;
    grid-column: auto;
    grid-row: auto;
  }

  html.qg-cm-has-request .qg-cm-join > .qg-card {
    grid-column: auto;
    grid-row: auto;
    display: block;
  }

  html.qg-cm-has-request .qg-cm-success,
  .qg-cm-stage.is-restored .qg-cm-success {
    height: auto;
    min-height: 280px;
  }
}

html.qg-cm-has-request .qg-cm-success__ring,
html.qg-cm-has-request .qg-cm-success__tick,
.qg-cm-stage.is-restored .qg-cm-success__ring,
.qg-cm-stage.is-restored .qg-cm-success__tick {
  animation: none;
  stroke-dashoffset: 0;
}

.qg-cm-success__mark {
  flex: none;
  width: 72px;
  height: 72px;
}

.qg-cm-success__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qg-cm-success__ring,
.qg-cm-success__tick {
  stroke: var(--qg-accent);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qg-cm-success__ring {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}

.qg-cm-success__tick {
  stroke-width: 2.6;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
}

.qg-cm-stage.is-done .qg-cm-success__ring {
  animation: qg-cm-check-ring 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.qg-cm-stage.is-done .qg-cm-success__tick {
  animation: qg-cm-check-tick 0.32s 0.38s ease-out forwards;
}

.qg-cm-success__copy {
  max-width: 28em;
}

.qg-cm-success h3 { margin: 0 0 8px; }
.qg-cm-success p { margin: 0; color: var(--qg-text-muted); }

@keyframes qg-cm-check-ring {
  to { stroke-dashoffset: 0; }
}

@keyframes qg-cm-check-tick {
  to { stroke-dashoffset: 0; }
}

.qg-cm-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--qg-text);
}

.qg-cm-field input,
.qg-cm-field select,
.qg-cm-field textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 15px;
  color: var(--qg-text);
  background: var(--qg-surface);
  border: 1px solid var(--qg-line-strong);
  border-radius: var(--qg-r-ctl);
  padding: 12px 14px;
}

.qg-cm-field textarea {
  min-height: 110px;
  resize: vertical;
}

.qg-cm-field input:focus,
.qg-cm-field select:focus,
.qg-cm-field textarea:focus {
  outline: 2px solid var(--qg-accent);
  outline-offset: 1px;
  border-color: var(--qg-accent);
}

.qg-cm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.qg-cm-lead {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--qg-text-muted);
}

.qg-cm-lead a {
  color: var(--qg-accent);
}

.qg-cm-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--qg-text-body);
}

.qg-cm-check input {
  margin-top: 3px;
  flex: none;
}

.qg-cm-form .qg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.qg-cm-msg {
  min-height: 1.2em;
  margin: 0;
  font-size: 13.5px;
  color: var(--qg-neg);
}

.qg-cm-fine {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--qg-text-muted);
}

/* Founder */
.qg-cm-founder {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.qg-cm-founder figure {
  margin: 0;
}

.qg-cm-founder__frame {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  border: 1px solid var(--qg-line);
}

.qg-cm-founder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qg-cm-founder figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--qg-text-muted);
}

.qg-cm-founder__role {
  margin: -8px 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--qg-accent);
}

.qg-cm-founder__body p {
  margin: 0 0 14px;
  color: var(--qg-text-body);
  line-height: 1.6;
}

.qg-cm-founder__body p:last-child { margin-bottom: 0; }

/* Media */
.qg-cm-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.qg-cm-video {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--qg-surface);
  border: 1px solid var(--qg-line);
  border-radius: var(--qg-r-card);
  box-shadow: var(--qg-sh-hair);
  cursor: pointer;
  overflow: hidden;
}

.qg-cm-video:hover {
  border-color: var(--qg-line-strong);
  box-shadow: var(--qg-sh-card);
}

.qg-cm-video:focus-visible {
  outline: 2px solid var(--qg-accent);
  outline-offset: 2px;
}

.qg-cm-video__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--qg-surface-2);
}

.qg-cm-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qg-cm-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: var(--qg-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.qg-cm-video__play i { margin-left: 2px; }

.qg-cm-video__title {
  padding: 0 14px 14px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--qg-text);
}

/* Modal */
.qg-cm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 16, 32, 0.72);
}

.qg-cm-modal.is-open { display: grid; }

.qg-cm-modal__dialog {
  position: relative;
  width: min(960px, 100%);
}

.qg-cm-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--qg-r-card);
  overflow: hidden;
}

.qg-cm-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.qg-cm-modal__title {
  margin-top: 10px;
  color: #fff;
  font-weight: 600;
}

.qg-cm-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--qg-text);
  cursor: pointer;
}

@media (max-width: 900px) {
  .qg-cm-thesis,
  .qg-cm-split,
  .qg-cm-join,
  .qg-cm-founder,
  .qg-cm-media {
    grid-template-columns: 1fr;
  }

  .qg-cm-founder { gap: 22px; }

  .qg-capital .qg-cm-band--split {
    background: #e3f2fd;
  }

  .qg-capital .qg-cm-pane--dark,
  .qg-capital .qg-cm-pane--light {
    margin-inline: calc(var(--qg-gutter) * -1);
    padding: 40px var(--qg-gutter);
  }

  .qg-capital .qg-cm-pane--dark { background: #00204f; }
  .qg-capital .qg-cm-pane--light { background: #e3f2fd; }
}

/* Scroll reveals carried over from the previous fund page. */
.qg-capital .qg-cm-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.qg-capital .qg-cm-reveal.is-in {
  opacity: 1;
  transform: none;
}

.qg-capital .qg-cm-reveal--d1 { transition-delay: 0.08s; }
.qg-capital .qg-cm-reveal--d2 { transition-delay: 0.16s; }
.qg-capital .qg-cm-reveal--d3 { transition-delay: 0.24s; }
.qg-capital .qg-cm-reveal--d4 { transition-delay: 0.32s; }

.qg-capital .qg-cm-reveal--left { transform: translateX(-56px); }
.qg-capital .qg-cm-reveal--right { transform: translateX(56px); }

.qg-capital .qg-cm-reveal--left.is-in,
.qg-capital .qg-cm-reveal--right.is-in {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .qg-capital .qg-cm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .qg-cm-form,
  .qg-cm-success {
    transition: none;
  }

  .qg-cm-stage.is-done .qg-cm-success__ring,
  .qg-cm-stage.is-done .qg-cm-success__tick {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@media (max-width: 640px) {
  .qg-cm-streams,
  .qg-cm-row {
    grid-template-columns: 1fr;
  }

  .qg-cm-modal__close {
    top: 8px;
    right: 8px;
  }
}

/* -------------------------------------------------------------- Tech desk
   Dark instrument hero, cool page, sharp cards. Not stationery. */

body.qg-capital {
  background: #eef2f7;
  color: #0c1220;
}

html[data-theme='dark'] body.qg-capital {
  background: #070b14;
  color: #eef3fa;
}

.qg-capital .qg-hero__mesh {
  display: none;
}

.qg-capital .qg-hero__field {
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.72) 58%, #000 72%, #000 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 14%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.72) 58%, #000 72%, #000 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 14%, #000 78%, transparent 100%);
  mask-composite: intersect;
}

@media (max-width: 1080px) {
  .qg-capital .qg-hero__field {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.4) 18%, rgba(0, 0, 0, 0.4) 78%, transparent 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.4) 18%, rgba(0, 0, 0, 0.4) 78%, transparent 100%);
  }
}

.qg-capital .qg-hero__grain {
  opacity: 0.04;
}

html[data-theme='dark'] .qg-capital .qg-hero__grain {
  opacity: 0.1;
}

.qg-capital .qg-hero {
  padding-bottom: 88px;
  color: #f4f7fb;
}

/* Same outer height as the careers hero. The copy sits in the middle of
   the band below the fixed nav. */
@media (min-width: 1081px) {
  .qg-capital .qg-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    min-height: calc(var(--qg-topnav-offset, 66px) + var(--qg-s9) + 589px + 112px);
    padding-top: var(--qg-topnav-offset, 66px);
    padding-bottom: 0;
  }

  .qg-capital .qg-hero__inner {
    width: 100%;
    min-height: 0;
  }

  .qg-capital .qg-hero h1 {
    margin-top: 0;
  }
}

.qg-capital .qg-hero__badge {
  height: 28px;
  margin-bottom: 18px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  font-family: var(--qg-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(244, 247, 251, 0.78);
}

.qg-capital .qg-hero__badge + h1 {
  margin-top: 0;
}

@media (max-width: 1080px) {
  .qg-capital .qg-hero__badge {
    margin-top: 44px;
  }
}

@media (max-width: 620px) {
  .qg-capital .qg-hero__badge {
    margin-top: 0;
  }
}

body.qg-home.qg-capital .qg-hero__sub {
  margin-top: 22px;
  padding-block: 20px;
  max-width: 42ch;
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(244, 247, 251, 0.88);
}

.qg-capital .qg-hero__cta {
  margin-top: 32px;
  align-items: center;
}

.qg-capital .qg-hero__cta .qg-btn,
.qg-capital .qg-hero__cta .qg-btn:hover {
  box-shadow: none;
}

.qg-capital .qg-hero__cta .qg-btn--ghost {
  color: #f4f7fb;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.qg-capital .qg-hero__cta .qg-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.qg-capital .qg-meet {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.qg-capital .qg-meet__label {
  font-family: var(--qg-font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 242, 0.62);
}

.qg-cm-chart__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.qg-cm-chart__actions .qg-btn {
  flex: 1;
  justify-content: center;
}

.qg-capital .qg-cm-chart__actions .qg-btn--ghost {
  color: #f4f7fb;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.qg-capital .qg-cm-chart__actions .qg-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.qg-capital .qg-hero__stage .qg-cm-chart {
  border-radius: 16px;
  background: #0e1524;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8eef8;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --cm-grid: rgba(255, 255, 255, 0.08);
  --cm-vol: #7eb0f0;
  --cm-vol-fill: rgba(126, 176, 240, 0.18);
  --cm-hedge: #ffcb05;
  --cm-hedge-fill: rgba(255, 203, 5, 0.16);
  --cm-ring: #0e1524;
}

.qg-capital .qg-hero__stage .qg-cm-chart .qg-h4,
.qg-capital .qg-hero__stage .qg-cm-chart .qg-sub,
.qg-capital .qg-hero__stage .qg-cm-chart .qg-cm-legend,
.qg-capital .qg-hero__stage .qg-cm-chart .qg-cm-chart__foot {
  color: rgba(232, 238, 248, 0.72);
}

.qg-capital .qg-hero__stage .qg-cm-chart .qg-h4 {
  color: #f4f7fb;
}

html[data-theme='dark'] .qg-capital .qg-hero__stage .qg-cm-chart {
  background: #12151c;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.qg-capital .qg-section {
  padding-block: 88px;
  border-top: 0;
  background: transparent;
}

.qg-capital .qg-cm-band--alt {
  background: #ffffff;
}

html[data-theme='dark'] .qg-capital .qg-cm-band--alt {
  background: #0e1524;
}

.qg-capital .qg-secnum {
  top: 88px;
}

.qg-capital .qg-cm-letters .qg-secnum {
  color: rgba(255, 255, 255, 0.55);
}

.qg-capital .qg-cm-letters .qg-secnum::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}

.qg-capital .qg-sec-head .qg-h1,
.qg-capital .qg-h1 {
  font-weight: 650;
  letter-spacing: -0.04em;
}

.qg-capital .qg-eyebrow {
  font-family: var(--qg-font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--qg-accent);
}

.qg-capital .qg-sec-head .qg-lede {
  max-width: 36ch;
}

#media .qg-sec-head,
#media .qg-sec-head .qg-lede {
  max-width: none;
}

#math .qg-sec-head {
  container-type: inline-size;
}

#math .qg-sec-head .qg-lede {
  max-width: none;
  white-space: nowrap;
  font-size: min(19px, 3.95cqi);
}

.qg-capital .qg-cm-streams {
  gap: 14px;
  border: 0;
}

.qg-capital .qg-cm-streams .qg-tile {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 18, 32, 0.04), 0 12px 32px rgba(12, 18, 32, 0.04);
  padding: 24px 22px 26px;
}

.qg-capital .qg-cm-streams .qg-tile:hover {
  background: #fff;
  border-color: rgba(0, 74, 173, 0.28);
  box-shadow: 0 16px 40px rgba(12, 18, 32, 0.08);
  transform: translateY(-2px);
}

html[data-theme='dark'] .qg-capital .qg-cm-streams .qg-tile {
  background: #111826;
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .qg-capital .qg-cm-streams .qg-tile:hover {
  background: #151e30;
}

.qg-capital .qg-cm-streams .qg-h3 {
  font-family: var(--qg-font-display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

@media (min-width: 720px) {
  .qg-capital .qg-cm-streams {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .qg-capital .qg-cm-streams .qg-tile {
    grid-column: span 2;
  }

  .qg-capital .qg-cm-streams .qg-tile:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .qg-capital .qg-cm-streams .qg-tile:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.qg-cm-math {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: stretch;
}

.qg-cm-eq {
  padding: 20px 0 6px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.qg-cm-eq h3 {
  margin: 0 0 4px;
  font-family: var(--qg-font-display);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.qg-cm-eq__tex {
  margin: 4px 0 8px;
  overflow-x: auto;
  color: #0c1220;
  font-size: 1.02rem;
}

.qg-cm-eq p {
  margin: 0 0 8px;
  max-width: 46ch;
  color: var(--qg-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

html[data-theme='dark'] .qg-cm-eq {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .qg-cm-eq__tex {
  color: #eef3fa;
}

.qg-cm-eq__tex mjx-container {
  margin: 0.35em 0;
}

.qg-cm-frontier {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 16px;
  border-radius: 16px;
  background: #0e1524;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8eef8;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.qg-cm-frontier .qg-h4 {
  margin: 0 0 4px;
  color: #f4f7fb;
}

.qg-cm-frontier .qg-sub,
.qg-cm-frontier .qg-cm-chart__foot {
  color: rgba(232, 238, 248, 0.68);
}

.qg-cm-frontier canvas {
  width: 100%;
  height: 420px;
  margin-top: 8px;
  display: block;
}

.qg-cm-frontier__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.qg-cm-frontier__head .qg-sub {
  margin: 0;
}

.qg-cm-frontier__toggles {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  flex-shrink: 0;
}

.qg-cm-frontier__toggles button {
  appearance: none;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(244, 247, 251, 0.78);
  font-family: var(--qg-font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.qg-cm-frontier__toggles button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.qg-cm-frontier__toggles button[aria-pressed="true"] {
  color: #0e1524;
  background: #ffcb05;
  border-color: #ffcb05;
}

.qg-cm-frontier__toggles button[aria-pressed="true"]:hover {
  color: #0e1524;
  background: #ffe36a;
}

@media (max-width: 900px) {
  .qg-cm-math {
    grid-template-columns: 1fr;
  }

  .qg-cm-frontier canvas {
    height: 340px;
  }
}

.qg-capital .qg-cm-pane--dark,
.qg-capital .qg-cm-pane--light,
.qg-capital .qg-cm-pane {
  color: inherit;
  padding: 0;
}

.qg-capital .qg-cm-split {
  gap: 14px;
}

.qg-capital .qg-cm-pane {
  padding: 28px 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.qg-capital .qg-cm-pane + .qg-cm-pane {
  padding-left: 26px;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme='dark'] .qg-capital .qg-cm-pane {
  background: #111826;
  border-color: rgba(255, 255, 255, 0.08);
}

.qg-capital .qg-cm-list {
  gap: 22px;
}

.qg-capital .qg-cm-join .qg-card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(12, 18, 32, 0.06);
}

html[data-theme='dark'] .qg-capital .qg-cm-join .qg-card {
  background: #111826;
  border-color: rgba(255, 255, 255, 0.08);
}

.qg-cm-founder__role {
  font-weight: 550;
  color: var(--qg-accent);
}

.qg-capital .qg-cm-founder__frame {
  border-radius: 16px;
}

.qg-capital .qg-cm-video {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: none;
  gap: 0;
}

.qg-capital .qg-cm-video:hover {
  border-color: rgba(0, 74, 173, 0.28);
  box-shadow: 0 12px 28px rgba(12, 18, 32, 0.08);
  transform: translateY(-2px);
}

html[data-theme='dark'] .qg-capital .qg-cm-video {
  background: #111826;
  border-color: rgba(255, 255, 255, 0.08);
}

.qg-capital .qg-cm-video__thumb {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.qg-capital .qg-cm-video__title {
  padding: 12px 14px 14px;
  font-weight: 600;
}

.qg-capital .qg-footer {
  background: #070b14;
}

@media (max-width: 900px) {
  .qg-capital .qg-cm-band--split {
    background: transparent;
  }

  .qg-capital .qg-cm-pane--dark,
  .qg-capital .qg-cm-pane--light,
  .qg-capital .qg-cm-pane {
    margin-inline: 0;
    padding: 0;
    background: transparent;
  }

  .qg-capital .qg-cm-pane + .qg-cm-pane {
    padding-left: 0;
    padding-top: 36px;
    border-left: 0;
    border-top: 1px solid var(--qg-line);
  }

  .qg-capital .qg-cm-split,
  .qg-capital .qg-cm-join {
    gap: 36px;
  }

  .qg-capital .qg-cm-pane + .qg-cm-pane {
    padding: 28px 26px;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 0;
  }

  .qg-capital .qg-hero h1 {
    font-size: 46px;
  }

  .qg-capital .qg-cm-join .qg-cm-pane {
    padding: 28px 26px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
  }

  html[data-theme='dark'] .qg-capital .qg-cm-join .qg-cm-pane {
    background: #111826;
    border-color: rgba(255, 255, 255, 0.08);
  }
}

/* Guild Letters */
.qg-cm-letters {
  background: #070b14 !important;
  color: #f4f7fb;
}

.qg-cm-letters__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 48px;
  align-items: center;
}

.qg-cm-letters .qg-eyebrow {
  color: #8eb6f0;
}

.qg-cm-letters .qg-btn--ghost {
  color: #f4f7fb;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.qg-cm-letters .qg-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.qg-cm-letters h2 {
  margin: 10px 0 12px;
  font-family: var(--qg-font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #f4f7fb;
}

.qg-cm-letters p {
  max-width: 42ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(226, 232, 242, 0.74);
}

.qg-cm-letters__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.qg-cm-letters__card {
  justify-self: end;
  width: min(100%, 320px);
  padding: 28px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.qg-cm-letters__count {
  display: block;
  font-family: var(--qg-font-display);
  font-size: 56px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.qg-cm-letters__label {
  display: block;
  margin-top: 6px;
  font-family: var(--qg-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 242, 0.62);
}

.qg-cm-letters__card .qg-btn {
  width: 100%;
}

.qg-cm-letters__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.qg-cm-letters__form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #070b14;
  color: #f4f7fb;
  font: inherit;
  font-size: 15px;
}

.qg-cm-letters__form input::placeholder {
  color: rgba(226, 232, 242, 0.45);
}

.qg-cm-letters__form input:focus {
  outline: none;
  border-color: #8eb6f0;
}

.qg-cm-letters__form .qg-cm-msg,
.qg-cm-letters__form .qg-cm-letters__done {
  max-width: none;
  font-size: 13px;
  line-height: 1.4;
}

.qg-cm-letters__form .qg-cm-msg:empty {
  display: none;
}

.qg-cm-modal--form .qg-cm-modal__dialog {
  width: min(440px, 100%);
  padding: 28px 24px 22px;
  border-radius: 18px;
  background: #0e1524;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f7fb;
}

.qg-cm-modal--form h3 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.qg-cm-modal--form p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(226, 232, 242, 0.7);
}

.qg-cm-modal--form .qg-cm-field label {
  color: rgba(244, 247, 251, 0.86);
}

.qg-cm-modal--form .qg-cm-field input {
  background: #070b14;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f4f7fb;
}

.qg-cm-modal--form .qg-cm-modal__close {
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.qg-cm-letters__done {
  display: none;
  margin: 0;
  font-size: 15px;
  color: #d7e6ff;
}

.qg-cm-letters__done.is-on {
  display: block;
}

.qg-cm-letters__grid {
  margin-bottom: 36px;
}

.qg-cm-letter-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: #111826;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  text-decoration: none;
}

.qg-cm-letter-feature:hover {
  border-color: rgba(126, 176, 240, 0.45);
}

.qg-cm-letter-feature__media {
  position: relative;
  min-height: 280px;
  background: #0b1220;
  overflow: hidden;
}

.qg-cm-letter-feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qg-cm-letter-feature__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffcb05;
  color: #1a1400;
  font-family: var(--qg-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qg-cm-letter-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 32px 32px 28px;
}

.qg-cm-letter-kicker {
  font-family: var(--qg-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8eb6f0;
}

.qg-cm-letter-feature__body h3,
.qg-cm-letter-card h3 {
  margin: 0;
  font-family: var(--qg-font-display);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #f4f7fb;
}

.qg-cm-letter-feature__body h3 {
  font-size: clamp(28px, 3vw, 40px);
}

.qg-cm-letter-feature__body p,
.qg-cm-letter-card p {
  max-width: none;
  color: rgba(226, 232, 242, 0.74);
}

.qg-cm-letter-feature__body p {
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qg-cm-letter-read {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.qg-cm-letter-read i {
  margin-left: 6px;
  font-size: 12px;
}

.qg-cm-letters__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 14px;
}

.qg-cm-letters__archive-label {
  margin: 0;
  font-family: var(--qg-font-display);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #f4f7fb;
}

.qg-cm-letters__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qg-cm-letters__year {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--qg-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 242, 0.62);
}

.qg-cm-letters__year select {
  height: 36px;
  padding: 0 28px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #111826 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c5d0e0' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #f4f7fb;
  font-family: var(--qg-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  appearance: none;
}

.qg-cm-letters__pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qg-cm-letters__pager button {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #f4f7fb;
  font-family: var(--qg-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.qg-cm-letters__pager button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.qg-cm-letters__pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

.qg-cm-letters__pager span {
  min-width: 4.5em;
  text-align: center;
  font-family: var(--qg-font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(226, 232, 242, 0.72);
}

.qg-cm-letters__archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.qg-cm-letter-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #111826;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
}

.qg-cm-letter-card:hover {
  border-color: rgba(126, 176, 240, 0.4);
  transform: translateY(-2px);
}

.qg-cm-letter-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
  overflow: hidden;
}

.qg-cm-letter-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qg-cm-letter-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  flex: 1;
}

.qg-cm-letter-card h3 {
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qg-cm-letter-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qg-cm-letters__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 8px;
  color: rgba(226, 232, 242, 0.6);
}

@media (max-width: 980px) {
  .qg-cm-letters__archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .qg-cm-letters__grid {
    grid-template-columns: 1fr;
  }

  .qg-cm-letters__card {
    justify-self: stretch;
    width: auto;
  }

  .qg-cm-letter-feature {
    grid-template-columns: 1fr;
  }

  .qg-cm-letter-feature__media {
    min-height: 200px;
  }

  .qg-cm-letters__tools {
    flex-direction: column;
    align-items: stretch;
  }

  .qg-cm-letters__controls {
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .qg-cm-letters__archive {
    grid-template-columns: 1fr;
  }

  .qg-cm-letters__controls {
    flex-wrap: wrap;
  }
}

/* Letter reader. Tall, and only as wide as the letter plus room for the
   edge color. The dimmed page stays visible on both sides and does not
   dismiss the reader — only the close button does. */
.qg-cm-letter-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  padding: clamp(12px, 2vh, 24px) clamp(18px, 8vw, 180px);
  background: rgba(4, 8, 18, 0.78);
}

.qg-cm-letter-modal.is-open {
  display: grid;
  justify-items: center;
}

.qg-cm-letter-modal__dialog {
  position: relative;
  justify-self: center;
  width: min(64rem, 100%);
  max-width: 64rem;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f6fb;
  border: 1px solid rgba(0, 33, 84, 0.12);
  box-shadow: 0 28px 80px rgba(8, 24, 56, 0.28);
}

.qg-cm-letter-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f3f6fb;
}

.qg-cm-letter-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0c1220;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.qg-cm-letter-modal__close:hover { background: #fff; }

.qg-cm-letter-modal__close:focus-visible {
  outline: 2px solid #004aad;
  outline-offset: 2px;
}

.qg-cm-letter-modal__busy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  place-items: center;
  background: #f3f6fb;
  pointer-events: none;
}

.qg-cm-letter-modal.is-loading .qg-cm-letter-modal__busy { display: grid; }

.qg-cm-letter-modal__busy::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(0, 74, 173, 0.18);
  border-top-color: #004aad;
  animation: qg-cm-letter-spin 0.7s linear infinite;
}

@keyframes qg-cm-letter-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .qg-cm-letter-modal { padding: 8px; }

  .qg-cm-letter-modal__dialog {
    width: 100%;
    border-radius: 12px;
  }

  .qg-cm-letter-modal__close {
    top: 10px;
    right: 10px;
  }
}
