/* ============================================================
   SOUTH HILL FUND — ITHACA COLLEGE
   Global Stylesheet
   ============================================================ */

/* Fonts are loaded via <link> in each page head (preconnect + non-blocking) */

:root {
  --bomber-blue:      #003DA5;
  --bomber-blue-dark: #002272;
  --bomber-blue-mid:  #004CC5;
  --ic-gold:          #F2A900;
  --ic-gold-dark:     #C88A00;
  --white:            #FFFFFF;
  --off-white:        #F6F8FC;
  --light-gray:       #EDF1F7;
  --border-color:     #D8DFE9;
  --mid-gray:         #7A8A9E;
  --dark:             #0D1B2A;
  --text-primary:     #1A2538;
  --text-secondary:   #4A5A6E;
  --success:          #00954A;
  --danger:           #D32F2F;
  --warning:          #F59E0B;
  --card-shadow:      0 2px 12px rgba(0,45,120,0.10);
  --card-shadow-hover:0 8px 32px rgba(0,45,120,0.18);
  --radius-sm:        4px;
  --radius:           8px;
  --radius-lg:        14px;
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'Inter', -apple-system, sans-serif;
  --transition:       0.22s ease;
  --nav-h:            68px;
  --ticker-h:         40px;
}

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

/* Safety net: nothing may push the document wider than the viewport. Without
   this, one oversized child creates a sideways scroll and the nav/footer (which
   are 100% of the *visible* width) leave a white gutter when you swipe.
   Individual wide things (tables, tab strips) scroll inside their own wrapper. */
html, body { max-width: 100%; overflow-x: clip; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── TICKER ───────────────────────────────────────────── */
#ticker-bar {
  background: var(--bomber-blue-dark);
  height: var(--ticker-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
}
#ticker-bar .ticker-track {
  display: flex;
  gap: 48px;
  animation: tickerScroll 35s linear infinite;
  white-space: nowrap;
}
#ticker-bar .ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #b0c4e8;
  flex-shrink: 0;
}
#ticker-bar .ticker-item .t-symbol { color: #fff; font-weight: 700; letter-spacing: .5px; }
#ticker-bar .ticker-item .t-price  { color: #fff; }
#ticker-bar .ticker-item .t-chg.up   { color: #4ade80; }
#ticker-bar .ticker-item .t-chg.down { color: #f87171; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── NAVIGATION ───────────────────────────────────────── */
#main-nav {
  background: var(--bomber-blue);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  position: sticky;
  top: var(--ticker-h);
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.22);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 42px;
  height: 42px;
  background: var(--ic-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bomber-blue-dark);
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .site-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.nav-logo-text .site-sub {
  font-size: 12px;
  font-weight: 400;
  color: #b7cbe9;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > .nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #cdddf4;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  letter-spacing: .2px;
}
.nav-links > li > a:hover,
.nav-links > li > .nav-btn:hover,
.nav-links > li > a.active { color: #fff; background: rgba(255,255,255,0.12); }
.nav-links .nav-caret { font-size: 10px; transition: transform var(--transition); }
.nav-links > li:hover .nav-caret { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-hover);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  border: 1px solid var(--border-color);
  z-index: 200;
  /* Extend the click target upward so there's no dead zone between
     the nav button and the panel */
  margin-top: 6px;
}
/* Invisible bridge fills the gap so mousemove from button→panel stays hot */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
/* The last nav item (About) sits at the right edge — anchor its dropdown
   to the right so it doesn't overflow off-screen. */
.nav-links > li:last-child .nav-dropdown {
  left: auto;
  right: 0;
}
.nav-links > li.dd-open .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--text-primary);
  transition: var(--transition);
}
.nav-dropdown a:hover { background: var(--off-white); color: var(--bomber-blue); }
.nav-dropdown .dd-divider { height: 1px; background: var(--border-color); margin: 6px 0; }
.nav-dropdown .dd-header {
  padding: 8px 18px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mid-gray);
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,28,87,0.88) 45%, rgba(0,45,140,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 80px 64px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ic-gold);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 17px;
  color: #aac4e8;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--ic-gold);
  color: var(--bomber-blue-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: .3px;
}
.btn-primary:hover { background: var(--ic-gold-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── SECTION SHARED ───────────────────────────────────── */
section { padding: 72px 0; }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bomber-blue);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
/* Section-title highlight spans inherit the heading color (single-color titles
   site-wide) instead of the old two-tone blue accent. */
.section-title span { color: inherit; }
.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 10px;
  max-width: 620px;
}

