/* ====== FEATURE REPORT TEMPLATE ====== */

/* --- Reading progress bar (duplicated from page-article.css) --- */

.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--color-blue);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.article-progress.is-visible {
  opacity: 1;
}

/* --- Report wrapper --- */

#report {
  background-color: var(--color-white);
  color: var(--color-black);
}

/* --- Nav: solid blue bar (same as article) --- */

#report .hero-nav {
  background-color: var(--color-blue);
  padding-bottom: clamp(14px, 1.8vw, 28px);
}

/* --- Hero block: full-width grey band (title + byline) --- */

.report-hero {
  background-color: var(--color-grey-dark);
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(7rem, 14vw, 13rem);
}

.report-hero__inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 8vw;
}

.report-hero__category {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  text-decoration: none;
  margin-bottom: 0.6em;
}

.report-hero__category:hover {
  opacity: 0.8;
}

.report-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--color-white);
  margin: 0;
  /* Wide enough to hold the headline on one line at the capped 3.5rem
     size (it needs ~930px); the 800px cap forced an odd wrap on large
     screens. Longer titles still wrap within the hero container. */
  max-width: 1100px;
}

/* --- Byline bar (inside the grey block) --- */

.report-byline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
  padding: clamp(0.6rem, 1vw, 1rem) 0 0;
}

.report-byline__date,
.report-byline__author {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 0.95vw, 0.95rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Hero image: straddles grey/white — half on each --- */

.report-hero-image {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 8vw;
  margin-top: clamp(-11rem, -12vw, -6rem);
  position: relative;
  z-index: 1;
}

.report-hero-image__inner {
  overflow: hidden;
  height: clamp(200px, 24vw, 360px);
}

.report-hero-image img,
.report-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
}

/* Video hero: show video on capable devices, fallback image otherwise */
.report-hero-video { display: none; }
.report-hero-fallback { display: block; }

@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  .report-hero-video { display: block; }
  .report-hero-image .report-hero-fallback { display: none; }
}

/* --- Three-column content grid --- */

.report-content {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 0 clamp(2rem, 3vw, 3rem);
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 4rem) var(--site-gutter) clamp(4rem, 7vw, 8rem);
  align-items: start;
}

/* --- Left sidebar: Table of Contents --- */

.report-toc {
  grid-column: 1;
  position: sticky;
  top: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.report-toc.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Logo mark */
.report-toc__logo {
  display: block;
  width: clamp(40px, 4vw, 60px);
  height: auto;
  margin-bottom: 1.2em;
}

/* Publication title block above Contents */
.report-toc__title-block {
  margin-bottom: 1.8em;
}

.report-toc__pub-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--grey-500);
  margin-bottom: 0.3em;
}

.report-toc__pub-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  color: var(--grey-500);
}

/* Contents heading */
.report-toc__heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin: 0 0 0.8em;
}

.report-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-toc__list > li {
  margin-bottom: 0.5em;
}

/* Top-level section links: display font, bold */
.report-toc__list > li > a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: var(--grey-500);
  text-decoration: none;
  transition: color 0.25s ease;
  display: block;
  line-height: 1.4;
}

.report-toc__list > li > a:hover {
  color: var(--color-blue);
}

.report-toc__list > li > a.is-active {
  color: var(--color-blue);
}

.report-toc__list > li > a.is-read {
  color: var(--grey-300);
}

/* Sub-section list: collapsed by default, expands for active section */
.report-toc__sublist {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin 0.35s ease;
}

.report-toc__sublist.is-expanded {
  max-height: 300px;
  margin: 0.4em 0 0.3em;
}

.report-toc__sublist li {
  margin-bottom: 0.3em;
}

.report-toc__sublist a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--grey-400);
  text-decoration: none;
  transition: color 0.25s ease;
  display: block;
  line-height: 1.35;
  padding-left: 0.8em;
}

.report-toc__sublist a:hover {
  color: var(--color-blue);
}

.report-toc__sublist a.is-active {
  color: var(--color-blue);
  font-weight: 500;
}

/* --- Right sidebar: Downloads, Links, Share --- */

.report-sidebar {
  grid-column: 3;
  position: sticky;
  top: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.report-sidebar.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile toggle heading (hidden on desktop) */
.report-sidebar__heading-toggle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin: 0 0 1.5em;
  display: none; /* hidden on desktop, shown on mobile */
}

.report-sidebar__group {
  margin-bottom: 2.5em;
}

