/* Pop Quest — CSE stock index styling */
.cse-archive, .cse-entity { }
.cse-archive h1, .cse-archive h2, .cse-entity h1, .cse-entity h2, .cse-entity h3 { font-family: var(--cse-heading-font); letter-spacing: .2px; }

/* Display title on entity pages only (Horizon) */
.cse-entity .cse-title {
  font-family: 'HORIZON BOLD', 'Horizon-Bold', 'Horizon', var(--cse-heading-font) !important;
  letter-spacing: 0.02em;
  font-weight: 700 !important;
}

/* Fallback: if the theme/template outputs a plain H1 without .cse-title */
.cse-entity h1 {
  font-family: 'HORIZON BOLD', 'Horizon-Bold', 'Horizon', var(--cse-heading-font) !important;
  letter-spacing: 0.02em;
  font-weight: 700 !important;
}
.cse-index-wrap{ max-width:1100px; margin:20px auto; padding:0 12px; }
.cse-index-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.cse-index-sub{ opacity:.75; font-size:13px; }
.cse-controls{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:10px 0 14px; }
.cse-search{ padding:10px 12px; border:1px solid #ddd; border-radius:12px; min-width:240px; }
.cse-select{ padding:10px 12px; border:1px solid #ddd; border-radius:12px; }
.cse-table{ width:100%; border-collapse:separate; border-spacing:0; border:1px solid #eee; border-radius:16px; overflow:hidden; background:#fff; }
.cse-table th, .cse-table td{ padding:10px 10px; border-bottom:1px solid #f0f0f0; font-size:14px; vertical-align:middle; }
.cse-table th{ text-align:left; font-weight:700; cursor:pointer; user-select:none; background:#fafafa; position:sticky; top:0; z-index:1; }
.cse-table tr:last-child td{ border-bottom:none; }
.cse-rowlink{ color:inherit; text-decoration:none; display:flex; align-items:center; gap:10px; }
.cse-avatar{ width:34px; height:34px; border-radius:10px; object-fit:cover; background:#f2f2f2; flex:0 0 auto; }
.cse-pill{ display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px; background:#91F88D; color:#000; font-weight:700; font-size:12px; line-height:1; white-space:nowrap; }
.cse-pill--dead{ background:#000; color:#fff; }
.cse-num{ font-variant-numeric: tabular-nums; white-space:nowrap; }
.cse-chg-up{ }
.cse-chg-down{ }
.cse-muted{ opacity:.7; }

.cse-pill--breaking{ background:#91F88D; color:#000; }


/* Entity pages: force H1 to use hosted HORIZON BOLD (no other changes) */
.single-cse_entity h1,
.single-cse-entity h1,
.single-cse_entity .cse-title,
.single-cse-entity .cse-title,
.cse-entity h1,
.cse-entity .cse-title {
  font-family: 'HORIZON BOLD', 'Horizon-Bold', 'Horizon', sans-serif !important;
}



/* --- Entity page redesign (PopQuest) --- */
.cse-entity-header{ background:#000; color:#fff; padding:18px 0; }
.cse-entity-header a{ color:#fff; }
.cse-entity-inner{ max-width:960px; margin:0 auto; padding:0 12px; }
.cse-entity-card{ display:flex; gap:16px; align-items:flex-start; }
.cse-entity-photo{ width:240px; flex:0 0 240px; }
.cse-entity-img{ width:100%; height:auto; display:block; border-radius:16px; background:#111; object-fit:cover; }
.cse-entity-img--placeholder{ height:320px; }
.cse-entity-top{ flex:1 1 auto; min-width:0; }
.cse-entity-top .cse-title{ margin:0; color:#fff; }
.cse-entity-pills{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.cse-pill{ background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); border-radius:999px; padding:8px 12px; display:flex; gap:8px; align-items:baseline; }
.cse-pill-label{ font-size:12px; opacity:.85; }
.cse-pill-value{ font-size:14px; font-weight:700; }
.cse-pill--muted{ opacity:.7; }
.cse-pill--ghost{ background:transparent; border:1px solid rgba(255,255,255,.28); }
.cse-entity-updated{ margin-top:10px; font-size:12px; line-height:18px; opacity:.9; }
.cse-entity-facts{ margin-top:12px; display:flex; flex-wrap:wrap; gap:12px; }
.cse-fact{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:10px 12px; display:flex; gap:10px; color:#fff; }
.cse-fact-k{ font-size:12px; opacity:.85; }
.cse-fact-v{ font-size:13px; font-weight:600; }

/* Special fact styles to keep these readable on black header */
.cse-fact.cse-fact--born{ background:#fff; border-color:rgba(255,255,255,.65); color:#000; }
.cse-fact.cse-fact--born .cse-fact-k,
.cse-fact.cse-fact--born .cse-fact-v{ color:#000; opacity:1; }

.cse-fact.cse-fact--status-deceased,
.cse-fact.cse-fact--died{ background:#fff; border-color:rgba(255,255,255,.65); color:#000; }
.cse-fact.cse-fact--status-deceased .cse-fact-k,
.cse-fact.cse-fact--status-deceased .cse-fact-v,
.cse-fact.cse-fact--died .cse-fact-k,
.cse-fact.cse-fact--died .cse-fact-v{ color:#000; opacity:1; }

.cse-fact.cse-fact--status-alive,
.cse-fact.cse-fact--status-alive .cse-fact-k,
.cse-fact.cse-fact--status-alive .cse-fact-v{ color:#fff; }

/*
 * Hard overrides (theme-safe):
 * - Alive status text must be white.
 * - Date of birth pill must be white.
 */
.cse-entity .cse-fact.cse-fact--status-alive .cse-fact-k,
.cse-entity .cse-fact.cse-fact--status-alive .cse-fact-v{ color:#fff !important; }

.cse-entity .cse-fact.cse-fact--dob,
.cse-entity .cse-fact.cse-fact--born,
.cse-entity .cse-fact.cse-fact--birth,
.cse-entity .cse-pill.cse-pill--dob,
.cse-entity .cse-pill.cse-pill--born{
  background:#fff !important;
  color:#000 !important;
  border-color:#ddd !important;
}
.cse-entity .cse-fact.cse-fact--dob .cse-fact-k,
.cse-entity .cse-fact.cse-fact--dob .cse-fact-v,
.cse-entity .cse-fact.cse-fact--born .cse-fact-k,
.cse-entity .cse-fact.cse-fact--born .cse-fact-v,
.cse-entity .cse-pill.cse-pill--dob span,
.cse-entity .cse-pill.cse-pill--born span{ color:#000 !important; }

.cse-trade-inline{ margin-top:12px; }

/* --- Entity chart (24H / 7D) --- */
.cse-chart{ margin-top:14px; padding:12px; border-radius:16px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); }
.cse-chart__top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.cse-chart__title{ font-size:13px; font-weight:700; letter-spacing:.2px; }
.cse-chart__tabs{ display:flex; gap:8px; }
.cse-chart__tab{ appearance:none; border:1px solid rgba(255,255,255,.22); background:transparent; color:#fff; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; cursor:pointer; }
.cse-chart__tab.is-active{ background:#91F88D; border-color:#91F88D; color:#000; }
.cse-chart__tab:disabled{ opacity:.35; cursor:not-allowed; }
.cse-chart__svg{ width:100%; height:150px; display:block; }
.cse-chart__meta{ margin-top:8px; display:flex; gap:14px; font-size:12px; opacity:.9; flex-wrap:wrap; }
.cse-chart__chg{ margin-left:auto; font-weight:800; }
.cse-entity-main{ background:#fff; color:#000; padding:18px 0 28px; }
.cse-entity-main .cse-entity-content{ font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight:400; font-size:16px; line-height:23px; color:#000; }
@media (max-width: 820px){
  .cse-entity-card{ flex-direction:column; }
  .cse-entity-photo{ width:100%; flex:0 0 auto; max-width:420px; }
}


/* PQ pill contrast overrides (v1.3.0) */
.cse-entity-pills .cse-pill,
.cse-entity-pills .cse-pill *{
  color:#fff !important;
}

/* Deceased / Dead pills: white pill, black text */
.cse-entity-pills .cse-pill--dead,
.cse-entity-pills .cse-pill--deceased{
  background:#fff !important;
  border-color:#fff !important;
}
.cse-entity-pills .cse-pill--dead *,
.cse-entity-pills .cse-pill--deceased *{
  color:#000 !important;
}

/* Force DOB pill white (theme-safe) */
.cse-entity-facts .cse-fact.cse-fact--born{background:#fff!important;color:#000!important;border-color:#000!important;}
.cse-entity-facts .cse-fact.cse-fact--born .cse-fact-k,.cse-entity-facts .cse-fact.cse-fact--born .cse-fact-v{color:#000!important;}



/* === Account Portfolio (Tiles) Text Fix === */
.pq-account .cse-portfolio--tiles,
.pq-account .cse-portfolio--tiles *,
.pq-account .cse-tiles,
.pq-account .pq-account .cse-tile,
.pq-account .cse-tile *{
  color:#000 !important;
}

.pq-account .cse-tile{ background:#fff !important; }
.pq-account .cse-tile__name,
.pq-account .cse-tile__name:visited{ color:#000 !important; }

.pq-account .cse-chip{ background:rgba(0,0,0,.06) !important; color:#000 !important; }
.pq-account .cse-stat{ background:rgba(0,0,0,.02) !important; }
.pq-account .cse-stat__k{ color:rgba(0,0,0,.65) !important; }
.pq-account .cse-stat__v{ color:#000 !important; }

.pq-account .cse-portfolio__title,
.pq-account .cse-portfolio__note{ color:#fff !important; }
/* title/note sit on dark pane; keep white */


/* === Tile Link Fix === */
.pq-account .cse-tile__name,
.pq-account .cse-tile__name:visited{
  color:#000 !important;
  text-decoration:none;
  font-weight:800;
}

.pq-account .cse-tile__name:hover{
  text-shadow:0 0 8px rgba(145,248,141,.6);
}
