/* YieldAtlas — copper accent, light hero, square CTAs, 2px table */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Merriweather:wght@700;900&display=swap");

:root {
  --brand: #1A3C34 !important;
  --brand-dark: #122C26 !important;
  --brand-mid: #245248 !important;
  --accent: #C2410C !important;
  --accent-hover: #EA580C !important;
  --accent-soft: rgba(194, 65, 12, 0.14) !important;
  --on-accent: #ffffff !important;
  --gold: #C2410C !important;
  --gold2: #EA580C !important;
  --bg: #f2f4f0 !important;
  --surface: #ffffff !important;
  --surface-2: #faf8f5 !important;
  --ink: #222222 !important;
  --muted: #555555 !important;
  --ink-faint: #777777 !important;
  --line: #dddddd !important;
  --line-strong: #bbbbbb !important;
  --header: #1A3C34 !important;
  --header-ink: #ffffff !important;
  --shell: 94% !important;
  --shell-max: 1400px !important;
  --radius: 4px !important;
  --btn-radius: 4px !important;
  --table-border: 2px !important;
  --font-sans: "Lato", Arial, Helvetica, sans-serif !important;
  --font-display: "Merriweather", Georgia, serif !important;
  --primary: var(--accent) !important;
  --green: var(--accent) !important;
  --navy: var(--brand) !important;
  --purple: var(--accent) !important;
  --bg-primary: var(--bg) !important;
  --bg-secondary: var(--surface) !important;
  --text-primary: var(--ink) !important;
  --text-secondary: var(--muted) !important;
  --border: rgba(194, 65, 12, 0.22) !important;
  --light: #ffffff !important;
  --paper: var(--bg) !important;
  --paper-2: var(--surface) !important;
}

