/* ==========================================================================
   Single post — follows the new homepage concept (dark, Poppins 300, red accent)
   ========================================================================== */

.ps,
.ps-progress {
  --hn-ease: cubic-bezier(.16, .84, .44, 1);
  --bg: #14161d;
  --bg-2: #191c24;
  --bg-3: #1e2029;
  --line: rgba(172, 160, 155, .16);
  --line-2: rgba(172, 160, 155, .32);
  --white: #f5f2f1;
  --c2: #aca09b;
  --c3: #707070;
  --c4: #877d7a;
  --accent: #b6103c;
  --accent-soft: rgba(182, 16, 60, .14);
  --accent-text: #e0546e;
  --font: "Poppins", system-ui, sans-serif;
}

.ps {
  font-family: var(--font);
  font-weight: 300;
  color: var(--c2);
}

.ps *,
.ps *::before,
.ps *::after { box-sizing: border-box; }

.ps-wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 60px;
}

.ps-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-text);
  text-decoration: none;
}
.ps-kicker i {
  width: 34px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
  transition: width .5s var(--hn-ease);
}
a.ps-kicker:hover { color: var(--white); }
a.ps-kicker:hover i { width: 48px; }

.ps-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--white);
  text-decoration: none;
}
.ps-link svg { transition: transform .4s var(--hn-ease); color: var(--accent-text); }
.ps-link:hover svg { transform: translateX(4px); }

/* --- reading progress --- */
.ps-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 9999;
  pointer-events: none;
}
.ps-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, rgba(182, 16, 60, .4), var(--accent));
  box-shadow: 0 0 10px rgba(182, 16, 60, .6);
}
[dir="rtl"] .ps-progress span { transform-origin: 100% 50%; }

/* ==========================================================================
   Hero
   ========================================================================== */
/* the hero background reaches up behind the site header (which has no background
   of its own) so header and hero read as one block; 160px covers the tallest header */
.ps-hero {
  --hero-top: 72px;
  position: relative;
  isolation: isolate;
  padding: var(--hero-top) 0 56px;
  border-bottom: 1px solid var(--line);
  clip-path: inset(-160px 0 0 0);
}
.ps-hero::after {
  content: "";
  position: absolute;
  inset: -160px 0 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(182, 16, 60, .12) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.ps-hero__glow {
  position: absolute;
  top: -180px;
  inset-inline-end: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(182, 16, 60, .22), transparent);
  filter: blur(10px);
}
.ps-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.ps-crumbs .rank-math-breadcrumb,
.ps-crumbs .rank-math-breadcrumb p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: .02em;
  color: var(--c3);
}
.ps-crumbs .rank-math-breadcrumb a {
  color: var(--c2);
  font-weight: 300;
  text-decoration: none;
  transition: color .3s;
}
.ps-crumbs .rank-math-breadcrumb a:hover { color: var(--white); }
.ps-crumbs .rank-math-breadcrumb .separator { margin: 0 8px; color: var(--c3); }
.ps-crumbs .rank-math-breadcrumb .last { color: var(--c4); }

.ps-title {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--white);
}

.ps-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
  margin-top: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.ps-meta small {
  display: block;
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c3);
}
.ps-meta__author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.ps-meta__author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 1px solid var(--line-2);
    transition: border-color .4s;
}
.ps-meta__author:hover img { border-color: var(--accent); }
.ps-meta__author b {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
}
.ps-meta__sep { width: 1px; height: 34px; background: var(--line); }
.ps-meta__item { font-size: 14px; color: var(--c2); font-feature-settings: "tnum"; }

/* ==========================================================================
   Layout
   ========================================================================== */
.ps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 72px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 96px;
}
.ps-main { min-width: 0; }
/* form sits on top; the TOC below it sticks while reading */
.ps-side { min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 24px; }
.ps-side__sticky {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ps-side__sticky:empty { display: none; }

.ps-cover {
  margin: 0 0 36px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.ps-cover__img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }

/* ==========================================================================
   AI summary
   ========================================================================== */
.ps-ai {
  position: relative;
  margin-bottom: 44px;
  padding: 30px 32px 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(182, 16, 60, .12) 0%, transparent 60%),
    var(--bg-2);
  overflow: hidden;
}
.ps-ai::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(182, 16, 60, .35) 55%, transparent 100%);
}
[dir="rtl"] .ps-ai::before { inset: 0 0 0 auto; }

