/**
 * PaperMag Pro — Premium Magazine Theme Stylesheet
 * Version: 1.0.0
 * Author: RSOC Platform Team
 * License: Proprietary
 *
 * Theme prefix: pm-
 * Fonts: Poppins (headings/UI) + Source Serif 4 (body)
 * Primary: #0066FF
 *
 * Table of Contents:
 *  1. Design Tokens
 *  2. Reset & Base
 *  3. Typography
 *  4. Topbar
 *  5. Header & Navigation
 *  6. Hero Split
 *  7. Numbered Trending Card
 *  8. Top Stories Row
 *  9. Standard Card
 * 10. Overlay Card
 * 11. Horizontal Card
 * 12. Text-Only Card
 * 13. What's New Section
 * 14. Dark Section
 * 15. Newsletter / Subscription
 * 16. Discover Grid
 * 17. Latest News
 * 18. Single Post
 * 19. Sidebar
 * 20. Footer
 * 21. 404, Archive, Search
 * 22. Dark Mode
 * 23. Accessibility
 * 24. Print
 * 25. Responsive
 */


/* ==========================================================================
   SECTION 1: Design Tokens (~120 lines)
   ========================================================================== */

:root {
  /* ---- Colors ---- */
  --pm-color-primary: #0066FF;
  --pm-color-primary-dark: #0052CC;
  --pm-color-primary-light: #3388FF;
  --pm-color-primary-rgb: 0, 102, 255;

  --pm-color-black: #000000;
  --pm-color-dark: #111111;
  --pm-color-body: #444444;
  --pm-color-meta: #888888;
  --pm-color-border: #EEEEEE;
  --pm-color-bg: #FFFFFF;
  --pm-color-bg-alt: #F5F5F5;
  --pm-color-bg-dark: #111111;
  --pm-color-bg-footer: #111111;
  --pm-color-bg-topbar: #000000;
  --pm-color-white: #FFFFFF;
  --pm-color-success: #00C853;

  /* Category accent colors */
  --pm-cat-tech: #0066FF;
  --pm-cat-lifestyle: #FF6B35;
  --pm-cat-business: #00C853;
  --pm-cat-fashion: #E91E63;
  --pm-cat-health: #009688;
  --pm-cat-travel: #FF9800;
  --pm-cat-food: #795548;
  --pm-cat-sports: #2196F3;
  --pm-cat-entertainment: #9C27B0;
  --pm-cat-education: #607D8B;

  /* ---- Typography Scale (8 clamp steps) ---- */
  --pm-text-xs: clamp(0.6875rem, 0.65rem + 0.19vw, 0.8125rem);     /* 11-13px */
  --pm-text-sm: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);          /* 12-14px */
  --pm-text-base: clamp(0.9375rem, 0.88rem + 0.28vw, 1.125rem);     /* 15-18px */
  --pm-text-lg: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);       /* 17-21px */
  --pm-text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);           /* 20-28px */
  --pm-text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);              /* 24-36px */
  --pm-text-3xl: clamp(1.75rem, 1.4rem + 1.75vw, 2.75rem);          /* 28-44px */
  --pm-text-4xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);               /* 32-56px */

  /* ---- Font Families ---- */
  --pm-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pm-font-body: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  --pm-font-mono: 'Fira Code', 'Consolas', 'Monaco', monospace;

  /* ---- Spacing Scale ---- */
  --pm-space-2xs: 4px;
  --pm-space-xs: 8px;
  --pm-space-sm: 12px;
  --pm-space-md: 16px;
  --pm-space-lg: 24px;
  --pm-space-xl: 32px;
  --pm-space-2xl: 48px;
  --pm-space-3xl: 64px;
  --pm-space-4xl: 80px;

  /* ---- Shadows (4 tiers) ---- */
  --pm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --pm-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --pm-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --pm-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.14);

  /* ---- Border Radius ---- */
  --pm-radius-none: 0;
  --pm-radius-sm: 2px;
  --pm-radius-md: 4px;
  --pm-radius-lg: 8px;
  --pm-radius-xl: 12px;
  --pm-radius-full: 9999px;

  /* ---- Transitions ---- */
  --pm-transition-fast: 0.15s ease;
  --pm-transition-base: 0.25s ease;
  --pm-transition-slow: 0.4s ease;
  --pm-transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Z-Index Stack ---- */
  --pm-z-base: 1;
  --pm-z-dropdown: 100;
  --pm-z-sticky: 200;
  --pm-z-header: 990;
  --pm-z-drawer: 1000;
  --pm-z-overlay: 1010;
  --pm-z-modal: 1020;
  --pm-z-toast: 1030;
  --pm-z-max: 9999;

  /* ---- Container ---- */
  --pm-container-width: 1280px;
  --pm-container-padding: 20px;
  --pm-content-width: 750px;

  /* ---- Miscellaneous ---- */
  --pm-topbar-height: 44px;
  --pm-header-height: 72px;
}


/* ==========================================================================
   SECTION 2: Reset & Base (~80 lines)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--pm-topbar-height) + var(--pm-header-height) + 20px);
}

body {
  font-family: var(--pm-font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--pm-color-body);
  background-color: var(--pm-color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--pm-transition-fast);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: none;
  border-top: 1px solid var(--pm-color-border);
  margin: var(--pm-space-xl) 0;
}

iframe {
  max-width: 100%;
  border: 0;
}

/* Container */
.pm-container {
  width: 100%;
  max-width: var(--pm-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pm-container-padding);
  padding-right: var(--pm-container-padding);
}


/* ==========================================================================
   SECTION 3: Typography (~100 lines)
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.pm-h1, .pm-h2, .pm-h3, .pm-h4, .pm-h5, .pm-h6 {
  font-family: var(--pm-font-heading);
  color: var(--pm-color-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1, .pm-h1 { font-size: var(--pm-text-4xl); }
h2, .pm-h2 { font-size: var(--pm-text-3xl); }
h3, .pm-h3 { font-size: var(--pm-text-2xl); }
h4, .pm-h4 { font-size: var(--pm-text-xl); }
h5, .pm-h5 { font-size: var(--pm-text-lg); }
h6, .pm-h6 { font-size: var(--pm-text-base); }

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

blockquote {
  border-left: 4px solid var(--pm-color-primary);
  background: var(--pm-color-bg-alt);
  padding: var(--pm-space-lg) var(--pm-space-xl);
  margin: var(--pm-space-xl) 0;
  font-style: italic;
  font-size: var(--pm-text-lg);
  line-height: 1.7;
  color: var(--pm-color-dark);
  position: relative;
}

blockquote p {
  margin-bottom: 0.75em;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  margin-top: var(--pm-space-sm);
  font-size: var(--pm-text-sm);
  font-style: normal;
  color: var(--pm-color-meta);
  font-family: var(--pm-font-heading);
}

pre,
code {
  font-family: var(--pm-font-mono);
  font-size: 0.9em;
}

code {
  background: var(--pm-color-bg-alt);
  padding: 2px 6px;
  border-radius: var(--pm-radius-sm);
  color: var(--pm-color-primary-dark);
}

pre {
  background: var(--pm-color-dark);
  color: #e5e5e5;
  padding: var(--pm-space-lg);
  overflow-x: auto;
  margin: var(--pm-space-xl) 0;
  border-radius: var(--pm-radius-md);
  line-height: 1.6;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.pm-link,
.pm-content a {
  color: var(--pm-color-primary);
  transition: color var(--pm-transition-fast);
}

.pm-link:hover,
.pm-content a:hover {
  color: var(--pm-color-primary-dark);
  text-decoration: underline;
}

/* Lists inside content */
.pm-content ul,
.pm-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.pm-content ul {
  list-style-type: disc;
}

.pm-content ol {
  list-style-type: decimal;
}

.pm-content li {
  margin-bottom: 0.5em;
}

.pm-content li::marker {
  color: var(--pm-color-primary);
}


/* ==========================================================================
   SECTION 4: Topbar (~60 lines)
   ========================================================================== */

.pm-topbar {
  background-color: var(--pm-color-bg-topbar);
  height: var(--pm-topbar-height);
  display: flex;
  align-items: center;
  color: var(--pm-color-white);
  font-family: var(--pm-font-heading);
  font-size: 13px;
  font-weight: 400;
  position: relative;
  z-index: var(--pm-z-header);
}

.pm-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.pm-topbar__links {
  display: flex;
  align-items: center;
  gap: var(--pm-space-md);
}

.pm-topbar__link {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--pm-transition-fast);
  white-space: nowrap;
}

.pm-topbar__link:hover {
  color: var(--pm-color-white);
}

.pm-topbar__social {
  display: flex;
  align-items: center;
  gap: var(--pm-space-sm);
}

.pm-topbar__social-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--pm-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.pm-topbar__social-link:hover {
  color: var(--pm-color-white);
}

.pm-topbar__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* ==========================================================================
   SECTION 5: Header & Navigation (~200 lines)
   ========================================================================== */

.pm-header {
  background-color: var(--pm-color-bg);
  position: sticky;
  top: 0;
  z-index: var(--pm-z-header);
  border-bottom: 1px solid var(--pm-color-border);
  height: var(--pm-header-height);
  transition: box-shadow var(--pm-transition-base);
}

.pm-header--scrolled {
  box-shadow: var(--pm-shadow-md);
}

.pm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--pm-space-lg);
}

/* Logo */
.pm-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.pm-logo__image {
  max-height: 50px;
  width: auto;
}

