.research-report {
  --bg: #fafaf9;
  --card: #ffffff;
  --text: #1c1917;
  --muted: #78716c;
  --border: #e7e5e4;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 calc(50% - 50vw);
  overflow-x: hidden;
}
/* Hide Ghost theme chrome on report posts so the custom report template starts the page. */
.post-template #gh-navigation,
.post-template .gh-article-header,
.post-template .gh-article-meta,
.post-template .gh-article-image {
  display: none !important;
}
.post-template .gh-main,
.post-template .gh-article,
.post-template .gh-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.research-report * { box-sizing: border-box; }
.research-report .container { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.research-report .hero {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 40%, #115e59 100%);
  color: white;
  padding: 64px 0 48px;
  margin-bottom: 40px;
}
.research-report .hero h1 { font-size: 41px; line-height: 1.25; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; color: white; }
.research-report .hero .subtitle { font-size: 20px; opacity: 0.92; margin: 0 0 24px; line-height: 1.6; color: white; }
.research-report .hero .meta { font-size: 15px; opacity: 0.78; margin: 0; color: white; }
.research-report main.container { padding-bottom: 32px; }
.research-report section { margin-bottom: 48px; }
.research-report h2 { font-size: 30px; font-weight: 700; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); color: var(--accent-dark); letter-spacing: -0.01em; }
.research-report h3 { font-size: 22px; font-weight: 600; margin: 28px 0 12px; color: #292524; }
.research-report h4 { font-size: 19px; font-weight: 600; margin: 20px 0 8px; color: #44403c; }
.research-report p { margin: 0 0 14px; }
.research-report ul, .research-report ol { margin: 0 0 18px 24px; padding: 0; }
.research-report li { margin-bottom: 6px; }
.research-report a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.research-report a:hover { color: #0d9488; }
.research-report .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.research-report .card h3 { margin-top: 0; }
.research-report .info-box, .research-report .warn-box, .research-report .danger-box, .research-report .green-box { padding: 16px 20px; margin: 20px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.research-report .info-box { border-left: 4px solid var(--accent); background: #f0fdfa; }
.research-report .warn-box { border-left: 4px solid var(--warn); background: var(--warn-bg); }
.research-report .danger-box { border-left: 4px solid var(--danger); background: var(--danger-bg); }
.research-report .green-box { border-left: 4px solid var(--green); background: var(--green-bg); }
.research-report .table-wrap { overflow-x: auto; margin: 24px 0; }
.research-report table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px !important;
  line-height: 1.62;
}
.research-report th, .research-report td {
  text-align: left;
  vertical-align: top;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: inherit !important;
}
.research-report th { background: #f5f5f4; font-weight: 700; color: #44403c; white-space: nowrap; }
.research-report tr:hover td { background: #fafaf9; }
.research-report .toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 40px; box-shadow: var(--shadow); }
.research-report .toc h2 { border-bottom: none; margin-bottom: 16px; font-size: 1.3rem; }
.research-report .toc ol { padding-left: 24px; margin-bottom: 0; }
.research-report .toc a { text-decoration: none; }
.research-report .toc a:hover { text-decoration: underline; }
.research-report .study-card { background: var(--blue-bg); border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 28px; margin: 24px 0; box-shadow: var(--shadow); }
.research-report .study-card h3 { margin-top: 0; color: var(--blue); }
.research-report blockquote { border-left: 3px solid #d6d3d1; padding: 8px 16px; margin: 16px 0; color: #57534e; font-style: italic; }
.research-report .steps { counter-reset: step; }
.research-report .step { counter-increment: step; padding: 20px 24px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.research-report .step::before { content: counter(step); display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center; background: var(--accent); color: white; border-radius: 50%; font-weight: 700; margin-right: 12px; }
.research-report .badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-right: 6px; white-space: nowrap; }
.research-report .badge.good { background: var(--green-bg); color: #166534; }
.research-report .badge.warn { background: var(--warn-bg); color: #92400e; }
.research-report .badge.bad { background: var(--danger-bg); color: #991b1b; }
.research-report .small { font-size: 16px; color: var(--muted); }
.research-report footer { margin-top: 64px; padding: 32px 0; border-top: 1px solid var(--border); font-size: 16px; color: var(--muted); }
@media (min-width: 1180px) {
  .research-report main.container {
    max-width: 1240px;
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 920px);
    column-gap: 32px;
    align-items: start;
  }
  .research-report main.container > :not(.toc) { grid-column: 2; }
  .research-report .toc {
    grid-column: 1;
    grid-row: 1 / span 40;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 20px 20px 20px 22px;
    margin: 0;
    font-size: 15px !important;
    line-height: 1.5;
  }
  .research-report .toc h2 {
    font-size: 18px !important;
    line-height: 1.25;
    margin-bottom: 12px;
    padding-bottom: 0;
  }
  .research-report .toc ol {
    padding-left: 20px;
  }
  .research-report .toc li,
  .research-report .toc a {
    font-size: 15px !important;
    line-height: 1.5;
  }
  .research-report .toc li {
    margin-bottom: 8px;
  }
}
@media (max-width: 640px) {
  .research-report .hero h1 { font-size: 29px; }
  .research-report .hero { padding: 40px 0 32px; }
  .research-report h2 { font-size: 24px; }
  .research-report .container { padding: 0 16px; }
  .research-report table { font-size: 16px !important; }
  .research-report th, .research-report td { padding: 10px 12px; }
}