.ps-ai__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ps-ai__ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid rgba(182, 16, 60, .35);
}
.ps-ai__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--white);
}
.ps-ai__sub { display: block; margin-top: 3px; font-size: 12.5px; color: var(--c3); }

.ps-ai__text {
  margin: 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white);
}

.ps .ps-ai__points {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}
.ps-ai__points li { position: relative; padding-inline-start: 22px; }
.ps-ai__points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .72em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}
.ps-ai__points a {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c2);
  text-decoration: none;
  transition: color .3s;
}
.ps-ai__points a:hover { color: var(--white); }

.ps-ai__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ps-ai__ask { font-size: 12.5px; letter-spacing: .04em; color: var(--c4); }
.ps-ai__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-ai__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  background: rgba(20, 22, 29, .6);
  transition: border-color .35s, background .35s, transform .45s var(--hn-ease);
}
.ps-ai__btn i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--c2)); }
.ps-ai__btn:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--white); transform: translateY(-2px); }
.ps-ai__btn--gpt        { --dot: #10a37f; }
.ps-ai__btn--claude     { --dot: #d97757; }
.ps-ai__btn--perplexity { --dot: #20b8cd; }
.ps-ai__btn--google     { --dot: #4285f4; }
.ps-ai__btn--grok       { --dot: #f5f2f1; }

/* ==========================================================================
   Table of contents
   ========================================================================== */
.ps-toc__head {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--white);
}
.ps-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.ps-toc__list li { margin: 0; }
.ps-toc__list a {
  position: relative;
  display: block;
  padding: 8px 0 8px 18px;
  padding-inline: 18px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c3);
  text-decoration: none;
  border-inline-start: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}
.ps-toc__list li.is-h3 a { padding-inline-start: 32px; font-size: 12.5px; }
.ps-toc__list a:hover { color: var(--white); }
.ps-toc__list a.is-active {
  color: var(--white);
  border-inline-start-color: var(--accent);
}
.ps-toc__list a.is-active::before {
  content: "";
  position: absolute;
  inset-inline-start: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(182, 16, 60, .7);
}

.ps-toc--side {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 26px 24px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.ps-toc--inline { display: none; }

/* ==========================================================================
   Article body
   ========================================================================== */
.ps-content {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.95;
  color: var(--c2);
  overflow-wrap: break-word;
}
.ps-content > *:first-child { margin-top: 0; }

.ps-content p,
.ps-content ul,
.ps-content ol,
.ps-content table,
.ps-content blockquote,
.ps-content figure,
.ps-content iframe { margin: 0 0 26px; }

.ps-content p { font-family: var(--font); font-weight: 300; color: var(--c2); line-height: 1.95; }
.ps-content strong,
.ps-content b { font-weight: 500; color: var(--white); }
.ps-content em { color: var(--white); }

.ps-content h2,
.ps-content h3,
.ps-content h4,
.ps-content h5,
.ps-content h6 {
  font-family: var(--font);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -.01em;
  scroll-margin-top: 90px;
}
.ps-content h2 strong, .ps-content h3 strong, .ps-content h4 strong,
.ps-content h2 b, .ps-content h3 b, .ps-content h4 b { font-weight: 500; }

.ps-content h2 {
  position: relative;
  margin: 64px 0 22px;
  padding-top: 30px;
  font-size: 32px;
  line-height: 1.22;
}
.ps-content h2::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(182, 16, 60, .85) 0, rgba(182, 16, 60, .3) 120px, var(--line) 45%, transparent 100%);
}
[dir="rtl"] .ps-content h2::before {
  background: linear-gradient(270deg, rgba(182, 16, 60, .85) 0, rgba(182, 16, 60, .3) 120px, var(--line) 45%, transparent 100%);
}
.ps-content h3 { margin: 40px 0 14px; font-size: 23px; line-height: 1.32; }
.ps-content h4 { margin: 32px 0 12px; font-size: 19px; line-height: 1.4; font-weight: 400; }
.ps-content h5,
.ps-content h6 { margin: 28px 0 10px; font-size: 16px; line-height: 1.45; font-weight: 400; }

.ps-content a {
  color: var(--accent-text);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(224, 84, 110, .35);
  text-underline-offset: 3px;
  transition: color .3s, text-decoration-color .3s;
}
.ps-content a:hover { color: var(--white); text-decoration-color: var(--accent); }

.ps-content ul,
.ps-content ol { padding: 0; list-style: none; }
.ps-content li { position: relative; margin: 0 0 10px; padding-inline-start: 28px; line-height: 1.85; list-style: none; }
.ps-content ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: .9em;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.ps-content ol { counter-reset: ps-ol; }
.ps-content ol > li { counter-increment: ps-ol; padding-inline-start: 38px; }
.ps-content ol > li::before {
  content: counter(ps-ol, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: .22em;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--accent-text);
  font-feature-settings: "tnum";
}
.ps-content li > ul,
.ps-content li > ol { margin: 10px 0 0; }

.ps-content blockquote {
  position: relative;
  padding: 26px 30px;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-inline-start: 2px solid var(--accent);
  background: var(--bg-2);
  font-size: 18px;
  line-height: 1.8;
  color: var(--white);
}
.ps-content blockquote p { margin: 0; color: var(--white); }
.ps-content blockquote p + p { margin-top: 12px; }
.ps-content blockquote cite { display: block; margin-top: 14px; font-size: 13px; font-style: normal; color: var(--c4); }

.ps-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.ps-content p > img { display: block; margin: 8px auto; }
.ps-content figure { max-width: 100%; }
.ps-content figcaption,
.ps-content .wp-caption-text {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--c3);
  text-align: center;
}
.ps-content .wp-caption { max-width: 100%; }
.ps-content .aligncenter { display: block; margin-inline: auto; }
.ps-content .alignleft { float: left; margin: 6px 28px 18px 0; max-width: 50%; }
.ps-content .alignright { float: right; margin: 6px 0 18px 28px; max-width: 50%; }

.ps-content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
}

