/*
Theme Name: PrichaX Blog
Theme URI: https://prichax.com
Author: PrichaX
Author URI: https://prichax.com
Description: A high-performance, AdSense-optimized WordPress theme for blogs and news websites. Features OAuth social login, auto-sharing, advanced ad management, AI quiz generation, custom login & dashboard pages, dark mode, reading progress bar, Table of Contents, SEO with Schema.org, and more.
Version: 2.5.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: prichax-blog
Tags: blog, news, adsense, social-sharing, oauth, dark-mode, responsive, seo-optimized, quiz, dashboard
*/

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  --px-primary:       #E8321A;
  --px-primary-dark:  #C02915;
  --px-primary-light: #FF5C45;
  --px-secondary:     #1A1A2E;
  --px-accent:        #F5A623;
  --px-white:         #FFFFFF;
  --px-off-white:     #F8F9FA;
  --px-light-gray:    #F1F3F5;
  --px-mid-gray:      #CED4DA;
  --px-dark-gray:     #6C757D;
  --px-charcoal:      #343A40;
  --px-black:         #0D0D0D;
  --px-font-heading:  'Playfair Display', Georgia, serif;
  --px-font-body:     'Source Serif 4', Georgia, serif;
  --px-font-ui:       'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --px-font-mono:     'JetBrains Mono', monospace;
  --px-text-xs:    0.75rem;
  --px-text-sm:    0.875rem;
  --px-text-base:  1rem;
  --px-text-lg:    1.125rem;
  --px-text-xl:    1.25rem;
  --px-text-2xl:   1.5rem;
  --px-text-3xl:   1.875rem;
  --px-text-4xl:   2.25rem;
  --px-text-5xl:   3rem;
  --px-space-1:   0.25rem;
  --px-space-2:   0.5rem;
  --px-space-3:   0.75rem;
  --px-space-4:   1rem;
  --px-space-5:   1.25rem;
  --px-space-6:   1.5rem;
  --px-space-8:   2rem;
  --px-space-10:  2.5rem;
  --px-space-12:  3rem;
  --px-space-16:  4rem;
  --px-space-20:  5rem;
  --px-space-24:  6rem;
  --px-container:      1280px;
  --px-radius-sm:  4px;
  --px-radius:     8px;
  --px-radius-lg:  12px;
  --px-radius-xl:  16px;
  --px-radius-full:9999px;
  --px-shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --px-shadow:     0 4px 6px rgba(0,0,0,.07);
  --px-shadow-md:  0 10px 15px rgba(0,0,0,.08);
  --px-shadow-lg:  0 20px 25px rgba(0,0,0,.1);
  --px-shadow-xl:  0 25px 50px rgba(0,0,0,.15);
  --px-transition:      0.2s ease;
  --px-transition-slow: 0.4s ease;
  --px-header-height: 56px;
  --px-z-sticky:  100;
  --px-z-overlay: 200;
  --px-z-modal:   300;
  --px-z-toast:   400;
  --px-bg:            #FFFFFF;
  --px-bg-secondary:  #F8F9FA;
  --px-bg-tertiary:   #F1F3F5;
  --px-text:          #1A1A2E;
  --px-text-secondary:#4A5568;
  --px-text-muted:    #6C757D;
  --px-border:        #E2E8F0;
  --px-border-light:  #F1F3F5;
  --px-ad-bg:         #F8F9FA;
  --px-ad-border:     #E2E8F0;
}

[data-theme="dark"] {
  --px-bg:            #0F0F1A;
  --px-bg-secondary:  #1A1A2E;
  --px-bg-tertiary:   #252540;
  --px-text:          #F0F0F5;
  --px-text-secondary:#A0AEC0;
  --px-text-muted:    #718096;
  --px-border:        #2D2D4E;
  --px-border-light:  #1E1E35;
  --px-shadow-sm:     0 1px 3px rgba(0,0,0,.3);
  --px-shadow:        0 4px 6px rgba(0,0,0,.25);
  --px-shadow-md:     0 10px 15px rgba(0,0,0,.3);
  --px-ad-bg:         #1A1A2E;
  --px-ad-border:     #2D2D4E;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--px-font-ui);
  font-size: var(--px-text-base);
  line-height: 1.7;
  color: var(--px-text);
  background-color: var(--px-bg);
  transition: background-color var(--px-transition-slow), color var(--px-transition-slow);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--px-primary); text-decoration: none; transition: color var(--px-transition); }
a:hover { color: var(--px-primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =====================================================
   LAYOUT CONTAINER
   ===================================================== */
.px-container {
  max-width: var(--px-container);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 768px) { .px-container { padding-inline: 2rem; } }

/* =====================================================
   AD SLOTS
   ===================================================== */
.px-ad-slot {
  background: var(--px-ad-bg);
  border: 1px dashed var(--px-ad-border);
  border-radius: var(--px-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90px;
  padding: 12px;
  margin: 16px 0;
  overflow: hidden;
  position: relative;
}
.px-ad-slot[data-lazy="true"] { opacity: 0; transition: opacity .3s; }
.px-ad-slot[data-lazy="true"].loaded { opacity: 1; }
.px-ad-slot-label {
  position: absolute; top: 4px; right: 6px;
  font-family: var(--px-font-ui); font-size: 9px;
  color: var(--px-text-muted); text-transform: uppercase; letter-spacing: .05em;
}
.px-ad-header { min-height: 90px; margin: 0; border-radius: 0; }
.px-ad-sidebar { min-height: 250px; }



/* =====================================================
   v2.1.0 — MAGAZINE HOMEPAGE + DARK TOP NAV
   ===================================================== */

/* ---- TOP BAR (dark) ---- */
.px-top-bar {
    background: var(--px-secondary);
    position: sticky;
    top: 0;
    z-index: var(--px-z-sticky);
    transition: box-shadow var(--px-transition);
}
.px-top-bar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.35); }

.px-top-bar-inner {
    display: flex;
    align-items: center;
    height: 52px;
    gap: var(--px-space-4);
}

/* Site name / logo in dark bar */
.px-site-name {
    font-family: var(--px-font-heading);
    font-size: var(--px-text-xl);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    white-space: nowrap;
    text-decoration: none;
}
.px-site-name:hover { color: var(--px-primary-light); }

/* Top nav links */
.px-top-bar-nav { display: none; }
@media (min-width: 1024px) {
    .px-top-bar-nav { display: flex; align-items: center; }
}
.px-top-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}
.px-top-nav-list li a {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-sm);
    font-weight: 600;
    color: rgba(255,255,255,.75);
    padding: var(--px-space-2) var(--px-space-3);
    border-radius: var(--px-radius);
    transition: all var(--px-transition);
    display: block;
    white-space: nowrap;
    text-decoration: none;
}
.px-top-nav-list li a:hover,
.px-top-nav-list li.current-menu-item a {
    color: #fff;
    background: rgba(255,255,255,.1);
}

/* Top bar right actions */
.px-top-bar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
}

/* CTA button (Order Now / Sign In style) */
.px-nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--px-primary);
    color: #fff !important;
    font-family: var(--px-font-ui);
    font-size: var(--px-text-sm);
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--px-radius);
    transition: all var(--px-transition);
    text-decoration: none;
    white-space: nowrap;
}
.px-nav-cta-btn:hover { background: var(--px-primary-dark); transform: translateY(-1px); }

