/* InvestingCurve insight article styles (from the market insights template). Ticker, nav and footer come from the shared header. */
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select { font: inherit; }
svg { display: block; }
#readingProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--acc), var(--acc3));
  z-index: 10000;
  transition: width 0.1s ease-out;
}
.sub-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--b1);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  gap: 16px;
  flex-wrap: wrap;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 12.5px;
}
.bc-link { color: var(--sub); font-weight: 500; transition: color 0.15s; }
.bc-link:hover { color: var(--acc); }
.bc-sep { color: var(--dim); }
.bc-current { color: var(--text); font-weight: 600; }
.reading-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.font-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--b1);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
}
.btn-font {
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sub);
  transition: all 0.15s;
}
.btn-font:hover { background: var(--surface); color: var(--acc); }
.btn-font.active { background: var(--card); color: var(--acc); }
.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--b1);
  border-radius: 6px;
  color: var(--sub);
  transition: all 0.15s;
}
.btn-tool:hover {
  border-color: var(--b2);
  color: var(--acc);
  background: var(--surface);
}
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}
.article-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--b1);
  padding-bottom: 24px;
}
.kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.kicker-pill {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--card);
  color: var(--acc);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--b1);
}
.category-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sub);
}
.article-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: -0.6px;
  color: var(--text);
  margin-bottom: 14px;
}
.article-subtitle {
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--sub);
  margin-bottom: 22px;
}
.byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc3));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.author-meta-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.author-meta-sub {
  font-size: 12px;
  color: var(--dim);
}
.article-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}
.meta-tag {
  font-size: 11.5px;
  font-family: 'Geist Mono', monospace;
  padding: 3px 8px;
  background: var(--surface);
  border: 1px solid var(--b1);
  border-radius: 4px;
  color: var(--sub);
}
.rm-highlight-box {
  background: var(--surface);
  border-left: 4px solid var(--acc);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 32px;
  border-top: 1px solid var(--b1);
  border-right: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1);
}
.article-body {
  font-size: var(--article-font-size);
  line-height: var(--article-line-height);
  color: var(--text);
}
.article-body h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 25px;
  line-height: 1.25;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--b1);
  letter-spacing: -0.3px;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
}
.article-body p {
  margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  margin-bottom: 22px;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body strong {
  color: var(--text);
}
.data-table-wrap {
  background: var(--bg);
  border: 1px solid var(--b1);
  border-radius: 8px;
  overflow-x: auto;
  margin: 28px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.data-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg2);
  border-bottom: 1px solid var(--b1);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
}
.badge-tag {
  font-size: 10.5px;
  font-family: 'Geist Mono', monospace;
  background: var(--card);
  color: var(--acc);
  padding: 2px 7px;
  border-radius: 4px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.data-table th {
  background: var(--surface);
  color: var(--sub);
  font-weight: 600;
  padding: 10px 16px;
  border-bottom: 1px solid var(--b1);
}
.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--b1);
  color: var(--text);
}
.data-table tr:last-child td {
  border-bottom: none;
}
.text-red { color: var(--red); font-weight: 600; }
.text-grn { color: var(--grn); font-weight: 600; }
.font-bold { font-weight: 700; }
.visual-chart-box {
  background: var(--bg2);
  border: 1px solid var(--b1);
  border-radius: 10px;
  padding: 20px;
  margin: 28px 0;
}
.chart-header { margin-bottom: 16px; }
.chart-title { font-size: 15px; font-weight: 700; color: var(--text); }
.chart-sub { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.responsive-svg { width: 100%; height: auto; max-height: 260px; }
.chart-caption {
  font-size: 12px;
  color: var(--sub);
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--b1);
}
.checklist-card {
  background: var(--surface);
  border: 1px solid var(--b1);
  border-radius: 10px;
  padding: 24px;
  margin: 40px 0;
}
.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.checklist-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.checklist-progress {
  font-size: 11.5px;
  font-family: 'Geist Mono', monospace;
  color: var(--acc);
  font-weight: 600;
}
.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cl-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--b1);
  cursor: pointer;
  transition: all 0.15s;
}
.cl-item:hover {
  border-color: var(--b2);
}
.cl-checkbox {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.5px solid var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.cl-item.checked .cl-checkbox {
  background: var(--acc);
  border-color: var(--acc);
  color: #FFFFFF;
}
.cl-text {
  font-size: 13.5px;
  color: var(--text);
}
.cl-item.checked .cl-text {
  color: var(--dim);
  text-decoration: line-through;
}
.author-card {
  background: var(--bg2);
  border: 1px solid var(--b1);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 36px 0;
}
.author-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc3));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}
.author-card-bio h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.author-card-bio p {
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.5;
  margin: 0;
}
.prev-next-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 44px 0 32px;
}
.pn-card {
  background: var(--surface);
  border: 1px solid var(--b1);
  border-radius: 8px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pn-card:hover {
  border-color: var(--acc);
  background: var(--card);
  transform: translateY(-2px);
}
.pn-label {
  font-size: 11px;
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 6px;
  font-weight: 700;
}
.pn-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.faq-section {
  margin: 40px 0;
}
.faq-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.faq-item {
  border: 1px solid var(--b1);
  border-radius: 6px;
  background: var(--bg);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--surface); }
