/* ==========================================================================
   Insights / white paper article styling.
   Deliberately kept separate from /css/main.css — this section has its own
   visual identity and should not be affected by changes to the main site.
   Colours and measurements are lifted directly from the approved white
   paper design reference.
   ========================================================================== */

.wp {
  --wp-amber: #ffb320;
  --wp-amber-soft: #ffcf74;
  --wp-amber-deep: #d98a1a;
  --wp-brick: #b83232;
  --wp-pink: #d91656;
  --wp-coral: #ef6a5a;
  --wp-navy: #1b3a5c;
  --wp-ink: #201f1c;
  --wp-body: #57564c;
  --wp-muted: #a9a9a9;
  --wp-panel-bg: #f2f2f2;
  --wp-line: #e6e4e0;
  --wp-chart-blue: #4682b4;
  --wp-max: 1120px;
  --wp-sidebar: 300px;

  margin: 0;
  font-family: "Satoshi Web", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  color: var(--wp-body);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:where(.wp) * {
  box-sizing: border-box;
}

:where(.wp) a {
  color: inherit;
}

.wp__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wp__container {
  max-width: var(--wp-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* --- Masthead ------------------------------------------------------------ */

.wp__masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
}

.wp__logo {
  display: block;
}

.wp__logo img {
  display: block;
  height: 56px;
  width: auto;
}

a.wp__crumb {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--wp-amber-deep);
  text-decoration: none;
}

a.wp__crumb:hover {
  color: var(--wp-brick);
}

/* --- Header / hero band --------------------------------------------------- */

.wp__header {
  background: var(--wp-amber);
  padding-block: clamp(2.5rem, 5vw, 3.75rem) clamp(2rem, 4vw, 3rem);
}

.wp__eyebrow {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp-ink);
  margin: 0 0 2rem;
}

.wp__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.08;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.5rem;
}

.wp__subtitle {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #fff;
  max-width: 34ch;
  margin: 0 0 2.5rem;
}

.wp__byline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28, 43, 58, 0.25);
}

.wp__byline-group {
  display: grid;
  gap: 0.3rem;
}

.wp__byline-label {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp-ink);
}

.wp__byline-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.wp__byline-role {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.wp__sponsor {
  display: grid;
  justify-items: end;
  gap: 0.4rem;
  text-align: right;
}

.wp__sponsor-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.wp__sponsor-mark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--wp-ink);
}

img.wp__sponsor-mark {
  display: block;
  height: 32px;
  width: auto;
}

/* --- Body layout: main + sidebar ------------------------------------------ */

.wp__body {
  padding-block: clamp(2.5rem, 5vw, 3.75rem) clamp(3rem, 6vw, 4.5rem);
}

.wp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--wp-sidebar);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .wp__layout {
    grid-template-columns: 1fr;
  }

  .wp__sidebar {
    order: -1;
  }
}

.wp__sidebar {
  position: sticky;
  top: 1.5rem;
  min-width: 0;
  display: grid;
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .wp__sidebar {
    position: static;
  }
}

.wp__panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp-ink);
  margin: 0 0 1rem;
}

.wp__toc-details > summary.wp__panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
}

.wp__toc-details[open] > summary.wp__panel-title {
  margin-bottom: 1rem;
}

.wp__toc-details > summary.wp__panel-title::-webkit-details-marker {
  display: none;
}

.wp__toc-chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: -0.05rem;
  border-right: 1.5px solid var(--wp-ink);
  border-bottom: 1.5px solid var(--wp-ink);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.wp__toc-details[open] .wp__toc-chevron {
  transform: rotate(45deg);
  margin-top: -0.15rem;
}

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

.wp__toc li {
  display: flex;
  gap: 0.9rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--wp-line);
}

.wp__toc li:first-child {
  padding-top: 0;
}

.wp__toc-num {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--wp-muted);
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.wp__toc a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wp-muted);
  line-height: 1.4;
}

.wp__toc li.is-active a {
  color: var(--wp-ink);
}

.wp__toc a:hover {
  color: var(--wp-brick);
}

.wp__about {
  background: var(--wp-panel-bg);
  border-radius: 10px;
  padding: 1.75rem;
  margin-top: 0.5rem;
}


.wp__about-text {
  font-size: 0.9rem;
  color: var(--wp-body);
  margin: 0;
}

.wp__download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding: 0.65rem 1.1rem;
  background: var(--wp-amber);
  color: var(--wp-ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.wp__download-btn svg {
  flex-shrink: 0;
}

.wp__download-btn:hover {
  background: var(--wp-amber-deep);
  color: #fff;
}

/* --- Article content -------------------------------------------------------- */

.wp__article {
  min-width: 0;
  max-width: 46rem;
}

.wp__rule {
  height: 2px;
  background: var(--wp-navy);
  border: 0;
  margin: 0 0 1.75rem;
}

.wp__h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp-ink);
  margin: 0 0 1.25rem;
}

