.atpd-stats{--atpd-yellow:#ffd400;position:relative;isolation:isolate;box-sizing:border-box;padding:50px 20px;background:#101316;color:#fff;overflow:hidden;font-family:inherit}.atpd-stats:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(9,12,15,.95),rgba(9,12,15,.74)),var(--atpd-bg,none);background-size:cover;background-position:center;z-index:-1}.atpd-stats *{box-sizing:border-box}.atpd-stats-inner{max-width:1240px;margin:auto}.atpd-stats-heading{color:#fff!important;font-size:clamp(25px,3vw,38px);line-height:1.15;font-weight:750;margin:0 0 24px;padding:0 0 14px;position:relative}.atpd-stats-heading:after{content:"";position:absolute;bottom:0;left:0;width:80px;height:4px;background:var(--atpd-yellow)}.atpd-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.atpd-stats-card{min-width:0;border:1px solid rgba(255,255,255,.25);border-bottom:2px solid var(--atpd-yellow);background:rgba(24,28,32,.81);backdrop-filter:blur(6px);border-radius:16px;padding:24px 18px;display:flex;align-items:center;gap:18px}.atpd-stats-icon{flex:0 0 auto;color:var(--atpd-yellow);display:flex;border-right:1px solid var(--atpd-yellow);padding-right:16px}.atpd-stats-copy{display:flex;min-width:0;flex-direction:column;gap:7px}.atpd-stats-value{font-weight:800;font-size:clamp(22px,2.2vw,35px);font-variant-numeric:tabular-nums;line-height:1.15;overflow-wrap:anywhere;color:#fff}.atpd-stats-label{font-size:clamp(12px,1.1vw,16px);color:#e2e2e2;line-height:1.4}@media(max-width:1050px){.atpd-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.atpd-stats{padding:36px 14px}.atpd-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.atpd-stats-card{padding:16px 12px;gap:8px;align-items:flex-start;flex-direction:column}.atpd-stats-icon{border:0;padding:0}.atpd-stats-icon svg{width:26px;height:26px}.atpd-stats-value{font-size:clamp(18px,4.5vw,28px)}}@media(prefers-reduced-motion:reduce){.atpd-stats *{animation:none!important;transition:none!important}}

/* ATPD Statistics 1.1: collapsible, responsive visualizations */
.atpd-chart-wrap{max-width:1240px;margin:18px auto 0;color:#fff}.atpd-chart-toggle{font:inherit;display:flex;gap:12px;align-items:center;justify-content:center;width:100%;border:1px solid rgba(255,212,0,.65);border-radius:13px;background:rgba(19,23,27,.87);color:#fff;padding:15px 18px;cursor:pointer;transition:background .2s}.atpd-chart-toggle:hover,.atpd-chart-toggle:focus-visible{background:#33312a;outline-offset:3px}.atpd-chart-toggle-icon,.atpd-chart-chevron{color:#ffd400;font-size:20px}.atpd-chart-chevron{transition:transform .25s}.atpd-chart-toggle[aria-expanded=true] .atpd-chart-chevron{transform:rotate(180deg)}.atpd-chart-panel{margin-top:10px;border:1px solid rgba(255,255,255,.17);border-radius:15px;background:rgba(20,24,29,.96);padding:22px;box-shadow:0 15px 40px rgba(0,0,0,.2);animation:atpd-chart-appear .25s ease-out}.atpd-chart-panel[hidden]{display:none!important}@keyframes atpd-chart-appear{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.atpd-chart-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:21px}.atpd-chart-tab{font:inherit;cursor:pointer;border-radius:10px;padding:10px 15px;color:#fff;background:#30353b;border:1px solid #555b62}.atpd-chart-tab[aria-selected=true]{background:#ffd400;color:#14171a;border-color:#ffd400;font-weight:700}.atpd-chart-content{min-height:150px}.atpd-chart-flex{display:grid;grid-template-columns:minmax(170px,310px) 1fr;align-items:center;gap:26px}.atpd-donut-svg{width:100%;height:auto;max-width:300px}.atpd-chart-ring{transform:rotate(-90deg);transform-origin:50% 50%}.atpd-donut-center{fill:#fff;font-weight:800;font-size:24px;text-anchor:middle}.atpd-donut-sub{fill:#c6cbd0;font-size:10px;text-anchor:middle}.atpd-legend{display:grid;gap:9px}.atpd-legend-row{display:flex;align-items:center;gap:9px;min-width:0;color:#e8eaec;font-size:14px}.atpd-legend-row b{margin-left:auto;white-space:nowrap;color:#fff;font-variant-numeric:tabular-nums}.atpd-swatch{width:11px;height:11px;flex:none;border-radius:3px}.atpd-bar-list{display:grid;gap:17px}.atpd-bar-label{display:flex;justify-content:space-between;gap:10px;color:#fff;font-size:14px;margin-bottom:5px}.atpd-bar-track{height:11px;background:#393f47;border-radius:15px;overflow:hidden}.atpd-bar-fill{height:100%;border-radius:15px;background:#ffd400}.atpd-year-chart{display:flex;align-items:end;gap:clamp(6px,2vw,18px);height:225px;overflow-x:auto;padding:15px 6px 0}.atpd-year-item{display:flex;flex:1 0 40px;max-width:105px;height:100%;align-items:center;justify-content:end;flex-direction:column;gap:7px;text-align:center}.atpd-year-bar{width:76%;border-radius:5px 5px 0 0;background:#ffd400;min-height:3px}.atpd-year-name{font-size:12px;color:#c9cfd5}.atpd-year-value{font-size:14px;color:#fff;font-weight:700}.atpd-chart-foot{font-size:12px;color:#aeb4ba;margin:19px 0 0}.atpd-chart-empty{padding:35px 10px;text-align:center;color:#d8dcdf}.atpd-chart-content svg{display:block;margin:auto}
@media(max-width:650px){.atpd-chart-panel{padding:15px}.atpd-chart-flex{grid-template-columns:1fr;gap:6px}.atpd-donut-svg{max-width:215px}.atpd-chart-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.atpd-chart-tab{font-size:12px;padding:11px 4px}.atpd-legend-row{font-size:12px}}
@media(prefers-reduced-motion:reduce){.atpd-chart-panel{animation:none}.atpd-chart-chevron{transition:none}}

/* 1.2 drill-down and privacy-friendly defaults */
.atpd-other-detail{margin:2px 0 0 20px;font-size:12px;color:#d2d8da}.atpd-other-detail summary{cursor:pointer;color:#ffd400;padding:5px 0}.atpd-other-item{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-bottom:1px solid #43484d}.atpd-stats{background-color:#111513}

/* ATPD 1.3 refinements */
.atpd-stats-heading{display:table;width:max-content;max-width:100%;border-bottom:4px solid #ffd400;padding-bottom:8px}
.atpd-stats-heading:after{display:none}
.atpd-chart-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0 24px;padding:18px;background:rgba(255,255,255,.035);border:1px solid rgba(255,212,0,.22);border-radius:14px}
.atpd-filter-field{display:flex;flex-direction:column;gap:8px;color:#eee;font-size:14px;font-weight:650}
.atpd-filter-field select{font:inherit;min-width:0;width:100%;height:44px;padding:8px 32px 8px 12px;background:#272e30;color:#fff;border:1px solid #697177;border-radius:9px;cursor:pointer}
.atpd-filter-field select:focus-visible{outline:2px solid #ffd400;outline-offset:2px}
.atpd-legend-card{font:inherit;display:flex;align-items:center;gap:12px;width:100%;padding:13px 15px;text-align:left;color:#f9f9f9;border-radius:12px;background:linear-gradient(120deg,rgba(48,54,54,.9),rgba(28,35,35,.9));border:1px solid rgba(255,255,255,.16);cursor:pointer;transition:border-color .2s,background .2s}
.atpd-legend-card:hover,.atpd-legend-card:focus-visible,.atpd-legend-card[aria-pressed=true]{border-color:#ffd400;background:#33332a;outline-offset:2px}
.atpd-legend-dot{width:16px;height:16px;flex:0 0 16px;border-radius:50%;box-shadow:0 0 10px rgba(255,255,255,.09)}
.atpd-legend-name{flex:1;min-width:0;font-size:clamp(14px,1.05vw,17px);line-height:1.36;font-weight:600}
.atpd-legend-percent{font-size:clamp(17px,1.4vw,22px);color:#ffd400;font-weight:800;white-space:nowrap}
.atpd-donut-frame{width:100%}.atpd-chart-ring{cursor:pointer;transition:opacity .18s}
.atpd-other-detail{font-size:14px;margin:4px 5px 3px}.atpd-other-detail summary{font-weight:650;line-height:1.5;padding:11px 5px}
.atpd-other-item{padding:9px 5px;font-size:13px}
@media(max-width:700px){.atpd-chart-filters{grid-template-columns:1fr;gap:11px;padding:13px}.atpd-legend-name{font-size:14px}.atpd-legend-percent{font-size:17px}.atpd-legend-card{padding:12px}.atpd-stats-heading{max-width:100%}}

/* 1.4.0: visual-only accessible chevrons; existing markup/settings untouched. */
.atpd-stats .atpd-filter-field select{
  -webkit-appearance:none;appearance:none;
  border:1px solid rgba(255,212,0,.5);
  border-radius:12px;
  background-color:#20292a;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m5 9 7 7 7-7' stroke='%23FFD400' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 13px center;
  background-size:20px 20px;
  padding:10px 48px 10px 15px;
  min-height:48px;
  font-size:15px;
  line-height:1.3;
  font-weight:600;
  color:#f6f7f7;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  transition:border-color .18s,background-color .18s,box-shadow .18s;
}
.atpd-stats .atpd-filter-field select:hover{border-color:#ffd400;background-color:#293231;box-shadow:0 0 0 1px rgba(255,212,0,.14)}
.atpd-stats .atpd-filter-field select:focus-visible{outline:2px solid #ffd400;outline-offset:3px}
.atpd-stats .atpd-filter-field select option{background-color:#20292a;color:#fff}
.atpd-stats .atpd-chart-toggle{position:relative;min-height:56px;padding-right:64px}
.atpd-stats .atpd-chart-chevron{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;
 width:36px;height:36px;border-radius:50%;
 background:rgba(255,212,0,.1);border:1px solid rgba(255,212,0,.43);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
 font-size:0;line-height:0;transition:transform .25s,background .2s;
 position:absolute;right:13px;top:50%;margin-top:-18px;
}
.atpd-stats .atpd-chart-chevron:after{
 content:'';display:block;width:10px;height:10px;
 border-right:3px solid #ffd400;border-bottom:3px solid #ffd400;
 border-radius:1px;transform:translateY(-2px) rotate(45deg);
}
.atpd-stats .atpd-chart-toggle:hover .atpd-chart-chevron{background:rgba(255,212,0,.2)}
.atpd-stats .atpd-chart-toggle[aria-expanded=true] .atpd-chart-chevron{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.atpd-stats .atpd-filter-field select,.atpd-stats .atpd-chart-chevron{transition:none}}

/* 1.4.1: isolate category legend from theme styles and prevent overlay. */
.atpd-chart-wrap .atpd-chart-content,
.atpd-chart-wrap .atpd-chart-flex { position:relative; width:100%; min-width:0; max-width:100%; }
.atpd-chart-wrap .atpd-chart-flex { display:grid; grid-template-columns:minmax(0, 300px) minmax(0,1fr); align-items:center; gap:clamp(16px,3vw,34px); }
.atpd-chart-wrap .atpd-donut-frame { position:relative; grid-column:1; grid-row:1; min-width:0; width:100%; max-width:300px; justify-self:center; }
.atpd-chart-wrap .atpd-stats-legend-list { position:static!important; inset:auto!important; top:auto!important; right:auto!important; bottom:auto!important; left:auto!important; transform:none!important; float:none!important; grid-column:2; grid-row:1; display:flex!important; flex-direction:column; align-items:stretch; gap:10px; width:100%!important; min-width:0; max-width:100%!important; margin:0!important; padding:0!important; overflow:visible; z-index:auto; }
.atpd-chart-wrap .atpd-stats-legend-list .atpd-legend-card { position:relative!important; inset:auto!important; transform:none!important; display:flex; flex-wrap:nowrap; width:100%; min-width:0; margin:0; }
.atpd-chart-wrap .atpd-stats-legend-list .atpd-legend-name { overflow-wrap:anywhere; }
.atpd-chart-wrap .atpd-stats-legend-list .atpd-other-detail { position:static!important; width:auto; max-width:100%; margin:4px 0 0; }
@media(max-width:750px){.atpd-chart-wrap .atpd-chart-flex{grid-template-columns:minmax(0,1fr);gap:18px}.atpd-chart-wrap .atpd-donut-frame{grid-column:1;grid-row:1;max-width:245px}.atpd-chart-wrap .atpd-stats-legend-list{grid-column:1;grid-row:2}}