/* ── STATS BAR ────────────────────────────────────────── */
.stats-bar {
  background: var(--bomber-blue-dark);
  padding: 28px 0;
}
.stats-bar .section-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item .stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.stat-item .stat-label {
  font-size: 12px;
  font-weight: 500;
  color: #8ab2dc;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.stat-item .stat-chg { font-size: 13px; color: #4ade80; margin-top: 2px; }

/* ── CARDS ────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.card-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-icon {
  width: 44px; height: 44px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.card-icon.blue { background: rgba(0,61,165,0.1); }
.card-icon.gold { background: rgba(242,169,0,0.12); }
.card-icon.green { background: rgba(0,149,74,0.1); }

/* Fund monogram tiles: serif initials on the tinted squares (replaces emojis) */
.fund-mono {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 15px;
}
.fund-mono.blue  { color: var(--bomber-blue); }
.fund-mono.green { color: var(--success); }
.fund-mono.gold  { color: var(--ic-gold-dark); }
.afc-icon .fund-mono { font-size: 18px; }
.card-icon .fund-mono.sm, .afc-icon .fund-mono.sm { font-size: 12.5px; letter-spacing: .3px; }

/* Branded square bullet for resource/highlight lists (replaces emojis) */
.sq-bullet {
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--ic-gold);
  flex-shrink: 0;
  margin-top: 6px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
}
.card-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 4px;
}
.card-tag.blue { background: rgba(0,61,165,0.1); color: var(--bomber-blue); }
.card-tag.gold { background: rgba(242,169,0,0.15); color: #a07200; }
.card-tag.green { background: rgba(0,149,74,0.1); color: #006830; }
.card-body { padding: 20px 24px 24px; }
.card-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* Fund card metrics */
.fund-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.fund-metric .m-label { font-size: 11px; font-weight: 600; color: var(--mid-gray); text-transform: uppercase; letter-spacing: .8px; }
.fund-metric .m-value { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-top: 2px; }
.fund-metric .m-value.up   { color: var(--success); }
.fund-metric .m-value.down { color: var(--danger); }
.card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bomber-blue);
  transition: var(--transition);
}
.card-link:hover { gap: 10px; }

/* ── TABLES ───────────────────────────────────────────── */
.data-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-color); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  background: var(--off-white);
  color: var(--mid-gray);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f3f8;
  color: var(--text-primary);
}

/* Funds dashboard: wider container + compact table so all holdings
   columns fit on screen without horizontal scrolling. */
.page-funds .section-inner { max-width: 1480px; }
.page-funds .data-table { font-size: 12.5px; }
.page-funds .data-table th { padding: 11px 10px; letter-spacing: .4px; }
.page-funds .data-table td { padding: 11px 10px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbff; }
.data-table td.symbol { font-weight: 700; color: var(--bomber-blue); }
.data-table td.up   { color: var(--success); font-weight: 600; }
.data-table td.down { color: var(--danger);  font-weight: 600; }
.data-table td.right,
.data-table th.right { text-align: right; }
/* Event status badges (econ + earnings calendars).
   Whether an event has happened yet is carried by the DOT as well as the hue —
   hollow = still scheduled, filled = data is in — so the distinction survives
   greyscale printing, projector washout, and color-blind viewers. */
.td-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.td-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: none;
}
.td-badge.upcoming::before { box-shadow: inset 0 0 0 1.5px currentColor; }  /* hollow — not yet reported */
.td-badge.reported::before,
.td-badge.beat::before,
.td-badge.miss::before     { background: currentColor; }                    /* filled — result is in */

