/*
Theme Name: Premium Spotify Mod APK
Theme URI: https://premiumspotifymodapk.local/
Author: Premium Spotify APK
Author URI: https://premiumspotifymodapk.local/
Description: Fully dynamic, SEO-first custom WordPress theme for a Spotify Premium Mod APK download site. Edit every section, image and icon from the Customizer (live preview, Shopify-style), manage APK versions, FAQs and reviews from the dashboard, with built-in on-page SEO, schema and contextual internal links. No page-builder plugins required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spotify-mod-apk
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, threaded-comments
*/

/* ============================================================
   Premium Spotify Mod APK — design system
   Variables live on :root so the whole document (header,
   footer, admin bar offset) can use them. The original
   landing-page CSS is preserved verbatim under .psp-root.
   ============================================================ */
:root {
  /* Dark theme (default) */
  --psp-bg: #121212;
  --psp-fg: #fafafa;
  --psp-surface: #1c1c1c;
  --psp-surface-el: #2a2a2a;
  --psp-card: #1c1c1c;
  --psp-border: #333333;
  --psp-mut: #a8a8a8;
  --psp-green: #1DB954;
  --psp-green-h: #1ed760;
  --psp-green-hover: #1ed760;
  --psp-red: #e74c3c;
  --psp-shadow: rgba(0,0,0,.5);
  --psp-header-bg: #141414;
  --psp-footer-bg: #0e0e0e;
  --psp-header-h: 66px;
  --psp-font-head: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --psp-font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Light palette — applied when the visitor's OS prefers light and no explicit
   choice has been made, or when they pick light via the header toggle. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --psp-bg: #ffffff;
    --psp-fg: #15171a;
    --psp-surface: #f6f7f8;
    --psp-surface-el: #eef0f2;
    --psp-card: #ffffff;
    --psp-border: #e3e6ea;
    --psp-mut: #5b6470;
    --psp-green: #149544;
    --psp-green-h: #1DB954;
    --psp-green-hover: #1DB954;
    --psp-shadow: rgba(20,30,40,.12);
    --psp-header-bg: #ffffff;
    --psp-footer-bg: #f6f7f8;
  }
}
:root[data-theme="light"] {
  --psp-bg: #ffffff;
  --psp-fg: #15171a;
  --psp-surface: #f6f7f8;
  --psp-surface-el: #eef0f2;
  --psp-card: #ffffff;
  --psp-border: #e3e6ea;
  --psp-mut: #5b6470;
  --psp-green: #149544;
  --psp-green-h: #1DB954;
  --psp-green-hover: #1DB954;
  --psp-shadow: rgba(20,30,40,.12);
  --psp-header-bg: #ffffff;
  --psp-footer-bg: #f6f7f8;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--psp-bg);
  color: var(--psp-fg);
  font-family: var(--psp-font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

.psp-root {
  font-family: var(--psp-font-body);
  color: var(--psp-fg);
  background: var(--psp-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.psp-root h1, .psp-root h2, .psp-root h3, .psp-root h4,
.psp-h1, .psp-h2, .psp-h3, .psp-card-t, .psp-brand,
.psp-prose h1, .psp-prose h2, .psp-prose h3 { font-family: var(--psp-font-head); }
.psp-root *, .psp-root *::before, .psp-root *::after { box-sizing: border-box; }
.psp-root svg { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }
.psp-root a { color: inherit; text-decoration: none; }
.psp-root h1, .psp-root h2, .psp-root h3, .psp-root h4 {
  margin: 0; letter-spacing: -0.02em; font-weight: 800; line-height: 1.15;
}
.psp-root p { margin: 0; }

.psp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .psp-wrap { padding: 0 24px; } }
.psp-sec { padding: 48px 0; }
@media (min-width: 640px) { .psp-sec { padding: 80px 0; } }
.psp-bg-surface { background: var(--psp-surface); }
.psp-bordy { border-top: 1px solid var(--psp-border); border-bottom: 1px solid var(--psp-border); }

/* Buttons */
.psp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; font-weight: 700; font-size: 14px; padding: 0 20px;
  height: 44px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, background .2s; text-decoration: none;
}
.psp-btn:hover { transform: scale(1.02); }
.psp-btn-primary {
  background: var(--psp-green); color: #000;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--psp-green) 40%, transparent);
}
.psp-btn-primary:hover { background: var(--psp-green-h); }
.psp-btn-outline { background: transparent; color: var(--psp-fg); border: 1px solid var(--psp-border); }
.psp-btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.psp-btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

/* Hero */
.psp-hero { position: relative; overflow: hidden; }
.psp-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, color-mix(in srgb, var(--psp-green) 25%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.psp-hero-grid {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 28px;
  align-items: center; padding: 16px 0 36px;
}
@media (min-width: 1024px) { .psp-hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; padding: 20px 0 48px; } }
.psp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--psp-green) 15%, transparent);
  color: var(--psp-green); font-weight: 600; font-size: 12px;
  padding: 6px 12px; border-radius: 9999px; margin-bottom: 14px;
}
.psp-badge svg { width: 14px; height: 14px; }
.psp-h1 { font-size: 31px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; }
@media (min-width: 640px) { .psp-h1 { font-size: 42px; } }
@media (min-width: 1024px) { .psp-h1 { font-size: 52px; } }
.psp-h1 span { color: var(--psp-green); }
.psp-hero p { margin-top: 16px; font-size: 16px; color: var(--psp-mut); max-width: 36rem; }
.psp-hero-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .psp-hero-actions { flex-direction: row; } }
.psp-stats { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 640px) { .psp-stats { grid-template-columns: repeat(4, 1fr); } }
.psp-stat-n { font-size: 24px; font-weight: 800; color: var(--psp-green); }
@media (min-width: 640px) { .psp-stat-n { font-size: 30px; } }
.psp-stat-l { font-size: 12px; color: var(--psp-mut); margin-top: 4px; }
@media (min-width: 640px) { .psp-stat-l { font-size: 14px; } }
.psp-hero-img { position: relative; }
.psp-hero-img::before {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--psp-green) 30%, transparent);
  filter: blur(80px); border-radius: 50%;
}
.psp-hero-img img {
  position: relative; width: 100%; height: auto; border-radius: 24px;
  border: 1px solid var(--psp-border);
}

