/* =====================================================================
 * NZ Discourse Report — July 2026 (report_2026_07.html.tmpl)
 *
 * Per-report stylesheet, scoped under .report-0726 per the pattern in
 * _report_layout.html.tmpl. This edition ships hand-crafted inline SVG
 * figures and a richer component set (summary cards, finding sidebars,
 * continuity panel) than May/June; everything here restates the mockup's
 * components in the Dossier system — site tokens, Inter + JetBrains Mono
 * — so the page reads as OpenBrief, not as the mockup's standalone brand.
 *
 * Two deliberate departures from the mockup:
 *  - Prose runs the full container width (the mockup capped paragraphs
 *    at ~34em while charts ran full-bleed, which read as a layout bug).
 *  - The container widens to 940px (previous editions: 720px) so the
 *    1000-unit SVG viewBoxes stay legible; the shared report chrome
 *    (header, byline, footer) is unchanged.
 *
 * The four channel colours + signal red are the mockup's, kept because
 * they are hardcoded as fills inside the SVGs; the CSS vars below exist
 * so chips/labels in HTML match the figures exactly.
 * ===================================================================== */

.report-page.report-0726 { max-width: 940px; }

.report-0726 {
  --r7-press: #175A66;
  --r7-comment: #8A6410;
  --r7-audio: #6A3F79;
  --r7-social: #3C6B44;
  --r7-signal: #BE2C2C;
  --r7-signal-soft: #BE2C2C14;
}

/* --- masthead extras: the period log + display headline + dek -------- */
.report-0726 .r7-log {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-1);
  margin: 24px 0 0;
}
.report-0726 .r7-log div { padding: 12px 16px 14px; border-right: 1px solid var(--line); }
.report-0726 .r7-log div:last-child { border-right: 0; }
.report-0726 .r7-log dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); margin: 0 0 3px;
}
.report-0726 .r7-log dd {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; color: var(--fg-1);
}

.report-0726 .r7-display {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 600; letter-spacing: -0.022em; line-height: 1.02;
  color: var(--fg-0); margin: 36px 0 0; text-wrap: balance;
}
.report-0726 .r7-display span { display: block; color: var(--r7-signal); }
.report-0726 .r7-dek {
  font-size: 18.5px; line-height: 1.5; color: var(--fg-2); margin: 18px 0 0;
}

/* --- hero + figures -------------------------------------------------- */
.report-0726 .r7-hero {
  margin: 32px 0 0; padding: 22px 0 6px;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--fg-0);
}
.report-0726 .r7-chart { width: 100%; height: auto; display: block; overflow: visible; }
.report-0726 .r7-chart--hero { margin: 6px 0 0; }

.report-0726 .r7-figure {
  margin: 28px 0; padding: 20px 20px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-0);
}
.report-0726 .r7-fignum {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3); margin: 0 0 4px;
}
.report-0726 .r7-figtitle {
  font-size: 15.5px; font-weight: 600; color: var(--fg-0); margin: 0 0 18px;
}
.report-0726 .r7-caption {
  font-size: 13px; line-height: 1.6; color: var(--fg-2);
  margin: 12px 0 4px;
}
.report-0726 .r7-caption b { color: var(--fg-1); font-weight: 600; }
.report-0726 .r7-capline {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
.report-0726 .r7-capline .r7-caption { margin: 0; }
.report-0726 .r7-figure .r7-capline,
.report-0726 .r7-hero .r7-capline { border-top: 1px solid var(--line); }

/* Draw-in animation on the hero traces, as in the mockup. */
.report-0726 .trace {
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: r7-draw 1.5s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  animation-delay: var(--d);
}
@keyframes r7-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .report-0726 .trace { animation: none; stroke-dashoffset: 0; }
}

