/*
Theme Name: Payment Security Pros
Theme URI: https://paymentsecuritypros.com
Author: Payment Security Pros
Author URI: https://paymentsecuritypros.com
Description: A clean, modern blog theme built for writing about payment security — PCI DSS compliance, fraud prevention, tokenization, EMV, data breaches, and more. Ships with 50 demo posts and categories that publish automatically on activation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: paymentsecuritypros
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready, security
*/

:root {
  --psp-bg: #0b1220;
  --psp-bg-soft: #111a2e;
  --psp-surface: #ffffff;
  --psp-ink: #0f172a;
  --psp-ink-soft: #475569;
  --psp-muted: #64748b;
  --psp-line: #e2e8f0;
  --psp-brand: #1e6fff;
  --psp-brand-dark: #0b4fd1;
  --psp-accent: #16b981;
  --psp-danger: #ef4444;
  --psp-page: #f6f8fc;
  --psp-radius: 14px;
  --psp-radius-sm: 9px;
  --psp-shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --psp-shadow-lg: 0 12px 40px rgba(15,23,42,.12);
  --psp-maxw: 1200px;
  --psp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --psp-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
img, svg { max-width: 100%; }

body {
  margin: 0;
  font-family: var(--psp-font);
  color: var(--psp-ink);
  background: var(--psp-page);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--psp-brand); text-decoration: none; }
a:hover { color: var(--psp-brand-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

.psp-container {
  width: 100%;
  max-width: var(--psp-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessibility */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--psp-brand); color: #fff; padding: 10px 16px; z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.psp-topbar {
  background: linear-gradient(180deg, #0b1220 0%, #111a2e 100%);
  color: #cbd5e1;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.psp-topbar .psp-container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 38px; gap: 16px;
}
.psp-topbar a { color: #e2e8f0; }
.psp-topbar__tag { display: inline-flex; align-items: center; gap: 8px; }
.psp-topbar__tag svg { flex: none; }

.psp-header {
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--psp-line);
  position: sticky; top: 0; z-index: 50;
}
.psp-header .psp-container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 24px;
}
.psp-brand { display: inline-flex; align-items: center; gap: 12px; }
.psp-brand__mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--psp-brand), #4f46e5);
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: 0 6px 16px rgba(30,111,255,.35);
}
.psp-brand__text { line-height: 1.1; }
.psp-brand__name {
  font-weight: 800; font-size: 19px; color: var(--psp-ink);
  letter-spacing: -.02em; display: block;
}
.psp-brand__name:hover { text-decoration: none; }
.psp-brand__sub { font-size: 11.5px; color: var(--psp-muted); letter-spacing: .12em; text-transform: uppercase; }

.psp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.psp-nav a {
  display: inline-block; padding: 9px 14px; border-radius: 9px;
  color: var(--psp-ink-soft); font-weight: 600; font-size: 15px;
}
.psp-nav a:hover { background: var(--psp-page); color: var(--psp-ink); text-decoration: none; }
.psp-nav .current-menu-item > a,
.psp-nav .current_page_item > a { color: var(--psp-brand); background: #eef4ff; }

.psp-menu-toggle {
  display: none; border: 1px solid var(--psp-line); background: #fff;
  border-radius: 10px; padding: 9px 12px; cursor: pointer; color: var(--psp-ink);
}

/* ---------- Hero ---------- */
.psp-hero {
  position: relative; overflow: hidden; color: #e6edf7; background: #0a1020;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.psp-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 82% 8%, rgba(79,70,229,.38), transparent 60%),
    radial-gradient(50% 55% at 6% 4%, rgba(30,111,255,.42), transparent 58%),
    radial-gradient(55% 60% at 60% 110%, rgba(22,185,129,.18), transparent 60%),
    linear-gradient(180deg, #0a1020, #0e1730);
}
.psp-hero__grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(80% 70% at 50% 0%, #000, transparent 75%);
}
.psp-hero .psp-container { position: relative; z-index: 2; }
.psp-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center;
  padding: 72px 0 84px;
}
.psp-hero__copy { min-width: 0; }
.psp-hero h1 { overflow-wrap: break-word; }
.psp-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  color: #cfe0ff; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  margin-bottom: 22px;
}
.psp-hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--psp-accent); box-shadow: 0 0 0 4px rgba(22,185,129,.25); }
.psp-hero h1 {
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; margin: 0 0 18px;
  letter-spacing: -.035em; color: #fff;
}
.psp-hero h1 .grad {
  background: linear-gradient(100deg, #7dd3fc, #a5b4fc 55%, #f0abfc);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.psp-hero p.lead { font-size: 19px; color: #b6c4dc; max-width: 56ch; margin: 0 0 30px; }
.psp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }
.psp-hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.psp-hero__stat .n { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; }
.psp-hero__stat .l { font-size: 13px; color: #93a4c2; margin-top: 6px; }
.psp-hero__divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.1); }