.pm-logo__text {
  font-family: var(--pm-font-heading);
  font-size: var(--pm-text-xl);
  font-weight: 800;
  color: var(--pm-color-dark);
  letter-spacing: -0.5px;
}

.pm-logo__text:hover {
  color: var(--pm-color-primary);
}

/* Desktop Navigation */
.pm-nav {
  display: flex;
  align-items: center;
  gap: var(--pm-space-xl);
  flex: 1;
  justify-content: center;
}

.pm-nav__list {
  display: flex;
  align-items: center;
  gap: var(--pm-space-xl);
}

.pm-nav__item {
  position: relative;
}

.pm-nav__link {
  font-family: var(--pm-font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--pm-color-dark);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--pm-transition-fast);
  white-space: nowrap;
}

.pm-nav__link:hover,
.pm-nav__link[aria-current="page"] {
  color: var(--pm-color-primary);
}

/* Dropdown submenu */
.pm-nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--pm-color-bg);
  border: 1px solid var(--pm-color-border);
  box-shadow: var(--pm-shadow-lg);
  padding: var(--pm-space-xs) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--pm-transition-base), transform var(--pm-transition-base), visibility var(--pm-transition-base);
  z-index: var(--pm-z-dropdown);
}

.pm-nav__item:hover > .pm-nav__submenu,
.pm-nav__item:focus-within > .pm-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pm-nav__submenu .pm-nav__link {
  padding: 8px 20px;
  font-size: 14px;
  display: block;
}

.pm-nav__submenu .pm-nav__link:hover {
  background: var(--pm-color-bg-alt);
}

/* Nav chevron */
.pm-nav__chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--pm-transition-fast);
}

.pm-nav__item:hover > .pm-nav__link .pm-nav__chevron {
  transform: rotate(180deg);
}

/* Header right controls */
.pm-header__controls {
  display: flex;
  align-items: center;
  gap: var(--pm-space-md);
  flex-shrink: 0;
}

/* Dark mode toggle */
.pm-dark-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pm-font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--pm-color-dark);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--pm-radius-full);
  transition: background-color var(--pm-transition-fast);
  user-select: none;
}

.pm-dark-toggle:hover {
  background-color: var(--pm-color-bg-alt);
}

.pm-dark-toggle__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--pm-color-success);
  flex-shrink: 0;
}

.pm-dark-toggle__label {
  line-height: 1;
}

/* Header search */
.pm-search-input {
  width: 200px;
  background: var(--pm-color-bg-alt);
  border-radius: var(--pm-radius-full);
  padding: 8px 16px 8px 36px;
  font-family: var(--pm-font-heading);
  font-size: 14px;
  border: 1px solid transparent;
  transition: border-color var(--pm-transition-fast), width var(--pm-transition-base);
  color: var(--pm-color-dark);
}

.pm-search-input::placeholder {
  color: var(--pm-color-meta);
}

.pm-search-input:focus {
  border-color: var(--pm-color-primary);
  width: 260px;
}

.pm-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pm-search-wrap__icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--pm-color-meta);
  pointer-events: none;
}

/* Hamburger */
.pm-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
  position: relative;
  z-index: calc(var(--pm-z-drawer) + 1);
}

.pm-hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--pm-color-dark);
  transition: transform var(--pm-transition-base), opacity var(--pm-transition-fast);
  position: absolute;
}

.pm-hamburger__line:nth-child(1) { transform: translateY(-7px); }
.pm-hamburger__line:nth-child(2) { transform: translateY(0); }
.pm-hamburger__line:nth-child(3) { transform: translateY(7px); }

.pm-hamburger[aria-expanded="true"] .pm-hamburger__line:nth-child(1) {
  transform: rotate(45deg) translateY(0);
}

.pm-hamburger[aria-expanded="true"] .pm-hamburger__line:nth-child(2) {
  opacity: 0;
}

.pm-hamburger[aria-expanded="true"] .pm-hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translateY(0);
}

/* Mobile Drawer */
.pm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--pm-color-dark);
  color: var(--pm-color-white);
  z-index: var(--pm-z-drawer);
  transform: translateX(100%);
  transition: transform var(--pm-transition-slow);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--pm-space-3xl) var(--pm-space-lg) var(--pm-space-xl);
}

.pm-drawer--open {
  transform: translateX(0);
}

.pm-drawer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pm-drawer__nav-link {
  display: block;
  padding: 14px 0;
  font-family: var(--pm-font-heading);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--pm-transition-fast);
}

.pm-drawer__nav-link:hover {
  color: var(--pm-color-primary-light);
}

/* Drawer overlay */
.pm-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: calc(var(--pm-z-drawer) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--pm-transition-slow), visibility var(--pm-transition-slow);
}

.pm-drawer-overlay--visible {
  opacity: 1;
  visibility: visible;
}


/* ==========================================================================
   SECTION 6: Hero Split (~200 lines)
   ========================================================================== */

.pm-hero {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--pm-space-lg);
  padding: var(--pm-space-xl) 0;
  min-height: 500px;
}

/* Featured (left panel) */
.pm-hero__featured {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pm-hero__image-wrap {
  position: absolute;
  inset: 0;
}

.pm-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.pm-hero__featured:hover .pm-hero__image {
  transform: scale(1.03);
}

.pm-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 40%, transparent 60%);
  z-index: 1;
}

.pm-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--pm-space-xl) var(--pm-space-xl) var(--pm-space-xl);
  color: var(--pm-color-white);
}

.pm-hero__top-meta {
  display: flex;
  align-items: center;
  gap: var(--pm-space-md);
  margin-bottom: var(--pm-space-sm);
}

.pm-hero__category {
  text-transform: uppercase;
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--pm-color-primary-light);
}

.pm-hero__stats {
  display: flex;
  align-items: center;
  gap: var(--pm-space-sm);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.pm-hero__stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pm-hero__stat svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.pm-hero__title {
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--pm-color-white);
  line-height: 1.25;
  margin-bottom: var(--pm-space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-hero__title a {
  color: inherit;
}

.pm-hero__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pm-hero__author {
  display: flex;
  align-items: center;
  gap: var(--pm-space-sm);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--pm-font-heading);
  font-size: 14px;
}

.pm-hero__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.pm-hero__author-name {
  font-weight: 600;
  color: var(--pm-color-white);
}

.pm-hero__date {
  color: rgba(255, 255, 255, 0.6);
  margin-left: var(--pm-space-xs);
}

/* Right panel — Trending sidebar */
.pm-hero__trending {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-lg);
}

.pm-hero__trending-header {
  padding-bottom: var(--pm-space-sm);
}

.pm-hero__trending-label {
  text-transform: uppercase;
  color: var(--pm-color-meta);
  font-family: var(--pm-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.pm-hero__trending-title {
  font-family: var(--pm-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--pm-color-dark);
  line-height: 1.3;
}

.pm-hero__trending-list {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-lg);
}

/* Hero gradient fallback */
.pm-hero__featured--no-image {
  background: linear-gradient(135deg, var(--pm-color-dark) 0%, var(--pm-color-primary-dark) 100%);
}


/* ==========================================================================
   SECTION 7: Numbered Trending Card (~100 lines)
   ========================================================================== */

.pm-card-numbered {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--pm-space-md);
  align-items: start;
}

.pm-card-numbered__number {
  font-family: var(--pm-font-heading);
  font-size: 16px;
  font-weight: 700;
  background-color: var(--pm-color-primary);
  color: var(--pm-color-white);
  width: 32px;
  height: 32px;
  border-radius: var(--pm-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.pm-card-numbered__body {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--pm-space-sm);
  align-items: center;
}

.pm-card-numbered__thumb-wrap {
  width: 100px;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
}

.pm-card-numbered__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pm-transition-base);
}

.pm-card-numbered:hover .pm-card-numbered__thumb {
  transform: scale(1.05);
}

.pm-card-numbered__info {
  min-width: 0;
}

.pm-card-numbered__category {
  text-transform: uppercase;
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.pm-card-numbered__title {
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  color: var(--pm-color-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.pm-card-numbered__title a {
  color: inherit;
  transition: color var(--pm-transition-fast);
}

.pm-card-numbered__title a:hover {
  color: var(--pm-color-primary);
}

.pm-card-numbered__meta {
  display: flex;
  align-items: center;
  gap: var(--pm-space-sm);
  font-size: 12px;
  color: var(--pm-color-meta);
  font-family: var(--pm-font-heading);
}

.pm-card-numbered__meta svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.pm-card-numbered__stat {
  display: flex;
  align-items: center;
  gap: 3px;
}


/* ==========================================================================
   SECTION 8: Top Stories Row (~120 lines)
   ========================================================================== */

.pm-top-stories {
  padding: var(--pm-space-2xl) 0;
}

.pm-section-header {
  margin-bottom: var(--pm-space-xl);
}

.pm-section-label {
  text-transform: uppercase;
  color: var(--pm-color-meta);
  font-family: var(--pm-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  display: block;
}

.pm-section-title {
  font-family: var(--pm-font-heading);
  font-size: var(--pm-text-2xl);
  font-weight: 700;
  color: var(--pm-color-dark);
  line-height: 1.25;
}

.pm-top-stories__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--pm-space-lg);
}

.pm-top-stories__card {
  display: flex;
  flex-direction: column;
}

.pm-top-stories__image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: var(--pm-space-sm);
}

.pm-top-stories__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pm-transition-base);
}

.pm-top-stories__card:hover .pm-top-stories__image {
  transform: scale(1.05);
}