.faq-icon { transition: transform 0.2s; font-size: 12px; color: var(--dim); }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--acc); }
.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 13.5px;
  color: var(--sub);
  line-height: 1.6;
  border-top: 1px solid var(--b1);
  background: var(--bg2);
}
.faq-item.open .faq-a { display: block; }
.regulatory-notice {
  background: var(--bg2);
  border: 1px solid var(--b1);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.5;
  margin: 30px 0;
}
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--b1);
}
.related-header {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  background: var(--bg2);
  border: 1px solid var(--b1);
  border-radius: 8px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.related-card:hover {
  border-color: var(--acc);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.rel-category {
  font-size: 10.5px;
  font-family: 'Geist Mono', monospace;
  color: var(--acc);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.rel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 12px;
}
.rel-meta {
  font-size: 11.5px;
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.toc-card {
  background: var(--bg2);
  border: 1px solid var(--b1);
  border-radius: 8px;
  padding: 18px;
}
.toc-header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sub);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc-link {
  font-size: 13px;
  color: var(--sub);
  display: block;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
  line-height: 1.4;
}
.toc-link:hover, .toc-link.active {
  color: var(--acc);
  background: var(--card);
  font-weight: 600;
  padding-left: 12px;
}
.switcher-card {
  background: var(--bg);
  border: 1px solid var(--b1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.switcher-header {
  padding: 14px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--b1);
}
.switcher-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.switcher-search {
  width: 100%;
  padding: 7px 12px;
  font-size: 12px;
  border: 1px solid var(--b1);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.switcher-search:focus {
  border-color: var(--acc);
}
.switcher-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--b1);
  background: var(--surface);
}
.btn-tab {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--sub);
  white-space: nowrap;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-tab:hover, .btn-tab.active {
  background: var(--card);
  color: var(--acc);
  font-weight: 700;
}
.switcher-list {
  max-height: 380px;
  overflow-y: auto;
  list-style: none;
}
.sw-item {
  padding: 11px 16px;
  border-bottom: 1px solid var(--b1);
  cursor: pointer;
  transition: background 0.15s;
}
.sw-item:last-child { border-bottom: none; }
.sw-item:hover {
  background: var(--surface);
}
.sw-item.active {
  background: var(--card);
  border-left: 3px solid var(--acc);
}
.sw-badge {
  font-size: 9.5px;
  font-family: 'Geist Mono', monospace;
  color: var(--acc);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}
.sw-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.sw-time {
  font-size: 11px;
  color: var(--dim);
  margin-top: 4px;
}
.scorecard-card {
  background: var(--surface);
  border: 1px solid var(--b1);
  border-radius: 8px;
  padding: 18px;
}
.scorecard-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sub);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scorecard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sc-metric {
  background: var(--bg);
  border: 1px solid var(--b1);
  border-radius: 6px;
  padding: 10px 12px;
}
.sc-label {
  font-size: 10.5px;
  color: var(--dim);
  line-height: 1.25;
  margin-bottom: 4px;
}
.sc-val {
  font-family: 'Geist Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.sc-note {
  font-size: 9.5px;
  color: var(--sub);
  margin-top: 2px;
}
.news-card {
  background: linear-gradient(135deg, var(--card), var(--surface));
  border: 1px solid var(--b2);
  border-radius: 8px;
  padding: 18px;
}
.news-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.news-desc {
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 12px;
  line-height: 1.4;
}
.news-input-wrap {
  display: flex;
  gap: 6px;
}
.news-input {
  flex: 1;
  padding: 7px 10px;
  font-size: 12px;
  border: 1px solid var(--b1);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.news-btn {
  background: var(--acc);
  color: #FFFFFF;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  transition: opacity 0.15s;
}
.news-btn:hover { opacity: 0.9; }
@keyframes toastFade {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 1024px) {

  .layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar {
    position: static;
  }

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

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

  .article-subtitle { font-size: 15.5px; }

  .prev-next-nav { grid-template-columns: 1fr; }
}
