/* Stocknote — Public Site Styles */
:root {
  /* Layered navy palette for visual depth */
  --navy-darkest: #04111f;    /* market strip - nearly black */
  --navy: #0A2540;            /* header, default navy */
  --navy-mid: #102d4d;        /* hero gradient end */
  --navy-light: #1a3a5c;      /* lighter accents */
  
  /* Refined gold */
  --gold: #d4af5c;            /* primary gold, brighter than before */
  --gold-dark: #b89651;       /* hover state */
  --gold-bright: #e8c674;     /* CTA glow */
  
  /* Text */
  --text: #1a1a1a;
  --text-muted: #5a6470;
  --text-soft: #8a939e;
  
  /* Backgrounds - warm cream for editorial feel */
  --bg: #fbfaf6;              /* page bg, FT-style warm cream */
  --bg-card: #ffffff;         /* cards */
  --bg-alt: #f3f1ea;          /* alt sections */
  
  --border: #e5e0d3;          /* warm-tinted border */
  --border-soft: #efecdf;
  
  --link: #0A2540;
  --link-hover: #b89651;
  
  --green: #15803d;
  --red: #b91c1c;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--navy);
  padding: 16px 0;
  border-bottom: 4px solid var(--gold);
  position: relative;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-bright);
  opacity: 0.5;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-logo img {
  height: 64px;
  width: auto;
  max-width: 360px;
  display: block;
}
@media (max-width: 700px) {
  .site-logo img { height: 48px; max-width: 240px; }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo .logo-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.main-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--gold); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Split Hero (homepage) - editorial cream, no navy panel */
.hero-split {
  position: relative;
  background: var(--bg);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}
.hero-split-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-split-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-split { padding: 36px 0 40px; }
}

.hero-branding .hero-headline {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin: 0 0 24px;
  line-height: 1.1;
  color: var(--navy);
}
@media (max-width: 700px) {
  .hero-branding .hero-headline { font-size: 34px; letter-spacing: -0.5px; }
}
.hero-pitch {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 480px;
  font-family: 'Georgia', serif;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-hero-primary,
.btn-hero-secondary {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 4px;
  font-family: -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.btn-hero-primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.15);
}
.btn-hero-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.25);
}
.btn-hero-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-hero-secondary:hover {
  background: var(--navy);
  color: white;
}

/* Quote card on cream background */
.hero-quote-wrap {
  background: white;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.08), 0 1px 3px rgba(10, 37, 64, 0.04);
  color: var(--navy);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
}
.hero-quote-wrap .ticker-search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.hero-quote-wrap .ticker-search {
  display: flex;
  gap: 6px;
  flex: 1;
  max-width: 280px;
}
.hero-quote-wrap .ticker-search input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-family: -apple-system, sans-serif;
  text-transform: uppercase;
}
.hero-quote-wrap .ticker-search button {
  padding: 6px 14px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.hero-quote-wrap .ticker-search button:hover {
  background: var(--gold);
  color: var(--navy);
}
.hero-quote-wrap .ticker-section-title {
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 0;
}
.hero-quote-wrap .ticker-disclaimer {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
.hero-quote-wrap .ticker-disclaimer a { color: var(--text-muted); }

/* Empty state for no articles */
.empty-state-card {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 24px 0;
}
.empty-state-card .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.empty-state-card h3 {
  font-family: -apple-system, sans-serif;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 12px;
}
.empty-state-card p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.6;
}
.empty-subscribe-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.empty-subscribe-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
}
.empty-subscribe-form button {
  padding: 12px 24px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}
.empty-subscribe-form button:hover {
  background: var(--gold);
  color: var(--navy);
}
.empty-meta {
  margin-top: 12px !important;
  font-size: 13px !important;
  color: var(--text-muted);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 22px;
  color: var(--gold);
  font-style: italic;
}

/* Article List */
.section-title {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin: 60px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}

.article-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin: 40px 0 80px;
}

@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
}

.article-list { display: flex; flex-direction: column; gap: 32px; }

.article-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
}

.article-card:last-child { border-bottom: none; }

.article-card .ticker {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 4px 10px;
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
  margin-bottom: 12px;
}

.article-card h2 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.article-card h2 a {
  color: var(--navy);
  text-decoration: none;
}

.article-card h2 a:hover { color: var(--gold); }

