@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=Roboto:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #0a0a0b;
  --ink2: #3a3a40;
  --ink3: #6b6b75;
  --bg: #f7f6f2;
  --bg2: #eeecea;
  --bg3: #e4e2dc;
  --accent: #1d484f;
  --accent2: #1d484f;
  --gold: #c8992a;
  --gold2: #f0c14b;
  --up: #1a7a4a;
  --down: #b03030;
  --border: rgba(10,10,11,0.1);
  --r: 10px;
  --mono: 'DM Mono', monospace;
  --serif: 'DM Serif Display', serif;
  --sans: 'Roboto', sans-serif;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > footer {
  margin-top: auto;
}

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
  height: auto;
  background: rgba(247,246,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo:hover { color: var(--ink); }

.nav-logo img {
  height: 24px;
  width: auto;
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links > a,
.nav-dropdown-toggle {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  cursor: pointer;
  transition: color .15s;
}
.nav-links > a:hover,
.nav-dropdown-toggle:hover { color: var(--accent); }

.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  min-width: 170px;
  padding: 6px 0;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-dropdown-menu a:hover {
  background: var(--bg2);
  color: var(--accent);
}

.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn-ghost {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.btn-ghost:hover { background: var(--bg2); }

.btn-solid {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border: none;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.btn-solid:hover { background: var(--accent2); }

/* TICKER TAPE */
.ticker-wrap {
  background: var(--accent);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}

.ticker-inner {
  display: flex;
  gap: 0;
  animation: ticker-scroll 90s linear infinite;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tick-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  border-right: 1px solid rgba(255,255,255,0.12);
}

.tick-item .tick-name { color: #fff; font-weight: 500; }
.tick-item .tick-val { color: rgba(255,255,255,0.9); }
.tick-item .up { color: #5fd48a; }
.tick-item .dn { color: #f07070; }

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* NOTICE BANNERS */
.site-notice {
  padding: 10px 40px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.site-notice-info { background: rgba(45,106,159,0.08); color: var(--accent); border-bottom: 1px solid rgba(45,106,159,0.15); }
.site-notice-success { background: rgba(26,122,74,0.08); color: var(--up); border-bottom: 1px solid rgba(26,122,74,0.15); }
.site-notice-warning { background: rgba(200,153,42,0.08); color: #8a6d1b; border-bottom: 1px solid rgba(200,153,42,0.2); }
.site-notice-error { background: rgba(176,48,48,0.08); color: var(--down); border-bottom: 1px solid rgba(176,48,48,0.15); }

@media (max-width: 767.98px) {
  .site-notice { padding: 10px 16px; font-size: 12px; }
}

/* SECTIONS */
.section {
  padding: 80px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 15px;
  color: var(--ink2);
  max-width: 540px;
  line-height: 1.7;
}

.section-divider {
  height: 1px;
  background: var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

/* FOOTER */
footer {
  background: var(--accent);
  color: rgba(255,255,255,0.7);
  padding: 48px 40px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-logo {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.footer-blurb {
  font-size: 12px;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.footer-disc {
  font-size: 10px;
  line-height: 1.6;
  max-width: 640px;
  color: rgba(255,255,255,0.5);
  opacity: 0.6;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
  /* NAV — mobile collapsed */
  .site-nav .container-fluid { padding: 0 16px; }

  .nav-links {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding: 16px 0;
    margin-top: 8px;
    border-top: 1px solid var(--border);
  }

  .nav-links > a,
  .nav-dropdown-toggle {
    padding: 10px 0;
    font-size: 14px;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    background: transparent;
  }

  .nav-dropdown-menu::before { display: none; }

  .nav-dropdown .nav-dropdown-menu {
    display: block;
  }

  .nav-actions {
    padding: 12px 0 8px;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 767.98px) {
  /* GLOBAL PADDING */
  .section { padding: 48px 20px; }

  .section-title { font-size: 28px; }

  .section-sub { font-size: 14px; }

  /* FOOTER */
  footer { padding: 36px 20px 24px; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-disc { max-width: none; }

  /* TABLES — horizontal scroll */
  .fund-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .fund-table { min-width: 0; }

  /* Hide xNAV(3), 1-min change(4,5), 1D change(6,7) — keep name(1), ticker(2), chart(8), view(9) */
  .fund-table th:nth-child(3),
  .fund-table td:nth-child(3),
  .fund-table th:nth-child(4),
  .fund-table td:nth-child(4),
  .fund-table th:nth-child(5),
  .fund-table td:nth-child(5),
  .fund-table th:nth-child(6),
  .fund-table td:nth-child(6),
  .fund-table th:nth-child(7),
  .fund-table td:nth-child(7) { display: none; }
}

@media (max-width: 575.98px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fund-table { min-width: 0; }
}