.report-sidebar__group:last-child {
  margin-bottom: 0;
}

/* Group headings: title case, NOT uppercase */
.report-sidebar__heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin: 0 0 0.7em;
}

.report-sidebar__downloads,
.report-sidebar__links,
.report-sidebar__share {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-sidebar__downloads li,
.report-sidebar__links li,
.report-sidebar__share li {
  margin-bottom: 0.45em;
}

/* Sidebar list items: display font (Helvetica Neue Bold) */
.report-sidebar__downloads a,
.report-sidebar__links a,
.report-sidebar__share a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: var(--grey-500);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.report-sidebar__downloads a:hover,
.report-sidebar__links a:hover,
.report-sidebar__share a:hover {
  color: var(--color-blue);
}

/* Download icons */
.report-sidebar__downloads a::before {
  content: '';
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  margin-right: 0.5em;
  flex-shrink: 0;
  background: url('../Images/dl-arrow.svg') no-repeat center / contain;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.report-sidebar__downloads a:hover::before {
  opacity: 0.8;
}

/* Podcast download icon override */
.report-sidebar__podcast-dl::before {
  background: url('../Images/play-button.png') no-repeat center / contain !important;
  opacity: 0.35;
}

.report-sidebar__podcast-dl:hover::before {
  opacity: 0.7;
}

/* Link icons: inline SVG glyphs reused from the interactive tools, given the
   same muted weight and left alignment as the download icons above. */
.report-sidebar__links a svg {
  width: 1.4em;
  height: 1.4em;
  margin-right: 0.5em;
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.report-sidebar__links a:hover svg {
  opacity: 0.8;
}

/* Placeholder items (not yet available) */
.report-sidebar__downloads a.is-tbc,
.report-sidebar__links a.is-tbc,
.report-drawer__list a.is-tbc {
  cursor: default;
  pointer-events: none;
}

.report-tbc {
  margin-left: 0.45em;
  font-size: 0.62rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  color: var(--color-error);
  opacity: 0.8;
}

/* --- Audio Player --- */
.report-player {
  text-align: center;
  padding: 0.3em 0 0.5em;
}

.report-player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.6em;
}

.report-player__btn {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.report-player__btn:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
  border-radius: 50%;
}

.report-player__icon {
  display: block;
  width: 100%;
  height: 100%;
}

.report-player__icon--pause,
.report-player__icon--loading {
  display: none;
}

.report-player[data-state="playing"] .report-player__icon--play,
.report-player[data-state="loading"] .report-player__icon--play {
  display: none;
}

.report-player[data-state="playing"] .report-player__icon--pause {
  display: block;
}

.report-player[data-state="loading"] .report-player__icon--loading {
  display: block;
}

.report-player__skip {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  color: var(--grey-500);
  transition: color 0.2s;
  flex-shrink: 0;
}

.report-player__skip:hover {
  color: var(--color-black);
}

.report-player__skip:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.report-player__scrubber {
  width: 100%;
  height: 44px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  touch-action: none;
}

.report-player__scrubber::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: var(--grey-200);
  border-radius: 2px;
}

.report-player__scrubber:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.report-player__buffer {
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  transform: translateY(-50%);
  width: 0%;
  background: var(--grey-300);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}

.report-player__fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  transform: translateY(-50%);
  width: 0%;
  background: var(--color-black);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

.report-player__dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: var(--color-black);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, width 0.1s, height 0.1s;
  z-index: 2;
}

.report-player__scrubber:active .report-player__dot {
  width: 16px;
  height: 16px;
  opacity: 1;
}

.report-player__scrubber:hover .report-player__dot,
.report-player[data-state="playing"] .report-player__dot {
  opacity: 1;
}

.report-player__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4em;
}

.report-player__time {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--grey-600);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.report-player__speed {
  appearance: none;
  border: 1px solid var(--grey-300);
  border-radius: 4px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--grey-600);
  padding: 0.15em 0.4em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  min-width: 2em;
  text-align: center;
}

.report-player__speed:hover {
  color: var(--color-black);
  border-color: var(--grey-500);
}

.report-player__speed:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.report-player__error {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-error);
  margin-top: 0.3em;
  display: none;
}

.report-player[data-state="error"] .report-player__error {
  display: block;
}

/* --- Report body: readability-optimised typography --- */

