/* theme.css: the visual identity, loaded after style.css.
   One place for colour, type and surface treatment. style.css keeps layout.

   Palette (the only colours in use, apart from the amber the Readiness Status
   needs for its middle band):
     Green        #419C47  signature accent, emphasis, success
     Deep Green   #1F4D23  primary buttons and links on light, dark emphasis
     Pale Green   #D6EDD8  tints: panels, highlights, selected content
     Charcoal     #222222  text, dark sections
     Mid Grey     #444444  secondary text, outlines on dark
     Light Grey   #EDEDED  borders, dividers, neutral fills
     White        #FFFFFF  background, cards
     Negative     #963C35  errors and high-risk states

   Rules: Montserrat throughout; flat surfaces (no shadows, glows, gradients or
   patterns); 4px buttons, 6px cards, 20px pills; green is an accent, not a wash. */

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 4px; --radius-md: 4px; --radius-lg: 6px; --radius-xl: 6px;
  --green: #419C47; --green-deep: #1F4D23; --green-pale: #D6EDD8;
  --charcoal: #222222; --grey-mid: #444444; --grey-light: #EDEDED; --white: #FFFFFF; --negative: #963C35;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --color-bg:var(--white); --color-surface:var(--white); --color-surface-2:var(--grey-light);
  --color-surface-offset:var(--grey-light); --color-surface-offset-2:var(--grey-light); --color-surface-dynamic:var(--grey-light);
  --color-divider:var(--grey-light); --color-border:var(--grey-light); --color-border-strong:var(--grey-mid);
  --color-text:var(--charcoal); --color-text-muted:var(--grey-mid); --color-text-faint:var(--grey-mid); --color-text-inverse:var(--white);
  --color-accent:var(--green);
  --color-primary:var(--green-deep); --color-primary-hover:color-mix(in srgb,var(--green-deep) 85%,var(--charcoal)); --color-primary-active:color-mix(in srgb,var(--green-deep) 70%,var(--charcoal)); --color-primary-highlight:var(--green-pale);
  --color-primary-glow:transparent;
  --color-success:var(--green-deep); --color-success-hover:var(--green-deep); --color-success-active:var(--green-deep); --color-success-highlight:var(--green-pale);
  --color-warning:#805410; --color-warning-hover:#694008; --color-warning-active:#523205; --color-warning-highlight:#f6e9ca;
  --color-error:var(--negative); --color-error-hover:color-mix(in srgb,var(--negative) 85%,var(--charcoal)); --color-error-active:color-mix(in srgb,var(--negative) 70%,var(--charcoal)); --color-error-highlight:color-mix(in srgb,var(--negative) 12%,var(--white));
  --color-notification:var(--negative); --color-notification-hover:var(--color-error-hover); --color-notification-active:var(--color-error-active); --color-notification-highlight:var(--color-error-highlight);
  --color-blue:var(--grey-mid); --color-blue-hover:var(--charcoal); --color-blue-active:var(--charcoal); --color-blue-highlight:var(--grey-light);
  --color-purple:var(--grey-mid); --color-purple-hover:var(--charcoal); --color-purple-active:var(--charcoal); --color-purple-highlight:var(--grey-light);
  --color-orange:var(--color-warning); --color-orange-hover:var(--color-warning-hover); --color-orange-active:var(--color-warning-active); --color-orange-highlight:var(--color-warning-highlight);
  --color-gold:var(--color-warning); --color-gold-hover:var(--color-warning-hover); --color-gold-active:var(--color-warning-active); --color-gold-highlight:var(--color-warning-highlight);
  --color-yellow:var(--color-warning); --color-yellow-hover:var(--color-warning-hover); --color-yellow-active:var(--color-warning-active); --color-yellow-highlight:var(--color-warning-highlight);
  --eval-good:var(--green-deep); --eval-good-bg:var(--green-pale);
  --eval-adequate:#805410; --eval-adequate-bg:#f6e9ca;
  --eval-poor:var(--negative); --eval-poor-bg:var(--color-error-highlight);
  --shadow-sm:none; --shadow-md:none; --shadow-lg:none;
}