.pm-top-stories__category {
  text-transform: uppercase;
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.pm-top-stories__title {
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  color: var(--pm-color-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-top-stories__title a {
  color: inherit;
  transition: color var(--pm-transition-fast);
}

.pm-top-stories__title a:hover {
  color: var(--pm-color-primary);
}

.pm-top-stories__meta {
  display: flex;
  align-items: center;
  gap: var(--pm-space-xs);
  font-size: 12px;
  color: var(--pm-color-meta);
  font-family: var(--pm-font-heading);
  margin-top: 6px;
}


/* ==========================================================================
   SECTION 9: Standard Card (~150 lines)
   ========================================================================== */

.pm-card {
  background-color: var(--pm-color-bg);
  overflow: hidden;
  transition: transform var(--pm-transition-base), box-shadow var(--pm-transition-base);
  display: flex;
  flex-direction: column;
}

.pm-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pm-shadow-lg);
}

.pm-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.pm-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pm-transition-slow);
}

.pm-card:hover .pm-card__image {
  transform: scale(1.04);
}

/* SVG gradient fallback for missing images */
.pm-card__image-wrap--fallback {
  background: linear-gradient(135deg, var(--pm-color-primary) 0%, var(--pm-color-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-card__image-wrap--fallback svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  fill: var(--pm-color-white);
}

.pm-card__body {
  padding: var(--pm-space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pm-card__category {
  text-transform: uppercase;
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: inline-block;
}

.pm-card__category a {
  color: inherit;
}

.pm-card__category a:hover {
  text-decoration: underline;
}

.pm-card__title {
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--pm-color-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.pm-card__title a {
  color: inherit;
  transition: color var(--pm-transition-fast);
}

.pm-card__title a:hover {
  color: var(--pm-color-primary);
}

.pm-card__excerpt {
  font-size: 14px;
  color: var(--pm-color-meta);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: var(--pm-space-xs);
}

.pm-card__meta {
  display: flex;
  align-items: center;
  gap: var(--pm-space-sm);
  font-size: 12px;
  color: var(--pm-color-meta);
  font-family: var(--pm-font-heading);
  margin-top: var(--pm-space-sm);
  flex-wrap: wrap;
}

.pm-card__meta-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pm-card__meta-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.pm-card__meta-name {
  font-weight: 500;
  color: var(--pm-color-dark);
}

.pm-card__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--pm-color-meta);
  flex-shrink: 0;
}

.pm-card__meta-date {
  color: var(--pm-color-meta);
}

.pm-card__meta-stat {
  display: flex;
  align-items: center;
  gap: 3px;
}

.pm-card__meta-stat svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}


/* ==========================================================================
   SECTION 10: Overlay Card (~120 lines)
   ========================================================================== */

.pm-card-overlay {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pm-card-overlay--16-10 {
  aspect-ratio: 16 / 10;
}

.pm-card-overlay--4-3 {
  aspect-ratio: 4 / 3;
}

.pm-card-overlay--square {
  aspect-ratio: 1;
}

.pm-card-overlay__image-wrap {
  position: absolute;
  inset: 0;
}

.pm-card-overlay__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pm-transition-slow);
}

.pm-card-overlay:hover .pm-card-overlay__image {
  transform: scale(1.03);
}

.pm-card-overlay__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  z-index: 1;
}

.pm-card-overlay__content {
  position: relative;
  z-index: 2;
  padding: var(--pm-space-lg);
  color: var(--pm-color-white);
}

.pm-card-overlay__category {
  text-transform: uppercase;
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: inline-block;
}

.pm-card-overlay__title {
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: var(--pm-text-xl);
  line-height: 1.3;
  color: var(--pm-color-white);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--pm-space-xs);
}

.pm-card-overlay__title a {
  color: inherit;
}

.pm-card-overlay__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pm-card-overlay__meta {
  display: flex;
  align-items: center;
  gap: var(--pm-space-sm);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--pm-font-heading);
}

.pm-card-overlay__meta-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pm-card-overlay__meta-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.pm-card-overlay__meta-name {
  font-weight: 600;
  color: var(--pm-color-white);
}

.pm-card-overlay__meta-date {
  color: rgba(255, 255, 255, 0.6);
}

/* Gradient fallback when no image */
.pm-card-overlay--no-image {
  background: linear-gradient(135deg, var(--pm-color-dark) 0%, var(--pm-color-primary-dark) 100%);
}


/* ==========================================================================
   SECTION 11: Horizontal Card (~80 lines)
   ========================================================================== */

.pm-card-horizontal {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 0;
  overflow: hidden;
  transition: box-shadow var(--pm-transition-base);
}

.pm-card-horizontal:hover {
  box-shadow: var(--pm-shadow-md);
}

.pm-card-horizontal__image-wrap {
  overflow: hidden;
  aspect-ratio: auto;
}

.pm-card-horizontal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
  transition: transform var(--pm-transition-base);
}

.pm-card-horizontal:hover .pm-card-horizontal__image {
  transform: scale(1.04);
}

.pm-card-horizontal__body {
  padding: var(--pm-space-md) var(--pm-space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pm-card-horizontal__category {
  text-transform: uppercase;
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pm-card-horizontal__title {
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--pm-color-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.pm-card-horizontal__title a {
  color: inherit;
  transition: color var(--pm-transition-fast);
}

.pm-card-horizontal__title a:hover {
  color: var(--pm-color-primary);
}

.pm-card-horizontal__excerpt {
  font-size: 14px;
  color: var(--pm-color-meta);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-card-horizontal__meta {
  display: flex;
  align-items: center;
  gap: var(--pm-space-xs);
  font-size: 12px;
  color: var(--pm-color-meta);
  font-family: var(--pm-font-heading);
  margin-top: var(--pm-space-xs);
}


/* ==========================================================================
   SECTION 12: Text-Only Card (~60 lines)
   ========================================================================== */

.pm-card-text {
  padding: var(--pm-space-md) 0;
  border-bottom: 1px solid var(--pm-color-border);
}

.pm-card-text:last-child {
  border-bottom: none;
}

.pm-card-text__category {
  text-transform: uppercase;
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: inline-block;
}

.pm-card-text__title {
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--pm-color-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.pm-card-text__title a {
  color: inherit;
  transition: color var(--pm-transition-fast);
}

.pm-card-text__title a:hover {
  color: var(--pm-color-primary);
}

.pm-card-text__excerpt {
  font-size: 14px;
  color: var(--pm-color-meta);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.pm-card-text__meta {
  display: flex;
  align-items: center;
  gap: var(--pm-space-xs);
  font-size: 12px;
  color: var(--pm-color-meta);
  font-family: var(--pm-font-heading);
}

.pm-card-text__meta-stat {
  display: flex;
  align-items: center;
  gap: 3px;
}

.pm-card-text__meta-stat svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}


/* ==========================================================================
   SECTION 13: What's New Section (~120 lines)
   ========================================================================== */

.pm-whats-new {
  padding: var(--pm-space-2xl) 0;
  background: var(--pm-color-bg);
}

.pm-whats-new__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--pm-space-xl);
  flex-wrap: wrap;
  gap: var(--pm-space-md);
}

/* Section tabs */
.pm-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.pm-tabs::-webkit-scrollbar {
  display: none;
}

.pm-tab {
  font-family: var(--pm-font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--pm-color-meta);
  padding: 8px 16px;
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  transition: color var(--pm-transition-fast);
  border-bottom: 2px solid transparent;
  position: relative;
}

.pm-tab:hover {
  color: var(--pm-color-dark);
}

.pm-tab--active {
  color: var(--pm-color-primary);
  border-bottom-color: var(--pm-color-primary);
  font-weight: 600;
}

/* Tab panels */
.pm-tab-panel {
  display: none;
}

.pm-tab-panel--active {
  display: block;
}

.pm-whats-new__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pm-space-xl);
}

.pm-whats-new__featured {
  min-height: 400px;
}

.pm-whats-new__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-md);
}

.pm-whats-new__sidebar-heading {
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-sm);
  padding-bottom: var(--pm-space-sm);
  border-bottom: 2px solid var(--pm-color-primary);
}

/* Social widget */
.pm-social-widget {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--pm-space-sm);
}

.pm-social-widget__item {
  display: flex;
  align-items: center;
  gap: var(--pm-space-xs);
  padding: var(--pm-space-sm);
  border-radius: var(--pm-radius-md);
  font-family: var(--pm-font-heading);
  font-size: 13px;
  font-weight: 500;
  transition: opacity var(--pm-transition-fast);
}

.pm-social-widget__item:hover {
  opacity: 0.85;
}

