/*
Theme Name: EnjoyNow (MCPack)
Theme URI: https://mcpack.ru
Author: MCPack / Business Origami
Description: MCPack.ru — скачать Minecraft PE (Bedrock) APK. Каталог версий для Android.
Version: 6.2.4-mcpack
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: enjoynow
*/

/* ==========================================================================
   0. DESIGN TOKENS — single source of truth
   MCPack — soft surfaces + emerald accent (no purple wash)
   ========================================================================== */
:root {
  /* Surfaces */
  --bg: #f4f4f8;
  --surface: #ffffff;
  --surface-2: #f0f0f5;
  --surface-3: #e8e8ef;

  /* Text */
  --text: #14141f;
  --text-2: #3d3d4f;
  --text-3: #5c5c70;

  /* Borders */
  --border: #e6e6ef;
  --border-2: #d4d4e0;

  /* Accent — emerald (WCAG AA on white text) */
  --accent: #0a7a54;
  --accent-hover: #086644;
  --accent-soft: #e8faf3;
  --accent-text: #0a7a54;

  --danger: #e11d48;
  --danger-soft: #fff1f2;
  --warn: #d97706;
  --warn-soft: #fffbeb;

  /* Radius — one family */
  --r-xs: 6px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(20, 20, 31, .04);
  --shadow-sm: 0 1px 3px rgba(20, 20, 31, .05), 0 4px 12px rgba(20, 20, 31, .04);
  --shadow: 0 2px 8px rgba(20, 20, 31, .06), 0 8px 24px rgba(20, 20, 31, .05);
  --shadow-lg: 0 8px 30px rgba(20, 20, 31, .1);

  /* Layout */
  --header-h: 58px;
  --container: 1140px;
  --sidebar: 300px;
  --gap: 1.25rem;
  --gap-sm: .75rem;

  /* Type */
  --font: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: 160ms cubic-bezier(.2, .7, .2, 1);

  /* Catalog soft tints (home icons) — real hues, not purple clones */
  --t-blue: #e0ecff;
  --t-green: #dcf5ea;
  --t-orange: #ffe8d6;
  --t-purple: #eee8ff;
  --t-pink: #ffe4ef;
  --t-yellow: #fff3c4;
  --t-cyan: #d9f5f8;
  --t-gray: #eef0f5;
  --t-red: #ffe8eb;

  color-scheme: light;
}

/* Back-compat aliases */
:root {
  --bg-elevated: var(--surface);
  --bg-muted: var(--surface-2);
  --bg-soft: var(--surface-2);
  --bg-chip: var(--surface-2);
  --text-secondary: var(--text-2);
  --text-muted: var(--text-3);
  --border-strong: var(--border-2);
  --link: var(--text);
  --link-hover: var(--accent);
  --radius-sm: var(--r-sm);
  --radius: var(--r);
  --radius-lg: var(--r-lg);
  --radius-pill: var(--r-full);
  --shadow-sm: var(--shadow-xs);
  --shadow-lg: var(--shadow);
  --hero-grad: linear-gradient(160deg, #14141f 0%, #1a2e26 55%, #0a7a54 100%);
  --pastel-green: var(--t-green);
  --pastel-mint: var(--t-green);
  --pastel-pink: var(--t-pink);
  --pastel-blue: var(--t-blue);
  --pastel-yellow: var(--t-yellow);
  --pastel-lilac: var(--t-purple);
  --success: var(--accent);
  --h-blue: 214, 90%, 56%;
  --h-green: 152, 70%, 32%;
  --h-orange: 24, 95%, 55%;
  --h-purple: 268, 55%, 55%;
  --h-pink: 340, 90%, 58%;
  --h-yellow: 42, 95%, 48%;
  --h-gray: 230, 10%, 45%;
  --h-cyan: 190, 80%, 42%;
  --h-red: 350, 85%, 55%;
}


/* Hide scrollbars on intentional h-scroll rails */
.pm-hscroll-hide-bar,
[data-pm-hscroll],
#horizont-menu,
.viewport-clip,
.pm-related-scroll,
.pm-related-grid,
.pm-subcats,
.pm-featured-track {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.pm-hscroll-hide-bar::-webkit-scrollbar,
[data-pm-hscroll]::-webkit-scrollbar,
#horizont-menu::-webkit-scrollbar,
.viewport-clip::-webkit-scrollbar,
.pm-related-scroll::-webkit-scrollbar,
.pm-related-grid::-webkit-scrollbar,
.pm-subcats::-webkit-scrollbar,
.pm-featured-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ==========================================================================
   1. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
#page.site { overflow: visible; }
#content.site-content { position: relative; z-index: 1; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent); }
a:visited { color: inherit; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--text);
}
p { margin: 0 0 1em; color: var(--text-2); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
table { width: 100%; border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1rem;
  overflow: auto;
}
blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text-2);
}
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.clear::after { content: ""; display: table; clear: both; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

/* ---------- Shared buttons (never bare `button`) ---------- */
.pm-btn,
.btn,
input[type="submit"],
input[type="button"],
.pm-side-btn,
.read-more-btn,
.pm-search-submit,
.comment-form input[type="submit"],
.pm-btn-primary,
.pm-header-cta,
.pm-cta-premium-btn,
.pm-download-btn,
.enjoynow-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 40px;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--text);
  color: #fff !important;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: var(--shadow-xs);
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
}
.pm-btn:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.pm-side-btn:hover,
.read-more-btn:hover,
.pm-search-submit:hover,
.pm-header-cta:hover,
.pm-cta-premium-btn:hover,
.pm-download-btn:hover {
  background: #2a2a3a !important;
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.pm-btn-outline,
.pm-side-btn--ghost {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none;
}
.pm-btn-outline:hover,
.pm-side-btn--ghost:hover {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-color: var(--border-2) !important;
}
.pm-btn-accent {
  background: var(--accent) !important;
  color: #fff !important;
}
.pm-btn-accent:hover {
  background: var(--accent-hover) !important;
}

/* ==========================================================================
   2. LAYOUT
   ========================================================================== */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
#page.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#content.site-content {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 1.5rem 0 3.5rem;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  min-width: 0;
  max-width: min(100% - 2rem, 1100px);
}
body.single #content.site-content {
  padding-top: 1.35rem;
}
body.single #primary,
body.single .site-main {
  min-width: 0;
  width: 100%;
}
#primary, #main, .site-main {
  min-width: 0;
  width: 100%;
}
#content.site-content.is_full_width,
#content.site-content.has-sidebar,
body.page-template-page-nav #content.site-content,
body.home.page #content.site-content {
  grid-template-columns: 1fr;
  max-width: min(100% - 2rem, 1100px);
}
#primary { min-width: 0; }
/* Sidebar removed */
#secondary,
.pm-sidebar,
aside.sidebar,
aside.widget-area {
  display: none !important;
}

/* Hide legacy chrome */
.site-header:not(.pm-header),
.menu_box, .menu-modal, .search_form, .search_toogle, .header-toggles,
.header-space, #site-bottom, .foott, .footer-columns {
  display: none !important;
}

/* ==========================================================================
   3. HEADER / NAV / MEGA / SEARCH / DRAWER
   ========================================================================== */
.pm-header {
  position: sticky;
  top: 0;
  z-index: 50000;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
  isolation: isolate;
}
.pm-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(20, 20, 31, .05);
}
.pm-header-bar {
  width: min(100% - 1.25rem, var(--container));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: .5rem;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.pm-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  position: relative;
  z-index: 2;
}
.pm-logo img, .pm-logo-img { height: 26px; width: auto; display: block; }

/* Desktop nav — overflow visible so mega is never clipped */
.pm-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 5;
}
.pm-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-height: var(--header-h);
  overflow: visible;
  justify-content: flex-start;
}
.pm-nav-item {
  position: relative;
  list-style: none;
  margin: 0;
  flex: 0 0 auto;
}
.pm-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .5rem;
  border-radius: 8px;
  color: var(--text-2) !important;
  font-size: .8125rem;
  font-weight: 550;
  letter-spacing: -.01em;
  text-decoration: none !important;
  white-space: nowrap;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1.25;
  transition: background var(--ease), color var(--ease);
}
.pm-nav-link:hover {
  background: var(--surface-2);
  color: var(--text) !important;
}
.pm-nav-item.is-active > .pm-nav-link {
  color: var(--text) !important;
  background: var(--surface-2);
  font-weight: 600;
}
.pm-nav-item--mega.is-open > .pm-nav-link {
  background: var(--surface-2);
  color: var(--text) !important;
}
.pm-nav-caret {
  opacity: .45;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform var(--ease);
}
.pm-nav-item--mega.is-open > .pm-nav-link .pm-nav-caret {
  transform: rotate(180deg);
}

/* Mega dropdown — CSS hover + JS is-open, no dead gap */
.pm-mega {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 340px;
  max-width: min(560px, 94vw);
  padding-top: 8px; /* hover bridge */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
  z-index: 60000;
}
.pm-mega::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
}
.pm-nav-item--mega {
  position: relative;
  z-index: 1;
}
.pm-nav-item--mega:hover,
.pm-nav-item--mega:focus-within,
.pm-nav-item--mega.is-open {
  z-index: 60001;
}
/* Pure CSS hover works even if JS fails; JS keeps is-open for keyboard */
@media (hover: hover) and (pointer: fine) {
  .pm-nav-item--mega:hover > .pm-mega,
  .pm-nav-item--mega:focus-within > .pm-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .pm-nav-item--mega:hover > .pm-nav-link,
  .pm-nav-item--mega:focus-within > .pm-nav-link {
    background: var(--surface-2);
    color: var(--text) !important;
  }
  .pm-nav-item--mega:hover > .pm-nav-link .pm-nav-caret,
  .pm-nav-item--mega:focus-within > .pm-nav-link .pm-nav-caret {
    transform: rotate(180deg);
  }
}
.pm-nav-item--mega.is-open > .pm-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.pm-mega-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 6px rgba(20, 20, 31, .04), 0 20px 48px rgba(20, 20, 31, .14);
  padding: .45rem;
  position: relative;
  z-index: 1;
}
.pm-mega-grid,
.pm-nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pm-mega-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}
@media (min-width: 900px) {
  .pm-nav-item--mega .pm-mega-grid {
    grid-template-columns: 1fr 1fr;
    min-width: 440px;
  }
  .pm-mega-grid:has(> :nth-child(-n+3):last-child) {
    grid-template-columns: 1fr;
    min-width: 260px;
  }
}
.pm-nav-link--card {
  display: flex !important;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: .7rem .75rem !important;
  border-radius: 10px !important;
  white-space: normal !important;
  color: var(--text) !important;
  font-weight: 500 !important;
  text-align: left;
}
.pm-nav-link--card:hover {
  background: var(--bg) !important;
}
.pm-nav-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--surface-2);
  color: var(--text-2);
}
.pm-nav-link--card:hover .pm-nav-ico {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.pm-nav-card-text { flex: 1; min-width: 0; }
.pm-nav-card-title {
  display: block;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.3;
}
.pm-nav-card-arrow {
  opacity: 0;
  color: var(--text-3);
  flex: 0 0 auto;
  transition: opacity var(--ease);
}
.pm-nav-link--card:hover .pm-nav-card-arrow { opacity: .7; }

/* Overflow ··· — packs items that don't fit */
.pm-nav-more {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  z-index: 6;
}
.pm-nav-more[hidden] { display: none !important; }
.pm-nav-more-btn {
  min-width: 40px;
  justify-content: center;
  font-weight: 700 !important;
  letter-spacing: .08em;
}
.pm-nav-more-dots {
  font-size: 1.15rem;
  line-height: 1;
  transform: translateY(-2px);
}
.pm-mega--more {
  left: auto;
  right: 0;
  min-width: 280px;
  max-width: min(360px, 92vw);
}
.pm-mega--more .pm-mega-inner {
  max-height: min(70vh, 480px);
  overflow: auto;
  scrollbar-width: none;
}
.pm-mega--more .pm-mega-inner::-webkit-scrollbar { display: none; }
.pm-mega--more .pm-mega-grid {
  grid-template-columns: 1fr !important;
  min-width: 0 !important;
}
.pm-mega--more .pm-nav-item--top {
  list-style: none;
  width: 100%;
}
.pm-mega--more .pm-nav-item--top > .pm-nav-link {
  width: 100%;
  justify-content: space-between;
  padding: .7rem .8rem;
  white-space: normal;
  border-radius: 10px;
}
.pm-mega--more .pm-nav-item--mega > .pm-mega {
  position: static;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  padding-top: 0;
  min-width: 0;
  max-width: none;
  display: block;
}
.pm-mega--more .pm-nav-item--mega > .pm-mega .pm-mega-inner {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 0 .2rem .35rem;
  margin: 0 0 .15rem .55rem;
  border-left: 2px solid var(--border);
  border-radius: 0;
  max-height: none;
  overflow: visible;
}
.pm-mega--more .pm-nav-item--mega > .pm-mega .pm-mega-grid {
  grid-template-columns: 1fr !important;
}
.pm-nav-more.is-open > .pm-mega,
.pm-nav-more:hover > .pm-mega,
.pm-nav-more:focus-within > .pm-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.pm-nav-more.is-open > .pm-nav-more-btn,
.pm-nav-more:hover > .pm-nav-more-btn {
  background: var(--surface-2);
  color: var(--text) !important;
}



/* Hide legacy "Ещё" if cached HTML still has it */

/* Actions */
.pm-header-cta { display: none !important; }
.pm-header-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}
.pm-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface) !important;
  color: var(--text) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  min-height: 40px;
  transition: background var(--ease), border-color var(--ease);
}
.pm-icon-btn:hover {
  background: var(--surface-2) !important;
  border-color: var(--border-2);
}
.pm-header-cta {
  height: 40px;
  min-height: 40px;
  padding: 0 1.05rem;
  border-radius: 10px;
  font-size: .875rem;
}
.pm-header-cta--block {
  width: 100%;
  height: 42px;
  min-height: 42px;
}