.article-card .excerpt {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 12px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-spacing: -0.3px;
}

.article-meta {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 32px; }

.sidebar-widget {
  background: var(--bg-alt);
  padding: 24px;
  border-left: 3px solid var(--gold);
}

.sidebar-widget h3 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget h3 svg {
  flex-shrink: 0;
  color: var(--gold-dark);
}
.sidebar-widget-highlight h3 svg { color: var(--gold-bright); }

.sidebar-widget p { font-size: 15px; color: var(--text-muted); }

/* Single Article */
.article-hero {
  background: var(--navy);
  color: white;
  padding: 60px 0 40px;
  text-align: center;
}

.article-hero .ticker {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 6px 14px;
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
  margin-bottom: 16px;
}

.article-hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* Subtitle in hero: keep readable but center, override the justify from earlier */
.article-hero .article-subtitle {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  hyphens: none;
  -webkit-hyphens: none;
}

.article-hero .article-meta {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  justify-content: center;
}

.featured-img-wrap {
  max-width: 1000px;
  margin: 40px auto -60px;
  padding: 0 24px;
}

.featured-img-wrap img {
  width: 100%;
  max-height: 480px;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  background: var(--bg-alt);
  display: block;
}

/* On mobile, allow image to be shorter so it doesn't dominate */
@media (max-width: 700px) {
  .featured-img-wrap {
    margin: 24px auto -40px;
    padding: 0 16px;
  }
  .featured-img-wrap img {
    max-height: 280px;
  }
}

.article-body {
  padding: 100px 0 60px;
}

.article-content {
  font-size: 19px;
  line-height: 1.8;
}

.article-content h2 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 48px 0 20px;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.article-content h3 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--navy);
}

.article-content p {
  margin-bottom: 24px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-spacing: -0.3px;
}
/* Lists in articles should stay left-aligned */
.article-content ul,
.article-content ol { text-align: left; }

.article-content a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover { color: var(--link-hover); }

.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 8px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-muted);
  background: var(--bg-alt);
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 4px;
}

.article-content figure { margin: 32px 0; text-align: center; }
.article-content figcaption {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
  padding-left: 16px;
}

.article-content li { margin-bottom: 8px; }

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}

.article-content table th,
.article-content table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.article-content table th {
  background: var(--navy);
  color: white;
  font-weight: 700;
}

.article-content table tr:nth-child(even) td {
  background: var(--bg-alt);
}

.article-content pre {
  background: #1a1a1a;
  color: #f0f0f0;
  padding: 20px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
}

.article-content code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Ad slots */
.ad-slot {
  margin: 32px 0;
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot:empty::before {
  content: 'Advertisement';
  color: #ccc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.ad-sidebar { margin-bottom: 32px; }

/* Author box */
.author-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  background: var(--bg-alt);
  border-left: 4px solid var(--gold);
  margin: 48px 0;
}

.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box h4 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
}

.author-box p { font-size: 15px; color: var(--text-muted); margin: 0; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: white;
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

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

.footer-col h4 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

/* Page */
.page-content {
  padding: 60px 0;
}

.page-content h1 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 40px;
  color: var(--navy);
  margin-bottom: 24px;
}

.page-content h2 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  color: var(--navy);
  margin: 32px 0 16px;
}

.page-content h3 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  color: var(--navy);
  margin: 24px 0 12px;
}

.page-content p {
  margin-bottom: 16px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-spacing: -0.5px;
}

/* Lists shouldn't be justified — they look bad and uneven */
.page-content ul,
.page-content ol {
  text-align: left;
}

.page-content a { color: var(--link); }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* Nav update */
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-alt);
  padding: 12px 0;
  font-size: 13px;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: #aaa;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 500; }

/* Hero small variant */
.hero-small { padding: 48px 0; }
.hero-small h1 { font-size: 40px; }
.hero-small .tagline { font-size: 18px; }