.ps-table {
  margin: 0 0 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
/* pasted Elementor tables carry fixed inline width/height */
.ps-content table {
  width: 100% !important;
  height: auto !important;
  margin: 0;
  border-collapse: collapse;
  border: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c2);
}
.ps-content table col { width: auto !important; }
.ps-content td img,
.ps-content th img {
  display: inline-block;
  width: auto;
  max-width: 40px;
  max-height: 40px;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.ps-content td p:empty,
.ps-content th p:empty { display: none; }
.ps-content th,
.ps-content td {
  padding: 14px 18px;
  text-align: start;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--line);
  min-width: 140px;
}
.ps-content tr:last-child td { border-bottom: 0; }
.ps-content th,
.ps-content thead td,
.ps-content tr:first-child th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(182, 16, 60, .10);
}
.ps-content tbody tr:nth-child(even) td { background: rgba(245, 242, 241, .02); }
.ps-content table p { margin: 0; }

.ps-content hr {
  margin: 48px 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.ps-content::after { content: ""; display: table; clear: both; }

.ps-pages { display: flex; gap: 8px; margin: 32px 0; font-size: 14px; }
.ps-pages a, .ps-pages > span { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--white); text-decoration: none; }

/* ==========================================================================
   After the article: tags, share, author
   ========================================================================== */
.ps-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.ps-tags a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--c2);
  text-decoration: none;
  transition: border-color .3s, color .3s;
}
.ps-tags a:hover { border-color: var(--accent); color: var(--white); }

.ps-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ps-share__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--white);
}
.ps-share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-share__btns a,
.ps-share__btns button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--c2);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .3s, color .3s, background .3s;
}
.ps-share__btns a:hover,
.ps-share__btns button:hover,
.ps-share__btns button.is-done { border-color: var(--accent); color: var(--white); background: var(--accent-soft); }