/* Burger — left on mobile */
.pm-burger { display: none; order: -1; }
.pm-burger-lines {
  width: 16px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pm-burger-lines span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.pm-burger.is-active .pm-burger-lines span:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
}
.pm-burger.is-active .pm-burger-lines span:nth-child(2) { opacity: 0; }
.pm-burger.is-active .pm-burger-lines span:nth-child(3) {
  transform: translateY(-5.25px) rotate(-45deg);
}

/* Adaptive: tablet/mobile — full drawer, hide desktop nav earlier */
@media (max-width: 1100px) {
  .pm-nav { display: none; }
  .pm-burger { display: inline-flex; }
  .pm-header-cta { display: none; }
  .pm-header-bar { gap: .45rem; }
}

/* Search */
.pm-search[hidden],
.pm-drawer[hidden] { display: none !important; }
.pm-search,
.pm-drawer {
  position: fixed;
  inset: 0;
  z-index: 70000;
}
.pm-search-backdrop,
.pm-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 31, .45);
  opacity: 0;
  transition: opacity 160ms ease;
}
.pm-search.is-open .pm-search-backdrop,
.pm-drawer.is-open .pm-drawer-backdrop { opacity: 1; }
.pm-search-panel {
  position: relative;
  width: min(100% - 1.25rem, 520px);
  margin: 12vh auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(20, 20, 31, .14);
  padding: 1rem;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}
.pm-search.is-open .pm-search-panel {
  transform: none;
  opacity: 1;
}
.pm-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.pm-search-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pm-search-form {
  display: flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .3rem .3rem .3rem .75rem;
  background: var(--bg);
}
.pm-search-form:focus-within {
  border-color: var(--text);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(20, 20, 31, .05);
}
.pm-search-ico { color: var(--text-3); display: inline-flex; flex: 0 0 auto; }
.pm-search-input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  min-width: 0;
  height: 40px;
  font-size: .95rem;
  color: var(--text) !important;
}
.pm-search-submit {
  height: 38px;
  min-height: 38px;
  border-radius: 8px;
}
.pm-search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .85rem;
}
.pm-search-hints a {
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-2) !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .65rem;
  background: var(--surface);
  text-decoration: none !important;
}
.pm-search-hints a:hover {
  color: var(--text) !important;
  background: var(--surface-2);
}
.pm-search-kbd { display: none; }

/* Drawer — LEFT */
.pm-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  width: min(100%, 320px);
  height: 100%;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-left: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 28px rgba(20, 20, 31, .1);
  transform: translateX(-16px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}
.pm-drawer.is-open .pm-drawer-panel {
  transform: none;
  opacity: 1;
}
.pm-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.pm-drawer-title {
  font-weight: 650;
  font-size: .95rem;
  letter-spacing: -.015em;
}
.pm-drawer-nav {
  flex: 1;
  overflow: auto;
  padding: .5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pm-drawer-nav::-webkit-scrollbar { display: none; }
.pm-drawer-list { list-style: none; margin: 0; padding: 0; }
.pm-drawer .pm-nav-item { margin: 0; }
.pm-drawer .pm-nav-item--top > .pm-nav-link {
  width: 100%;
  justify-content: space-between;
  padding: .85rem .8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  color: var(--text) !important;
}
.pm-drawer .pm-nav-item.is-active > .pm-nav-link {
  background: var(--surface-2);
}
.pm-drawer .pm-mega {
  position: static;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  min-width: 0;
  max-width: none;
  display: none;
  box-shadow: none;
}
.pm-drawer .pm-nav-item.is-open > .pm-mega { display: block; }
.pm-drawer .pm-mega-inner {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 0 .25rem .15rem;
  border-radius: 0;
}
.pm-drawer .pm-mega-grid {
  grid-template-columns: 1fr !important;
  min-width: 0 !important;
  gap: 0;
  border-left: 2px solid var(--border);
  margin-left: .55rem;
  padding-left: .35rem;
}
.pm-drawer .pm-nav-link--card {
  padding: .65rem .7rem !important;
  gap: .6rem;
}
.pm-drawer .pm-nav-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: transparent;
  border: 0;
}
.pm-drawer .pm-nav-card-arrow { display: none; }
.pm-drawer .pm-nav-item.is-open > .pm-nav-link .pm-nav-caret {
  transform: rotate(180deg);
}
.pm-drawer-foot {
  padding: .75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  flex: 0 0 auto;
}
/* kill leftover quick/social decor if present */
.pm-drawer-quick,
.pm-drawer-social,
.pm-drawer-brand { display: none !important; }

html.pm-lock,
html.pm-lock body { overflow: hidden; }

/* Content adaptive safety */
@media (max-width: 700px) {
  #content.site-content {
    width: min(100% - 1.25rem, var(--container));
    padding: 1rem 0 2.5rem;
    gap: 1rem;
  }
  .pm-search-panel { margin-top: 8vh; width: min(100% - 1rem, 520px); }
  .pm-drawer-panel { width: min(100% - 0px, 300px); }
}

/* ==========================================================================
   4. HOME — page-nav catalog
   ========================================================================== */
