:root {
  --ink: #1c1a27;
  --muted: #777487;
  --quiet: #aaa7b5;
  --line: #e9e7ef;
  --soft: #f7f6fa;
  --brand: #0f4db0;
  --brand-dark: #0c3b84;
  --brand-soft: #e8f1ff;
  --purple: var(--brand);
  --purple-dark: var(--brand-dark);
  --lavender: var(--brand-soft);
  --green: #24886a;
  --red: #b65b62;
  --gold: #c79d58;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
}
[hidden] {
  display: none !important;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 74px;
  justify-content: space-between;
  padding: 0 42px;
}
.brand { align-items: center; display: flex; font: 800 13px/1 "Manrope"; gap: 10px; letter-spacing: 1.7px; }
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 56px;
}
.brand-logo { display: block; height: 100%; width: 100%; object-fit: contain; }
.main-nav { display: flex; gap: 32px; margin-left: 76px; }
.main-nav a { color: var(--muted); font-size: 13px; font-weight: 700; padding: 28px 0 25px; }
.main-nav a.active { border-bottom: 2px solid var(--purple); color: var(--ink); }
.button {
  align-items: center; background: var(--purple); border: 1px solid var(--purple); border-radius: 5px;
  color: white; display: inline-flex; font-size: 13px; font-weight: 700; justify-content: center; padding: 14px 20px;
  transition: .18s ease;
}
.button:hover { background: var(--purple-dark); border-color: var(--purple-dark); transform: translateY(-1px); }
.button-small { padding: 10px 15px; }
.button-wide { border: 0; cursor: pointer; margin-top: 8px; width: 100%; }
.button-ghost { background: #fff; color: var(--purple); }
.button-ghost:hover { color: #fff; }
.text-link { color: var(--purple); font-size: 13px; font-weight: 700; }
.text-link span { display: inline-block; margin-left: 4px; transition: transform .16s ease; }
.text-link:hover span { transform: translate(2px, -2px); }

.year-filters { display: flex; gap: 8px; }
.year-btn { 
  background: #fff; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); 
  cursor: pointer; font: 700 11px "DM Sans"; padding: 8px 12px; transition: .18s ease;
}
.year-btn:hover { border-color: var(--purple); color: var(--purple); }
.year-btn.active { background: var(--purple); border-color: var(--purple); color: white; }

.hero { display: grid; gap: 62px; grid-template-columns: .9fr 1.1fr; padding: 104px 0 92px; }
.hero-copy { padding-top: 26px; }
.eyebrow, .label, .quiet-label { color: var(--purple); font: 800 10px/1.4 "Manrope"; letter-spacing: 1.65px; margin: 0; }
h1, h2, h3 { font-family: "Manrope", Arial, sans-serif; letter-spacing: -.65px; margin: 0; }
h1 { font-size: 55px; line-height: 1.04; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 16px; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 23px 0 31px; max-width: 570px; }
.hero-actions { align-items: center; display: flex; gap: 22px; }
.trust-strip { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 11px; gap: 18px; margin-top: 72px; }
.trust-strip i { background: var(--brand); border-radius: 50%; display: inline-block; height: 5px; margin: 0 7px 2px 0; width: 5px; }

.performance-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 45px rgba(46, 40, 69, .07); padding: 27px 28px 20px; }
.panel-heading, .section-heading { align-items: flex-end; display: flex; justify-content: space-between; }
.panel-heading h2 { font-size: 22px; margin-top: 7px; }
.range-pill { background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); font: 700 11px "DM Sans"; padding: 7px 11px; }
.range-pill span { margin-left: 6px; }
.chart-legend { color: var(--muted); display: flex; font-size: 10px; gap: 17px; margin-top: 20px; }
.chart-legend b { border-radius: 50%; display: inline-block; height: 6px; margin: 0 6px 1px 0; width: 6px; }
.purple-dot { background: var(--purple); }
.gray-dot { background: #bbb9c4; }
.chart-wrap { margin-top: 13px; position: relative; }
.chart-grid { color: var(--quiet); display: flex; flex-direction: column; font-size: 9px; height: 210px; justify-content: space-between; left: 0; position: absolute; top: 11px; width: 100%; }
.chart-grid span { border-bottom: 1px dashed #eeedf2; padding-bottom: 3px; }
.hero-chart { height: 238px; margin-left: 0; overflow: visible; position: relative; width: calc(100% - 36px); z-index: 1; }
.portfolio-line,
.benchmark-line {
  fill: none;
  stroke-linecap: round;
  stroke-width: 3;
}

.portfolio-line {
  stroke: var(--purple);
}

.benchmark-line {
  stroke: #bbb9c4;
}
.area-line { fill: url(#area); }
.chart-years { color: var(--quiet); display: flex; font-size: 9px; justify-content: space-between; margin: -6px 2px 0 28px; }
.metric-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding-top: 18px; }
.metric-grid div { border-right: 1px solid var(--line); padding-left: 17px; }
.metric-grid div:first-child { padding-left: 0; }
.metric-grid div:last-child { border: 0; }
.metric-grid span, .stat-stack span { color: var(--muted); display: block; font-size: 11px; margin-bottom: 6px; }
.metric-grid strong, .stat-stack strong { color: var(--green); font-family: "Manrope"; font-size: 21px; }

.section { border-top: 1px solid var(--line); padding: 72px 0; }
.section-heading { margin-bottom: 27px; }
.section-heading h2 { margin-top: 8px; }
.holding-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, 1fr); }
.holding-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; transition: .16s ease; }
.holding-card:hover { border-color: #c7dbf8; box-shadow: 0 10px 22px rgba(15, 77, 176, .08); transform: translateY(-2px); }
.holding-top, .holding-data { align-items: center; display: flex; justify-content: space-between; }
.ticker { align-items: center; background: var(--brand-soft); border-radius: 50%; color: var(--brand); display: flex; font: 800 9px "Manrope"; height: 35px; justify-content: center; width: 35px; }
.asset-tag { color: var(--brand); font: 800 9px/1.2 "Manrope"; letter-spacing: 1.1px; }
.holding-card h3 { font-size: 16px; margin: 18px 0; }
.holding-data { color: var(--muted); font-size: 11px; }
.holding-data b { color: var(--ink); margin-left: 4px; }
.gain { color: var(--green) !important; font-weight: 700; }
.loss { color: var(--red) !important; font-weight: 700; }

.insight-banner { background: #f7f5fc; border-radius: 10px; display: grid; gap: 50px; grid-template-columns: 1fr 360px; margin-bottom: 82px; padding: 38px 42px; }
.insight-copy h2 { font-size: 27px; margin: 10px 0; }
.insight-copy p:not(.eyebrow) { color: var(--muted); margin: 0 0 19px; }
.ai-note { background: #fff; border: 1px solid #e5e0f1; border-radius: 7px; padding: 18px; }
.ai-note p { font: 700 15px/1.45 "Manrope"; margin: 13px 0; }
.ai-note small { color: var(--muted); }
.ai-badge { color: var(--purple); font: 800 9px "Manrope"; letter-spacing: 1.3px; }
.unlock-section { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 50px; grid-template-columns: 1fr 370px; padding: 76px 0; }
.unlock-section h2 { font-size: 35px; margin-top: 10px; }
.unlock-side p { color: var(--muted); line-height: 1.6; margin: 0 0 19px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 11px; justify-content: space-between; padding: 23px 0 28px; }
.site-footer span:first-child { color: var(--ink); font: 800 11px "Manrope"; letter-spacing: 1.5px; }

.page-main { padding: 74px 0 20px; }
.page-heading { max-width: 680px; }
.page-heading h1 { font-size: 45px; margin: 13px 0; }
.page-heading p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }
.portfolio-overview { display: grid; gap: 16px; grid-template-columns: 1fr 190px; margin: 42px 0 76px; }
.compact-panel { box-shadow: none; }
.stat-stack { display: flex; flex-direction: column; gap: 1px; }
.stat-stack div { background: var(--soft); border-radius: 6px; flex: 1; padding: 21px 17px; }
.muted-strong { color: var(--ink) !important; font-size: 18px !important; }
.allocation-layout { align-items: center; display: flex; gap: 70px; }
.donut { align-items: center; background: conic-gradient(var(--purple) 0 52.6%, #403653 52.6% 76%, var(--gold) 76% 91.1%, #d8d6df 91.1% 100%); border-radius: 50%; display: flex; height: 210px; justify-content: center; width: 210px; }
.donut-center { align-items: center; background: #fff; border-radius: 50%; display: flex; flex-direction: column; height: 142px; justify-content: center; width: 142px; }
.donut-center strong { font: 800 25px "Manrope"; }
.donut-center span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.allocation-list { min-width: 360px; }
.allocation-list div { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 12px; padding: 15px 0; }
.allocation-list span { color: var(--muted); flex: 1; }
.swatch { border-radius: 50%; height: 9px; width: 9px; }
.swatch-purple { background: var(--purple); }.swatch-dark { background: #403653; }.swatch-gold { background: var(--gold); }.swatch-gray { background: #d8d6df; }
.quiet-label { color: var(--quiet); }
.table-shell { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table { border-collapse: collapse; width: 100%; }
th { background: var(--soft); color: var(--muted); font-size: 10px; letter-spacing: .8px; padding: 13px 17px; text-align: left; text-transform: uppercase; }
td { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 15px 17px; }
td b { color: var(--ink); display: block; }
td small { color: var(--quiet); display: block; font-size: 10px; margin-top: 3px; }
td a { color: var(--purple); font-weight: 700; }
.locked-rows { padding-bottom: 22px; position: relative; }
.blur-row { border-top: 1px solid var(--line); display: grid; filter: blur(4px); gap: 40px; grid-template-columns: 2fr 1.3fr 1fr 1fr; opacity: .45; padding: 17px; }
.blur-row span { background: #ccc8d4; border-radius: 6px; height: 12px; }
.lock-message { align-items: center; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 7px; bottom: 11px; display: flex; gap: 17px; left: 18%; padding: 13px 16px; position: absolute; width: 64%; }
.lock-message span { color: var(--muted); flex: 1; font-size: 11px; }

.featured-note { border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 28px; grid-template-columns: 1fr 360px; margin: 42px 0 76px; padding: 30px; }
.note-meta { color: var(--quiet); display: flex; font-size: 10px; gap: 15px; letter-spacing: .8px; }
.note-main h2 { font-size: 30px; margin: 18px 0 9px; }
.note-intro, .note-section p { color: var(--muted); line-height: 1.65; }
.note-intro { font-size: 16px; }
.note-section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.note-section h3 { font-size: 14px; }
.ai-card { align-self: start; background: var(--lavender); border-radius: 7px; padding: 21px; }
.ai-card-header { align-items: center; display: flex; justify-content: space-between; }
.ai-card-header small { color: var(--quiet); font-size: 9px; }
.ai-card h3 { font-size: 20px; margin: 27px 0 12px; }
.ai-card p, .ai-card li { color: #655f72; font-size: 13px; line-height: 1.55; }
.ai-card ul { border-top: 1px solid #ddd7f4; list-style: none; margin: 20px 0 0; padding: 13px 0 0; }
.ai-card li { padding: 5px 0; }
.ai-card li::before { color: var(--brand); content: "•"; margin-right: 8px; }
.journal-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.journal-row { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 18px; transition: background .15s ease; }
.journal-row:hover { background: var(--soft); }
.journal-row:last-child { border: 0; }
.journal-row h3 { font-size: 15px; margin-top: 7px; }
.journal-row > span { color: var(--quiet); font-size: 10px; letter-spacing: .5px; }
.journal-locked { background: var(--soft); }

.subscribe-main { display: grid; gap: 70px; grid-template-columns: 1fr 390px; padding: 94px 0 20px; }
.subscribe-copy { padding-top: 28px; }
.subscribe-copy h1 { font-size: 52px; margin: 14px 0 0; }
.proof-line { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 12px; gap: 19px; margin-top: 54px; padding-top: 17px; }
.proof-line span::before { color: var(--brand); content: "✓"; font-weight: 700; margin-right: 7px; }
.pricing-card { border: 1px solid #dde8ff; border-radius: 10px; box-shadow: 0 20px 48px rgba(15, 77, 176, .11); padding: 28px; }
.price { align-items: baseline; display: flex; gap: 7px; margin-top: 15px; }
.price strong { font: 800 42px "Manrope"; letter-spacing: -2px; }
.price span, .pricing-card p, .pricing-card small { color: var(--muted); }
.pricing-card ul { border-top: 1px solid var(--line); list-style: none; margin: 22px 0; padding: 18px 0 0; }
.pricing-card li { color: #5c5869; font-size: 13px; padding: 7px 0; }
.pricing-card li::before { color: var(--brand); content: "✓"; font-weight: 800; margin-right: 9px; }
.pricing-card small { display: block; font-size: 10px; margin-top: 14px; text-align: center; }
.privacy-callout { background: var(--soft); border-radius: 8px; grid-column: 1 / -1; margin: 36px 0 74px; padding: 30px; }
.privacy-callout h2 { font-size: 24px; margin: 10px 0 5px; }
.privacy-callout p:not(.eyebrow) { color: var(--muted); line-height: 1.6; margin: 0; max-width: 720px; }

@media (max-width: 900px) {
  .main-nav { gap: 18px; margin-left: 0; }
  .hero, .portfolio-overview, .featured-note, .subscribe-main, .unlock-section, .insight-banner { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  h1, .subscribe-copy h1 { font-size: 43px; }
  .holding-grid { grid-template-columns: 1fr; }
  .trust-strip { margin-top: 42px; }
}

.admin-body { background: #fbfafc; min-height: 100vh; padding-left: 218px; }
.admin-sidebar { background: #fff; border-right: 1px solid var(--line); bottom: 0; display: flex; flex-direction: column; left: 0; padding: 22px 17px; position: fixed; top: 0; width: 218px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 48px; }
.admin-nav a { border-radius: 5px; color: var(--muted); font-size: 13px; font-weight: 700; padding: 10px; }
.admin-nav a:hover, .admin-nav a.active { background: var(--lavender); color: var(--purple); }
.admin-profile { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 9px; margin-top: auto; padding-top: 16px; }
.profile-dot { align-items: center; background: var(--lavender); border-radius: 50%; color: var(--purple); display: flex; font-size: 11px; font-weight: 800; height: 31px; justify-content: center; width: 31px; }
.admin-profile b, .admin-profile small { display: block; }
.admin-profile b { font-size: 12px; }.admin-profile small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.admin-main { margin: 0 auto; max-width: 1210px; padding: 48px 42px 76px; }
.admin-header, .admin-card-heading { align-items: center; display: flex; justify-content: space-between; }
.admin-header h1 { font-size: 35px; margin-top: 9px; }
.admin-header-actions { align-items: center; display: flex; gap: 12px; }
.admin-summary { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 30px 0 20px; }
.admin-summary div { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 16px; }
.admin-summary span, .admin-summary strong { display: block; }.admin-summary span { color: var(--muted); font-size: 11px; margin-bottom: 7px; }.admin-summary strong { font: 700 15px "Manrope"; }
.admin-layout { display: grid; gap: 20px; grid-template-columns: 1.25fr .75fr; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.admin-card-heading h2, .rules-card h2 { font-size: 22px; margin-top: 7px; }
.private-pill, .status-pill { background: var(--brand-soft); border-radius: 20px; color: var(--brand); font: 800 9px "Manrope"; letter-spacing: .9px; padding: 6px 9px; }
.activity-form { margin-top: 24px; }
.activity-form label { display: block; margin-bottom: 15px; }
.activity-form label > span { color: var(--muted); display: block; font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.activity-form label small { color: var(--quiet); font-size: 10px; font-weight: 500; margin-left: 4px; }
.activity-form input, .activity-form select, .activity-form textarea { background: #fff; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font: 13px "DM Sans"; outline: none; padding: 11px; width: 100%; }
.activity-form input:focus, .activity-form select:focus, .activity-form textarea:focus { border-color: #b9a9ec; box-shadow: 0 0 0 3px var(--lavender); }
.activity-form textarea { min-height: 76px; resize: vertical; }
.form-grid { display: grid; gap: 13px; grid-template-columns: 1fr 1fr; }
.field-hint { background: var(--soft); border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; min-height: 40px; padding: 10px 11px; }
.hidden-label { color: transparent !important; user-select: none; }
.selected-instrument, .instrument-results { margin-bottom: 14px; }
.selected-instrument-empty, .search-empty { background: var(--soft); border: 1px dashed #d8d2eb; border-radius: 8px; color: var(--muted); font-size: 12px; padding: 12px; }
.selected-instrument-card { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; display: flex; gap: 12px; padding: 12px; }
.selected-instrument-card span, .selected-instrument-card small { display: block; }
.selected-instrument-card span { color: var(--brand); font: 800 9px "Manrope"; letter-spacing: 1px; text-transform: uppercase; }
.selected-instrument-card strong { display: block; font: 700 15px "Manrope"; margin-top: 3px; }
.selected-instrument-card small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.instrument-results { display: grid; gap: 9px; grid-template-columns: 1fr; max-height: 320px; overflow: auto; padding-right: 2px; }
.instrument-result { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; display: flex; gap: 12px; padding: 10px 12px; text-align: left; transition: .15s ease; }
.instrument-result:hover, .instrument-result.selected { border-color: #b7d4f7; box-shadow: 0 8px 18px rgba(15, 77, 176, .08); transform: translateY(-1px); }
.instrument-result-copy strong { display: block; font: 700 14px "Manrope"; }
.instrument-result-copy small { color: var(--muted); display: block; font-size: 11px; margin-top: 3px; }
.instrument-thumb { border-radius: 8px; height: 32px; object-fit: cover; width: 32px; }
.instrument-thumb-fallback { align-items: center; background: var(--brand-soft); color: var(--brand); display: flex; font: 800 10px "Manrope"; justify-content: center; letter-spacing: .8px; text-transform: uppercase; }
.markdown-workbench { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.markdown-editor, .markdown-preview-panel { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.markdown-preview-head { align-items: center; background: var(--soft); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 11px 14px; }
.markdown-preview-head span { font: 700 12px "Manrope"; }
.markdown-preview-head small { color: var(--quiet); font-size: 10px; }
.markdown-source { border: 0; min-height: 250px; padding: 14px; resize: vertical; width: 100%; }
.markdown-preview-body { min-height: 250px; padding: 14px; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: 0 0 12px; }
.markdown-body p { color: var(--muted); line-height: 1.65; margin: 0 0 12px; }
.markdown-body ul { margin: 0 0 12px 20px; padding: 0; }
.markdown-body li { color: var(--muted); line-height: 1.65; margin: 0 0 6px; }
.markdown-body a { color: var(--purple); text-decoration: underline; }
.markdown-empty { color: var(--quiet); font-size: 12px; }
.form-help { background: var(--soft); border-radius: 5px; color: var(--muted); display: flex; flex-direction: column; font-size: 11px; gap: 4px; margin: 5px 0 14px; padding: 11px; }
.form-help b { color: var(--ink); }
.form-status { font-size: 12px; margin: 11px 0 0; min-height: 16px; }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--red); }
.rules-card { align-self: start; }
.rule-row { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 11px; padding: 15px 0; }
.rules-card h2 { margin-bottom: 19px; }
.rule-icon { align-items: center; border-radius: 50%; display: flex; flex: 0 0 auto; font-weight: 800; height: 26px; justify-content: center; width: 26px; }
.rule-icon.yes { background: #e7f6f0; color: var(--green); }.rule-icon.no { background: #f1eff4; color: #858190; }
.rule-row b, .rule-row small { display: block; }.rule-row b { font-size: 13px; }.rule-row small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.recent-card { margin-top: 20px; padding: 0; overflow: hidden; }
.recent-card .admin-card-heading { padding: 20px 22px; }
.recent-card td { background: #fff; }
.recent-card .status-pill { background: #e7f6f0; color: var(--green); display: inline-block; }
.password-card { margin-top: 20px; }
.auth-screen { align-items: center; background: linear-gradient(180deg, #fff, #f7f4ff); display: flex; justify-content: center; min-height: 100vh; padding: 36px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(71, 59, 111, .08); max-width: 480px; padding: 30px; width: 100%; }
.auth-card h1 { font-size: 32px; margin-top: 10px; }
.auth-lead { color: var(--muted); line-height: 1.6; margin: 14px 0 22px; }
.auth-form { display: grid; gap: 14px; }
.auth-form input { background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: 13px "DM Sans"; outline: none; padding: 11px; width: 100%; }
.auth-defaults { color: var(--quiet); font-size: 11px; margin-top: 16px; }
.password-form { margin-top: 18px; }

@media (max-width: 900px) {
  .admin-body { padding-left: 0; }
  .admin-sidebar { display: none; }
  .admin-layout, .admin-summary { grid-template-columns: 1fr; }
}

.portfolio-page-heading { align-items: end; display: flex; justify-content: space-between; max-width: none; }
.demo-pill { background: #f5efd9; border-radius: 18px; color: #977429; display: inline-block; font-size: 9px; letter-spacing: .8px; margin-left: 8px; padding: 4px 7px; vertical-align: 1px; }
.source-date { border-left: 1px solid var(--line); flex: 0 0 auto; padding-left: 19px; }
.source-date span, .source-date strong { display: block; }
.source-date span { color: var(--quiet); font: 800 9px "Manrope"; letter-spacing: 1px; }
.source-date strong { font: 700 16px "Manrope"; margin-top: 7px; }
.portfolio-loading, .portfolio-error { background: var(--soft); border: 1px solid var(--line); border-radius: 7px; color: var(--muted); margin: 42px 0; padding: 18px; }
.portfolio-error b, .portfolio-error span { display: block; }
.portfolio-error span { font-size: 13px; margin-top: 6px; }
.portfolio-error code { color: var(--purple); }
.portfolio-chart-wrap { margin-top: 16px; }
.geography-grid { display: grid; gap: 12px; grid-template-columns: repeat(5, 1fr); }
.geography-card { border: 1px solid var(--line); border-radius: 7px; padding: 16px; }
.geography-top { align-items: center; display: flex; justify-content: space-between; }
.geography-top span { color: var(--muted); font-size: 12px; font-weight: 700; }
.geography-top b { font: 800 18px "Manrope"; }
.allocation-track { background: var(--soft); border-radius: 4px; height: 5px; margin: 18px 0 10px; overflow: hidden; }
.allocation-track i { background: var(--purple); border-radius: 4px; display: block; height: 100%; }
.geography-card small { color: var(--quiet); font-size: 10px; }
.holdings-heading { align-items: center; }
.holdings-controls { align-items: center; display: flex; gap: 17px; }
.holdings-controls label span { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.holdings-controls select { background: #fff; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 700 11px "DM Sans"; padding: 9px 11px; }
.muted-cell { color: var(--quiet); }
.privacy-note { color: var(--quiet); font-size: 11px; margin: 13px 0 0; }

@media (max-width: 900px) {
  .portfolio-page-heading { align-items: start; flex-direction: column; gap: 20px; }
  .source-date { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
  .geography-grid { grid-template-columns: repeat(2, 1fr); }
  .allocation-layout { align-items: start; flex-direction: column; gap: 30px; }
  .allocation-list { min-width: min(100%, 360px); width: 100%; }
  .holdings-heading { align-items: start; flex-direction: column; gap: 18px; }
  .holdings-controls { align-items: start; flex-direction: column; gap: 9px; }
  .responsive-table { overflow-x: auto; }
  .responsive-table table { min-width: 760px; }
}
.chart-clickable {
  cursor: pointer;
}

.chart-clickable:hover {
  opacity: 0.96;
}
.range-dropdown {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font: 700 11px "DM Sans";
  padding: 8px 12px;
  cursor: pointer;
}

.article-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  margin-bottom: 40px;
}

#articleTitle {
  font-size: 52px;
  line-height: 1.1;
}

#articleSummary {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

#articleContent {
  font-size: 17px;
}

#articleContent h2 {
  font-size: 32px;
  margin-top: 48px;
}

#articleContent p {
  color: #4b4958;
}

.article-hero {
  max-width: 860px;
  margin: 0 auto 56px;
}

.article-hero h1 {
  font-size: 58px;
  line-height: 1.05;
  margin: 12px 0 18px;
}

.article-summary {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
  max-width: 720px;
}

.article-meta {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 18px;
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: .8px;
}

.article-shell {
  max-width: 860px;
  margin: 0 auto;
}

#articleContent {
  font-size: 17px;
  line-height: 1.9;
}

#articleContent p {
  color: #575466;
  margin-bottom: 1.5rem;
}

#articleContent h2 {
  font-size: 34px;
  margin-top: 4rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

#articleContent h3 {
  font-size: 24px;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}

#articleContent blockquote {
  border-left: 3px solid var(--brand);
  margin: 2rem 0;
  padding-left: 1.5rem;
  color: var(--ink);
  font-size: 20px;
  font-family: "Manrope";
}

#articleContent ul,
#articleContent ol {
  color: #575466;
  line-height: 1.9;
}

#articleContent hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

#articleContent pre {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  overflow-x: auto;
}

#articleContent strong {
  color: var(--ink);
}