/* Hero visual */
.psp-hero__visual { position: relative; height: 400px; }
.psp-shield { position: absolute; inset: 0; display: grid; place-items: center; }
.psp-shield__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.psp-shield__core {
  width: 150px; height: 180px; border-radius: 26px; position: relative; z-index: 3;
  background: linear-gradient(160deg, rgba(30,111,255,.95), rgba(79,70,229,.95));
  box-shadow: 0 30px 70px rgba(30,111,255,.5), inset 0 1px 0 rgba(255,255,255,.4);
  display: grid; place-items: center;
}
.psp-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.09); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); color: #eaf1ff; padding: 9px 13px; border-radius: 12px;
  font-size: 13px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.psp-chip .ic { width: 16px; height: 16px; color: #7dd3fc; }
.psp-chip.ok .ic { color: var(--psp-accent); }
.psp-chip.c1 { top: 22px; left: 6px; }
.psp-chip.c2 { top: 70px; right: 0; }
.psp-chip.c3 { bottom: 78px; left: -6px; }
.psp-chip.c4 { bottom: 20px; right: 14px; }

.psp-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 12px 20px; border-radius: 11px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: transform .05s ease;
}
.psp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.psp-btn--primary { background: var(--psp-brand); color: #fff; box-shadow: 0 8px 20px rgba(30,111,255,.35); }
.psp-btn--primary:hover { background: var(--psp-brand-dark); color: #fff; }
.psp-btn--ghost { background: rgba(255,255,255,.06); color: #e6edf7; border-color: rgba(255,255,255,.18); }
.psp-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Layout ---------- */
.psp-main { padding: 44px 0 64px; }
.psp-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 44px; align-items: start;
}

.psp-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin: 0 0 26px;
}
.psp-section-head h2 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
.psp-eyebrow-c { color: var(--psp-brand); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 12.5px; }
.psp-section-title { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; margin: 8px 0 0; }
.psp-see-all { font-size: 14px; font-weight: 700; white-space: nowrap; }
.psp-section-head .psp-see-all { font-size: 14px; font-weight: 700; }

/* ---------- Browse by topic ---------- */
.psp-topics-sec { padding: 8px 0 46px; outline: none; }
.psp-topics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.psp-topic {
  background: var(--psp-surface); border: 1px solid var(--psp-line); border-radius: var(--psp-radius);
  padding: 20px; box-shadow: var(--psp-shadow); display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.psp-topic:hover { transform: translateY(-4px); box-shadow: var(--psp-shadow-lg); border-color: #cfd9ea; text-decoration: none; }
.psp-topic__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.psp-topic__n { font-weight: 700; font-size: 15.5px; color: var(--psp-ink); line-height: 1.3; }
.psp-topic__c { font-size: 12.5px; color: var(--psp-muted); margin-top: auto; }

/* ---------- Newsletter band ---------- */
.psp-band {
  margin: 44px 0 0; border-radius: 22px; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #0b1220, #1b2a4a); color: #e6edf7; padding: 46px 44px;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center;
}
.psp-band__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 80% at 90% 0%, rgba(79,70,229,.5), transparent 60%),
    radial-gradient(40% 90% at 0% 100%, rgba(22,185,129,.28), transparent 60%);
}
.psp-band > * { position: relative; z-index: 2; }
.psp-band h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.02em; color: #fff; }
.psp-band p { margin: 0; color: #b6c4dc; }
.psp-band__form { display: flex; gap: 10px; flex-wrap: wrap; }
.psp-band__form input {
  flex: 1; min-width: 180px; padding: 13px 15px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 15px;
}
.psp-band__form input::placeholder { color: #93a4c2; }

/* ---------- Post cards ---------- */
.psp-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px;
}
.psp-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.psp-card {
  background: var(--psp-surface); border: 1px solid var(--psp-line);
  border-radius: var(--psp-radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--psp-shadow); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.psp-card:hover { box-shadow: var(--psp-shadow-lg); transform: translateY(-3px); border-color: #cfd9ea; }
.psp-card__thumb { display: block; aspect-ratio: 16/9; position: relative; overflow: hidden; }
.psp-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.psp-card__ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: block;
}
.psp-card__ph svg { display: block; width: 100%; height: 100%; }
.psp-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.psp-card__cat {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--psp-brand); background: #eef4ff;
  padding: 4px 10px; border-radius: 999px;
}
.psp-card__cat:hover { text-decoration: none; background: #dfeaff; }
.psp-card__title { font-size: 19px; line-height: 1.28; margin: 0; letter-spacing: -.01em; }
.psp-card__title a { color: var(--psp-ink); }
.psp-card__title a:hover { color: var(--psp-brand); text-decoration: none; }
.psp-card__excerpt { color: var(--psp-ink-soft); font-size: 15px; margin: 0; }
.psp-card__meta {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--psp-line);
  display: flex; align-items: center; gap: 10px; color: var(--psp-muted); font-size: 13px;
}
.psp-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--psp-brand), #4f46e5); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}

/* Featured / list variants */
.psp-feature { margin-bottom: 44px; }
.psp-feature .psp-card { flex-direction: row; }
.psp-feature .psp-card__thumb { flex: 0 0 50%; aspect-ratio: auto; }
.psp-feature .psp-card__body { padding: 34px; gap: 14px; justify-content: center; }
.psp-feature .psp-card__title { font-size: 28px; }
.psp-feature .psp-card__excerpt { font-size: 16px; }
.psp-card__badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #b45309; background: #fef3c7; padding: 5px 11px; border-radius: 999px;
}