.wp__lede {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 400;
  color: var(--wp-ink);
  line-height: 1.35;
}

:where(.wp) p {
  font-size: 1rem;
  margin: 0 0 1.25rem;
}

:where(.wp) p strong {
  font-weight: 700;
  color: var(--wp-ink);
}

/* Section heading with the "— 01 ————" divider */

.wp__section-num {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 3rem 0 1.25rem;
}

.wp__section-num::before {
  content: "";
  width: 2.75rem;
  height: 2px;
  background: var(--wp-brick);
  flex-shrink: 0;
}

.wp__section-num::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--wp-brick);
}

.wp__section-num-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wp-brick);
}

.wp__h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--wp-navy);
  line-height: 1.25;
  margin: 0 0 1.5rem;
  scroll-margin-top: 1.5rem;
}

.wp__h4 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--wp-navy);
  margin: 2.5rem 0 1.25rem;
  scroll-margin-top: 1.5rem;
}

/* --- Key findings callout --------------------------------------------------- */

.wp__callout {
  background: var(--wp-amber);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  margin: 2rem 0;
}

.wp__callout-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wp-ink);
  margin: 0 0 1rem;
}

.wp__callout-intro {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.wp__callout-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.wp__callout-list li {
  position: relative;
  padding-left: 1.15rem;
  color: #fff;
  font-size: 0.95rem;
}

.wp__callout-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.wp__callout-list strong {
  color: var(--wp-ink);
  font-weight: 700;
}

/* --- Stat highlight ---------------------------------------------------------- */

.wp__stat {
  border-left: 4px solid var(--wp-amber);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2.5rem 0;
}

.wp__stat-figure {
  display: block;
  font-size: clamp(3rem, 7vw, 4.25rem);
  font-weight: 300;
  color: var(--wp-pink);
  line-height: 1;
  margin: 0 0 0.5rem;
}

.wp__stat-caption {
  font-size: 1.1rem;
  color: var(--wp-pink);
  margin: 0;
  max-width: 34ch;
}

.wp__stat img {
  display: block;
  max-width: 320px;
  width: 100%;
  height: auto;
}

/* --- Simple horizontal bar chart --------------------------------------------- */

.wp__chart {
  margin: 1.5rem 0 2rem;
}

.wp__chart-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.wp__chart-label {
  font-size: 0.9rem;
  color: var(--wp-ink);
  text-align: right;
}

.wp__chart-bar {
  height: 1.9rem;
  background: var(--wp-chart-blue);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline: 0.65rem;
  min-width: 2.5rem;
}

.wp__chart-value {
  font-size: 0.85rem;
  font-weight: 400;
  color: #fff;
}

.wp__chart-value--outside {
  color: var(--wp-body);
  margin-left: 0.5rem;
}

.wp__chart-axis {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp-ink);
  margin: 0.75rem 0 0.35rem 11.75rem;
}

.wp__chart-source {
  font-size: 0.8rem;
  color: var(--wp-muted);
  margin: 0 0 0 11.75rem;
}

@media (max-width: 640px) {
  .wp__chart-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .wp__chart-label {
    text-align: left;
  }

  .wp__chart-axis,
  .wp__chart-source {
    margin-left: 0;
  }
}

/* --- 100%-stacked comparison chart -------------------------------------------- */

.wp__stackchart {
  margin: 1.75rem 0 2.25rem;
}

.wp__stackchart-legend {
  display: flex;
  padding-left: 3.5rem;
  margin-bottom: 0.6rem;
}

.wp__stackchart-legend span {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  color: var(--wp-ink);
}

.wp__stackchart-legend span.is-active {
  color: #2f8fe0;
  font-weight: 700;
}

.wp__stackchart-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin-bottom: 0.5rem;
}

.wp__stackchart-label {
  font-size: 0.85rem;
  color: var(--wp-ink);
}

.wp__stackchart-bar {
  display: flex;
  height: 1.75rem;
  overflow: hidden;
}

.wp__stackchart-seg {
  height: 100%;
}

.wp__stackchart-seg--1 {
  background: #8fa5bb;
}

.wp__stackchart-seg--2 {
  background: #5c7c9a;
}

.wp__stackchart-seg--3 {
  background: #2f8fe0;
}

.wp__stackchart-seg--4 {
  background: #274d70;
}

.wp__stackchart-seg--5 {
  background: #16324a;
}

.wp__stackchart-axis {
  display: flex;
  justify-content: space-between;
  padding-left: 3.5rem;
  margin-top: 0.4rem;
}

.wp__stackchart-axis span {
  font-size: 0.8rem;
  color: var(--wp-ink);
}

/* --- Image gallery ------------------------------------------------------------ */

.wp__gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}

.wp__gallery-col {
  display: grid;
  gap: 1rem;
}