.pm-social-widget__item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.pm-social-widget__item--facebook { background: #1877F2; color: #fff; }
.pm-social-widget__item--twitter { background: #1DA1F2; color: #fff; }
.pm-social-widget__item--linkedin { background: #0A66C2; color: #fff; }
.pm-social-widget__item--instagram { background: #E4405F; color: #fff; }
.pm-social-widget__item--youtube { background: #FF0000; color: #fff; }
.pm-social-widget__item--pinterest { background: #E60023; color: #fff; }


/* ==========================================================================
   SECTION 14: Dark Section (~150 lines)
   ========================================================================== */

.pm-dark-section {
  background-color: var(--pm-color-bg-dark);
  color: var(--pm-color-white);
  padding: var(--pm-space-3xl) 0;
}

.pm-dark-section .pm-section-label {
  color: rgba(255, 255, 255, 0.5);
}

.pm-dark-section .pm-section-title {
  color: var(--pm-color-white);
}

.pm-dark-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: var(--pm-space-xl);
  align-items: start;
}

/* Left column — stacked horizontal cards */
.pm-dark-section__left {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-lg);
}

.pm-dark-section .pm-card-horizontal {
  background: transparent;
}

.pm-dark-section .pm-card-horizontal__body {
  padding: 0 0 0 var(--pm-space-md);
}

.pm-dark-section .pm-card-horizontal__title {
  color: var(--pm-color-white);
  font-size: 15px;
}

.pm-dark-section .pm-card-horizontal__title a:hover {
  color: var(--pm-color-primary-light);
}

.pm-dark-section .pm-card-horizontal__category {
  color: var(--pm-color-primary-light);
}

.pm-dark-section .pm-card-horizontal__meta {
  color: rgba(255, 255, 255, 0.5);
}

/* Center column — large featured */
.pm-dark-section__center {
  min-height: 400px;
}

/* Right column — numbered list */
.pm-dark-section__right {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-lg);
}

.pm-dark-section .pm-card-numbered__title {
  color: var(--pm-color-white);
}

.pm-dark-section .pm-card-numbered__title a:hover {
  color: var(--pm-color-primary-light);
}

.pm-dark-section .pm-card-numbered__category {
  color: var(--pm-color-primary-light);
}

.pm-dark-section .pm-card-numbered__meta {
  color: rgba(255, 255, 255, 0.5);
}

.pm-dark-section .pm-card-text {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pm-dark-section .pm-card-text__title {
  color: var(--pm-color-white);
}

.pm-dark-section .pm-card-text__title a:hover {
  color: var(--pm-color-primary-light);
}

.pm-dark-section .pm-card-text__category {
  color: var(--pm-color-primary-light);
}

.pm-dark-section .pm-card-text__excerpt {
  color: rgba(255, 255, 255, 0.6);
}

.pm-dark-section .pm-card-text__meta {
  color: rgba(255, 255, 255, 0.5);
}

/* Dark section divider */
.pm-dark-section__divider {
  width: 60px;
  height: 3px;
  background: var(--pm-color-primary);
  margin-bottom: var(--pm-space-lg);
}


/* ==========================================================================
   SECTION 15: Newsletter / Subscription (~80 lines)
   ========================================================================== */

.pm-newsletter-section {
  padding: var(--pm-space-2xl) 0;
}

.pm-newsletter-section__grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--pm-space-xl);
  align-items: start;
}

/* Left — featured post with parallax-like style */
.pm-newsletter-section__featured {
  min-height: 360px;
}

/* Right — newsletter form */
.pm-newsletter {
  background: var(--pm-color-bg-alt);
  padding: var(--pm-space-xl);
}

.pm-newsletter__heading {
  font-family: var(--pm-font-heading);
  font-size: var(--pm-text-xl);
  font-weight: 700;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-sm);
}

.pm-newsletter__description {
  font-size: 14px;
  color: var(--pm-color-meta);
  margin-bottom: var(--pm-space-lg);
  line-height: 1.6;
}

.pm-newsletter__form {
  display: flex;
  gap: 0;
}

.pm-newsletter__input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--pm-color-border);
  background: var(--pm-color-bg);
  font-size: 14px;
  font-family: var(--pm-font-heading);
  color: var(--pm-color-dark);
  transition: border-color var(--pm-transition-fast);
}

.pm-newsletter__input::placeholder {
  color: var(--pm-color-meta);
}

.pm-newsletter__input:focus {
  border-color: var(--pm-color-primary);
}

.pm-newsletter__button {
  padding: 12px 24px;
  background-color: var(--pm-color-primary);
  color: var(--pm-color-white);
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color var(--pm-transition-fast);
  white-space: nowrap;
  border: none;
}

.pm-newsletter__button:hover {
  background-color: var(--pm-color-primary-dark);
}

.pm-newsletter__categories {
  margin-top: var(--pm-space-lg);
  padding-top: var(--pm-space-lg);
  border-top: 1px solid var(--pm-color-border);
}

.pm-newsletter__cat-title {
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-sm);
}

.pm-newsletter__cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pm-space-xs);
}

.pm-newsletter__cat-link {
  font-family: var(--pm-font-heading);
  font-size: 13px;
  color: var(--pm-color-meta);
  padding: 4px 12px;
  border: 1px solid var(--pm-color-border);
  transition: all var(--pm-transition-fast);
}

.pm-newsletter__cat-link:hover {
  border-color: var(--pm-color-primary);
  color: var(--pm-color-primary);
}


/* ==========================================================================
   SECTION 16: Discover Grid (~80 lines)
   ========================================================================== */

.pm-discover {
  padding: var(--pm-space-2xl) 0;
}

.pm-discover__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--pm-space-xl);
  flex-wrap: wrap;
  gap: var(--pm-space-md);
}

.pm-discover__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pm-space-lg);
}

.pm-discover__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pm-space-xl);
}

.pm-discover__side-left {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-lg);
}

.pm-discover__side-right {
  min-height: 400px;
}

/* Trending / In Story tabbed widget */
.pm-trending-widget {
  background: var(--pm-color-bg-alt);
  padding: var(--pm-space-lg);
}

.pm-trending-widget__tabs {
  display: flex;
  gap: var(--pm-space-md);
  margin-bottom: var(--pm-space-md);
  border-bottom: 1px solid var(--pm-color-border);
}

.pm-trending-widget__tab {
  font-family: var(--pm-font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--pm-color-meta);
  padding: var(--pm-space-xs) 0;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--pm-transition-fast);
}

.pm-trending-widget__tab--active {
  color: var(--pm-color-primary);
  border-bottom-color: var(--pm-color-primary);
}

.pm-trending-widget__tab:hover {
  color: var(--pm-color-dark);
}


/* ==========================================================================
   SECTION 17: Latest News (~100 lines)
   ========================================================================== */

.pm-latest-news {
  padding: var(--pm-space-2xl) 0;
  border-top: 1px solid var(--pm-color-border);
}

.pm-latest-news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pm-space-xl);
}

/* Left — image cards */
.pm-latest-news__image-cards {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-lg);
}

/* Right — text-only cards */
.pm-latest-news__text-cards {
  display: flex;
  flex-direction: column;
}

/* See More button */
.pm-see-more {
  display: flex;
  justify-content: center;
  margin-top: var(--pm-space-2xl);
}

.pm-see-more__button {
  font-family: var(--pm-font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--pm-color-primary);
  padding: 12px 32px;
  border: 1px solid var(--pm-color-primary);
  background: transparent;
  cursor: pointer;
  transition: all var(--pm-transition-fast);
  letter-spacing: 0.5px;
}

.pm-see-more__button:hover {
  background-color: var(--pm-color-primary);
  color: var(--pm-color-white);
}

/* Pagination (generic) */
.pm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--pm-space-xs);
  margin-top: var(--pm-space-2xl);
  font-family: var(--pm-font-heading);
}

.pm-pagination__link,
.pm-pagination__current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--pm-color-border);
  transition: all var(--pm-transition-fast);
}

.pm-pagination__link:hover {
  border-color: var(--pm-color-primary);
  color: var(--pm-color-primary);
}

.pm-pagination__current {
  background: var(--pm-color-primary);
  color: var(--pm-color-white);
  border-color: var(--pm-color-primary);
}

.pm-pagination__dots {
  font-size: 14px;
  color: var(--pm-color-meta);
  padding: 0 4px;
}

.pm-pagination__prev,
.pm-pagination__next {
  font-weight: 600;
}


/* ==========================================================================
   SECTION 18: Single Post (~300 lines)
   ========================================================================== */

/* Breadcrumbs */
.pm-breadcrumbs {
  padding: var(--pm-space-md) 0;
  font-family: var(--pm-font-heading);
  font-size: 13px;
  color: var(--pm-color-meta);
}

.pm-breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.pm-breadcrumbs__link {
  color: var(--pm-color-meta);
  transition: color var(--pm-transition-fast);
}

.pm-breadcrumbs__link:hover {
  color: var(--pm-color-primary);
}

.pm-breadcrumbs__sep {
  margin: 0 4px;
  color: var(--pm-color-border);
}

.pm-breadcrumbs__current {
  color: var(--pm-color-dark);
  font-weight: 500;
}

/* Article header */
.pm-single {
  padding-bottom: var(--pm-space-2xl);
}

.pm-single__header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto var(--pm-space-xl);
  padding-top: var(--pm-space-lg);
}

.pm-single__category {
  text-transform: uppercase;
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: var(--pm-space-sm);
  display: inline-block;
}

.pm-single__category a {
  color: inherit;
}

.pm-single__category a:hover {
  text-decoration: underline;
}

.pm-single__title {
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: var(--pm-text-3xl);
  line-height: 1.2;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-lg);
}

.pm-single__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--pm-space-md);
  font-family: var(--pm-font-heading);
  font-size: 14px;
  color: var(--pm-color-meta);
  flex-wrap: wrap;
}

.pm-single__meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pm-single__meta-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.pm-single__meta-name {
  font-weight: 600;
  color: var(--pm-color-dark);
}

.pm-single__meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pm-color-meta);
}

.pm-single__reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pm-single__reading-time svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Featured image */
.pm-single__featured-image {
  margin-bottom: var(--pm-space-xl);
  overflow: hidden;
}

.pm-single__featured-image img {
  width: 100%;
  height: auto;
}