.pm-home {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* ==========================================================================
   HOME HERO — clean showcase (no chaos collage)
   ========================================================================== */
.pm-home-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.15rem;
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  border-radius: 18px;
  border: 1px solid var(--border, #e6e6ef);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(13, 159, 110, .09) 0%, transparent 55%),
    #fff;
  box-shadow: 0 1px 2px rgba(20, 20, 31, .04);
}
.pm-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, .95fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
}
.pm-home-hero-copy {
  min-width: 0;
}
.pm-kicker {
  display: inline-flex;
  margin: 0 0 .45rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0a7a54;
  background: #e8faf3;
  border: 1px solid rgba(13, 159, 110, .16);
}
.pm-home-hero h1 {
  margin: 0 0 .55rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.18;
  color: var(--text, #14141f);
  max-width: 22ch;
}
.pm-home-lead {
  margin: 0 0 .95rem;
  max-width: 40ch;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--text-2, #3d3d4f);
  font-weight: 500;
}

.pm-home-search {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: 100%;
  max-width: 420px;
  margin: 0 0 .75rem;
  padding: .3rem .3rem .3rem .8rem;
  border-radius: 14px;
  border: 1px solid var(--border, #e6e6ef);
  background: var(--bg, #f4f4f8);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  color: var(--text, #14141f);
  text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.pm-home-search:hover {
  background: #fff;
  border-color: rgba(13, 159, 110, .35);
  box-shadow: 0 4px 16px rgba(13, 159, 110, .08);
}
.pm-home-search-ico {
  display: inline-flex;
  color: #0a7a54;
  flex: 0 0 auto;
}
.pm-home-search-text {
  flex: 1;
  min-width: 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-3, #8b8b9e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-home-search-kbd { display: none !important; }
.pm-home-search-btn {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 1rem;
  border: 0;
  border-radius: 10px;
  background: #0a7a54;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 0 #0a7a54;
}
.pm-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.pm-hero-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 .75rem;
  border-radius: 999px;
  border: 1px solid var(--border, #e6e6ef);
  background: #fff;
  color: var(--text-2, #3d3d4f) !important;
  font-size: .78rem;
  font-weight: 650;
  text-decoration: none !important;
  transition: background .12s, border-color .12s, color .12s;
}
.pm-hero-chip:hover {
  background: #e8faf3;
  border-color: rgba(13, 159, 110, .25);
  color: #0a7a54 !important;
}

/* Right showcase — clear, clickable, not random chaos */
.pm-home-hero-visual {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-width: 0;
}
.pm-home-visual-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem .9rem;
  border-radius: 14px;
  text-decoration: none !important;
  color: inherit !important;
  background: linear-gradient(135deg, #e8faf3 0%, #f4faf7 45%, #fff 100%);
  border: 1px solid rgba(13, 159, 110, .2);
  box-shadow: 0 1px 2px rgba(13, 159, 110, .06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pm-home-visual-feature:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 159, 110, .35);
  box-shadow: 0 8px 20px rgba(13, 159, 110, .1);
}
.pm-home-visual-feature-ico {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(13, 159, 110, .14);
  box-shadow: 0 2px 6px rgba(20, 20, 31, .04);
}
.pm-home-visual-feature-ico img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.pm-home-visual-feature-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .12rem;
}
.pm-home-visual-feature-tag {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0a7a54;
}
.pm-home-visual-feature-title {
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text, #14141f);
  line-height: 1.2;
}
.pm-home-visual-feature-desc {
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-3, #8b8b9e);
  line-height: 1.3;
}
.pm-home-visual-feature-go {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #0a7a54;
  color: #fff;
}
.pm-home-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
}
.pm-home-visual-tile {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 52px;
  padding: .55rem .65rem;
  border-radius: 12px;
  border: 1px solid var(--border, #e6e6ef);
  background: #fff;
  text-decoration: none !important;
  color: var(--text, #14141f) !important;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: border-color .12s, transform .12s, box-shadow .12s, background .12s;
}
.pm-home-visual-tile img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}
.pm-home-visual-tile span {
  min-width: 0;
  line-height: 1.2;
}
.pm-home-visual-tile:hover {
  transform: translateY(-1px);
  border-color: var(--border-2, #d4d4e0);
  box-shadow: 0 4px 12px rgba(20, 20, 31, .06);
}
.pm-home-visual-tile.t-orange { background: linear-gradient(180deg, #fff7ed, #fff); }
.pm-home-visual-tile.t-pink { background: linear-gradient(180deg, #fff1f5, #fff); }
.pm-home-visual-tile.t-cyan { background: linear-gradient(180deg, #ecfeff, #fff); }
.pm-home-visual-tile.t-purple { background: linear-gradient(180deg, #f5f3ff, #fff); }
.pm-home-visual-tile.t-green { background: linear-gradient(180deg, #ecfdf5, #fff); }
.pm-home-visual-tile.t-yellow { background: linear-gradient(180deg, #fffbeb, #fff); }
.pm-home-visual-tile.t-blue { background: linear-gradient(180deg, #eff6ff, #fff); }

/* Mobile */
@media (max-width: 820px) {
  .pm-home-hero {
    padding: .95rem .9rem 1rem;
    border-radius: 14px;
    margin-bottom: .95rem;
  }
  .pm-home-hero-grid {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .pm-home-hero h1 {
    max-width: none;
    font-size: 1.28rem;
    margin: 0 0 .7rem;
  }
  .pm-kicker {
    margin-bottom: .35rem;
    font-size: .6rem;
  }
  .pm-home-search {
    max-width: none;
    margin-bottom: .6rem;
  }
  .pm-home-search-btn {
    height: 36px;
  }
  .pm-hero-chip {
    height: 30px;
    font-size: .74rem;
    padding: 0 .65rem;
  }
  .pm-home-visual-feature {
    padding: .75rem .8rem;
  }
  .pm-home-visual-feature-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .pm-home-visual-feature-ico img {
    width: 32px;
    height: 32px;
  }
  .pm-home-visual-feature-title {
    font-size: .92rem;
  }
  .pm-home-visual-feature-desc {
    font-size: .74rem;
  }
  .pm-home-visual-tile {
    min-height: 48px;
    padding: .5rem .55rem;
    font-size: .78rem;
  }
  .pm-home-visual-tile img {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 400px) {
  .pm-home-hero h1 {
    font-size: 1.15rem;
  }
  .pm-home-visual-feature-desc {
    display: none;
  }
  .pm-home-visual-grid {
    gap: .35rem;
  }
}

/* kill old hero leftovers */
.pm-home-hero-glow,
.pm-home-hero-art,
.pm-home-art-stack,
.pm-home-art-card,
.pm-home-art-orb,
.pm-home-hero-panel,
.pm-home-hero-stat,
.pm-home-hero-links {
  display: none !important;
}

/* Bento — equal cards (no x2 Minecraft tile) */
.pm-home-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin-bottom: 1.65rem;
}
@media (max-width: 800px) {
  .pm-home-bento {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .pm-home-bento {
    grid-template-columns: 1fr;
  }
}
.pm-bento {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .25rem;
  min-height: 132px;
  padding: .95rem 1rem;
  border-radius: 14px;
  text-decoration: none !important;
  color: var(--text) !important;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  box-shadow: 0 1px 3px rgba(20, 20, 31, .04);
}
.pm-bento--lg {
  /* legacy class — same size as others */
  grid-row: auto;
  grid-column: auto;
  min-height: 132px;
}
.pm-bento:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 20, 31, .08);
  color: var(--text) !important;
}
.pm-bento.t-green  { background: #c6f0dc; border-color: #8fd9b5; }
.pm-bento.t-orange { background: #ffe0c7; border-color: #f5b88a; }
.pm-bento.t-blue   { background: #cfe0ff; border-color: #9bbcf5; }
.pm-bento.t-purple { background: #c6f0dc; border-color: #8fd9b5; }
.pm-bento.t-cyan   { background: #c5f0f7; border-color: #8ed5e2; }
.pm-bento.t-pink   { background: #ffd6e8; border-color: #f0a3c4; }
.pm-bento.t-yellow { background: #fff0b8; border-color: #e8d27a; }
.pm-bento.t-gray   { background: #e4e6ee; border-color: #c5c8d4; }

.pm-bento-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: .4rem;
  border-radius: 10px;
}
.pm-bento--lg .pm-bento-img {
  width: 44px;
  height: 44px;
  margin-bottom: .4rem;
  border-radius: 10px;
}
.pm-bento-title {
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: #14141f;
}
.pm-bento--lg .pm-bento-title { font-size: .92rem; }
.pm-bento-desc {
  font-size: .78rem;
  color: #3f3f46;
  font-weight: 550;
  line-height: 1.35;
}
.pm-bento-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  color: #14141f;
  border: 1px solid rgba(20, 20, 31, .08);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .22rem .5rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(20, 20, 31, .06);
}

/* Sections + tiles */
.pm-home-section { margin-bottom: 1.65rem; }
.pm-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}
.pm-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--text);
}
.pm-section-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-3) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.pm-section-link:hover { color: var(--accent) !important; }

.pm-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
@media (min-width: 700px) {
  .pm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .pm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
}
.pm-tile {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  min-width: 0;
}
.pm-tile:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: var(--text) !important;
}
.pm-tile-ico {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.pm-tile.t-blue .pm-tile-ico { background: var(--t-blue); }
.pm-tile.t-green .pm-tile-ico { background: var(--t-green); }
.pm-tile.t-orange .pm-tile-ico { background: var(--t-orange); }
.pm-tile.t-purple .pm-tile-ico { background: var(--t-purple); }
.pm-tile.t-pink .pm-tile-ico { background: var(--t-pink); }
.pm-tile.t-yellow .pm-tile-ico { background: var(--t-yellow); }
.pm-tile.t-cyan .pm-tile-ico { background: var(--t-cyan); }
.pm-tile.t-gray .pm-tile-ico { background: var(--t-gray); }
.pm-tile-ico img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
}
.pm-tile-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--text);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  z-index: 1;
}
.pm-tile-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .12rem;
}
.pm-tile-title {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: #14141f;
}
.pm-tile-desc {
  font-size: .76rem;
  color: #52525b;
  font-weight: 550;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-tile-go {
  color: var(--text-3);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--ease), transform var(--ease);
  flex: 0 0 auto;
  display: inline-flex;
}
.pm-tile:hover .pm-tile-go {
  opacity: .7;
  transform: none;
}
@media (max-width: 560px) {
  .pm-tile-go { display: none; }
  .pm-tile-desc { display: none; }
}

/* Home bottom CTA — light, not black */
.pm-home-cta {
  margin: 1.5rem 0 .5rem;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(13, 159, 110, .08), transparent 55%),
    var(--surface, #fff);
  border: 1px solid var(--border, #e6e6ef);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-xs);
}
.pm-home-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
}
.pm-home-cta-kicker {
  margin: 0 0 .2rem;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-text, #0a7a54);
}
.pm-home-cta-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text, #14141f);
}
.pm-home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.pm-home-cta-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 1rem;
  border-radius: 9px;
  background: var(--accent, #0a7a54);
  color: #fff !important;
  font-weight: 650;
  font-size: .82rem;
  text-decoration: none !important;
  border: 0;
}
.pm-home-cta-btn:hover {
  background: #0a7a54;
  color: #fff !important;
}
.pm-home-cta-btn--ghost {
  background: #fff;
  color: var(--text, #14141f) !important;
  border: 1px solid var(--border, #e6e6ef);
}
.pm-home-cta-btn--ghost:hover {
  background: var(--accent-soft, #e8faf3);
  color: var(--accent-text, #0a7a54) !important;
  border-color: rgba(13, 159, 110, .22);
}

/* Legacy home classes keep working */
.pm-app-container { max-width: 100%; }
.pm-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.pm-card { text-decoration: none !important; color: inherit !important; }
.pm-icon-box {
  aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
}
.pm-card-title { font-size: .85rem; font-weight: 600; text-align: center; }

body.page-template-page-nav #content.site-content,
body.home.page #content.site-content {
  grid-template-columns: 1fr;
  max-width: min(100% - 1.5rem, 1080px);
  padding-top: 1.1rem;
}
body.page-template-page-nav #secondary,
body.home.page #secondary { display: none; }

/* ==========================================================================
   5. CARDS / LOOP
   ========================================================================== */
.content-loop {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.content-loop > .widget,
.content-loop > .textwidget,
.content-loop > aside,
.content-loop > .adsbygoogle,
.content-loop > [id*="yandex"],
.content-loop > .pm-loop-full {
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .content-loop { grid-template-columns: 1fr; }
}

.new-post,
article.post,
.pm-card-post {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  height: 100%;
}
.new-post:hover,
.pm-card-post:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
/* Full-card click layer */
.pm-card-stretch {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.pm-card-body {
  display: flex;
  flex-direction: column;
  padding: .9rem 1rem 1rem;
  flex: 1;
  position: relative;
  z-index: 1;
}
/* Keep category clickable above stretch */
.pm-card-post .entry-category,
.pm-card-post .entry-category a {
  position: relative;
  z-index: 3;
}
.new-post .thumbnail-link { display: block; }
.new-post .thumbnail-wrap {
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  margin: 0;
}
.new-post .thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
.new-post:hover .thumbnail-wrap img { transform: scale(1.03); }
.read-more-btn { display: none !important; }

.entry-title {
  font-size: .975rem;
  margin: 0 0 .4rem;
  letter-spacing: -.02em;
  font-weight: 650;
  line-height: 1.3;
}
.entry-title a { color: var(--text); }
.entry-title a:hover { color: var(--accent); }
.content-loop .new-post .entry-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-summary {
  color: var(--text-2);
  font-size: .85rem;
  flex: 1;
  line-height: 1.5;
}
.content-loop .new-post .entry-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-summary p:last-child { margin-bottom: 0; }
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  margin: .2rem 0 .55rem;
  color: var(--text-3);
  font-size: .78rem;
}
.entry-meta-item {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.entry-category { margin: 0 0 .4rem; }
.entry-category a,
.pm-chip {
  display: inline-flex;
  padding: .18rem .45rem;
  border-radius: 4px;
  background: var(--surface-2);
  border: 0;
  color: var(--text-2) !important;
  font-size: .72rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background var(--ease), color var(--ease);
}
.entry-category a:hover,
.pm-chip:hover {
  background: var(--accent-soft);
  color: var(--accent-text) !important;
}
.read-more-btn { display: none !important; }

/* Featured slider */
#featured-content {
  margin: 0 0 1.15rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
#featured-content .bxslider {
  list-style: none;
  margin: 0;
  padding: 0;
}
#featured-content .featured-slide { position: relative; }
#featured-content .thumbnail-wrap img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
#featured-content .gradient {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(transparent, rgba(20, 20, 31, .7));
  pointer-events: none;
}
#featured-content .entry-header {
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 2;
}
#featured-content .entry-title,
#featured-content .entry-title a { color: #fff; }
.bx-wrapper {
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}

/* ==========================================================================
   6. ARCHIVE / CATEGORY / SORT
   ========================================================================== */
.pm-archive-head {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.15rem 1rem;
  margin-bottom: 1rem;
  box-shadow: none;
}
.pm-archive-bc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: .8rem;
}
.pm-archive-bc a {
  color: var(--text-3);
  font-weight: 500;
}
.pm-archive-bc a:hover { color: var(--text); }
.pm-archive-title-row {
  display: block;
  margin-bottom: .9rem;
}
.pm-archive-count { display: none !important; }
.pm-archive-title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0 0 .35rem;
}
.pm-archive-desc {
  color: var(--text-3);
  font-size: .9rem;
  max-width: 56ch;
  line-height: 1.5;
}
.pm-archive-desc p { margin: 0; color: inherit; }
.pm-archive-count {
  flex: 0 0 auto;
  text-align: right;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .55rem .8rem;
  background: var(--bg);
  min-width: 72px;
}
.pm-archive-count strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.03em;
}
.pm-archive-count span {
  font-size: .72rem;
  color: var(--text-3);
}

.pm-subcats {
  display: flex;
  flex-wrap: nowrap;
  gap: .4rem;
  margin: 0 0 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
  padding-bottom: .25rem;
}
.pm-subcats::-webkit-scrollbar { height: 4px; }
.pm-subcats::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 4px;
}
.pm-subcat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-2) !important;
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none !important;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--ease), background var(--ease), color var(--ease);
  flex: 0 0 auto;
  white-space: nowrap;
}
.pm-subcat:hover {
  border-color: var(--border-2);
  color: var(--text) !important;
  background: var(--surface-2);
}
.pm-subcat.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #fff !important;
  box-shadow: none;
}
.pm-subcat-count {
  opacity: .65;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}

/* Horizontal version picker (Скачать Майнкрафт) */
.pm-hscroll-wrap {
  margin: 0 0 1.15rem;
  padding: .9rem 1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
}
.pm-hscroll-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 .65rem;
}
.viewport-clip,
#horizont-menu {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
  margin: 0;
  padding-bottom: .25rem;
}
.viewport-clip::-webkit-scrollbar,
#horizont-menu::-webkit-scrollbar { height: 5px; }
.viewport-clip::-webkit-scrollbar-thumb,
#horizont-menu::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 4px;
}
#horizont-menu .horizontal {
  display: flex;
  gap: .65rem;
  padding: .05rem .05rem .15rem;
  width: max-content;
}
#horizont-menu .item {
  flex: 0 0 auto;
  width: 148px;
}
#horizont-menu .item a {
  display: flex;
  flex-direction: column;
  height: 148px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
#horizont-menu .item a:hover {
  border-color: rgba(13, 159, 110, .35);
  box-shadow: 0 6px 16px rgba(13, 159, 110, .12);
  transform: translateY(-2px);
  color: var(--text) !important;
}
#horizont-menu .item img,
#horizont-menu .item .pm-hscroll-ph {
  width: 148px !important;
  height: 88px !important;
  max-width: 148px !important;
  min-width: 148px !important;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 12px 12px 0 0;
  display: block;
  background: #eef2f7;
}
#horizont-menu .item .pm-hscroll-ph {
  background: linear-gradient(135deg, #e8faf3, #e8f1ff);
}
#horizont-menu .textversion {
  padding: .5rem .55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  min-height: 0;
  background: #fff;
}
#horizont-menu .textversion span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--text);
  word-break: break-word;
}

.pm-sort,
.pmr-s-c {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.pmr-s-w { margin: 0 0 1.1rem; }
.pm-sort-btn,
.pmr-s-b {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 34px !important;
  padding: .35rem .75rem !important;
  border-radius: 6px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--text-3) !important;
  font-size: .8rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.pm-sort-btn .pm-icon,
.pmr-s-i {
  width: 14px !important;
  height: 14px !important;
  opacity: .7;
}
.pmr-s-i svg { width: 14px; height: 14px; fill: currentColor; }
.pm-sort-btn:hover,
.pmr-s-b:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, .75) !important;
}
.pm-sort-btn.is-active,
.pmr-s-b.active {
  background: var(--surface) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-xs) !important;
  font-weight: 600 !important;
}
.pmr-s-t { font-size: .8rem !important; }

