/* The Author Central — shared light statistic panels for all 37 writing pages.
   Covers primary About counters and secondary Why/Numbers counters.
   Page text, displayed values, data attributes and count animation are unchanged.
   Loaded after page CSS and the other shared theme overrides. */

/* Match the homepage/Leadership ivory-gold statistic panel. */
main.home-light-version .about-img-box,
main.home-light-version .why-box {
  background: linear-gradient(145deg, #fff, #faf7f0) !important;
  border: 1px solid #e4d5b6 !important;
  border-radius: 3px !important;
  color: #292721 !important;
  box-shadow: 0 15px 40px rgba(34, 24, 7, .075) !important;
  isolation: isolate;
}

/* Clear the original dark panel's ornamental overlay. */
main.home-light-version .why-box::before {
  background: radial-gradient(circle, rgba(201,168,76,.08), transparent 70%) !important;
  opacity: .65 !important;
  pointer-events: none;
}
main.home-light-version .why-box > * { position: relative; z-index: 1; }

/* Gold headline figures on both kinds of counter box. */
main.home-light-version .about-img-box .big-num,
main.home-light-version .about-img-box .mini-grid .ms .n,
main.home-light-version .why-box .why-stats .ws .n {
  color: #c9a84c !important;
  font-variant-numeric: tabular-nums;
}

/* Small labels stay clearly legible against white/ivory. */
main.home-light-version .about-img-box .big-lbl,
main.home-light-version .about-img-box .mini-grid .ms .l,
main.home-light-version .why-box .why-stats .ws .l {
  color: #5a5960 !important;
}
main.home-light-version .about-img-box .stat-line {
  background: #c9a84c !important;
}
main.home-light-version .why-box h3 {
  color: #b48d2f !important;
}

/* Secondary counter group used on History, Leadership, Memoir, etc.
   Remove dark mini-tiles so the statistics match the clean Leadership panel. */
main.home-light-version .why-box .why-stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2vw, 24px) !important;
}
main.home-light-version .why-box .why-stats .ws {
  min-width: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 10px 4px !important;
}

@media (max-width: 600px) {
  main.home-light-version .about-img-box,
  main.home-light-version .why-box {
    padding: 30px 22px !important;
  }
  main.home-light-version .about-img-box .big-num {
    font-size: clamp(3.2rem, 11vw, 4.5rem) !important;
  }
  main.home-light-version .why-box .why-stats .ws .n {
    font-size: clamp(1.4rem, 5vw, 1.9rem) !important;
  }
}