.report-body {
  grid-column: 2;
  max-width: 720px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.report-body section {
  margin-bottom: 3em;
}

.report-body section:last-child {
  margin-bottom: 0;
}

/* Chapter headings */
.report-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-black);
  margin: 0 0 0.8em;
}

/* Sub-chapter headings */
.report-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  color: var(--color-black);
  margin: 2em 0 0.6em;
}

/* Sub-sub-chapter headings */
.report-body h4 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--color-black);
  margin: 1.5em 0 0.5em;
}

/* Paragraphs */
.report-body p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--grey-800);
  margin: 0 0 1.5em;
}

/* Chart subtitle override removed — `.chart .chart__subtitle` in chart.css
   now has higher specificity than `.report-body p`, so the canonical rule
   wins and this duplicate is no longer needed. */

.report-body p:last-child {
  margin-bottom: 0;
}

/* Strong text within paragraphs */
.report-body p strong {
  font-weight: 600;
  color: var(--color-black);
}

/* Bulleted lists */
.report-body ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0 0 1.5em;
}

.report-body li {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--grey-800);
  margin-bottom: 0.8em;
}

.report-body li:last-child {
  margin-bottom: 0;
}

/* Ordered lists */
.report-body ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin: 0 0 1.5em;
}

/* Nested lists */
.report-body ul ul,
.report-body ol ul {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Blockquotes */
.report-body blockquote {
  border-left: 4px solid var(--color-blue);
  padding: 1em 0 1em 1.5em;
  margin: 0 0 1.5em;
}

.report-body blockquote p {
  font-style: italic;
  margin-bottom: 0.8em;
}

.report-body blockquote p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------
   Hero quote — body-sized italic, marks speech quietly
   ------------------------------------------------ */
.report-body blockquote.report-hero-quote {
  border-left: none;
  background: transparent;
  margin: 1em 0 1.1em;
  padding: 0;
}

.report-body blockquote.report-hero-quote .hq-text {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-dark);
  max-width: 56ch;
  margin: 0;
}

.report-body blockquote.report-hero-quote .hq-cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--grey-700);
  margin: 0.35rem 0 0;
}

.report-body blockquote.report-hero-quote cite {
  font-style: normal;
  color: var(--color-dark);
  font-weight: var(--font-weight-semibold);
}

/* Implication asides */
.report-body .implication {
  border-left: 3px solid var(--color-blue);
  background: rgba(20, 54, 188, 0.025);
  border-radius: 0 4px 4px 0;
  padding: 1.3rem 1.4rem 1.3rem 1.2rem;
  margin: 1.5em 0 1.8em;
}

.report-body .implication__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.45em;
}

.report-body .implication__label::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-blue);
  flex-shrink: 0;
}

.report-body .implication p {
  color: var(--grey-800);
  margin: 0 0 0.8em;
}

.report-body .implication p:last-child,
.report-body .implication *:last-child {
  margin-bottom: 0;
}

.report-body .implication p strong,
.report-body .implication li strong {
  color: var(--color-black);
  font-weight: 600;
}

.report-body .implication ol,
.report-body .implication ul {
  color: var(--grey-800);
  padding-left: 1.3em;
  margin: 0 0 0.8em;
}

.report-body .implication li {
  color: var(--grey-800);
  margin-bottom: 0.6em;
}

.report-body .implication li:last-child {
  margin-bottom: 0;
}

/* Links in body text */
.report-body a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: opacity 0.2s;
}

.report-body a:hover {
  opacity: 0.7;
}

.report-body a.report-callout:hover {
  opacity: 1;
}

/* Inline footnote references — keep small to avoid disrupting text flow */
.report-body sup a[href^="#fn-"] {
  font-size: 0.7em;
  text-decoration: none;
}

/* Footnotes section */
#footnotes {
  margin-top: 4em;
  border-top: 1px solid #ccc;
  padding-top: 2em;
}

.footnotes-list {
  font-size: 0.85em;
  line-height: 1.55;
  color: #444;
  padding-left: 2.5em;
}

.footnotes-list li {
  margin-bottom: 0.6em;
  padding-left: 0.3em;
}

.footnotes-list li a {
  word-break: break-all;
}

/* Back-link arrow */
.fn-back {
  display: inline-block;
  margin-left: 0.5em;
  font-size: 0.85em;
  text-decoration: none;
  color: #1436BC;
  vertical-align: baseline;
}

.fn-back:hover {
  opacity: 0.7;
}

