/* Super Speedy panel components.
 * Enqueue this ONCE (theme stylesheet, or via the icon-packs functions.php pattern)
 * so all panels are styled by class - change the look here, site-wide, no inline CSS.
 * Markup uses <div class="ssp ssp-faq">…; the `ssp` class carries the tokens. */

.ssp{
  --brand:#8035be; --ink:#111827; --muted:#4b5563;
  --panel:#f4f4f5; --faq:#eeeeee; --line:#e6e8eb; --chip:#f2eafb;
}

/* Key stats (4-up) */
.ssp-keystats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin:24px 0;}
.ssp-keystats .stat{border:1px solid var(--line);border-radius:14px;padding:20px;text-align:center;background:#fff;}
.ssp-keystats .ico{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background:var(--chip);font-size:28px;color:var(--brand);line-height:1;margin-bottom:12px;}
.ssp-keystats .num{font-size:26px;font-weight:700;color:var(--ink);line-height:1.15;}
.ssp-keystats .lbl{margin-top:8px;font-size:14px;line-height:1.5;color:var(--muted);}

/* Feature grid (cards with icon, no chip) */
.ssp-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:20px 0;}
.ssp-features .feat{border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff;}
.ssp-features .ico{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:var(--chip);font-size:24px;color:var(--brand);line-height:1;margin-bottom:12px;}
.ssp-features .t{font-weight:600;font-size:16px;color:var(--ink);margin-bottom:6px;}
.ssp-features .d{font-size:14px;line-height:1.5;color:var(--muted);}

/* Check panel — light grey, 2 columns, no bullets (benefits & key features) */
.ssp-checks{background:var(--panel);border-radius:16px;padding:22px 24px;margin:20px 0;}
.ssp-checks .ssp-checks-title{margin:0 0 16px;font-size:20px;font-weight:700;color:var(--ink);}
.ssp-checks ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px 28px;}
.ssp-checks li{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;line-height:1.5;color:var(--muted);}
.ssp-checks li .ico{color:var(--brand);font-size:18px;line-height:1.45;flex:0 0 auto;}
.ssp-checks li strong{color:var(--ink);}

/* Dynamic blocks: changelog + tabbed KB/articles (match the panel look) */
.ssp-changelog,.ssp-tabbed{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 24px;margin:20px 0;}
.ssp-panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px;}
.ssp-panel-title{margin:0;font-size:20px;font-weight:700;color:var(--ink);}
.ssp-view-all{font-size:14px;font-weight:600;color:var(--brand);text-decoration:none;white-space:nowrap;}
.ssp-view-all:hover{text-decoration:underline;}

.ssp-changelog-entries{display:flex;flex-direction:column;gap:14px;}
.ssp-changelog-entry{display:block;}
.ssp-changelog-ver{display:inline-block;font-weight:700;font-size:13px;color:var(--brand);background:var(--chip);border-radius:999px;padding:3px 10px;line-height:1.4;margin-bottom:8px;}
.ssp-changelog-entry ul{margin:0 !important;padding-left:18px;}
.ssp-changelog-entry li{font-size:14px;line-height:1.5;color:var(--muted);margin:2px 0;}

.ssp-tab-nav{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);margin-bottom:14px;}
.ssp-tab-btn{appearance:none !important;background:transparent !important;border:0 !important;border-bottom:2px solid transparent !important;margin:0 0 -1px 0 !important;padding:8px 14px !important;font-size:14px !important;font-weight:600 !important;color:var(--muted) !important;cursor:pointer !important;border-radius:8px 8px 0 0 !important;box-shadow:none !important;text-transform:none !important;}
.ssp-tab-btn:hover{background:var(--chip) !important;color:var(--brand) !important;}
.ssp-tab-btn.is-active{background:var(--chip) !important;color:var(--brand) !important;border-bottom-color:var(--brand) !important;}
.ssp-tab-btn:focus-visible{outline:2px solid var(--brand) !important;outline-offset:2px;}
.ssp-tab-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;}
.ssp-tab-list li{margin:0;}
.ssp-tab-list a{font-size:14px;line-height:1.5;color:var(--ink);text-decoration:none;}
.ssp-tab-list a:hover{color:var(--brand);text-decoration:underline;}

/* FAQ — light grey cards, 2 columns */
.ssp-faq{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin:20px 0;}
.ssp-faq .qa{background:var(--faq);border-radius:14px;padding:20px 22px;}
.ssp-faq .q{font-weight:700;font-size:16px;color:var(--ink);margin-bottom:8px;}
.ssp-faq .a{font-size:14.5px;line-height:1.55;color:var(--muted);}
.ssp-faq .a a{color:var(--brand);}