/* ---------- Single post ---------- */
.psp-article {
  background: #fff; border: 1px solid var(--psp-line); border-radius: var(--psp-radius);
  box-shadow: var(--psp-shadow); overflow: hidden;
}
.psp-article__hero { aspect-ratio: 21/8; background: linear-gradient(135deg,#1e293b,#334155); position: relative; }
.psp-article__hero img { width: 100%; height: 100%; object-fit: cover; }
.psp-article__inner { padding: 40px clamp(20px, 4vw, 56px) 48px; }
.psp-article__cat {
  display: inline-block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--psp-brand); background: #eef4ff; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.psp-article__title { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 16px; }
.psp-article__meta { display: flex; align-items: center; gap: 12px; color: var(--psp-muted); font-size: 14px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--psp-line); }
.psp-article__meta .psp-avatar { width: 34px; height: 34px; font-size: 14px; }

.psp-content { font-size: 17.5px; color: #1f2937; line-height: 1.75; }
.psp-content > *:first-child { margin-top: 0; }
.psp-content h2 { font-size: 26px; letter-spacing: -.01em; margin: 40px 0 14px; line-height: 1.25; }
.psp-content h3 { font-size: 20px; margin: 30px 0 10px; }
.psp-content p { margin: 0 0 18px; }
.psp-content ul, .psp-content ol { margin: 0 0 18px; padding-left: 24px; }
.psp-content li { margin-bottom: 8px; }
.psp-content a { text-decoration: underline; }
.psp-content blockquote {
  margin: 26px 0; padding: 16px 22px; border-left: 4px solid var(--psp-brand);
  background: #f2f7ff; border-radius: 0 10px 10px 0; color: #22334d; font-style: italic;
}
.psp-content blockquote p:last-child { margin-bottom: 0; }
.psp-content code {
  background: #0f172a; color: #e2e8f0; padding: 2px 6px; border-radius: 6px; font-size: .9em;
}
.psp-content img { border-radius: 10px; }

.psp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--psp-line); }
.psp-tag {
  font-size: 13px; color: var(--psp-ink-soft); background: var(--psp-page);
  border: 1px solid var(--psp-line); padding: 5px 12px; border-radius: 999px;
}
.psp-tag:hover { background: #eef4ff; color: var(--psp-brand); text-decoration: none; }

.psp-author-box {
  display: flex; gap: 16px; margin-top: 32px; padding: 24px; background: var(--psp-page);
  border: 1px solid var(--psp-line); border-radius: var(--psp-radius);
}
.psp-author-box .psp-avatar { width: 52px; height: 52px; font-size: 20px; }
.psp-author-box h4 { margin: 0 0 4px; font-size: 16px; }
.psp-author-box p { margin: 0; color: var(--psp-ink-soft); font-size: 14.5px; }

.psp-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.psp-postnav a {
  display: block; padding: 18px 20px; background: #fff; border: 1px solid var(--psp-line);
  border-radius: var(--psp-radius); box-shadow: var(--psp-shadow);
}
.psp-postnav a:hover { border-color: var(--psp-brand); text-decoration: none; }
.psp-postnav .psp-postnav__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--psp-muted); }
.psp-postnav .psp-postnav__title { font-weight: 700; color: var(--psp-ink); }
.psp-postnav .is-next { text-align: right; }