.pm-single__featured-caption {
  font-size: 13px;
  color: var(--pm-color-meta);
  text-align: center;
  margin-top: var(--pm-space-xs);
  font-style: italic;
}

/* Article content */
.pm-single__content {
  max-width: var(--pm-content-width);
  margin: 0 auto;
  font-family: var(--pm-font-body);
  font-size: 18px;
  line-height: 1.85;
  color: var(--pm-color-body);
}

.pm-single__content h2 {
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--pm-color-dark);
  line-height: 1.3;
}

.pm-single__content h3 {
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--pm-color-dark);
}

.pm-single__content h4 {
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--pm-color-dark);
}

.pm-single__content p {
  margin-bottom: 1.5em;
}

.pm-single__content img {
  margin: var(--pm-space-xl) 0;
}

.pm-single__content figure {
  margin: var(--pm-space-xl) 0;
}

.pm-single__content figcaption {
  font-size: 13px;
  color: var(--pm-color-meta);
  text-align: center;
  margin-top: var(--pm-space-xs);
  font-style: italic;
}

.pm-single__content ul,
.pm-single__content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.pm-single__content ul {
  list-style-type: disc;
}

.pm-single__content ol {
  list-style-type: decimal;
}

.pm-single__content li {
  margin-bottom: 0.5em;
}

.pm-single__content li::marker {
  color: var(--pm-color-primary);
}

.pm-single__content a {
  color: var(--pm-color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--pm-color-primary-rgb), 0.3);
  transition: text-decoration-color var(--pm-transition-fast);
}

.pm-single__content a:hover {
  text-decoration-color: var(--pm-color-primary);
}

.pm-single__content blockquote {
  border-left: 4px solid var(--pm-color-primary);
  background: var(--pm-color-bg-alt);
  padding: var(--pm-space-lg) var(--pm-space-xl);
  margin: var(--pm-space-xl) 0;
  font-style: italic;
}

.pm-single__content table {
  margin: var(--pm-space-xl) 0;
  border: 1px solid var(--pm-color-border);
}

.pm-single__content th,
.pm-single__content td {
  padding: var(--pm-space-sm) var(--pm-space-md);
  border: 1px solid var(--pm-color-border);
  text-align: left;
  font-size: 15px;
}

.pm-single__content th {
  background: var(--pm-color-bg-alt);
  font-family: var(--pm-font-heading);
  font-weight: 600;
}

/* Share bar */
.pm-share {
  max-width: var(--pm-content-width);
  margin: var(--pm-space-xl) auto;
  display: flex;
  align-items: center;
  gap: var(--pm-space-sm);
  padding: var(--pm-space-md) 0;
  border-top: 1px solid var(--pm-color-border);
  border-bottom: 1px solid var(--pm-color-border);
}

.pm-share__label {
  font-family: var(--pm-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--pm-color-dark);
  margin-right: var(--pm-space-xs);
  white-space: nowrap;
}

.pm-share__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--pm-color-border);
  color: var(--pm-color-meta);
  transition: all var(--pm-transition-fast);
  cursor: pointer;
}

.pm-share__button:hover {
  border-color: var(--pm-color-primary);
  color: var(--pm-color-primary);
  background: rgba(var(--pm-color-primary-rgb), 0.05);
}

.pm-share__button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.pm-share__button--facebook:hover { border-color: #1877F2; color: #1877F2; background: rgba(24, 119, 242, 0.05); }
.pm-share__button--twitter:hover { border-color: #1DA1F2; color: #1DA1F2; background: rgba(29, 161, 242, 0.05); }
.pm-share__button--linkedin:hover { border-color: #0A66C2; color: #0A66C2; background: rgba(10, 102, 194, 0.05); }
.pm-share__button--pinterest:hover { border-color: #E60023; color: #E60023; background: rgba(230, 0, 35, 0.05); }
.pm-share__button--whatsapp:hover { border-color: #25D366; color: #25D366; background: rgba(37, 211, 102, 0.05); }
.pm-share__button--copy:hover { border-color: var(--pm-color-success); color: var(--pm-color-success); }

/* Tags */
.pm-tags {
  max-width: var(--pm-content-width);
  margin: var(--pm-space-lg) auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--pm-space-xs);
}

.pm-tags__label {
  font-family: var(--pm-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--pm-color-dark);
  margin-right: var(--pm-space-xs);
}

.pm-tag {
  font-family: var(--pm-font-heading);
  font-size: 12px;
  color: var(--pm-color-meta);
  padding: 4px 12px;
  border: 1px solid var(--pm-color-border);
  transition: all var(--pm-transition-fast);
}

.pm-tag:hover {
  border-color: var(--pm-color-primary);
  color: var(--pm-color-primary);
}

/* Author bio */
.pm-author-bio {
  max-width: var(--pm-content-width);
  margin: var(--pm-space-2xl) auto;
  padding: var(--pm-space-xl) 0;
  border-top: 1px solid var(--pm-color-border);
  border-bottom: 1px solid var(--pm-color-border);
  display: flex;
  gap: var(--pm-space-lg);
}

.pm-author-bio__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pm-author-bio__info {
  flex: 1;
}

.pm-author-bio__label {
  font-family: var(--pm-font-heading);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--pm-color-meta);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.pm-author-bio__name {
  font-family: var(--pm-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-xs);
}

.pm-author-bio__name a {
  color: inherit;
  transition: color var(--pm-transition-fast);
}

.pm-author-bio__name a:hover {
  color: var(--pm-color-primary);
}

.pm-author-bio__description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--pm-color-meta);
}

.pm-author-bio__social {
  display: flex;
  gap: var(--pm-space-sm);
  margin-top: var(--pm-space-sm);
}

.pm-author-bio__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--pm-color-border);
  color: var(--pm-color-meta);
  transition: all var(--pm-transition-fast);
}

.pm-author-bio__social-link:hover {
  border-color: var(--pm-color-primary);
  color: var(--pm-color-primary);
}

.pm-author-bio__social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Related posts */
.pm-related {
  max-width: var(--pm-container-width);
  margin: var(--pm-space-2xl) auto 0;
  padding: 0 var(--pm-container-padding);
}

.pm-related__heading {
  font-family: var(--pm-font-heading);
  font-size: var(--pm-text-xl);
  font-weight: 700;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-xl);
  padding-bottom: var(--pm-space-sm);
  border-bottom: 2px solid var(--pm-color-primary);
  display: inline-block;
}

.pm-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pm-space-lg);
}

/* Post navigation (prev/next) */
.pm-post-nav {
  max-width: var(--pm-content-width);
  margin: var(--pm-space-2xl) auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pm-space-lg);
}

.pm-post-nav__item {
  padding: var(--pm-space-lg);
  border: 1px solid var(--pm-color-border);
  transition: border-color var(--pm-transition-fast);
}

.pm-post-nav__item:hover {
  border-color: var(--pm-color-primary);
}

.pm-post-nav__label {
  font-family: var(--pm-font-heading);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--pm-color-meta);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.pm-post-nav__title {
  font-family: var(--pm-font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--pm-color-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-post-nav__item--next {
  text-align: right;
}

/* Comments section */
.pm-comments {
  max-width: var(--pm-content-width);
  margin: var(--pm-space-2xl) auto;
}

.pm-comments__heading {
  font-family: var(--pm-font-heading);
  font-size: var(--pm-text-xl);
  font-weight: 700;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-xl);
}

.pm-comments__list {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-lg);
}

.pm-comment {
  display: flex;
  gap: var(--pm-space-md);
}

.pm-comment__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pm-comment__body {
  flex: 1;
}

.pm-comment__header {
  display: flex;
  align-items: baseline;
  gap: var(--pm-space-sm);
  margin-bottom: 6px;
}

.pm-comment__author {
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--pm-color-dark);
}

.pm-comment__date {
  font-size: 13px;
  color: var(--pm-color-meta);
}

.pm-comment__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--pm-color-body);
}

.pm-comment__reply {
  font-family: var(--pm-font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-color-primary);
  margin-top: 6px;
  cursor: pointer;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pm-comment__reply:hover {
  text-decoration: underline;
}

/* Nested comments */
.pm-comment--reply {
  margin-left: var(--pm-space-2xl);
  padding-left: var(--pm-space-lg);
  border-left: 2px solid var(--pm-color-border);
}

/* Comment form */
.pm-comment-form {
  margin-top: var(--pm-space-xl);
  padding-top: var(--pm-space-xl);
  border-top: 1px solid var(--pm-color-border);
}

.pm-comment-form__heading {
  font-family: var(--pm-font-heading);
  font-weight: 700;
  font-size: var(--pm-text-lg);
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-lg);
}

.pm-comment-form__group {
  margin-bottom: var(--pm-space-md);
}

.pm-comment-form__label {
  display: block;
  font-family: var(--pm-font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--pm-color-dark);
  margin-bottom: 6px;
}

.pm-comment-form__input,
.pm-comment-form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--pm-color-border);
  font-size: 15px;
  transition: border-color var(--pm-transition-fast);
  background: var(--pm-color-bg);
}

.pm-comment-form__input:focus,
.pm-comment-form__textarea:focus {
  border-color: var(--pm-color-primary);
}

.pm-comment-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.pm-comment-form__submit {
  padding: 12px 32px;
  background: var(--pm-color-primary);
  color: var(--pm-color-white);
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: background-color var(--pm-transition-fast);
}

.pm-comment-form__submit:hover {
  background-color: var(--pm-color-primary-dark);
}


