/* ============================================================
   CIN MASTER TEMPLATE — Shared Terminal Layout System
   Applied to ALL pages: index, markets, charts, financials,
   analyst, deals, macro, global
   ============================================================ */

/* ── Signal Strip ── */
.tpl-signal-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 8px;
}
.tpl-signal-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tpl-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(34,197,94,0.12);
  padding: 3px 10px;
  border-radius: 4px;
}
.tpl-live-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: tplPulse 2s ease-in-out infinite;
}
@keyframes tplPulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.tpl-signal-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}
.tpl-signals {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.tpl-signals span {
  color: rgba(255,255,255,0.7);
}

/* ── Page Layout: Two Column ── */
.tpl-page-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 16px;
  align-items: start;
}

/* ── Left Column ── */
.tpl-left { }
.tpl-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tpl-timestamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}
.tpl-headline {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #e0e0e0;
  line-height: 1.2;
  margin: 0 0 12px;
}
.tpl-content-block {
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 14px;
}
.tpl-content-block p,
.tpl-content-block .tpl-body-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: #888;
  line-height: 1.55;
  margin: 0 0 8px;
}
.tpl-content-block p:last-child { margin-bottom: 0; }

.tpl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #2d8a4e;
  text-decoration: none;
  padding: 7px 16px;
  border: 1px solid rgba(45,138,78,0.25);
  border-radius: 6px;
  background: rgba(45,138,78,0.06);
  transition: all 0.2s;
}
.tpl-cta-btn:hover {
  background: rgba(45,138,78,0.12);
  border-color: rgba(45,138,78,0.4);
}

/* ── Right Column: Signal Tiles ── */
.tpl-right { }
.tpl-tiles-header {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tpl-tile-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tpl-tile {
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.tpl-tile:hover {
  border-color: rgba(45,138,78,0.3);
}
.tpl-tile-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.tpl-tile-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.35;
  margin: 0 0 3px;
}
.tpl-tile-summary {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.4;
  margin: 0;
}

/* ── Dashboard Grid (Bottom) ── */
.tpl-dashboards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.tpl-dash-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.tpl-dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tpl-dash-card {
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.2s;
  display: block;
}
.tpl-dash-card:hover {
  border-color: rgba(45,138,78,0.3);
}
.tpl-dash-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #2d8a4e;
  margin: 0 0 4px;
}
.tpl-dash-card-sub {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 3px;
}
.tpl-dash-card-detail {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
  line-height: 1.4;
}
.tpl-dash-card.tpl-active {
  border-color: #2d8a4e;
  border-width: 2px;
}

/* ── Inline Data Region (for page-specific data) ── */
.tpl-data-region {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .tpl-page-layout {
    grid-template-columns: 1fr;
  }
  .tpl-dash-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tpl-headline {
    font-size: 22px;
  }
}
@media (max-width: 480px) {
  .tpl-dash-grid {
    grid-template-columns: 1fr;
  }
  .tpl-tile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