.wp__gallery-item {
  border: 2px solid var(--wp-amber);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(
    135deg,
    #f2ece0,
    #f2ece0 10px,
    #e9e2d2 10px,
    #e9e2d2 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--wp-muted);
  text-align: center;
  padding: 0.5rem;
}

.wp__gallery-item--tall {
  aspect-ratio: auto;
  height: 100%;
}

.wp__gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .wp__gallery {
    grid-template-columns: 1fr;
  }
}

/* --- Full-width figure --------------------------------------------------------- */

.wp__figure {
  margin: 2.5rem 0;
  border: 2px solid var(--wp-amber);
  border-radius: 20px;
  overflow: hidden;
}

.wp__figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Plain full-bleed image — used for designed graphics that already have
   their own border/rounded-corner treatment baked in (no card wrapper) */

.wp__media {
  margin: 2.5rem 0;
}

.wp__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Designed chart / diagram / word-cloud exports dropped straight into the
   article flow, replacing the hand-built HTML/CSS chart components */

.wp__chart-img {
  display: block;
  width: 100%;
  /*max-width: 100%;*/
  height: auto;
  margin: 1.75rem 0 2.25rem;
}

/* --- Haptic continuum / spectrum diagram --------------------------------------- */

.wp__spectrum {
  margin: 1.75rem 0 2.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    var(--wp-amber-soft) 0%,
    #f2f2f2 50%,
    #d7e4ee 100%
  );
}

.wp__spectrum-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wp__spectrum-col {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.wp__spectrum-col p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--wp-ink);
  margin: 0;
}

.wp__spectrum-col:nth-child(2) {
  justify-items: center;
  text-align: center;
}

.wp__spectrum-col:nth-child(3) {
  justify-items: end;
  text-align: right;
}

.wp__spectrum-axis {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--wp-ink);
  padding-top: 0.6rem;
}

.wp__spectrum-axis span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp-ink);
}

@media (max-width: 640px) {
  .wp__spectrum-cols {
    grid-template-columns: 1fr;
  }

  .wp__spectrum-col,
  .wp__spectrum-col:nth-child(2),
  .wp__spectrum-col:nth-child(3) {
    justify-items: start;
    text-align: left;
  }
}

/* --- Paired / grouped vertical bar chart ---------------------------------------- */

.wp__bargroup {
  margin: 1.75rem 0 2.25rem;
}

.wp__bargroup-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--wp-ink);
}

.wp__bargroup-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wp__bargroup-swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  display: inline-block;
}

.wp__bargroup-swatch--a {
  background: var(--wp-brick);
}

.wp__bargroup-swatch--b {
  background: var(--wp-ink);
}

.wp__bargroup-track {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.75rem, 3vw, 2rem);
  height: 200px;
  border-bottom: 1px solid var(--wp-line);
  padding-bottom: 0;
}

.wp__bargroup-cat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.wp__bargroup-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}

.wp__bargroup-bar {
  width: 1.6rem;
  display: flex;
  justify-content: center;
  padding-top: 0.3rem;
}

.wp__bargroup-bar span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--wp-ink);
  transform: translateY(-1.3rem);
  white-space: nowrap;
}

.wp__bargroup-bar--a {
  background: var(--wp-brick);
}

.wp__bargroup-bar--b {
  background: var(--wp-ink);
}

.wp__bargroup-label {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--wp-ink);
  text-align: center;
}

/* --- Word cloud panel ------------------------------------------------------------ */

.wp__wordcloud {
  margin: 1.75rem 0 2.25rem;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 20px;
  background: var(--wp-panel-bg);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem 1.1rem;
}

.wp__wordcloud span {
  font-weight: 700;
  color: var(--wp-ink);
}

.wp__wc--xl {
  font-size: 3rem;
  color: var(--wp-pink);
}

.wp__wc--lg {
  font-size: 1.9rem;
  color: var(--wp-navy);
}

.wp__wc--md {
  font-size: 1.3rem;
  color: var(--wp-amber-deep);
  font-weight: 500;
}

.wp__wc--sm {
  font-size: 1rem;
  color: var(--wp-muted);
  font-weight: 500;
}

/* --- Pull quote ------------------------------------------------------------------- */

.wp__quote {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  color: var(--wp-coral);
  margin: 2rem 0;
}

/* --- References ------------------------------------------------------------------- */

.wp__refs {
  columns: 2;
  column-gap: 2.5rem;
  margin-top: 1.5rem;
}

.wp__refs p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--wp-body);
  margin: 0 0 1rem;
  break-inside: avoid;
}

@media (max-width: 640px) {
  .wp__refs {
    columns: 1;
  }
}

/* --- Footer ------------------------------------------------------------------- */

.wp__footer {
  border-top: 1px solid var(--wp-line);
  padding-block: 2rem;
}

.wp__footer-text {
  font-size: 0.8rem;
  color: var(--wp-muted);
  margin: 0;
}
