/* ============================================================
   Statistics page — redesign (shares tokens/header/footer/buttons
   with landing/styles.css). Statistics-specific blocks only.
   ============================================================ */

/* ---- Hero / intro ---- */
.rd-stats-hero {
  width: MIN(100%, calc(var(--rd-max) + 40px));
  margin: 40px auto 0;
  padding: 0 20px;
}
.rd-stats-hero__inner {
  background: var(--rd-card-dark);
  color: var(--rd-on-dark);
  border-radius: var(--rd-radius);
  padding: clamp(28px, 4vw, 56px);
}
.rd-stats-hero__eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rd-muted-dark);
}
.rd-stats-hero__title {
  margin-top: 14px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.02;
}
.rd-stats-hero__sub {
  margin-top: 18px;
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--rd-muted-dark);
  max-width: 70ch;
}
.rd-stats-hero__sub b { color: var(--rd-on-dark); font-weight: 700; }

/* ---- Month blocks (collapsible) ---- */
.rd-statmonths {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rd-statmonth {
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius);
  overflow: hidden;
}
.rd-statmonth__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.rd-statmonth__head::-webkit-details-marker { display: none; }
.rd-statmonth__head::marker { content: ""; }
.rd-statmonth__title {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.1;
}
.rd-statmonth__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.rd-statmonth__count {
  font-weight: 600;
  font-size: 14px;
  color: var(--rd-muted);
}
.rd-statmonth__chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--rd-ink);
  border-bottom: 2px solid var(--rd-ink);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -4px;
}
.rd-statmonth[open] .rd-statmonth__chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.rd-statmonth .rd-statgrid {
  padding: 0 24px 24px;
  border-top: 1px solid var(--rd-line);
  padding-top: 24px;
}

/* ---- Slides grid ---- */
.rd-statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.rd-slide {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--rd-surface);
  border-radius: var(--rd-radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  transition: transform .15s ease, box-shadow .2s ease;
}
.rd-slide:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}
.rd-slide picture,
.rd-slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Lightbox ---- */
.rd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 12, .92);
  padding: 24px;
}
.rd-lightbox.is-open { display: flex; }
.rd-lightbox__img {
  max-width: min(92vw, 560px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.rd-lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease;
}
.rd-lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.rd-lightbox__btn--prev { left: 18px; }
.rd-lightbox__btn--next { right: 18px; }
.rd-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  font-size: 26px;
}
.rd-lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}

@media screen and (max-width: 600px) {
  .rd-statgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .rd-statmonths { gap: 12px; }
  .rd-statmonth__head { padding: 18px 16px; }
  .rd-statmonth .rd-statgrid { padding: 0 16px 16px; padding-top: 16px; }
  .rd-lightbox__btn--prev { left: 8px; }
  .rd-lightbox__btn--next { right: 8px; }
}
