/*
Theme Name: The Payments Edge
Theme URI: https://thepaymentsedge.com
Author: The Payments Edge
Author URI: https://thepaymentsedge.com
Description: A professional content and consultancy theme for The Payments Edge — independent payments intelligence for merchants.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: payments-edge
Tags: blog, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --pe-black:      #0a0a0a;
  --pe-navy:       #0f1623;
  --pe-navy-mid:   #1a2235;
  --pe-white:      #ffffff;
  --pe-off-white:  #e8eaf0;
  --pe-orange:     #f05a20;
  --pe-red-orange: #d03a10;
  --pe-muted:      #8892a4;
  --pe-border:     #1e2a3a;
  --pe-card:       #131c2b;

  --pe-font-display: 'Barlow Condensed', sans-serif;
  --pe-font-body:    'Barlow', sans-serif;
  --pe-font-ui:      'Inter', sans-serif;

  --pe-max-width: 1200px;
  --pe-radius:    6px;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--pe-navy);
  color: var(--pe-white);
  font-family: var(--pe-font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pe-orange); }

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pe-border);
}

.site-header__inner {
  max-width: var(--pe-max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-branding .logo-wordmark {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pe-white);
  line-height: 1;
}

.site-branding .logo-wordmark span { color: var(--pe-orange); }

/* Custom logo sizing — targets WP's figure/img wrapper structure */
.site-logo,
.site-logo .custom-logo-link,
.site-logo figure {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.site-logo img,
.site-logo .custom-logo-link img,
.site-logo figure img,
.custom-logo {
  height: 52px !important;
  width: auto !important;
  max-width: none;
  display: block;
}

/* Primary nav */
.primary-navigation { display: flex; align-items: center; gap: 8px; }

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.primary-navigation ul li a {
  color: var(--pe-muted);
  text-decoration: none;
  font-family: var(--pe-font-ui);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  display: block;
}

.primary-navigation ul li a:hover {
  color: var(--pe-white);
  background: rgba(255,255,255,0.06);
}

.nav-cta-wrap { margin-left: 12px; }

.btn-nav-cta {
  background: var(--pe-orange);
  color: var(--pe-white) !important;
  padding: 9px 20px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.btn-nav-cta:hover { background: var(--pe-red-orange) !important; }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--pe-border);
  color: var(--pe-white);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.pe-hero {
  background: var(--pe-black);
  position: relative;
  overflow: hidden;
  padding: 100px 32px 90px;
}

.pe-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(240,90,32,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.pe-hero::after {
  content: 'E';
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: 500px;
  color: rgba(255,255,255,0.022);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.pe-hero__inner {
  max-width: var(--pe-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.pe-hero__eyebrow {
  font-family: var(--pe-font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pe-orange);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pe-hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--pe-orange);
  flex-shrink: 0;
}

.pe-hero h1 {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.pe-hero h1 em { font-style: normal; color: var(--pe-orange); }

.pe-hero__sub {
  font-size: 18px;
  color: var(--pe-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.pe-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Subscribe card */
.pe-hero__card {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius);
  padding: 36px 32px;
}

.pe-hero__card h3 {
  font-family: var(--pe-font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pe-hero__card p {
  font-size: 14px;
  color: var(--pe-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   FORMS
───────────────────────────────────────── */
.pe-subscribe-form { display: flex; flex-direction: column; gap: 12px; }

.pe-subscribe-form input,
.pe-newsletter-form input {
  background: var(--pe-navy);
  border: 1px solid var(--pe-border);
  color: var(--pe-white);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--pe-font-ui);
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.pe-subscribe-form input:focus,
.pe-newsletter-form input:focus { border-color: var(--pe-orange); }

.pe-subscribe-form input::placeholder,
.pe-newsletter-form input::placeholder { color: var(--pe-muted); }

.pe-subscribe-form button,
.pe-newsletter-form button {
  background: var(--pe-orange);
  color: var(--pe-white);
  border: none;
  padding: 13px 20px;
  border-radius: 4px;
  font-family: var(--pe-font-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  width: 100%;
}

.pe-subscribe-form button:hover,
.pe-newsletter-form button:hover { background: var(--pe-red-orange); }

.pe-form-note {
  font-size: 12px;
  color: var(--pe-muted);
  text-align: center;
  margin-top: 4px;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-primary {
  background: var(--pe-orange);
  color: var(--pe-white);
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--pe-font-ui);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover { background: var(--pe-red-orange); transform: translateY(-1px); color: var(--pe-white); }

.btn-ghost {
  background: transparent;
  color: var(--pe-white);
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid var(--pe-border);
  font-family: var(--pe-font-ui);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-ghost:hover { border-color: var(--pe-muted); color: var(--pe-off-white); }

/* ─────────────────────────────────────────
   TRUST BAR
───────────────────────────────────────── */
.pe-trust-bar {
  background: var(--pe-black);
  border-top: 1px solid var(--pe-border);
  border-bottom: 1px solid var(--pe-border);
  padding: 20px 32px;
}

.pe-trust-bar__inner {
  max-width: var(--pe-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.pe-trust-bar__label {
  font-family: var(--pe-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pe-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.pe-trust-bar__items { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }

.pe-trust-bar__item {
  font-family: var(--pe-font-ui);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   SECTION SCAFFOLDING
───────────────────────────────────────── */
.pe-section { padding: 80px 32px; }
.pe-section--black { background: var(--pe-black); }
.pe-section--navy  { background: var(--pe-navy); }
.pe-section--bordered {
  border-top: 1px solid var(--pe-border);
  border-bottom: 1px solid var(--pe-border);
}

.pe-section__inner { max-width: var(--pe-max-width); margin: 0 auto; }

.pe-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.pe-eyebrow {
  font-family: var(--pe-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pe-orange);
  margin-bottom: 10px;
  display: block;
}

.pe-section-title {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.pe-section-link {
  color: var(--pe-orange);
  text-decoration: none;
  font-family: var(--pe-font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: gap 0.2s;
}

.pe-section-link:hover { gap: 10px; }

.pe-orange-rule {
  width: 44px; height: 3px;
  background: var(--pe-orange);
  margin-bottom: 20px;
}

/* ─────────────────────────────────────────
   FEATURED POSTS
───────────────────────────────────────── */
.pe-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--pe-radius);
  overflow: hidden;
}

.pe-featured-main {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--pe-white);
  transition: border-color 0.2s;
}

.pe-featured-main:hover { border-color: var(--pe-orange); color: var(--pe-white); }

.pe-featured-main::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.96) 0%, rgba(10,10,10,0.4) 55%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.pe-featured-main .pe-post-thumbnail {
  position: absolute; inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
}

.pe-featured-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f1623 0%, #1a2235 50%, #0a1520 100%);
}

.pe-featured-bg-pattern {
  position: absolute; inset: 0;
  opacity: 0.05;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 40px,
    rgba(240,90,32,0.5) 40px, rgba(240,90,32,0.5) 41px
  );
}

.pe-featured-main__content { position: relative; z-index: 2; }

.pe-post-tag {
  display: inline-block;
  background: var(--pe-orange);
  color: var(--pe-white);
  font-family: var(--pe-font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.pe-featured-main h2 {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.pe-featured-main p {
  color: var(--pe-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.pe-post-meta {
  font-family: var(--pe-font-ui);
  font-size: 12px;
  color: var(--pe-muted);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.pe-featured-sidebar { display: flex; flex-direction: column; gap: 2px; }

.pe-post-card {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  padding: 28px 32px;
  text-decoration: none;
  color: var(--pe-white);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s, background 0.2s;
}

.pe-post-card:hover { border-color: var(--pe-orange); background: rgba(240,90,32,0.04); color: var(--pe-white); }

.pe-post-card__tag {
  font-family: var(--pe-font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pe-orange);
  margin-bottom: 10px;
  display: block;
}

.pe-post-card h3 {
  font-family: var(--pe-font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.pe-post-card p {
  color: var(--pe-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* ─────────────────────────────────────────
   STATS BAND
───────────────────────────────────────── */
.pe-stats-label {
  text-align: center;
  font-family: var(--pe-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pe-muted);
  margin-bottom: 40px;
}

.pe-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--pe-border);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius);
  overflow: hidden;
}

.pe-stat {
  background: var(--pe-card);
  padding: 36px 24px;
  text-align: center;
}

.pe-stat__number {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pe-white);
  margin-bottom: 10px;
}

.pe-stat__number span { color: var(--pe-orange); }

.pe-stat__desc {
  font-size: 13px;
  color: var(--pe-muted);
  line-height: 1.5;
  font-family: var(--pe-font-ui);
}

/* ─────────────────────────────────────────
   GUIDES GRID
───────────────────────────────────────── */
.pe-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--pe-border);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius);
  overflow: hidden;
}

.pe-guide-card {
  background: var(--pe-card);
  padding: 36px 32px;
  text-decoration: none;
  color: var(--pe-white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
  position: relative;
}

.pe-guide-card:hover { background: rgba(240,90,32,0.06); color: var(--pe-white); }

.pe-guide-card::after {
  content: '→';
  position: absolute;
  bottom: 32px; right: 32px;
  color: var(--pe-orange);
  font-size: 20px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}

.pe-guide-card:hover::after { opacity: 1; transform: translateX(0); }

.pe-guide-card__icon {
  width: 40px; height: 40px;
  background: rgba(240,90,32,0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pe-guide-card__tag {
  font-family: var(--pe-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pe-orange);
}

.pe-guide-card h3 {
  font-family: var(--pe-font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.pe-guide-card p {
  color: var(--pe-muted);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

/* ─────────────────────────────────────────
   NEWSLETTER SECTION
───────────────────────────────────────── */
.pe-newsletter { text-align: center; }

.pe-newsletter h2 {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.pe-newsletter h2 em { font-style: normal; color: var(--pe-orange); }

.pe-newsletter p {
  color: var(--pe-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.pe-newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 14px;
}

.pe-newsletter-form input { flex: 1; }

.pe-newsletter-form button {
  white-space: nowrap;
  padding: 14px 24px;
  border-radius: 4px;
  width: auto;
}

/* ─────────────────────────────────────────
   ABOUT STRIP
───────────────────────────────────────── */
.pe-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.pe-about__text h2 {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.pe-about__text h2 em { font-style: normal; color: var(--pe-orange); }

.pe-about__text p {
  color: var(--pe-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.pe-about__text a.pe-text-link {
  color: var(--pe-orange);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--pe-font-ui);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: gap 0.2s;
}

.pe-about__text a.pe-text-link:hover { gap: 10px; }

.pe-pillars { display: flex; flex-direction: column; gap: 3px; }

.pe-pillar {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  padding: 22px 26px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-radius: 4px;
}

.pe-pillar__num {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--pe-orange);
  line-height: 1;
  flex-shrink: 0;
  width: 34px;
}

.pe-pillar h4 {
  font-family: var(--pe-font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.pe-pillar p {
  color: var(--pe-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   SINGLE POST
───────────────────────────────────────── */
.pe-single { padding: 60px 32px 80px; }

.pe-single__inner {
  max-width: 760px;
  margin: 0 auto;
}

.pe-single__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pe-muted);
  font-family: var(--pe-font-ui);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 36px;
  transition: color 0.2s;
}

.pe-single__back:hover { color: var(--pe-white); }

.pe-single__header { margin-bottom: 40px; }

.pe-single__header h1 {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  margin-top: 14px;
}

.pe-single__header h1 em { font-style: normal; color: var(--pe-orange); }

.pe-single__thumbnail {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--pe-radius);
  margin-bottom: 48px;
  border: 1px solid var(--pe-border);
}

/* Article body typography */
.pe-entry-content { color: var(--pe-off-white); }

.pe-entry-content p { margin-bottom: 24px; font-size: 17px; line-height: 1.75; }

.pe-entry-content h2 {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 48px 0 16px;
  color: var(--pe-white);
}

.pe-entry-content h3 {
  font-family: var(--pe-font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 36px 0 12px;
  color: var(--pe-white);
}

.pe-entry-content a { color: var(--pe-orange); }
.pe-entry-content a:hover { text-decoration: underline; }

.pe-entry-content ul, .pe-entry-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.pe-entry-content li { margin-bottom: 8px; line-height: 1.7; }

.pe-entry-content blockquote {
  border-left: 3px solid var(--pe-orange);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--pe-card);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--pe-muted);
}

.pe-entry-content code {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  color: var(--pe-orange);
}

.pe-entry-content pre {
  background: var(--pe-black);
  border: 1px solid var(--pe-border);
  border-radius: 6px;
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.pe-entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--pe-off-white);
}

.pe-entry-content img {
  border-radius: var(--pe-radius);
  margin: 32px 0;
  border: 1px solid var(--pe-border);
}

.pe-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 15px;
}

.pe-entry-content table th {
  background: var(--pe-card);
  color: var(--pe-white);
  font-family: var(--pe-font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--pe-orange);
}

.pe-entry-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--pe-border);
  color: var(--pe-muted);
}

.pe-entry-content table tr:hover td { background: rgba(255,255,255,0.02); }

/* ─────────────────────────────────────────
   ARCHIVE / BLOG LIST
───────────────────────────────────────── */
.pe-archive { padding: 60px 32px 80px; }

.pe-archive__inner { max-width: var(--pe-max-width); margin: 0 auto; }

.pe-archive__header { margin-bottom: 52px; }

.pe-archive__header h1 {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-top: 12px;
}

.pe-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--pe-border);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius);
  overflow: hidden;
  margin-bottom: 48px;
}

.pe-archive-card {
  background: var(--pe-card);
  padding: 32px;
  text-decoration: none;
  color: var(--pe-white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}

.pe-archive-card:hover { background: rgba(240,90,32,0.06); color: var(--pe-white); }

.pe-archive-card__thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--pe-border);
}

.pe-archive-card__thumb-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, #0f1623, #1a2235);
  border-radius: 4px;
  border: 1px solid var(--pe-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: 48px;
  color: rgba(240,90,32,0.2);
}

.pe-archive-card h2 {
  font-family: var(--pe-font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.pe-archive-card p {
  color: var(--pe-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.pe-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 12px;
}

.pe-pagination .page-numbers {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  color: var(--pe-muted);
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--pe-font-ui);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.pe-pagination .page-numbers:hover,
.pe-pagination .page-numbers.current {
  border-color: var(--pe-orange);
  color: var(--pe-white);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--pe-black);
  border-top: 1px solid var(--pe-border);
  padding: 64px 32px 40px;
}

.site-footer__inner { max-width: var(--pe-max-width); margin: 0 auto; }

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 52px;
}

.footer-brand__logo {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pe-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand__logo span { color: var(--pe-orange); }

.footer-brand p {
  color: var(--pe-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h5 {
  font-family: var(--pe-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pe-muted);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--pe-font-ui);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--pe-white); }

.site-footer__bottom {
  border-top: 1px solid var(--pe-border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__bottom p {
  color: var(--pe-muted);
  font-size: 13px;
  font-family: var(--pe-font-ui);
}

.site-footer__bottom p span { color: var(--pe-orange); }

.footer-social { display: flex; gap: 20px; }

.footer-social a {
  color: var(--pe-muted);
  font-size: 13px;
  font-family: var(--pe-font-ui);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--pe-white); }

/* ─────────────────────────────────────────
   GUTENBERG BLOCK OVERRIDES
───────────────────────────────────────── */
.wp-block-image img { border-radius: var(--pe-radius); }

.wp-block-pullquote {
  border-top: 3px solid var(--pe-orange);
  border-bottom: 3px solid var(--pe-orange);
  padding: 24px 0;
  margin: 40px 0;
}

.wp-block-pullquote blockquote p {
  font-family: var(--pe-font-display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--pe-white);
}

.wp-block-separator { border-color: var(--pe-border); }

.wp-block-button__link {
  background: var(--pe-orange) !important;
  border-radius: 4px !important;
  font-family: var(--pe-font-ui);
  font-weight: 600;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 960px) {
  .pe-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .pe-hero::after { display: none; }
  .pe-featured-grid { grid-template-columns: 1fr; }
  .pe-guides-grid { grid-template-columns: 1fr 1fr; }
  .pe-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pe-about__inner { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .pe-posts-grid { grid-template-columns: 1fr 1fr; }
  .primary-navigation ul { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 600px) {
  .pe-section { padding: 60px 20px; }
  .pe-hero { padding: 60px 20px; }
  .pe-guides-grid { grid-template-columns: 1fr; }
  .pe-stats-grid { grid-template-columns: 1fr 1fr; }
  .pe-posts-grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .pe-newsletter-form { flex-direction: column; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .pe-single, .pe-archive { padding: 40px 20px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
