/* ================================================================
   ODPL – reports.css
   Our Work › Reports & Publications page
   Editorial list-row layout (not cards)
   ================================================================ */

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ================================================================
   HERO
   ================================================================ */
.rpt-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-4);
  padding: 72px 0 0;
}

.rpt-hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(130deg, rgba(25,42,61,1) 0%, rgba(49,84,83,.7) 100%);
}

/* Subtle grid pattern */
.rpt-hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.rpt-hero__inner {
  position: relative; z-index: 2;
  padding-bottom: 0;
}

/* Breadcrumb (shared selector from blog.css) */
.page-hero__breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .77rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,.4); transition: color .2s; }
.page-hero__breadcrumb a:hover { color: var(--color-2); }
.page-hero__breadcrumb span:last-child { color: var(--color-2); }

/* Split layout */
.rpt-hero__split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: end;
  padding-bottom: 64px;
}

.rpt-hero__title {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; color: #fff;
  line-height: 1.16; margin-bottom: 18px;
}
.rpt-hero__title em { font-style: normal; color: var(--color-2); }

.rpt-hero__sub {
  font-size: .97rem; color: rgba(255,255,255,.6);
  line-height: 1.74; max-width: 520px; margin-bottom: 32px;
}

.rpt-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* KPI stack on the right */
.rpt-hero__stat-stack {
  display: flex; flex-direction: column; gap: 3px;
  align-self: end;
}

.rpt-kpi {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-left: 3px solid var(--color-1);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 3px;
}
.rpt-kpi__num {
  font-family: var(--heading-font);
  font-size: 2.2rem; font-weight: 700;
  color: var(--color-2); line-height: 1;
}
.rpt-kpi__label {
  font-size: .74rem; font-weight: 600;
  color: rgba(255,255,255,.45); letter-spacing: .04em;
}

.rpt-kpi--sm {
  padding: 14px 22px;
  flex-direction: row; align-items: center;
  gap: 14px;
}
.rpt-kpi--sm .rpt-kpi__num { font-size: 1.5rem; }

.rpt-kpi--accent {
  background: rgba(242,140,40,.12);
  border-color: rgba(242,140,40,.25);
  border-left-color: var(--color-2);
  flex-direction: row; align-items: center;
  gap: 12px; padding: 14px 22px;
}
.rpt-kpi--accent svg {
  width: 18px; height: 18px;
  stroke: var(--color-2); flex-shrink: 0;
}
.rpt-kpi--accent span {
  font-size: .82rem; font-weight: 700;
  color: rgba(255,255,255,.7); letter-spacing: .03em;
}

/* ================================================================
   FILTER RAIL
   ================================================================ */
.rpt-rail {
  background: var(--color-8);
  border-bottom: 1px solid #e0e7ed;
  position: sticky; top: 76px; z-index: 100;
  box-shadow: 0 2px 12px rgba(25,42,61,.06);
}