/* Narrative frame label images — consistent height, natural ratio */
.report-body td > img[src*="narrative-frames"] {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Table scroll wrapper */
.report-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5em;
}

/* Tables */
.report-body table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
}

/* Prevent column collapse — let content dictate min width */
.report-body th,
.report-body td {
  word-break: normal;
  overflow-wrap: break-word;
}

.report-table-wrap table {
  margin-bottom: 0;
}

.report-body th {
  font-weight: 600;
  text-align: left;
  padding: 0.6em 0.8em;
  border-bottom: 2px solid var(--color-black);
  color: var(--color-black);
}

.report-body td {
  padding: 0.5em 0.8em;
  border-bottom: 1px solid var(--grey-200);
  color: var(--grey-800);
  line-height: 1.5;
}

.report-body tr:last-child td {
  border-bottom: none;
}

/* Mindset names colour-keyed to their segment in the donut chart (3.2) */
.report-body .report-mindset {
  font-weight: 600;
  white-space: nowrap;
}

/* --- Permalink icons on headings --- */

.report-permalink {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.4em;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.report-body h2:hover .report-permalink,
.report-body h3:hover .report-permalink,
.report-section-break__label:hover .report-permalink {
  opacity: 0.4;
}

.report-permalink:hover {
  opacity: 0.8 !important;
}

.report-permalink img {
  height: 0.65em;
  width: auto;
  display: inline-block;
  vertical-align: baseline;
}

/* --- Section Break Component --- */
.report-section-break {
  display: flex;
  align-items: stretch;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
  width: 100%;
}

.report-section-break__label {
  flex: 0 0 33%;
  background-color: var(--color-grey-light);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

h2.report-section-break__label {
  margin: 0;
}

.report-section-break__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-blue);
  margin-bottom: 0.1em;
}

.report-section-break__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--color-blue);
}

.report-section-break__title--long {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
}

.report-section-break__img-wrap {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  height: clamp(160px, 18vw, 240px);
}

.report-section-break__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
}

/* --- Scroll-reveal animation --- */

.report-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.report-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Article footer override (same as articles) --- */

#footer {
  background-color: var(--color-navy);
  margin-top: 0;
}

/* ====== MOBILE BOTTOM BAR + DRAWERS (hidden on desktop) ====== */

.report-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--color-white);
  border-top: 1px solid var(--grey-200);
  padding: 0.6rem var(--site-gutter);
  gap: 0.5rem;
}

.report-mobile-bar__btn {
  flex: 1;
  appearance: none;
  border: 1px solid var(--grey-300);
  border-radius: 6px;
  background: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.report-mobile-bar__btn:active {
  background: var(--grey-100);
  border-color: var(--grey-500);
}

.report-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 910;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.report-drawer-backdrop.is-active {
  display: block;
  opacity: 1;
}

.report-drawer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 920;
  background: var(--color-white);
  color: var(--color-black);
  border-radius: 16px 16px 0 0;
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.report-drawer.is-open {
  transform: translateY(0);
}

.report-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem 0.8rem;
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  background: var(--color-white);
  border-radius: 16px 16px 0 0;
}

.report-drawer__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
}

.report-drawer__close {
  appearance: none;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--grey-500);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.report-drawer__body {
  padding: 1rem 1.2rem 2rem;
}

.report-drawer__toc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-drawer__toc > li {
  margin-bottom: 0.6em;
}

.report-drawer__toc > li > a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  text-decoration: none;
  display: block;
  padding: 0.35em 0;
}

.report-drawer__toc > li > a:active {
  color: var(--color-blue);
}

.report-drawer__toc ul {
  list-style: none;
  padding: 0 0 0 1em;
  margin: 0.2em 0 0;
}

.report-drawer__toc ul li {
  margin-bottom: 0.25em;
}

.report-drawer__toc ul a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--grey-600);
  text-decoration: none;
  display: block;
  padding: 0.25em 0;
}

.report-drawer__toc ul a:active {
  color: var(--color-blue);
}

.report-drawer__group-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin: 1.2em 0 0.5em;
}

.report-drawer__group-heading:first-child {
  margin-top: 0;
}

.report-drawer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-drawer__list li {
  margin-bottom: 0.3em;
}

.report-drawer__list a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  color: var(--grey-700);
  text-decoration: none;
  display: block;
  padding: 0.4em 0;
}

.report-drawer__list a:active {
  color: var(--color-blue);
}

