/* v36 — Strategy section */
.strategy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin-top: 16px;
  align-items: start;
}
.strategy-sidebar {
  position: sticky; top: 16px;
  background: #0f1620; border: 1px solid #1d2735; border-radius: 8px;
  padding: 16px; max-height: calc(100vh - 32px); overflow-y: auto;
}
.strategy-sidebar-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: #6b7a8f; margin: 0 0 12px 0; padding-bottom: 8px;
  border-bottom: 1px solid #1d2735;
}
.strategy-list { display: flex; flex-direction: column; gap: 4px; }
.strategy-item {
  display: flex; gap: 10px; padding: 10px; border-radius: 6px;
  color: #e6edf3; text-decoration: none; transition: background .15s;
  border: 1px solid transparent;
}
.strategy-item:hover { background: #161f2c; }
.strategy-item.active { background: #1a2536; border-color: #2a3b55; }
.strategy-item.status-soon { opacity: .55; }
.strategy-icon {
  font-size: 18px; color: #5b8def; flex-shrink: 0; width: 24px; text-align: center;
}
.strategy-item.active .strategy-icon { color: #7aa8ff; }
.strategy-meta { flex: 1; min-width: 0; }
.strategy-name {
  font-weight: 600; font-size: 13px; color: #e6edf3;
  display: flex; align-items: center; gap: 6px;
}
.strategy-desc { font-size: 11px; color: #7d8a9c; margin-top: 3px; line-height: 1.4; }
.badge-soon {
  font-size: 9px; padding: 1px 5px; border-radius: 3px;
  background: #2a3b55; color: #9bb3d6; text-transform: uppercase; letter-spacing: 1px;
}

.strategy-body { min-width: 0; }
.strategy-header { padding: 8px 0 16px; }
.strategy-header h1 { font-size: 28px; margin: 0 0 8px; color: #e6edf3; }
.strategy-intro { color: #b8c0c8; line-height: 1.6; max-width: 780px; margin: 0; }
.banner-info {
  margin-top: 16px; padding: 10px 14px; border-radius: 6px;
  background: #1a2436; border: 1px solid #2a3b55; color: #9bb3d6;
  font-size: 13px; line-height: 1.5;
}

.card {
  background: #0f1620; border: 1px solid #1d2735; border-radius: 8px;
  padding: 20px; margin-top: 16px;
}
.card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; gap: 16px;
}
.card-head h2 { margin: 0; font-size: 18px; color: #e6edf3; }
.card-head .muted { font-size: 12px; color: #6b7a8f; }
.muted { color: #6b7a8f; }
.bold { font-weight: 600; }
.pos { color: #4ade80; }
.neg { color: #f87171; }

.table-scroll { overflow-x: auto; }
.strategy-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.strategy-table th {
  text-align: left; padding: 8px 12px; color: #6b7a8f;
  font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid #1d2735;
}
.strategy-table th.r, .strategy-table td.r { text-align: right; }
.strategy-table td {
  padding: 9px 12px; border-bottom: 1px solid #161f2c;
  color: #d6dde6;
}
.strategy-table tr:last-child td { border-bottom: none; }
.strategy-table tr:hover td { background: #131c28; }
.ticker-link {
  color: #5b8def; text-decoration: none; font-weight: 600; font-family: -apple-system, "SF Mono", Menlo, monospace;
}
.ticker-link:hover { text-decoration: underline; }

.industry-block { margin-top: 18px; }
.industry-block:first-child { margin-top: 0; }
.industry-block-title {
  font-size: 13px; color: #5b8def; margin: 0 0 8px;
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}

#strategy-treemap { width: 100%; height: 640px; }
.treemap-tooltip {
  position: absolute; pointer-events: none; opacity: 0;
  background: #0a0f17; border: 1px solid #2a3b55;
  border-radius: 4px; padding: 8px 12px; color: #e6edf3;
  font-size: 12px; line-height: 1.5; z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4); transition: opacity .12s;
}

.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 48px; color: #2a3b55; margin-bottom: 16px; }
.empty-state h2 { margin: 0 0 8px; color: #e6edf3; }
.empty-state p { color: #7d8a9c; max-width: 400px; margin: 0 auto; }

@media (max-width: 900px) {
  .strategy-layout { grid-template-columns: 1fr; }
  .strategy-sidebar { position: relative; max-height: none; }
  #strategy-treemap { height: 500px; }
}

/* v36.1 — Hero banner / pillars / RRG / sparklines */

.hero-banner {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin: 16px 0; padding: 16px;
  background: linear-gradient(180deg, #131c28 0%, #0f1620 100%);
  border: 1px solid #1d2735; border-radius: 8px;
}
.hero-banner .kpi {
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px 8px; border-left: 2px solid #1d2735;
}
.hero-banner .kpi:first-child { border-left: none; }
.kpi-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: #6b7a8f; font-weight: 600; }
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.kpi-leader-row { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.kpi-leader-name { font-size: 14px; color: #e6edf3; font-weight: 600; }
.kpi-leader-pct { font-size: 18px; font-weight: 700; }

.sector-pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.sector-pillar {
  background: #0f1620; border: 1px solid #1d2735; border-radius: 6px;
  padding: 12px; transition: border-color .15s;
  display: flex; flex-direction: column; gap: 4px; position: relative;
}
.sector-pillar.up { border-left: 3px solid #4ade80; }
.sector-pillar.down { border-left: 3px solid #f87171; }
.sector-pillar.flat { border-left: 3px solid #6b7a8f; }
.sector-pillar:hover { border-color: #2a3b55; }
.pillar-name { font-size: 12px; color: #b8c0c8; font-weight: 600; line-height: 1.3; min-height: 32px; }
.pillar-pct { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.sector-pillar.up .pillar-pct { color: #4ade80; }
.sector-pillar.down .pillar-pct { color: #f87171; }
.sector-pillar.flat .pillar-pct { color: #9bb3d6; }
.pillar-spark { width: 100%; height: 24px; opacity: 0.7; }
.sector-pillar.up .pillar-spark { color: #4ade80; }
.sector-pillar.down .pillar-spark { color: #f87171; }
.sector-pillar.flat .pillar-spark { color: #6b7a8f; }
.pillar-meta { font-size: 10px; color: #6b7a8f; text-transform: uppercase; letter-spacing: 1px; }

#rotation-quadrant { width: 100%; height: 460px; }
.quadrant-legend {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px;
  margin-top: 12px; font-size: 12px; color: #b8c0c8;
}
.quad-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 8px; vertical-align: middle;
}
.quad-leading { background: #4ade80; }
.quad-improving { background: #5b8def; }
.quad-weakening { background: #fbbf24; }
.quad-lagging { background: #f87171; }

.row-spark { width: 80px; height: 24px; vertical-align: middle; }

.strategy-table.sortable th { cursor: pointer; user-select: none; }
.strategy-table.sortable th:hover { color: #e6edf3; }
.strategy-table.sortable th.sort-asc::after { content: " ▲"; font-size: 9px; color: #5b8def; }
.strategy-table.sortable th.sort-desc::after { content: " ▼"; font-size: 9px; color: #5b8def; }

@media (max-width: 900px) {
  .hero-banner { grid-template-columns: repeat(2, 1fr); }
  .hero-banner .kpi { border-left: none; }
  .sector-pillars { grid-template-columns: repeat(2, 1fr); }
  #rotation-quadrant { height: 380px; }
  .quadrant-legend { grid-template-columns: 1fr; }
}

/* v37 — strategy badges */
.badge-pos {
  display:inline-block; padding:2px 8px; border-radius:3px;
  background:rgba(74,222,128,0.15); color:#4ade80;
  font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px;
}
.badge-neg {
  display:inline-block; padding:2px 8px; border-radius:3px;
  background:rgba(248,113,113,0.15); color:#f87171;
  font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px;
}
#pead-scatter, #iv-scatter { width:100%; height:380px; }