/* Legacy category hero */
.squarebg { margin: 0 0 1rem; }
.square {
  background: var(--hero-grad);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.45rem;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.square h1 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 .4rem;
}
.squaretext,
.squaretext span {
  color: rgba(255, 255, 255, .65);
  font-size: .9rem;
}
.soc_links { margin-top: .75rem; }
.soc_links a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  margin-right: .35rem;
}
.soc_links svg { fill: #fff; width: 18px; height: 18px; }
.bottom_link.link3 { display: none !important; }

/* ==========================================================================
   7. SINGLE POST — one panel, one rhythm
   ========================================================================== */
/* Wrapper: crumbs live outside .pm-single, so stack on site-main */
body.single .site-main > .pm-bc {
  margin: 0;
}
.pm-single {
  --pm-pad-x: 1.35rem;
  --pm-pad-y: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}

/* Breadcrumbs — outside article, flat (no nested white box) */
.pm-bc {
  margin: 0 0 .15rem;
  padding: 0;
  min-width: 0;
  width: 100%;
}
.pm-bc-list {
  list-style: none;
  margin: 0;
  padding: 0 .1rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .15rem;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.pm-bc-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  max-width: 42%;
}
.pm-bc-item--current {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}
.pm-bc-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--text-3);
  opacity: .45;
  user-select: none;
}
.pm-bc-sep svg {
  display: block;
  width: 14px;
  height: 14px;
}
.pm-bc-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  max-width: 100%;
  padding: .2rem .15rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-3) !important;
  text-decoration: none !important;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--ease);
}
.pm-bc-link:hover {
  color: var(--text) !important;
  background: transparent;
}
.pm-bc-home {
  color: var(--text-3) !important;
  max-width: none;
}
.pm-bc-ico {
  display: block;
  flex: 0 0 auto;
  opacity: .7;
}
.pm-bc-home:hover .pm-bc-ico {
  opacity: 1;
}
.pm-bc-current {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: .2rem .15rem;
  border-radius: 0;
  background: transparent;
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* legacy */
.pm-single-breadcrumbs {
  display: none !important;
}

@media (max-width: 640px) {
  .pm-bc-home-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  /* Mobile: only home + category (title already in h1) */
  .pm-bc-sep--current,
  .pm-bc-item--current {
    display: none !important;
  }
  .pm-bc-item {
    max-width: 85%;
  }
  .pm-bc-link {
    font-size: .78rem;
  }
}

/* ONE white panel */
.pm-single-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

/* Cover */
.pm-single-cover {
  position: relative;
  aspect-ratio: 21 / 9;
  max-height: 360px;
  background: var(--surface-2);
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.pm-single-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pm-single-cover-fade { display: none; }

/* Hero */
.pm-single-hero,
.pm-single-hero-body {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.pm-single-hero-body {
  padding: 1.2rem var(--pm-pad-x) 1rem;
  border-bottom: 0; /* no double hr under hero */
}
.pm-single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 .55rem;
}
.pm-single .pm-chip {
  border-radius: 6px;
  padding: .18rem .5rem;
  font-size: .7rem;
  font-weight: 650;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2) !important;
  text-decoration: none !important;
}
.pm-single .pm-chip:hover {
  background: var(--accent-soft);
  color: var(--accent-text) !important;
  border-color: transparent;
}
.pm-single-title {
  font-size: clamp(1.35rem, 2.7vw, 1.85rem);
  letter-spacing: -.03em;
  margin: 0 0 .75rem;
  line-height: 1.22;
  font-weight: 750;
  color: var(--text);
}

/* Meta row — no top hr (was double line under title) */
.pm-single-meta {
  list-style: none;
  margin: 0;
  padding: .35rem 0 0;
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .95rem;
  color: var(--text-3);
  font-size: .8rem;
  font-weight: 500;
}
.pm-single-meta li {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  margin: 0;
  padding: 0;
}
.pm-single-meta .pm-icon { opacity: .5; width: 14px; height: 14px; }
.pm-single-meta--like { color: var(--danger); }
.pm-single-meta--like .pm-icon { opacity: 1; color: var(--danger); }
.pm-single-stats { display: none !important; }

/* ==========================================================================
   TOC — card with numbered links
   SSR in HTML; system fonts avoid Inter swap CLS on this block.
   ========================================================================== */
.pm-toc {
  margin: 0;
  padding: .85rem var(--pm-pad-x) 0;
  background: transparent;
  border: 0;
  /* Isolate from late font metrics / sibling ad growth */
  contain: layout style;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.pm-toc-card {
  background: linear-gradient(180deg, #f8faf9 0%, #fff 48%);
  border: 1px solid var(--border, #e6e6ef);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 20, 31, .04);
  overflow: hidden;
}
/* Mid RTB after TOC may expand — keep its own containment so content below shifts less erratically */
.pm-rtb-inline--after-toc {
  contain: layout;
}
.pm-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border, #e6e6ef);
  background: #fff;
}
.pm-toc-head-left {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.pm-toc-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #e8faf3;
  color: #0a7a54;
  border: 1px solid rgba(13, 159, 110, .16);
}
.pm-toc-ico svg { display: block; }
.pm-toc-head-text {
  display: flex;
  flex-direction: column;
  gap: .08rem;
  min-width: 0;
}
.pm-toc-kicker {
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0a7a54;
  line-height: 1.2;
}
.pm-toc-title {
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text, #14141f);
  margin: 0;
  line-height: 1.2;
}
.pm-toc-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: .3rem;
  border: 1px solid var(--border, #e6e6ef) !important;
  background: var(--bg, #f4f4f8) !important;
  color: var(--text-2, #3d3d4f) !important;
  font-size: .75rem !important;
  font-weight: 650 !important;
  cursor: pointer;
  padding: .4rem .65rem !important;
  box-shadow: none !important;
  min-height: 34px !important;
  border-radius: 9px !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.pm-toc-toggle:hover {
  background: #fff !important;
  border-color: var(--border-2, #d4d4e0) !important;
  color: var(--text, #14141f) !important;
}
.pm-toc-chevron {
  display: block;
  transition: transform .18s ease;
}
.pm-toc.is-collapsed .pm-toc-chevron {
  transform: rotate(-90deg);
}
.pm-toc-list {
  list-style: none !important;
  margin: 0 !important;
  padding: .45rem .45rem .55rem !important;
  display: grid;
  gap: .2rem;
  counter-reset: none;
}
.pm-toc.is-collapsed .pm-toc-list {
  display: none;
}
.pm-toc-item {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pm-toc-link {
  display: flex !important;
  align-items: center;
  gap: .55rem;
  padding: .55rem .6rem !important;
  border-radius: 10px;
  color: var(--text, #14141f) !important;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.3;
  background: transparent;
  border: 1px solid transparent;
  transition: background .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.pm-toc-num {
  flex: 0 0 auto;
  min-width: 1.7em;
  height: 1.7em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #eef7f2;
  color: #0a7a54;
  font-size: .72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.pm-toc-label {
  flex: 1 1 auto;
  min-width: 0;
}
.pm-toc-go {
  flex: 0 0 auto;
  color: var(--text-3, #8b8b9e);
  opacity: .45;
  display: grid;
  place-items: center;
  transition: opacity .12s ease, color .12s ease, transform .12s ease;
}
.pm-toc-link:hover {
  background: #fff;
  border-color: var(--border, #e6e6ef);
  box-shadow: 0 1px 2px rgba(20, 20, 31, .04);
  color: var(--text, #14141f) !important;
}
.pm-toc-link:hover .pm-toc-go {
  opacity: 1;
  color: #0a7a54;
  transform: translateX(2px);
}
.pm-toc-link.is-active {
  background: #e8faf3;
  border-color: rgba(13, 159, 110, .22);
  color: #067a50 !important;
  box-shadow: none;
}
.pm-toc-link.is-active .pm-toc-num {
  background: #0a7a54;
  color: #fff;
}
.pm-toc-link.is-active .pm-toc-go {
  opacity: 1;
  color: #0a7a54;
}
/* Nested h3 */
.pm-toc-h3 .pm-toc-link {
  padding-left: 1.15rem !important;
  font-size: .84rem;
  font-weight: 550;
  color: var(--text-2, #3d3d4f) !important;
}
.pm-toc-h3 .pm-toc-num {
  min-width: 1.2em;
  background: transparent;
  color: var(--text-3, #8b8b9e);
  font-size: .9rem;
  font-weight: 700;
}

@media (max-width: 560px) {
  .pm-toc {
    padding: .7rem var(--pm-pad-x) 0;
  }
  .pm-toc-head {
    padding: .75rem .8rem;
  }
  .pm-toc-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .pm-toc-title {
    font-size: .92rem;
  }
  .pm-toc-toggle-txt {
    /* keep text on mobile — clearer than icon-only */
  }
  .pm-toc-list {
    padding: .35rem .35rem .45rem !important;
  }
  .pm-toc-link {
    padding: .5rem .55rem !important;
    font-size: .86rem;
  }
}

/* Content */
.pm-single-content.entry-content {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: var(--pm-pad-y) var(--pm-pad-x) 1.25rem !important;
  margin: 0;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pm-single-content.entry-content > *:first-child { margin-top: 0 !important; }
.pm-single-content.entry-content > *:last-child { margin-bottom: 0 !important; }
.pm-single-content.entry-content p { margin: 0 0 1em; }
.pm-single-content.entry-content ul,
.pm-single-content.entry-content ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}
.pm-single-content.entry-content li { margin: 0 0 .35em; }
.pm-single-content.entry-content a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pm-single-content.entry-content h2,
.pm-single-content.entry-content h3 {
  color: var(--text);
  margin: 1.5em 0 .65em;
  border-left: 0 !important;
  padding-left: 0 !important;
  letter-spacing: -.02em;
  font-weight: 700;
  line-height: 1.3;
}
.pm-single-content.entry-content h2 {
  font-size: 1.2rem;
  padding-top: .35em;
  border-top: 1px solid var(--border) !important;
}
.pm-single-content.entry-content h2:first-child {
  border-top: 0 !important;
  padding-top: 0;
  margin-top: 0;
}
.pm-single-content.entry-content h3 {
  font-size: 1.05rem;
  margin-top: 1.25em;
}
.pm-single-content.entry-content img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: .85em 0;
}
.pm-single-content.entry-content figure {
  margin: 1em 0;
}
.pm-single-content.entry-content figcaption {
  font-size: .8rem;
  color: var(--text-3);
  margin-top: .4em;
}
.pm-single-content.entry-content iframe,
.pm-single-content.entry-content video,
.pm-single-content.entry-content .wp-block-embed {
  max-width: 100%;
  border-radius: 10px;
}
.pm-single-content.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: .92rem;
  display: block;
  overflow-x: auto;
}
.pm-single-content.entry-content table th,
.pm-single-content.entry-content table td {
  border: 1px solid var(--border);
  padding: .5rem .65rem;
}
.pm-single-content.entry-content table th {
  background: var(--bg);
  color: var(--text);
  font-weight: 650;
}
/* Hide residual plugin like-block if still injected */
.pm-single-content .pld-like-dislike-wrap { display: none !important; }

/* WPDM often sits inside a <p> — kill huge paragraph margins */
.pm-single-content.entry-content p:has(.w3eden),
.pm-single-content.entry-content p:has(.enjoynow-wpdm-card),
.pm-single-content.entry-content .w3eden {
  margin: .35em 0 !important;
}
.pm-single-content.entry-content p:has(.w3eden) + p:has(.w3eden),
.pm-single-content.entry-content .w3eden + .w3eden {
  margin-top: .3em !important;
}

/* Download card — compact row (title+meta | button); multi OK */
.pm-single-content .enjoynow-wpdm-card,
.pm-single-content .w3eden .enjoynow-wpdm-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-xs) !important;
  border-radius: 12px !important;
  padding: .55rem .65rem !important;
  margin: .45em 0 !important;
  position: relative;
  overflow: hidden;
}
.pm-single-content .enjoynow-wpdm-card + .enjoynow-wpdm-card,
.pm-single-content .w3eden + .w3eden {
  margin-top: .4em !important;
}
.pm-single-content .enjoynow-wpdm-card::before {
  display: none !important;
  content: none !important;
}
.pm-single-content .enjoynow-wpdm-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem .7rem;
  flex-wrap: nowrap;
}
.pm-single-content .enjoynow-wpdm-card__info {
  flex: 1 1 auto;
  min-width: 0;
}
.pm-single-content .enjoynow-wpdm-card__title {
  font-size: .86rem !important;
  font-weight: 700 !important;
  letter-spacing: -.015em !important;
  color: var(--text) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 0 .15rem !important;
  line-height: 1.25 !important;
}
.pm-single-content .enjoynow-wpdm-card__meta {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: .15rem .3rem !important;
  margin: 0 !important;
  font-size: .72rem !important;
  line-height: 1.2 !important;
  color: #0a7a54 !important;
  min-width: 0;
  overflow: hidden;
}
.pm-single-content .enjoynow-wpdm-meta {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: .15rem !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: inherit !important;
  color: inherit !important;
  flex: 0 1 auto;
  white-space: nowrap;
}
.pm-single-content .enjoynow-wpdm-meta b {
  font-weight: 750;
  color: #14532d;
}
.pm-single-content .enjoynow-wpdm-meta__muted {
  color: #6b8f7a;
  font-weight: 600;
}
.pm-single-content .enjoynow-wpdm-meta-sep {
  color: #b7d4c2;
  user-select: none;
  flex: 0 0 auto;
}
.pm-single-content .enjoynow-wpdm-meta--ok {
  color: #047857 !important;
  font-weight: 700;
  gap: .2rem !important;
  flex: 0 0 auto;
}
.pm-single-content .enjoynow-wpdm-meta--ok svg {
  flex: 0 0 auto;
  display: block;
}
.pm-single-content .enjoynow-wpdm-card__actions {
  margin: 0 !important;
  flex: 0 0 auto;
  align-self: center;
}
/* MC 3D download btn */
.pm-single-content .enjoynow-wpdm-card__actions a.wpdm-download-link,
.pm-single-content .enjoynow-wpdm-card__actions a.download-button-pm {
  background: #3b8526 !important;
  -webkit-box-shadow: inset 0 3px #6bc349, inset 0 -3px #2a631c, 0 3px rgba(0, 0, 0, .22) !important;
  box-shadow: inset 0 3px #6bc349, inset 0 -3px #2a631c, 0 3px rgba(0, 0, 0, .22) !important;
  color: #fff !important;
  text-shadow: 0 1px 0 #2a631c !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: .6px !important;
  filter: none !important;
  min-height: 40px !important;
  white-space: nowrap !important;
  width: auto !important;
  max-width: none !important;
}
.pm-single-content .enjoynow-wpdm-card__actions a.wpdm-download-link:hover,
.pm-single-content .enjoynow-wpdm-card__actions a.download-button-pm:hover {
  background: #368024 !important;
  filter: none !important;
}
.pm-single-content .enjoynow-wpdm-card__actions a.wpdm-download-link:active,
.pm-single-content .enjoynow-wpdm-card__actions a.download-button-pm:active {
  transform: translateY(1px);
  -webkit-box-shadow: inset 0 2px #6bc349, inset 0 -2px #2a631c, 0 2px rgba(0, 0, 0, .22) !important;
  box-shadow: inset 0 2px #6bc349, inset 0 -2px #2a631c, 0 2px rgba(0, 0, 0, .22) !important;
}

/* Mobile: keep one row, no stack, compact meta + button */
@media (max-width: 640px) {
  .pm-single-content .enjoynow-wpdm-card,
  .pm-single-content .w3eden .enjoynow-wpdm-card {
    padding: .45rem .5rem !important;
    margin: .35em 0 !important;
    border-radius: 10px !important;
  }
  .pm-single-content .enjoynow-wpdm-card__row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: .4rem !important;
  }
  .pm-single-content .enjoynow-wpdm-card__info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .pm-single-content .enjoynow-wpdm-card__title {
    white-space: nowrap !important;
    font-size: .78rem !important;
    margin: 0 0 .1rem !important;
  }
  .pm-single-content .enjoynow-wpdm-card__meta {
    flex-wrap: nowrap !important;
    font-size: .65rem !important;
    gap: .1rem .22rem !important;
  }
  /* «скачали» — только число; «безопасен» — только щит */
  .pm-single-content .enjoynow-wpdm-meta__muted {
    display: none !important;
  }
  .pm-single-content .enjoynow-wpdm-meta--ok {
    font-size: 0 !important;
    gap: 0 !important;
  }
  .pm-single-content .enjoynow-wpdm-meta--ok svg {
    width: 11px;
    height: 11px;
  }
  .pm-single-content .enjoynow-wpdm-card__actions {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  .pm-single-content .enjoynow-wpdm-card__actions a.wpdm-download-link,
  .pm-single-content .enjoynow-wpdm-card__actions a.download-button-pm {
    width: auto !important;
    min-width: 0 !important;
    padding: 7px 11px !important;
    font-size: 11px !important;
    letter-spacing: .4px !important;
    min-height: 34px !important;
    line-height: 1.15 !important;
    -webkit-box-shadow: inset 0 2px #6bc349, inset 0 -2px #2a631c, 0 2px rgba(0, 0, 0, .2) !important;
    box-shadow: inset 0 2px #6bc349, inset 0 -2px #2a631c, 0 2px rgba(0, 0, 0, .2) !important;
  }
}

/* Guide strip — full panel width, accordion */
.pm-single-guide-wrap {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.pm-single-guide-wrap .pm-guide {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.pm-single-guide-wrap .pm-guide-toggle {
  width: 100%;
  margin: 0;
  padding: 1rem var(--pm-pad-x);
  border: 0;
  border-bottom: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  box-shadow: none !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  transition: background var(--ease);
}
.pm-single-guide-wrap .pm-guide-toggle:hover {
  background: rgba(20, 20, 31, .03);
}
.pm-single-guide-wrap .pm-guide.is-open .pm-guide-toggle {
  border-bottom: 1px solid var(--border);
}
.pm-single-guide-wrap .pm-guide-head-text {
  flex: 1;
  min-width: 0;
}
.pm-single-guide-wrap .pm-guide-chevron {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin-top: .15rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--ease), color var(--ease), border-color var(--ease);
}
.pm-single-guide-wrap .pm-guide.is-open .pm-guide-chevron {
  transform: rotate(180deg);
  color: var(--text);
  border-color: var(--border-2);
}
.pm-single-guide-wrap .pm-guide-body {
  padding: 1rem var(--pm-pad-x) 1.2rem;
}
.pm-single-guide-wrap .pm-guide-body[hidden] {
  display: none !important;
}
.pm-single-guide-wrap .pm-guide-steps {
  gap: .65rem;
}
.pm-single-guide-wrap .pm-guide-num {
  background: var(--surface);
  border-color: var(--border);
}
.pm-single-guide-wrap .pm-guide-paths code {
  background: var(--surface);
}
.pm-single-guide-wrap .pm-guide-note {
  margin-top: .95rem;
}

/* Footer */
.pm-single-footer {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 1rem var(--pm-pad-x) 1.15rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.pm-tax-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 .45rem;
}
.pm-single-tax {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.pm-tax-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.pm-tax-chips a,
.pm-tax-chips a[rel="tag"] {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .32rem .7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-2) !important;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--ease), color var(--ease), background var(--ease), box-shadow var(--ease);
}
.pm-tax-chips a::before,
.pm-tax-chips a[rel="tag"]::before {
  content: "#";
  color: var(--text-3);
  font-weight: 700;
  font-size: .75rem;
}
.pm-tax-chips a:hover,
.pm-tax-chips a[rel="tag"]:hover {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-text) !important;
  box-shadow: none;
}
.pm-tax-chips a:hover::before,
.pm-tax-chips a[rel="tag"]:hover::before {
  color: var(--accent-text);
}
/* Category chips in tax (if shown) — no hash */
.pm-tax-block--cats .pm-tax-chips a::before {
  content: none;
}
.pm-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: 0;
  border: 0;
}
.pm-share-label { display: none; }
.pm-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.pm-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 .8rem;
  border-radius: 8px;
  font-weight: 650;
  font-size: .8rem;
  text-decoration: none !important;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text) !important;
}
.pm-share-btn:hover { border-color: var(--border-2); background: var(--surface-2); }
.pm-share-vk { background: #eef3fa; border-color: transparent; color: #3b6daa !important; }
.pm-share-tg { background: #eaf6fb; border-color: transparent; color: #1f8bbd !important; }

/* ==========================================================================
   LIKE BANNER — soft rose (override PLD gray #5d5d5d)
   ========================================================================== */
.pm-like-banner {
  --pm-like: #c45b74;
  --pm-like-soft: #f8e9ed;
  --pm-like-border: #e8b7c2;
  --pm-like-text: #9b3d55;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1rem;
  margin: 0 0 1rem;
  padding: .95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(196, 91, 116, .18);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(196, 91, 116, .07) 0%, transparent 55%),
    linear-gradient(135deg, #fff8fa 0%, #fff 58%, #fafafa 100%);
  box-shadow: 0 1px 2px rgba(20, 20, 31, .03);
}
.pm-like-banner-copy {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
  flex: 1 1 12rem;
}
.pm-like-banner-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text, #14141f);
  line-height: 1.25;
}
.pm-like-banner-hint {
  font-size: .82rem;
  color: var(--text-3, #8b8b9e);
  font-weight: 500;
  line-height: 1.35;
}
.pm-like-banner-action {
  flex: 0 0 auto;
}
.pm-like-banner .pld-like-dislike-wrap {
  display: block !important;
  margin: 0 !important;
}
.pm-like-banner .pld-dislike-wrap {
  display: none !important;
}

/* Pill button (default) */
.pm-like-banner .pld-like-wrap.pld-common-wrap,
.pm-like-banner .pld-common-wrap {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 !important;
  min-height: 48px;
  padding: .3rem .35rem .3rem .9rem;
  border-radius: 12px;
  border: 1.5px solid var(--pm-like-border) !important;
  background: #fff !important;
  color: var(--pm-like) !important;
  box-shadow: 0 2px 0 rgba(196, 91, 116, .12);
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.pm-like-banner .pld-like-dislike-trigger,
.pm-like-banner a.pld-like-dislike-trigger,
.pm-like-banner a.pld-like-trigger,
.pm-like-banner a.pld-prevent,
.pm-like-banner a.pld-undo-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pm-like) !important;
  font-weight: 750 !important;
  font-size: .95rem !important;
  letter-spacing: -.01em;
  text-decoration: none !important;
  min-height: auto !important;
  line-height: 1.15 !important;
}
/* Kill PLD gray label #5d5d5d */
.pm-like-banner .pld-like-dislike-wrap .pld-like-label,
.pm-like-banner .pld-like-label,
.pm-like-banner span.pld-like-label {
  display: inline !important;
  color: var(--pm-like) !important;
  font-size: .95rem !important;
  font-weight: 750 !important;
  white-space: nowrap;
  opacity: 1 !important;
}
.pm-like-banner .pld-like-icon,
.pm-like-banner svg.pld-like-icon {
  width: 20px !important;
  height: 20px !important;
  display: block;
  fill: currentColor !important;
  color: inherit !important;
  flex: 0 0 auto;
  opacity: 1 !important;
}
.pm-like-banner .pld-count-wrap,
.pm-like-banner .pld-like-count-wrap,
.pm-like-banner .pld-like-count,
.pm-like-banner .pld-like-dislike-wrap .pld-count-wrap {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 2em;
  min-height: 2em;
  margin: 0 !important;
  padding: 0 .5em;
  border-radius: 9px;
  background: var(--pm-like-soft) !important;
  color: var(--pm-like-text) !important;
  font-weight: 800 !important;
  font-size: .9rem !important;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  opacity: 1 !important;
}

/* Liked — soft rose fill, dark rose text (NOT gray, NOT neon red) */
.pm-like-banner.is-liked,
.pm-like-banner:has(.is-liked),
.pm-like-banner:has([data-already-liked="1"]),
.pm-like-banner:has(.pld-undo-trigger) {
  border-color: rgba(196, 91, 116, .22);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(196, 91, 116, .1) 0%, transparent 55%),
    linear-gradient(135deg, #fff0f4 0%, #fff 55%, #fafafa 100%);
}
.pm-like-banner.is-liked .pm-like-banner-title,
.pm-like-banner:has(.pld-undo-trigger) .pm-like-banner-title {
  color: var(--pm-like-text);
}
.pm-like-banner.is-liked .pm-like-banner-hint,
.pm-like-banner:has(.pld-undo-trigger) .pm-like-banner-hint {
  color: #b06a7d;
}

.pm-like-banner.is-liked .pld-common-wrap,
.pm-like-banner .pld-like-dislike-wrap.is-liked .pld-common-wrap,
.pm-like-banner .pld-like-dislike-wrap[data-liked="1"] .pld-common-wrap,
.pm-like-banner:has(.pld-undo-trigger) .pld-common-wrap,
.pm-like-banner:has([data-already-liked="1"]) .pld-common-wrap {
  background: var(--pm-like-soft) !important;
  border-color: var(--pm-like-border) !important;
  color: var(--pm-like-text) !important;
  box-shadow: 0 2px 0 rgba(196, 91, 116, .1);
}

.pm-like-banner.is-liked .pld-like-dislike-trigger,
.pm-like-banner.is-liked a.pld-like-dislike-trigger,
.pm-like-banner.is-liked a.pld-prevent,
.pm-like-banner.is-liked a.pld-undo-trigger,
.pm-like-banner .pld-undo-trigger,
.pm-like-banner a.pld-undo-trigger,
.pm-like-banner a.pld-prevent.pld-undo-trigger,
.pm-like-banner [data-already-liked="1"] {
  color: var(--pm-like-text) !important;
}

.pm-like-banner.is-liked .pld-like-label,
.pm-like-banner.is-liked .pld-like-dislike-wrap .pld-like-label,
.pm-like-banner .pld-undo-trigger .pld-like-label,
.pm-like-banner a.pld-undo-trigger .pld-like-label,
.pm-like-banner a.pld-prevent .pld-like-label,
.pm-like-banner [data-already-liked="1"] .pld-like-label,
.pm-like-banner .is-liked .pld-like-label {
  color: var(--pm-like-text) !important;
  opacity: 1 !important;
}

.pm-like-banner.is-liked .pld-count-wrap,
.pm-like-banner.is-liked .pld-like-count-wrap,
.pm-like-banner:has(.pld-undo-trigger) .pld-count-wrap,
.pm-like-banner .is-liked .pld-count-wrap {
  background: #fff !important;
  color: var(--pm-like-text) !important;
  border: 1px solid var(--pm-like-border);
}

/* Liked = locked (no undo cursor / no “click me again”) */
.pm-like-banner.is-liked .pld-common-wrap,
.pm-like-banner .pld-like-dislike-trigger.is-liked-locked,
.pm-like-banner .pld-like-dislike-trigger.pld-prevent {
  cursor: default !important;
}
.pm-like-banner.is-liked .pld-common-wrap:hover,
.pm-like-banner .is-liked-locked:hover {
  filter: none;
}

@media (max-width: 560px) {
  .pm-like-banner {
    flex-direction: column;
    align-items: stretch;
    padding: .85rem .9rem;
    gap: .65rem;
  }
  .pm-like-banner-action,
  .pm-like-banner .pld-common-wrap {
    width: 100%;
  }
  .pm-like-banner .pld-like-dislike-trigger,
  .pm-like-banner .pld-like-label {
    font-size: 1rem !important;
  }
  .pm-like-banner .pld-common-wrap {
    min-height: 50px;
    justify-content: center;
  }
}

/* Hide leftover float */
.pm-like-float { display: none !important; }
.pm-edit-link {
  font-size: .78rem;
  color: var(--text-3);
}
.pm-edit-link a {
  color: var(--text-3) !important;
  text-decoration: none !important;
}
.pm-edit-link a:hover { color: var(--text) !important; }

/* CTA */
.pm-cta-premium {
  background: linear-gradient(145deg, #14141f 0%, #1c1c28 100%);
  border: 0;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  margin: 0;
  color: #fff;
}
.pm-cta-premium-inner {
  display: flex;
  align-items: flex-start;
  gap: .95rem;
  flex-wrap: wrap;
}
.pm-cta-premium-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(13, 159, 110, .2);
  color: #a78bfa;
  flex: 0 0 auto;
}
.pm-cta-premium-text { flex: 1; min-width: 200px; }
.pm-cta-premium-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: .25rem;
}
.pm-cta-premium-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .25rem;
  color: #fff;
}
.pm-cta-premium-desc {
  font-size: .84rem;
  color: rgba(255, 255, 255, .55);
  margin: 0;
  line-height: 1.45;
}
.pm-cta-premium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.pm-cta-premium-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 .8rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 650;
  text-decoration: none !important;
  color: #14141f !important;
  background: #fff !important;
}
.pm-cta-premium-btn:hover { background: #e4e4e7 !important; color: #14141f !important; }
.pm-cta-premium-btn-vk { background: #4a76a8 !important; color: #fff !important; }
.pm-cta-premium-btn-tg { background: #229ed9 !important; color: #fff !important; }
.pm-cta-premium-btn-max { background: #fff !important; color: #14141f !important; }

/* Related — compact, white cards (no gray slabs) */
.pm-related {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}
.pm-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 .7rem;
  padding: 0 .1rem .55rem;
  border-bottom: 1px solid var(--border);
}
.pm-related-title {
  font-size: .95rem;
  font-weight: 750;
  letter-spacing: -.02em;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
}
.pm-related-nav {
  display: flex;
  gap: .3rem;
  flex: 0 0 auto;
}
.pm-related-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface) !important;
  color: var(--text-2) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 !important;
  min-height: 32px !important;
  box-shadow: none !important;
}
.pm-related-btn:hover {
  background: var(--surface) !important;
  border-color: var(--border-2);
  color: var(--text) !important;
}
.pm-related-viewport {
  position: relative;
  margin: 0;
}
.pm-related-scroll,
.pm-related-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: .6rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: .05rem .05rem .2rem;
}
.pm-related-scroll::-webkit-scrollbar,
.pm-related-grid::-webkit-scrollbar { display: none; height: 0; width: 0; }
.pm-related-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 0 0 min(168px, 46vw);
  width: min(168px, 46vw);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  text-decoration: none !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  scroll-snap-align: start;
}
.pm-related-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: var(--text) !important;
}
.pm-related-thumb {
  aspect-ratio: 16 / 10;
  background: #ececf3;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.pm-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.pm-related-card:hover .pm-related-thumb img {
  transform: scale(1.04);
}
.pm-related-thumb--empty {
  min-height: 0;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eef0f5, #e4e6ee);
}
.pm-related-name {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: -.015em;
  padding: .55rem .6rem .65rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
}

/* Stack under article: CTA / related / ads / comments */
body.single .site-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
body.single .site-main > .pm-single,
body.single .site-main > .pm-cta-premium,
body.single .site-main > .pm-related,
body.single .site-main > .pm-rtb,
body.single .site-main > .pm-comments,
body.single .site-main > .comments-area {
  margin: 0 !important;
}

/* Yandex.RTB — LCP-safe (critical):
   NEVER use display:none on pending slots — IntersectionObserver cannot see
   display:none boxes, so ads never arm/render.
   Pending = zero-height layout box (still has geometry for IO + rootMargin).
   loading/filled = visible min-height for Ya measure + user.
   empty/[hidden] = collapsed again. */
.pm-rtb {
  display: block;
  width: 100%;
  max-height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  content-visibility: auto;
  contain-intrinsic-size: 0 1px;
}
.pm-rtb.is-loading,
.pm-rtb.is-filled {
  max-height: none;
  min-height: 90px;
  opacity: 1;
  pointer-events: auto;
  content-visibility: visible;
  contain-intrinsic-size: auto 90px;
}
.pm-rtb.is-loading {
  background: transparent;
}
.pm-rtb[hidden],
.pm-rtb[data-rtb-state="empty"] {
  display: none !important;
  max-height: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}
.pm-rtb-inline,
.pm-rtb-wrap {
  display: block;
  max-height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  content-visibility: auto;
}
.pm-rtb-inline.is-loading,
.pm-rtb-inline.is-filled {
  max-height: none;
  opacity: 1;
  pointer-events: auto;
  padding: .75rem var(--pm-pad-x, 1.35rem) .25rem;
  content-visibility: visible;
}
.pm-rtb-wrap.is-loading,
.pm-rtb-wrap.is-filled {
  max-height: none;
  opacity: 1;
  pointer-events: auto;
  content-visibility: visible;
}
.pm-rtb--post-top.is-loading,
.pm-rtb--post-top.is-filled {
  min-height: 120px;
}
.pm-rtb--post-mid.is-loading,
.pm-rtb--post-mid.is-filled,
.pm-rtb--post-low.is-loading,
.pm-rtb--post-low.is-filled {
  min-height: 140px;
}
.pm-rtb--download.is-loading,
.pm-rtb--download.is-filled {
  min-height: 200px;
  max-height: 320px;
}
/* Wiki RTB — after hero (below LCP hero image) */
.pm-rtb-inline--wiki.is-loading,
.pm-rtb-inline--wiki.is-filled {
  max-height: none;
  opacity: 1;
  pointer-events: auto;
  padding: .65rem 0 .35rem;
  margin: 0 0 .85rem;
  content-visibility: visible;
}
.pm-rtb--wiki.is-loading,
.pm-rtb--wiki.is-filled {
  min-height: 120px;
  border-radius: 14px;
}

@media (max-width: 720px) {
  .pm-single {
    --pm-pad-x: 1rem;
    --pm-pad-y: 1rem;
  }
  .pm-single-cover { aspect-ratio: 16 / 9; max-height: none; }
  .pm-single-title { font-size: 1.28rem; }
  .pm-cta-premium-inner { flex-direction: column; }
}

/* ==========================================================================
   8. SIDEBAR
   ========================================================================== */
.pm-sidebar {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.pm-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .7rem .75rem;
  box-shadow: none;
}
.pm-side-card--accent,
.pm-side-card--soft { display: none !important; }
.pm-side-card--accent {
  background: linear-gradient(160deg, #14141f 0%, #252536 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.pm-side-card--accent .pm-side-kicker { color: rgba(255, 255, 255, .5); }
.pm-side-card--accent .pm-side-title { color: #fff; }
.pm-side-card--accent .pm-side-text { color: rgba(255, 255, 255, .65); }
.pm-side-card--accent .pm-side-btn {
  background: #fff !important;
  color: var(--text) !important;
}
.pm-side-card--accent .pm-side-btn:hover {
  background: #f0f0f5 !important;
}
.pm-side-card--soft {
  background: var(--accent-soft);
  border-color: transparent;
}
.pm-side-kicker {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .3rem;
}
.pm-side-title {
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: -.015em;
  margin: 0 0 .4rem;
  border: 0;
  padding: 0;
}
.pm-side-text {
  font-size: .8rem;
  color: var(--text-3);
  margin: 0 0 .75rem;
  line-height: 1.45;
}
.pm-side-group {
  margin: .85rem 0 .35rem;
  padding: 0 .15rem;
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pm-side-group:first-of-type {
  margin-top: .15rem;
}
.pm-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pm-side-list li { margin: 0; padding: 0; border: 0; }
.pm-side-list a {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .32rem .35rem;
  border-radius: 8px;
  color: var(--text) !important;
  font-weight: 550;
  font-size: .8rem;
  text-decoration: none !important;
  transition: background var(--ease), color var(--ease);
}
.pm-side-list a:hover {
  background: var(--accent-soft);
  color: var(--accent-text) !important;
}
.pm-side-list a:hover .pm-side-ico {
  background: #fff;
  color: var(--accent-text);
}
.pm-side-card--soft .pm-side-list a:hover {
  background: rgba(255, 255, 255, .7);
}
.pm-side-ico {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  background: #f3f3f8;
  border: 1px solid var(--border);
  border-radius: 6px;
  flex: 0 0 auto;
}
.pm-side-card--soft .pm-side-ico {
  background: var(--surface);
  color: var(--accent-text);
}
.pm-side-ico .pm-icon { width: 14px; height: 14px; }
.pm-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.pm-side-btn {
  min-height: 36px;
  font-size: .8rem;
}
.pm-side-btn .pm-icon { width: 14px; height: 14px; }
.pm-side-widgets .widget { margin-top: .15rem; }

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem;
  margin-bottom: .75rem;
  box-shadow: var(--shadow-xs);
}
.widget-title,
.widget h2,
.widget h3 {
  font-size: .85rem;
  margin: 0 0 .7rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--border);
  font-weight: 650;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li {
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
}
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--text-2); }
.widget a:hover { color: var(--text); }

/* ==========================================================================
   9. COMMENTS
   ========================================================================== */
.pm-comments,
.comments-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  margin-top: 0;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.pm-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.pm-comments-head-left {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-width: 0;
}
.pm-comments-ico {
  width: 42px;
  height: 42px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  flex: 0 0 auto;
}
.pm-comments-title,
.comments-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 .15rem;
  padding: 0;
  border: 0;
}
.pm-comments-sub {
  margin: 0;
  font-size: .8rem;
  color: var(--text-3);
  line-height: 1.4;
}
.pm-comments-count-pill {
  min-width: 36px;
  height: 36px;
  padding: 0 .55rem;
  border-radius: var(--r-full);
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.pm-comments-empty {
  text-align: center;
  padding: 1.75rem 1.2rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.pm-comments-empty-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto .7rem;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text-3);
  display: grid;
  place-items: center;
}
.pm-comments-empty-title {
  margin: 0 0 .25rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}
.pm-comments-empty-text {
  margin: 0;
  font-size: .85rem;
  color: var(--text-3);
}
.pm-comment-list,
.comment-list {
  list-style: none;
  margin: 0;
  padding: .35rem 0;
}
.pm-comment,
.comment-list > .comment {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.pm-comment-card {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.pm-comment:last-child > .pm-comment-card { border-bottom: 0; }
.pm-comment-card:hover { background: rgba(244, 244, 248, .55); }
.pm-comment-avatar-wrap {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}
.pm-comment-avatar,
.comment-list .avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  display: block;
}
.pm-comment-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent-soft), var(--t-blue));
  color: var(--accent-text);
  font-weight: 700;
  font-size: .95rem;
}
.pm-comment-main { flex: 1; min-width: 0; }
.pm-comment-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
  margin-bottom: .4rem;
}
.pm-comment-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .5rem;
  min-width: 0;
}
.pm-comment-name,
.pm-comment-author-text .fn {
  font-size: .875rem;
  font-weight: 650;
  color: var(--text);
}
.pm-comment-name a { color: inherit; text-decoration: none; }
.pm-comment-name a:hover { color: var(--accent); }
.pm-comment-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .12rem .4rem;
  border-radius: 4px;
  line-height: 1.3;
}
.pm-comment-badge--admin {
  background: var(--text);
  color: #fff;
}
.pm-comment-badge--author {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.pm-comment-time {
  font-size: .72rem;
  color: var(--text-3);
  text-decoration: none;
  font-weight: 500;
}
.pm-comment-time:hover { color: var(--text-2); }
.pm-comment-reply a,
.comment-reply-link {
  font-size: .72rem;
  font-weight: 650;
  color: var(--text-3) !important;
  text-decoration: none !important;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .28rem .55rem;
  background: var(--surface);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
  white-space: nowrap;
}
.pm-comment-reply a:hover,
.comment-reply-link:hover {
  color: var(--text) !important;
  border-color: var(--border-2);
  background: var(--surface-2);
}
.pm-comment-content,
.comment-content {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.55;
}
.pm-comment-content p { margin: 0 0 .5em; }
.pm-comment-content p:last-child { margin-bottom: 0; }
.pm-comment-awaiting {
  font-size: .78rem;
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: .35rem .55rem;
  margin: 0 0 .45rem;
}
.comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0;
  background: var(--bg);
}
.comment-list .children .pm-comment-card {
  padding-left: 1.5rem;
  margin-left: 1.4rem;
  border-left: 2px solid var(--accent);
  background: transparent;
}
@media (max-width: 560px) {
  .comment-list .children .pm-comment-card {
    margin-left: .5rem;
    padding-left: 1rem;
  }
}