/* Icon buttons in dark bar */
.px-top-bar .px-btn-icon {
    color: rgba(255,255,255,.75);
}
.px-top-bar .px-btn-icon:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.px-top-bar .px-dark-toggle {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
}
.px-mobile-toggle { display: flex; }
@media (min-width: 1024px) { .px-mobile-toggle { display: none; } }

/* Mobile menu */
#px-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--px-bg);
    z-index: var(--px-z-modal);
    overflow-y: auto;
    padding: var(--px-space-6);
}
#px-mobile-menu.open { display: flex; flex-direction: column; }
.px-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--px-space-8);
}
.px-mobile-logo {
    font-family: var(--px-font-heading);
    font-size: var(--px-text-2xl);
    font-weight: 800;
    color: var(--px-text);
    text-decoration: none;
}
.px-mobile-nav a {
    display: block;
    font-family: var(--px-font-heading);
    font-size: var(--px-text-2xl);
    font-weight: 700;
    color: var(--px-text);
    padding: var(--px-space-3) 0;
    border-bottom: 1px solid var(--px-border);
    text-decoration: none;
}
.px-mobile-nav a:hover { color: var(--px-primary); }

/* Search dropdown */
.px-search-form {
    display: none;
    background: var(--px-secondary);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: var(--px-space-4) 0;
}
.px-search-form.active { display: block; }
.px-search-input {
    flex: 1;
    padding: var(--px-space-3) var(--px-space-4);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: var(--px-radius);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: var(--px-text-base);
    outline: none;
}
.px-search-input::placeholder { color: rgba(255,255,255,.5); }
.px-search-input:focus { border-color: var(--px-primary); }
.px-btn-search {
    padding: var(--px-space-3) var(--px-space-5);
    background: var(--px-primary);
    color: #fff;
    border-radius: var(--px-radius);
    font-family: var(--px-font-ui);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--px-transition);
}
.px-btn-search:hover { background: var(--px-primary-dark); }

/* ---- CATEGORY PILL NAV BAR ---- */
.px-cat-nav-bar {
    background: var(--px-bg);
    border-bottom: 2px solid var(--px-border-light);
    position: sticky;
    top: 52px;
    z-index: calc(var(--px-z-sticky) - 1);
}
.px-cat-nav-inner {
    display: flex;
    align-items: center;
    gap: var(--px-space-1);
    overflow-x: auto;
    padding: var(--px-space-2) 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.px-cat-nav-inner::-webkit-scrollbar { display: none; }
.px-cat-nav-pill {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-sm);
    font-weight: 600;
    color: var(--px-text-secondary);
    padding: 5px 14px;
    border-radius: var(--px-radius-full);
    white-space: nowrap;
    text-decoration: none;
    transition: all var(--px-transition);
    border: 1.5px solid transparent;
}
.px-cat-nav-pill:hover {
    color: var(--px-primary);
    border-color: var(--px-primary);
}
.px-cat-nav-pill.active {
    background: var(--px-primary);
    color: #fff;
    border-color: var(--px-primary);
}

/* ---- HOMEPAGE GRID ---- */
.px-homepage-wrap { padding-top: var(--px-space-8); padding-bottom: var(--px-space-16); }
.px-homepage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--px-space-8);
}
@media (min-width: 1024px) {
    .px-homepage-grid { grid-template-columns: 1fr 300px; }
}

/* ---- FEATURED HERO ---- */
.px-hero-feature {
    border-radius: var(--px-radius-xl);
    overflow: hidden;
    background: var(--px-bg-tertiary);
    border: 1px solid var(--px-border);
    margin-bottom: var(--px-space-4);
}
.px-hero-feature-img-wrap {
    position: relative;
    aspect-ratio: 16/7;
    overflow: hidden;
    background: var(--px-secondary);
}
.px-hero-feature-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.px-hero-feature:hover .px-hero-feature-img { transform: scale(1.02); }
.px-hero-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--px-primary), var(--px-secondary));
}
.px-hero-feature-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.0) 60%, rgba(0,0,0,.15) 100%);
}
.px-hero-views-badge {
    position: absolute;
    top: var(--px-space-3);
    right: var(--px-space-3);
    background: rgba(0,0,0,.55);
    color: #fff;
    font-family: var(--px-font-ui);
    font-size: var(--px-text-xs);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--px-radius-full);
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}
.px-hero-arrows {
    position: absolute;
    bottom: var(--px-space-4);
    right: var(--px-space-4);
    display: flex;
    gap: var(--px-space-2);
    z-index: 3;
}
.px-hero-arrow {
    width: 34px; height: 34px;
    border-radius: var(--px-radius);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: background var(--px-transition);
    backdrop-filter: blur(4px);
}
.px-hero-arrow:hover { background: var(--px-primary); border-color: var(--px-primary); }

.px-hero-feature-body { padding: var(--px-space-5) var(--px-space-6); }
.px-hero-meta-top {
    display: flex;
    align-items: center;
    gap: var(--px-space-3);
    margin-bottom: var(--px-space-3);
    flex-wrap: wrap;
}
.px-hero-date {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-xs);
    color: var(--px-text-muted);
    font-weight: 600;
}
.px-cat-pill-green {
    display: inline-flex;
    align-items: center;
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: #22C55E;
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--px-radius-full);
    text-decoration: none;
}
.px-cat-pill-green:hover { background: #16A34A; color: #fff; }
.px-hero-title {
    font-family: var(--px-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--px-text);
    line-height: 1.2;
    margin-bottom: var(--px-space-3);
    letter-spacing: -0.03em;
}
.px-hero-title a { color: inherit; text-decoration: none; }
.px-hero-title a:hover { color: var(--px-primary); }
.px-hero-excerpt {
    font-size: var(--px-text-base);
    color: var(--px-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--px-space-4);
}
.px-hero-author-row {
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
}
.px-hero-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--px-border);
}
.px-hero-author-name {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-sm);
    font-weight: 700;
    color: var(--px-text);
    text-decoration: none;
}
.px-hero-author-name:hover { color: var(--px-primary); }
.px-hero-read-time {
    margin-left: auto;
    font-family: var(--px-font-ui);
    font-size: var(--px-text-xs);
    color: var(--px-text-muted);
    display: flex; align-items: center; gap: 4px;
}

/* "See all" row */
.px-section-see-all {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--px-space-5);
}
.px-see-all-link {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-sm);
    font-weight: 700;
    color: #22C55E;
    text-decoration: none;
}
.px-see-all-link:hover { color: #16A34A; text-decoration: underline; }

/* ---- ARTICLE GRID ---- */
.px-article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--px-space-5);
}
@media (min-width: 640px)  { .px-article-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .px-article-grid { grid-template-columns: 1fr 1fr; } }

.px-article-card {
    background: var(--px-bg);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    overflow: hidden;
    transition: transform var(--px-transition), box-shadow var(--px-transition);
    display: flex;
    flex-direction: column;
}
.px-article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--px-shadow-md);
}
.px-article-card-thumb-link { display: block; text-decoration: none; }
.px-article-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--px-bg-tertiary);
    position: relative;
}
.px-article-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.px-article-card:hover .px-article-card-thumb img { transform: scale(1.05); }
.px-article-thumb-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--px-bg-secondary), var(--px-bg-tertiary));
    display: flex; align-items: center; justify-content: center;
}
.px-article-thumb-placeholder i { font-size: 28px; color: var(--px-mid-gray); }