.ps-author {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.ps-author > img {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position:top;
  border: 1px solid var(--line-2);
}
.ps-author__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ps-author__k {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.ps-author__name { font-size: 21px; font-weight: 300; color: var(--white); text-decoration: none; }
.ps-author__name:hover { color: var(--white); }
.ps-author__bio { font-size: 14.5px; line-height: 1.8; color: var(--c2); margin-bottom: 4px; }

/* ==========================================================================
   Sidebar form (markup comes from sidebar.php)
   ========================================================================== */
.ps-form #sidebar-area {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.ps-form .sidebar-image-area img {
  display: block;
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 0;
}
.ps-form .sidebar-form-area { position: relative; }
.ps-form .sidebar-form-area .sidebar-form {
  padding: 26px 24px 26px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.ps-form .form-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
  text-align: start;
  color: var(--white);
}
.ps-form .zcwf_row { margin-bottom: 14px; }
.ps-form .zcwf_col_lab label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c4);
}
.ps-form .zcwf_col_lab label span { color: var(--accent-text) !important; }
.ps-form .zcwf_col_fld input:not([type="submit"]):not([type="hidden"]) {
  width: 100%;
  height: 46px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--white);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.ps-form .zcwf_col_fld input:not([type="submit"]):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182, 16, 60, .18);
}
.ps-form .iti { width: 100%; }
.ps-form .iti input#Phone { padding-inline-start: 52px; }
.ps-form input#formsubmit,
.ps-form .zcwf_button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--accent) !important;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background .3s, box-shadow .3s, transform .45s var(--hn-ease);
}
.ps-form input#formsubmit:hover {
  background: #9f0e34 !important;
  box-shadow: 0 10px 28px rgba(182, 16, 60, .35);
  transform: translateY(-2px);
}

/* ==========================================================================
   Related posts
   ========================================================================== */
.ps-related {
  padding: 88px 0 96px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.ps-related__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.ps-related__title {
  margin: 0;
  font-size: 38px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
}
.ps-related__title strong { font-weight: 500; }
.ps-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.ps-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
  transition: border-color .5s, transform .8s var(--hn-ease);
}
.ps-card:hover { border-color: rgba(182, 16, 60, .55); transform: translateY(-6px); }
.ps-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 0% 0%, rgba(182, 16, 60, .22) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg-3) 0%, var(--bg) 100%);
}
.ps-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--hn-ease);
}
.ps-card:hover .ps-card__media img { transform: scale(1.05); }
.ps-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.ps-card__date { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--c3); }
.ps-card__t { font-size: 18px; font-weight: 300; line-height: 1.45; color: var(--white); }
.ps-card__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--accent-text);
}
.ps-card__more svg { transition: transform .4s var(--hn-ease); }
.ps-card:hover .ps-card__more svg { transform: translateX(4px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .ps-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
}

@media (max-width: 1000px) {
  .ps-wrap { padding-inline: 24px; }
  .ps-hero { --hero-top: 48px; padding-bottom: 40px; }
  .ps-meta__sep { display: none; }
  .ps-meta { gap: 16px 26px; }

  .ps-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 36px; padding-bottom: 64px; }
  .ps-side__sticky { position: static; }
  .ps-toc--side { display: none; }

  .ps-toc--inline {
    display: block;
    margin-bottom: 40px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg-2);
  }
  .ps-toc--inline summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--white);
    cursor: pointer;
    list-style: none;
  }
  .ps-toc--inline summary::-webkit-details-marker { display: none; }
  .ps-toc--inline summary span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    font-size: 11px;
    letter-spacing: 0;
    color: var(--c2);
    transition: transform .4s var(--hn-ease), border-color .3s;
  }
  .ps-toc--inline[open] summary span { border-color: var(--accent); color: var(--white); }
  .ps-toc--inline .ps-toc__list { padding: 0 20px 18px; }

  .ps-related { padding: 64px 0; }
  .ps-related__title { font-size: 28px; }
  .ps-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 640px) {
  .ps-wrap { padding-inline: 16px; }
  .ps-title { font-size: 30px; }
  .ps-ai { padding: 24px 20px 22px; }
  .ps-ai__text { font-size: 16px; }
  .ps-ai__points { grid-template-columns: minmax(0, 1fr); }
  .ps-ai__foot { flex-direction: column; align-items: flex-start; }

  .ps-content { font-size: 16px; line-height: 1.9; }
  .ps-content h2 { margin-top: 48px; padding-top: 24px; font-size: 25px; }
  .ps-content h3 { font-size: 20px; }
  .ps-content .alignleft,
  .ps-content .alignright { float: none; margin: 0 0 20px; max-width: 100%; }
  .ps-content blockquote { padding: 20px 22px; font-size: 16.5px; }

  .ps-author { flex-direction: column; gap: 18px; padding: 24px 20px; }
  .ps-author > img { width: 72px; height: 72px; }

  .ps-related__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ps *,
  .ps *::before,
  .ps *::after { transition: none !important; }
}

