/* ======================================
   HOME PAGE ONLY
   ====================================== */

.home-intelligence {
  padding: 2.5rem 0 4rem;
}

.home-intelligence .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* ======================================
   NEWS SECTION
   ====================================== */

.home-intelligence .news-section {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}

.home-intelligence .news-section h2 {
  font-size: 2.2rem;
  margin: 0 0 1.5rem;
}

.home-intelligence .news-feed {
  display: grid;
  gap: 20px;
}

.home-intelligence .news-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.home-intelligence .news-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.home-intelligence .news-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.home-intelligence .news-source {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-intelligence .news-content h3 {
  margin: 0;
  line-height: 1.35;
}

.home-intelligence .news-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.home-intelligence .news-item a:hover {
  text-decoration: underline;
}

.home-intelligence .news-item time {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ======================================
   MARKET DATA SECTION
   ====================================== */

.home-intelligence .market-section {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.home-intelligence .market-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

/* HEADINGS */

.home-intelligence .market-box h2 {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 12px;
}

/* DATA NOTES */

.home-intelligence .data-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 12px;
}

/* RATES TABLE */

.home-intelligence .rates-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.home-intelligence .rates-table td {
  padding: 10px 0;
  font-size: 0.95rem;
}

.home-intelligence .rates-table td:first-child {
  text-align: left;
}

.home-intelligence .rates-table td:last-child {
  text-align: right;
  font-weight: 600;
}

/* TREASURY VALUE */

.home-intelligence .treasury-value {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin: 1.5rem 0 0.75rem;
}

/* ======================================
   TREASURY CHART (STABLE FIX)
   ====================================== */

.treasury-chart-wrap {
  width: 100%;
  height: 160px;
  position: relative;
  margin-top: 8px;
}

#treasuryChart {
  width: 100%;
  height: 100%;
  display: block;
}

/* ======================================
   INFO TOOLTIP (FINAL CLEAN VERSION)
   ====================================== */

.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.info-tooltip .tooltip-content {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.7rem;
  line-height: 1.35;
  width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.info-tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

.info-tooltip .tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #222 transparent transparent transparent;
}

/* ======================================
   MOBILE
   ====================================== */

@media (max-width: 900px) {
  .home-intelligence .market-section {
    grid-template-columns: 1fr;
  }

  .home-intelligence .news-item {
    align-items: flex-start;
  }
}