/* Section heading */
.psp-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.psp-eyebrow {
  display: inline-block; color: var(--psp-green); font-weight: 600;
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px;
}
.psp-h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
@media (min-width: 640px) { .psp-h2 { font-size: 40px; } }
@media (min-width: 768px) { .psp-h2 { font-size: 48px; } }
.psp-sub { margin-top: 16px; color: var(--psp-mut); font-size: 16px; }
.psp-h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
@media (min-width: 640px) { .psp-h3 { font-size: 24px; } }
.psp-p { color: var(--psp-mut); line-height: 1.7; font-size: 15px; }
.psp-mb { margin-bottom: 48px; }

/* Cards / grids */
.psp-card { background: var(--psp-card); border: 1px solid var(--psp-border); border-radius: 14px; }
.psp-card-t { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.psp-card-d { font-size: 14px; color: var(--psp-mut); line-height: 1.7; }
.psp-feat { padding: 24px; transition: border-color .2s; }
.psp-feat:hover { border-color: color-mix(in srgb, var(--psp-green) 50%, transparent); }
.psp-feat-i {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--psp-green) 15%, transparent);
  color: var(--psp-green); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.psp-feat-i svg { width: 20px; height: 20px; }
.psp-feat-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .psp-feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .psp-feat-grid { grid-template-columns: repeat(3, 1fr); } }
.psp-2col { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 768px) { .psp-2col { grid-template-columns: 1fr 1fr; } }
.psp-img {
  width: 100%; height: auto; border-radius: 16px;
  border: 1px solid var(--psp-border);
}
.psp-order2 { order: 1; }
.psp-order1 { order: 2; }
@media (min-width: 768px) { .psp-order2 { order: 2; } .psp-order1 { order: 1; } }