/* Compose form */
.pm-compose,
.pm-comment-form,
.comment-form {
  margin: 0;
  padding: 1.15rem 1.2rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.pm-compose-title,
.comment-form #reply-title,
.comment-reply-title {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 .85rem;
  color: var(--text);
}
.pm-compose-cancel a,
#cancel-comment-reply-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-3);
  margin-left: .35rem;
}
.pm-compose-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: .65rem;
}
@media (max-width: 560px) {
  .pm-compose-row { grid-template-columns: 1fr; }
}
.pm-compose-field label,
.comment-form label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: .3rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pm-compose-field input,
.pm-compose-field textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  border-radius: var(--r-sm) !important;
  padding: .7rem .8rem !important;
  color: var(--text) !important;
  font-size: .9rem !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color var(--ease), box-shadow var(--ease);
  resize: vertical;
  min-height: 0;
}
.pm-compose-field--full { margin-bottom: .75rem; }
.pm-compose-field textarea,
.comment-form textarea {
  min-height: 110px;
  line-height: 1.5;
}
.pm-compose-field input:focus,
.pm-compose-field textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--text) !important;
  box-shadow: 0 0 0 3px rgba(20, 20, 31, .06) !important;
}
.pm-compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .15rem;
}
.pm-compose-submit,
.comment-form .pm-btn,
.comment-form input[type="submit"] {
  min-height: 40px;
  padding: 0 1.15rem;
  border-radius: var(--r-sm);
}
.pm-comments-nav {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin: 0;
  padding: .65rem 1.2rem;
  font-size: .8rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.pm-comments-nav a { color: var(--text-3); text-decoration: none; }
.pm-comments-nav a:hover { color: var(--text); }
.pm-comments-closed {
  margin: 0;
  padding: 1rem 1.2rem;
  color: var(--text-3);
  font-size: .9rem;
}

/* Featured strip (no bxslider) */
.pm-featured { margin: 0 0 1.15rem; }
.pm-featured-track {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .15rem;
}
.pm-featured-card {
  flex: 0 0 min(280px, 78vw);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.pm-featured-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  height: 100%;
}
.pm-featured-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}
.pm-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-featured-body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .75rem .85rem .9rem;
}
.pm-featured-body .entry-title {
  font-size: .9rem;
  font-weight: 650;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   10. PAGINATION / FORMS / 404 / SEARCH RESULTS
   ========================================================================== */
.pagination,
.nav-links,
.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 1.25rem 0;
  align-items: center;
}
.pagination a,
.pagination span,
.page-numbers {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 .55rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  font-size: .8rem;
  box-shadow: var(--shadow-xs);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.pagination a:hover,
.page-numbers:hover {
  border-color: var(--border-2);
  color: var(--text);
}
.pagination .current,
.page-numbers.current {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  box-shadow: none;
}

.search-form {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.search-form label { flex: 1; margin: 0; }
.search-form .search-field {
  width: 100%;
  padding: .8rem 1rem;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}
.search-form .search-submit {
  border-radius: 0;
  min-height: 100%;
}
.search-result-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: .85rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease), border-color var(--ease);
}
.search-result-item:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}
.search-result-item .search-thumbnail {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
}
.search-result-item .search-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-result-item .search-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 700px) {
  .search-result-item { flex-direction: column; }
  .search-result-item .search-thumbnail {
    width: 100%;
    height: 160px;
  }
}