/* ==========================================================================
   SECTION 19: Sidebar (~80 lines)
   ========================================================================== */

.pm-sidebar {
  position: sticky;
  top: 90px;
}

.pm-widget {
  margin-bottom: var(--pm-space-lg);
  background: var(--pm-color-bg);
}

.pm-widget__title {
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--pm-color-dark);
  padding-bottom: var(--pm-space-xs);
  margin-bottom: var(--pm-space-md);
  border-bottom: 2px solid var(--pm-color-primary);
}

/* Search widget */
.pm-widget-search__form {
  display: flex;
}

.pm-widget-search__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--pm-color-border);
  font-size: 14px;
  background: var(--pm-color-bg-alt);
  transition: border-color var(--pm-transition-fast);
}

.pm-widget-search__input:focus {
  border-color: var(--pm-color-primary);
}

.pm-widget-search__button {
  padding: 10px 16px;
  background: var(--pm-color-primary);
  color: var(--pm-color-white);
  border: none;
  cursor: pointer;
  transition: background var(--pm-transition-fast);
}

.pm-widget-search__button:hover {
  background: var(--pm-color-primary-dark);
}

.pm-widget-search__button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Recent Posts widget */
.pm-widget-posts__list {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-md);
}

.pm-widget-posts__item {
  display: flex;
  gap: var(--pm-space-sm);
  align-items: start;
}

.pm-widget-posts__thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
}

.pm-widget-posts__info {
  min-width: 0;
}

.pm-widget-posts__title {
  font-family: var(--pm-font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pm-color-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-widget-posts__title a {
  color: inherit;
  transition: color var(--pm-transition-fast);
}

.pm-widget-posts__title a:hover {
  color: var(--pm-color-primary);
}

.pm-widget-posts__date {
  font-size: 12px;
  color: var(--pm-color-meta);
  margin-top: 4px;
}

/* Categories widget */
.pm-widget-cats__list {
  display: flex;
  flex-direction: column;
}

.pm-widget-cats__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--pm-color-border);
  font-family: var(--pm-font-heading);
  font-size: 14px;
  color: var(--pm-color-dark);
  transition: color var(--pm-transition-fast);
}

.pm-widget-cats__item:last-child {
  border-bottom: none;
}

.pm-widget-cats__item:hover {
  color: var(--pm-color-primary);
}

.pm-widget-cats__count {
  font-size: 12px;
  color: var(--pm-color-meta);
  background: var(--pm-color-bg-alt);
  padding: 2px 8px;
  border-radius: var(--pm-radius-sm);
}

/* Ad zone widget */
.pm-widget-ad {
  min-height: 250px;
  background: var(--pm-color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pm-font-heading);
  font-size: 12px;
  color: var(--pm-color-meta);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ==========================================================================
   SECTION 20: Footer (~180 lines)
   ========================================================================== */

.pm-footer {
  background-color: var(--pm-color-bg-footer);
  color: var(--pm-color-white);
  padding: var(--pm-space-3xl) 0 0;
}

.pm-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--pm-space-xl);
  padding-bottom: var(--pm-space-2xl);
}

.pm-footer__heading {
  font-family: var(--pm-font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--pm-color-white);
  margin-bottom: var(--pm-space-lg);
  padding-bottom: var(--pm-space-sm);
  position: relative;
}

.pm-footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--pm-color-primary);
}

/* Categories column */
.pm-footer-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pm-space-xs);
}

.pm-footer-cats__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
  transition: color var(--pm-transition-fast);
}

.pm-footer-cats__link:hover {
  color: var(--pm-color-primary-light);
}

/* Newsrooms / links column */
.pm-footer-links__list {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-xs);
}

.pm-footer-links__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
  transition: color var(--pm-transition-fast);
}

.pm-footer-links__link:hover {
  color: var(--pm-color-primary-light);
}

/* Contact column */
.pm-footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--pm-space-sm);
  margin-bottom: var(--pm-space-md);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.pm-footer-contact__icon {
  width: 16px;
  height: 16px;
  fill: var(--pm-color-primary-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.pm-footer-contact__link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--pm-transition-fast);
}

.pm-footer-contact__link:hover {
  color: var(--pm-color-primary-light);
}

/* Most Popular column */
.pm-footer-popular__list {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-md);
}

.pm-footer-popular__item {
  display: flex;
  gap: var(--pm-space-sm);
  align-items: start;
}

.pm-footer-popular__thumb {
  width: 70px;
  height: 55px;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity var(--pm-transition-fast);
}

.pm-footer-popular__item:hover .pm-footer-popular__thumb {
  opacity: 1;
}

.pm-footer-popular__info {
  min-width: 0;
}

.pm-footer-popular__title {
  font-family: var(--pm-font-heading);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--pm-transition-fast);
}

.pm-footer-popular__item:hover .pm-footer-popular__title {
  color: var(--pm-color-primary-light);
}

.pm-footer-popular__date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* Copyright bar */
.pm-copyright {
  background-color: var(--pm-color-black);
  padding: var(--pm-space-md) 0;
  margin-top: var(--pm-space-xl);
}

.pm-copyright__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--pm-space-sm);
}

.pm-copyright__text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--pm-font-heading);
}

.pm-copyright__links {
  display: flex;
  gap: var(--pm-space-md);
}

.pm-copyright__link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--pm-font-heading);
  transition: color var(--pm-transition-fast);
}

.pm-copyright__link:hover {
  color: var(--pm-color-white);
}

.pm-copyright__social {
  display: flex;
  gap: var(--pm-space-sm);
}

.pm-copyright__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--pm-transition-fast);
}

.pm-copyright__social-link:hover {
  color: var(--pm-color-primary-light);
}

.pm-copyright__social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}


/* ==========================================================================
   SECTION 21: 404, Archive, Search (~100 lines)
   ========================================================================== */

/* 404 Page */
.pm-404 {
  text-align: center;
  padding: var(--pm-space-4xl) var(--pm-container-padding);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pm-404__code {
  font-family: var(--pm-font-heading);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--pm-color-primary), var(--pm-color-primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--pm-space-lg);
}

.pm-404__title {
  font-family: var(--pm-font-heading);
  font-size: var(--pm-text-2xl);
  font-weight: 700;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-sm);
}

.pm-404__description {
  font-size: var(--pm-text-base);
  color: var(--pm-color-meta);
  margin-bottom: var(--pm-space-xl);
  max-width: 480px;
}

.pm-404__search {
  display: flex;
  max-width: 400px;
  width: 100%;
  margin-bottom: var(--pm-space-xl);
}

.pm-404__search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--pm-color-border);
  font-size: 15px;
  background: var(--pm-color-bg);
}

.pm-404__search-input:focus {
  border-color: var(--pm-color-primary);
}

.pm-404__search-button {
  padding: 12px 24px;
  background: var(--pm-color-primary);
  color: var(--pm-color-white);
  font-family: var(--pm-font-heading);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.pm-404__suggestions {
  margin-top: var(--pm-space-lg);
}

.pm-404__suggestions-title {
  font-family: var(--pm-font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-md);
}

.pm-404__suggestions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pm-space-lg);
  max-width: 800px;
}

.pm-404__home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pm-font-heading);
  font-weight: 600;
  color: var(--pm-color-primary);
  font-size: 15px;
  margin-top: var(--pm-space-lg);
  transition: color var(--pm-transition-fast);
}

.pm-404__home-link:hover {
  color: var(--pm-color-primary-dark);
  text-decoration: underline;
}

/* Archive page */
.pm-archive {
  padding: var(--pm-space-2xl) 0;
}

.pm-archive__header {
  margin-bottom: var(--pm-space-2xl);
  padding-bottom: var(--pm-space-lg);
  border-bottom: 1px solid var(--pm-color-border);
}

.pm-archive__label {
  font-family: var(--pm-font-heading);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--pm-color-meta);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.pm-archive__title {
  font-family: var(--pm-font-heading);
  font-size: var(--pm-text-3xl);
  font-weight: 700;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-xs);
}

.pm-archive__description {
  font-size: var(--pm-text-base);
  color: var(--pm-color-meta);
  max-width: 600px;
  line-height: 1.7;
}

.pm-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pm-space-lg);
}

.pm-archive__with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--pm-space-xl);
  align-items: start;
}

.pm-archive__main .pm-archive__grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Search results */
.pm-search-results {
  padding: var(--pm-space-2xl) 0;
}

.pm-search-results__header {
  margin-bottom: var(--pm-space-2xl);
}

.pm-search-results__title {
  font-family: var(--pm-font-heading);
  font-size: var(--pm-text-2xl);
  font-weight: 700;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-xs);
}

.pm-search-results__count {
  font-size: 14px;
  color: var(--pm-color-meta);
}

.pm-search-results__list {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-lg);
}

.pm-search-results__empty {
  text-align: center;
  padding: var(--pm-space-3xl) 0;
}

.pm-search-results__empty-title {
  font-family: var(--pm-font-heading);
  font-size: var(--pm-text-xl);
  font-weight: 600;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-sm);
}

.pm-search-results__empty-text {
  color: var(--pm-color-meta);
  margin-bottom: var(--pm-space-lg);
}

/* Page template */
.pm-page {
  padding: var(--pm-space-2xl) 0;
}

.pm-page__title {
  font-family: var(--pm-font-heading);
  font-size: var(--pm-text-3xl);
  font-weight: 700;
  color: var(--pm-color-dark);
  margin-bottom: var(--pm-space-xl);
  text-align: center;
}

