/* JJ Academy — source-attributed JJ reference figures; not performance claims. */
.jj-stats-reference{display:grid;gap:13px;margin:12px 0 16px}
.jj-stats-summary{border:1px solid var(--stroke);padding:11px 13px;border-radius:8px;background:var(--panel)}
.jj-stats-summary strong{font-size:13px}
.jj-stats-summary p{font-size:11px;color:var(--muted);line-height:1.5;margin:7px 0 0}
.jj-stats-summary em{font-style:normal;color:var(--accent)}
.jj-stats-group{border:1px solid var(--stroke);border-radius:8px;overflow:hidden;background:var(--panel)}
.jj-stats-group>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:11px 13px;list-style:none;font-size:12px;font-weight:700}
.jj-stats-group>summary::-webkit-details-marker{display:none}
.jj-stats-group>summary:after{content:"+";font-size:16px;color:var(--accent)}
.jj-stats-group[open]>summary:after{content:"−"}
.jj-stats-group[open]>summary{border-bottom:1px solid var(--stroke)}
.jj-stats-group>summary:hover{background:var(--hover)}
.jj-stats-group .jj-stats-panel{padding:10px}
.jj-stats-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--stroke);border-radius:7px}
.jj-stats-table{border-collapse:collapse;width:100%;min-width:780px;font-size:11px}
.jj-stats-table th{text-align:left;padding:9px;background:var(--bg);color:var(--muted);font-size:10px;white-space:nowrap}
.jj-stats-table td{padding:10px 9px;border-top:1px solid var(--stroke);vertical-align:top;line-height:1.45;overflow-wrap:anywhere}
.jj-stats-table tr:nth-child(even) td{background:var(--hover)}
.jj-stats-table td strong{font-weight:700}
.jj-stats-table a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.jj-stats-table .jj-stats-metric{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:650}
.jj-stats-footnote{font-size:11px;line-height:1.55;color:var(--muted);padding:2px 3px;margin:7px 0}
.jj-stats-legend{display:flex;gap:8px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-top:8px}
.jj-stats-legend span{border:1px solid var(--stroke);border-radius:5px;padding:4px 7px}
.jj-stats-checks{padding-left:18px;margin:7px 0;font-size:11px;line-height:1.7}
@media(max-width:750px){.jj-stats-reference{gap:9px}.jj-stats-summary{padding:10px}.jj-stats-group>summary{padding:9px 10px;font-size:11px}.jj-stats-group .jj-stats-panel{padding:7px}.jj-stats-table{min-width:700px}.jj-stats-table td{padding:8px}}