/* ==========================================================================
   Shared card extras + pagination (author.php, search.php)
   ========================================================================== */
.ps-card__x { font-size: 13.5px; line-height: 1.7; color: var(--c4); }
.ps-card__t mark {
  padding: 0 2px;
  border-radius: 3px;
  color: var(--white);
  background: rgba(182, 16, 60, .35);
}

.ps-pagination { margin-top: 56px; }
.ps-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.ps-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 400;
  color: var(--c2);
  text-decoration: none;
  font-feature-settings: "tnum";
  transition: border-color .3s, color .3s, background .3s;
}
.ps-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--white); }
.ps-pagination .page-numbers.current { border-color: var(--accent); background: var(--accent); color: #fff; }
.ps-pagination .page-numbers.dots { border-color: transparent; }

.pa-h2 {
  margin: 0;
  font-size: 38px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
}
.pa-h2 strong { font-weight: 500; }

/* ==========================================================================
   Author page
   ========================================================================== */
.pa-hero { --hero-top: 64px; padding-bottom: 0; }
.pa-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 64px;
  align-items: end;
}
.pa-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 64px;
}
.pa-title { max-width: 16ch; }
.pa-lead {
  margin: 0;
  max-width: 60ch;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--c2);
}
.pa-stats { margin-top: 4px; }
.pa-stats__n { font-size: 20px; font-weight: 300; color: var(--white); }

.pa-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.pa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: background .3s, box-shadow .3s, transform .45s var(--hn-ease);
}
.pa-btn:hover { background: #9f0e34; color: #fff; box-shadow: 0 10px 28px rgba(182, 16, 60, .35); transform: translateY(-2px); }
.pa-btn--ghost { background: transparent; border-color: var(--line-2); color: var(--white); }
.pa-btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); box-shadow: none; }
.pa-btn svg { transition: transform .4s var(--hn-ease); }
.pa-btn:hover svg { transform: rotate(90deg); }

.pa-portrait { position: relative; margin: 0; align-self: end; }
.pa-portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  background:
    radial-gradient(90% 70% at 50% 100%, rgba(182, 16, 60, .25) 0%, transparent 70%),
    var(--bg-2);
}
.pa-portrait__frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(20, 22, 29, .85));
  pointer-events: none;
}
.pa-portrait__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pa-portrait__cap {
  position: absolute;
  inset: auto 22px 20px 22px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
}
.pa-portrait__cap span:last-child { color: var(--accent-text); }

.pa-bio { padding: 88px 0; border-bottom: 1px solid var(--line); }
.pa-bio__inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.pa-bio__head { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.pa-bio__body p:first-child { font-size: 19px; color: var(--white); }

.pa-posts { padding: 88px 0 104px; background: var(--bg-2); }
.pa-posts__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
}
.pa-posts__head > div { display: flex; flex-direction: column; gap: 16px; }
.pa-posts__page { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--c3); font-feature-settings: "tnum"; }
.pa-grid { row-gap: 32px; }
.pa-empty { margin: 0; font-size: 16px; color: var(--c2); }

/* ==========================================================================
   Search page
   ========================================================================== */
.sr-title { max-width: none; overflow-wrap: anywhere; }
.sr-title strong { font-weight: 500; }

.sr-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin-top: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(20, 22, 29, .7);
  transition: border-color .3s, box-shadow .3s;
}
.sr-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(182, 16, 60, .15); }
.sr-form__ico { flex: none; margin-inline: 18px 10px; color: var(--c3); }
.sr-form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  color: var(--white);
}
.sr-form input::placeholder { color: var(--c3); }
.sr-form input::-webkit-search-cancel-button { filter: invert(.6); }
.sr-form button {
  flex: none;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background .3s;
}
.sr-form button:hover { background: #9f0e34; }

.sr-count { font-size: 14px; color: var(--c2); }
.sr-count b { font-weight: 500; color: var(--white); }
.sr-count span { color: var(--c3); }

.sr-results { padding-top: 64px; }

.sr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto 72px;
  padding: 48px 32px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.sr-empty p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--c2); }