.px-article-card-body { padding: var(--px-space-4); flex: 1; display: flex; flex-direction: column; }
.px-article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--px-space-2);
    flex-wrap: wrap;
    gap: 4px;
}
.px-article-date {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-xs);
    color: var(--px-text-muted);
    font-weight: 600;
}
.px-article-stats {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-xs);
    color: var(--px-text-muted);
}
.px-article-stats i { margin-right: 2px; }
.px-article-title {
    font-family: var(--px-font-heading);
    font-size: var(--px-text-lg);
    font-weight: 700;
    color: var(--px-text);
    line-height: 1.3;
    margin-bottom: var(--px-space-2);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.px-article-title a { color: inherit; text-decoration: none; }
.px-article-title a:hover { color: var(--px-primary); }
.px-article-excerpt {
    font-size: var(--px-text-sm);
    color: var(--px-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--px-space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.px-article-author-row {
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
    padding-top: var(--px-space-3);
    border-top: 1px solid var(--px-border-light);
    margin-top: auto;
}
.px-article-avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.px-article-author {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-xs);
    font-weight: 700;
    color: var(--px-text-secondary);
    text-decoration: none;
}
.px-article-author:hover { color: var(--px-primary); }

/* ---- SIDEBAR PANELS ---- */
.px-homepage-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--px-space-5);
}
@media (min-width: 1024px) {
    .px-homepage-sidebar {
        position: sticky;
        top: calc(52px + 42px + var(--px-space-6));
        max-height: calc(100vh - 52px - 42px - 48px);
        overflow-y: auto;
        align-self: start;
        scrollbar-width: none;
    }
    .px-homepage-sidebar::-webkit-scrollbar { display: none; }
}

.px-sidebar-panel {
    background: var(--px-bg);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    overflow: hidden;
}
.px-sidebar-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--px-space-3) var(--px-space-4);
    border-bottom: 2px solid var(--px-primary);
    background: var(--px-bg-secondary);
}
.px-sidebar-panel-label {
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--px-text);
}
.px-sidebar-see-all {
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 700;
    color: #22C55E;
    text-decoration: none;
}
.px-sidebar-see-all:hover { text-decoration: underline; }

/* News list */
.px-news-list { display: flex; flex-direction: column; }
.px-news-item {
    display: flex;
    align-items: center;
    gap: var(--px-space-3);
    padding: var(--px-space-3) var(--px-space-4);
    border-bottom: 1px solid var(--px-border-light);
    text-decoration: none;
    transition: background var(--px-transition);
}
.px-news-item:last-child { border-bottom: none; }
.px-news-item:hover { background: var(--px-bg-secondary); }
.px-news-info { flex: 1; min-width: 0; }
.px-news-date {
    display: block;
    font-family: var(--px-font-ui);
    font-size: 10px;
    font-weight: 600;
    color: var(--px-text-muted);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.px-news-title {
    font-family: var(--px-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--px-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.px-news-item:hover .px-news-title { color: var(--px-primary); }
.px-news-thumb-wrap {
    width: 52px; height: 40px;
    border-radius: var(--px-radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--px-bg-tertiary);
}
.px-news-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }

.px-sidebar-see-all-btn {
    display: block;
    text-align: center;
    padding: var(--px-space-3);
    font-family: var(--px-font-ui);
    font-size: 12px;
    font-weight: 700;
    color: #22C55E;
    text-decoration: none;
    border-top: 1px solid var(--px-border-light);
}
.px-sidebar-see-all-btn:hover { background: var(--px-bg-secondary); }

/* Latest Updates */
.px-updates-list { display: flex; flex-direction: column; }
.px-update-item {
    display: block;
    padding: var(--px-space-3) var(--px-space-4);
    border-bottom: 1px solid var(--px-border-light);
    text-decoration: none;
    transition: background var(--px-transition);
}
.px-update-item:last-child { border-bottom: none; }
.px-update-item:hover { background: var(--px-bg-secondary); }
.px-update-date {
    font-family: var(--px-font-ui);
    font-size: 10px;
    font-weight: 600;
    color: var(--px-text-muted);
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.px-update-title {
    font-family: var(--px-font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--px-text-secondary);
    line-height: 1.45;
}
.px-update-item:hover .px-update-title { color: var(--px-primary); }

/* Newsletter panel */
.px-newsletter-panel { overflow: hidden; }
.px-nl-inner {
    padding: var(--px-space-5) var(--px-space-4);
    text-align: center;
    background: linear-gradient(135deg, #F0EEFF, #E6E1FF);
}
[data-theme="dark"] .px-nl-inner { background: linear-gradient(135deg,#1e1a3a,#17132e); }
.px-nl-icon { font-size: 28px; color: var(--px-primary); margin-bottom: 8px; }
.px-nl-title {
    font-family: var(--px-font-heading);
    font-size: var(--px-text-base);
    font-weight: 700;
    color: var(--px-text);
    margin-bottom: 6px;
}
.px-nl-desc {
    font-size: 12px;
    color: var(--px-text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}
.px-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.px-newsletter-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--px-border);
    border-radius: var(--px-radius);
    font-size: 13px;
    background: var(--px-bg);
    color: var(--px-text);
    outline: none;
    font-family: inherit;
    text-align: center;
}
.px-newsletter-input:focus { border-color: var(--px-primary); }
.px-newsletter-btn {
    width: 100%;
    padding: 9px;
    background: var(--px-primary);
    color: #fff;
    border: none;
    border-radius: var(--px-radius);
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--px-transition);
}
.px-newsletter-btn:hover { background: var(--px-primary-dark); }

/* Trending rows */
.px-trending-row {
    display: flex;
    align-items: flex-start;
    gap: var(--px-space-3);
    padding: var(--px-space-3) var(--px-space-4);
    border-bottom: 1px solid var(--px-border-light);
    text-decoration: none;
    transition: background var(--px-transition);
}
.px-trending-row:last-child { border-bottom: none; }
.px-trending-row:hover { background: var(--px-bg-secondary); }
.px-trending-num {
    font-family: var(--px-font-heading);
    font-size: var(--px-text-xl);
    font-weight: 800;
    color: var(--px-mid-gray);
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
}
.px-trending-body { flex: 1; min-width: 0; }
.px-trending-title {
    font-family: var(--px-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--px-text);
    line-height: 1.35;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.px-trending-row:hover .px-trending-title { color: var(--px-primary); }
.px-trending-meta {
    font-family: var(--px-font-ui);
    font-size: 10px;
    color: var(--px-text-muted);
}

/* Dark mode adjustments for nav */
[data-theme="dark"] .px-top-bar { background: #0a0a1a; }
[data-theme="dark"] .px-cat-nav-bar { background: var(--px-bg); }

/* =====================================================
   v2.2.0 — TRENDING SECTION (4-box RTL scroll)
   ===================================================== */

/* Helper: format big numbers */
/* (PHP function added to helpers.php) */

/* Section heading with left bar */
.px-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--px-space-4);
    margin-bottom: var(--px-space-5);
}
.px-section-hd-title {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-base);
    font-weight: 800;
    color: var(--px-text);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
    margin: 0;
}
.px-section-hd-bar {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--px-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Scroll arrows */
.px-scroll-arrows {
    display: flex;
    gap: var(--px-space-2);
    flex-shrink: 0;
}
.px-scroll-arrow {
    width: 34px;
    height: 34px;
    border-radius: var(--px-radius);
    border: 1.5px solid var(--px-border);
    background: var(--px-bg);
    color: var(--px-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all var(--px-transition);
}
.px-scroll-arrow:hover {
    background: var(--px-primary);
    border-color: var(--px-primary);
    color: #fff;
}
.px-scroll-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* Trending Section wrapper */
.px-trending-section {
    padding: var(--px-space-8) 0 var(--px-space-4);
    background: var(--px-bg-secondary);
    border-bottom: 1px solid var(--px-border-light);
}

/* Outer clip container */
.px-trending-outer {
    overflow: hidden;   /* clips the track */
    position: relative;
}

/* Scrollable track — 4 cards visible, drag/scroll RTL */
.px-trending-track {
    display: flex;
    gap: var(--px-space-4);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--px-space-2);
    /* RTL-style: latest (first item) on right, scrolls left */
    direction: rtl;
    cursor: grab;
}
.px-trending-track::-webkit-scrollbar { display: none; }
.px-trending-track:active { cursor: grabbing; }

/* Each box — exactly 4 visible */
.px-tr-box {
    direction: ltr; /* reset text for content inside */
    flex: 0 0 calc(25% - 12px);
    min-width: 220px;
    background: var(--px-bg);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    overflow: hidden;
    transition: transform var(--px-transition), box-shadow var(--px-transition);
    display: flex;
    flex-direction: column;
}
.px-tr-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--px-shadow-md);
}

/* Image area (top of box) */
.px-tr-img-link { display: block; text-decoration: none; }
.px-tr-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--px-bg-tertiary);
}
.px-tr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.px-tr-box:hover .px-tr-img { transform: scale(1.06); }
.px-tr-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--px-bg-secondary), var(--px-bg-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
}
.px-tr-img-placeholder i { font-size: 28px; color: var(--px-mid-gray); }