/* ====== TABLET (2-column: TOC + body) ====== */

@media (max-width: 1080px) {

  /* Collapse to 2-column grid: TOC sidebar + body */
  .report-content {
    grid-template-columns: 180px 1fr;
    padding-bottom: calc(clamp(4rem, 7vw, 8rem) + 3.5rem);
  }

  /* Hide right sidebar — access via drawer instead */
  .report-sidebar {
    display: none;
  }

  /* Body fills column 2 */
  .report-body {
    grid-column: 2;
    max-width: none;
  }

  /* Reduce TOC font sizes for narrower column */
  .report-toc__list > li > a {
    font-size: 0.8rem;
  }

  .report-toc__sublist a {
    font-size: 0.74rem;
  }

  /* Show mobile bar (Resources only) and drawer infrastructure */
  .report-mobile-bar {
    display: flex;
  }

  .report-drawer {
    display: block;
  }

  /* Hide Contents button — TOC sidebar is still visible */
  .report-mobile-bar__btn[data-drawer="contents"] {
    display: none;
  }

  /* Section break images: reduce height */
  .report-section-break__img-wrap {
    height: clamp(130px, 16vw, 200px);
  }
}

/* ====== RECOMMENDATIONS: AUDIENCE PICKER ====== */

.audience-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.audience-card,
.report-body a.audience-card {
  background: var(--color-grey-light);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  display: block;
}

.audience-card:hover {
  border-color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(20, 54, 188, 0.1);
}

.audience-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.7rem;
  color: var(--color-blue);
}

.audience-card__icon svg {
  width: 100%;
  height: 100%;
}

.audience-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.audience-card__desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--grey-600);
}

.audience-card__count {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-blue);
  margin-top: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ====== RECOMMENDATIONS: AUDIENCE SECTIONS ====== */

.audience-section {
  margin-bottom: 3rem;
  padding-top: 1rem;
}

.audience-section__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.audience-section__icon {
  width: clamp(1.3rem, 1.8vw, 1.65rem);
  height: clamp(1.3rem, 1.8vw, 1.65rem);
  color: var(--color-blue);
  flex-shrink: 0;
}

.audience-section__icon svg {
  width: 100%;
  height: 100%;
}

.audience-section__title,
.report-body .audience-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  color: var(--color-black);
  margin: 0;
}

.audience-section__preamble {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-style: italic;
  color: var(--grey-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.audience-section__divider {
  border: none;
  border-top: 1px solid var(--grey-200);
  margin: 0 0 3rem;
}

/* ====== RECOMMENDATIONS: INDIVIDUAL CARDS ====== */

.rec-card {
  background: var(--color-grey-light);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 0.75rem;
}

.rec-card__number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.rec-card__headline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.rec-card__text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--grey-800);
}

.rec-card__text strong {
  font-weight: 600;
  color: var(--color-black);
}

.rec-card__text a {
  color: var(--color-blue);
  text-decoration: none;
  transition: opacity 0.2s;
}

.rec-card__text a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  opacity: 0.7;
}

/* ====== MOBILE ====== */

@media (max-width: 768px) {

  /* --- Hero adjustments --- */
  .report-hero {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(5rem, 10vw, 8rem);
  }

  .report-hero__inner {
    padding: 0 var(--site-gutter);
  }

  .report-hero__title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .report-hero-image {
    padding: 0 var(--site-gutter);
    margin-top: clamp(-6rem, -6vw, -4rem);
  }

  .report-hero-image__inner {
    height: clamp(140px, 30vw, 200px);
  }

  /* --- Content grid: single column, body only --- */
  .report-content {
    grid-template-columns: 1fr;
    gap: 0;
    padding: var(--space-md) var(--site-gutter) calc(var(--space-xl) + 3.5rem);
  }

  /* Hide both sidebars on mobile */
  .report-toc,
  .report-sidebar {
    display: none;
  }

  /* Body fills the single column */
  .report-body {
    grid-column: 1;
    order: 1;
    max-width: none;
  }

  /* Restore Contents button (hidden at tablet where TOC sidebar is visible) */
  .report-mobile-bar__btn[data-drawer="contents"] {
    display: block;
  }

  /* Hero image: no zoom on mobile */
  .report-hero-image img {
    transform: none !important;
  }

  /* Section break: stack vertically on mobile */
  .report-section-break {
    flex-direction: column;
    gap: 0.6rem;
  }

  .report-section-break__label {
    flex: none;
    min-height: auto;
    padding: 1.2rem 1.5rem;
  }

  .report-section-break__img-wrap {
    flex: none;
    height: clamp(100px, 22vw, 140px);
  }

  .report-section-break__image {
    transform: none !important;
  }

  /* Reveal animation: instant on mobile */
  .report-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Tables: smaller on mobile */
  .report-body table {
    font-size: 0.82rem;
  }

  .report-body td,
  .report-body th {
    padding: 0.4em 0.5em;
    min-width: 0;
  }

  /* Scroll-hint fade on right edge of scrollable tables */
  .report-table-wrap {
    position: relative;
  }

  .report-table-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2rem;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.85));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.25s ease;
  }

  .report-table-wrap.scrolled-end::after,
  .report-table-wrap.no-overflow::after {
    opacity: 0;
  }

  /* Permalink icons: always subtly visible (no hover on touch) */
  .report-permalink {
    opacity: 0.3;
  }

  /* Recommendations: audience picker stacks on mobile */
  .audience-picker {
    grid-template-columns: 1fr;
  }

  .rec-card {
    padding: 1.2rem 1.3rem;
  }
}