/* ---------- Sidebar ---------- */
.psp-widget {
  background: #fff; border: 1px solid var(--psp-line); border-radius: var(--psp-radius);
  padding: 22px; margin-bottom: 24px; box-shadow: var(--psp-shadow);
}
.psp-widget h3, .psp-widget .widget-title {
  margin: 0 0 16px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--psp-muted); font-weight: 800;
}
.psp-widget ul { list-style: none; margin: 0; padding: 0; }
.psp-widget li { padding: 8px 0; border-bottom: 1px dashed var(--psp-line); }
.psp-widget li:last-child { border-bottom: 0; }
.psp-widget li a { color: var(--psp-ink); font-weight: 600; font-size: 15px; }
.psp-widget li a:hover { color: var(--psp-brand); text-decoration: none; }

.psp-cat-list li { display: flex; align-items: center; justify-content: space-between; }
.psp-cat-list .count {
  font-size: 12px; color: var(--psp-muted); background: var(--psp-page);
  border: 1px solid var(--psp-line); border-radius: 999px; padding: 2px 9px; font-weight: 700;
}

.psp-recent { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--psp-line); }
.psp-recent:last-child { border-bottom: 0; }
.psp-recent__thumb { width: 64px; height: 56px; border-radius: 9px; object-fit: cover; flex: none; background: #334155; }
.psp-recent__t { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--psp-ink); }
.psp-recent__t:hover { color: var(--psp-brand); text-decoration: none; }
.psp-recent__d { font-size: 12px; color: var(--psp-muted); margin-top: 3px; }