/* Category badge inside image */
.px-tr-cat-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--px-primary);
    color: #fff;
    font-family: var(--px-font-ui);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 9px;
    border-radius: var(--px-radius-full);
    text-decoration: none;
    z-index: 2;
    transition: background var(--px-transition);
}
.px-tr-cat-badge:hover { background: var(--px-primary-dark); color: #fff; }

/* Rank number badge */
.px-tr-rank {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-family: var(--px-font-heading);
    font-size: var(--px-text-xl);
    font-weight: 800;
    width: 34px;
    height: 34px;
    border-radius: var(--px-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    line-height: 1;
}

/* Card body (below image) */
.px-tr-body {
    padding: var(--px-space-3) var(--px-space-4) var(--px-space-4);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--px-space-2);
}

/* Title */
.px-tr-title {
    font-family: var(--px-font-heading);
    font-size: var(--px-text-base);
    font-weight: 700;
    color: var(--px-text);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.px-tr-title a {
    color: inherit;
    text-decoration: none;
}
.px-tr-title a:hover { color: var(--px-primary); }

/* Meta row: author+date left, views right — SAME LINE */
.px-tr-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--px-space-2);
    margin-top: auto;
}
.px-tr-meta-left {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.px-tr-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid var(--px-border);
}
.px-tr-author-name {
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 700;
    color: var(--px-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
    text-decoration: none;
}
.px-tr-author-name:hover { color: var(--px-primary); }
.px-tr-sep {
    color: var(--px-mid-gray);
    font-size: 11px;
    flex-shrink: 0;
}
.px-tr-date {
    font-family: var(--px-font-ui);
    font-size: 10px;
    color: var(--px-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Views count — right aligned */
.px-tr-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 700;
    color: var(--px-text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}
.px-tr-views i { font-size: 11px; color: var(--px-primary); }

/* Responsive: fewer boxes on small screens */
@media (max-width: 1200px) {
    .px-tr-box { flex: 0 0 calc(33.333% - 11px); }
}
@media (max-width: 860px) {
    .px-tr-box { flex: 0 0 calc(50% - 8px); min-width: 200px; }
}
@media (max-width: 540px) {
    .px-tr-box { flex: 0 0 80vw; min-width: 200px; }
}

/* =====================================================
   v2.2.0 — ARTICLE GRID (updated body)
   ===================================================== */
.px-article-card-body {
    padding: var(--px-space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--px-space-2);
}

/* Homepage layout */
.px-homepage-wrap { padding-bottom: var(--px-space-16); }
.px-homepage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--px-space-8);
}
@media (min-width: 1024px) {
    .px-homepage-grid { grid-template-columns: 1fr 300px; }
}
.px-homepage-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--px-space-5);
}
@media (min-width: 1024px) {
    .px-homepage-sidebar {
        position: sticky;
        top: calc(52px + 42px + var(--px-space-6));
        max-height: calc(100vh - 116px);
        overflow-y: auto;
        align-self: start;
        scrollbar-width: none;
    }
    .px-homepage-sidebar::-webkit-scrollbar { display: none; }
}

/* =====================================================
   v2.3.0 — DAILYBEACON HOMEPAGE STYLE
   Clean white, minimal, news-magazine layout
   ===================================================== */

/* ---- RESET DARK TOP BAR — now light header ---- */
#px-header {
    background: var(--px-bg);
    border-bottom: 1px solid var(--px-border);
    position: sticky;
    top: 0;
    z-index: var(--px-z-sticky);
    transition: box-shadow var(--px-transition);
}
#px-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.06); }

.px-header-inner {
    display: flex;
    align-items: center;
    height: 56px;
    gap: var(--px-space-6);
}

/* Logo — two-tone like "DailyBeacon" */
.px-logo a {
    display: flex;
    align-items: baseline;
    gap: 0;
    text-decoration: none;
}
.px-logo-w1 {
    font-family: var(--px-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--px-text);
    letter-spacing: -0.03em;
}
.px-logo-w2 {
    font-family: var(--px-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--px-primary);
    letter-spacing: -0.03em;
}

/* Header nav links */
.px-header-nav {
    display: none;
    align-items: center;
    gap: var(--px-space-1);
    flex: 1;
    justify-content: flex-end;
}
@media (min-width: 900px) { .px-header-nav { display: flex; } }

.px-header-nav-link {
    font-family: var(--px-font-ui);
    font-size: 14px;
    font-weight: 500;
    color: var(--px-text-secondary);
    padding: 5px 10px;
    border-radius: var(--px-radius);
    text-decoration: none;
    transition: all var(--px-transition);
    white-space: nowrap;
}
.px-header-nav-link:hover,
.px-header-nav-link.active {
    color: var(--px-primary);
    background: var(--px-bg-secondary);
}