.error-404-wrapper {
  text-align: center;
  padding: 2.75rem 1rem;
  max-width: 720px;
  margin: 0 auto;
}
.error-404-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  margin: 0 auto .95rem;
  box-shadow: var(--shadow-xs);
}
.error-404 .page-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: .4rem;
}
.error-404 .page-subtitle {
  color: var(--text-3);
  margin-bottom: 1.35rem;
}
.error-404-search {
  max-width: 480px;
  margin: 0 auto 1.6rem;
}
.error-404-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
}
.error-404-link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1rem;
  text-decoration: none !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.error-404-link-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.error-404-card-ico {
  display: inline-flex;
  color: var(--text-3);
  margin-bottom: .4rem;
}
.error-404-link-card h3 {
  margin: .15rem 0 .3rem;
  font-size: .95rem;
}
.error-404-link-card p {
  margin: 0;
  font-size: .8rem;
  color: var(--text-3);
  font-weight: 500;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.pm-footer,
.site-footer {
  margin-top: auto;
  background: #0f0f14;
  color: #a1a1aa;
  border-top: 0;
}
.pm-footer-cta {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, #16161d 0%, #0f0f14 100%);
}
.pm-footer-cta-inner {
  width: min(100% - 1.5rem, var(--container));
  margin: 0 auto;
  padding: 1.35rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pm-footer-cta-text {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
  flex: 1 1 12rem;
}
.pm-footer-cta-text strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.pm-footer-cta-text span {
  font-size: .85rem;
  color: #71717a;
  max-width: 46ch;
  line-height: 1.45;
}
.pm-footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  flex: 0 0 auto;
}
.pm-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 1rem;
  border-radius: 9px;
  background: #fff;
  color: #14141f !important;
  font-weight: 650;
  font-size: .82rem;
  text-decoration: none !important;
}
.pm-footer-cta-btn:hover { background: #e4e4e7; color: #14141f !important; }
.pm-footer-cta-btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .14);
}
.pm-footer-cta-btn--ghost:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff !important;
}