/* ---- Section 6.6 CT map (means-end / hierarchical value map) ----
   Inline SVG exported from Illustrator and cleaned by
   scripts/clean-ct-map-svg.py. Layout positions are mathematically derived;
   do not edit the SVG by hand. */
.ct-map-container {
  position: relative;
  overflow-x: auto;
  /* No bottom margin: the auto-generated figure-number caption already
     adds 0.6em top margin of its own, and the following paragraph adds
     its own top margin. Stacking another --space-md on top is too much
     whitespace. */
  margin: var(--space-md) 0 0;
  -webkit-overflow-scrolling: touch;
}
.ct-map-container__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5em;
}
.ct-map-container__zoom {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark);
  background: var(--color-white);
  border: 1px solid var(--grey-300);
  border-radius: 3px;
  padding: 0.4em 0.85em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.ct-map-container__zoom:hover,
.ct-map-container__zoom:focus-visible {
  background: var(--grey-100);
  border-color: var(--grey-500);
  outline: none;
}
.ct-map-container__zoom-icon {
  width: 0.9em;
  height: 0.9em;
  display: inline-block;
  flex: 0 0 auto;
}
.ct-map-container__close {
  display: none;
}
.ct-map-container.is-zoomed {
  position: fixed;
  inset: 0;
  z-index: 10000;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  background: var(--color-white);
  padding: 4rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
}
.ct-map-container.is-zoomed .ct-map-container__toolbar,
.ct-map-container.is-zoomed .chart__figure-number {
  display: none;
}
.ct-map-container.is-zoomed > svg {
  width: 100%;
  max-height: calc(100vh - 6rem);
  min-width: 0;
}
.ct-map-container.is-zoomed .ct-map-container__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-white);
  border: 1px solid var(--grey-300);
  border-radius: 50%;
  color: var(--color-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.ct-map-container.is-zoomed .ct-map-container__close:hover,
.ct-map-container.is-zoomed .ct-map-container__close:focus-visible {
  background: var(--grey-100);
  border-color: var(--grey-500);
  outline: none;
}
.ct-map-container > svg {
  display: block;
  width: 100%;
  height: auto;
}
/* Note: we deliberately do NOT break the inline chart out of the
   .report-body 720px column. Earlier attempts to do so via a full-bleed
   media query caused the chart to visually collide with the sticky TOC
   on the left and the resources/sidebar on the right at scroll positions
   where those rails are still visible. The "View larger" button provides
   a clean, opt-in path to viewing the chart at full viewport size, so
   the inline rendering stays tidy in its column. */
@media (max-width: 768px) {
  /* On phones, force a readable minimum width so users pan horizontally
     rather than squint at an unreadable shrunk-to-fit chart. */
  .ct-map-container > svg {
    min-width: 900px;
  }
}
#cluster-resigned,
#cluster-activated {
  outline: none;
}
.ct-map__cluster-label {
  opacity: 0;
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}
#cluster-resigned:hover ~ .ct-map__cluster-label--resigned,
#cluster-resigned:focus ~ .ct-map__cluster-label--resigned,
#cluster-activated:hover ~ .ct-map__cluster-label--activated,
#cluster-activated:focus ~ .ct-map__cluster-label--activated {
  opacity: 1;
}
