:root {
  --bg-0: #070a10;
  --bg-1: #0f1625;
  --bg-2: #152033;
  --panel: rgba(14, 21, 36, 0.72);
  --panel-strong: rgba(13, 19, 34, 0.88);
  --text: #f4f7ff;
  --muted: #9eb0d4;
  --line: rgba(150, 179, 245, 0.26);
  --accent: #4fc5ff;
  --accent-2: #17f6d1;
  --accent-3: #ff6f9f;
  --success: #37d7a2;
  --danger: #ff7f89;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-lg: 0 22px 44px rgba(3, 6, 14, 0.45);
  --shadow-md: 0 12px 26px rgba(5, 10, 20, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 8%, #23365d 0%, rgba(35, 54, 93, 0) 34%),
    radial-gradient(circle at 86% 16%, #193b55 0%, rgba(25, 59, 85, 0) 38%),
    radial-gradient(circle at 50% 100%, #182b48 0%, rgba(24, 43, 72, 0) 42%),
    linear-gradient(155deg, var(--bg-0), var(--bg-1) 42%, var(--bg-2));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: -10vh -10vw;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 85%, rgba(79, 197, 255, 0.08), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(23, 246, 209, 0.08), transparent 42%);
  filter: blur(16px);
  z-index: -1;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  z-index: 120;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 16px rgba(79, 197, 255, 0.52);
  transition: width 0.08s linear;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    180deg,
    rgba(7, 11, 20, 0.95) 0%,
    rgba(7, 11, 20, 0.79) 70%,
    rgba(7, 11, 20, 0.3) 100%
  );
  border-bottom: 1px solid rgba(130, 164, 232, 0.23);
}

.topbar-inner {
  width: min(1540px, 96vw);
  margin: 0 auto;
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(138, 172, 255, 0.35);
  background: rgba(7, 14, 24, 0.66);
  padding: 5px;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  text-transform: uppercase;
  color: #d4e3ff;
}

.symbol-meta {
  text-align: center;
}

.symbol-title {
  font-size: clamp(1.04rem, 1.2vw + 0.42rem, 1.52rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.22;
}

.symbol-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.meta-tags {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(117, 151, 216, 0.46);
  background: rgba(13, 22, 38, 0.72);
  color: #d9e7ff;
  padding: 4px 10px;
  font-size: 0.74rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
  margin-right: 2px;
}

.action-btn,
.link-btn {
  border-radius: 999px;
  border: 1px solid rgba(126, 160, 222, 0.43);
  background: rgba(13, 20, 35, 0.72);
  color: #e5efff;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1;
  padding: 10px 13px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.action-btn:hover,
.link-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(128, 214, 253, 0.82);
  background: rgba(17, 31, 51, 0.9);
}

.page {
  width: min(1540px, 96vw);
  margin: 18px auto 62px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
}

.main-column,
.side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.glass-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(138, 172, 255, 0.27);
  background:
    linear-gradient(145deg, rgba(15, 24, 41, 0.9), rgba(12, 20, 34, 0.72)),
    rgba(10, 16, 30, 0.75);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.hero {
  padding: 22px 22px 20px;
  position: relative;
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 197, 255, 0.24), rgba(79, 197, 255, 0));
  pointer-events: none;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero-symbol {
  margin: 0;
  font-size: clamp(1.85rem, 3.1vw, 3rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero-heading p {
  margin: 8px 0 0;
  color: #d8e6ff;
  font-size: 0.98rem;
  max-width: 600px;
}

.hero-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.kpi-card {
  border-radius: 14px;
  border: 1px solid rgba(140, 172, 241, 0.26);
  background: rgba(11, 19, 32, 0.72);
  padding: 12px 12px 11px;
}

.kpi-label {
  color: #adc0e4;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-value {
  margin-top: 6px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.kpi-value.positive {
  color: var(--success);
}

.kpi-value.negative {
  color: var(--danger);
}

.section-anchor-nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(132, 169, 239, 0.34);
  padding: 6px 12px;
  color: #dceaff;
  text-decoration: none;
  font-size: 0.78rem;
  background: rgba(13, 22, 37, 0.68);
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.subline {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.key-charts {
  padding: 20px;
}

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

.chart-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(138, 171, 235, 0.31);
  background: rgba(8, 15, 27, 0.72);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chart-card.key-hero {
  grid-row: span 2;
}

.chart-preview {
  position: relative;
  margin: 0;
  background: rgba(0, 0, 0, 0.32);
}

.chart-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.chart-preview button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(196, 220, 255, 0.6);
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.8);
  color: #f2f7ff;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.chart-body {
  padding: 12px 13px 14px;
}

.chart-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}

.chart-title {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.36;
}

.chart-tag {
  border-radius: 999px;
  border: 1px solid rgba(120, 215, 249, 0.48);
  color: #b7ebff;
  background: rgba(15, 44, 67, 0.45);
  font-size: 0.67rem;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chart-summary {
  margin: 7px 0 0;
  font-size: 0.79rem;
  color: #b4c6e8;
  line-height: 1.45;
}

.snapshot {
  padding: 18px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tab-btn {
  border-radius: 999px;
  border: 1px solid rgba(126, 160, 224, 0.35);
  background: rgba(12, 22, 38, 0.64);
  color: #d4e2fa;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.tab-btn.active {
  border-color: rgba(82, 203, 255, 0.85);
  background: linear-gradient(135deg, rgba(26, 57, 87, 0.9), rgba(14, 44, 66, 0.88));
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.all-group-block + .all-group-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(126, 160, 224, 0.22);
}

.group-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

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

.chart-card.tier-1 {
  grid-column: span 2;
}

.mobile-accordion {
  display: none;
}

.accordion-item {
  border: 1px solid rgba(129, 161, 223, 0.34);
  border-radius: 14px;
  background: rgba(11, 20, 35, 0.76);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: #e6efff;
  text-align: left;
  padding: 12px 14px;
  font: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-trigger span {
  color: #9ab2d8;
  font-size: 0.75rem;
}

.accordion-panel {
  display: none;
  padding: 0 12px 12px;
}

.accordion-item.active .accordion-panel {
  display: block;
}

.accordion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.accordion-grid .chart-card.hidden-mobile {
  display: none;
}

.accordion-item.expanded .chart-card.hidden-mobile {
  display: flex;
}

.show-more-btn {
  margin-top: 8px;
  border: 1px solid rgba(126, 160, 224, 0.45);
  background: rgba(14, 26, 44, 0.85);
  color: #dce9ff;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  padding: 8px 12px;
  cursor: pointer;
}

.overview-card {
  padding: 18px;
}

.summary-list {
  margin: 0;
  padding-left: 20px;
  color: #cfdcf4;
  line-height: 1.52;
  font-size: 0.9rem;
}

.summary-list li + li {
  margin-top: 8px;
}

.toc-card {
  padding: 18px;
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.toc-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(129, 165, 226, 0.25);
  text-decoration: none;
  color: #d8e7ff;
  font-size: 0.82rem;
  background: rgba(11, 20, 35, 0.68);
}

.toc-list a.active {
  border-color: rgba(95, 203, 253, 0.86);
  color: #f3fbff;
}

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

.fact-card {
  border-radius: 12px;
  border: 1px solid rgba(130, 163, 226, 0.28);
  background: rgba(11, 19, 34, 0.72);
  padding: 10px;
}

.fact-label {
  color: #a2b8dc;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fact-value {
  margin-top: 6px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.company {
  padding: 22px 24px;
}

.company-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.company-heading {
  margin: 0;
  font-size: 1.18rem;
}

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.company-tag {
  border: 1px solid rgba(119, 152, 214, 0.46);
  border-radius: 999px;
  padding: 4px 10px;
  color: #d7e5fd;
  font-size: 0.73rem;
  background: rgba(11, 20, 34, 0.64);
}

.company-expand {
  border-radius: 999px;
  border: 1px solid rgba(126, 160, 224, 0.45);
  background: rgba(10, 21, 36, 0.75);
  color: #e6f0ff;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.79rem;
  cursor: pointer;
}

.company-body {
  position: relative;
  max-height: 560px;
  overflow: hidden;
}

.company-body.expanded {
  max-height: none;
}

.company-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(to bottom, rgba(8, 13, 24, 0), rgba(8, 13, 24, 0.95));
  pointer-events: none;
}

.company-body.expanded::after {
  display: none;
}

.report-content {
  font-family: "Source Serif 4", Georgia, serif;
  max-width: 78ch;
  color: #e4eeff;
}

.report-section {
  margin-bottom: 28px;
}

.report-section h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.report-section p {
  margin: 0;
  font-size: 1.01rem;
  line-height: 1.8;
}

.report-section p + p {
  margin-top: 12px;
}

.report-metrics {
  margin: 10px 0 0;
  padding-left: 20px;
}

.report-metrics li + li {
  margin-top: 6px;
}

.report-quote {
  margin-top: 12px;
  border-left: 3px solid rgba(80, 206, 255, 0.75);
  padding: 6px 0 6px 12px;
  color: #cddfff;
  font-style: italic;
}

.holdings-table-wrap {
  margin-top: 10px;
  overflow: auto;
  border: 1px solid rgba(130, 165, 229, 0.26);
  border-radius: 12px;
}

.holdings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}

.holdings-table th,
.holdings-table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(130, 165, 229, 0.18);
  text-align: left;
  font-size: 0.83rem;
}

.holdings-table th {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: #bad0f5;
  background: rgba(14, 26, 44, 0.92);
  position: sticky;
  top: 0;
}

.holdings-table td {
  color: #deebff;
}

.risk-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(126, 158, 224, 0.23);
  color: #acc0e2;
  font-size: 0.78rem;
}

.risk-footer p {
  margin: 0;
}

.side-section {
  position: sticky;
  top: 90px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.footer {
  margin: 20px auto 40px;
  width: min(1540px, 96vw);
  border-top: 1px solid rgba(130, 163, 226, 0.22);
  padding-top: 16px;
  color: #a8bedf;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.footer p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 130;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-figure {
  position: relative;
  width: min(1320px, 95vw);
  margin: 0;
}

.lightbox-image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid rgba(137, 171, 233, 0.36);
  border-radius: 14px;
  background: rgba(5, 11, 22, 0.92);
}

.lightbox-caption {
  margin-top: 10px;
  color: #d6e4ff;
  font-size: 0.86rem;
}

.lightbox-btn {
  position: absolute;
  top: -10px;
  transform: translateY(-100%);
  border: 1px solid rgba(145, 177, 235, 0.46);
  border-radius: 999px;
  background: rgba(8, 16, 29, 0.9);
  color: #f1f7ff;
  padding: 8px 11px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.lightbox-close {
  right: 0;
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  left: 82px;
}

.to-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  border: 1px solid rgba(125, 159, 223, 0.52);
  border-radius: 999px;
  background: rgba(8, 17, 29, 0.86);
  color: #f0f6ff;
  font: inherit;
  font-size: 0.77rem;
  padding: 10px 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top-btn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.empty-state {
  border: 1px dashed rgba(136, 168, 231, 0.34);
  border-radius: 14px;
  color: #a7bcdf;
  font-size: 0.9rem;
  padding: 18px;
  text-align: center;
}

@media (max-width: 1199px) {
  .page {
    grid-template-columns: 1fr;
  }

  .side-column {
    order: -1;
  }

  .side-section {
    position: static;
  }

  .facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "meta meta";
    gap: 8px 12px;
    min-height: 0;
    padding: 10px 0 12px;
  }

  .brand-wrap {
    grid-area: brand;
  }

  .symbol-meta {
    grid-area: meta;
    text-align: left;
  }

  .meta-tags {
    justify-content: flex-start;
  }

  .top-actions {
    grid-area: actions;
  }

  .status-badge {
    display: none;
  }

  .hero-kpi {
    grid-template-columns: repeat(3, minmax(145px, 1fr));
    overflow: auto;
    padding-bottom: 2px;
  }

  .hero-kpi::-webkit-scrollbar {
    height: 7px;
  }

  .hero-kpi::-webkit-scrollbar-thumb {
    background: rgba(139, 170, 230, 0.4);
    border-radius: 999px;
  }

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

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .topbar-inner {
    width: min(1540px, 95vw);
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand-name {
    display: none;
  }

  .symbol-subtitle {
    font-size: 0.8rem;
  }

  .link-btn.share-link {
    display: none;
  }

  .action-btn.copy-btn,
  .link-btn.back-link {
    padding: 10px 12px;
    font-size: 0.76rem;
  }

  .page {
    width: min(1540px, 95vw);
    margin-top: 14px;
    gap: 14px;
  }

  .hero {
    padding: 16px;
  }

  .hero-symbol {
    font-size: 1.6rem;
  }

  .hero-heading p {
    font-size: 0.9rem;
  }

  .hero-kpi {
    margin-top: 14px;
  }

  .key-charts,
  .snapshot,
  .overview-card,
  .toc-card {
    padding: 14px;
  }

  .key-grid {
    grid-template-columns: 1fr;
  }

  .chart-card.key-hero {
    grid-row: auto;
  }

  .desktop-tabs {
    display: none;
  }

  .mobile-accordion {
    display: grid;
    gap: 10px;
  }

  .company {
    padding: 16px;
  }

  .company-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-body {
    max-height: 470px;
  }

  .report-content {
    max-width: none;
  }

  .report-section p {
    font-size: 1rem;
    line-height: 1.85;
  }

  .risk-footer {
    flex-direction: column;
  }

  .toc-card {
    display: none;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-btn {
    position: static;
    transform: none;
    margin-right: 8px;
    margin-bottom: 8px;
  }
}