/* Spotlights */
.psp-spots { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .psp-spots { grid-template-columns: 1fr 1fr; } }
.psp-spot { overflow: hidden; display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .psp-spot { grid-template-columns: 1fr 1fr; } }
.psp-spot img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 240px; }
.psp-spot-b { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 640px) { .psp-spot-b { padding: 32px; } }
.psp-spot-i { color: var(--psp-green); font-size: 28px; margin-bottom: 12px; }
.psp-spot-i svg { width: 32px; height: 32px; }
.psp-spot-b h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.psp-spot-b p { font-size: 14px; color: var(--psp-mut); line-height: 1.7; }
@media (min-width: 1024px) { .psp-spot-wide { grid-column: span 2; } }

/* Info cards */
.psp-info-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .psp-info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .psp-info-grid { grid-template-columns: repeat(3, 1fr); } }
.psp-info-row {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--psp-border); background: var(--psp-card);
  border-radius: 12px; padding: 12px 16px;
}
.psp-info-k { font-size: 14px; color: var(--psp-mut); }
.psp-info-v { font-size: 14px; font-weight: 600; text-align: right; }

/* CTA inline */
.psp-cta {
  margin-top: 40px; display: flex; flex-direction: column; gap: 16px;
  align-items: center; justify-content: space-between;
  border: 1px solid color-mix(in srgb, var(--psp-green) 30%, transparent);
  background: linear-gradient(to right, color-mix(in srgb, var(--psp-green) 10%, transparent), color-mix(in srgb, var(--psp-green) 5%, transparent), transparent);
  border-radius: 16px; padding: 20px;
}
@media (min-width: 640px) { .psp-cta { flex-direction: row; padding: 24px; } }
.psp-cta-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.psp-cta-i {
  width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--psp-green) 20%, transparent);
  color: var(--psp-green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.psp-cta-i svg { width: 20px; height: 20px; }
.psp-cta-l p { font-weight: 600; font-size: 14px; }
@media (min-width: 640px) { .psp-cta-l p { font-size: 16px; } }

/* New features */
.psp-new-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .psp-new-grid { grid-template-columns: repeat(2, 1fr); } }
.psp-new {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--psp-border); background: var(--psp-card);
  border-radius: 12px; padding: 16px; font-size: 14px; font-weight: 500;
}
.psp-new-i { color: var(--psp-green); flex-shrink: 0; margin-top: 2px; }
.psp-new-i svg { width: 20px; height: 20px; }

/* Tables */
.psp-table-wrap { overflow-x: auto; border: 1px solid var(--psp-border); background: var(--psp-card); border-radius: 12px; }
.psp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.psp-table th { text-align: left; padding: 16px; font-weight: 700; background: var(--psp-surface-el); border-bottom: 1px solid var(--psp-border); }
.psp-table td { padding: 12px 16px; }
.psp-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--psp-surface) 50%, transparent); }
.psp-th-grn, .psp-td-grn { color: var(--psp-green); }
.psp-td-mut { color: var(--psp-mut); }
.psp-row-hl { background: color-mix(in srgb, var(--psp-green) 10%, transparent) !important; font-weight: 700; }

/* Plan cards */
.psp-plans { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .psp-plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .psp-plans { grid-template-columns: repeat(4, 1fr); } }
.psp-plan { padding: 24px; }
.psp-plan-n { font-size: 14px; color: var(--psp-mut); }
.psp-plan-p { font-size: 24px; font-weight: 800; margin-top: 4px; }
.psp-plan-a { font-size: 12px; color: var(--psp-mut); margin-top: 4px; }
.psp-plan-s { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--psp-border); }
.psp-plan-s span { font-size: 12px; color: var(--psp-mut); display: block; }
.psp-plan-s strong { color: var(--psp-green); font-weight: 800; }