.rpt-rail__inner {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rpt-rail__inner::-webkit-scrollbar { display: none; }

.rpt-rail__tabs {
  display: flex; align-items: stretch;
  gap: 0; min-width: max-content;
}

.rpt-rail__tab {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 20px;
  font-family: var(--font-family);
  font-size: .84rem; font-weight: 700;
  color: #6a7b8d;
  border: none; background: none; cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.rpt-rail__tab:hover { color: var(--color-1); }
.rpt-rail__tab.is-active {
  color: var(--color-1);
  border-bottom-color: var(--color-1);
}

.rpt-rail__count {
  background: var(--color-6);
  color: #9aa8b5;
  font-size: .68rem; font-weight: 800;
  padding: 2px 7px; border-radius: 20px;
  transition: background .2s, color .2s;
}
.rpt-rail__tab.is-active .rpt-rail__count {
  background: rgba(49,84,83,.12);
  color: var(--color-1);
}

/* ================================================================
   REPORT BODY
   ================================================================ */
.rpt-body { padding: 64px 0 80px; background: var(--color-7); }

/* Section */
.rpt-section {
  margin-bottom: 64px;
  border-bottom: 1px solid #e4eaef;
  padding-bottom: 64px;
}
.rpt-section:last-of-type { border-bottom: none; margin-bottom: 0; }

/* Section hidden state */
.rpt-section.is-hidden { display: none; }

/* Section heading row */
.rpt-section__head {
  display: grid;
  grid-template-columns: 56px 1fr 200px;
  gap: 20px;
  align-items: start;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px dashed #dde3e8;
}

.rpt-section__head-img {
  width: 200px; height: 120px;
  overflow: hidden; flex-shrink: 0;
  border-radius: 4px;
}
.rpt-section__head-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.rpt-section__head-icon {
  width: 56px; height: 56px;
  background: rgba(49,84,83,.09);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rpt-section__head-icon svg {
  width: 22px; height: 22px;
  stroke: var(--color-1);
}

.rpt-section__title {
  font-family: var(--heading-font);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--heading-color);
  margin-bottom: 8px;
}

.rpt-section__intro {
  font-size: .9rem;
  color: #6a7b8d;
  line-height: 1.72;
  max-width: 760px;
  margin: 0;
}

/* ================================================================
   REPORT ROW  — the core design element
   ================================================================ */
.rpt-list { display: flex; flex-direction: column; gap: 0; }

.rpt-row {
  display: grid;
  grid-template-columns: 110px 1fr 180px;
  gap: 0;
  border: 1px solid #e0e7ed;
  border-bottom: none;
  background: var(--color-8);
  transition: box-shadow var(--transition);
  position: relative;
}
.rpt-list .rpt-row:last-child { border-bottom: 1px solid #e0e7ed; }
.rpt-row:hover { box-shadow: 0 6px 28px rgba(25,42,61,.1); z-index: 1; }

/* Teal accent bar on hover */
.rpt-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-1);
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s ease;
}
.rpt-row:hover::before { transform: scaleY(1); }

/* ── Aside (PDF icon + meta) ── */
.rpt-row__aside {
  padding: 28px 20px 28px 24px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  border-right: 1px solid #e8edf1;
  background: var(--color-6);
}

.rpt-row__pdf-icon {
  color: var(--color-1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rpt-row__pdf-icon svg { width: 40px; height: 48px; }

.rpt-row__meta-stack {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px; text-align: center;
}
.rpt-row__type {
  font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-1);
  background: rgba(49,84,83,.1);
  padding: 3px 8px;
}
.rpt-row__year {
  font-size: .78rem; font-weight: 700;
  color: var(--heading-color);
}
.rpt-row__pages {
  font-size: .72rem; color: #9aa8b5;
}

/* ── Body ── */
.rpt-row__body {
  padding: 28px 32px;
  display: flex; flex-direction: column; justify-content: center;
}

.rpt-row__client-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: #8a9bab;
  margin-bottom: 10px;
}
.rpt-row__client-badge svg { stroke: #9aa8b5; flex-shrink: 0; }

.rpt-row__title {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  color: var(--heading-color);
  line-height: 1.32;
  margin-bottom: 10px;
  transition: color .2s;
}
.rpt-row:hover .rpt-row__title { color: var(--color-1); }

.rpt-row__excerpt {
  font-size: .85rem;
  color: #6a7b8d;
  line-height: 1.68;
  margin-bottom: 16px;
  max-width: 640px;
}

/* Themes */
.rpt-row__themes {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.rpt-theme {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .06em;
  color: var(--color-1);
  border: 1px solid rgba(49,84,83,.25);
  padding: 3px 10px;
  background: rgba(49,84,83,.04);
  transition: background .2s, border-color .2s;
}
.rpt-row:hover .rpt-theme {
  background: rgba(49,84,83,.08);
  border-color: rgba(49,84,83,.35);
}

/* ── Action column ── */
.rpt-row__action {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-left: 1px solid #e8edf1;
}

/* Download button */
.rpt-download-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  width: 100%;
  padding: 20px 16px;
  background: var(--color-1);
  color: #fff;
  text-decoration: none;
  transition: background .2s, transform .2s;
  text-align: center;
}
.rpt-download-btn:hover {
  background: var(--color-2);
  color: #fff;
  transform: translateY(-2px);
}

.rpt-download-btn__icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.rpt-download-btn__icon svg {
  width: 18px; height: 18px;
  stroke: #fff;
}

.rpt-download-btn__text { display: flex; flex-direction: column; gap: 2px; }
.rpt-download-btn__primary {
  font-size: .85rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.rpt-download-btn__secondary {
  font-size: .7rem; font-weight: 500;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
}

/* Share icon */
.rpt-row__share {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid #dde3e8;
  color: #9aa8b5;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.rpt-row__share:hover {
  border-color: var(--color-1);
  color: var(--color-1);
  background: rgba(49,84,83,.06);
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.rpt-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 0 40px;
  color: #9aa8b5;
}
.rpt-empty.is-visible { display: flex; }
.rpt-empty svg { margin-bottom: 20px; stroke: #c0cad3; }
.rpt-empty p { font-size: .95rem; margin-bottom: 24px; }

/* ================================================================
   REQUEST BAND
   ================================================================ */
.rpt-request-band {
  position: relative;
  overflow: hidden;
  background: var(--color-4);
  padding: 72px 0;
}

.rpt-request-band__pattern {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(49,84,83,.4) 0%, transparent 60%),
    repeating-linear-gradient(-45deg,
      rgba(255,255,255,.012) 0px, rgba(255,255,255,.012) 1px,
      transparent 1px, transparent 20px);
  pointer-events: none;
}

.rpt-request-band__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px; align-items: center;
}

.rpt-request-band__icon {
  width: 80px; height: 80px;
  background: rgba(242,140,40,.12);
  border: 1px solid rgba(242,140,40,.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rpt-request-band__icon svg {
  width: 32px; height: 32px;
  stroke: var(--color-2);
}

.rpt-request-band__title {
  font-family: var(--heading-font);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: #fff; margin-bottom: 10px;
}
.rpt-request-band__sub {
  font-size: .9rem; color: rgba(255,255,255,.58);
  line-height: 1.72; max-width: 540px; margin: 0;
}

.rpt-request-band__actions {
  display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
}
.rpt-request-band__actions .btn { justify-content: center; white-space: nowrap; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .rpt-hero__split { grid-template-columns: 1fr; gap: 40px; }
  .rpt-hero__right { display: none; }

  .rpt-row { grid-template-columns: 90px 1fr 160px; }

  .rpt-request-band__inner { grid-template-columns: 60px 1fr; gap: 24px; }
  .rpt-request-band__actions { grid-column: 1 / -1; flex-direction: row; }
  .rpt-request-band__icon { display: none; }
}

@media (max-width: 768px) {
  .rpt-rail { top: 0; position: relative; }

  .rpt-row {
    grid-template-columns: 1fr;
    border-bottom: none;
  }
  .rpt-list .rpt-row:last-child { border-bottom: 1px solid #e0e7ed; }

  .rpt-row__aside {
    flex-direction: row; align-items: center;
    border-right: none; border-bottom: 1px solid #e8edf1;
    padding: 16px 20px; gap: 16px; justify-content: flex-start;
  }
  .rpt-row__meta-stack { flex-direction: row; gap: 8px; align-items: center; text-align: left; }

  .rpt-row__body { padding: 20px 20px 16px; }

  .rpt-row__action {
    border-left: none; border-top: 1px solid #e8edf1;
    flex-direction: row; padding: 16px 20px;
    justify-content: space-between;
  }
  .rpt-download-btn {
    flex-direction: row; padding: 14px 20px; gap: 12px;
    flex: 1;
  }
  .rpt-download-btn__text { flex-direction: row; align-items: center; gap: 6px; }

  .rpt-section__head { grid-template-columns: 44px 1fr; gap: 14px; }
  .rpt-section__head-img { display: none; }

  .rpt-request-band__inner { display: flex; flex-direction: column; align-items: flex-start; }
  .rpt-request-band__actions { flex-direction: column; width: 100%; }
  .rpt-request-band__actions .btn { width: 100%; }
}

@media (max-width: 520px) {
  .rpt-body { padding: 40px 0 56px; }
  .rpt-section { margin-bottom: 48px; padding-bottom: 48px; }
  .rpt-row__excerpt { display: none; }
}