/* Header actions */
.px-header-actions {
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
    flex-shrink: 0;
}
.px-icon-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--px-radius);
    background: none;
    border: none;
    color: var(--px-text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: all var(--px-transition);
}
.px-icon-btn:hover { background: var(--px-bg-secondary); color: var(--px-primary); }

.px-header-cta {
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--px-primary);
    border: 1.5px solid var(--px-primary);
    padding: 5px 14px;
    border-radius: var(--px-radius-full);
    text-decoration: none;
    transition: all var(--px-transition);
    white-space: nowrap;
}
.px-header-cta:hover { background: var(--px-primary); color: #fff; }

.px-mobile-toggle { display: flex; }
@media (min-width: 900px) { .px-mobile-toggle { display: none; } }

/* Search drop */
.px-search-drop {
    display: none;
    background: var(--px-bg-secondary);
    border-bottom: 1px solid var(--px-border);
    padding: 12px 0;
}
.px-search-drop.active { display: block; }
.px-search-drop .search-form { display: flex; gap: 8px; }
.px-search-drop .px-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--px-border);
    border-radius: var(--px-radius);
    background: var(--px-bg);
    color: var(--px-text);
    font-size: 14px;
    outline: none;
}
.px-search-drop .px-search-input:focus { border-color: var(--px-primary); }
.px-search-drop .px-btn-search {
    padding: 10px 20px;
    background: var(--px-primary);
    color: #fff;
    border: none;
    border-radius: var(--px-radius);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--px-font-ui);
    font-size: 14px;
}

/* Mobile menu */
#px-mobile-menu {
    display: none;
    position: fixed; inset: 0;
    background: var(--px-bg);
    z-index: var(--px-z-modal);
    padding: 24px;
    flex-direction: column;
    overflow-y: auto;
}
#px-mobile-menu.open { display: flex; }
.px-mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px;
}
.px-mobile-logo {
    font-family: var(--px-font-heading);
    font-size: 22px; font-weight: 800;
    color: var(--px-text);
}
.px-mobile-nav a {
    display: block;
    font-size: 22px; font-weight: 700;
    color: var(--px-text);
    padding: 12px 0;
    border-bottom: 1px solid var(--px-border);
    text-decoration: none;
}
.px-mobile-nav a:hover { color: var(--px-primary); }

/* ---- HERO BANNER ---- */
.px-hero-banner {
    text-align: center;
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--px-border-light);
    background: var(--px-bg);
}

.px-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--px-font-ui);
    font-size: 12px;
    font-weight: 600;
    color: #555;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-full);
    padding: 4px 14px;
    margin-bottom: 16px;
}
.px-hero-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--px-primary);
    animation: pxBlink 1.6s ease-in-out infinite;
}
@keyframes pxBlink { 0%,100%{opacity:1} 50%{opacity:.3} }

.px-hero-headline {
    font-family: var(--px-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--px-text);
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    line-height: 1.15;
}
.px-hero-subline {
    font-family: var(--px-font-ui);
    font-size: 15px;
    color: var(--px-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ---- TRENDING CHIPS BAR ---- */
.px-trending-chips-bar {
    border-bottom: 1px solid var(--px-border-light);
    padding: 10px 0;
    background: var(--px-bg);
}
.px-trending-chips-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.px-trending-chips-inner::-webkit-scrollbar { display: none; }
.px-chips-label {
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--px-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.px-topic-chip {
    display: inline-flex;
    align-items: center;
    font-family: var(--px-font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--px-text-secondary);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-full);
    padding: 4px 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--px-transition);
    background: var(--px-bg);
    flex-shrink: 0;
}
.px-topic-chip:hover,
.px-topic-chip.active {
    border-color: var(--px-primary);
    color: var(--px-primary);
    background: #fff5f3;
}
[data-theme="dark"] .px-topic-chip:hover,
[data-theme="dark"] .px-topic-chip.active { background: #2a1510; }

/* ---- PAGE LAYOUT ---- */
.px-db-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--px-space-8);
    padding-top: var(--px-space-8);
    padding-bottom: var(--px-space-16);
}
@media (min-width: 1024px) {
    .px-db-layout { grid-template-columns: 1fr 300px; }
}

/* ---- SECTION HEADINGS ---- */
.px-db-section { margin-bottom: var(--px-space-10); }
.px-db-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--px-space-5);
    padding-bottom: var(--px-space-3);
    border-bottom: 1px solid var(--px-border);
}
.px-db-section-title {
    font-family: var(--px-font-ui);
    font-size: 15px;
    font-weight: 700;
    color: var(--px-text);
    margin: 0;
}
.px-db-see-all {
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--px-primary);
    text-decoration: none;
}
.px-db-see-all:hover { text-decoration: underline; }

/* ---- FEATURED 2-COL ---- */
.px-featured-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--px-space-5);
}
@media (min-width: 640px) {
    .px-featured-2col { grid-template-columns: 1fr 1fr; }
}

/* Featured card */
.px-feat-card {
    background: var(--px-bg);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    overflow: hidden;
    transition: box-shadow var(--px-transition), transform var(--px-transition);
}
.px-feat-card:hover {
    box-shadow: var(--px-shadow-md);
    transform: translateY(-2px);
}

/* Featured image */
.px-feat-img-link { display: block; }
.px-feat-img-wrap {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--px-bg-tertiary);
}
.px-feat-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.px-feat-card:hover .px-feat-img { transform: scale(1.04); }
.px-feat-img-ph {
    width: 100%; height: 100%;
    background: linear-gradient(135deg,var(--px-bg-secondary),var(--px-bg-tertiary));
}

/* Featured card body */
.px-feat-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Category pill */
.px-feat-cat {
    display: inline-flex;
    align-items: center;
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--px-radius-full);
    text-decoration: none;
    align-self: flex-start;
}
.px-feat-cat:hover { opacity: .85; color: #fff; }

/* Featured title */
.px-feat-title {
    font-family: var(--px-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--px-text);
    line-height: 1.3;
    margin: 0;
}
.px-feat-title a { color: inherit; text-decoration: none; }
.px-feat-title a:hover { color: var(--px-primary); }

/* Excerpt */
.px-feat-excerpt {
    font-size: 13px;
    color: var(--px-text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row */
.px-feat-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: var(--px-font-ui);
    font-size: 12px;
    color: var(--px-text-muted);
    margin-top: 2px;
}
.px-feat-meta i { font-size: 11px; }
.px-feat-meta-dot {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--px-mid-gray);
    display: inline-block;
    flex-shrink: 0;
}
.px-feat-read { font-weight: 600; }

/* Trending badge */
.px-trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--px-primary);
    background: #fff5f3;
    border: 1px solid #ffd5cc;
    padding: 2px 8px;
    border-radius: var(--px-radius-full);
}
[data-theme="dark"] .px-trending-badge { background: #2a1510; border-color: #5a2010; }

/* ---- RECENT ARTICLES GRID ---- */
.px-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--px-space-5);
}
@media (max-width: 768px) { .px-recent-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .px-recent-grid { grid-template-columns: 1fr; } }

.px-recent-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}
.px-recent-img-link { display: block; text-decoration: none; }
.px-recent-img-wrap {
    aspect-ratio: 4/3;
    border-radius: var(--px-radius);
    overflow: hidden;
    background: var(--px-bg-tertiary);
}
.px-recent-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.px-recent-card:hover .px-recent-img { transform: scale(1.05); }
.px-recent-img-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--px-bg-secondary);
    color: var(--px-mid-gray);
    font-size: 24px;
}