/* Install */
.psp-install { padding: 24px; margin-bottom: 24px; }
@media (min-width: 640px) { .psp-install { padding: 32px; } }
.psp-install-h { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.psp-install-i {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--psp-green) 15%, transparent);
  color: var(--psp-green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.psp-install-i svg { width: 24px; height: 24px; }
.psp-install-h h3 { font-size: 22px; font-weight: 800; }
.psp-install-h p { font-size: 14px; color: var(--psp-mut); margin-top: 2px; }
.psp-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.psp-steps li { display: flex; gap: 16px; }
.psp-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--psp-green); color: #000; font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.psp-steps li p { font-size: 14px; color: var(--psp-mut); line-height: 1.7; padding-top: 4px; }
.psp-install-tr { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--psp-border); }
.psp-install-tr h4 { font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.psp-install-tr h4 svg { color: var(--psp-green); width: 20px; height: 20px; }
.psp-troubles { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .psp-troubles { grid-template-columns: repeat(2, 1fr); } }
.psp-trouble { border-radius: 12px; background: var(--psp-surface); padding: 16px; border: 1px solid var(--psp-border); }
.psp-trouble-k { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.psp-trouble-v { font-size: 13px; color: var(--psp-mut); line-height: 1.6; }

/* Pros/cons list */
.psp-pclist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.psp-pclist li { display: flex; gap: 12px; font-size: 14px; color: var(--psp-mut); line-height: 1.7; }
.psp-pc-i { flex-shrink: 0; margin-top: 2px; }
.psp-pc-i svg { width: 16px; height: 16px; }
.psp-pc-g { color: var(--psp-green); }
.psp-pc-r { color: var(--psp-red); }

/* Reviews */
.psp-rev { padding: 24px; }
.psp-stars { display: flex; gap: 2px; color: var(--psp-green); margin-bottom: 12px; }
.psp-stars svg { width: 16px; height: 16px; }
.psp-rev-t { font-size: 14px; color: var(--psp-mut); font-style: italic; line-height: 1.7; margin-bottom: 16px; }
.psp-rev-b { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--psp-border); }
.psp-rev-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, var(--psp-green) 20%, transparent);
  color: var(--psp-green); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.psp-rev-n { font-weight: 600; font-size: 14px; color: var(--psp-fg); }
.psp-rev-c { font-size: 12px; color: var(--psp-mut); }

