/* [pundit_revenue_chart] — inc/charts.php */
.pp-chart { margin: 2.4rem 0; }
.pp-chart__frame { background: #25223d; border-radius: .8rem; padding: 3.2rem 3.2rem 2rem; text-align: center; }
.pp-chart__card { position: relative; background: #fff; border-radius: 1.2rem 1.2rem 6.4rem 1.2rem; padding: 3.2rem 3.2rem 2.4rem; text-align: left; }
.pp-chart__logo { display: inline-block; height: 3.2rem; width: auto; margin-top: 1.6rem; }
.pp-chart__title { margin: 0; text-align: center; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.1; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #7a8a12; }
.pp-chart__sub { margin: .6rem 0 2.4rem; text-align: center; font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 700; letter-spacing: .03em; color: #6b7a10; }
.pp-chart__plot { display: flex; gap: 1.2rem; }
.pp-chart__ylabel { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; color: #6b7a10; }
.pp-chart__grid { position: relative; flex: 1; height: 30rem; margin: 1.6rem 0 3rem 2.8rem; }
.pp-chart__tick { position: absolute; left: 0; right: 0; border-top: 2px solid #a3a3a8; }
.pp-chart__tick:first-child { border-top-color: #c9c9cd; }
.pp-chart__tick span { position: absolute; left: -2.8rem; top: -1rem; font-size: 1.3rem; font-weight: 700; color: #1b1b1c; }
.pp-chart__tick:last-of-type { border-top: 2px solid #1b1b1c; }
.pp-chart__bars { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-around; gap: .6rem; }
.pp-chart__bar { position: relative; flex: 1; max-width: 4.4rem; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.pp-chart__stack { display: flex; flex-direction: column; width: 100%; transition: height .25s ease; }
.pp-chart__seg { display: block; min-height: 0; flex-basis: 0; transition: flex-grow .25s ease; }
.pp-chart__seg--0 { background: #bccb2f; }
.pp-chart__seg--1 { background: #86b3b1; }
.pp-chart__seg--2 { background: #24213b; }
.pp-chart__seg--3 { background: #f0a43a; }
.pp-chart__seg--4 { background: #c75b7a; }
.pp-chart__seg--5 { background: #5b6fc7; }
.pp-chart__bar:hover .pp-chart__stack, .pp-chart__bar.is-active .pp-chart__stack { filter: brightness(1.08); outline: 2px solid #24213b; outline-offset: 1px; }
.pp-chart__total { font-size: 1.3rem; font-weight: 800; color: #1b1b1c; text-align: center; margin-bottom: .4rem; white-space: nowrap; }
.pp-chart__year { position: absolute; bottom: -2.6rem; left: 50%; transform: translateX(-50%); font-size: 1.3rem; font-weight: 700; color: #1b1b1c; white-space: nowrap; }
.pp-chart__legend li { margin: 0 !important; padding: 0 !important; list-style: none; }
.pp-chart__legend li::before, .pp-chart__legend li::marker { display: none !important; content: none !important; }
.pp-chart__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 3.2rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.pp-chart__legend button { display: flex; align-items: center; gap: .8rem; border: 0; background: none; padding: .4rem; font: inherit; font-size: 1.4rem; font-weight: 600; color: #1b1b1c; cursor: pointer; }
.pp-chart__legend button[aria-pressed="false"] { opacity: .35; text-decoration: line-through; }
.pp-chart__dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-block; }
.pp-chart__tip { position: absolute; z-index: 5; min-width: 18rem; padding: 1.2rem 1.4rem; border-radius: .8rem; background: #24213b; color: #fff; font-size: 1.3rem; line-height: 1.5; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.pp-chart__tip b { display: block; font-size: 1.5rem; margin-bottom: .4rem; }
.pp-chart__tip i { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; margin-right: .6rem; box-shadow: 0 0 0 1.5px #fff; }
.pp-chart figcaption { margin-top: .8rem; font-size: 1.4rem; color: #515156; }
@media (max-width: 767px) {
  .pp-chart__frame { padding: 1.2rem 1.2rem 1.2rem; }
  .pp-chart__card { padding: 2rem 1.2rem 1.6rem; border-radius: 1rem 1rem 3.2rem 1rem; }
  .pp-chart__legend { gap: .4rem 1.6rem; }
  .pp-chart__logo { height: 2.4rem; max-width: 60%; object-fit: contain; }
  .pp-chart__ylabel { display: none; }
  .pp-chart__grid { height: 24rem; margin-left: 2.4rem; }
  .pp-chart__bars { gap: .2rem; }
  .pp-chart__total { font-size: 0; }
  .pp-chart__year { font-size: 1rem; transform: translateX(-50%) rotate(-45deg); bottom: -2.8rem; }
}