/* Featured grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .featured-grid { grid-template-columns: 1fr; } }

.featured-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.featured-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.featured-card .ticker {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 4px 10px;
  font-family: monospace;
  font-size: 12px;
  border-radius: 3px;
  margin: 16px 16px 0;
}
.featured-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  padding: 12px 16px 0;
  line-height: 1.3;
}
.featured-card h3 a { color: var(--navy); text-decoration: none; }
.featured-card h3 a:hover { color: var(--gold); }
.featured-card .excerpt {
  padding: 8px 16px 16px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-spacing: -0.3px;
}

/* Category tags */
.category-tag {
  display: inline-block;
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(201, 169, 97, 0.1);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  margin-left: 8px;
  text-decoration: none;
  font-weight: 600;
}
.category-tag-dark {
  display: inline-block;
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(201, 169, 97, 0.2);
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
  margin-left: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* Category list (sidebar) */
.category-list { list-style: none; padding: 0; }
.category-list li { margin-bottom: 8px; }
.category-list a {
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}
.category-list a:hover { color: var(--gold); }
.category-list .count { color: var(--text-muted); font-size: 13px; }

/* Category cards (categories page) */
.category-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 700px) { .category-cards { grid-template-columns: 1fr; } }
.category-card {
  display: block;
  padding: 24px;
  background: var(--bg-alt);
  border-left: 4px solid var(--gold);
  text-decoration: none;
  transition: all 0.2s;
}
.category-card:hover { transform: translateX(4px); background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.category-card h2 { color: var(--navy); font-size: 22px; margin-bottom: 8px; }
.category-card p { color: var(--text-muted); font-size: 15px; }
.category-card .count {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

.sidebar-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.sidebar-link:hover { color: var(--navy); }

/* Article subtitle */
.article-subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-bottom: 16px;
  font-style: italic;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-spacing: -0.3px;
}

/* Share row */
.share-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
}
.share-row .share-label {
  font-family: -apple-system, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.share-row a {
  font-family: -apple-system, sans-serif;
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.share-row a:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* Disclaimer box on article */
.disclaimer-box {
  background: #fff8e6;
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  font-size: 14px;
  color: #666;
  margin-top: 32px;
}
.disclaimer-box a { color: var(--navy); }

/* Newsletter signup */
.subscribe-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-top: 60px;
}
.subscribe-cta h2 {
  font-family: -apple-system, sans-serif;
  font-size: 32px;
  margin-bottom: 12px;
}
.subscribe-cta p { font-size: 17px; margin-bottom: 24px; color: rgba(255,255,255,0.85); }
.subscribe-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  font-family: -apple-system, sans-serif;
}
.btn-gold:hover { background: #b89651; }

.inline-subscribe {
  background: var(--bg-alt);
  border-left: 4px solid var(--gold);
  padding: 24px;
  margin: 32px 0;
}
.inline-subscribe h3 {
  font-family: -apple-system, sans-serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 8px;
}
.inline-subscribe p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.inline-subscribe form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-subscribe input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
}
.inline-subscribe button {
  background: var(--navy);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}
.inline-subscribe button:hover { background: var(--gold); color: var(--navy); }