/* Accordion */
.psp-acc { display: flex; flex-direction: column; gap: 12px; }
.psp-acc-item { background: var(--psp-card); border: 1px solid var(--psp-border); border-radius: 12px; padding: 0 20px; }
.psp-acc-q { cursor: pointer; list-style: none; font-weight: 600; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.psp-acc-q::-webkit-details-marker { display: none; }
.psp-chev { transition: transform .2s; color: var(--psp-mut); width: 18px; height: 18px; flex-shrink: 0; }
.psp-root details[open] .psp-chev { transform: rotate(180deg); }
.psp-acc-a { padding: 0 0 18px; color: var(--psp-mut); line-height: 1.7; font-size: 14px; }

/* Final CTA */
.psp-final { padding: 80px 0; background: linear-gradient(135deg, #1DB954 0%, #0e7b3a 100%); color: #000; }
.psp-final-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; text-align: center; }
.psp-final svg.psp-logo { width: 64px; height: 64px; margin: 0 auto 24px; display: block; }
.psp-final h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
@media (min-width: 640px) { .psp-final h2 { font-size: 48px; } }
.psp-final p { margin-top: 20px; font-size: 16px; opacity: .9; }
@media (min-width: 640px) { .psp-final p { font-size: 18px; } }
.psp-final-actions { margin-top: 32px; display: flex; justify-content: center; }
.psp-final .psp-btn-final { background: #000; color: var(--psp-green); height: 56px; padding: 0 40px; font-size: 16px; font-weight: 800; }
.psp-final .psp-btn-final:hover { background: #111; }
.psp-trust { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; font-size: 14px; font-weight: 600; }
.psp-trust span { display: inline-flex; align-items: center; gap: 6px; }
.psp-trust svg { width: 16px; height: 16px; }

.psp-disclaimer { margin-top: 32px; font-size: 12px; color: var(--psp-mut); line-height: 1.7; text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; padding: 0 16px 48px; }

/* ============================================================
   Site chrome — header, nav, footer (new, theme-level)
   ============================================================ */
.psp-skip { position: absolute; left: -9999px; top: 0; background: var(--psp-green); color:#000; padding: 8px 16px; border-radius: 0 0 8px 0; z-index: 1000; font-weight: 700; }
.psp-skip:focus { left: 0; }

.psp-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--psp-header-bg);
  border-bottom: 1px solid var(--psp-border);
}
.psp-header-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: var(--psp-header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 640px) { .psp-header-in { padding: 0 24px; } }
.psp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--psp-fg); letter-spacing: -0.02em; flex-shrink: 0; }
.psp-brand svg { width: 28px; height: 28px; color: var(--psp-green); }
.psp-brand img { max-height: 36px; width: auto; display: block; }
.psp-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 900px) { .psp-nav { display: flex; } }
.psp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.psp-nav li { position: relative; }
.psp-nav a { display: inline-flex; align-items: center; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--psp-mut); border-radius: 9999px; transition: color .15s, background .15s; }
.psp-nav a:hover, .psp-nav .current-menu-item > a, .psp-nav .current_page_item > a { color: var(--psp-fg); background: var(--psp-surface-el); }
.psp-nav .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; background: var(--psp-surface-el); border: 1px solid var(--psp-border); border-radius: 12px; padding: 8px; display: none; flex-direction: column; gap: 2px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); }
.psp-nav li:hover > .sub-menu { display: flex; }
.psp-nav .sub-menu a { border-radius: 8px; width: 100%; }
.psp-header-cta { display: none; }
@media (min-width: 640px) { .psp-header-cta { display: inline-flex; } }

/* Mobile nav */
.psp-burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--psp-border); background: var(--psp-surface-el); color: var(--psp-fg); cursor: pointer; }
.psp-burger svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .psp-burger { display: none; } }
.psp-mobile { display: none; border-top: 1px solid var(--psp-border); background: var(--psp-bg); }
.psp-mobile.is-open { display: block; }
@media (min-width: 900px) { .psp-mobile { display: none !important; } }
.psp-mobile ul { list-style: none; margin: 0; padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.psp-mobile .sub-menu { padding: 0 0 0 16px; }
.psp-mobile a { display: block; padding: 12px 8px; font-size: 15px; font-weight: 600; color: var(--psp-fg); border-bottom: 1px solid color-mix(in srgb, var(--psp-border) 50%, transparent); }
.psp-mobile .psp-btn { margin: 12px 8px 0; }

/* Footer */
.psp-footer { background: var(--psp-footer-bg); border-top: 1px solid var(--psp-border); padding: 56px 0 32px; color: var(--psp-mut); }
.psp-footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .psp-footer-grid { padding: 0 24px; grid-template-columns: 2fr 1fr 1fr; } }
.psp-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--psp-fg); margin: 0 0 16px; }
.psp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.psp-footer a { color: var(--psp-mut); font-size: 14px; transition: color .15s; }
.psp-footer a:hover { color: var(--psp-green); }
.psp-footer-about p { font-size: 14px; line-height: 1.7; margin-top: 12px; max-width: 38ch; }
.psp-footer-bottom { max-width: 1200px; margin: 40px auto 0; padding: 24px 16px 0; border-top: 1px solid var(--psp-border); display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
@media (min-width: 640px) { .psp-footer-bottom { padding: 24px 24px 0; flex-direction: row; align-items: center; justify-content: space-between; } }
.psp-footer-legal { font-size: 12px; line-height: 1.7; color: #6f6f6f; max-width: 1200px; margin: 24px auto 0; padding: 0 16px; }
@media (min-width: 640px) { .psp-footer-legal { padding: 0 24px; } }

/* ============================================================
   Versions archive / All Versions page
   ============================================================ */
.psp-ver-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.psp-ver-search { flex: 1 1 240px; }
.psp-ver-search input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--psp-border); background: var(--psp-surface-el); color: var(--psp-fg); padding: 0 16px; font-size: 14px; font-family: inherit; }
.psp-ver-search input::placeholder { color: var(--psp-mut); }
.psp-ver-count { font-size: 13px; color: var(--psp-mut); }
.psp-ver-table td .psp-btn { white-space: nowrap; }
.psp-ver-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 9999px; background: color-mix(in srgb, var(--psp-green) 20%, transparent); color: var(--psp-green); margin-left: 8px; vertical-align: middle; }
.psp-ver-changelog { color: var(--psp-mut); font-size: 13px; line-height: 1.6; }
.psp-ver-empty { padding: 48px 24px; text-align: center; color: var(--psp-mut); }