.px-recent-body { display: flex; flex-direction: column; gap: 5px; }

.px-recent-cat {
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
}
.px-recent-cat:hover { opacity: .7; }

.px-recent-title {
    font-family: var(--px-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--px-text);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.px-recent-title a { color: inherit; text-decoration: none; }
.px-recent-title a:hover { color: var(--px-primary); }

.px-recent-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--px-font-ui);
    font-size: 11px;
    color: var(--px-text-muted);
}

/* ---- SIDEBAR ---- */
.px-db-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--px-space-5);
}
@media (min-width: 1024px) {
    .px-db-sidebar {
        position: sticky;
        top: calc(56px + 16px);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        align-self: start;
        scrollbar-width: none;
    }
    .px-db-sidebar::-webkit-scrollbar { display: none; }
}

.px-db-widget {
    background: var(--px-bg);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    padding: 18px 18px 16px;
}

.px-db-widget-title {
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 800;
    color: var(--px-text);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--px-border-light);
}

/* Popular list */
.px-popular-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: popular;
}
.px-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--px-border-light);
}
.px-popular-item:last-child { border-bottom: none; }
.px-popular-num {
    font-family: var(--px-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--px-border);
    line-height: 1;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}
.px-popular-title {
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--px-text);
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.px-popular-title:hover { color: var(--px-primary); }

/* Topics widget */
.px-topics-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* Daily updates CTA */
.px-daily-widget {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}
.px-daily-hd {
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.px-daily-hd i { color: #f39c12; }
.px-daily-desc {
    font-family: var(--px-font-ui);
    font-size: 13px;
    color: rgba(255,255,255,.75);
    line-height: 1.6;
    margin-bottom: 14px;
}
.px-daily-form { display: flex; flex-direction: column; gap: 8px; }
.px-daily-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--px-radius);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 13px;
    outline: none;
    font-family: var(--px-font-ui);
}
.px-daily-input::placeholder { color: rgba(255,255,255,.5); }
.px-daily-input:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.15); }
.px-daily-btn {
    width: 100%;
    padding: 10px;
    background: var(--px-primary);
    color: #fff;
    border: none;
    border-radius: var(--px-radius);
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--px-transition);
}
.px-daily-btn:hover { background: var(--px-primary-dark); }

/* Newsletter form (sidebar widget) */
.px-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.px-newsletter-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--px-border);
    border-radius: var(--px-radius);
    background: var(--px-bg);
    color: var(--px-text);
    font-size: 13px;
    outline: none;
    font-family: var(--px-font-ui);
    text-align: center;
}
.px-newsletter-input:focus { border-color: var(--px-primary); }
.px-newsletter-btn {
    width: 100%;
    padding: 9px;
    background: var(--px-primary);
    color: #fff;
    border: none;
    border-radius: var(--px-radius);
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--px-transition);
}
.px-newsletter-btn:hover { background: var(--px-primary-dark); }

/* Dark mode adjustments */
[data-theme="dark"] .px-hero-banner { background: var(--px-bg); }
[data-theme="dark"] .px-trending-chips-bar { background: var(--px-bg); }
[data-theme="dark"] .px-hero-badge { border-color: var(--px-border); color: var(--px-text-muted); }

/* Skip link */
.px-skip-link {
    position: absolute; top: -100%; left: 0;
    padding: 10px 16px;
    background: var(--px-primary);
    color: #fff;
    font-family: var(--px-font-ui);
    font-weight: 700;
    z-index: 9999;
    text-decoration: none;
}
.px-skip-link:focus { top: 0; }

/* =====================================================
   v2.3.0 — SINGLE POST + FOOTER + MISC FIXES
   ===================================================== */

/* Single article */
.px-single-article { min-width: 0; }
.px-single-header { margin-bottom: var(--px-space-6); }
.px-single-title {
    font-family: var(--px-font-heading);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--px-text);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 12px 0 16px;
}
.px-single-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.px-single-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--px-border);
}
.px-single-author {
    font-family: var(--px-font-ui);
    font-size: 14px;
    font-weight: 700;
    color: var(--px-text);
    text-decoration: none;
    display: block;
}
.px-single-author:hover { color: var(--px-primary); }
.px-single-meta-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-family: var(--px-font-ui);
    font-size: 12px;
    color: var(--px-text-muted);
    margin-top: 2px;
}
.px-single-meta-sub i { font-size: 11px; }
.px-single-hero {
    border-radius: var(--px-radius-xl);
    overflow: hidden;
    margin-bottom: var(--px-space-8);
    aspect-ratio: 16/9;
    background: var(--px-bg-tertiary);
}
.px-single-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-single-caption {
    text-align: center;
    font-size: 12px;
    color: var(--px-text-muted);
    font-style: italic;
    padding: 8px 0;
}

/* Table of Contents */
#px-toc {
    background: var(--px-bg-secondary);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    padding: var(--px-space-5);
    margin: var(--px-space-8) 0;
}
.px-toc-title {
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 800;
    color: var(--px-text);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    margin-bottom: 12px;
}
#px-toc-list {
    list-style: decimal;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
#px-toc-list a {
    font-family: var(--px-font-ui);
    font-size: 13px;
    color: var(--px-text-secondary);
    text-decoration: none;
    line-height: 1.45;
}
#px-toc-list a:hover { color: var(--px-primary); }

/* Entry content */
.px-entry-content {
    font-size: var(--px-text-lg);
    line-height: 1.8;
    color: var(--px-text-secondary);
}
.px-entry-content > * + * { margin-top: var(--px-space-5); }
.px-entry-content h2 { font-size: var(--px-text-3xl); color: var(--px-text); margin-top: var(--px-space-10); }
.px-entry-content h3 { font-size: var(--px-text-2xl); color: var(--px-text); margin-top: var(--px-space-8); }
.px-entry-content ul { list-style: disc; padding-left: 24px; }
.px-entry-content ol { list-style: decimal; padding-left: 24px; }
.px-entry-content li { margin-bottom: 6px; }
.px-entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.px-entry-content img { border-radius: var(--px-radius); margin: var(--px-space-6) auto; display: block; }
.px-entry-content blockquote {
    border-left: 4px solid var(--px-primary);
    padding: 14px 20px;
    background: var(--px-bg-secondary);
    border-radius: 0 var(--px-radius) var(--px-radius) 0;
    font-style: italic;
    font-size: var(--px-text-lg);
    color: var(--px-text);
    margin: var(--px-space-6) 0;
}

