/**
 * Front-end styling for Analysis Reports (Warm Modern). Scoped under
 * .fa-report-page so it works with any active theme.
 * @package FinanceAnalyzer
 */
.fa-report-page {
    --bg: #f4efe6; --surface: #fffefb; --surface-2: #faf5ec;
    --ink: #2b2620; --dim: #6f665a; --faint: #9c9384;
    --border: #e8dfd0; --border-2: #ddd0bb;
    --accent: #0e7c6b; --accent-ink: #0a5d50; --accent-soft: #dcece8;
    --pos: #2f8f5b; --pos-soft: #dcefe2; --amber: #c1882b; --amber-soft: #f3e7cf;
    --neg: #c0533c; --neg-soft: #f5e0d8;
    --shadow: 0 1px 2px rgba(70,55,40,.05), 0 14px 34px -20px rgba(70,55,40,.22);
    --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-family: var(--sans); color: var(--ink); background: var(--bg);
    -webkit-font-smoothing: antialiased; line-height: 1.6;
    min-height: 100vh; padding: 0 0 64px;
}
.fa-report-page * { box-sizing: border-box; }
.fa-report-page .wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.fa-report-page .wrap.wide { max-width: 1120px; }
.fa-report-page .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Breadcrumb / back */
.fa-rpt-top { padding: 22px 0 0; }
.fa-rpt-back { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.fa-rpt-back:hover { text-decoration: underline; }

/* Report header */
.fa-rpt-head { margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.fa-rpt-head__main { padding: 26px 28px; display: flex; gap: 22px; align-items: flex-start; }
.fa-rpt-id { flex: 1; }
.fa-rpt-ticker { display: inline-flex; align-items: center; gap: 10px; }
.fa-rpt-ticker .sym { font-family: var(--mono); font-weight: 800; font-size: 14px; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 11px; border-radius: 8px; }
.fa-rpt-ticker .sector { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.fa-rpt-title { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -0.8px; font-weight: 800; margin: 14px 0 0; }
.fa-rpt-company { color: var(--dim); font-size: 15px; margin-top: 8px; }
.fa-rpt-byline { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--faint); font-size: 13px; }
.fa-rpt-byline .av { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(150deg,#15a08a,var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.fa-rpt-byline strong { color: var(--dim); font-weight: 700; }

/* Score + rating block on the right */
.fa-rpt-meta { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; min-width: 120px; }
.fa-rpt-ring { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--mono); font-weight: 800; font-size: 27px; box-shadow: 0 10px 22px -10px rgba(70,55,40,.4); }
.fa-rpt-grade { font-size: 12px; font-weight: 800; color: var(--dim); }
.fa-rpt-rating { display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.fa-rpt-rating.pos { background: var(--pos-soft); color: #1f6e44; }
.fa-rpt-rating.amber { background: var(--amber-soft); color: #8a5e15; }
.fa-rpt-rating.neg { background: var(--neg-soft); color: #9a3a26; }
.fa-rpt-rating.muted { background: #eceae5; color: var(--dim); }

/* Stat strip under header */
.fa-rpt-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.fa-rpt-stat { padding: 14px 20px; border-right: 1px solid var(--border); }
.fa-rpt-stat:last-child { border-right: 0; }
.fa-rpt-stat .l { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); font-weight: 800; }
.fa-rpt-stat .v { font-family: var(--mono); font-size: 16px; font-weight: 700; margin-top: 5px; }
@media (max-width: 640px) {
    .fa-rpt-head__main { flex-direction: column-reverse; align-items: stretch; }
    .fa-rpt-meta { flex-direction: row; align-items: center; justify-content: flex-start; }
    .fa-rpt-stats { grid-template-columns: 1fr; }
    .fa-rpt-stat { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* Article body */
.fa-rpt-body { margin-top: 28px; font-size: 17px; color: #34302a; }
.fa-rpt-body h2 { font-size: 22px; letter-spacing: -0.4px; margin: 34px 0 12px; color: var(--ink); }
.fa-rpt-body h3 { font-size: 18px; margin: 26px 0 10px; color: var(--ink); }
.fa-rpt-body p { margin: 0 0 16px; }
.fa-rpt-body ul, .fa-rpt-body ol { margin: 0 0 16px; padding-left: 22px; }
.fa-rpt-body li { margin: 6px 0; }
.fa-rpt-body img { border-radius: 12px; max-width: 100%; height: auto; }
.fa-rpt-body blockquote { margin: 20px 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--dim); font-style: italic; }
.fa-rpt-body a { color: var(--accent-ink); }
.fa-rpt-body figure { margin: 18px 0; }

/* Disclaimer */
.fa-rpt-disc { margin-top: 36px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; font-size: 13px; color: var(--faint); }

/* Archive */
.fa-rpt-archive-head { padding: 36px 0 8px; }
.fa-rpt-archive-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -1px; margin: 0; }
.fa-rpt-archive-head p { color: var(--dim); margin: 10px 0 0; font-size: 16px; }
.fa-rpt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 28px; }
.fa-rpt-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.fa-rpt-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(70,55,40,.06), 0 22px 44px -22px rgba(70,55,40,.3); }
.fa-rpt-card__top { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.fa-rpt-card__sym { font-family: var(--mono); font-weight: 800; font-size: 13px; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 8px; }
.fa-rpt-card__ring { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--mono); font-weight: 800; font-size: 14px; }
.fa-rpt-card__body { padding: 16px 18px; flex: 1; }
.fa-rpt-card__title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; }
.fa-rpt-card__excerpt { color: var(--dim); font-size: 14px; margin-top: 8px; line-height: 1.55; }
.fa-rpt-card__foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--faint); }
.fa-rpt-empty { text-align: center; color: var(--dim); padding: 60px 20px; }
.fa-rpt-pagination { margin-top: 28px; display: flex; gap: 8px; justify-content: center; }
.fa-rpt-pagination a, .fa-rpt-pagination span { padding: 8px 13px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.fa-rpt-pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