.pm-footer-inner {
  width: min(100% - 1.5rem, var(--container));
  margin: 0 auto;
  padding: 2.35rem 0 1.4rem;
}
.pm-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 1.75rem 1.35rem;
}
/* Tablet / mobile: brand full-width, link cols stay 2-up (never 1-col stack) */
@media (max-width: 900px) {
  .pm-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem .9rem;
  }
  .pm-footer-brand { grid-column: 1 / -1; }
}
.pm-footer-brand p {
  margin: .75rem 0 1rem;
  font-size: .85rem;
  color: #71717a;
  max-width: 34ch;
  line-height: 1.55;
}
.pm-footer-brand img {
  height: 26px;
  width: auto;
  filter: none;
  opacity: .95;
}
.pm-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.pm-footer-soc,
.pm-footer-social a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  font-size: .75rem;
  font-weight: 600;
  color: #d4d4d8 !important;
  text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s;
}
.pm-footer-soc:hover,
.pm-footer-social a:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: #fff !important;
}
.pm-footer-col h3 {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #71717a;
  margin: 0 0 .75rem;
}
.pm-footer-col a {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: #d4d4d8 !important;
  text-decoration: none !important;
  padding: .28rem 0;
  transition: color .15s;
}
.pm-footer-col a:hover { color: #fff !important; }
.pm-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.1rem;
  justify-content: space-between;
  font-size: .78rem;
  color: #71717a;
}
.pm-footer-bottom a {
  color: #a1a1aa;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pm-footer-bottom a:hover { color: #fff; }

/* Mobile compact footer */
@media (max-width: 640px) {
  .pm-footer-cta-inner {
    width: min(100% - 1rem, var(--container));
    padding: .85rem 0;
    gap: .55rem .65rem;
  }
  .pm-footer-cta-text strong {
    font-size: .9rem;
  }
  .pm-footer-cta-text span {
    font-size: .75rem;
    line-height: 1.35;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pm-footer-cta-btn {
    height: 34px;
    padding: 0 .8rem;
    font-size: .78rem;
    border-radius: 8px;
  }

  .pm-footer-inner {
    width: min(100% - 1rem, var(--container));
    padding: 1.15rem 0 .95rem;
  }
  .pm-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: .85rem .55rem;
  }
  .pm-footer-brand {
    grid-column: 1 / -1;
    margin-bottom: .15rem;
  }
  .pm-footer-brand img {
    height: 22px;
  }
  .pm-footer-brand p {
    margin: .4rem 0 .55rem;
    font-size: .75rem;
    line-height: 1.4;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pm-footer-social {
    gap: .3rem;
  }
  .pm-footer-soc,
  .pm-footer-social a {
    height: 28px;
    padding: 0 .55rem;
    font-size: .68rem;
  }
  .pm-footer-col h3 {
    font-size: .62rem;
    letter-spacing: .06em;
    margin: 0 0 .4rem;
  }
  .pm-footer-col a {
    font-size: .78rem;
    padding: .16rem 0;
    line-height: 1.3;
  }
  .pm-footer-bottom {
    margin-top: 1rem;
    padding-top: .75rem;
    gap: .35rem .75rem;
    font-size: .7rem;
  }
}

@media (max-width: 380px) {
  .pm-footer-cta-actions {
    width: 100%;
  }
  .pm-footer-cta-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .pm-footer-grid {
    gap: .7rem .4rem;
  }
  .pm-footer-col a {
    font-size: .74rem;
    padding: .12rem 0;
  }
}

.pm-backtop,
#back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 0;
  background: var(--text) !important;
  color: #fff !important;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
  opacity: 0;
  box-shadow: var(--shadow);
}
.pm-backtop:hover,
#back-top:hover { background: #2a2a3a !important; }

/* ==========================================================================
   13. DOWNLOAD / PAGES / MISC
   ========================================================================== */
#pm-download-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: .5rem 0 2rem;
}
.enjoynow-download-card,
.pm-download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.3rem;
  margin-bottom: .9rem;
  box-shadow: var(--shadow-xs);
}
.pm-download-btn,
.enjoynow-download-btn {
  min-height: 42px;
  padding: 0 1.15rem;
  font-weight: 650;
}
#pm-download-wrapper .pm-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: 1.1rem;
}
@media (min-width: 720px) {
  #pm-download-wrapper .pm-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#pm-download-wrapper .pm-bento-tile {
  display: flex;
  gap: .8rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--r-lg);
  text-decoration: none !important;
  color: var(--text) !important;
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 100px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
#pm-download-wrapper .pm-bento-tile:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
#pm-download-wrapper .pm-bento-title {
  font-weight: 650;
  font-size: .925rem;
}
#pm-download-wrapper .pm-bento-sub {
  font-size: .8rem;
  color: var(--text-3);
}
#pm-download-wrapper .pm-bento-media {
  width: 56px;
  height: 56px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.page .entry-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.15rem, 2.4vw, 1.55rem);
  box-shadow: var(--shadow-xs);
}
.breadcrumbs:not(.pm-single-breadcrumbs):not(.pm-archive-bc) {
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: .8rem;
}
.no-results,
.not-found {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.15rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.pm-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Full-width page-nav */
body.page-template-page-nav #content.site-content {
  grid-template-columns: 1fr;
  max-width: min(100% - 2rem, 1100px);
}
body.page-template-page-nav #secondary { display: none; }