/* Dark: Charcoal ground, outlined panels with no fill, Green as the accent.
   The same values serve the dark theme, an OS dark preference before the app
   runs, and the dark "stage" sections that stay dark in both themes. */
[data-theme="dark"], .stage {
  color-scheme: dark;
  --color-bg:var(--charcoal); --color-surface:var(--charcoal); --color-surface-2:var(--charcoal);
  --color-surface-offset:var(--charcoal); --color-surface-offset-2:var(--grey-mid); --color-surface-dynamic:var(--grey-mid);
  --color-divider:var(--grey-mid); --color-border:var(--grey-mid); --color-border-strong:var(--grey-light);
  --color-text:var(--white); --color-text-muted:var(--grey-light); --color-text-faint:var(--grey-light); --color-text-inverse:var(--charcoal);
  --color-accent:var(--green);
  --color-primary:var(--green); --color-primary-hover:color-mix(in srgb,var(--green) 88%,var(--white)); --color-primary-active:color-mix(in srgb,var(--green) 88%,var(--charcoal)); --color-primary-highlight:color-mix(in srgb,var(--green) 22%,var(--charcoal));
  --color-primary-glow:transparent;
  --color-success:var(--green); --color-success-hover:var(--green); --color-success-active:var(--green); --color-success-highlight:color-mix(in srgb,var(--green) 22%,var(--charcoal));
  --color-warning:#efc477; --color-warning-hover:#f7d798; --color-warning-active:#d9ab5c; --color-warning-highlight:#382d1b;
  --color-error:color-mix(in srgb,var(--negative) 45%,var(--white)); --color-error-hover:color-mix(in srgb,var(--negative) 35%,var(--white)); --color-error-active:color-mix(in srgb,var(--negative) 55%,var(--white)); --color-error-highlight:color-mix(in srgb,var(--negative) 35%,var(--charcoal));
  --color-notification:var(--color-error); --color-notification-hover:var(--color-error-hover); --color-notification-active:var(--color-error-active); --color-notification-highlight:var(--color-error-highlight);
  --color-blue:var(--grey-light); --color-blue-hover:var(--white); --color-blue-active:var(--white); --color-blue-highlight:var(--grey-mid);
  --color-purple:var(--grey-light); --color-purple-hover:var(--white); --color-purple-active:var(--white); --color-purple-highlight:var(--grey-mid);
  --color-orange:var(--color-warning); --color-orange-hover:var(--color-warning-hover); --color-orange-active:var(--color-warning-active); --color-orange-highlight:var(--color-warning-highlight);
  --color-gold:var(--color-warning); --color-gold-hover:var(--color-warning-hover); --color-gold-active:var(--color-warning-active); --color-gold-highlight:var(--color-warning-highlight);
  --color-yellow:var(--color-warning); --color-yellow-hover:var(--color-warning-hover); --color-yellow-active:var(--color-warning-active); --color-yellow-highlight:var(--color-warning-highlight);
  --eval-good:var(--green); --eval-good-bg:var(--color-success-highlight);
  --eval-adequate:#efc477; --eval-adequate-bg:#382d1b;
  --eval-poor:var(--color-error); --eval-poor-bg:var(--color-error-highlight);
  --shadow-sm:none; --shadow-md:none; --shadow-lg:none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --color-bg:var(--charcoal); --color-surface:var(--charcoal); --color-surface-2:var(--charcoal);
    --color-surface-offset:var(--charcoal); --color-surface-offset-2:var(--grey-mid); --color-surface-dynamic:var(--grey-mid);
    --color-divider:var(--grey-mid); --color-border:var(--grey-mid); --color-border-strong:var(--grey-light);
    --color-text:var(--white); --color-text-muted:var(--grey-light); --color-text-faint:var(--grey-light); --color-text-inverse:var(--charcoal);
    --color-accent:var(--green);
    --color-primary:var(--green); --color-primary-hover:color-mix(in srgb,var(--green) 88%,var(--white)); --color-primary-active:color-mix(in srgb,var(--green) 88%,var(--charcoal)); --color-primary-highlight:color-mix(in srgb,var(--green) 22%,var(--charcoal));
    --color-primary-glow:transparent;
    --color-success:var(--green); --color-success-highlight:color-mix(in srgb,var(--green) 22%,var(--charcoal));
    --color-warning:#efc477; --color-warning-highlight:#382d1b;
    --color-error:color-mix(in srgb,var(--negative) 45%,var(--white)); --color-error-highlight:color-mix(in srgb,var(--negative) 35%,var(--charcoal));
    --color-notification:var(--color-error); --color-notification-highlight:var(--color-error-highlight);
    --eval-good:var(--green); --eval-good-bg:var(--color-success-highlight);
    --eval-adequate:#efc477; --eval-adequate-bg:#382d1b;
    --eval-poor:var(--color-error); --eval-poor-bg:var(--color-error-highlight);
    --shadow-sm:none; --shadow-md:none; --shadow-lg:none;
  }
}

