:root {
  color-scheme: dark;
  --bg: light-dark(#f9fafb, #0b0f14);
  --surface: light-dark(#ffffff, #151b24);
  --ink: light-dark(#111827, #e5e7eb);
  --ink-muted: light-dark(#374151, #9ca3af);
  --ink-faint: light-dark(#4b5563, #8b95a5);
  --line: light-dark(#e5e7eb, #2a3340);
  --btn: light-dark(#111827, #e5e7eb);
  --on-btn: light-dark(#ffffff, #0b0f14);
  --gate-wash: light-dark(rgba(249, 250, 251, 0.72), rgba(11, 15, 20, 0.78));
  --scrim: light-dark(rgba(17, 24, 39, 0.45), rgba(0, 0, 0, 0.62));
  --focus: #93c5fd;
  --ok: light-dark(#145251, #5eead4);
  --err: light-dark(#9b1c1c, #f87171);
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(80rem, calc(100% - 2rem));
  --radius: 0.5rem;
}

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

.theme-switch {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 40;
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 8px 24px light-dark(rgba(17, 24, 39, 0.08), rgba(0, 0, 0, 0.35));
}
.theme-switch button {
  appearance: none;
  border: 0;
  margin: 0;
  background: transparent;
  color: var(--ink-faint);
  font: 600 0.72rem var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.42rem 0.7rem;
  cursor: pointer;
}
.theme-switch button + button { border-left: 1px solid var(--line); }
.theme-switch button[aria-checked="true"] {
  background: var(--btn);
  color: var(--on-btn);
}
@media (max-width: 480px) {
  .theme-switch button { padding: 0.4rem 0.55rem; font-size: 0.68rem; }
}

html.ldux-pending main { visibility: hidden; }
html.ldux-ready main { visibility: visible; }

main {
  width: var(--wrap);
  margin: 0 auto;
  padding: 3.4rem 0 2.5rem;
}

@media (min-width: 960px) {
  main { padding: 2rem 0 3rem; }
}

main > ldux-tabs {
  display: block;
  margin-top: 0.35rem;
}

.username-gate {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.username-gate[hidden] { display: none !important; }
.username-gate__backdrop {
  position: absolute;
  inset: 0;
  background: var(--gate-wash);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.username-gate__panel {
  position: relative;
  width: min(100%, 22rem);
  padding: 1.5rem 1.35rem 1.25rem;
  border-radius: var(--radius, 0.5rem);
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e5e7eb);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
  color: var(--ink, #111827);
}
.username-gate__brand {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint, #4b5563);
}
.username-gate__panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #111827);
}
.username-gate__hint {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted, #374151);
}
.username-gate__label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint, #4b5563);
}
.username-gate__panel input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius, 0.5rem);
  background: var(--surface, #fff);
  color: var(--ink, #111827);
  font: 400 16px / 1.25 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
.username-gate__panel input:focus {
  outline: 2px solid var(--focus, #93c5fd);
  outline-offset: 1px;
}
.username-gate__panel button {
  appearance: none;
  width: 100%;
  border: 1px solid var(--btn, #111827);
  border-radius: var(--radius, 0.5rem);
  padding: 0.65rem 0.85rem;
  background: var(--btn, #111827);
  color: var(--on-btn, #fff);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.username-gate__panel button:disabled { opacity: 0.55; cursor: not-allowed; }
.username-gate__panel button.username-gate__later {
  margin-top: 0.55rem;
  background: var(--surface, #fff);
  color: var(--ink, #111827);
}
.username-gate__status {
  margin: 0.75rem 0 0;
  color: var(--err);
  font-size: 0.85rem;
}
body.username-gated main {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

#about {
  margin: 2rem 0 0;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
#about h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
#about .fund-kicker { margin-bottom: 0.35rem; }
#about p {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 46rem;
}
#about p:last-of-type {
  margin-bottom: 0.15rem;
  color: var(--ink-faint);
  font-size: 0.875rem;
}
.site-links {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.site-links a {
  color: var(--ink-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0;
}
#header + .cta-row,
#intro-cta {
  margin: 1rem 0 0;
}
.cta,
.cta-secondary {
  appearance: none;
  border-radius: var(--radius);
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.cta {
  border: 1px solid var(--btn);
  background: var(--btn);
  color: var(--on-btn);
}
.cta:hover { filter: brightness(1.08); }
.cta-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.cta-secondary:hover { border-color: var(--ink); }

.contact-modal {
  border: 0;
  padding: 0;
  max-width: min(36rem, calc(100vw - 1.5rem));
  width: 100%;
  background: transparent;
}
.contact-modal::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(2px);
}
.contact-sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  max-height: min(90vh, 720px);
  overflow: auto;
  color: var(--ink);
  font-family: var(--font-body);
}
.contact-sheet header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}
.contact-sheet .eyebrow {
  grid-column: 1;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-sheet h2 {
  grid-column: 1;
  margin: 0;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.contact-sheet .lede {
  margin: 0 0 0.85rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: none;
}
.contact-close {
  grid-column: 2;
  grid-row: 1 / span 2;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 0.35rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.contact-close:hover { border-color: var(--ink); }
.draft-note {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.draft-note[data-state="saved"] { color: var(--ink-muted); }
.contact-form { display: grid; gap: 0.75rem; }
.contact-sheet[data-step="email"] [data-step-panel="details"],
.contact-sheet[data-step="details"] [data-step-panel="email"] {
  display: none;
}
.contact-form .fine {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.4;
}
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contact-form .row { display: grid; gap: 0.75rem; }
.contact-form .row.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
}
.contact-form .row.two > label {
  min-width: 0;
}
.contact-form label .caption {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  min-height: 1.25rem;
  line-height: 1.25;
  white-space: nowrap;
}
.contact-form label span.hint {
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 0.78rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
  padding: 0.55rem 0.7rem;
  box-sizing: border-box;
}
.contact-form input,
.contact-form select {
  height: 2.7rem;
  min-height: 2.7rem;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.1rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
    linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 50%, calc(100% - 0.7rem) 50%;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.contact-form textarea {
  height: auto;
  min-height: 6.5rem;
  resize: vertical;
}
.contact-form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.15rem;
}
.contact-form .btn-primary,
.contact-form .btn-secondary {
  border-radius: var(--radius);
  min-height: 2.55rem;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.contact-form .btn-primary {
  border: 0;
  background: var(--btn);
  color: var(--on-btn);
}
.contact-form .btn-primary:hover { filter: brightness(1.08); }
.contact-form .btn-primary:disabled { opacity: 0.55; cursor: wait; }
.contact-form .btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.contact-form .btn-secondary:hover { border-color: var(--ink); }
.contact-status {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-faint);
}
.contact-status[data-ok="true"] { color: var(--ok); }
.contact-status[data-ok="false"] { color: var(--err); }
.contact-sheet[data-celebrate="true"] .contact-form,
.contact-sheet[data-celebrate="true"] .lede,
.contact-sheet[data-celebrate="true"] .draft-note,
.contact-sheet[data-celebrate="true"] .eyebrow,
.contact-sheet[data-celebrate="true"] > header h2 { display: none; }
.contact-sheet[data-celebrate="true"] > header { margin-bottom: 0; }
.contact-success {
  display: none;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2.25rem 1rem 2rem;
  min-height: 16rem;
  align-content: center;
}
.contact-sheet[data-celebrate="true"] .contact-success {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  animation: nifCelebrateIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.contact-success .burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.contact-success .burst i {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: #38bdf8;
  opacity: 0;
  animation: nifConfetti 1.1s ease-out forwards;
}
.contact-success .burst i:nth-child(5n) { background: var(--ink); width: 0.35rem; height: 0.7rem; }
.contact-success .burst i:nth-child(3n) { background: #2a9d8f; border-radius: 50%; }
.contact-success .check {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: light-dark(#ecfeff, #134e4a);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
  animation: nifPopCheck 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.contact-success .check svg {
  width: 1.55rem;
  height: 1.55rem;
  stroke: var(--ink);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-success h3 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.contact-success p {
  margin: 0;
  max-width: 26rem;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.45;
}
@keyframes nifCelebrateIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes nifPopCheck {
  0% { opacity: 0; transform: scale(0.4); }
  60% { transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes nifConfetti {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + (var(--dx) * 1px)), calc(-50% + (var(--dy) * 1px))) rotate(var(--rot)) scale(0.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-success,
  .contact-success .check,
  .contact-success .burst i { animation: none !important; }
}
@media print {
  .theme-switch { display: none !important; }
}

.fund-hero {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1.35rem;
  padding: 1.25rem 1.2rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 860px) {
  .fund-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    grid-template-areas:
      "brand stats"
      "cta cta";
    align-items: start;
    gap: 1.1rem 2rem;
  }
  .fund-hero__brand { grid-area: brand; }
  .fund-hero .fund-stats { grid-area: stats; }
  .fund-hero__cta {
    grid-area: cta;
    justify-self: end;
  }
}
.fund-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.fund-name {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.fund-name a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.fund-name a:hover,
.fund-name a:focus,
.fund-name a:active {
  color: inherit;
  text-decoration: none;
}
.fund-hero .fund-kicker {
  margin: 0.2rem 0 0.55rem;
}
.fund-lede {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.fund-notes {
  margin: 0.45rem 0 0;
  max-width: 40rem;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.35;
}
.fund-hero__cta {
  margin: 0;
  flex-wrap: nowrap;
  gap: 0.4rem;
  justify-content: flex-end;
  width: 100%;
}
.fund-hero__cta.cta-row { margin: 0; }
.fund-hero__cta .cta,
.fund-hero__cta .cta-secondary {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.2rem;
  padding: 0.4rem 0.45rem;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@media (min-width: 480px) {
  .fund-hero__cta .cta,
  .fund-hero__cta .cta-secondary {
    flex: 0 0 auto;
    padding: 0.55rem 1rem;
    font-size: inherit;
    letter-spacing: -0.01em;
    min-height: 2.55rem;
  }
}
.fund-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  margin: 0;
}
.fund-stats--compact {
  margin: 1rem 0 0;
}
.fund-stats > div {
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
}
.fund-stats dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.fund-stats dd {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.fund-stats dd small {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  opacity: 0.88;
}
.fund-stats dd.up { color: var(--ok); }
.fund-stats dd.down { color: var(--err); }
.fund-stats > div[data-note] {
  cursor: help;
  position: relative;
}
.fund-stats > div[data-note] dt {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.18em;
}
.fund-stats > div[data-note]::after {
  content: attr(data-note);
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  bottom: auto;
  z-index: 12;
  width: auto;
  max-width: none;
  box-sizing: border-box;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
}
.fund-stats > div[data-note]:nth-child(even)::after {
  left: 0;
  right: 0;
}
.fund-stats > div[data-note]:hover::after,
.fund-stats > div[data-note]:focus-within::after {
  opacity: 1;
}
.fund-panel { margin: 0 0 1.25rem; }
.fund-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.fund-panel p {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 46rem;
}
.fund-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: end;
  margin-bottom: 0.65rem;
}
.fund-caption, .fund-fine {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 44rem;
}
.fund-fine { margin-top: 0.85rem; }
.fund-split {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 800px) {
  .fund-split { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}
.fund-split p { max-width: none; }
.fund-themes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.fund-themes li {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--surface);
}
.fund-themes strong { font-size: 0.88rem; }
.fund-themes span {
  color: var(--ink-faint);
  font-size: 0.75rem;
  line-height: 1.35;
}
.atr-board {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.atr-meter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  margin: 0.85rem 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.atr-meter__track {
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--line);
  position: relative;
}
.atr-meter__track i {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  width: 0.7rem;
  height: 0.7rem;
  margin: -0.35rem 0 0 -0.35rem;
  border-radius: 999px;
  background: var(--ink);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.atr-pos {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.atr-subhead {
  margin: 1rem 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.atr-subhead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0 0.4rem;
}
.atr-subhead-row .atr-subhead { margin: 0; }
.atr-chart-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
}
.atr-zoom {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.atr-zoom button {
  appearance: none;
  border: 0;
  margin: 0;
  background: transparent;
  color: var(--ink);
  font: 650 0.78rem/1 var(--font-body);
  padding: 0.28rem 0.7rem;
  cursor: pointer;
}
.atr-zoom button + button { border-left: 1px solid var(--line); }
.atr-zoom button:hover { background: var(--bg); }
.atr-reset {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 650 0.78rem/1 var(--font-body);
  padding: 0.28rem 0.75rem;
  cursor: pointer;
}
.atr-reset:hover { background: var(--bg); }
.atr-strip {
  margin: 0;
  min-height: 7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.atr-strip svg { display: block; width: 100%; height: 7.5rem; }
.atr-strip .now {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.atr-strip .now-label {
  fill: var(--ink-muted);
  font-size: 11px;
  font-family: var(--font-body);
}
.atr-strip .tick {
  fill: var(--ink-faint);
  font-size: 10px;
  font-family: var(--font-body);
}
.atr-strip g line { stroke-width: 2.2; stroke-linecap: round; }
.atr-strip g.up line, .atr-strip g.up circle { stroke: var(--ok); fill: var(--ok); }
.atr-strip g.down line, .atr-strip g.down circle { stroke: var(--err); fill: var(--err); }
.atr-chart .reg-up {
  fill: color-mix(in srgb, #38bdf8 32%, transparent);
  stroke: none;
}
.atr-chart .reg-dn {
  fill: color-mix(in srgb, var(--err) 28%, transparent);
  stroke: none;
}
.atr-chart .reg-mid {
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1.3;
  stroke-dasharray: 5 4;
}
.atr-chart .reg-edge {
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 42%, transparent);
  stroke-width: 1.15;
}
.atr-chart .zigzag {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 1.7;
  stroke-dasharray: 3.5 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.atr-chart .pivot.peak rect { fill: #38bdf8; }
.atr-chart .pivot.valley rect { fill: color-mix(in srgb, var(--err) 88%, #fff); }
.atr-chart .pivot text {
  fill: #0b0f14;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-body);
}
.atr-chart .last {
  stroke: var(--ink);
  stroke-width: 1.6;
}
.atr-chart .last-dot {
  fill: var(--ink);
  stroke: var(--surface);
  stroke-width: 1.5;
}
.atr-chart .atr-span {
  stroke: var(--ink);
  stroke-width: 1.6;
}
.atr-chart .atr-head { fill: var(--ink); }
.atr-chart .callout rect {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1;
}
.atr-chart .callout text {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
}
.atr-chart .now-label {
  fill: var(--ink-muted);
  font-size: 11px;
  font-family: var(--font-body);
}
.fund-subscribe-open {
  width: 100%;
  margin-top: 0.85rem;
}
.fund-subscribe-hint { margin: 0.45rem 0 0; }
.fund-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.fund-details > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.fund-details > div:nth-child(odd) { border-right: 1px solid var(--line); }
.fund-details dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.fund-details dd { margin: 0; font-size: 0.9rem; }
.fund-legend {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.8rem;
}
.fund-legend .swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.22rem;
  margin: 0 0.35rem 0.15rem 0.7rem;
  vertical-align: middle;
  border-radius: 99px;
  background: var(--ink-faint);
}
.fund-legend .swatch.nif { margin-left: 0; background: var(--ink); }
.fund-chart {
  position: relative;
  min-height: 16rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  touch-action: pan-y;
  cursor: crosshair;
}
.fund-chart.atr-chart {
  margin-top: 0;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.fund-chart.atr-chart.is-panning { cursor: grabbing; }
.fund-chart svg { display: block; width: 100%; height: 16.5rem; }
.fund-chart .grid { stroke: var(--line); stroke-width: 1; }
.fund-chart .tick { fill: var(--ink-faint); font-size: 11px; font-family: var(--font-body); }
.fund-chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fund-chart .line.nif { stroke: var(--ink); }
.fund-chart .line.spy { stroke: var(--ink-faint); stroke-dasharray: 5 4; }
.fund-chart .crosshair { opacity: 0; pointer-events: none; }
.fund-chart .crosshair.is-on { opacity: 1; }
.fund-chart .hair {
  stroke: var(--ink-muted);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.fund-chart .dot { stroke: var(--surface); stroke-width: 1.5; }
.fund-chart .dot.nif { fill: var(--ink); }
.fund-chart .dot.spy { fill: var(--ink-faint); }
.fund-chart .axis-x rect,
.fund-chart .axis-y rect { fill: var(--ink); }
.fund-chart .axis-x text,
.fund-chart .axis-y text {
  fill: var(--on-btn, var(--bg));
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 650;
}
.fund-chart__tip {
  position: absolute;
  z-index: 2;
  min-width: 11.5rem;
  padding: 0.45rem 0.6rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
  pointer-events: none;
}
.fund-chart__tip p { margin: 0.15rem 0 0; }
.fund-chart__tip-date {
  margin: 0 0 0.2rem !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.fund-chart__tip strong { font-variant-numeric: tabular-nums; }
.fund-chart__tip em {
  font-style: normal;
  color: var(--ink-muted);
  margin-left: 0.25rem;
}
.fund-chart__tip .swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.18rem;
  margin-right: 0.35rem;
  vertical-align: middle;
  border-radius: 99px;
  background: var(--ink-faint);
}
.fund-chart__tip .swatch.nif { background: var(--ink); }
.fund-chart__wait {
  margin: 0;
  min-height: 16rem;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 0.88rem;
}
.fund-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.fund-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.fund-table th, .fund-table td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.fund-table th {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg);
}
.fund-table td.num, .fund-table th.num { text-align: right; }
.fund-table tbody tr:last-child td { border-bottom: 0; }
.fund-table a { color: inherit; font-weight: 650; text-decoration: none; }
.fund-table a:hover { text-decoration: underline; }
.fund-table .up { color: var(--ok); font-weight: 650; }
.fund-table .down { color: var(--err); font-weight: 650; }
.fund-panel--tight { margin-bottom: 0.75rem; }
.research-page {
  width: var(--wrap);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}
.research-page h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  letter-spacing: -0.03em;
}
.research-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.research-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: 600 0.75rem var(--font-body);
  cursor: pointer;
}
.research-chip[aria-pressed="true"] {
  background: var(--btn);
  color: var(--on-btn);
  border-color: var(--btn);
}
.research-sectors {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .research-sectors { grid-template-columns: 1fr 1fr; }
}
.research-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.research-card[hidden] { display: none; }
.research-card h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.research-thesis {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.research-tickers {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.research-tickers span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}
.research-feed {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.research-story a {
  display: grid;
  gap: 0.1rem;
  color: inherit;
  text-decoration: none;
  padding: 0.4rem 0.45rem;
  border-radius: 0.35rem;
}
.research-story a:hover { background: var(--bg); }
.research-story__title { font-size: 0.88rem; font-weight: 650; }
.research-story__meta {
  color: var(--ink-faint);
  font-size: 0.72rem;
}
.research-story.is-featured a,
.research-story.is-pinned a {
  border: 1px solid var(--line);
  background: var(--bg);
}
.research-story.is-empty {
  color: var(--ink-faint);
  font-size: 0.85rem;
  padding: 0.35rem 0.45rem;
}
.research-sectors:has(.research-card[hidden]) .research-card:not([hidden]) {
  grid-column: 1 / -1;
}

.fund-legend .swatch.qqq { background: var(--ink-faint); }
.fund-chart .line.qqq { stroke: var(--ink-faint); stroke-dasharray: 5 4; }
.fund-chart .dot.qqq { fill: var(--ink-faint); }
.fund-chart__tip .swatch.qqq { background: var(--ink-faint); }
