/* Corrovera report & case-study pages — external stylesheet (site CSP forbids inline styles).
   Builds on the shared site styles.css / brand tokens; light editorial theme to match the site. */
@import url("/styles.css");

/* ── report shell ─────────────────────────────────────── */
.report {
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) 5rem;
}
.report-back {
  font-family: var(--corrovera-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--corrovera-slate);
  display: inline-block;
  margin-bottom: 2rem;
}
.report-back:hover { color: var(--corrovera-teal); }

.report-eyebrow {
  color: var(--corrovera-teal);
  font-family: var(--corrovera-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.report h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
}
.report h1 .accent { color: var(--corrovera-teal); }

/* meta band under the report title */
.report-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.1rem 2rem;
  border-block: 1px solid rgb(54 81 99 / 18%);
  padding-block: 1.3rem;
  margin: 1.6rem 0 2.5rem;
}
.report-meta .m { min-width: 0; }
.report-meta dt {
  font-family: var(--corrovera-font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--corrovera-slate);
  margin: 0 0 0.2rem;
}
.report-meta dd {
  margin: 0;
  font-family: var(--corrovera-font-mono);
  font-size: 0.82rem;
  color: var(--corrovera-ink);
  word-break: break-word;
}

/* ── report body typography ───────────────────────────── */
.report-body { font-size: 1.0125rem; }
.report-body h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgb(54 81 99 / 18%);
}
.report-body h2::before {
  content: "// ";
  color: var(--corrovera-positive);
  font-family: var(--corrovera-font-mono);
  font-size: 0.75em;
}
.report-body h3 { font-size: 1.2rem; margin: 2.2rem 0 0.7rem; }
.report-body h4 { font-size: 1rem; margin: 1.6rem 0 0.5rem; color: var(--corrovera-slate); }
.report-body p { margin: 0 0 1rem; }
.report-body ul, .report-body ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.report-body li { margin-bottom: 0.4rem; }
.report-body li::marker { color: var(--corrovera-slate); }
.report-body strong { font-weight: 640; }
.report-body a { color: var(--corrovera-positive); text-underline-offset: 2px; }
.report-body hr { border: 0; border-top: 1px solid rgb(54 81 99 / 18%); margin: 2.5rem 0; }

.report-body code {
  font-family: var(--corrovera-font-mono);
  font-size: 0.85em;
  background: rgb(54 81 99 / 9%);
  border-radius: 3px;
  padding: 0.08em 0.32em;
  overflow-wrap: anywhere;
}
.report-body pre {
  background: var(--corrovera-ink);
  color: var(--corrovera-mist);
  border-left: 3px solid var(--corrovera-teal);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-family: var(--corrovera-font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  margin: 1.2rem 0;
}
.report-body pre code { background: none; padding: 0; font-size: inherit; color: inherit; }

.report-body blockquote {
  margin: 1.3rem 0;
  padding: 0.15rem 0 0.15rem 1.15rem;
  border-left: 3px solid var(--corrovera-amber);
  color: var(--corrovera-slate);
}
.report-body blockquote p:last-child { margin-bottom: 0; }

/* tables */
.report-body .tw { overflow-x: auto; margin: 1.4rem 0; }
.report-body table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.report-body thead th {
  background: var(--corrovera-ink); color: var(--corrovera-paper);
  text-align: left; font-family: var(--corrovera-font-mono);
  font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.6rem 0.75rem; white-space: nowrap;
}
.report-body td { padding: 0.55rem 0.75rem; border: 1px solid rgb(54 81 99 / 16%); vertical-align: top; }
.report-body tbody tr:nth-child(even) { background: rgb(54 81 99 / 5%); }
.report-body td code, .report-body th code { background: rgb(54 81 99 / 12%); }

/* severity chips inside report tables */
.sev {
  display: inline-block; font-family: var(--corrovera-font-mono);
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.12em 0.5em; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap;
}
.sv-crit { color: var(--corrovera-critical); }
.sv-high { color: var(--corrovera-high); }
.sv-med  { color: #a3720f; }
.sv-low  { color: var(--corrovera-low); }
.sv-info { color: var(--corrovera-informational); }

/* download row */
.report-downloads {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin: 2rem 0 0.5rem;
}
/* ghost buttons sit on the light report/case-study body, so the site's
   dark-section ghost (near-white text) would be invisible — restyle for light. */
.report .btn--ghost,
.cs-body .btn--ghost {
  border-color: rgb(54 81 99 / 32%);
  color: var(--corrovera-ink);
}
.report .btn--ghost:hover,
.cs-body .btn--ghost:hover {
  border-color: var(--corrovera-teal);
  color: var(--corrovera-positive);
}

/* ── case-study specifics ─────────────────────────────── */
.cs-hero {
  background:
    linear-gradient(135deg, rgb(44 224 194 / 14%), transparent 40%),
    linear-gradient(315deg, rgb(88 112 255 / 20%), transparent 48%),
    var(--corrovera-midnight);
  color: var(--corrovera-paper);
  padding-block: clamp(3.5rem, 9vw, 6rem);
}
.cs-hero .eyebrow { color: var(--corrovera-teal); }
.cs-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 22ch; margin-bottom: 1.2rem; }
.cs-hero h1 .accent { color: var(--corrovera-teal); }
.cs-hero .lede { color: var(--corrovera-mist); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 60ch; }

.cs-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem 2rem; margin-top: 2.5rem;
  border-top: 1px solid rgb(217 228 232 / 20%); padding-top: 1.8rem;
}
.cs-stat .n {
  font-family: var(--corrovera-font-mono); font-size: 1.9rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--corrovera-white); display: block; line-height: 1.1;
}
.cs-stat .l { color: var(--corrovera-mist); font-size: 0.85rem; display: block; margin-top: 0.3rem; }

.quote {
  margin: 0; padding: clamp(2rem, 5vw, 3rem) 0;
}
.quote blockquote {
  margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3;
  letter-spacing: -0.02em; font-weight: 550; color: var(--corrovera-white); max-width: 24ch;
}
.quote .attr {
  margin-top: 1.4rem; font-family: var(--corrovera-font-mono);
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--corrovera-teal);
}
.quote .attr span { color: var(--corrovera-mist); }

.cs-body { max-width: 52rem; margin-inline: auto; padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2rem); }

/* findings table — case study summary */
.findings { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 1.6rem; }
.findings th {
  text-align: left; font-family: var(--corrovera-font-mono); font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--corrovera-slate);
  padding: 0.7rem 0.85rem; border-bottom: 1px solid rgb(54 81 99 / 22%);
}
.findings td { padding: 0.8rem 0.85rem; border-bottom: 1px solid rgb(54 81 99 / 12%); vertical-align: top; }
.findings td:first-child { font-family: var(--corrovera-font-mono); white-space: nowrap; }

.disclosure {
  border-left: 3px solid var(--corrovera-slate);
  background: rgb(54 81 99 / 6%);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--corrovera-radius-md) var(--corrovera-radius-md) 0;
  margin: 2.5rem 0; font-size: 0.95rem; color: var(--corrovera-slate);
}
.disclosure strong { color: var(--corrovera-ink); }