.psp-search { display: flex; gap: 8px; }
.psp-search input[type=search] {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--psp-line);
  border-radius: 10px; font-size: 15px; font-family: inherit; background: var(--psp-page);
}
.psp-search input[type=search]:focus { outline: 2px solid var(--psp-brand); border-color: transparent; background: #fff; }
.psp-search button {
  border: 0; background: var(--psp-brand); color: #fff; border-radius: 10px;
  padding: 0 16px; cursor: pointer; font-weight: 700;
}
.psp-search button:hover { background: var(--psp-brand-dark); }

.psp-newsletter {
  background: linear-gradient(160deg, #0b1220, #1b2a4a); color: #e6edf7; border: 0;
}
.psp-newsletter h3 { color: #cfe0ff; }
.psp-newsletter p { color: #b6c4dc; font-size: 14.5px; margin: 0 0 14px; }
.psp-newsletter input {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; margin-bottom: 10px; font-size: 15px;
}
.psp-newsletter input::placeholder { color: #93a4c2; }
.psp-newsletter button { width: 100%; }
.psp-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Page header (archives) ---------- */
.psp-pagehead {
  background: linear-gradient(180deg, #0b1220, #111a2e); color: #e6edf7;
  padding: 48px 0; border-bottom: 1px solid rgba(255,255,255,.06); text-align: center;
}
.psp-pagehead .psp-kicker { color: #8fb0ff; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; }
.psp-pagehead h1 { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 10px; letter-spacing: -.02em; }
.psp-pagehead p { color: #b6c4dc; margin: 0 auto; max-width: 60ch; }
.psp-breadcrumb { color: #8ea3c4; font-size: 13.5px; margin-bottom: 6px; }
.psp-breadcrumb a { color: #b6c4dc; }

/* ---------- Pagination ---------- */
.psp-pagination { margin-top: 40px; display: flex; justify-content: center; }
.psp-pagination .page-numbers {
  display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center;
  padding: 0 12px; margin: 0 4px; border-radius: 10px; border: 1px solid var(--psp-line);
  background: #fff; color: var(--psp-ink); font-weight: 700; box-shadow: var(--psp-shadow);
}
.psp-pagination .page-numbers.current { background: var(--psp-brand); color: #fff; border-color: var(--psp-brand); }
.psp-pagination a.page-numbers:hover { border-color: var(--psp-brand); color: var(--psp-brand); text-decoration: none; }
.psp-pagination .dots { border: 0; box-shadow: none; background: transparent; }

/* ---------- Footer ---------- */
.psp-footer { background: #0b1220; color: #9fb0cc; padding: 56px 0 28px; margin-top: 40px; }
.psp-footer a { color: #cbd5e1; }
.psp-footer a:hover { color: #fff; }
.psp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.psp-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px; }
.psp-footer ul { list-style: none; margin: 0; padding: 0; }
.psp-footer li { margin-bottom: 10px; font-size: 14.5px; }
.psp-footer__about p { font-size: 14.5px; line-height: 1.7; max-width: 42ch; }
.psp-footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: #7f92b0;
}

/* ---------- Comments ---------- */
.psp-comments { background: #fff; border: 1px solid var(--psp-line); border-radius: var(--psp-radius); box-shadow: var(--psp-shadow); padding: 28px clamp(20px,4vw,40px); margin-top: 24px; }
.psp-comments h3 { margin-top: 0; }
.psp-comments ol { list-style: none; padding: 0; }
.psp-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--psp-line); }
.psp-comments textarea, .psp-comments input[type=text], .psp-comments input[type=email], .psp-comments input[type=url] {
  width: 100%; padding: 11px 14px; border: 1px solid var(--psp-line); border-radius: 10px; font-family: inherit; font-size: 15px; margin-bottom: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .psp-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .psp-layout { grid-template-columns: 1fr; }
  .psp-sidebar { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
  .psp-footer__grid { grid-template-columns: 1fr 1fr; }
  .psp-hero__inner { grid-template-columns: 1fr; gap: 24px; padding: 56px 0 60px; }
  .psp-hero__visual { display: none; }
  .psp-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .psp-band { grid-template-columns: 1fr; padding: 36px 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .psp-nav { display: none; }
  .psp-nav.is-open {
    display: block; position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--psp-line); box-shadow: var(--psp-shadow-lg); padding: 12px 24px;
  }
  .psp-nav.is-open ul { flex-direction: column; align-items: stretch; }
  .psp-nav.is-open a { display: block; }
  .psp-menu-toggle { display: inline-flex; }
  .psp-grid, .psp-grid--3 { grid-template-columns: 1fr; }
  .psp-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psp-feature .psp-card { flex-direction: column; }
  .psp-feature .psp-card__thumb { flex: auto; aspect-ratio: 16/9; }
  .psp-sidebar { grid-template-columns: 1fr; }
  .psp-postnav { grid-template-columns: 1fr; }
  .psp-footer__grid { grid-template-columns: 1fr; }
  .psp-topbar { display: none; }
  .psp-hero__stats { gap: 22px; }
}

/* WP core alignment helpers */
.aligncenter { display:block; margin: 0 auto; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.wp-caption { max-width: 100%; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.wp-caption-text { font-size: 13px; color: var(--psp-muted); text-align: center; }
