:root {
    --reports-navy: #0f2a43;
    --reports-navy-deep: #091e32;
    --reports-coral: #ff6b5e;
    --reports-blue: #2563eb;
    --reports-ice: #f5f8fc;
    --reports-muted: #627386;
    --reports-line: #dbe5ef;
  }

  body.reports-page {
    display: flex;
    min-height: 100vh;
    margin: 0;
    flex-direction: column;
    background: var(--reports-ice);
    color: var(--reports-navy);
  }
  body.reports-page > main { flex: 1 0 auto; }
  .reports-navbar { height: 68px; }
  .reports-nav-actions { display: flex; align-items: center; gap: 1.25rem; }
  .reports-nav-link { color: rgba(255,255,255,.76); font-weight: 600; }
  .reports-nav-link:hover { color: #fff; }
  .reports-navbar .btn { padding: .55rem .9rem; border-radius: 9px; font-size: .84rem; }

  .reports-hero { position: relative; min-height: 430px; padding: 150px 0 80px; overflow: hidden; background: radial-gradient(circle at 78% 25%, rgba(37,99,235,.2), transparent 30%), var(--reports-navy); }
  .reports-hero:before { background: none; }
  .reports-hero:after { content: ""; position: absolute; width: 430px; height: 430px; inset: auto -110px -250px auto; z-index: 0; border: 1px solid rgba(219,234,254,.1); border-radius: 50%; background: transparent; }
  .reports-hero .container { position: relative; z-index: 5; }
  .reports-kicker { margin-bottom: 1rem; color: var(--reports-coral); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
  .reports-hero h1 { max-width: 760px; margin: 0 auto 1.25rem; color: #fff; font-size: clamp(2.7rem, 5vw, 4.7rem); line-height: 1.04; letter-spacing: -.045em; }
  .reports-hero p:last-child { max-width: 650px; color: #c8d5e2; font-size: 1.08rem; }
  .reports-index { padding: 80px 0 100px; }
  .reports-intro { margin-bottom: 2rem; }
  .reports-intro h2 { color: var(--reports-navy); letter-spacing: -.025em; }
  .reports-intro p { margin: 0; }
  .report-card { position: relative; border: 1px solid var(--reports-line) !important; border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(15,42,67,.06) !important; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
  .report-card:before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--reports-coral), #ff9c83); }
  .report-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(15,42,67,.11) !important; }
  .report-card-label { color: var(--reports-coral); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .report-card h2 { margin: 1rem 0; color: var(--reports-navy); line-height: 1.3; }
  .report-card-link { color: var(--reports-navy); font-weight: 700; }
  .report-card-link i { margin-left: .4rem; color: var(--reports-coral); transition: transform .2s ease; }
  .report-card-link:hover { color: var(--reports-coral); }
  .report-card-link:hover i { transform: translateX(4px); }

  .report-main { min-height: 70vh; padding: 120px 0 80px; background: var(--reports-ice); }
  .report-main .report-article { max-width: 58rem !important; border: 1px solid var(--reports-line) !important; border-radius: 20px; box-shadow: 0 20px 60px rgba(15,42,67,.08) !important; overflow: hidden; }
  .report-main .report-article:before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--reports-coral), #ff9c83); }
  .report-main .report-article .card-body { padding: clamp(1.5rem, 5vw, 4rem) !important; }
  .report-main .report-article h1 { color: var(--reports-navy); font-size: clamp(2.25rem, 5vw, 3.55rem); line-height: 1.08; letter-spacing: -.045em; }
  .report-main .report-article h2 { color: var(--reports-navy); border-bottom-color: rgba(255,107,94,.3); }
  .report-main .report-article h3 { color: var(--reports-navy); }
  .report-main .report-article .text-primary { color: var(--reports-coral) !important; }
  .report-main .report-article .lead { color: var(--reports-muted) !important; }
  .report-main .report-article a { color: var(--reports-blue); }
  .report-main hr { border-color: var(--reports-line); opacity: 1; }

  @media (max-width: 767px) {
    .reports-navbar img {
        display: block;
        width: 95px;
        height: auto;
    }
    .reports-nav-link { display: none; }
    .reports-hero { min-height: 390px; padding: 130px 0 65px; }
    .reports-index { padding: 55px 0 70px; }
    .report-main { padding: 94px 0 50px; }

  }

/* Markdown articles (templates/public_site/reports/article.html, home/articles.py). */
.report-card-meta { margin: 0 0 1rem; color: var(--reports-muted); font-size: .85rem; }
.report-main .report-article { max-width: 54rem !important; }
.report-article .article-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0 0 1rem; color: var(--reports-muted); font-size: .9rem; font-weight: 600; }
.report-article .article-meta span:first-child { color: var(--reports-coral); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; align-self: center; }
.report-article .article-draft { margin: 0 0 1.25rem; padding: .6rem .9rem; border: 1px dashed #c98a1b; border-radius: 10px; color: #7a5410; background: #fdf3dc; font-size: .9rem; }
.report-article h1 { margin-bottom: 1rem; font-weight: 850; }
.report-article .lead { font-size: 1.25rem; line-height: 1.55; font-weight: 600; }
.report-article > .card-body > hr { margin: 2rem 0; }

.article-body { color: #23324a; font-size: 1.1rem; }
.article-body p, .article-body li { font-size: inherit; line-height: 1.75; }
.article-body strong { color: #172033; font-weight: 800; }
.article-body h2 { margin: 3rem 0 1rem; padding-bottom: .45rem; border-bottom: 2px solid rgba(255,107,94,.3); color: var(--reports-navy); font-size: 1.65rem; font-weight: 800; line-height: 1.25; scroll-margin-top: 90px; }
.article-body h3 { display: flex; align-items: center; gap: .6rem; margin: 2rem 0 .75rem; color: var(--reports-navy); font-size: 1.3rem; font-weight: 800; scroll-margin-top: 90px; }
.article-body h4 { margin: 1.5rem 0 .5rem; color: var(--reports-navy); font-size: 1.08rem; font-weight: 800; }
.article-body hr { margin: 2.5rem 0; border-color: var(--reports-line); opacity: 1; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body a { color: var(--reports-blue); font-weight: 600; }
.article-body code { padding: .1rem .35rem; border-radius: 5px; color: #b42318; background: #f1f4f8; font-size: .9em; }
.article-body .article-img { display: block; max-width: 100%; height: auto; margin: 1.25rem auto; border: 1px solid var(--reports-line); border-radius: 12px; }

.article-step-number { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; color: #fff; background: var(--reports-coral); font-size: .95rem; }

.article-callout { margin: 2rem 0; padding: 1.5rem 1.75rem; border: 1px solid rgba(255,107,94,.25); border-radius: 14px; background: rgba(255,107,94,.06); box-shadow: 0 .35rem 1rem rgba(0,0,0,.04); text-align: center; }
.article-callout p { margin: 0; color: #172033; font-size: 1.3rem; font-weight: 800; line-height: 1.45; letter-spacing: -.01em; }
.article-callout p + p { margin-top: .5rem; font-size: 1rem; font-weight: 600; }
.article-callout .article-callout__label { margin-bottom: .5rem; color: var(--reports-coral); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-callout .article-callout__label + p { margin-top: 0; font-size: 1.3rem; font-weight: 800; }
.article-highlight { margin: 2rem 0; padding: 1.5rem; border-radius: 14px; background: #f1f4f8; text-align: center; }
.article-highlight p { margin: 0; color: #172033; font-size: 1.35rem; font-weight: 800; }
.article-highlight p + p { margin-top: .4rem; font-size: 1rem; font-weight: 500; color: var(--reports-muted); }
.article-flow { margin: 2rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--reports-coral); border-radius: 0 12px 12px 0; background: var(--reports-ice); text-align: center; }
.article-flow p { margin: 0; color: #172033; font-weight: 800; }
.article-flow p + p { margin-top: .35rem; font-weight: 500; text-align: left; }
.article-quote { margin: 2rem 0; padding: .5rem 0 .5rem 1.5rem; border-left: 4px solid var(--reports-coral); }
.article-quote p { margin: 0; color: #172033; font-size: 1.25rem; font-weight: 700; line-height: 1.55; }
.article-note { margin: 1rem 0; color: var(--reports-muted); font-size: .95rem; }
.article-note p { margin: 0 0 .5rem; line-height: 1.6; }

.article-figure { display: flex; flex-direction: column; gap: .25rem; margin: 2rem 0; padding: 1.25rem; border: 1px solid var(--reports-line); border-radius: 16px; background: var(--reports-ice); }
.article-figure figcaption { color: var(--reports-navy); font-size: 1.05rem; font-weight: 800; }
.article-figure h4 { margin: 1rem 0 0; font-size: 1rem; }
.article-figure h4:first-child { margin-top: 0; }
.article-figure .article-img { margin: .5rem 0; background: #fff; }
.article-figure p { margin: 0; color: var(--reports-muted); font-size: .95rem; line-height: 1.6; }
.article-figure p:has(> .article-img) { margin: 0; }

.article-steps { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--reports-coral); border-radius: 0 12px 12px 0; background: var(--reports-ice); }
.article-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.article-steps li { display: flex; align-items: center; gap: .7rem; margin: 0; padding: .35rem 0; color: #172033; font-weight: 800; counter-increment: step; }
.article-steps li::before { content: counter(step); display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; color: #fff; background: var(--reports-coral); font-size: .95rem; }

.article-pills { margin: 1rem 0 1.5rem; text-align: center; }
.article-pill { display: inline-block; margin: .2rem; padding: .45rem 1rem; border: 1px solid rgba(255,107,94,.25); border-radius: 999px; color: #172033; background: rgba(255,107,94,.1); font-size: 1rem; font-weight: 850; }

.article-table { margin: 2rem 0; overflow-x: auto; border: 1px solid var(--reports-line); border-radius: 12px; }
.article-table table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.article-table th { padding: .7rem 1rem; color: var(--reports-navy); background: var(--reports-ice); font-weight: 800; text-align: left; }
.article-table td { padding: .65rem 1rem; border-top: 1px solid var(--reports-line); }
.article-table tbody tr:nth-child(even) td { background: #fafbfd; }
.article-table th[style*="right"], .article-table td[style*="right"] { font-variant-numeric: tabular-nums; }

.article-code { margin: 1.5rem 0; padding: 1.25rem 1.35rem; overflow-x: auto; border-radius: 12px; background: #111827; font-size: .9rem; line-height: 1.6; }
.article-code code { padding: 0; color: #e5e7eb; background: none; font-size: inherit; }
.article-code .nt { color: #93c5fd; }
.article-code .na { color: #fbbf24; }
.article-code .s, .article-code .s1, .article-code .s2 { color: #86efac; }
.article-code .p, .article-code .o { color: #c4b5fd; }
.article-code .c, .article-code .c1, .article-code .cm { color: #9ca3af; font-style: italic; }
.article-code .k, .article-code .kd, .article-code .kn { color: #f9a8d4; }
.article-code .mi, .article-code .mf { color: #fdba74; }

.article-more { max-width: 54rem; margin-top: 3rem; }

@media (max-width: 767px) {
  .article-body { font-size: 1rem; }
  .article-callout p, .article-callout .article-callout__label + p { font-size: 1.12rem; }
  .article-figure { padding: .9rem; }
}

/* About, How it works and the policy pages (public_site/page.html). */
.info-page .article-body h2:first-child { margin-top: 0; }
.info-page .article-body ul ul { margin-top: .4rem; }
.info-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; max-width: 58rem; margin-top: 2rem; }
.info-more a { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.15rem; border: 1px solid var(--reports-line); border-radius: 14px; color: var(--reports-navy); background: #fff; text-decoration: none; transition: border-color .15s, transform .15s; }
.info-more a:hover { border-color: var(--reports-coral); transform: translateY(-2px); }
.info-more strong { font-size: 1rem; }
.info-more span { color: var(--reports-muted); font-size: .88rem; }

/* System status (/status/) */
.status-banner { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.5rem; padding: 1rem 1.2rem; border: 1px solid; border-radius: 14px; }
.status-banner strong { display: block; font-size: 1.05rem; }
.status-banner span { color: var(--reports-muted); font-size: .86rem; }
.status-banner--operational { border-color: #bfe5d2; background: #effaf4; }
.status-banner--degraded { border-color: #f3d9a4; background: #fdf7e8; }
.status-banner--outage { border-color: #f2c4c0; background: #fdf0ef; }
.status-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: #1f9d68; box-shadow: 0 0 0 5px rgba(31, 157, 104, .15); }
.status-banner--degraded .status-dot { background: #c98a10; box-shadow: 0 0 0 5px rgba(201, 138, 16, .15); }
.status-banner--outage .status-dot { background: #c0392b; box-shadow: 0 0 0 5px rgba(192, 57, 43, .15); }
.article-body .status-list { margin: 0 0 2rem; padding: 0; border: 1px solid var(--reports-line); border-radius: 14px; list-style: none; }
.status-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: 1rem 1.2rem; }
.status-list li + li { border-top: 1px solid var(--reports-line); }
.status-list li > div { display: flex; flex-direction: column; gap: .15rem; }
.status-list span { color: var(--reports-muted); font-size: .88rem; }
.status-list .status-detail { color: var(--reports-navy); font-size: .84rem; }
.status-list .status-pill { flex: 0 0 auto; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.status-list .status-pill--operational { color: #1f7a57; background: #e8f6ef; }
.status-list .status-pill--degraded { color: #7a5410; background: #fdf3dc; }
.status-list .status-pill--outage { color: #a12f2a; background: #fcebea; }

/* About page: the founder */
.info-founder { display: flex; align-items: flex-start; gap: 1.5rem; margin: 0 0 1.5rem; padding: 1.25rem; border: 1px solid var(--reports-line); border-radius: 16px; background: var(--reports-ice); }
.info-founder img { flex: 0 0 auto; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(15, 42, 67, .12); }
.info-founder p:last-child { margin-bottom: 0; }
.info-founder__name { display: flex; flex-direction: column; margin-bottom: .6rem; line-height: 1.3; }
.info-founder__name strong { color: var(--reports-navy); font-size: 1.15rem; }
.info-founder__name span { color: var(--reports-coral); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 575px) { .info-founder { flex-direction: column; align-items: center; text-align: center; } .info-founder img { width: 112px; height: 112px; } }