.td-badge.upcoming { background: #eef2f7; color: #4a5568; }  /* slate — scheduled, no data */
.td-badge.reported { background: #dbeafe; color: #1d4ed8; }  /* blue  — printed, no beat/miss call */
.td-badge.beat     { background: #d1fae5; color: #065f46; }
.td-badge.miss     { background: #fee2e2; color: #991b1b; }

/* Sortable holdings headers */
.data-table th.sortable { cursor: pointer; user-select: none; transition: color .12s, background .12s; }
.data-table th.sortable:hover { color: var(--bomber-blue); background: #eef2fb; }
.data-table th.sortable::after { content: '↕'; opacity: .3; margin-left: 5px; font-size: 9px; }
.data-table th.sortable.sort-asc::after  { content: '↑'; opacity: 1; }
.data-table th.sortable.sort-desc::after { content: '↓'; opacity: 1; }

/* Analyst-coverage link (replaces the old rating badge) */
.rating-link { color: var(--bomber-blue); font-weight: 600; text-decoration: none; white-space: nowrap; }
.rating-link:hover { text-decoration: underline; }

/* Performance returns strip: 1-day (live) + YTD / 1Y / 3Y / Since Inception */
.perf-returns {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin: 4px 0 20px;
}
.pr-item {
  border: 1px solid var(--border-color); border-radius: 10px;
  padding: 10px 12px; background: var(--off-white);
}
.pr-label { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--mid-gray); }
.pr-label .pr-live { color: var(--success); }
.pr-val   { display: block; font-size: 18px; font-weight: 700; margin-top: 3px; line-height: 1.1; }
.pr-val.up   { color: var(--success); }
.pr-val.down { color: var(--danger); }
.pr-val.flat { color: var(--text-primary); }
.pr-bench { display: block; font-size: 11px; color: var(--mid-gray); margin-top: 2px; }
@media (max-width: 900px) { .perf-returns { grid-template-columns: repeat(2, 1fr); } }

/* Home fund cards: "● Live · Today +$X (+Y%)" under Market Value */
.m-day { font-size: 11px; font-weight: 600; margin-top: 2px; line-height: 1.3; }

/* ── FOMC / FEDERAL RESERVE CALENDAR ────────────────────────── */
.fomc-events {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.fomc-event {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f3f8;
}
.fomc-event:last-child { border-bottom: none; }
/* Past events are marked by tinting the BACKGROUND, never by fading the row.
   A blanket `opacity` blends the title, badge, and link toward the white page
   behind them — that reads as a grey haze over the text and drops contrast
   below AA. A tint leaves every foreground element at full strength. The day
   header also labels the group "· past", so this is a secondary cue only. */
.fomc-event.is-past { background: #f7f9fc; }
/* Hover is blue-tinted and darker than both states, so it stays obvious on a
   past row too (equal specificity — these must come after the .is-past rule). */
.fomc-event:hover,
.fomc-event.is-past:hover { background: #eaf0fb; }
.fe-time {
  font-size: 12.5px; font-weight: 700; color: var(--bomber-blue);
  white-space: nowrap; padding-top: 2px;
}
.fe-title { font-size: 14px; font-weight: 600; color: var(--dark); line-height: 1.45; }
.fe-link { color: var(--dark); transition: var(--transition); }
.fe-link:hover { color: var(--bomber-blue); text-decoration: underline; }
.fe-ext { font-size: 11px; color: var(--mid-gray); }
.fe-link:hover .fe-ext { color: var(--bomber-blue); }
.fe-desc  { font-size: 13px; color: var(--text-secondary); margin-top: 3px; line-height: 1.5; }
.fe-loc   { font-size: 12.5px; color: var(--mid-gray); margin-top: 3px; }
.fe-live {
  display: inline-block; margin-top: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--bomber-blue);
}
.fe-live:hover { text-decoration: underline; }
.fe-badge {
  display: inline-block; margin-right: 8px; vertical-align: 1px;
  padding: 2px 8px; border-radius: 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase; white-space: nowrap;
}
.fe-badge.fomc      { background: rgba(0,61,165,0.12);  color: var(--bomber-blue); }
.fe-badge.speech    { background: rgba(0,149,74,0.12);  color: var(--success); }
.fe-badge.testimony { background: rgba(242,169,0,0.18); color: var(--ic-gold-dark); }
.fe-badge.board     { background: rgba(105,65,190,0.12); color: #5b3ea8; }
.fe-badge.beige     { background: rgba(150,110,60,0.14); color: #8a6a34; }
.fe-badge.stat      { background: var(--light-gray);     color: var(--text-secondary); }
.fe-badge.conf      { background: rgba(0,120,160,0.12);  color: #056a86; }
.fe-badge.other     { background: var(--light-gray);     color: var(--mid-gray); }

@media (max-width: 640px) {
  .fomc-event { grid-template-columns: 1fr; gap: 4px; }
  .fe-time { padding-top: 0; }
}

/* ── QUARTERLY REPORTS: year rows + flyout submenu ──────────── */
.qr-year { position: relative; }
.qr-year-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 18px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  color: var(--text-primary); background: none; border: none; text-align: left;
  cursor: pointer; transition: var(--transition);
}
.qr-year-btn .qr-count {
  margin-left: auto; font-size: 11px; font-weight: 500; color: var(--mid-gray);
}
.qr-year-btn .qr-caret { font-size: 16px; line-height: 1; color: var(--mid-gray); }
.qr-year:hover > .qr-year-btn,
.qr-year.sub-open > .qr-year-btn { background: var(--off-white); color: var(--bomber-blue); }
.qr-year.flip-left > .qr-year-btn .qr-caret { transform: rotate(180deg); }

.qr-submenu {
  position: absolute; top: -9px; left: 100%; margin-left: 3px;
  min-width: 190px; padding: 8px 0;
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius); box-shadow: var(--card-shadow-hover);
  opacity: 0; pointer-events: none; transform: translateX(-4px);
  transition: opacity .16s ease, transform .16s ease;
  z-index: 220;
  /* Closed flyouts are taken OUT OF FLOW entirely. If they merely sat at
     opacity:0 they'd still occupy layout, and their off-screen right edge
     would widen the document — producing a phantom horizontal scrollbar and
     a white gutter beside the nav/footer when you swipe sideways. */
  display: none;
}
/* invisible bridge so the mouse can cross the small gap without closing */
.qr-submenu::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -8px; width: 8px;
}
.qr-year.flip-left > .qr-submenu {
  left: auto; right: 100%; margin-left: 0; margin-right: 3px;
}
.qr-year.flip-left > .qr-submenu::before { left: auto; right: -8px; }
.qr-year:hover > .qr-submenu,
.qr-year.sub-open > .qr-submenu { display: block; opacity: 1; pointer-events: all; transform: translateX(0); }

@media (max-width: 960px) {
  /* Stacked mobile nav: expand the year inline instead of flying out */
  .qr-year-btn { color: #dbe6f7; }
  .qr-submenu {
    position: static; display: none; opacity: 1; pointer-events: all;
    transform: none; box-shadow: none; border: none; min-width: 0;
    background: rgba(255,255,255,0.07); border-radius: 8px; margin: 0 12px 6px;
  }
  .qr-year:hover > .qr-submenu { display: none; }   /* hover shouldn't fire on touch */
  .qr-year.sub-open > .qr-submenu { display: block; }
  .qr-submenu a { color: #dbe6f7; padding-left: 26px; }
}

/* Home "Quick Links" resource cards — hover handled in CSS (no inline JS, CSP-safe) */
.resource-link:hover { border-color: var(--bomber-blue) !important; }

/* Skip-to-content link (a11y): hidden until keyboard-focused */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ic-gold); color: var(--bomber-blue-dark);
  font-weight: 700; padding: 10px 18px; border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Research-card monogram tile (no external logo dependency) */
.rc-preview.rc-mono {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display);
  font-size: 34px; font-weight: 700; letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Return attribution: side-by-side contributors / detractors */
.attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.attr-col-head { font-size: 13px; font-weight: 700; padding: 4px 0 12px; letter-spacing: .3px; }
.attr-col-head.pos { color: var(--success); }
.attr-col-head.neg { color: var(--danger); }
@media (max-width: 900px) { .attr-grid { grid-template-columns: 1fr; gap: 28px; } }

.est-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .3px;
  background: #eef1f6;
  color: #7A8A9E;
  vertical-align: middle;
}

/* ── PAGE HEADER ──────────────────────────────────────── */
.page-header {
  background: var(--bomber-blue);
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-header::after {
  content: '';
  position: absolute;
  right: 60px; bottom: -120px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(242,169,0,0.08);
}
.page-header .section-inner { position: relative; z-index: 1; }
.page-header .section-label { color: var(--ic-gold); }
.page-header .section-title { color: #fff; }
.page-header .section-sub   { color: #9cb8e0; }

/* ── PERFORMANCE CHART ────────────────────────────────── */
.chart-section { background: var(--off-white); }
.chart-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.chart-title { font-size: 16px; font-weight: 700; color: var(--dark); }
.chart-period-btns { display: flex; gap: 4px; }
.period-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  color: var(--mid-gray);
  transition: var(--transition);
  font-family: var(--font-body);
}
.period-btn.active, .period-btn:hover {
  background: var(--bomber-blue);
  color: #fff;
  border-color: var(--bomber-blue);
}
.chart-container { position: relative; height: 300px; }

/* ── SECTOR BREAKDOWN ─────────────────────────────────── */
.sector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
  align-items: center;
}
.sector-list { display: flex; flex-direction: column; gap: 10px; }
.sector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.sector-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.sector-name { color: var(--text-primary); flex: 1; font-weight: 500; }
.sector-pct  { font-weight: 700; color: var(--text-primary); }
.pie-wrap    { display: flex; justify-content: center; position: relative; height: 240px; }

/* ── FUND SELECTOR ────────────────────────────────────── */
.fund-selector {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: -32px;
  position: relative;
  z-index: 10;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.fund-selector label { font-size: 13px; font-weight: 600; color: var(--mid-gray); white-space: nowrap; }
.fund-select {
  flex: 1;
  min-width: 220px;
  padding: 10px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  background: var(--off-white);
  cursor: pointer;
  font-family: var(--font-body);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23003DA5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.fund-select:focus { outline: none; border-color: var(--bomber-blue); box-shadow: 0 0 0 3px rgba(0,61,165,0.12); }

/* ── KEY METRICS ROW ──────────────────────────────────── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.metric-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--card-shadow);
  min-width: 0;
  overflow: hidden;
}
.metric-box .mb-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: .7px;
  line-height: 1.3;
}
.metric-box .mb-value {
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 700;
  color: var(--dark);
  margin-top: 4px;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.metric-box .mb-value.up   { color: var(--success); }
.metric-box .mb-value.down { color: var(--danger); }
.metric-box .mb-sub {
  font-size: 10px;
  color: var(--mid-gray);
  margin-top: 4px;
  line-height: 1.3;
}

/* ── CALENDAR ─────────────────────────────────────────── */
.cal-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.cal-filter {
  padding: 7px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  color: var(--text-secondary);
  transition: var(--transition);
  font-family: var(--font-body);
}
.cal-filter.active, .cal-filter:hover {
  background: var(--bomber-blue);
  color: #fff;
  border-color: var(--bomber-blue);
}

/* Earnings / dividend controls: filter chips on the left, search on the right. */
.cal-controls {
  display: flex;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.cal-controls .cal-filter-bar { margin-bottom: 0; }
.cal-search {
  flex: 0 1 260px;
  min-width: 160px;
  padding: 8px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--dark);
  background: #fff;
  transition: var(--transition);
}
.cal-search:focus {
  outline: none;
  border-color: var(--bomber-blue);
  box-shadow: 0 0 0 3px rgba(0,61,165,0.12);
}
.cal-search::placeholder { color: var(--mid-gray); }

/* A reported earnings card reads as settled: tinted, not faded (full-contrast
   text — same rationale as the Federal Reserve calendar's past rows). */
.earnings-card.is-past { background: #f7f9fc; }
.ec-surp { font-size: 11px; margin-left: 4px; opacity: 0.85; }
tr.div-past { background: #f9fafc; }

/* ── NEWS FEED ─────────────────────────────────────────── */
.news-filter {
  padding: 7px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; background: none;
  color: var(--text-secondary);
  transition: var(--transition);
  font-family: var(--font-body);
}
.news-filter.active, .news-filter:hover {
  background: var(--bomber-blue); color: #fff; border-color: var(--bomber-blue);
}

#news-feed { display: flex; flex-direction: column; gap: 14px; }

/* Animated bullish-candlestick loader */
.news-loader { text-align: center; padding: 56px 20px; }
.news-loader svg { width: 260px; height: 100px; overflow: visible; }
.news-loader .nl-candle {
  opacity: 0;
  animation: nlCandle 2.4s ease-in-out infinite;
}
@keyframes nlCandle {
  0%, 4%  { opacity: 0; transform: translateY(10px); }
  18%     { opacity: 1; transform: translateY(0); }
  82%     { opacity: 1; transform: translateY(0); }
  100%    { opacity: 0; transform: translateY(0); }
}
.news-loader .nl-trend {
  fill: none; stroke: var(--bomber-blue);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; opacity: .65;
  animation: nlTrend 2.4s ease-in-out infinite;
}
@keyframes nlTrend {
  0%, 4%  { stroke-dashoffset: 100; opacity: .65; }
  62%     { stroke-dashoffset: 0; opacity: .65; }
  85%     { stroke-dashoffset: 0; opacity: .65; }
  100%    { stroke-dashoffset: 0; opacity: 0; }
}
.news-loader-text { margin-top: 18px; font-size: 14px; color: var(--mid-gray); font-weight: 500; }
.news-loader-text span { color: var(--bomber-blue); font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .news-loader .nl-candle { opacity: 1; animation: none; }
  .news-loader .nl-trend { stroke-dashoffset: 0; opacity: .65; animation: none; }
}
.news-card {
  display: flex; gap: 18px; align-items: stretch;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  text-decoration: none;
}
.news-card:hover {
  border-color: var(--bomber-blue);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}
.news-thumb {
  flex-shrink: 0; width: 132px; height: 88px;
  border-radius: var(--radius); overflow: hidden; background: var(--off-white);
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.news-meta {
  display: flex; align-items: center;
  gap: 12px; flex-wrap: nowrap;
}
.news-tickers { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.news-source { margin-left: auto; }   /* pin source/time flush right on every card */
.news-ticker {
  font-weight: 800; font-size: 12px; color: var(--bomber-blue);
  letter-spacing: .3px;
}
.news-ticker.market {
  background: rgba(0,61,165,0.1); color: var(--bomber-blue);
  padding: 2px 8px; border-radius: 10px; font-size: 10.5px; letter-spacing: .5px;
}
.news-source { font-size: 12px; color: var(--mid-gray); white-space: nowrap; }
.news-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px; line-height: 1.35;
  color: var(--dark);
}
.news-card:hover .news-title { color: var(--bomber-blue); }
.news-summary {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 640px) {
  .news-thumb { display: none; }
}
.cal-table-wrap { overflow-x: auto; }
.cal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cal-table th {
  background: var(--bomber-blue);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
}
.cal-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-primary);
  vertical-align: middle;
}
.cal-table tr:hover td { background: #f7f9ff; }
.cal-table .event-name { font-weight: 600; }
.cal-table .event-country { font-size: 11px; color: var(--mid-gray); }
.importance-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.importance-dot.high   { background: var(--danger); }
.importance-dot.medium { background: var(--warning); }
.importance-dot.low    { background: var(--success); }
.imp-label { font-size: 11px; font-weight: 600; }
.imp-label.high   { color: var(--danger); }
.imp-label.medium { color: var(--warning); }
.imp-label.low    { color: var(--success); }
.actual-beat   { color: var(--success); font-weight: 700; }
.actual-miss   { color: var(--danger);  font-weight: 700; }
.cal-date-header td {
  background: var(--off-white);
  font-weight: 700;
  font-size: 13px;
  color: var(--bomber-blue);
  padding: 9px 16px;
  border-top: 2px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* ── EARNINGS TABLE ───────────────────────────────────── */
.earnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.earnings-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--card-shadow);
}
.ec-company { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ec-logo {
  width: 40px; height: 40px;
  flex: none;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--bomber-blue);
  border: 1px solid var(--border-color);
}
.ec-id { min-width: 0; }   /* allow the company name to ellipsize, not overflow */
.ec-name  { font-weight: 700; font-size: 15px; line-height: 1.2; }
.ec-co {
  font-size: 12px; color: var(--text-secondary); font-weight: 500;
  margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-ticker { font-size: 12px; color: var(--mid-gray); margin-top: 3px; }
.ec-stat  { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--light-gray); }
.ec-stat:last-child { border-bottom: none; }
.ec-stat .ec-key { color: var(--text-secondary); }
.ec-stat .ec-val { font-weight: 600; }

/* ── DATE-GROUPED CALENDAR (Nasdaq-style) ─────────────── */
.cal-date-group { margin-top: 28px; }
.cal-date-head {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; color: var(--dark);
  padding: 8px 0 12px;
  border-bottom: 2px solid var(--bomber-blue);
  margin-bottom: 16px;
}
.cal-date-head .cdh-count { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--mid-gray); }
.eg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
/* dividend table date-separator row */
.cal-date-row td {
  background: var(--off-white);
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px; color: var(--dark);
  padding: 12px 16px !important;
  border-top: 2px solid var(--bomber-blue);
}
.cal-date-row .cdr-count { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--mid-gray); margin-left: 8px; }

/* ── RESEARCH ─────────────────────────────────────────── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.research-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.research-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.rc-preview {
  height: 140px;
  background: linear-gradient(135deg, var(--bomber-blue-dark) 0%, var(--bomber-blue-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.rc-preview img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
}
.rc-body { padding: 18px 20px 20px; }
.rc-fund {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.rc-fund.eq  { background: rgba(0,61,165,0.1);   color: var(--bomber-blue); }
.rc-fund.fi  { background: rgba(0,149,74,0.1);    color: #005c2e; }
.rc-fund.ctc { background: rgba(242,169,0,0.15);  color: #7a5500; }
.rc-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.3; margin-bottom: 8px; }
.rc-meta  { font-size: 12px; color: var(--mid-gray); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rc-meta span + span::before { content: '·'; }
.rc-thesis { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; margin-top: 8px; }
.rc-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  border: none;
}
.btn-sm.primary { background: var(--bomber-blue); color: #fff; }
.btn-sm.primary:hover { background: var(--bomber-blue-dark); }
.btn-sm.ghost { background: var(--off-white); color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-sm.ghost:hover { background: var(--light-gray); }

/* Upload Drop Zone */
.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--off-white);
  margin-bottom: 40px;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--bomber-blue);
  background: rgba(0,61,165,0.04);
}
.upload-icon { font-size: 42px; margin-bottom: 14px; }
.upload-title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.upload-sub   { font-size: 14px; color: var(--mid-gray); margin-bottom: 18px; }

/* ── ABOUT ────────────────────────────────────────────── */
.about-hero {
  /* The visible hero image is the local images/campus.jpg painted by the
     .about-hero-bg overlay (see about.html). No external background here —
     an off-site URL would be a hidden fetch + a fragile third-party dependency. */
  min-height: 460px;
}
.mission-section { background: var(--off-white); }
.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mission-quote {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.5;
  border-left: 4px solid var(--ic-gold);
  padding-left: 24px;
  margin-bottom: 24px;
}
.mission-body { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }
.mission-body p + p { margin-top: 16px; }
.about-fund-cards { margin-top: 48px; }
.about-fund-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
}
.afc-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.afc-icon.blue { background: rgba(0,61,165,0.1); }
.afc-icon.gold { background: rgba(242,169,0,0.15); }
.afc-icon.green { background: rgba(0,149,74,0.1); }
.afc-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.afc-body  { font-size: 14.5px; color: var(--text-secondary); line-height: 1.75; }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 56px 0 24px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .fb-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand .fb-sub {
  font-size: 12px;
  color: #5a7496;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 13.5px; color: #5a7496; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #4a6080;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: #5a7496;
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e2d3d;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: #3a5070; }
.footer-bottom .disclaimer { font-size: 11px; color: #2a3d52; max-width: 600px; }

/* ── RISK DISCLAIMER ──────────────────────────────────── */
.risk-bar {
  background: #fef9e7;
  border: 1px solid #f9c74f;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 12.5px;
  color: #7a5c00;
  margin-bottom: 28px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* ── TABS ─────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 28px;
  /* Tabs scroll inside their own strip on narrow screens instead of forcing
     the whole page wider. */
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn { flex: 0 0 auto; white-space: nowrap; }

/* Home: "Latest Research" + "Quick Links" two-up — collapses on narrow screens
   (was a rigid inline 2fr 1fr grid that overflowed phones). */
.home-split { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) {
  .home-split { grid-template-columns: 1fr; gap: 32px; }
}
.tab-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mid-gray);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  font-family: var(--font-body);
}
.tab-btn.active { color: var(--bomber-blue); border-bottom-color: var(--bomber-blue); }
.tab-btn:hover  { color: var(--bomber-blue); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .mission-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 60px 32px; }
  .about-fund-card { grid-template-columns: 1fr; }
}

/* ── MOBILE NAV (hamburger, injected by main.js) ───────────── */
.nav-hamburger { display: none; }
@media (max-width: 960px) {
  .nav-hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: none; cursor: pointer;
    margin-left: auto;
  }
  .nav-hamburger span {
    display: block; height: 2px; border-radius: 2px;
    background: #fff; transition: transform .25s, opacity .25s;
  }
  .nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
  .nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* (nav stays position:sticky — it already anchors the absolute menu) */
  #main-nav .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bomber-blue, #003DA5);
    padding: 8px 12px 16px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.25);
    z-index: 400;
  }
  #main-nav.nav-open .nav-links { display: flex; }
  #main-nav .nav-links > li > a,
  #main-nav .nav-links > li > .nav-btn {
    display: flex; width: 100%; justify-content: space-between;
    padding: 13px 12px; font-size: 15px;
  }
  /* Dropdowns expand inline (still click-to-open via dd-open) */
  #main-nav .nav-links .nav-dropdown {
    position: static; transform: none; box-shadow: none;
    background: rgba(255,255,255,0.06); border-radius: 8px;
    margin: 0 0 6px; width: 100%;
  }
  #main-nav .nav-links .nav-dropdown a { color: #dbe6f7; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr; }
  #main-nav { padding: 0 16px; }
  .section-inner { padding: 0 16px; }
  .hero-content { padding: 48px 20px; }
  .nav-logo-text .site-sub { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .stats-bar .section-inner { grid-template-columns: 1fr 1fr; }
}

/* ── UTILS ────────────────────────────────────────────── */
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px;  }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Fund badge color variants on fund page */
.fund-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 4px; vertical-align: middle;
}
.fund-badge.equity { background: rgba(0,61,165,0.1); color: var(--bomber-blue); }
.fund-badge.fixed  { background: rgba(0,149,74,0.1); color: #005c2e; }
.fund-badge.ctc    { background: rgba(242,169,0,0.15); color: #7a5500; }

/* ── ALL FUNDS OVERVIEW (funds page) ─────────────────────── */
.ov-fund-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}
.ov-fund-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  transition: var(--transition);
}
.ov-fund-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.ov-fc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ov-fc-name { font-weight: 700; font-size: 15px; color: var(--dark); }
.ov-fc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--text-secondary);
  padding: 6px 0; border-bottom: 1px solid var(--light-gray);
}
.ov-fc-row b { color: var(--dark); font-weight: 700; }
.ov-fc-link { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--bomber-blue); }