/* --- SVG text: site fonts over the mockup's ------------------------- */
.report-0726 svg text { font-family: 'Inter', system-ui, sans-serif; }
.report-0726 .tick, .report-0726 .tsub, .report-0726 .pk,
.report-0726 .flagd, .report-0726 .flagl, .report-0726 .leg,
.report-0726 .val, .report-0726 .anno, .report-0726 .annos,
.report-0726 .branchd, .report-0726 .ptsub, .report-0726 .axlab,
.report-0726 .minilab {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.report-0726 .tick { font-size: 11px; fill: #7C8B96; }
.report-0726 .tick--on { fill: #131C26; font-weight: 600; }
.report-0726 .tname { font-size: 13.5px; font-weight: 600; fill: #131C26; }
.report-0726 .tsub { font-size: 10.5px; fill: #7C8B96; }
.report-0726 .pk { font-size: 13px; font-weight: 600; }
.report-0726 .flagd { font-size: 11px; font-weight: 600; fill: var(--r7-signal); }
.report-0726 .flagd--ink { fill: #131C26; }
.report-0726 .flagl { font-size: 10px; fill: #7C8B96; }
.report-0726 .leg { font-size: 11.5px; fill: #46545F; }
.report-0726 .leg--dim { fill: #7C8B96; }
.report-0726 .rowlab { font-size: 13px; font-weight: 600; fill: #131C26; }
.report-0726 .rowlab--hot { font-weight: 700; fill: var(--r7-signal); }
.report-0726 .rowlab--muted { fill: #7C8B96; }
.report-0726 .val { font-size: 12.5px; font-weight: 600; }
.report-0726 .anno { font-size: 12px; font-weight: 600; fill: var(--r7-comment); }
.report-0726 .annos { font-size: 10.5px; fill: #7C8B96; }
.report-0726 .stem { font-size: 19px; font-weight: 700; fill: #131C26; }
.report-0726 .stem--hot { fill: var(--r7-signal); }
.report-0726 .branch { font-size: 15px; font-weight: 600; fill: #131C26; }
.report-0726 .branchd { font-size: 11px; fill: #7C8B96; }
.report-0726 .ptlab { font-size: 13px; font-weight: 700; fill: #131C26; }
.report-0726 .ptsub { font-size: 10.5px; fill: #7C8B96; }
.report-0726 .axlab {
  font-size: 11px; letter-spacing: 0.08em; fill: #46545F; text-transform: uppercase;
}
.report-0726 .minilab {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; fill: #7C8B96;
}

/* --- sections, eyebrows, prose --------------------------------------- */
.report-0726 .r7-section { padding: 48px 0 0; }
.report-0726 .r7-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3); margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.report-0726 .r7-eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.report-0726 .r7-lede {
  font-size: 18.5px; line-height: 1.55; color: var(--fg-1); margin: 0 0 18px;
}
/* Text fills the container — the mockup's ~34em prose cap is the width
   bug the site version fixes; figures and text share one measure. */
.report-0726 .report-body p { max-width: none; }

.report-0726 .r7-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600; font-size: 0.92em;
  background: var(--bg-1); padding: 1px 5px; border-radius: var(--r-sm);
  border-bottom: 2px solid var(--line-strong);
  font-feature-settings: "tnum";
}
.report-0726 .r7-num--hot { border-bottom-color: var(--r7-signal); color: var(--r7-signal); }

/* --- executive summary cards ----------------------------------------- */
.report-0726 .r7-summary {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0 0;
}
.report-0726 .r7-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-1); padding: 22px 22px 24px;
}
.report-0726 .r7-flow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); margin: 0;
}
.report-0726 .r7-flow i { font-style: normal; }
.report-0726 .r7-card h4 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.2; color: var(--fg-0); margin: 0; text-wrap: balance;
}
.report-0726 .r7-card p { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.report-0726 .r7-figline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--fg-1);
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
}

/* --- findings --------------------------------------------------------- */
.report-0726 .r7-finding {
  padding: 56px 0 0; border-top: 1px solid var(--line); margin-top: 48px;
}
.report-0726 .r7-fhead {
  display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: start;
}
.report-0726 .r7-fmeta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; line-height: 1.7; color: var(--fg-3); letter-spacing: 0.04em;
}
.report-0726 .r7-fmeta b {
  display: block; color: var(--fg-0); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px;
}
.report-0726 .r7-chan {
  display: inline-block; width: 9px; height: 9px; border-radius: 2px;
  margin-right: 6px; vertical-align: baseline;
}
.report-0726 .r7-fhead h2 { margin-top: 0; }
.report-0726 .r7-fhead .r7-lede { margin-bottom: 0; }

/* --- callouts, caveats, pull quotes ----------------------------------- */
.report-0726 .r7-callout {
  border-left: 3px solid var(--r7-signal);
  background: var(--r7-signal-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 22px; margin: 26px 0;
  font-size: 15.5px; line-height: 1.6; color: var(--fg-1);
}
.report-0726 .r7-callout .r7-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--r7-signal); display: block; margin-bottom: 8px;
}
.report-0726 .r7-caveat {
  font-size: 14px; line-height: 1.6; color: var(--fg-2);
  background: var(--flag-soft); border-left: 3px solid var(--flag);
  padding: 14px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 22px 0;
}
.report-0726 .r7-caveat b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-1); display: block; margin-bottom: 6px; font-weight: 600;
}
.report-0726 .r7-pull {
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 500; letter-spacing: -0.012em; line-height: 1.28;
  color: var(--fg-0); margin: 36px 0; text-wrap: balance;
  padding-left: 22px; border-left: 4px solid var(--fg-0);
}

/* --- tables ------------------------------------------------------------ */
.report-0726 table {
  width: 100%; border-collapse: collapse; margin: 20px 0 8px; font-size: 14px;
}
.report-0726 table caption {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3); padding-bottom: 10px;
}
.report-0726 th {
  text-align: left; font-weight: 600;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3); border-bottom: 1px solid var(--line-strong);
  padding: 0 12px 8px 0;
}
.report-0726 td {
  padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line);
  vertical-align: top; color: var(--fg-1);
}
.report-0726 tr:last-child td { border-bottom: 1px solid var(--line-strong); }
.report-0726 .r7-chip {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
}
.report-0726 .r7-quiet td { color: var(--fg-3); }

/* --- continuity panel + watch list ------------------------------------- */
.report-0726 .r7-tri {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0;
}
.report-0726 .r7-tri > div {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-1); padding: 20px;
}
.report-0726 .r7-tri h5 { font-size: 15px; font-weight: 600; color: var(--fg-0); margin: 0 0 4px; }
.report-0726 .r7-tri .r7-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3); margin: 0 0 14px;
}
.report-0726 .r7-tri p { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 14px 0 0; }
.report-0726 .r7-spark { width: 100%; height: auto; display: block; }