/* --- Flat surfaces ------------------------------------------------------- */
*, *::before, *::after { box-shadow:none !important; text-shadow:none !important; }
.hero-aurora, .hero::before, .page-hero::before, .site-nav::after, .hero-cta::after,
#view-home .evidence-preview::before, #view-home .dim-card::after, #view-home .why-card::after,
#view-home .hiw-step::after, #view-home .hiw-step::before, .closing-card::after,
.sample-output-card::before { display:none !important; }
.auth-page { background-image:none; }
.ticker { mask-image:none; -webkit-mask-image:none; }

/* --- Type ---------------------------------------------------------------- */
body { font-family:var(--font-body); font-weight:400; }
h1, .hero-title, .page-hero-title { font-family:var(--font-display); font-weight:800; letter-spacing:0; }
h2, h3, h4, h5, h6, .section-title, .teaser-title, .compliance-promo-title { font-family:var(--font-display); font-weight:700; letter-spacing:0; }
h1 em, h2 em, .hero-title em, .page-hero-title em, .section-title em { font-style:normal; }
.nav-logo, .footer-logo { font-weight:800; letter-spacing:0; }
/* Code-like content keeps a monospace face so characters stay distinguishable. */
.results-provenance-hash, .verify-input, code, pre, kbd { font-family:var(--font-code); }

/* Headings: sentence-style weight, no italics, no gradient fills. An <em> in
   a heading is the green emphasis. */
h1 { font-weight:800 !important; }
h2, h3, h4, h5, h6 { font-weight:700 !important; }
:is(h1,h2,h3,h4) em { font-style:normal !important; display:inline; background:none !important; -webkit-text-fill-color:currentColor !important; color:var(--color-accent) !important; }
#view-home .hero-title em, .closing-section .section-title em { display:block; }
#view-home .hero-title { font-size:clamp(2.4rem,4.3vw,4rem); line-height:1.08; letter-spacing:0; }
.page-hero-title { font-size:clamp(2.2rem,4vw,3.5rem); line-height:1.1; letter-spacing:0; }
.section-title { font-size:clamp(1.75rem,3vw,2.5rem); line-height:1.15; letter-spacing:0; }

/* Big figures: bold, in the accent green. */
.stat-figure, .promo-countdown-number, #view-home .hiw-step-number, #view-pricing .pricing-price,
.mockup-score-big, .mockup-score-num, .sample-eval-overall-score {
  font-family:var(--font-display); font-weight:800; letter-spacing:0; font-style:normal;
  background:none !important; -webkit-text-fill-color:currentColor !important;
}
.stat-figure, .promo-countdown-number, #view-home .hiw-step-number { color:var(--color-accent) !important; }
#view-home .dimensions-grid>.dim-card::before { font-family:var(--font-display); font-weight:800; }
.ticker-track span { font-family:var(--font-body); font-style:normal; font-weight:600; }

/* Section labels: uppercase, wide tracking, with the // mark in green. */
.eyebrow { font:700 12px/1.4 var(--font-body); letter-spacing:.14em; text-transform:uppercase; color:var(--color-primary); gap:8px; }
.eyebrow::before { content:'//'; width:auto; height:auto; background:none; border-radius:0; color:var(--color-accent); font-weight:800; letter-spacing:0; }