html, body { margin: 0 !important; padding: 0 !important; width: 100% !important; overflow-x: hidden !important; }
body {
  font-family: var(--font-sans) !important; background: #f2f4f0 !important; color: #222222 !important;
  line-height: 1.55 !important; min-height: 100vh !important; display: flex !important;
  flex-direction: column !important; align-items: center !important;
}
a { color: #1A3C34 !important; }
a:hover { color: #C2410C !important; }

header, .nx-header, .site-header, body > header:not(.nx-skip) {
  width: 100% !important; align-self: stretch !important; background: #1A3C34 !important; color: #ffffff !important;
  text-align: center !important; padding: 18px 20px 14px !important;
  border-bottom: 3px solid #C2410C !important; box-shadow: none !important;
}
.logo, .nx-logo, .logo-text, .logo-link, .logo-link .logo, .header-logo,
header .logo, a.header-logo, a.logo-link {
  font-family: "Merriweather", Georgia, serif !important; font-weight: 900 !important;
  font-size: clamp(22px, 5.5vw, 38px) !important; color: #ffffff !important; line-height: 1.1 !important;
  text-decoration: none !important;
}
.logo span, .nx-logo span, .header-logo span { color: #C2410C !important; }
.logo-sub, .nx-tagline {
  font-size: 0.65em !important; font-weight: 700 !important; letter-spacing: 0.14em !important;
  text-transform: uppercase !important; color: rgba(255,255,255,0.75) !important; margin-top: 4px !important;
}
.header-links, .nx-nav, .header-inner { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; justify-content: center !important; align-items: center !important; margin-top: 14px !important; }
.header-inner { margin-top: 0 !important; flex-direction: column !important; }
header a, .site-header a, .nx-header a,
.header-links a, .header-link, .nx-nav a, .btn-ghost,
.header-cta, a.header-cta, .header-pro-btn {
  display: inline-flex !important; padding: 8px 16px !important; border: 2px solid #C2410C !important;
  border-radius: 4px !important; background: transparent !important; color: #ffffff !important;
  font-weight: 900 !important; font-size: 13px !important; text-decoration: none !important;
}
header a.logo-link, header a.logo, .site-header a.header-logo, a.logo-link {
  display: inline-block !important; border: none !important; background: transparent !important;
  padding: 0 !important; color: #ffffff !important;
}
header a:hover, .header-links a:hover, .header-link:hover, .nx-nav a:hover,
.header-cta:hover, .header-pro-btn:hover { background: #C2410C !important; color: #ffffff !important; }
header a.logo-link:hover, header a.logo:hover { background: transparent !important; color: #C2410C !important; }
.network-bar { display: none !important; }

.site-network-bar { width: 100% !important; background: #ffffff !important; border-bottom: 1px solid #dddddd !important; padding: 5px 0 !important; }
.site-network-track {
  width: 94% !important; max-width: 1400px !important; margin: 0 auto !important; padding: 0 15px !important;
  display: flex !important; align-items: center !important; gap: 5px !important; overflow-x: auto !important; white-space: nowrap !important;
}
.site-network-label { font-size: 0.56em !important; font-weight: 900 !important; text-transform: uppercase !important; color: #666666 !important; flex-shrink: 0 !important; }
.site-pill {
  display: inline-flex !important; padding: 3px 8px !important; border-radius: 3px !important;
  border: 1px solid #1A3C34 !important; background: #ffffff !important; color: #1A3C34 !important;
  font-size: 0.62em !important; font-weight: 700 !important; text-decoration: none !important; flex-shrink: 0 !important;
}
.site-pill:hover, .site-pill.current { background: #C2410C !important; color: #ffffff !important; border-color: #C2410C !important; }
@media (min-width: 1150px) { .site-network-track { justify-content: center !important; } }

/* Light hero — copper left rule vibe via underline */
.hero, .nx-hero, .main-h1 {
  width: 100% !important; background: #faf8f5 !important; color: #222222 !important;
  text-align: center !important; padding: 36px 20px 24px !important;
  border-bottom: 2px solid #C2410C !important;
}
.hero h1, .nx-hero h1, .main-h1 h1, body > h1, .content > h1 {
  font-family: "Merriweather", Georgia, serif !important; font-weight: 900 !important;
  font-size: clamp(1.45em, 3.8vw, 2.3em) !important; color: #1A3C34 !important; margin: 0 0 12px !important;
}
.hero h1 span, .nx-hero h1 span, .main-h1 h1 span { color: #C2410C !important; }
.hero-desc, .nx-support, .intro-text, .top-disclaimer, .subhead, .hero-subtitle,
.hero p, .hero-content p, .hero-faq-line {
  max-width: 720px !important; margin: 0 auto 20px !important;
  color: #333333 !important; font-size: 0.94em !important; line-height: 1.7 !important;
}
.intro-text *, .top-disclaimer *, .hero-desc *, .subhead *, .hero-subtitle *, .hero p *, .hero-content p * { color: inherit !important; }
.intro-text strong, .top-disclaimer strong, .hero-faq-line { color: #222222 !important; }
.hero-faq-line a, .hero p a, .hero-content p a { color: #1A3C34 !important; font-weight: 900 !important; }
.hero-stats { display: inline-flex !important; border: 2px solid #1A3C34 !important; border-radius: 4px !important; overflow: hidden !important; background: #ffffff !important; }
.hero-stat { padding: 14px 28px !important; border-right: 1px solid #dddddd !important; }
.hero-stat:last-child { border-right: none !important; }
.hero-stat-val { font-family: "Merriweather", Georgia, serif !important; font-size: 1.6em !important; font-weight: 900 !important; color: #C2410C !important; }
.hero-stat-lbl { font-size: 0.62em !important; font-weight: 700 !important; text-transform: uppercase !important; color: #666666 !important; margin-top: 5px !important; }

.content, .nx-shell, .container, .wrap, #etfTableWrapper { width: 94% !important; max-width: 1400px !important; margin-left: auto !important; margin-right: auto !important; }
.section-head { text-align: center !important; margin: 28px 0 8px !important; }
.section-head h2 {
  font-family: "Merriweather", Georgia, serif !important; font-size: clamp(1.15em, 2.8vw, 1.65em) !important;
  font-weight: 900 !important; color: #1A3C34 !important; margin: 0 0 4px !important;
  border-bottom: 2px solid #C2410C !important; display: inline-block !important; padding-bottom: 6px !important;
}
.section-head p { color: #555555 !important; font-size: 0.88em !important; }
.gold-rule, .nx-rule { width: 64px !important; height: 2px !important; background: #C2410C !important; margin: 10px auto 18px !important; border: none !important; }

.browse-link, .watchlist-btn, .header-pro-btn { border-radius: 4px !important; font-weight: 900 !important; }
.browse-link {
  display: inline-flex !important; padding: 10px 18px !important; background: #ffffff !important;
  border: 2px solid #1A3C34 !important; color: #1A3C34 !important; text-decoration: none !important;
}
.browse-link.primary, .watchlist-btn, .header-pro-btn {
  background: #C2410C !important; border-color: #C2410C !important; color: #ffffff !important;
}
#filters { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; justify-content: center !important; width: 100% !important; }
#filters input, #searchInput, #searchFilter, #etfSearch, input[type="text"], input[type="search"], select, textarea {
  border: 2px solid #cccccc !important; border-radius: 4px !important; padding: 9px 14px !important;
  background: #ffffff !important; color: #222222 !important; font-family: "Lato", Arial, sans-serif !important;
}
#resetFilters, #resetBtn { background: #1A3C34 !important; color: #ffffff !important; border: none !important; padding: 9px 18px !important; border-radius: 4px !important; font-weight: 700 !important; cursor: pointer !important; }
#resetFilters:hover, #resetBtn:hover { background: #C2410C !important; color: #ffffff !important; }
.special-btn, .chip {
  padding: 9px 16px !important; border: 2px solid #1A3C34 !important; border-radius: 4px !important;
  background: #ffffff !important; color: #1A3C34 !important; font-weight: 700 !important; cursor: pointer !important;
}
.special-btn.active, .special-btn:hover, .chip:hover, .chip.active, .chip.gold, .chip.new {
  background: #C2410C !important; border-color: #C2410C !important; color: #ffffff !important;
}
.chip-label { color: #555555 !important; font-weight: 700 !important; }

#etfTable, table.etf-table, .peer-table, table {
  width: 100% !important; max-width: 100% !important; min-width: 0 !important;
  table-layout: fixed !important; border-collapse: collapse !important; background: #ffffff !important;
  border: 2px solid #1A3C34 !important; box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}
#etfTable th, table th, thead th {
  background: #1A3C34 !important; color: #ffffff !important; font-weight: 700 !important;
  font-size: 0.7em !important; letter-spacing: 0.04em !important; text-transform: uppercase !important;
  padding: 10px 4px !important; white-space: normal !important; word-break: break-word !important;
  overflow-wrap: anywhere !important; line-height: 1.25 !important;
}
#etfTable td, table td {
  padding: 8px 4px !important; color: #222222 !important; border-bottom: 1px solid #eee !important;
  text-align: center !important; font-size: 0.85em !important; word-break: break-word !important;
  overflow-wrap: anywhere !important;
}
#etfTable tbody tr:nth-child(even) { background: #faf8f5 !important; }
.symbol, .symbol a, .col-ticker a { color: #1A3C34 !important; font-weight: 900 !important; text-decoration: none !important; }
#etfTable .name, #etfTable td.name, #etfTable .col-name, .col-name {
  text-align: left !important; word-break: break-word !important; overflow-wrap: anywhere !important;
}
.table-wrap, #etfTableWrapper {
  width: 100% !important; max-width: 100% !important; overflow-x: hidden !important;
  box-sizing: border-box !important;
}
@media (max-width: 768px) {
  .table-wrap { overflow-x: visible !important; }
  #etfTable { table-layout: auto !important; }
}

.ad-slot.leaderboard, .leaderboard-ad {
  width: 100% !important; max-width: 970px !important; margin: 18px auto 24px !important; min-height: 90px !important;
  background: repeating-linear-gradient(-45deg, #f0f0f0, #f0f0f0 8px, #e8e8e8 8px, #e8e8e8 16px) !important;
  border: 2px dashed #bbbbbb !important; display: flex !important; align-items: center !important; justify-content: center !important;
  color: #666666 !important; font-weight: 700 !important; font-size: 0.78em !important; text-transform: uppercase !important;
}

.disclaimer, .disclaimer-bar, .table-meta, .loading, .col-name, .banner-label, .banner-legal, .site-network-label,
.intro-text, .top-disclaimer, .subhead, .az-sub, .hub-link {
  color: #555555 !important;
}
.disclaimer-bar { width: 100% !important; background: rgba(194, 65, 12, 0.08) !important; border-bottom: 1px solid #dddddd !important; padding: 0.5rem 1rem !important; }
/* Homepage light footer shell */
.footer, footer:not(.site-footer) {
  width: 90% !important; max-width: 900px !important; margin: 16px auto 28px !important; text-align: center !important;
  border-top: 1px solid #dddddd !important; padding-top: 12px !important; font-size: 0.85em !important; line-height: 1.9 !important;
  color: #555555 !important; background: transparent !important;
}
.footer a, footer:not(.site-footer) a { color: #1A3C34 !important; font-weight: 700 !important; }
/* Blog / full-bleed brand footer — match dark header chrome */
footer.site-footer, .site-footer {
  width: 100% !important; max-width: none !important; align-self: stretch !important;
  margin: 0 !important; padding: 36px 20px 28px !important; text-align: center !important;
  background: #1A3C34 !important; color: #ffffff !important; border-top: none !important;
}
.site-footer p, .site-footer .footer-copy { color: rgba(255,255,255,0.75) !important; }
.site-footer a, .site-footer .footer-links-row a, .site-footer .tracker-link {
  color: #FDE68A !important; font-weight: 700 !important;
}
.site-footer a:hover, .site-footer .footer-links-row a:hover { color: #ffffff !important; }
.back-to-top { background: #1A3C34 !important; color: #ffffff !important; border-radius: 4px !important; padding: 8px 20px !important; border: none !important; font-weight: 700 !important; }
.vote-count, #voteMsg { color: #C2410C !important; font-weight: 700 !important; }
.stars, .orb, body::before { display: none !important; }

/* Light-canvas text safety (never white on cream) */
body > h1, .content > h1, .main-h1, .main-h1 h1, h1 {
  color: #1A3C34 !important;
}
.hero h1, .nx-hero h1, .hero h1 span, .nx-hero h1 span {
  color: #1A3C34 !important;
}
.hero h1 span, .nx-hero h1 span, .main-h1 h1 span { color: #C2410C !important; }
.hero-desc, .nx-support, .intro-text, .top-disclaimer, .subhead,
.hero-desc *, .intro-text *, .nx-support *, .hero-subtitle, .hero p, .hero-content p, .hero-faq-line {
  color: #333333 !important;
}
.intro-text strong, .hero-desc strong, .top-disclaimer strong, .hero-faq-line { color: #222222 !important; }
.hero-faq-line a, .hero p a { color: #1A3C34 !important; }

/* Hero highlights — beat muted intro-text * inheritance */
.intro-text .free-highlight,
.free-highlight {
  color: #DC2626 !important;
  font-weight: 900 !important;
}
.intro-text .free-highlight:not(.inline),
.free-highlight:not(.inline) {
  font-size: 1.2em !important;
  display: block !important;
  margin-top: 6px !important;
}
.free-highlight.inline {
  display: inline !important;
  font-size: inherit !important;
  margin: 0 !important;
}
.intro-text .weekly,
span.weekly,
.weekly {
  color: #1A3C34 !important;
  font-weight: 900 !important;
  font-size: 0.9em !important;
  margin-top: 8px !important;
  display: block !important;
}
.intro-text .weekly a,
.weekly a {
  color: #1DA1F2 !important;
  text-decoration: underline !important;
  font-weight: 900 !important;
}
.intro-text .weekly strong,
.weekly strong {
  color: inherit !important;
}

/* Share / Post — readable on light canvas */
.share-buttons { display: flex !important; gap: 12px !important; justify-content: center !important; flex-wrap: wrap !important; margin: 18px auto 8px !important; }
.share-btn, a.share-btn {
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  padding: 8px 14px !important; border-radius: 6px !important;
  font-weight: 800 !important; font-size: 0.85em !important; text-decoration: none !important;
  color: #222222 !important; background: #ffffff !important;
  border: 1.5px solid #1A3C34 !important; box-shadow: none !important;
}
.share-btn:hover, a.share-btn:hover {
  background: #f4f2ef !important; color: #111111 !important; border-color: #C2410C !important;
}
.share-btn.fb, a.share-btn.fb, .fb.share-btn {
  color: #1877F2 !important; border-color: #1877F2 !important; background: #ffffff !important;
}
.share-btn.x, a.share-btn.x, .x.share-btn, .share-btn.xbtn, a.share-btn.xbtn {
  color: #111111 !important; border-color: #111111 !important; background: #ffffff !important;
}
.share-btn svg { width: 15px !important; height: 15px !important; fill: currentColor !important; }