/* Single version download page */
.psp-dl-box { max-width: 760px; margin: 0 auto; }
.psp-dl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }

/* ============================================================
   Prose (legal pages, blog posts) — readable long-form
   ============================================================ */
.psp-prose { max-width: 820px; margin: 0 auto; color: var(--psp-fg); }
.psp-prose h1 { font-size: 34px; margin: 0 0 8px; }
@media (min-width: 640px) { .psp-prose h1 { font-size: 44px; } }
.psp-prose h2 { font-size: 24px; margin: 40px 0 12px; }
.psp-prose h3 { font-size: 19px; margin: 28px 0 10px; }
.psp-prose p, .psp-prose li { color: var(--psp-mut); line-height: 1.8; font-size: 16px; }
.psp-prose p { margin: 0 0 16px; }
.psp-prose ul, .psp-prose ol { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.psp-prose a { color: var(--psp-green); text-decoration: underline; text-underline-offset: 3px; }
.psp-prose a:hover { color: var(--psp-green-h); }
.psp-prose strong { color: var(--psp-fg); }
.psp-prose blockquote { border-left: 3px solid var(--psp-green); margin: 0 0 16px; padding: 4px 0 4px 18px; color: var(--psp-mut); }
.psp-prose code { background: var(--psp-surface-el); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.psp-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.psp-page-meta { color: var(--psp-mut); font-size: 13px; margin-top: 12px; }

/* Breadcrumbs — compact, sits just above the page heading */
.psp-crumbs { font-size: 13px; color: var(--psp-mut); padding: 14px 0 0; line-height: 1.3; }
.psp-crumbs--hero { padding: 0 0 14px; }
.psp-crumbs a { color: var(--psp-mut); }
.psp-crumbs a:hover { color: var(--psp-green); }
.psp-crumbs span[aria-current] { color: var(--psp-fg); }

/* Contextual related-links block */
.psp-related { margin: 40px auto 0; max-width: 820px; border: 1px solid var(--psp-border); background: var(--psp-card); border-radius: 14px; padding: 20px 24px; }
.psp-related h4, .psp-related h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--psp-fg); margin: 0 0 14px; font-weight: 700; }
.psp-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .psp-related ul { grid-template-columns: 1fr 1fr; } }
.psp-related a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--psp-fg); }
.psp-related a svg { width: 16px; height: 16px; color: var(--psp-green); flex-shrink: 0; }
.psp-related a:hover { color: var(--psp-green); }
/* Auto inline internal links inside prose */
.psp-ilink { color: var(--psp-green); text-decoration: underline; text-underline-offset: 2px; }

/* Pagination */
.psp-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.psp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--psp-border); color: var(--psp-mut); font-weight: 600; font-size: 14px; }
.psp-pagination .page-numbers.current { background: var(--psp-green); color: #000; border-color: var(--psp-green); }
.psp-pagination a.page-numbers:hover { color: var(--psp-fg); border-color: var(--psp-green); }

/* Post cards (blog/archive) */
.psp-post-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .psp-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .psp-post-grid { grid-template-columns: repeat(3, 1fr); } }
.psp-post-card { overflow: hidden; display: flex; flex-direction: column; }
.psp-post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.psp-post-card .psp-post-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.psp-post-card h2 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.psp-post-card h2 a:hover { color: var(--psp-green); }
.psp-post-card .psp-card-d { flex: 1; }