.sr-empty__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid rgba(182, 16, 60, .35);
}

@media (max-width: 1000px) {
  .pa-hero { --hero-top: 44px; }
  .pa-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pa-hero__text { padding-bottom: 32px; }
  .pa-portrait { max-width: 420px; width: 100%; }
  .pa-bio { padding: 64px 0; }
  .pa-bio__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pa-bio__head { position: static; }
  .pa-posts { padding: 64px 0 72px; }
  .pa-h2 { font-size: 28px; }
}

@media (max-width: 640px) {
  .pa-portrait { max-width: none; }
  .sr-form { border-radius: 16px; flex-wrap: wrap; padding: 6px 6px 8px; }
  .sr-form__ico { margin-inline: 12px 6px; }
  .sr-form button { width: 100%; }
  .sr-empty { padding: 36px 20px; }
}

/* ==========================================================================
   Category page
   ========================================================================== */
.ct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ct-chips a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  padding-inline: 16px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 400;
  color: var(--c2);
  text-decoration: none;
  transition: border-color .3s, color .3s, background .3s;
}
.ct-chips a span {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 242, 241, .06);
  font-size: 11px;
  text-align: center;
  color: var(--c3);
  font-feature-settings: "tnum";
}
.ct-chips a:hover { border-color: var(--accent); color: var(--white); }
.ct-chips a.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--white); }
.ct-chips a.is-on span { background: var(--accent); color: #fff; }

.ct-posts { padding-top: 64px; }

.ct-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  margin-bottom: 32px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
  transition: border-color .5s;
}
.ct-feature:hover { border-color: rgba(182, 16, 60, .55); }
.ct-feature__media {
  display: block;
  min-height: 360px;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 0% 0%, rgba(182, 16, 60, .22) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg-3) 0%, var(--bg) 100%);
}
.ct-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--hn-ease);
}
.ct-feature:hover .ct-feature__media img { transform: scale(1.04); }
.ct-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 48px 44px;
}
.ct-feature__t { font-size: 30px; font-weight: 300; line-height: 1.25; color: var(--white); }
.ct-feature__x { font-size: 15px; line-height: 1.85; color: var(--c2); }
.ct-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c3);
}
.ct-feature__meta span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-inline-end: 18px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}
.ct-feature .ps-card__more { margin-top: 6px; }
.ct-feature:hover .ps-card__more svg { transform: translateX(4px); }

.ct-cta {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 100% 50%, rgba(182, 16, 60, .14) 0%, transparent 60%),
    var(--bg);
}
.ct-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
}
.ct-cta__text { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.ct-cta__text p { margin: 0; font-size: 16px; line-height: 1.85; color: var(--c2); }

/* ==========================================================================
   404 page
   ========================================================================== */
.nf-hero { --hero-top: 96px; padding-bottom: 104px; text-align: center; }
.nf-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.nf-num {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(120px, 20vw, 240px);
  font-weight: 200;
  line-height: .85;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(172, 160, 155, .35);
  user-select: none;
}
.nf-num span {
  color: var(--accent);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 60px rgba(182, 16, 60, .45);
}
.nf-title { max-width: 18ch; }
.nf-title strong { font-weight: 500; }
.nf-lead { max-width: 52ch; }
.nf-form { margin-top: 10px; }
.nf-actions { justify-content: center; }

@media (max-width: 1000px) {
  .ct-posts { padding-top: 44px; }
  .ct-feature { grid-template-columns: minmax(0, 1fr); }
  .ct-feature__media { min-height: 0; aspect-ratio: 16 / 9; }
  .ct-feature__body { padding: 28px 24px 30px; }
  .ct-feature__t { font-size: 24px; }
  .ct-cta { padding: 56px 0; }
  .nf-hero { --hero-top: 56px; padding-bottom: 72px; }
}