.pm-page__content {
  max-width: var(--pm-content-width);
  margin: 0 auto;
  font-family: var(--pm-font-body);
  font-size: 18px;
  line-height: 1.85;
  color: var(--pm-color-body);
}


/* ==========================================================================
   SECTION 22: Dark Mode (~250 lines)
   ========================================================================== */

[data-theme="dark"] {
  --pm-color-bg: #0f0f0f;
  --pm-color-bg-alt: #1a1a1a;
  --pm-color-dark: #e5e5e5;
  --pm-color-body: #c5c5c5;
  --pm-color-meta: #8a8a8a;
  --pm-color-border: #2a2a2a;
  --pm-color-white: #e5e5e5;
  --pm-color-primary: #3388FF;
  --pm-color-primary-dark: #2266DD;
  --pm-color-primary-light: #66AAFF;
  --pm-color-primary-rgb: 51, 136, 255;

  --pm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --pm-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.25);
  --pm-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
  --pm-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* Topbar in dark mode — already dark, stays same */
[data-theme="dark"] .pm-topbar {
  background-color: #000;
}

/* Header dark mode */
[data-theme="dark"] .pm-header {
  background-color: #0f0f0f;
  border-bottom-color: #2a2a2a;
}

[data-theme="dark"] .pm-logo__text {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-nav__link {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-nav__submenu {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

[data-theme="dark"] .pm-nav__submenu .pm-nav__link:hover {
  background: #222;
}

[data-theme="dark"] .pm-dark-toggle {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-dark-toggle:hover {
  background-color: #222;
}

[data-theme="dark"] .pm-search-input {
  background: #1a1a1a;
  color: var(--pm-color-dark);
  border-color: #2a2a2a;
}

[data-theme="dark"] .pm-hamburger__line {
  background-color: var(--pm-color-dark);
}

/* Cards dark mode */
[data-theme="dark"] .pm-card {
  background-color: #1a1a1a;
}

[data-theme="dark"] .pm-card__title a {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-card-horizontal__title a {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-card-text {
  border-bottom-color: #2a2a2a;
}

[data-theme="dark"] .pm-card-text__title a {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-card-numbered__title a {
  color: var(--pm-color-dark);
}

/* Hero dark mode */
[data-theme="dark"] .pm-hero__trending-title {
  color: var(--pm-color-dark);
}

/* Top stories */
[data-theme="dark"] .pm-top-stories__title a {
  color: var(--pm-color-dark);
}

/* Tabs dark mode */
[data-theme="dark"] .pm-tab {
  color: var(--pm-color-meta);
}

[data-theme="dark"] .pm-tab:hover {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-tab--active {
  color: var(--pm-color-primary);
}

/* Section titles */
[data-theme="dark"] .pm-section-title {
  color: var(--pm-color-dark);
}

/* What's New */
[data-theme="dark"] .pm-whats-new {
  background: #0f0f0f;
}

[data-theme="dark"] .pm-whats-new__sidebar-heading {
  color: var(--pm-color-dark);
}

/* Newsletter */
[data-theme="dark"] .pm-newsletter {
  background: #1a1a1a;
}

[data-theme="dark"] .pm-newsletter__heading {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-newsletter__input {
  background: #222;
  border-color: #333;
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-newsletter__cat-link {
  border-color: #333;
  color: var(--pm-color-meta);
}

[data-theme="dark"] .pm-newsletter__cat-link:hover {
  border-color: var(--pm-color-primary);
}

/* Discover */
[data-theme="dark"] .pm-trending-widget {
  background: #1a1a1a;
}

/* Latest news */
[data-theme="dark"] .pm-latest-news {
  border-top-color: #2a2a2a;
}

/* See More button */
[data-theme="dark"] .pm-see-more__button {
  border-color: var(--pm-color-primary);
  color: var(--pm-color-primary);
}

[data-theme="dark"] .pm-see-more__button:hover {
  background: var(--pm-color-primary);
  color: #0f0f0f;
}

/* Pagination */
[data-theme="dark"] .pm-pagination__link {
  border-color: #333;
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-pagination__link:hover {
  border-color: var(--pm-color-primary);
}

/* Single post dark mode */
[data-theme="dark"] .pm-single__title {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-single__content {
  color: var(--pm-color-body);
}

[data-theme="dark"] .pm-single__content h2,
[data-theme="dark"] .pm-single__content h3,
[data-theme="dark"] .pm-single__content h4 {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-single__content blockquote {
  background: #1a1a1a;
  border-left-color: var(--pm-color-primary);
}

[data-theme="dark"] .pm-single__content code {
  background: #1a1a1a;
  color: var(--pm-color-primary-light);
}

[data-theme="dark"] .pm-single__content th {
  background: #1a1a1a;
}

[data-theme="dark"] .pm-single__content td,
[data-theme="dark"] .pm-single__content th {
  border-color: #2a2a2a;
}

/* Share buttons dark mode */
[data-theme="dark"] .pm-share {
  border-color: #2a2a2a;
}

[data-theme="dark"] .pm-share__button {
  border-color: #333;
  color: var(--pm-color-meta);
}

/* Tags dark mode */
[data-theme="dark"] .pm-tag {
  border-color: #333;
  color: var(--pm-color-meta);
}

[data-theme="dark"] .pm-tag:hover {
  border-color: var(--pm-color-primary);
  color: var(--pm-color-primary);
}

/* Author bio dark mode */
[data-theme="dark"] .pm-author-bio {
  border-color: #2a2a2a;
}

[data-theme="dark"] .pm-author-bio__name {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-author-bio__social-link {
  border-color: #333;
}

/* Post nav dark mode */
[data-theme="dark"] .pm-post-nav__item {
  border-color: #2a2a2a;
}

[data-theme="dark"] .pm-post-nav__item:hover {
  border-color: var(--pm-color-primary);
}

[data-theme="dark"] .pm-post-nav__title {
  color: var(--pm-color-dark);
}

/* Comments dark mode */
[data-theme="dark"] .pm-comment__author {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-comment-form__input,
[data-theme="dark"] .pm-comment-form__textarea {
  background: #1a1a1a;
  border-color: #333;
  color: var(--pm-color-dark);
}

/* Sidebar dark mode */
[data-theme="dark"] .pm-widget__title {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-widget-search__input {
  background: #1a1a1a;
  border-color: #333;
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-widget-posts__title a {
  color: var(--pm-color-dark);
}

[data-theme="dark"] .pm-widget-cats__item {
  color: var(--pm-color-dark);
  border-bottom-color: #2a2a2a;
}

[data-theme="dark"] .pm-widget-cats__count {
  background: #222;
}

[data-theme="dark"] .pm-widget-ad {
  background: #1a1a1a;
}

/* Breadcrumbs dark mode */
[data-theme="dark"] .pm-breadcrumbs__current {
  color: var(--pm-color-dark);
}

/* 404 dark mode */
[data-theme="dark"] .pm-404__search-input {
  background: #1a1a1a;
  border-color: #333;
  color: var(--pm-color-dark);
}

/* Archive dark mode */
[data-theme="dark"] .pm-archive__header {
  border-bottom-color: #2a2a2a;
}

/* Page dark mode */
[data-theme="dark"] .pm-page__content {
  color: var(--pm-color-body);
}

/* Footer stays dark — no changes needed */
/* Dark section stays dark — no changes needed */


/* ==========================================================================
   SECTION 23: Accessibility (~80 lines)
   ========================================================================== */

/* Skip link */
.pm-skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--pm-z-max);
  background: var(--pm-color-primary);
  color: var(--pm-color-white);
  padding: 12px 24px;
  font-family: var(--pm-font-heading);
  font-weight: 600;
  font-size: 14px;
  transition: top var(--pm-transition-fast);
}

.pm-skip-link:focus {
  top: 8px;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--pm-color-primary);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Screen reader only text */
.screen-reader-text,
.pm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.pm-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .pm-hero__image {
    transition: none !important;
  }

  .pm-card:hover {
    transform: none;
  }

  .pm-card__image,
  .pm-card-overlay__image,
  .pm-card-horizontal__image,
  .pm-card-numbered__thumb,
  .pm-top-stories__image {
    transition: none !important;
  }
}

/* High contrast */
@media (prefers-contrast: high) {
  :root {
    --pm-color-border: #666;
    --pm-color-meta: #555;
    --pm-shadow-sm: 0 0 0 1px #333;
    --pm-shadow-md: 0 0 0 1px #333;
  }

  .pm-card {
    border: 2px solid var(--pm-color-border);
  }

  .pm-card-text {
    border-bottom-width: 2px;
  }

  .pm-tab--active {
    border-bottom-width: 3px;
  }
}

/* Minimum touch target */
.pm-topbar__social-link,
.pm-share__button,
.pm-hamburger,
.pm-dark-toggle,
.pm-copyright__social-link,
.pm-author-bio__social-link,
.pm-pagination__link,
.pm-pagination__current {
  min-width: 44px;
  min-height: 44px;
}


/* ==========================================================================
   SECTION 24: Print (~40 lines)
   ========================================================================== */

@media print {
  .pm-topbar,
  .pm-header,
  .pm-footer,
  .pm-sidebar,
  .pm-drawer,
  .pm-drawer-overlay,
  .pm-share,
  .pm-tags,
  .pm-related,
  .pm-post-nav,
  .pm-comments,
  .pm-comment-form,
  .pm-newsletter,
  .pm-see-more,
  .pm-pagination,
  .pm-widget-ad,
  .pm-breadcrumbs,
  .pm-hamburger,
  .pm-skip-link {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
    background: #fff;
  }

  .pm-single__content {
    max-width: 100%;
  }

  .pm-single__content a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
    font-style: italic;
  }

  .pm-single__content a[href^="#"]::after,
  .pm-single__content a[href^="javascript"]::after {
    content: "";
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  .pm-single__header {
    text-align: left;
  }
}


/* ==========================================================================
   SECTION 25: Responsive (~350 lines)
   ========================================================================== */

/* ---- 1440px — Large desktop ---- */
@media (max-width: 1440px) {
  :root {
    --pm-container-width: 1200px;
  }
}

/* ---- 1200px — Standard desktop ---- */
@media (max-width: 1200px) {
  :root {
    --pm-container-width: 1080px;
  }

  .pm-top-stories__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pm-dark-section__grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--pm-space-lg);
  }

  .pm-dark-section__right {
    display: none;
  }

  .pm-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--pm-space-xl);
  }
}

/* ---- 1024px — Tablet landscape / mobile nav breakpoint ---- */
@media (max-width: 1024px) {
  :root {
    --pm-container-padding: 20px;
  }

  /* Nav → hamburger */
  .pm-nav {
    display: none;
  }

  .pm-hamburger {
    display: flex;
  }

  .pm-search-input {
    width: 160px;
  }

  .pm-search-input:focus {
    width: 200px;
  }

  /* Hero */
  .pm-hero {
    grid-template-columns: 55% 45%;
    min-height: 420px;
  }

  /* Top stories */
  .pm-top-stories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Dark section */
  .pm-dark-section__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Newsletter */
  .pm-newsletter-section__grid {
    grid-template-columns: 1fr;
    gap: var(--pm-space-lg);
  }

  /* Discover */
  .pm-discover__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-discover__side {
    grid-template-columns: 1fr;
  }

  /* Latest news */
  .pm-latest-news__grid {
    grid-template-columns: 1fr;
    gap: var(--pm-space-lg);
  }

  /* Related posts */
  .pm-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Archive with sidebar */
  .pm-archive__with-sidebar {
    grid-template-columns: 1fr;
  }

  .pm-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--pm-space-lg);
  }

  /* 404 */
  .pm-404__suggestions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- 768px — Tablet portrait ---- */
@media (max-width: 768px) {
  :root {
    --pm-container-padding: 16px;
    --pm-header-height: 64px;
  }

  /* Topbar */
  .pm-topbar__links {
    display: none;
  }

  .pm-topbar__social {
    margin-left: auto;
  }

  /* Header */
  .pm-header__controls {
    gap: var(--pm-space-xs);
  }

  .pm-search-wrap {
    display: none;
  }

  /* Hero → stack */
  .pm-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pm-hero__featured {
    min-height: 350px;
  }

  .pm-hero__trending {
    gap: var(--pm-space-md);
  }

  .pm-hero__title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  /* Top stories */
  .pm-top-stories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--pm-space-md);
  }

  /* What's New */
  .pm-whats-new__content {
    grid-template-columns: 1fr;
  }

  .pm-whats-new__featured {
    min-height: 280px;
  }

  /* Dark section */
  .pm-dark-section__grid {
    grid-template-columns: 1fr;
  }

  .pm-dark-section__left {
    order: 2;
  }

  .pm-dark-section__center {
    order: 1;
    min-height: 300px;
  }

  /* Discover */
  .pm-discover__grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .pm-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--pm-space-xl);
  }

  .pm-copyright__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--pm-space-sm);
  }

  /* Single post */
  .pm-single__header {
    text-align: left;
  }

  .pm-single__meta {
    justify-content: flex-start;
  }

  .pm-related__grid {
    grid-template-columns: 1fr;
  }

  .pm-post-nav {
    grid-template-columns: 1fr;
  }

  .pm-post-nav__item--next {
    text-align: left;
  }

  /* Author bio */
  .pm-author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pm-author-bio__social {
    justify-content: center;
  }

  /* Sidebar single column */
  .pm-sidebar {
    grid-template-columns: 1fr;
  }

  /* Archive */
  .pm-archive__grid {
    grid-template-columns: 1fr;
  }

  .pm-archive__main .pm-archive__grid {
    grid-template-columns: 1fr;
  }

  /* 404 */
  .pm-404__suggestions-grid {
    grid-template-columns: 1fr;
  }

  /* Horizontal card → stack */
  .pm-card-horizontal {
    grid-template-columns: 1fr;
  }

  .pm-card-horizontal__image-wrap {
    aspect-ratio: 16 / 9;
  }

  /* Numbered card body */
  .pm-card-numbered__body {
    grid-template-columns: 80px 1fr;
  }

  .pm-card-numbered__thumb-wrap {
    width: 80px;
    height: 64px;
  }
}

/* ---- 480px — Small phone ---- */
@media (max-width: 480px) {
  :root {
    --pm-container-padding: 12px;
    --pm-topbar-height: 36px;
    --pm-header-height: 56px;
  }

  .pm-topbar {
    font-size: 12px;
  }

  .pm-logo__image {
    max-height: 36px;
  }

  .pm-logo__text {
    font-size: var(--pm-text-lg);
  }

  /* Hero */
  .pm-hero__featured {
    min-height: 280px;
  }

  .pm-hero__content {
    padding: var(--pm-space-md);
  }

  .pm-hero__category {
    font-size: 11px;
  }

  .pm-hero__title {
    font-size: 1.25rem;
    -webkit-line-clamp: 2;
  }

  .pm-hero__author {
    font-size: 12px;
  }

  .pm-hero__avatar {
    width: 32px;
    height: 32px;
  }

  /* Top stories — single column */
  .pm-top-stories__grid {
    grid-template-columns: 1fr;
    gap: var(--pm-space-md);
  }

  .pm-top-stories__image-wrap {
    aspect-ratio: 16 / 9;
  }

  /* Cards */
  .pm-card__body {
    padding: var(--pm-space-sm);
  }

  .pm-card__title {
    font-size: 15px;
  }

  /* Overlay card */
  .pm-card-overlay__title {
    font-size: var(--pm-text-lg);
  }

  .pm-card-overlay__content {
    padding: var(--pm-space-md);
  }

  /* Section headers */
  .pm-section-title {
    font-size: var(--pm-text-xl);
  }

  /* Tabs */
  .pm-tab {
    font-size: 13px;
    padding: 6px 12px;
  }

  /* Newsletter */
  .pm-newsletter {
    padding: var(--pm-space-md);
  }

  .pm-newsletter__form {
    flex-direction: column;
    gap: var(--pm-space-xs);
  }

  .pm-newsletter__button {
    width: 100%;
    text-align: center;
  }

  /* Dark section */
  .pm-dark-section {
    padding: var(--pm-space-2xl) 0;
  }

  /* Share */
  .pm-share {
    flex-wrap: wrap;
  }

  .pm-share__button {
    width: 32px;
    height: 32px;
  }

  .pm-share__button svg {
    width: 14px;
    height: 14px;
  }

  /* Breadcrumbs */
  .pm-breadcrumbs {
    font-size: 12px;
  }

  /* Single */
  .pm-single__title {
    font-size: var(--pm-text-2xl);
  }

  .pm-single__meta {
    font-size: 13px;
  }

  .pm-single__meta-avatar {
    width: 36px;
    height: 36px;
  }

  .pm-single__content {
    font-size: 16px;
    line-height: 1.75;
  }

  .pm-single__content h2 {
    font-size: 1.375rem;
  }

  .pm-single__content h3 {
    font-size: 1.125rem;
  }

  /* Footer */
  .pm-footer {
    padding-top: var(--pm-space-2xl);
  }

  .pm-footer-cats {
    grid-template-columns: 1fr;
  }

  /* Pagination */
  .pm-pagination__link,
  .pm-pagination__current {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* Comment nested */
  .pm-comment--reply {
    margin-left: var(--pm-space-md);
    padding-left: var(--pm-space-md);
  }

  /* 404 */
  .pm-404__code {
    font-size: clamp(4rem, 20vw, 8rem);
  }
}

/* ---- 375px — Minimum supported viewport ---- */
@media (max-width: 375px) {
  :root {
    --pm-container-padding: 10px;
  }

  .pm-hero__featured {
    min-height: 240px;
  }

  .pm-hero__title {
    font-size: 1.125rem;
  }

  .pm-card__title {
    font-size: 14px;
  }

  .pm-section-title {
    font-size: var(--pm-text-lg);
  }

  .pm-single__title {
    font-size: var(--pm-text-xl);
  }

  .pm-single__content {
    font-size: 15px;
  }

  .pm-whats-new__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pm-discover__header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Numbered card compact */
  .pm-card-numbered {
    gap: var(--pm-space-xs);
  }

  .pm-card-numbered__number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .pm-card-numbered__body {
    grid-template-columns: 70px 1fr;
  }

  .pm-card-numbered__thumb-wrap {
    width: 70px;
    height: 56px;
  }

  .pm-card-numbered__title {
    font-size: 14px;
  }

  /* Footer contact */
  .pm-footer-contact__item {
    font-size: 13px;
  }

  /* Copyright */
  .pm-copyright__text {
    font-size: 12px;
  }

  .pm-copyright__link {
    font-size: 12px;
  }
}


/* ==========================================================================
   END OF PAPERMAG PRO STYLESHEET
   ========================================================================== */