/* Tags */
.px-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: var(--px-space-8) 0;
}
.px-tag {
    font-family: var(--px-font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--px-text-secondary);
    background: var(--px-bg-secondary);
    border: 1px solid var(--px-border);
    padding: 3px 11px;
    border-radius: var(--px-radius-full);
    text-decoration: none;
    transition: all var(--px-transition);
}
.px-tag:hover { background: var(--px-primary); border-color: var(--px-primary); color: #fff; }

/* Author bio */
.px-author-bio {
    display: flex;
    gap: var(--px-space-5);
    background: var(--px-bg-secondary);
    border-radius: var(--px-radius-lg);
    padding: var(--px-space-6);
    border: 1px solid var(--px-border);
    margin: var(--px-space-10) 0;
    align-items: flex-start;
}
.px-author-bio-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.px-author-bio-name {
    font-family: var(--px-font-heading);
    font-size: var(--px-text-xl);
    font-weight: 700;
    margin-bottom: 6px;
}
.px-author-bio-name a { color: var(--px-text); text-decoration: none; }
.px-author-bio-name a:hover { color: var(--px-primary); }
.px-author-bio-desc { font-size: 13px; color: var(--px-text-secondary); line-height: 1.6; }

/* Reading progress */
#px-reading-progress {
    position: fixed; top: 0; left: 0;
    width: 0%; height: 3px;
    background: linear-gradient(90deg, var(--px-primary), var(--px-accent));
    z-index: 9999;
    transition: width .1s linear;
    border-radius: 0 3px 3px 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
#px-footer {
    background: var(--px-secondary);
    color: rgba(255,255,255,.65);
    margin-top: var(--px-space-16);
}
.px-footer-top {
    padding: 56px 0 36px;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--px-space-8);
}
@media (min-width: 640px)  { .px-footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .px-footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.px-footer-logo {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    margin-bottom: 10px;
}
.px-footer-logo .px-logo-w1 { color: #fff; }
.px-footer-logo .px-logo-w2 { color: var(--px-primary); }
.px-footer-desc {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    line-height: 1.7;
    margin: 0;
}
.px-footer-heading {
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #fff;
    margin-bottom: 14px;
}
.px-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.px-footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    text-decoration: none;
    transition: color var(--px-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.px-footer-links a:hover { color: var(--px-primary); }
.px-footer-count { font-size: 11px; opacity: .5; }
.px-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: var(--px-space-5) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--px-space-4);
    font-family: var(--px-font-ui);
    font-size: 12px;
    color: rgba(255,255,255,.35);
}
.px-social-icons { display: flex; gap: 8px; }
.px-social-icon {
    width: 34px; height: 34px;
    border-radius: var(--px-radius);
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.6);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--px-transition);
}
.px-social-icon:hover { background: var(--px-primary); color: #fff; }

/* =====================================================
   PAGINATION
   ===================================================== */
.px-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.px-page-btn {
    min-width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--px-radius);
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--px-text-secondary);
    border: 1px solid var(--px-border);
    background: var(--px-bg);
    text-decoration: none;
    transition: all var(--px-transition);
    padding: 0 8px;
}
.px-page-btn:hover { background: var(--px-bg-secondary); color: var(--px-primary); border-color: var(--px-primary); }
.px-page-btn.active { background: var(--px-primary); color: #fff; border-color: var(--px-primary); }
.px-page-btn a { color: inherit; text-decoration: none; }

/* =====================================================
   TOAST
   ===================================================== */
#px-toast {
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.px-toast-item {
    background: var(--px-charcoal);
    color: #fff;
    padding: 11px 18px;
    border-radius: var(--px-radius);
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--px-shadow-lg);
    animation: pxToastIn .3s ease;
    pointer-events: all;
}
@keyframes pxToastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.px-breadcrumb {
    padding: var(--px-space-3) 0;
    font-family: var(--px-font-ui);
    font-size: 12px;
    color: var(--px-text-muted);
    margin-bottom: var(--px-space-6);
}
.px-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; }
.px-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.px-breadcrumb li:not(:last-child)::after { content: '/'; color: var(--px-mid-gray); }
.px-breadcrumb a { color: var(--px-text-muted); text-decoration: none; }
.px-breadcrumb a:hover { color: var(--px-primary); }
.px-breadcrumb li:last-child { color: var(--px-text-secondary); font-weight: 600; }

/* =====================================================
   SEARCH FORM
   ===================================================== */
.search-form { display: flex; gap: 8px; }
.search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--px-border);
    border-radius: var(--px-radius);
    background: var(--px-bg);
    color: var(--px-text);
    font-size: 14px;
    outline: none;
    font-family: var(--px-font-ui);
}
.search-field:focus { border-color: var(--px-primary); }
.search-submit {
    padding: 10px 20px;
    background: var(--px-primary);
    color: #fff;
    border: none;
    border-radius: var(--px-radius);
    font-family: var(--px-font-ui);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--px-transition);
}
.search-submit:hover { background: var(--px-primary-dark); }

/* =====================================================
   404 PAGE
   ===================================================== */
.px-404-wrap {
    text-align: center;
    padding: 80px var(--px-space-4);
}
.px-404-wrap h1 {
    font-size: 96px;
    font-family: var(--px-font-heading);
    font-weight: 800;
    color: var(--px-primary);
    line-height: 1;
    margin-bottom: 8px;
}

/* Print */
@media print {
    #px-header, #px-footer, .px-db-sidebar, #px-share-float, .px-ad-slot { display: none !important; }
    .px-db-layout { grid-template-columns: 1fr; }
}

/* =====================================================
   v2.5.0 — PROFESSIONAL SINGLE ARTICLE LAYOUT
   ===================================================== */

.px-article-page { background: var(--px-bg); }

/* ---- Article Header (centered) ---- */
.px-article-hd {
    padding: var(--px-space-8) 0 var(--px-space-6);
    border-bottom: 1px solid var(--px-border-light);
}
.px-article-hd-inner {
    max-width: 760px;
    margin: 0 auto;
    padding-inline: var(--px-space-4);
}
.px-article-hd .px-breadcrumb { margin-bottom: var(--px-space-4); padding: 0; }

.px-article-kicker {
    display: inline-block;
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    text-decoration: none;
    margin-bottom: var(--px-space-3);
}
.px-article-kicker:hover { opacity: .75; }

.px-article-title {
    font-family: var(--px-font-heading);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--px-text);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--px-space-4);
}

.px-article-dek {
    font-family: var(--px-font-body);
    font-size: 19px;
    font-style: italic;
    color: var(--px-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--px-space-6);
}

.px-article-byline {
    display: flex;
    align-items: center;
    gap: var(--px-space-3);
    padding-top: var(--px-space-4);
    border-top: 1px solid var(--px-border-light);
}
.px-byline-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.px-byline-info { flex: 1; min-width: 0; }
.px-byline-name {
    font-family: var(--px-font-ui);
    font-size: 14px;
    font-weight: 700;
    color: var(--px-text);
    text-decoration: none;
    display: block;
}
.px-byline-name:hover { color: var(--px-primary); }
.px-byline-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--px-font-ui);
    font-size: 12px;
    color: var(--px-text-muted);
    margin-top: 2px;
}
.px-dot { color: var(--px-mid-gray); }
.px-byline-actions { display: flex; gap: 6px; flex-shrink: 0; }
.px-byline-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--px-border);
    background: var(--px-bg);
    color: var(--px-text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--px-transition);
}
.px-byline-btn:hover { border-color: var(--px-primary); color: var(--px-primary); }
.px-byline-btn.active { background: var(--px-primary); border-color: var(--px-primary); color: #fff; }

/* ---- Hero Image (full-bleed wide) ---- */
.px-article-hero {
    max-width: 1100px;
    margin: var(--px-space-8) auto var(--px-space-10);
    padding-inline: var(--px-space-4);
}
.px-article-hero img {
    width: 100%;
    border-radius: var(--px-radius-lg);
    aspect-ratio: 16/8;
    object-fit: cover;
}
.px-article-caption {
    text-align: center;
    font-size: 13px;
    color: var(--px-text-muted);
    font-style: italic;
    margin-top: var(--px-space-2);
}

/* ---- Body Grid: rail + content ---- */
.px-article-body-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding-inline: var(--px-space-4);
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: var(--px-space-8);
}
@media (max-width: 900px) {
    .px-article-body-grid { grid-template-columns: 1fr; }
    .px-article-rail { display: none; }
}