/* Minecraft-style 3D button (WPDM / .mc-button / float) */
.mc-button,
.w3eden .btn-primary,
.w3eden a.wpdm-download-link,
.w3eden a.download-button-pm,
a.wpdm-download-link,
a.download-button-pm {
  background: #3b8526 !important;
  -webkit-box-shadow: inset 0 4px #6bc349, inset 0 -4px #2a631c, 0 4px rgba(0, 0, 0, .25) !important;
  box-shadow: inset 0 4px #6bc349, inset 0 -4px #2a631c, 0 4px rgba(0, 0, 0, .25) !important;
  color: #fff !important;
  text-shadow: 0 1px 0 #2a631c !important;
  padding: 12px 22px !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  border: 0 !important;
  z-index: 1;
  user-select: none;
  cursor: pointer;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  white-space: unset;
  text-decoration: none !important;
  transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.mc-button:hover,
.w3eden .btn-primary:hover,
.w3eden a.wpdm-download-link:hover,
.w3eden a.download-button-pm:hover,
a.wpdm-download-link:hover,
a.download-button-pm:hover {
  background: #368024 !important;
  color: #fff !important;
}
.mc-button:active,
.w3eden .btn-primary:active,
.w3eden a.wpdm-download-link:active,
.w3eden a.download-button-pm:active,
a.wpdm-download-link:active,
a.download-button-pm:active {
  transform: translateY(1px);
  -webkit-box-shadow: inset 0 3px #6bc349, inset 0 -3px #2a631c, 0 3px rgba(0, 0, 0, .25) !important;
  box-shadow: inset 0 3px #6bc349, inset 0 -3px #2a631c, 0 3px rgba(0, 0, 0, .25) !important;
}
.w3eden .panel,
.w3eden .card {
  border-radius: var(--r) !important;
  border-color: var(--border) !important;
}

/* ==========================================================================
   Install guides (.pm-guide) — maps / mods / textures / skins / shaders
   ========================================================================== */
.pm-guide {
  margin: 0 1.4rem 1.25rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.pm-guide-head,
.pm-guide-toggle {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.pm-guide-title {
  display: block;
}
.pm-guide-chevron {
  flex: 0 0 auto;
}
.pm-guide-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.pm-guide-badge svg {
  display: block;
}
.pm-guide-kicker {
  margin: 0 0 .15rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.pm-guide-title {
  margin: 0 0 .25rem !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.3;
}
.pm-guide-lead {
  margin: 0;
  font-size: .9rem;
  color: var(--text-3);
  line-height: 1.45;
}
.pm-guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.pm-guide-step {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.pm-guide-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: .1rem;
}
.pm-guide-step-body {
  flex: 1;
  min-width: 0;
}
.pm-guide-step-body strong {
  display: block;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .2rem;
}
.pm-guide-step-body p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.55;
}
.pm-guide-paths {
  list-style: none;
  margin: .45rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.pm-guide-paths li {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .55rem;
  align-items: baseline;
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.45;
}
.pm-guide-plat {
  display: inline-block;
  min-width: 4.5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pm-guide-paths code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: .15rem .4rem;
  color: var(--text);
  word-break: break-all;
}
.pm-guide-note {
  margin-top: 1rem;
  padding: .7rem .85rem;
  background: var(--warn-soft);
  border: 1px solid rgba(217, 119, 6, .18);
  border-radius: var(--r);
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.5;
}
.pm-guide-note strong {
  color: var(--warn);
  font-weight: 600;
}

/* Accent tints per guide type */
.pm-guide--maps .pm-guide-badge { background: var(--t-blue); color: #2563eb; }
.pm-guide--mods .pm-guide-badge { background: var(--t-green); color: #0a7a54; }
.pm-guide--textures .pm-guide-badge { background: var(--t-pink); color: #db2777; }
.pm-guide--skins .pm-guide-badge { background: var(--t-cyan); color: #0891b2; }
.pm-guide--shaders .pm-guide-badge { background: var(--t-yellow); color: #b45309; }

@media (max-width: 640px) {
  .pm-guide {
    margin: 0 .85rem 1rem;
    padding: 1rem .95rem 1.05rem;
  }
  .pm-guide-head {
    gap: .7rem;
  }
  .pm-guide-badge {
    width: 40px;
    height: 40px;
  }
  .pm-guide-title {
    font-size: 1.05rem;
  }
}


/* ==========================================================================
   Floating "go to file" — center bottom, square MC 3D button
   ========================================================================== */
.pm-dl-float {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 1.1rem));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 0;
  max-width: calc(100vw - 1.5rem);
  min-height: 48px;
  padding: 12px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
  font: inherit;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .6px !important;
  text-transform: uppercase !important;
  white-space: nowrap;
  color: #fff !important;
  text-shadow: 0 1px 0 #2a631c !important;
  background: #3b8526 !important;
  -webkit-box-shadow: inset 0 4px #6bc349, inset 0 -4px #2a631c, 0 4px rgba(0, 0, 0, .25) !important;
  box-shadow: inset 0 4px #6bc349, inset 0 -4px #2a631c, 0 4px rgba(0, 0, 0, .25) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 180ms cubic-bezier(.2, .7, .2, 1),
    transform 180ms cubic-bezier(.2, .7, .2, 1),
    visibility 180ms,
    background-color .15s ease,
    box-shadow .15s ease;
}
.pm-dl-float.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.pm-dl-float:hover {
  background: #368024 !important;
  color: #fff !important;
}
.pm-dl-float:active {
  transform: translate(-50%, 1px);
  -webkit-box-shadow: inset 0 3px #6bc349, inset 0 -3px #2a631c, 0 3px rgba(0, 0, 0, .25) !important;
  box-shadow: inset 0 3px #6bc349, inset 0 -3px #2a631c, 0 3px rgba(0, 0, 0, .25) !important;
}
.pm-dl-float-ico {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  opacity: .95;
}
.pm-dl-float-ico svg {
  display: block;
  width: 18px;
  height: 18px;
}
.pm-dl-float-txt {
  line-height: 1;
}
.pm-dl-float-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  height: 1.35em;
  margin-left: .15rem;
  padding: 0 .28em;
  border-radius: 0;
  background: rgba(0, 0, 0, .22);
  font-size: .78em;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.pm-dl-target-pulse {
  animation: pmDlPulse 1.25s ease;
  position: relative;
  z-index: 1;
}
@keyframes pmDlPulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 133, 38, .45); }
  40% { box-shadow: 0 0 0 8px rgba(59, 133, 38, .18); }
  100% { box-shadow: 0 0 0 0 rgba(59, 133, 38, 0); }
}

@media (max-width: 640px) {
  .pm-dl-float {
    min-height: 46px;
    padding: 11px 14px !important;
    font-size: 12px !important;
    letter-spacing: .4px !important;
    bottom: max(1.05rem, calc(env(safe-area-inset-bottom, 0px) + .95rem));
  }
}