/* ============================================================
   Light/dark toggle, sticky download bar, cookie banner, ads,
   FAQ list, social — added for the dynamic theme.
   ============================================================ */

/* Theme toggle button (header) */
.psp-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--psp-border); background: var(--psp-surface-el); color: var(--psp-fg); cursor: pointer; flex-shrink: 0; }
.psp-toggle:hover { border-color: var(--psp-green); }
.psp-toggle svg { width: 20px; height: 20px; }
.psp-toggle .psp-i-sun, .psp-toggle .psp-i-moon { display: none; }
:root[data-theme="dark"] .psp-toggle .psp-i-sun { display: inline-block; }
:root[data-theme="light"] .psp-toggle .psp-i-moon { display: inline-block; }

/* Brand logo behaviour across themes */
.psp-brand .psp-logo-img { max-height: 38px; width: auto; display: block; }

/* Sticky mobile download bar */
.psp-dlbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 14px; background: var(--psp-header-bg); border-top: 1px solid var(--psp-border); transition: transform .3s ease; }
.psp-dlbar.is-hidden { transform: translateY(120%); }
.psp-dlbar .psp-btn { width: 100%; }
@media (min-width: 900px) { .psp-dlbar { display: none; } }

/* Cookie consent banner */
.psp-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; max-width: 600px; margin: 0 auto; background: var(--psp-surface-el); border: 1px solid var(--psp-border); border-radius: 14px; padding: 16px 18px; box-shadow: 0 20px 50px -12px var(--psp-shadow); display: flex; flex-direction: column; gap: 12px; }
.psp-cookie[hidden] { display: none; }
.psp-cookie p { font-size: 13px; color: var(--psp-mut); line-height: 1.6; margin: 0; }
.psp-cookie a { color: var(--psp-green); }
.psp-cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (min-width: 600px) { .psp-cookie { flex-direction: row; align-items: center; } }
@media (max-width: 899px) { .psp-cookie { bottom: 84px; } }

/* Ad slots */
.psp-ad { margin: 28px auto; max-width: 1200px; padding: 0 16px; }
.psp-ad-inner { display: flex; align-items: center; justify-content: center; min-height: 90px; }
.psp-ad-ph { width: 100%; min-height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--psp-border); border-radius: 12px; color: var(--psp-mut); font-size: 12px; background: var(--psp-surface); }

/* FAQ archive — list (not grid) */
.psp-faq-list { max-width: 860px; margin: 0 auto; }
.psp-faq-row { padding: 26px 0; border-bottom: 1px solid var(--psp-border); }
.psp-faq-row:first-child { padding-top: 0; }
.psp-faq-row h2 { font-size: 21px; margin: 0 0 8px; }
.psp-faq-row h2 a { color: var(--psp-fg); }
.psp-faq-row h2 a:hover { color: var(--psp-green); }
.psp-faq-row p { color: var(--psp-mut); font-size: 15px; line-height: 1.7; margin: 0 0 10px; }
.psp-faq-more { font-size: 13px; font-weight: 700; color: var(--psp-green); display: inline-flex; align-items: center; gap: 4px; }
.psp-faq-more svg { width: 15px; height: 15px; }

/* Social icons */
.psp-social { display: flex; gap: 10px; margin-top: 18px; }
.psp-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--psp-border); color: var(--psp-mut); transition: color .15s, border-color .15s, background .15s; }
.psp-social a:hover { color: var(--psp-green); border-color: var(--psp-green); }
.psp-social svg { width: 18px; height: 18px; }

