/* ============================================================
   InvestAwareHub — Research Report styling
   Scoped to .research-report (single-research.php). Turns plain
   editor content into a designed, Centricity-grade report.
   ============================================================ */
.research-report{
  --rr-navy:#111844; --rr-blue:#1591DC; --rr-ink:#16223A; --rr-mut:#4C566B;
  --rr-mist:#F7FAFC; --rr-line:#E3E9F2; --rr-up:#16a34a; --rr-down:#dc2626;
  --rr-cta:#0E6CB6;
}

/* ---------- Masthead ---------- */
.rr-masthead{background:var(--rr-navy);color:#fff;border-radius:16px;padding:30px 34px;margin-bottom:28px;}
.rr-eyebrow{font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#9db2c8;margin:0 0 12px;}
.rr-masthead h1{font-family:'Fraunces',serif;font-weight:560;font-size:clamp(26px,4vw,40px);line-height:1.12;margin:0 0 14px;color:#fff;}
.rr-metaline{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13.5px;color:#c7d4e4;font-family:'Inter',sans-serif;}
.rr-metaline .sep{color:#46527a;}
.rr-cover{margin:0 0 28px;}
.rr-cover img{width:100%;border-radius:14px;display:block;}

/* ---------- Content rhythm ---------- */
.research-content{font-family:'Inter',sans-serif;color:var(--rr-ink);font-size:16.5px;line-height:1.72;}
.research-content > *:first-child{margin-top:0;}
.research-content p{margin:0 0 1.05em;}
.research-content a{color:var(--rr-cta);text-underline-offset:2px;}

/* section headers (h2) get a branded rule; h3 subsections */
.research-content h2{
  font-family:'Fraunces',serif;font-weight:540;font-size:24px;line-height:1.2;color:var(--rr-navy);
  margin:2em 0 .7em;padding-top:.7em;border-top:2px solid var(--rr-line);position:relative;
}
.research-content h2::before{content:"";position:absolute;top:-2px;left:0;width:64px;height:2px;background:var(--rr-blue);}
.research-content h3{font-family:'Fraunces',serif;font-weight:540;font-size:19px;color:var(--rr-navy);margin:1.5em 0 .5em;}
.research-content h4{font-family:'Inter',sans-serif;font-weight:600;font-size:15px;letter-spacing:.01em;color:var(--rr-ink);margin:1.3em 0 .4em;}
.research-content ul,.research-content ol{margin:0 0 1.1em;padding-left:1.25em;}
.research-content li{margin:.3em 0;}
.research-content blockquote{margin:1.4em 0;padding:14px 20px;background:var(--rr-mist);border-left:3px solid var(--rr-blue);border-radius:0 10px 10px 0;color:var(--rr-ink);font-style:normal;}
.research-content blockquote p:last-child{margin-bottom:0;}
.research-content hr{border:0;border-top:1px solid var(--rr-line);margin:2em 0;}
.research-content img{max-width:100%;height:auto;border-radius:12px;}

/* ---------- Branded data tables (any <table> the user types) ---------- */
.research-content table{
  width:100%;border-collapse:separate;border-spacing:0;margin:1.4em 0;font-size:14.5px;
  border:1px solid var(--rr-line);border-radius:12px;overflow:hidden;font-variant-numeric:tabular-nums;
}
.research-content thead th{
  background:var(--rr-navy);color:#fff;font-weight:600;text-align:left;padding:11px 14px;font-size:13px;
  letter-spacing:.01em;border-bottom:1px solid var(--rr-navy);
}
.research-content tbody td,.research-content tbody th{padding:10px 14px;border-bottom:1px solid var(--rr-line);text-align:left;}
.research-content tbody tr:nth-child(even) td,.research-content tbody tr:nth-child(even) th{background:#fbfdff;}
.research-content tbody tr:last-child td,.research-content tbody tr:last-child th{border-bottom:0;}
.research-content tbody th{font-weight:600;color:var(--rr-navy);}
/* numeric helper: add class="num" to a table for right-aligned data cells */
.research-content table.num td+td,.research-content table.num th+th{text-align:right;}

/* colored change value — via [chg] shortcode or .up/.down spans */
.rr-up{color:var(--rr-up);font-weight:600;}
.rr-down{color:var(--rr-down);font-weight:600;}
.rr-flat{color:var(--rr-mut);font-weight:600;}

/* ---------- KPI / stat strip ([stats][stat]) ---------- */
.rr-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:1.5em 0;}
.rr-stat{background:#fff;border:1px solid var(--rr-line);border-radius:12px;padding:14px 16px;}
.rr-stat .l{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--rr-mut);margin:0 0 6px;}
.rr-stat .v{font-family:'Fraunces',serif;font-weight:540;font-size:23px;color:var(--rr-navy);line-height:1;}
.rr-stat .c{font-size:13px;font-weight:600;margin-top:5px;}

/* ---------- Callout ([callout]) ---------- */
.rr-callout{background:var(--rr-mist);border:1px solid var(--rr-line);border-left:4px solid var(--rr-blue);border-radius:0 12px 12px 0;padding:16px 20px;margin:1.5em 0;}
.rr-callout .t{font-weight:600;color:var(--rr-navy);margin:0 0 6px;}
.rr-callout > :last-child{margin-bottom:0;}

/* ---------- Two column ([twocol][col]) ---------- */
.rr-twocol{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:1.5em 0;}
.rr-twocol > .rr-col > :last-child{margin-bottom:0;}
@media(max-width:680px){.rr-twocol{grid-template-columns:1fr;gap:14px;}}

/* ---------- Chart figure ([chart]) ---------- */
.rr-figure{margin:1.6em 0;}
.rr-figure img{width:100%;border:1px solid var(--rr-line);border-radius:12px;display:block;}
.rr-figure figcaption{font-size:13px;color:var(--rr-mut);margin-top:8px;text-align:center;}
.rr-source{display:block;font-size:12px;color:var(--rr-mut);text-align:right;margin:.4em 0 1.4em;font-style:italic;}

/* ---------- PDF card ([report_pdf]) ---------- */
.rr-pdf{display:flex;gap:18px;align-items:center;background:#fff;border:1px solid var(--rr-line);border-radius:14px;padding:18px 20px;margin:1.6em 0;}
.rr-pdf-cover{width:96px;flex:0 0 96px;border-radius:8px;overflow:hidden;border:1px solid var(--rr-line);background:var(--rr-mist);}
.rr-pdf-cover img{width:100%;display:block;}
.rr-pdf-body{flex:1;min-width:0;}
.rr-pdf-body .k{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--rr-mut);margin:0 0 4px;}
.rr-pdf-body h4{font-family:'Fraunces',serif;font-weight:540;font-size:18px;color:var(--rr-navy);margin:0 0 4px;}
.rr-pdf-body p{font-size:13.5px;color:var(--rr-mut);margin:0 0 12px;}
.rr-pdf-btns{display:flex;gap:10px;flex-wrap:wrap;}
.rr-btn{display:inline-flex;align-items:center;gap:7px;background:var(--rr-cta);color:#fff;text-decoration:none;font-weight:600;font-size:14px;padding:9px 16px;border-radius:9px;}
.rr-btn.ghost{background:#fff;color:var(--rr-cta);border:1px solid var(--rr-line);}
.rr-pdf-embed{margin:1.4em 0;border:1px solid var(--rr-line);border-radius:12px;overflow:hidden;}
.rr-pdf-embed object,.rr-pdf-embed iframe{width:100%;height:760px;display:block;border:0;}
@media(max-width:560px){.rr-pdf{flex-direction:column;align-items:flex-start;}.rr-pdf-cover{width:120px;flex-basis:auto;}}

/* ---------- Report meta strip ([report_meta]) ---------- */
.rr-meta{display:flex;flex-wrap:wrap;gap:8px 18px;padding:12px 0;border-top:1px solid var(--rr-line);border-bottom:1px solid var(--rr-line);margin:0 0 1.6em;font-size:13.5px;color:var(--rr-mut);}
.rr-meta b{color:var(--rr-navy);font-weight:600;}

/* ---------- Disclaimer ([disclaimer]) ---------- */
.rr-disclaimer{background:var(--rr-navy);color:#c7d4e4;border-radius:14px;padding:20px 24px;margin:2.2em 0 0;font-size:12.5px;line-height:1.65;}
.rr-disclaimer .t{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#9db2c8;margin:0 0 8px;}