/* --- Shape: 4px controls, 6px cards, 20px pills -------------------------- */
.btn, .hero-cta, .nav-cta, .form-input, select, textarea, button.mockup-tab { border-radius:4px !important; }
#view-home .dimensions-grid>.dim-card, #view-home .hiw-step, #view-home .why-grid>.why-card, .pricing-card,
#view-pricing .pricing-card, #view-pricing .pricing-free-banner, .blog-list-item:first-child, .closing-card,
.compare-chart-card, .dimension-avg, .mockup-viewport, .priority-panel, .project-card, .results-card,
.sample-eval, .sample-output-card, .stage .sample-output-card, .tc-filters, .tc-card, .teaser-card,
.wizard-actions, .wizard-body, .wizard-progress, .auth-card, .modal-content, .verify-result,
.results-provenance, #view-home .dim-card-icon { border-radius:6px !important; }
.badge, .preview-chip, #view-home .hero-eu-banner, .pricing-badge, .score-badge, .sample-output-tier-badge { border-radius:20px !important; }

/* --- Buttons ------------------------------------------------------------- */
.btn, .hero-cta, .nav-cta { font-weight:700; transition:background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease; }
.btn:hover, .hero-cta:hover, .nav-cta:hover { transform:none !important; }
/* Secondary: Charcoal on light; an outline on dark. */
.btn--secondary { background:var(--charcoal); color:var(--white); border:1px solid var(--charcoal); }
.btn--secondary:hover { background:var(--grey-mid); border-color:var(--grey-mid); color:var(--white); }
[data-theme="dark"] .btn--secondary, .stage .btn--secondary { background:transparent; color:var(--white); border:1px solid var(--grey-mid); }
[data-theme="dark"] .btn--secondary:hover, .stage .btn--secondary:hover { background:var(--grey-mid); }
.form-input, select, textarea { border-color:var(--grey-mid); background:var(--color-bg); }
.form-input:focus, select:focus, textarea:focus { outline:2px solid var(--color-primary); outline-offset:1px; border-color:var(--color-primary); }

/* --- Cards and panels ---------------------------------------------------- */
.stage .sample-output-card { background:transparent; border:1px solid var(--grey-mid); transform:none !important; padding:28px; }
#view-home .compliance-promo-section, .compliance-promo-section { background:var(--charcoal) !important; }
.site-footer { background:var(--grey-light); }
[data-theme="dark"] .site-footer { background:var(--charcoal); border-top:1px solid var(--grey-mid); }
.nav-logo img, .footer-logo img { filter:none; }

/* Callouts on results pages: a neutral fill with a green bar, never blue or amber. */
.quick-win-box, .eu-implication-box,
[data-theme="dark"] .quick-win-box, [data-theme="dark"] .eu-implication-box {
  background:var(--color-surface-2); border:0; border-left:3px solid var(--color-accent); border-radius:0;
}
[data-theme="dark"] .quick-win-box, [data-theme="dark"] .eu-implication-box { background:transparent; outline:1px solid var(--grey-mid); outline-offset:-1px; }
.quick-win-box h5, .eu-implication-box h5, .quick-win-box p, .eu-implication-box p,
[data-theme="dark"] .quick-win-box h5, [data-theme="dark"] .eu-implication-box h5,
[data-theme="dark"] .quick-win-box p, [data-theme="dark"] .eu-implication-box p { color:var(--color-text); }
.related-link:hover, [data-theme="dark"] .related-link:hover { background:var(--color-primary-highlight); }

/* --- Alignment: every section starts on the same left edge ---------------- */
#sample-evaluation > .container { max-width:var(--content-wide) !important; }
#sample-evaluation .sample-eval { max-width:880px; }

/* --- Alignment ------------------------------------------------------------
   Every page shares one grid: the nav, each section's heading and content and
   the footer all start on the same left edge. Reading text keeps a comfortable
   measure inside that grid; it is not centred in a narrower column. */