/* Single post / FAQ featured + meta */
.psp-article { max-width: 820px; margin: 0 auto; }
.psp-article-hero { margin: 0 0 28px; }
.psp-article-hero img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--psp-border); }
.psp-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.psp-cat { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 9999px; background: color-mix(in srgb, var(--psp-green) 15%, transparent); color: var(--psp-green); }

/* Search results / generic list */
.psp-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }

/* Contact form */
.psp-form { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.psp-form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .psp-form-row { grid-template-columns: 1fr 1fr; } }
.psp-field { display: flex; flex-direction: column; gap: 6px; }
.psp-field > span { font-size: 13px; font-weight: 600; color: var(--psp-fg); }
.psp-field input, .psp-field textarea {
  width: 100%; border: 1px solid var(--psp-border); background: var(--psp-surface-el);
  color: var(--psp-fg); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px;
}
.psp-field input:focus, .psp-field textarea:focus { outline: 2px solid var(--psp-green); outline-offset: 1px; border-color: var(--psp-green); }
.psp-field textarea { resize: vertical; min-height: 130px; }
.psp-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--psp-mut); line-height: 1.6; }
.psp-consent input { margin-top: 3px; flex-shrink: 0; }
.psp-consent a { color: var(--psp-green); text-decoration: underline; }
.psp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.psp-form-note { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.psp-form-note.is-ok { background: color-mix(in srgb, var(--psp-green) 18%, transparent); color: var(--psp-green); border: 1px solid color-mix(in srgb, var(--psp-green) 40%, transparent); }
.psp-form-note.is-err { background: color-mix(in srgb, var(--psp-red) 16%, transparent); color: var(--psp-red); border: 1px solid color-mix(in srgb, var(--psp-red) 40%, transparent); }
.psp-footer-col { min-width: 0; }
.grecaptcha-badge { box-shadow: none !important; }

/* Long-form SEO content blocks (constrained, readable) */
.psp-longform { padding: 48px 16px; }
@media (min-width: 640px) { .psp-longform { padding: 72px 24px; } }
.psp-longform > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.psp-longform h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 14px; color: var(--psp-fg); }
@media (min-width: 640px) { .psp-longform h2 { font-size: 30px; } }
.psp-longform > h2:first-child { margin-top: 0; }
.psp-longform h3 { font-size: 19px; margin: 26px 0 10px; color: var(--psp-fg); }
.psp-longform p { color: var(--psp-mut); line-height: 1.8; font-size: 16px; margin: 0 0 16px; }
.psp-longform ul, .psp-longform ol { color: var(--psp-mut); line-height: 1.8; font-size: 16px; margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.psp-longform li { margin: 0; }
.psp-longform a { color: var(--psp-green); text-decoration: underline; text-underline-offset: 3px; }
.psp-longform a:hover { color: var(--psp-green-h); }
.psp-longform strong { color: var(--psp-fg); font-weight: 700; }

/* Contact page layout (form + map) */
.psp-contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 1040px; margin: 0 auto; align-items: start; }
@media (min-width: 880px) { .psp-contact-grid { grid-template-columns: 1.15fr 0.85fr; gap: 36px; } }
.psp-contact-grid .psp-form { max-width: none; margin: 0; }
.psp-contact-side { display: flex; flex-direction: column; gap: 18px; }
.psp-contact-map { border: 1px solid var(--psp-border); border-radius: 14px; overflow: hidden; background: var(--psp-surface); }
.psp-contact-map iframe { display: block; width: 100%; height: 300px; border: 0; }
.psp-contact-info { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--psp-border); background: var(--psp-card); border-radius: 14px; padding: 18px 20px; }
.psp-contact-row { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--psp-mut); word-break: break-word; }
.psp-contact-row a { color: var(--psp-green); }
.psp-contact-ic { display: inline-flex; width: 34px; height: 34px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 9px; background: color-mix(in srgb, var(--psp-green) 15%, transparent); color: var(--psp-green); }
.psp-contact-ic svg { width: 16px; height: 16px; }

/* Skip transitions for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Utilities */
.psp-center { text-align: center; }
.psp-hidden { display: none !important; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