/* Compact data-dense reference tables: avoid stretched rows and narrow columns. */
.jj-stats-reference{gap:8px;margin:8px 0 12px}
.jj-stats-summary{padding:8px 10px}
.jj-stats-group>summary{padding:8px 10px;gap:6px}
.jj-stats-group .jj-stats-panel{padding:6px}
.jj-stats-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain;max-width:100%}
.jj-stats-scroll .jj-stats-table{table-layout:fixed!important;width:100%;min-width:880px;height:auto!important;font-size:11px;line-height:1.28}
.jj-stats-scroll .jj-stats-table tbody,.jj-stats-scroll .jj-stats-table tr{height:auto!important;min-height:0!important;max-height:none!important}
.jj-stats-scroll .jj-stats-table th{padding:6px 8px;white-space:normal;line-height:1.25;vertical-align:top}
.jj-stats-scroll .jj-stats-table td{height:auto!important;min-height:0!important;max-height:none!important;padding:6px 8px!important;line-height:1.3!important;vertical-align:top!important}
.jj-stats-scroll .jj-stats-table td:first-child{font-weight:650;white-space:normal}
.jj-stats-scroll .jj-stats-table td .jj-stats-footnote{font-size:9px;line-height:1.25;margin:3px 0 0;padding:0}
.jj-stats-scroll .jj-stats-table td a{font-size:10px;line-height:1.25}
.jj-stats-scroll .jj-stats-table th:first-child{width:22%}
.jj-stats-scroll .jj-stats-table th:nth-child(2){width:18%}
.jj-stats-scroll .jj-stats-table th:nth-child(3){width:14%}
.jj-stats-scroll .jj-stats-table th:nth-child(4){width:16%}
.jj-stats-scroll .jj-stats-table th:nth-child(5){width:19%}
.jj-stats-scroll .jj-stats-table th:nth-child(6){width:11%}
.jj-stats-scroll .jj-stats-table:has(th:nth-child(4):last-child) th:first-child{width:23%}
.jj-stats-scroll .jj-stats-table:has(th:nth-child(4):last-child) th:nth-child(2){width:12%}
.jj-stats-scroll .jj-stats-table:has(th:nth-child(4):last-child) th:nth-child(3){width:53%}
.jj-stats-scroll .jj-stats-table:has(th:nth-child(4):last-child) th:nth-child(4){width:12%}
.jj-stats-scroll .jj-stats-table:has(th:nth-child(3):last-child) th:first-child{width:30%}
.jj-stats-scroll .jj-stats-table:has(th:nth-child(3):last-child) th:nth-child(2){width:20%}
.jj-stats-scroll .jj-stats-table:has(th:nth-child(3):last-child) th:nth-child(3){width:50%}
/* Plan homepage cards and the full plan pages. */
.jj-plan-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:9px 0}
.jj-plan-shortcuts a{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0;padding:10px;background:var(--bg);color:var(--text);text-decoration:none;border:1px solid var(--stroke);border-radius:7px}
.jj-plan-shortcuts a:hover,.jj-plan-shortcuts a:focus-visible{border-color:var(--accent);background:var(--hover)}
.jj-plan-shortcuts strong{font-size:15px;color:var(--accent)}
.jj-plan-shortcuts small{font-size:10px;color:var(--muted);line-height:1.35}
.jj-plan-view{display:grid;gap:8px;margin:8px 0 12px}
.jj-plan-hero{padding:11px;border:1px solid var(--stroke);border-radius:8px;background:var(--bg)}
.jj-plan-hero h3{font-size:16px;margin:0 0 4px}
.jj-plan-hero p{color:var(--muted);font-size:11px;line-height:1.4;margin:4px 0}
.jj-plan-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.jj-plan-kpi{min-width:0;padding:9px 10px;border:1px solid var(--stroke);border-radius:7px;background:var(--bg)}
.jj-plan-kpi strong{display:block;font-size:16px;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.jj-plan-kpi small{display:block;margin-top:4px;font-size:10px;color:var(--muted);line-height:1.35}
.jj-plan-view .jj-stats-group>summary{font-size:12px}
.jj-plan-view .jj-stats-table{min-width:740px}
.jj-plan-view .jj-plan-inline{font-size:11px;color:var(--muted);line-height:1.55;margin:4px 0}
.jj-plan-view .jj-plan-inline strong{color:var(--text)}
.jj-plan-view .jj-plan-source{padding:5px 0;font-size:11px}
.jj-plan-view .jj-plan-source a{color:var(--accent)}
.jj-plan-view .jj-plan-links{display:flex;gap:7px;flex-wrap:wrap}
.jj-plan-view .jj-plan-links button,.jj-plan-view .jj-plan-links a{font:inherit;font-size:11px;padding:7px 9px;border-radius:6px;border:1px solid var(--stroke);background:var(--panel);color:var(--accent);cursor:pointer;text-decoration:none}
.jj-plan-view .jj-plan-links button:hover,.jj-plan-view .jj-plan-links a:hover{background:var(--hover)}
@media(max-width:950px){.jj-plan-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.jj-plan-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.jj-stats-scroll .jj-stats-table{min-width:830px}}
@media(max-width:600px){.jj-plan-hero h3{font-size:14px}.jj-plan-kpi strong{font-size:14px}.jj-plan-shortcuts a{padding:8px}.jj-stats-scroll .jj-stats-table{min-width:740px}.jj-stats-group .jj-stats-panel{padding:5px}}