/* Related articles */
.related-articles { margin: 60px 0 32px; }
.related-articles h2 {
  font-family: -apple-system, sans-serif;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.related-card .ticker {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 11px;
  border-radius: 3px;
  margin: 12px 12px 0;
}
.related-card h3 {
  font-family: -apple-system, sans-serif;
  font-size: 15px;
  padding: 8px 12px 12px;
  line-height: 1.3;
}
.related-card h3 a { color: var(--navy); text-decoration: none; }
.related-card h3 a:hover { color: var(--gold); }

/* Search */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 600px;
  margin: 24px 0;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 16px;
}
.search-form button {
  padding: 12px 24px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* Alerts on public pages */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.alert-info { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }

/* Market dashboard strip */
.market-strip {
  background: var(--navy-darkest);
  color: white;
  padding: 8px 0;
  font-family: -apple-system, sans-serif;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  letter-spacing: 0.3px;
}
.market-strip-inner {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}
.market-tile {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-family: monospace;
}
.market-sym {
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}
.market-price {
  font-weight: 600;
  color: white;
}
.market-change.up { color: #4ade80; }
.market-change.down { color: #f87171; }

/* Hide scrollbar on market strip while keeping scroll functionality */
.market-strip-inner {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.market-strip-inner::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

@media (max-width: 700px) {
  .market-strip-inner { gap: 16px; justify-content: flex-start; overflow-x: auto; padding: 4px 0; }
  .market-tile { flex-shrink: 0; }
}

/* Sector Pulse strip - distinct from market indices strip */
.market-strip-sectors {
  padding: 6px 0;
  overflow: hidden; /* clip the marquee inside */
}
.market-strip-sectors .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.market-strip-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  flex-shrink: 0;
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

/* Marquee track: contains tiles duplicated for seamless loop */
.market-strip-sectors .market-strip-inner {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
}
.market-strip-sectors .market-strip-track {
  display: inline-flex;
  gap: 4px;
  animation: sectorScroll 50s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.market-strip-sectors:hover .market-strip-track {
  animation-play-state: paused;
}
@keyframes sectorScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* -50% because we duplicate the tiles */
}
/* Respect users who don't want motion */
@media (prefers-reduced-motion: reduce) {
  .market-strip-sectors .market-strip-track {
    animation: none;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .market-strip-sectors .market-strip-track::-webkit-scrollbar { display: none; }
}

.sector-tile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 3px;
  font-size: 12px;
  font-family: -apple-system, sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.sector-tile:hover { background: rgba(255,255,255,0.08); }
.sector-name {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.sector-change {
  font-family: monospace;
  font-weight: 700;
  font-size: 11px;
}
.sector-tile.up .sector-change { color: #4ade80; }
.sector-tile.down .sector-change { color: #f87171; }

/* Subtle indicator dot before each tile */
.sector-tile::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sector-tile.up::before    { background: #4ade80; }
.sector-tile.down::before  { background: #f87171; }

.sector-name-full { display: inline; }
.sector-name-short { display: none; font-family: monospace; text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px; }

@media (max-width: 900px) {
  .market-strip-sectors .container { gap: 10px; }
  .market-strip-label {
    font-size: 9px;
    padding-right: 8px;
    letter-spacing: 1px;
  }
  .sector-tile { padding: 4px 10px; font-size: 11px; gap: 6px; }
  .sector-name-full { display: none; }
  .sector-name-short { display: inline; }
}
@media (max-width: 600px) {
  .market-strip-label { display: none; }
}

/* Watchlist widget */
.sidebar-widget-highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%) !important;
  color: white;
}
.sidebar-widget-highlight h3 { color: white !important; border-color: rgba(255,255,255,0.3) !important; }
.sidebar-widget-highlight p { color: rgba(255,255,255,0.85) !important; }
.sidebar-widget-highlight .sidebar-link { color: var(--gold) !important; }

.watchlist-widget {
  list-style: none;
  padding: 0;
  margin: 0;
}
.watchlist-widget li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.watchlist-widget li:last-child { border-bottom: none; }
.wl-ticker {
  font-family: monospace;
  font-size: 14px;
  color: var(--navy);
}
.wl-company {
  color: var(--text-muted);
  font-family: -apple-system, sans-serif;
  font-size: 12px;
  font-weight: normal;
  margin-left: 4px;
}
.wl-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* Earnings widget */
.earnings-widget {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.earnings-widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.earnings-widget li:last-child { border-bottom: none; }
.er-date {
  font-family: monospace;
  font-weight: 600;
  color: var(--gold);
  min-width: 50px;
}
.er-hour {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

/* Track Record page */
.track-record-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 800px) { .track-record-summary { grid-template-columns: repeat(2, 1fr); } }

.tr-stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}
.tr-stat.tr-stat-highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border: none;
}
.tr-stat.tr-stat-highlight .tr-label { color: rgba(255,255,255,0.7); }
.tr-stat.tr-stat-highlight .tr-value { color: white; }
.tr-stat.tr-stat-highlight .tr-value.up { color: #4ade80; }
.tr-stat.tr-stat-highlight .tr-value.down { color: #f87171; }

.tr-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-family: -apple-system, sans-serif;
  margin-bottom: 8px;
}
.tr-value {
  font-family: monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.tr-value.up { color: #10b981; }
.tr-value.down { color: #dc2626; }

.tr-filters {
  background: var(--bg-alt);
  padding: 16px;
  border-radius: 6px;
  margin: 16px 0;
}
.tr-filters select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

.tr-table-wrap { overflow-x: auto; }

.track-record-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 800px;
}
.track-record-table th {
  background: var(--navy);
  color: white;
  padding: 12px 10px;
  text-align: left;
  font-family: -apple-system, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.track-record-table th.num,
.track-record-table td.num { text-align: right; font-family: monospace; }
.track-record-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.track-record-table tr:hover { background: #fafbfc; }
.track-record-table td.up { color: #10b981; }
.track-record-table td.down { color: #dc2626; }
.tr-ticker { font-family: monospace; }
.tr-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: -apple-system, sans-serif;
}

.direction-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 1px;
}
.dir-long { background: #d1fae5; color: #065f46; }
.dir-short { background: #fee2e2; color: #991b1b; }
.dir-neutral { background: #e5e7eb; color: #374151; }

.tr-status-open { background: #dbeafe; color: #1e40af; }
.tr-status-closed { background: #d1fae5; color: #065f46; }
.tr-status-stopped { background: #fee2e2; color: #991b1b; }

.tr-methodology {
  background: var(--bg-alt);
  padding: 24px;
  border-left: 4px solid var(--gold);
  margin-top: 32px;
  border-radius: 0 6px 6px 0;
}
.tr-methodology h3 {
  font-family: -apple-system, sans-serif;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 12px;
}
.tr-methodology ul { padding-left: 20px; }
.tr-methodology li { margin-bottom: 8px; color: var(--text-muted); font-size: 14px; }
.tr-methodology em { font-style: italic; }

/* Ticker widget */
.ticker-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ticker-search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.ticker-section-title {
  font-family: -apple-system, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 0;
}
.ticker-search {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 400px;
}
.ticker-search input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  text-transform: uppercase;
  font-family: -apple-system, sans-serif;
}
.ticker-search input:focus {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
  border-color: var(--gold);
}
.ticker-search button {
  padding: 8px 16px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ticker-search button:hover { background: var(--gold); color: var(--navy); }

/* Autocomplete dropdown for ticker search */
.ticker-search-box {
  position: relative;
  flex: 1;
}
.ticker-search-box input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  text-transform: uppercase;
  font-family: -apple-system, sans-serif;
  box-sizing: border-box;
  background: white;
  color: var(--navy);
}
.ticker-search-box input:focus {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
  border-color: var(--gold);
}
.ticker-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e0d3;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0;
  margin: 0;
  text-align: left;
}
.ticker-suggest[hidden] { display: none !important; }
.ticker-suggest-item {
  display: flex !important;
  align-items: baseline !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 10px 14px !important;
  background: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid #f3f1ea !important;
  border-radius: 0 !important;
  text-align: left !important;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #0A2540 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background 0.1s;
  line-height: 1.4 !important;
}
.ticker-suggest-item:last-child {
  border-bottom: none !important;
}
.ticker-suggest-item:hover,
.ticker-suggest-item.active,
.ticker-suggest-item:focus {
  background: #f3f1ea !important;
  color: #0A2540 !important;
}
.ticker-suggest-item .ts-sym {
  font-family: 'SF Mono', Monaco, Menlo, monospace !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #0A2540 !important;
  flex-shrink: 0;
  min-width: 56px;
  text-transform: uppercase;
}
.ticker-suggest-item .ts-name {
  font-size: 12px !important;
  color: #6b6660 !important;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400 !important;
}

/* Original .ticker-search input style — now superseded by .ticker-search-box but keep for backward compat with other forms if any */

/* Quote card */
.quote-card { transition: opacity 0.15s; }
.quote-card.loading { opacity: 0.5; }
.quote-loading,
.quote-error {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}
.quote-error { color: #dc2626; }

.quote-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.quote-symbol-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  background: #f8f9fa;
}
.quote-symbol {
  font-family: monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.quote-company {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.quote-research-link {
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-family: -apple-system, sans-serif;
}
.quote-research-link:hover { color: var(--navy); }

.quote-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.quote-price {
  font-family: monospace;
  font-size: 42px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.quote-change {
  font-family: monospace;
  font-size: 18px;
  font-weight: 600;
}
.quote-change.up { color: #10b981; }
.quote-change.down { color: #dc2626; }
.quote-change .arrow { font-size: 14px; }

.quote-sparkline {
  margin: 16px 0;
  position: relative;
}
.sparkline-svg {
  width: 100%;
  height: 60px;
  display: block;
}
.sparkline-label {
  position: absolute;
  bottom: -4px;
  right: 0;
  font-size: 11px;
  color: var(--text-muted);
  font-family: -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quote-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quote-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quote-stats .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-family: -apple-system, sans-serif;
}
.quote-stats .value {
  font-family: monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.quote-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.quote-updated {
  font-size: 12px;
  color: var(--text-muted);
}
.quote-full-report {
  background: var(--navy);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-family: -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.quote-full-report:hover {
  background: var(--gold-dark);
}
.quote-full-report svg { vertical-align: middle; }

/* ===== STOCK DETAIL MODAL ===== */
.sd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}
.sd-modal.open { display: flex; }
.sd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sd-modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 1000px;
  max-height: calc(100vh - 80px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: sdSlideIn 0.18s ease-out;
}
@keyframes sdSlideIn {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@media (max-width: 700px) {
  .sd-modal { padding: 0; align-items: stretch; }
  .sd-modal-content { max-height: 100vh; border-radius: 0; max-width: 100%; }
}

.sd-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white;
  position: relative;
  flex-shrink: 0;
}
.sd-header-left { flex: 1; }
.sd-symbol {
  font-family: monospace;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1;
  color: white;
}
.sd-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-family: -apple-system, sans-serif;
}
.sd-header-right {
  text-align: right;
  font-family: monospace;
  flex-shrink: 0;
}
.sd-price {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  color: white;
}
.sd-change { font-size: 14px; font-weight: 600; }
.sd-change.up { color: #4ade80; }
.sd-change.down { color: #f87171; }

.sd-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.sd-close:hover { background: rgba(255,255,255,0.2); }

.sd-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 5;
  flex-shrink: 0;
}
.sd-tabs::-webkit-scrollbar { display: none; }
.sd-tab {
  background: none;
  border: none;
  padding: 14px 18px;
  font-family: -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  white-space: nowrap;
}
.sd-tab:hover { color: var(--navy); }
.sd-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.sd-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.sd-loading,
.sd-error {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}
.sd-error { color: #dc2626; }

.sd-section {
  margin-bottom: 28px;
}
.sd-section h3 {
  font-family: -apple-system, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sd-description p {
  font-family: 'Georgia', serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.sd-our-research ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sd-our-research li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.sd-our-research li:last-child { border-bottom: none; }
.sd-our-research a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.sd-our-research a:hover { color: var(--gold-dark); }
.sd-meta {
  color: var(--text-muted);
  font-size: 12px;
  font-family: -apple-system, sans-serif;
}
.sd-dir {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 1px;
  margin-right: 6px;
}
.sd-dir-long { background: #d1fae5; color: #065f46; }
.sd-dir-short { background: #fee2e2; color: #991b1b; }
.sd-dir-neutral { background: #e5e7eb; color: #374151; }

.sd-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 600px) { .sd-metrics-grid { grid-template-columns: repeat(2, 1fr); } }
.sd-metric {
  background: var(--bg-alt);
  padding: 12px 14px;
  border-radius: 4px;
}
.sd-metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: -apple-system, sans-serif;
  margin-bottom: 4px;
}
.sd-metric-value {
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.sd-no-fmp {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
}
.sd-no-fmp p { margin: 0; color: #78350f; }

/* Chart tab */
.sd-chart-wrap {
  height: 500px;
  position: relative;
}
#tvChartContainer {
  width: 100%;
  height: 100%;
}
.sd-chart-note,
.sd-fin-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 8px;
  font-family: -apple-system, sans-serif;
}

/* Financials tab */
.sd-fin-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.sd-fin-tabs,
.sd-fin-period {
  display: flex;
  gap: 4px;
}
.sd-fin-tabs button,
.sd-fin-period button {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 14px;
  font-family: -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
}
.sd-fin-tabs button:hover,
.sd-fin-period button:hover { color: var(--navy); }
.sd-fin-tabs button.active,
.sd-fin-period button.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.sd-fin-table-wrap { overflow-x: auto; }
.sd-fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 500px;
}
.sd-fin-table th {
  background: var(--bg-alt);
  text-align: right;
  padding: 10px 12px;
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.sd-fin-table th:first-child { text-align: left; }
.sd-fin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  font-family: monospace;
  text-align: right;
  color: var(--navy);
}
.sd-fin-table td:first-child {
  text-align: left;
  font-family: -apple-system, sans-serif;
  color: var(--text);
  font-weight: 500;
}
.sd-fin-table tr:hover td { background: #fafbfc; }

/* News tab */
.sd-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sd-news-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.sd-news-list li:last-child { border-bottom: none; }
.sd-news-list a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.sd-news-list a:hover { color: var(--gold-dark); }
.sd-news-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: -apple-system, sans-serif;
  margin-top: 4px;
}
.sd-news-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
  line-height: 1.5;
}

.ticker-disclaimer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.ticker-disclaimer a { color: var(--text-muted); text-decoration: underline; }

@media (max-width: 700px) {
  .quote-stats { grid-template-columns: repeat(2, 1fr); }
  .quote-price { font-size: 32px; }
  .quote-change { font-size: 16px; }
}

/* Mobile */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 38px; }
  .hero .tagline { font-size: 18px; }
  .article-card h2 { font-size: 24px; }
  .article-hero h1 { font-size: 30px; }
  .article-subtitle { font-size: 17px; }
  .article-content { font-size: 17px; }
  .article-content h2 { font-size: 26px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    z-index: 100;
  }
  .main-nav.open { display: flex; }
  .main-nav.open ul { flex-direction: column; gap: 16px; }
  .mobile-toggle { display: block; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* ===== NATIVE COMMENTS ===== */
.sn-comments-section {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.sn-comments-heading {
  font-family: 'Georgia', serif;
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 24px;
  font-weight: 700;
}

/* Comment form */
.sn-comment-form {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: 6px;
  margin-bottom: 40px;
}
.sn-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.sn-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .sn-form-row { grid-template-columns: 1fr; } }
.sn-form-field { display: flex; flex-direction: column; }
.sn-form-field label {
  font-family: -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.sn-form-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: #9ca3af; font-size: 11px; margin-left: 4px; }
.sn-form-field input,
.sn-form-field textarea {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  color: var(--navy);
  width: 100%;
  box-sizing: border-box;
}
.sn-form-field textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'Georgia', serif;
  font-size: 16px;
  line-height: 1.5;
}
.sn-form-field input:focus,
.sn-form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
  border-color: var(--gold);
}
.sn-replying-to {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(212, 175, 92, 0.15);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--navy);
}
.sn-replying-to[hidden] { display: none !important; }
.sn-cancel-reply { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); padding: 0 6px; }
.sn-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.sn-form-policy { font-size: 12px; color: var(--text-muted); flex: 1; min-width: 200px; }
.sn-submit-btn {
  background: var(--navy);
  color: white;
  border: none;
  padding: 12px 24px;
  font-family: -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}
.sn-submit-btn:hover:not(:disabled) { background: var(--gold-dark); }
.sn-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.sn-form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
}
.sn-status-ok { background: #d1fae5; color: #065f46; border-left: 3px solid #10b981; }
.sn-status-error { background: #fee2e2; color: #991b1b; border-left: 3px solid #dc2626; }

/* Comment list */
.sn-comments-list { display: flex; flex-direction: column; gap: 20px; }
.sn-comments-empty { color: var(--text-muted); font-style: italic; text-align: center; padding: 40px 0; }

.sn-comment {
  display: flex;
  gap: 14px;
  padding: 16px 0;
}
.sn-comment-avatar { flex-shrink: 0; }
.sn-comment-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: block;
}
.sn-comment-body { flex: 1; min-width: 0; }
.sn-comment-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.sn-comment-name {
  color: var(--navy);
  font-family: -apple-system, sans-serif;
  font-size: 15px;
}
.sn-comment-time {
  font-size: 12px;
  color: var(--text-muted);
  font-family: -apple-system, sans-serif;
}
.sn-comment-text {
  color: var(--text);
  font-family: 'Georgia', serif;
  font-size: 15px;
  line-height: 1.6;
  word-wrap: break-word;
}
.sn-reply-btn {
  background: none;
  border: none;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
  font-family: -apple-system, sans-serif;
  cursor: pointer;
  padding: 6px 0;
  margin-top: 4px;
}
.sn-reply-btn:hover { color: var(--navy); text-decoration: underline; }

/* Nested replies */
.sn-comment-children {
  margin-left: 30px;
  margin-top: 8px;
  padding-left: 18px;
  border-left: 2px solid var(--border);
}
@media (max-width: 600px) {
  .sn-comment-children { margin-left: 12px; padding-left: 12px; }
  .sn-comment-avatar img { width: 40px; height: 40px; }
}
