/* Styles for the report pages (advocacy/reports/...). Loaded only by those pages.
   Premium editorial layout: one centred reading column, a wide lead picture, hairline rules instead of cards.
   Everything here is scoped to .rp-* classes, so no other page is affected. Brand colours and fonts come from the
   variables in site.css (RSU green and gold; Plus Jakarta Sans throughout). */

/* ---------- skip link and page frame ---------- */
.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 4000;
  background: var(--green-800, #145226); color: #fff; padding: 12px 18px; border-radius: 8px;
  font: 600 14px/1.2 var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif); text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--gold, #C49A2A); outline-offset: 2px; }

.rp-page { padding-top: 72px; }                /* clears the fixed navigation bar (72px) */
#main:focus { outline: none; }                 /* the skip link moves focus here; no ring around the whole page */

.rp-article {
  --rp-gutter: clamp(20px, 5vw, 48px);
  --rp-wide: 1040px;                           /* ONE shared width: breadcrumb, picture, details band, text and end area all
                                                  line up on the same left and right edges */
  --rp-read: 1040px;
  --rp-side: clamp(200px, 24vw, 280px);        /* desktop: left column that holds each section heading */
  --rp-gap: 48px;
  --rp-rule: rgba(26, 77, 52, 0.22);
  --rp-label: #55675c;                         /* small labels: 5.6:1 on the page colour */
  color: var(--text-body, #3D4F43);
  padding-bottom: 24px;
}
.rp-article a { text-underline-offset: 3px; }
.rp-article a:focus-visible, .rp-article button:focus-visible { outline: 3px solid var(--gold, #C49A2A); outline-offset: 3px; border-radius: 4px; }

/* ---------- header: breadcrumb, label, title, quiet share row, lead picture ---------- */
.rp-head { width: min(100% - 2 * var(--rp-gutter), var(--rp-wide)); margin: 0 auto; }

.rp-crumbs { padding-top: 28px; font-size: 14px; line-height: 1.5; }
.rp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0; }
.rp-crumbs li { display: inline-flex; align-items: center; color: var(--rp-label); }
.rp-crumbs li + li::before { content: '\203A' / ''; margin: 0 10px; color: var(--text-hint, #9BAA9F); }
.rp-crumbs a { color: var(--green-700, #1A6B30); text-decoration: none; padding: 8px 0; }
.rp-crumbs a:hover { color: var(--green-900, #0F3D1C); text-decoration: underline; }
.rp-crumbs [aria-current] { color: var(--ink-soft, #2C3A31); }

.rp-intro { padding: 36px 0 0; text-align: center; }
.rp-eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0;
  font: 700 12px/1.4 var(--font-mono, 'Plus Jakarta Sans', system-ui, sans-serif); letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700, #1A6B30); text-align: center; text-wrap: balance;
}
.rp-eyebrow::before, .rp-eyebrow::after { content: ''; flex: 0 0 28px; height: 2px; background: var(--gold, #C49A2A); }
.rp-title {
  margin: 20px auto 0; max-width: 24ch;
  font: 800 clamp(2.125rem, 1.35rem + 3.3vw, 3.625rem)/1.08 var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  letter-spacing: -0.012em; color: var(--ink, #111A15); text-wrap: balance;
}
.rp-lead { margin: 40px 0 0; }
.rp-lead img {
  display: block; width: 100%; height: auto; border-radius: 4px; background: var(--ivory-dark, #EDE8DC);
  aspect-ratio: var(--rp-ar, 1.5); object-fit: cover; object-position: 50% 28%;
}

/* portrait picture (report 9): shown whole; beside the title on wide screens, below it on tablets and phones */
.rp-article--portrait .rp-lead img { aspect-ratio: 1086 / 1448; object-fit: contain; object-position: center; }
.rp-article--portrait .rp-lead { max-width: 460px; margin: 40px auto 0; }
@media (min-width: 900px) {
  .rp-article--portrait .rp-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; text-align: left; padding-top: 40px; }
  .rp-article--portrait .rp-eyebrow::after { display: none; }
  .rp-article--portrait .rp-title { margin-left: 0; max-width: 16ch; }
  .rp-article--portrait .rp-lead { margin: 0; max-width: none; }
}

/* ---------- report details ---------- */
.rp-facts {
  width: min(100% - 2 * var(--rp-gutter), var(--rp-wide)); margin: 48px auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 40px;
  border-top: 1px solid var(--rp-rule); border-bottom: 1px solid var(--rp-rule);
}
.rp-fact { padding: 20px 0 22px; }
.rp-fact dt {
  margin: 0 0 6px; font: 700 11px/1.4 var(--font-mono, 'Plus Jakarta Sans', system-ui, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--rp-label);
}
.rp-fact dd { margin: 0; font: 500 16px/1.45 var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif); color: var(--ink, #111A15); }

/* ---------- reading column ---------- */
.rp-body { width: min(100% - 2 * var(--rp-gutter), var(--rp-read)); margin: 72px auto 0; }
.rp-section + .rp-section { margin-top: 60px; }
.rp-h2 {
  margin: 0 0 20px;
  font: 800 clamp(1.5rem, 1.2rem + 1.1vw, 1.9rem)/1.2 var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  letter-spacing: -0.005em; color: var(--ink, #111A15); text-wrap: balance;
}
.rp-h2::before { content: ''; display: block; width: 32px; height: 2px; margin-bottom: 18px; background: var(--gold, #C49A2A); }
.rp-prose { margin: 0; font-size: 1.125rem; line-height: 1.75; color: var(--text-body, #3D4F43); text-wrap: pretty; }
.rp-prose + .rp-prose { margin-top: 1.2em; }
.rp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-md, rgba(26,77,52,.2)); }
.rp-list li {
  position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--border, rgba(26,77,52,.12));
  font-size: 1.0625rem; line-height: 1.6; color: var(--text-body, #3D4F43);
}
.rp-list li::before {
  content: ''; position: absolute; left: 4px; top: calc(14px + .8em - 3px); width: 6px; height: 6px;
  background: var(--gold, #C49A2A); transform: rotate(45deg);
}

/* ---------- end of the report: share, related reports, back link ---------- */
.rp-end { width: min(100% - 2 * var(--rp-gutter), var(--rp-read)); margin: 88px auto 0; padding: 44px 0 72px; border-top: 1px solid var(--rp-rule); }
.rp-share--full { margin: 0; }
.rp-share-title {
  margin: 0 0 18px; font: 800 1.625rem/1.2 var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif); color: var(--ink, #111A15);
}
.rp-share-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rp-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--border-md, rgba(26,77,52,.2)); border-radius: 999px; background: transparent;
  color: var(--green-800, #145226); font: 600 14px/1 var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
  text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.rp-btn:hover { background: var(--green-50, #EFFAF0); border-color: var(--green-500, #2E9E44); color: var(--green-900, #0F3D1C); }
.rp-share [hidden] { display: none !important; }
.rp-share-status { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; color: var(--green-700, #1A6B30); }

.rp-related { margin-top: 56px; }
.rp-related-head { margin: 0 0 14px; font: 800 1.375rem/1.25 var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif); color: var(--ink, #111A15); }
.rp-related-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rp-rule); }
.rp-related-list li { border-bottom: 1px solid var(--border, rgba(26,77,52,.12)); }
.rp-related-link {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 18px 0; text-decoration: none; color: inherit;
}
.rp-related-link::after { content: '\2192' / ''; flex: 0 0 auto; order: 2; color: var(--green-700, #1A6B30); transition: transform .15s ease; }
.rp-related-title { flex: 1 1 0; min-width: 0; font: 800 1.25rem/1.3 var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif); color: var(--ink, #111A15); }
.rp-related-tag { order: 3; flex: 0 0 100%; font: 700 11px/1.4 var(--font-mono, 'Plus Jakarta Sans', system-ui, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--rp-label); }
.rp-related-link:hover .rp-related-title { color: var(--green-700, #1A6B30); text-decoration: underline; text-underline-offset: 4px; }
.rp-related-link:hover::after { transform: translateX(4px); }

.rp-back-wrap { margin: 48px 0 0; }
.rp-back {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 600 15px/1 var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif); color: var(--green-800, #145226); text-decoration: none;
}
.rp-back:hover { color: var(--green-900, #0F3D1C); text-decoration: underline; }

/* ---------- desktop: headings hang in the left column; text runs to the picture's right edge ---------- */
@media (min-width: 900px) {
  .rp-section { display: grid; grid-template-columns: var(--rp-side) minmax(0, 1fr); column-gap: var(--rp-gap); }
  .rp-section + .rp-section { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--rp-rule); }
  .rp-section > .rp-h2 { grid-column: 1; margin: 0; }
  .rp-section > .rp-h2 ~ * { grid-column: 2; }
  .rp-section > .rp-h2 + .rp-prose, .rp-section > .rp-h2 + .rp-list { margin-top: 20px; }   /* first line level with the heading text, below its gold rule */
  .rp-share--full, .rp-related { display: grid; grid-template-columns: var(--rp-side) minmax(0, 1fr); column-gap: var(--rp-gap); }
  .rp-share--full > .rp-share-title, .rp-related > .rp-related-head { grid-column: 1; grid-row: 1; margin: 0; }
  .rp-share--full > :not(.rp-share-title), .rp-related > :not(.rp-related-head) { grid-column: 2; }
  .rp-back-wrap { padding-left: calc(var(--rp-side) + var(--rp-gap)); }
}
/* tablets and phones: one narrower column for everything, still on shared edges */
@media (max-width: 899px) {
  .rp-article { --rp-wide: 680px; --rp-read: 680px; }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .rp-crumbs { padding-top: 20px; }
  .rp-intro { padding-top: 28px; }
  .rp-lead { margin-top: 32px; }
  .rp-facts { margin-top: 36px; grid-template-columns: 1fr; }
  .rp-fact { padding: 16px 0; }
  .rp-fact + .rp-fact { border-top: 1px solid var(--border, rgba(26,77,52,.12)); }
  .rp-body { margin-top: 52px; }
  .rp-section + .rp-section { margin-top: 48px; }
  .rp-prose { font-size: 1.0625rem; line-height: 1.7; }
  .rp-end { margin-top: 64px; padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link, .rp-btn, .rp-related-link::after { transition: none; }
  .rp-related-link:hover::after { transform: none; }
}

/* ---------- printing: the report only, black on white ---------- */
@media print {
  #globalNav, .mobile-drawer, .floating-cta, .scroll-progress, .skip-link, .rp-crumbs, .rp-share, .rp-related, .rp-back-wrap, footer { display: none !important; }
  body { background: #fff; }
  .rp-page { padding-top: 0; }
  .rp-lead img { max-height: 9cm; border-radius: 0; }
  .rp-h2, .rp-eyebrow { break-after: avoid; }
  .rp-list li, .rp-prose { break-inside: avoid; }
  .rp-end { border: 0; padding: 0; margin-top: 24px; }
}


/* ---------- dark mode (applied when <html data-theme="dark">; light mode above is untouched) ---------- */
@media screen {
html[data-theme='dark'] .rp-article { --rp-rule: rgba(255,255,255,0.2); --rp-label: #A3B5A9; }
html[data-theme='dark'] :is(.rp-crumbs a, .rp-crumbs a:hover, .rp-eyebrow, .rp-btn, .rp-btn:hover, .rp-share-status,
  .rp-related-link::after, .rp-related-link:hover .rp-related-title, .rp-back, .rp-back:hover) { color: #B7EBBF; }
html[data-theme='dark'] .rp-btn:hover { background: #17291E; }
html[data-theme='dark'] .rp-lead img { background: #15241B; }
html[data-theme='dark'] .skip-link { background: #B7EBBF; color: #0B1510; }
}


/* ---------- blog articles (blog/<article>/): one comfortable reading column ---------- */
.bp-article .rp-title { max-width: 26ch; font-size: clamp(2rem, 1.25rem + 2.9vw, 3.125rem); line-height: 1.12; }
.bp-byline { margin: 22px 0 0; font-size: 15px; line-height: 1.5; color: var(--rp-label); }
.bp-byline span[aria-hidden] { margin: 0 6px; }
.bp-body { width: min(100% - 2 * var(--rp-gutter), var(--rp-read, 1040px)); margin: 56px auto 0; }
.bp-p { margin: 0 0 1.35em; font-size: 1.25rem; line-height: 1.8; color: var(--text-body, #3D4F43); text-wrap: pretty; }
.bp-p strong { color: var(--ink, #111A15); font-weight: 700; }
.bp-quote { margin: 0 0 1.1em; font-size: 1.375rem; line-height: 1.55; font-style: italic; color: var(--ink-soft, #2C3A31); }
.bp-callout {
  margin: 1.9em 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--gold, #C49A2A);
  font-size: 1.3125rem; line-height: 1.55; color: var(--ink, #111A15); text-wrap: balance;
}
.bp-callout strong { font-weight: 800; }
.bp-h2 { margin: 2.6em 0 .85em; font: 800 clamp(1.5rem, 1.2rem + 1.1vw, 1.9rem)/1.2 var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif); letter-spacing: -0.005em; color: var(--ink, #111A15); text-wrap: balance; }
.bp-h2::before { content: ''; display: block; width: 32px; height: 2px; margin-bottom: 18px; background: var(--gold, #C49A2A); }
.bp-list { list-style: none; margin: 0 0 1.6em; padding: 0; border-top: 1px solid var(--border-md, rgba(26,77,52,.2)); }
.bp-list li { position: relative; padding: 15px 0 15px 30px; border-bottom: 1px solid var(--border, rgba(26,77,52,.12)); font-size: 1.125rem; line-height: 1.65; color: var(--text-body, #3D4F43); }
.bp-list li::before { content: ''; position: absolute; left: 4px; top: calc(15px + .85em - 3px); width: 6px; height: 6px; background: var(--gold, #C49A2A); transform: rotate(45deg); }
.bp-list li strong { color: var(--ink, #111A15); }
.bp-body a { color: var(--green-700, #1A6B30); text-underline-offset: 3px; }
@media (max-width: 640px) {
  .bp-body { margin-top: 40px; }
  .bp-p { font-size: 1.0625rem; line-height: 1.75; }
  .bp-quote { font-size: 1.1875rem; }
  .bp-callout { font-size: 1.125rem; padding-left: 18px; }
  .bp-list li { font-size: 1.0625rem; }
}
@media print { .bp-body { width: 100%; } .bp-callout { break-inside: avoid; } }
@media screen {
html[data-theme='dark'] .bp-body a { color: #B7EBBF; }
}

/* Photo credit under an article picture */
.bp-credit { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #5b6b61; text-align: right; }
html[data-theme='dark'] .bp-credit { color: #9fb1a5; }

/* Smaller headings, numbered lists and photos inside a blog post (written in the dashboard's text editor) */
.bp-h3 { margin: 2em 0 .6em; font: 700 clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.25 var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif); color: var(--ink, #111A15); text-wrap: balance; }
ol.bp-list { counter-reset: bp-n; }
ol.bp-list li { counter-increment: bp-n; padding-left: 38px; }
ol.bp-list li::before { content: counter(bp-n) '.'; width: auto; height: auto; top: 15px; left: 2px; background: none; transform: none; color: var(--gold, #C49A2A); font-weight: 800; }
.bp-figure { margin: 2em 0; }
.bp-figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