:root { --page-gutter:clamp(20px,3vw,44px); }
#main-content .container { max-width:var(--content-wide) !important; margin-inline:auto !important; padding-inline:var(--page-gutter) !important; }
.site-nav { padding-inline:0; }
.site-nav .nav-inner { max-width:var(--content-wide); margin-inline:auto; padding-inline:var(--page-gutter); }
.site-footer .footer-inner, .site-footer .footer-bottom { padding-inline:0; margin-inline:0; max-width:none; }
#main-content .container > article, .method-content, #blog-list-container, #blog-post-container,
.blog-index-disclaimer, .verify-container > * { max-width:760px; margin-inline:0; }
#main-content .section-title, #main-content .section-subtitle { text-align:left; margin-inline:0; }
.mockup-tabs { justify-content:flex-start; margin-inline:0; }
.mockup-viewport, .mockup-controls { margin-inline:0; }
.mockup-controls { justify-content:flex-start; }
#view-home .hiw-steps, #view-home .dimensions-grid, .teaser-grid, .closing-cards { align-items:stretch; }
#view-home .hiw-step, #view-home .dimensions-grid>.dim-card { height:100%; }

/* Numbered section labels on the home page use the same label style as everywhere else. */
#dimensions .section-title::before, #sample-evaluation .section-title::before, #how-it-works .section-title::before,
#view-home .section:has(.mockup-tabs) .section-title::before, #view-home .why-section .section-title::before {
  font:700 12px/1.4 var(--font-body); letter-spacing:.14em; text-transform:uppercase; color:var(--color-primary); margin-bottom:16px;
}

/* Pricing: prices fit their cards, and the grid fills the page grid. */
#view-pricing .pricing-grid--page { max-width:none; margin-inline:0; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; }
#view-pricing .pricing-price, .pricing-price { font-size:clamp(1.9rem,2.6vw,2.5rem); line-height:1.1; overflow-wrap:anywhere; }
#view-pricing .pricing-free-banner { max-width:none; margin-inline:0; }
#view-pricing .pricing-grid--page + p { text-align:left !important; max-width:760px; margin-inline:0; }
@media (max-width: 1000px) { #view-pricing .pricing-grid--page { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { #view-pricing .pricing-grid--page { grid-template-columns:1fr; } }
#main-content .section { padding-inline:0; }
.site-footer { padding-inline:0; }
.blog-list-item { padding:24px 0; }
.blog-list-item:first-child { padding:0 0 28px; background:transparent; border:0; border-bottom:1px solid var(--color-divider); border-radius:0 !important; }
.blog-list-item:first-child .blog-list-title { font-size:clamp(1.5rem,2.6vw,2rem); }
#view-pricing .pricing-card--featured, .pricing-card--featured { background:var(--color-primary-highlight); border-color:var(--color-primary); }
.compliance-hero-actions, #view-compliance .hero-actions { gap:20px; }
#view-blog>.section>.container { max-width:var(--content-wide) !important; }
.methodology-layout { padding-inline:var(--page-gutter); }

/* --- Home: the real report and the agency handover ------------------------ */
.proof-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:48px; align-items:start; margin-top:40px; }
.proof-figures { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--color-divider); border-bottom:1px solid var(--color-divider); }
.proof-figure { padding:24px 20px 24px 0; }
.proof-figure + .proof-figure { padding-left:20px; border-left:1px solid var(--color-divider); }
.proof-number { display:block; font:800 clamp(2.4rem,4vw,3.5rem)/1 var(--font-display); color:var(--color-accent); font-variant-numeric:tabular-nums; }
.proof-label { display:block; margin-top:10px; font:700 11px/1.5 var(--font-body); letter-spacing:.12em; text-transform:uppercase; color:var(--color-text-muted); }
.proof-copy p { font-size:16px; line-height:1.7; color:var(--color-text-muted); }
.proof-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.handover-section { background:var(--color-surface-2); }
.handover-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:40px; align-items:stretch; }
.handover-card { background:var(--color-surface); border:1px solid var(--color-border); border-radius:6px; padding:28px; }
.handover-card h3 { font-size:18px; line-height:1.3; margin-bottom:10px; }
.handover-card p { font-size:15px; line-height:1.7; color:var(--color-text-muted); }
.handover-card a { color:var(--color-primary); font-weight:700; }
.sample-output-pdf-btn { display:inline-flex; align-items:center; text-decoration:none; cursor:pointer; opacity:1; font-weight:700; color:var(--color-text); border:1px solid var(--color-border); border-radius:4px; padding:8px 14px; }
.sample-output-pdf-btn:hover { background:var(--color-surface-offset-2); }
.sample-output-caption a { color:var(--color-primary); font-weight:700; }
@media (max-width: 900px) { .proof-grid, .handover-grid { grid-template-columns:1fr; gap:24px; } }
@media (max-width: 600px) { .proof-figures { grid-template-columns:1fr; } .proof-figure + .proof-figure { padding-left:0; border-left:0; border-top:1px solid var(--color-divider); } }