.report-0726 .r7-watch {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px;
  margin: 22px 0 0; font-size: 15px; color: var(--fg-2);
}
.report-0726 .r7-watch div { padding: 13px 0; border-top: 1px solid var(--line); }
.report-0726 .r7-watch b {
  font-size: 14.5px; font-weight: 600; color: var(--fg-0);
  display: block; margin-bottom: 2px;
}

/* --- methodology -------------------------------------------------------- */
.report-0726 .r7-method {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-1); padding: 36px 40px; margin: 56px 0 0;
}
.report-0726 .r7-method h2 { margin-top: 0; }
.report-0726 .r7-cols { columns: 2; column-gap: 40px; margin-top: 20px; }
.report-0726 .r7-cols p { font-size: 14.5px; line-height: 1.6; break-inside: avoid; }
.report-0726 .r7-cols h3 { margin: 0 0 8px; font-size: 14px; }
.report-0726 .r7-method ul {
  margin: 12px 0 0; padding-left: 20px;
  font-size: 14.5px; line-height: 1.6; color: var(--fg-2);
}
.report-0726 .r7-method li { margin-bottom: 7px; break-inside: avoid; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .report-0726 .r7-scroller {
    overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px;
  }
  .report-0726 .r7-scroller .r7-chart { min-width: 700px; }
  .report-0726 .r7-scroller::after {
    content: "Scroll chart \2192"; display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--fg-3); padding-top: 6px;
  }
  .report-0726 table { display: block; overflow-x: auto; white-space: nowrap; }
  .report-0726 .r7-log { grid-template-columns: repeat(2, 1fr); }
  .report-0726 .r7-log div:nth-child(2) { border-right: 0; }
  .report-0726 .r7-log div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .report-0726 .r7-summary, .report-0726 .r7-tri, .report-0726 .r7-watch {
    grid-template-columns: 1fr;
  }
  .report-0726 .r7-fhead { grid-template-columns: 1fr; gap: 14px; }
  .report-0726 .r7-method { padding: 26px 20px; }
  .report-0726 .r7-cols { columns: 1; }
  .report-0726 .r7-pull { padding-left: 16px; }
}

/* --- print: inherits the shared report print rules; the inline SVGs
   scale via their viewBox with no JS, so only the scroller needs care. */
@media print {
  .report-0726 .r7-scroller { overflow: visible; }
  .report-0726 .r7-scroller::after { content: none; }
  .report-0726 .r7-figure, .report-0726 .r7-card,
  .report-0726 .r7-tri > div, .report-0726 .r7-callout,
  .report-0726 .r7-caveat { break-inside: avoid; }
}
