/* ── Base — glassmorphism background (matching fund_holdings page) ── */
.th-page {
  background: radial-gradient(circle at top left, #eef2ff 0%, transparent 55%),
              radial-gradient(circle at bottom right, #e0e7ff 0%, transparent 55%);
  background-color: #f5f7fa;
  min-height: 100vh;
  color: #1a1a2e;
  font-size: 15px;
  position: relative;
  overflow-x: hidden;
}
.th-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  box-shadow: 0 4px 16px rgba(99,102,241,0.07), 0 1px 4px rgba(0,0,0,0.06);
}
.th-glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 4px 16px rgba(99,102,241,0.07), 0 1px 4px rgba(0,0,0,0.06);
}
.th-card-dark {
  background: rgba(8,15,34,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 28px rgba(15,23,42,0.22);
}
.th-card-dark .chart-label {
  color: rgba(255,255,255,0.62);
}
.th-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 860px; }
.th-table th { padding: 0.65rem 1rem; text-align: left; color: #64748b; font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid #e2e8f0; white-space: nowrap; position: sticky; top: 0; background: #fff; z-index: 2; box-shadow: 0 1px 0 #e2e8f0; }
.th-table td { padding: 0.7rem 1rem; border-bottom: 1px solid #f1f5f9; color: #1e293b; vertical-align: middle; }
.th-table tr:last-child td { border-bottom: none; }
.th-table tr:hover td { background: #f8fafc; }
/* Scroll hint — fades out right edge when table overflows */
.th-scroll-wrap { position: relative; }
.th-scroll-hint {
  pointer-events: none; position: absolute; top: 0; right: 0; bottom: 1rem;
  width: 48px; z-index: 3;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.95));
  transition: opacity .2s;
}
.th-scroll-wrap.scrolled-end .th-scroll-hint { opacity: 0; }
.badge-action { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 5px; font-size: 0.71rem; font-weight: 700; letter-spacing: 0.03em; }
.badge-INITIATED  { background: rgba(99,102,241,0.1);  color: #4338ca; }
.badge-ADDED      { background: rgba(22,163,74,0.1);   color: #15803d; }
.badge-REDUCED    { background: rgba(220,38,38,0.1);   color: #b91c1c; }
.badge-UNCHANGED  { background: rgba(100,116,139,0.1); color: #64748b; }
.change-pos { color: #15803d; font-weight: 600; }
.change-neg { color: #b91c1c; font-weight: 600; }
.lock-banner { background: rgba(99,102,241,0.07); border: 1px solid rgba(99,102,241,0.25); border-radius: 10px; padding: 1rem 1.4rem; margin-top: 0.75rem; text-align: center; }
.th-breadcrumb { font-size: 0.87rem; margin-bottom: 1rem; }
.th-breadcrumb a { color: #64748b; text-decoration: none; }
.th-breadcrumb a:hover { color: #1e293b; }
.th-breadcrumb .sep { margin: 0 0.4rem; color: #cbd5e1; }
.chart-label { font-size: 0.78rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.7rem; }
#chartCombined { width: 100%; height: 340px; }
.th-hero-meta { color:#64748b; font-size:0.95rem; margin:0 0 0.8rem; }
.th-summary-box {
  border-left: 4px solid var(--color-primary, #1e3a5f) !important;
  border-radius: 14px;
  padding: 1rem 1.1rem 1rem 1rem;
  color: #334155;
}
.th-summary-head {
  display:flex;
  align-items:center;
  gap:0.55rem;
  margin-bottom:0.45rem;
}
.th-summary-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary, #1e3a5f);
}
.th-summary-copy {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #334155;
}
.th-summary-note {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #64748b;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}
.seo-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  border-radius: 14px;
  padding: 1rem 1.05rem 1.05rem;
}
.seo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.seo-card-blue::before {
  background: linear-gradient(90deg, #2563eb, #93c5fd);
}
.seo-card-violet::before {
  background: linear-gradient(90deg, #7c3aed, #c4b5fd);
}
.seo-card-green::before {
  background: linear-gradient(90deg, #16a34a, #86efac);
}
.seo-card-gold::before {
  background: linear-gradient(90deg, #d97706, #fcd34d);
}
.seo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.seo-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #1e3a5f;
  background: linear-gradient(135deg, rgba(37,99,235,0.14), rgba(147,197,253,0.3));
  border: 1px solid rgba(37,99,235,0.14);
  flex-shrink: 0;
}
.seo-card-tag {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
}
.seo-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.seo-card-value {
  color: #1e293b;
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.seo-card-copy {
  color: #475569;
  font-size: 0.87rem;
  line-height: 1.62;
  margin: auto 0 0;
}
.seo-section-copy {
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.faq-item {
  border-radius: 12px;
  padding: 0.95rem 1rem;
}
.faq-item summary {
  font-size: 0.97rem;
  font-weight: 700;
  color: #1e293b;
}
.faq-item p {
  margin: 0.7rem 0 0;
  color: #475569;
  line-height: 1.7;
  font-size: 0.92rem;
}
.seo-links {
  display:flex;
  flex-wrap:wrap;
  gap:0.65rem;
  margin-top:0.8rem;
}
.seo-link-chip {
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  padding:0.55rem 0.9rem;
  border-radius:999px;
  text-decoration:none;
  color:#1e3a5f;
  font-weight:700;
  font-size:0.84rem;
  border:1px solid rgba(30,58,95,0.12);
  background:rgba(255,255,255,0.75);
}
.seo-link-chip:hover {
  color:#1d4ed8;
  background:#fff;
  text-decoration:none;
}

/* ── Section Tabs ── */
.page-tabs { display: flex; gap: 0.25rem; margin-bottom: 2rem; background: rgba(255,255,255,0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.5); border-radius: 12px; padding: 0.3rem; overflow-x: auto; scrollbar-width: none; box-shadow: 0 2px 10px rgba(99,102,241,0.08); }
.page-tabs::-webkit-scrollbar { display: none; }
.page-tab { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1.2rem; border-radius: 9px; font-size: 0.88rem; font-weight: 600; color: #64748b; text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s; flex-shrink: 0; }
.page-tab:hover { background: #f1f5f9; color: #1e293b; text-decoration: none; }

/* ── Position Intelligence Cards ── */
.intel-hdr { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.85rem; padding-bottom: 1rem; border-bottom: 1px solid #e2e8f0; }
.intel-hdr h2 { font-size: 1.25rem; font-weight: 800; color: #1e293b; margin: 0; }
.intel-hdr .ai-badge { font-size: 0.63rem; font-weight: 800; padding: 0.22rem 0.6rem; border-radius: 5px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25); color: #4338ca; letter-spacing: 0.05em; text-transform: uppercase; }
.intel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 1rem; }
.intel-card {
  position: relative; overflow: hidden;
  background: rgba(8,15,34,0.95);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 14px;
  padding: 1.3rem 1.4rem 1.15rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}
.intel-card:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,0,0,0.6); }
.intel-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 14px 14px 0 0; }
.ic-green::before  { background: linear-gradient(90deg, #16a34a, #86efac); }
.ic-red::before    { background: linear-gradient(90deg, #dc2626, #fca5a5); }
.ic-yellow::before { background: linear-gradient(90deg, #d97706, #fcd34d); }
.ic-blue::before   { background: linear-gradient(90deg, #2563eb, #93c5fd); }
.ic-purple::before { background: linear-gradient(90deg, #7c3aed, #c4b5fd); }
.ic-cyan::before   { background: linear-gradient(90deg, #0891b2, #67e8f9); }
.ic-orange::before { background: linear-gradient(90deg, #ea580c, #fdba74); }
.ic-label { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.38); margin-bottom: 0.55rem; }
.ic-value { font-size: 2.1rem; font-weight: 900; line-height: 1; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.ic-sub-label { font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.35); margin-bottom: 0.55rem; }
.ic-desc { font-size: 0.73rem; color: rgba(255,255,255,0.48); line-height: 1.55; margin: 0; }
.ic-bar-wrap { height: 6px; background: rgba(255,255,255,0.08); border-radius: 4px; margin-bottom: 0.55rem; overflow: hidden; }
.ic-bar-fill { height: 100%; border-radius: 4px; }

/* ── Collapsible summary ── */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.history-summary { display: flex; align-items: center; justify-content: space-between; padding: 0.2rem 0 1rem; }
.hist-toggle-arrow { display: inline-block; transition: transform 0.2s; font-style: normal; color: #94a3b8; }
details[open] .hist-toggle-arrow { transform: rotate(180deg); }
@media (max-width: 640px) {
  .seo-grid {
    grid-template-columns: 1fr;
  }
  .seo-card {
    min-height: auto;
  }
  .th-summary-box {
    padding: 0.9rem 0.95rem;
  }
  .th-summary-copy {
    font-size: 0.9rem;
  }
  .th-hero-meta {
    font-size: 0.9rem;
  }
  .faq-item summary {
    font-size: 0.92rem;
  }
}