/* --- Sample report page --------------------------------------------------- */
.sr-container > * { max-width:920px; }
.sr-callout { background:var(--color-surface-2); border-left:3px solid var(--color-accent); padding:20px 24px; }
.sr-callout p { font-size:15px; line-height:1.7; max-width:none; }
.sr-summary { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:32px; margin-top:40px; padding:28px; border:1px solid var(--color-border); border-radius:6px; background:var(--color-surface); }
.sr-label { font:700 11px/1.5 var(--font-body); letter-spacing:.12em; text-transform:uppercase; color:var(--color-text-muted); margin-bottom:8px; }
.sr-system { font-size:clamp(1.4rem,2.4vw,1.9rem); line-height:1.2; }
.sr-meta, .sr-note { font-size:14px; line-height:1.6; color:var(--color-text-muted); margin-top:8px; }
.sr-overall { font:800 clamp(2.6rem,4.4vw,3.6rem)/1 var(--font-display); color:var(--color-text); font-variant-numeric:tabular-nums; margin-bottom:12px; }
.sr-overall span { font:400 16px/1 var(--font-body); color:var(--color-text-muted); }
.sr-assessment { margin-top:20px; font-size:16px; line-height:1.7; }
.sr-heading { font-size:clamp(1.3rem,2.2vw,1.7rem); margin:48px 0 16px; }
.sr-status { display:inline-block; padding:4px 12px; border-radius:20px; font:700 11px/1.6 var(--font-body); letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.sr-status--good { background:var(--eval-good-bg); color:var(--eval-good); }
.sr-status--adequate { background:var(--eval-adequate-bg); color:var(--eval-adequate); }
.sr-status--poor { background:var(--negative); color:var(--white); }
.sr-table-wrap { overflow-x:auto; }
.sr-table { width:100%; border-collapse:collapse; font-size:15px; }
.sr-table thead th { background:var(--charcoal); color:var(--white); font:700 11px/1.5 var(--font-body); letter-spacing:.1em; text-transform:uppercase; text-align:left; padding:12px 14px; }
.sr-table tbody th, .sr-table td { padding:12px 14px; text-align:left; border-bottom:1px solid var(--color-divider); font-variant-numeric:tabular-nums; }
.sr-table tbody th { font-weight:700; }
.sr-table tbody tr:nth-child(even) { background:var(--color-surface-2); }
.sr-provenance { margin-top:40px; }
.sr-cases { display:grid; gap:12px; margin-top:16px; }
.sr-case { border:1px solid var(--color-border); border-radius:6px; padding:20px 24px; background:var(--color-surface); }
.sr-case-head { display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:14px; row-gap:4px; align-items:center; }
.sr-case-head h3 { font-size:16px; line-height:1.35; }
.sr-score { grid-row:1 / span 2; align-self:start; display:inline-block; min-width:56px; text-align:center; padding:6px 10px; border-radius:20px; font:800 13px/1.4 var(--font-body); }
.sr-case-meta { grid-column:2; font-size:13px; color:var(--color-text-muted); }
.sr-case-reasoning { margin-top:12px; font-size:15px; line-height:1.7; color:var(--color-text-muted); max-width:none; }
.sr-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:40px; }
.sr-actions .sr-note { flex-basis:100%; margin-top:0; }
@media (max-width: 700px) { .sr-summary { grid-template-columns:1fr; padding:20px; } }
@media print {
  .site-nav, .site-footer, .sr-actions, .toast-container { display:none !important; }
  #view-sample-report .page-hero.stage { background:none; color:#222; padding:0 0 16px; }
  #view-sample-report .page-hero.stage * { color:#222 !important; }
  .sr-case { break-inside:avoid; }
}

/* Badges on dark: light text on an outlined pill, so they stay readable. */
[data-theme="dark"] .badge, .stage .badge { background:transparent; color:var(--white); border:1px solid var(--grey-mid); }
