/* 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);
}

/* ================================
   AI content typography helpers
   ================================ */
.cse-ai-text {
  line-height: 1.65;
}
.cse-ai-text p {
  margin: 0 0 0.9em;
}
.cse-ai-text p:last-child {
  margin-bottom: 0;
}
.cse-ai-text ul,
.cse-ai-text ol {
  margin: 0 0 1em 1.2em;
}


/* PopQuest: make auto-links look like links (glow green) */
.cse-entity-content a,
.cse-entity-content a:visited {
  color: #91F88D;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(145, 248, 141, 0.35);
}
.cse-entity-content a:hover,
.cse-entity-content a:focus {
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(145, 248, 141, 0.75);
}


/* PopQuest autolinks (AI entity links + directory links) */
.pq-autolink{color:#91F88D;font-weight:800;text-decoration:none;}
.pq-autolink:hover{text-decoration:underline;}

/* SEO profile modules */
.cse-summary-card{margin:0 0 22px;padding:18px 18px 14px;border:1px solid rgba(145,248,141,.35);border-radius:16px;background:#0d0d0d;color:#fff;box-shadow:0 0 0 1px rgba(145,248,141,.08),0 10px 28px rgba(0,0,0,.12)}
.cse-summary-card__eyebrow{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#91F88D;color:#000;font-weight:800;font-size:12px;letter-spacing:.04em;margin:0 0 12px}
.cse-summary-card__text{margin:0 0 14px;font-size:17px;line-height:1.65;color:#fff}
.cse-summary-card__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.cse-summary-card__row{padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.cse-summary-card__k{display:block;font-size:12px;line-height:1.2;color:#91F88D;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin:0 0 6px}
.cse-summary-card__v{display:block;font-size:15px;line-height:1.45;color:#fff;font-weight:700}
.cse-seo-facts{margin:0 0 20px}
.cse-seo-facts .cse-facts{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.cse-seo-facts .cse-facts li{margin:0;padding:12px 14px;border-radius:14px;background:#f6f6f6;border:1px solid rgba(0,0,0,.08);color:#000;line-height:1.45}
.cse-seo-facts .cse-facts strong{display:block;color:#000;font-weight:800;margin:0 0 4px}
.cse-related{margin:28px 0 0}
.cse-related__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.cse-related__card{display:block;padding:14px 16px;border-radius:16px;background:#000 !important;border:1px solid rgba(145,248,141,.35);box-shadow:0 0 0 1px rgba(145,248,141,.08),0 0 18px rgba(145,248,141,.14);text-decoration:none !important}
.cse-related__name{display:block;color:#91F88D;font-weight:900;font-size:16px;line-height:1.3;margin:0 0 6px}
.cse-related__meta{display:block;color:#fff;opacity:.8;font-size:13px;line-height:1.35}
.cse-entity-content .cse-ai-text p + p{margin-top:1.25em}
.cse-entity-content .cse-ai-text a,.cse-entity-content a.pq-autolink{color:#91F88D;font-weight:800;text-decoration:none;box-shadow:0 1px 0 rgba(145,248,141,.45)}
.cse-entity-content .cse-ai-text a:hover,.cse-entity-content a.pq-autolink:hover{text-decoration:none;box-shadow:0 2px 0 rgba(145,248,141,.7)}
@media (max-width:767px){.cse-summary-card{padding:16px}.cse-summary-card__text{font-size:16px}.cse-summary-card__grid,.cse-seo-facts .cse-facts,.cse-related__grid{grid-template-columns:1fr}}


/* Square panels only: keep pills/buttons rounded */
.cse-summary-card,
.cse-summary-card__row,
.cse-seo-facts .cse-facts li,
.cse-related__card,
.cse-chart,
.cse-fact,
.cse-entity-img {
  border-radius: 0 !important;
}