/* Sticky rail */
.px-article-rail { position: relative; }
.px-rail-inner {
    position: sticky;
    top: calc(56px + var(--px-space-8));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--px-space-3);
}
.px-rail-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 700;
    color: var(--px-text-muted);
}
.px-rail-stat i { font-size: 16px; color: var(--px-text-secondary); margin-bottom: 2px; }
.px-rail-divider { width: 28px; height: 1px; background: var(--px-border); margin: 4px 0; }
.px-rail-share-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--px-bg-secondary);
    border: 1px solid var(--px-border);
    color: var(--px-text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: all var(--px-transition);
}
.px-rail-share-btn:hover { background: var(--px-primary); border-color: var(--px-primary); color: #fff; transform: scale(1.08); }

/* Main column */
.px-article-main-col { max-width: 720px; min-width: 0; }

/* ---- TOC ---- */
#px-toc {
    background: var(--px-bg-secondary);
    border: 1px solid var(--px-border);
    border-left: 4px solid var(--px-primary);
    border-radius: var(--px-radius);
    padding: var(--px-space-5);
    margin-bottom: var(--px-space-8);
}
.px-toc-title {
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 800;
    color: var(--px-text);
    text-transform: uppercase;
    letter-spacing: .05em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 12px;
}
.px-toc-title i { margin-right: 6px; color: var(--px-primary); }
#px-toc-list { list-style: decimal; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
#px-toc-list a {
    font-family: var(--px-font-ui);
    font-size: 14px;
    color: var(--px-text-secondary);
    text-decoration: none;
    line-height: 1.5;
}
#px-toc-list a:hover { color: var(--px-primary); }

/* ---- Entry content (typography-focused) ---- */
.px-entry-content {
    font-family: var(--px-font-body);
    font-size: 19px;
    line-height: 1.85;
    color: var(--px-text);
}
.px-entry-content > * + * { margin-top: var(--px-space-6); }
.px-entry-content h2 {
    font-family: var(--px-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--px-text);
    margin-top: var(--px-space-12);
    letter-spacing: -0.02em;
}
.px-entry-content h3 {
    font-family: var(--px-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--px-text);
    margin-top: var(--px-space-10);
}
.px-entry-content p { color: var(--px-text); }
.px-entry-content ul { list-style: disc; padding-left: 26px; }
.px-entry-content ol { list-style: decimal; padding-left: 26px; }
.px-entry-content li { margin-bottom: 8px; line-height: 1.7; }
.px-entry-content a { color: var(--px-primary); text-decoration: underline; text-underline-offset: 3px; }
.px-entry-content img {
    border-radius: var(--px-radius-lg);
    margin: var(--px-space-8) auto;
    display: block;
    width: 100%;
}
.px-entry-content blockquote {
    border-left: 4px solid var(--px-primary);
    padding: var(--px-space-5) var(--px-space-6);
    background: var(--px-bg-secondary);
    border-radius: 0 var(--px-radius) var(--px-radius) 0;
    font-family: var(--px-font-heading);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--px-text);
    margin: var(--px-space-8) 0;
    line-height: 1.5;
}
.px-entry-content code {
    font-family: var(--px-font-mono);
    font-size: .85em;
    background: var(--px-bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
}
.px-entry-content pre {
    background: var(--px-charcoal);
    color: #f1f1f1;
    padding: var(--px-space-5);
    border-radius: var(--px-radius);
    overflow-x: auto;
    font-size: 14px;
}
.px-entry-content pre code { background: none; padding: 0; }

/* ---- Inline share bar ---- */
.px-inline-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--px-space-3);
    background: var(--px-bg-secondary);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    padding: var(--px-space-4) var(--px-space-5);
    margin: var(--px-space-10) 0;
}
.px-inline-share-label {
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--px-text);
}
.px-inline-share-icons { display: flex; gap: 8px; }
.px-inline-share-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--px-bg);
    border: 1px solid var(--px-border);
    color: var(--px-text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--px-transition);
}
.px-inline-share-btn:hover { background: var(--px-primary); border-color: var(--px-primary); color: #fff; }

/* ---- Post nav ---- */
.px-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--px-space-4);
    margin: var(--px-space-10) 0;
    border-top: 1px solid var(--px-border);
    padding-top: var(--px-space-8);
}
.px-post-nav-link {
    padding: var(--px-space-4);
    background: var(--px-bg-secondary);
    border-radius: var(--px-radius);
    border: 1px solid var(--px-border);
    text-decoration: none;
    display: block;
    transition: all var(--px-transition);
}
.px-post-nav-link:hover { border-color: var(--px-primary); }
.px-post-nav-link.next { text-align: right; }
.px-post-nav-dir {
    font-family: var(--px-font-ui);
    font-size: 11px;
    color: var(--px-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    display: block;
    margin-bottom: 5px;
}
.px-post-nav-title {
    font-family: var(--px-font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--px-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Author bio updated ---- */
.px-author-bio-label {
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 700;
    color: var(--px-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
    margin-bottom: 4px;
}

/* ---- Related Section (full-bleed) ---- */
.px-related-section {
    background: var(--px-bg-secondary);
    padding: var(--px-space-12) 0;
    margin-top: var(--px-space-12);
    border-top: 1px solid var(--px-border-light);
}
.px-related-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding-inline: var(--px-space-4);
}
.px-related-title {
    font-family: var(--px-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--px-text);
    margin-bottom: var(--px-space-6);
}
.px-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--px-space-5);
}
@media (max-width: 768px) { .px-related-grid { grid-template-columns: 1fr; } }

.px-related-card {
    background: var(--px-bg);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    overflow: hidden;
    transition: transform var(--px-transition), box-shadow var(--px-transition);
}
.px-related-card:hover { transform: translateY(-3px); box-shadow: var(--px-shadow-md); }
.px-related-img-link { display: block; }
.px-related-img-wrap { aspect-ratio: 16/10; overflow: hidden; background: var(--px-bg-tertiary); }
.px-related-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.px-related-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--px-mid-gray); font-size: 24px; }
.px-related-body { padding: var(--px-space-4); }
.px-related-cat {
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    display: block;
    margin-bottom: 6px;
}
.px-related-card-title {
    font-family: var(--px-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--px-text);
    line-height: 1.35;
    margin-bottom: 8px;
}
.px-related-card-title a { color: inherit; text-decoration: none; }
.px-related-card-title a:hover { color: var(--px-primary); }
.px-related-meta {
    font-family: var(--px-font-ui);
    font-size: 11px;
    color: var(--px-text-muted);
}
