/* ==========================================================================
   SINGLE POST — Cinematic v4.2.0
   No author, comments inside layout, epic nav, USA window widgets
   ========================================================================== */

/* ---------- CINEMATIC HERO — with effects ---------- */
.single-hero {
  position: relative;
  min-height: clamp(38vh, 45vh, 56vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-navy-deep);
}
.single-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.single-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  will-change: transform;
}
.single-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--c-navy-deep) 0%, rgba(15,27,51,0.85) 30%, rgba(15,27,51,0.3) 60%, transparent 100%),
    radial-gradient(ellipse at 70% 20%, transparent 40%, rgba(15,27,51,0.4) 100%);
  pointer-events: none;
}
/* Glows */
.single-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 2;
}
.single-hero__glow--1 {
  width: 400px; height: 400px;
  top: -100px; left: -80px;
  background: radial-gradient(circle, rgba(178,34,52,0.15) 0%, transparent 65%);
  animation: heroGlowDrift 12s ease-in-out infinite;
}
.single-hero__glow--2 {
  width: 350px; height: 350px;
  bottom: -80px; right: 10%;
  background: radial-gradient(circle, rgba(60,59,110,0.2) 0%, transparent 65%);
  animation: heroGlowDrift 15s ease-in-out infinite reverse;
}
/* Particles (reuse front-page keyframes) */
.single-hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
/* Stamp */
.single-hero .stamp-watermark {
  z-index: 2;
}
/* Content — LEFT ALIGNED, full width container */
.single-hero__content {
  position: relative;
  z-index: 3;
  padding: var(--sp-4xl) 0 clamp(2.5rem, 5vw, 4rem);
  width: 100%;
}
.single-hero__cat {
  display: inline-block;
  background: var(--usa-red);
  color: var(--c-white);
  padding: 0.3em 1em;
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-lg);
  text-decoration: none;
  transition: background var(--dur-fast);
}
.single-hero__cat:hover { background: var(--c-red-dark); color: var(--c-white); }
.single-hero__title {
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 1.8rem + 3vw, 4rem);
  font-weight: 900;
  color: var(--c-white);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  max-width: 820px;
  margin-bottom: var(--sp-xl);
}
.single-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
}
.single-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.single-hero__meta-item svg { opacity: 0.6; }
.single-hero__scroll-hint {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255,255,255,0.3);
  animation: scrollBounce 2.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity:0.3; }
  50%     { transform: translateX(-50%) translateY(6px); opacity:0.6; }
}

/* ---------- LAYOUT: Main col + Sidebar ---------- */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-top: var(--sp-2xl);
  padding-bottom: var(--sp-4xl);
}
.single-main-col { order: 1; min-width: 0; }
.article-sidebar { order: 2; }

/* ---------- SIDEBAR — sticky, natural flow ---------- */
.article-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}
.article-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  padding-bottom: var(--sp-xl);
}
.article-sidebar__inner::-webkit-scrollbar { width: 3px; }
.article-sidebar__inner::-webkit-scrollbar-thumb { background: var(--c-gray-300); border-radius: 3px; }

/* ---------- SIDEBAR WIDGETS — USA Mac Window ---------- */
.sidebar-widget {
  background: var(--c-white);
  border-radius: var(--radius-xl);
  padding: 0;
  border: 1px solid rgba(13,27,42,0.08);
  box-shadow: 0 2px 12px rgba(13,27,42,0.05);
  overflow: hidden;
  transition: box-shadow var(--dur-normal), border-color var(--dur-normal);
  /* Newspaper texture */
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.015'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}
.sidebar-widget:hover {
  box-shadow: 0 6px 24px rgba(13,27,42,0.08);
}
.sidebar-widget__title {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin: 0;
  padding: var(--sp-sm) var(--sp-lg);
  padding-left: calc(var(--sp-lg) + 50px);
  background: var(--c-gray-50);
  border-bottom: 1px solid var(--c-gray-200);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.sidebar-widget__title::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--usa-blue);
  box-shadow:
    16px 0 0 0 var(--usa-white),
    16px 0 0 1.5px #999,
    32px 0 0 0 var(--usa-red);
}

/* ---------- PROGRESS + ACTIONS (combined) ---------- */
.sidebar-progress__body {
  padding: var(--sp-lg);
  text-align: center;
}
.progress-ring {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-md);
}
.progress-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.progress-ring__bg {
  fill: none;
  stroke: var(--c-gray-100);
  stroke-width: 4;
}
.progress-ring__fill {
  fill: none;
  stroke: var(--usa-red);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 163.36;
  stroke-dashoffset: 163.36;
  transition: stroke-dashoffset 100ms linear;
}
.progress-ring__pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--c-navy);
}
.sidebar-progress__stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--c-gray-100);
}
.sidebar-stat { text-align: center; }
.sidebar-stat__value {
  display: block;
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--c-navy);
  line-height: 1.2;
}
.sidebar-stat__label {
  font-size: var(--fs-xs);
  color: var(--c-text-light);
}
/* Actions inside progress */
.sidebar-actions__buttons {
  display: flex;
  gap: var(--sp-xs);
}
.sidebar-action__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-sm) var(--sp-xs);
  background: transparent;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--c-gray-500);
  transition: all var(--dur-fast);
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sidebar-action__btn:hover {
  background: var(--c-gray-50);
  border-color: var(--usa-blue);
  color: var(--usa-blue);
  transform: translateY(-1px);
}
.sidebar-action__btn.is-active {
  background: var(--usa-blue);
  border-color: var(--usa-blue);
  color: var(--c-white);
}
.sidebar-action__btn.is-copied {
  background: #f0fdf4;
  border-color: #16a34a;
  color: #16a34a;
}

/* ---------- TOC ---------- */
.sidebar-toc__list {
  list-style: none;
  padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
  margin: 0;
  counter-reset: toc-counter;
}
.sidebar-toc__item { counter-increment: toc-counter; }
.sidebar-toc__item--h3 { padding-left: var(--sp-lg); }
.sidebar-toc__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px var(--sp-sm);
  font-size: var(--fs-xs);
  color: var(--c-text-light);
  text-decoration: none;
  border-left: 2px solid var(--c-gray-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  line-height: 1.4;
  margin-bottom: 2px;
}
.sidebar-toc__link::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--ff-heading);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--c-gray-300);
  min-width: 20px;
  transition: color 0.25s;
}
.sidebar-toc__link:hover {
  color: var(--c-navy);
  border-left-color: var(--usa-blue);
  background: rgba(13,27,42,.02);
}
.sidebar-toc__link:hover::before { color: var(--usa-blue); }
.sidebar-toc__item.is-active > .sidebar-toc__link {
  color: var(--c-navy);
  border-left-color: var(--usa-red);
  background: rgba(230,57,70,.04);
  font-weight: 600;
}
.sidebar-toc__item.is-active > .sidebar-toc__link::before {
  color: var(--usa-red);
}

/* ---------- SHARE ---------- */
.sidebar-share__buttons { display: flex; gap: var(--sp-sm); padding: var(--sp-md) var(--sp-lg); }
.sidebar-share__btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--c-gray-200);
  background: transparent;
  color: var(--c-gray-500);
  cursor: pointer;
  transition: all var(--dur-fast);
  text-decoration: none;
}
.sidebar-share__btn:hover { border-color: var(--usa-blue); color: var(--usa-blue); }
.sidebar-share__btn.is-copied { background: #f0fdf4; border-color: #16a34a; color: #16a34a; }

/* ---------- NEWSLETTER (sidebar — dark USA style) ---------- */
.sidebar-newsletter {
  background: linear-gradient(135deg, var(--usa-blue) 0%, #1a1940 50%, var(--c-navy-deep) 100%) !important;
  border-color: rgba(60,59,110,0.3) !important;
  color: var(--c-white);
  background-image: none !important;
}
.sidebar-newsletter .sidebar-widget__title {
  background: rgba(0,0,0,0.25);
  border-bottom-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}
.sidebar-newsletter .sidebar-widget__title::before {
  background: var(--usa-blue);
  box-shadow: 16px 0 0 0 rgba(255,255,255,0.7), 16px 0 0 1px rgba(255,255,255,0.3), 32px 0 0 0 var(--usa-red);
}
.sidebar-newsletter__body { padding: var(--sp-lg); }
.sidebar-newsletter__text { font-size: var(--fs-xs); color: rgba(255,255,255,0.6); margin-bottom: var(--sp-md); line-height: 1.5; }
.sidebar-newsletter__form { display: flex; flex-direction: column; gap: var(--sp-xs); }
.sidebar-newsletter__form input {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--c-white); padding: 0.7em var(--sp-md); border-radius: 100px; font: inherit; font-size: var(--fs-sm);
}
.sidebar-newsletter__form input::placeholder { color: rgba(255,255,255,0.3); }
.sidebar-newsletter__form input:focus { outline: none; border-color: rgba(255,255,255,0.4); }
.sidebar-newsletter__form button {
  background: var(--usa-red); color: var(--c-white); border: none; padding: 0.7em;
  border-radius: 100px; font-weight: 700; font-size: var(--fs-sm); cursor: pointer;
}
.sidebar-newsletter__form button:hover { filter: brightness(1.1); }
.sidebar-newsletter__success { display: flex; align-items: center; gap: var(--sp-sm); padding: var(--sp-sm); background: rgba(34,197,94,0.1); border-radius: var(--radius); font-size: var(--fs-xs); color: #bbf7d0; }
.sidebar-newsletter__privacy { font-size: 0.6rem; color: rgba(255,255,255,0.25); margin-top: var(--sp-xs); }

/* ---------- POPULAR POSTS ---------- */
.sidebar-popular__list { list-style: none; padding: var(--sp-sm) var(--sp-lg) var(--sp-lg); margin: 0; }
.sidebar-popular__item { display: flex; gap: var(--sp-sm); align-items: flex-start; padding: var(--sp-sm) 0; }
.sidebar-popular__item + .sidebar-popular__item { border-top: 1px solid var(--c-gray-100); }
.sidebar-popular__rank { flex-shrink: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-gray-100); font-family: var(--ff-heading); font-size: var(--fs-xs); font-weight: 800; color: var(--c-navy); }
.sidebar-popular__item:first-child .sidebar-popular__rank { background: var(--usa-red); color: var(--c-white); }
.sidebar-popular__link { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--c-text); line-height: 1.35; }
.sidebar-popular__link:hover { color: var(--usa-red); }
.sidebar-popular__meta { font-size: 0.6rem; color: var(--c-text-light); margin-top: 2px; }

/* ---------- RESOURCES ---------- */
.sidebar-resources__list { list-style: none; padding: var(--sp-sm) var(--sp-lg) var(--sp-lg); margin: 0; }
.sidebar-resources__list li { margin-bottom: 2px; }
.sidebar-resources__list a { display: flex; align-items: center; gap: var(--sp-sm); padding: var(--sp-xs) var(--sp-sm); border-radius: var(--radius); color: var(--c-text); font-size: var(--fs-sm); transition: all var(--dur-fast); }
.sidebar-resources__list a:hover { background: var(--c-gray-50); }
.sidebar-resources__list strong { font-weight: 700; color: var(--usa-blue); }
.sidebar-resources__list small { font-size: var(--fs-xs); color: var(--c-text-light); margin-left: 4px; }

/* ---------- ARTICLE BODY — images, figcaption ---------- */
.article-content { min-width: 0; }
.article-body { margin-bottom: var(--sp-3xl); }
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--ff-heading);
  font-size: clamp(3.2rem, 2.8rem + 2vw, 4.5rem);
  font-weight: 800;
  line-height: 0.78;
  padding-right: 0.1em;
  padding-top: 0.08em;
  color: var(--usa-blue);
}
.article-body h2 { font-family: var(--ff-heading); font-size: var(--fs-xl); font-weight: 700; margin: var(--sp-3xl) 0 var(--sp-lg); letter-spacing: -0.015em; scroll-margin-top: 90px; }
.article-body h3 { font-family: var(--ff-heading); font-size: var(--fs-lg); font-weight: 700; margin: var(--sp-2xl) 0 var(--sp-md); scroll-margin-top: 90px; }
.article-body p { margin-bottom: var(--sp-lg); }
.article-body ul, .article-body ol { margin-bottom: var(--sp-lg); padding-left: var(--sp-xl); }
.article-body li { margin-bottom: var(--sp-sm); }
.article-body pre { background: var(--c-gray-900); color: var(--c-gray-100); padding: var(--sp-lg); border-radius: var(--radius); overflow-x: auto; font-size: var(--fs-sm); margin-bottom: var(--sp-lg); }
.article-body code { font-size: 0.9em; background: var(--c-gray-100); padding: 0.15em 0.4em; border-radius: 4px; }
.article-body pre code { background: none; padding: 0; }

/* Images — constrained, no overflow, with spectacular figcaption */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--sp-xl) 0;
  display: block;
}
.article-body figure {
  position: relative;
  margin: var(--sp-2xl) 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.article-body figure img {
  margin: 0;
  border-radius: var(--radius-xl);
  width: 100%;
}
.article-body figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-lg) var(--sp-xl) var(--sp-md);
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
/* WordPress block images */
.article-body .wp-block-image { max-width: 100%; overflow: hidden; }
.article-body .wp-block-image img { max-width: 100%; height: auto; }

.article-body a { text-decoration: underline; text-decoration-color: rgba(178,34,52,0.25); text-underline-offset: 2px; }
.article-body a:hover { text-decoration-color: var(--usa-red); }
.article-body blockquote {
  border-left: var(--usa-border-w) solid var(--usa-red);
  padding: var(--sp-xl) var(--sp-2xl);
  margin: var(--sp-2xl) 0;
  background: var(--c-gray-50);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--c-navy);
}
.article-body blockquote::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: var(--sp-lg);
  font-family: var(--ff-heading);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(178,34,52,0.12);
  line-height: 1;
}

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: var(--sp-sm); align-items: center; padding: var(--sp-lg) 0; border-top: var(--border-light); border-bottom: var(--border-light); margin-bottom: var(--sp-2xl); }
.article-tags__label { display: flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-light); text-transform: uppercase; letter-spacing: 0.06em; }
.article-tags__tag { display: inline-block; padding: 0.25em 0.75em; background: var(--c-gray-50); border: 1px solid var(--c-gray-200); border-radius: 100px; font-size: var(--fs-xs); color: var(--c-text); transition: all var(--dur-fast); }
.article-tags__tag:hover { background: var(--usa-blue); color: var(--c-white); border-color: var(--usa-blue); }

/* Share bar */
.article-share-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); padding: var(--sp-lg); background: var(--c-gray-50); border-radius: var(--radius-lg); margin-bottom: var(--sp-2xl); }
.article-share-bar__label { font-family: var(--ff-heading); font-size: var(--fs-sm); font-weight: 700; color: var(--c-navy); }
.article-share-bar__buttons { display: flex; gap: var(--sp-sm); }

/* Article Newsletter */
.article-newsletter { margin-bottom: var(--sp-3xl); }
.article-newsletter__inner {
  background: linear-gradient(135deg, var(--usa-blue) 0%, #1a1940 50%, var(--c-navy-deep) 100%);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl);
  color: var(--c-white);
  text-align: center;
}
.article-newsletter__text h3 { font-family: var(--ff-heading); font-size: var(--fs-xl); font-weight: 800; color: var(--c-white); margin-bottom: var(--sp-sm); }
.article-newsletter__text p { font-size: var(--fs-sm); color: rgba(255,255,255,0.65); max-width: 480px; margin-inline: auto; margin-bottom: var(--sp-xl); }
.article-newsletter__form { display: flex; max-width: 440px; margin-inline: auto; gap: var(--sp-sm); }
.article-newsletter__form input { flex: 1; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: var(--c-white); padding: 0.75em var(--sp-md); border-radius: 100px; font: inherit; font-size: var(--fs-sm); }
.article-newsletter__form input::placeholder { color: rgba(255,255,255,0.35); }
.article-newsletter__form input:focus { outline: none; border-color: rgba(255,255,255,0.4); }
.article-newsletter__success { display: flex; align-items: center; justify-content: center; gap: var(--sp-sm); padding: var(--sp-md); font-size: var(--fs-sm); color: #bbf7d0; }

/* Related Posts */
.related-posts { margin-bottom: var(--sp-3xl); }
.related-posts__header { margin-bottom: var(--sp-xl); }
.related-posts__overline { font-family: var(--ff-body); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--usa-red); display: block; margin-bottom: var(--sp-xs); }
.related-posts__title { font-family: var(--ff-heading); font-size: var(--fs-xl); font-weight: 700; color: var(--c-text-heading); margin-bottom: var(--sp-sm); }

/* ---------- EPIC POST NAV ---------- */
.post-nav--epic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-bottom: var(--sp-3xl);
}
.post-nav__card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--c-white);
  transition: transform var(--dur-normal) var(--ease-out);
}
.post-nav__card:hover { transform: translateY(-4px); color: var(--c-white); }
.post-nav__bg {
  position: absolute;
  inset: 0;
}
.post-nav__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.post-nav__card:hover .post-nav__bg img { transform: scale(1.06); }
.post-nav__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3,8,16,0.85) 0%, rgba(3,8,16,0.3) 50%, rgba(3,8,16,0.15) 100%);
  transition: background 0.4s;
}
.post-nav__card:hover .post-nav__overlay {
  background: linear-gradient(to top, rgba(178,34,52,0.85) 0%, rgba(178,34,52,0.3) 50%, rgba(60,59,110,0.2) 100%);
}
.post-nav__body {
  position: relative;
  z-index: 1;
  padding: var(--sp-xl);
  width: 100%;
}
.post-nav__dir {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-xs);
}
.post-nav__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav__card--next .post-nav__body { text-align: right; }
/* No thumbnail fallback */
.post-nav__card:not(:has(.post-nav__bg img)) {
  background: var(--c-navy-deep);
}

/* Comments section inside layout */
.comments-section {
  margin-top: var(--sp-2xl);
}

/* Inline TOC */
.toc--inline { margin-bottom: var(--sp-2xl); }

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--usa-blue);
  color: var(--c-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur-normal) var(--ease-out);
  z-index: var(--z-sticky);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--usa-red); transform: translateY(-3px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .single-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .toc--inline { display: block; }
  .post-nav--epic { grid-template-columns: 1fr; }
  .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) {
  .toc--inline { display: none; }
}
@media (max-width: 768px) {
  .single-hero { min-height: 40vh; }
  .single-hero__title { font-size: clamp(1.6rem, 1.3rem + 2vw, 2.4rem); }
  .article-share-bar { flex-direction: column; text-align: center; }
  .article-newsletter__form { flex-direction: column; }
  .related-posts__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   COMMENTS — inside single-layout
   ========================================================================== */
.comments-area { padding: var(--sp-2xl) 0 0; }
.comments-header { margin-bottom: var(--sp-2xl); }
.comments-header__badge { display: inline-flex; align-items: center; gap: 6px; padding: 0.3em 1em; background: rgba(178,34,52,0.06); border: 1px solid rgba(178,34,52,0.12); border-radius: 100px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--usa-red); margin-bottom: var(--sp-md); }
.comments-header__title { font-family: var(--ff-heading); font-size: var(--fs-xl); font-weight: 800; color: var(--c-text-heading); }
.comments-header__count { color: var(--usa-red); }
.comment-form-wrapper { background: var(--c-white); border-radius: var(--radius-xl); padding: var(--sp-2xl); border: 1px solid rgba(13,27,42,0.06); margin-bottom: var(--sp-2xl); position: relative; overflow: hidden; }
.comment-form-wrapper::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: var(--usa-border-w); background: linear-gradient(to right, var(--usa-blue) 33%, var(--usa-white) 33%, var(--usa-white) 66%, var(--usa-red) 66%); }
.comment-form__note { font-size: var(--fs-xs); color: var(--c-text-light); margin-bottom: var(--sp-lg); }
.comment-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.comment-form__field { margin-bottom: var(--sp-md); }
.comment-form__field--full { grid-column: 1 / -1; }
.comment-form__label { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--c-text); margin-bottom: 6px; }
.comment-form__label .req { color: var(--usa-red); }
.comment-form__label .optional { font-weight: 400; color: var(--c-text-light); }
.comment-form-cinematic input[type="text"],
.comment-form-cinematic input[type="email"],
.comment-form-cinematic input[type="url"],
.comment-form-cinematic textarea { width: 100%; padding: 0.8em var(--sp-md); background: var(--c-bg); border: 1px solid var(--c-gray-200); border-radius: var(--radius-lg); font: inherit; font-size: var(--fs-sm); color: var(--c-text); transition: all var(--dur-fast); }
.comment-form-cinematic input:focus,
.comment-form-cinematic textarea:focus { outline: none; border-color: var(--usa-blue); box-shadow: 0 0 0 3px rgba(60,59,110,0.08); background: var(--c-white); }
.comment-form-cinematic textarea { min-height: 120px; resize: vertical; }
.comment-form__submit { display: flex; gap: var(--sp-md); padding-top: var(--sp-sm); }
.btn--comment { display: inline-flex; align-items: center; gap: 6px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-item { margin-bottom: var(--sp-lg); }
.comment-item .children { list-style: none; padding-left: var(--sp-xl); margin-top: var(--sp-lg); border-left: 2px solid var(--c-gray-100); }
.comment-body { background: var(--c-white); border-radius: var(--radius-xl); padding: var(--sp-lg); border: 1px solid rgba(13,27,42,0.05); }
.comment-header { display: flex; gap: var(--sp-md); align-items: center; margin-bottom: var(--sp-md); }
.comment-avatar__img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--c-gray-100); }
.comment-author-name { font-weight: 700; font-size: var(--fs-sm); color: var(--usa-blue); }
.comment-author-name a { color: var(--usa-blue); }
.comment-date { font-size: var(--fs-xs); color: var(--c-text-light); }
.comment-content { font-size: var(--fs-sm); line-height: var(--lh-body); }
.comment-content p { margin-bottom: var(--sp-sm); }
.comment-content p:last-child { margin-bottom: 0; }
.comment-footer { display: flex; gap: var(--sp-md); margin-top: var(--sp-md); padding-top: var(--sp-sm); border-top: 1px solid var(--c-gray-100); }
.comment-reply a, .comment-edit a { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-text-light); }
.comment-reply a:hover { color: var(--usa-red); }

/* ---------- v5.2 OVERRIDES ---------- */

/* Single sidebar → use front-page widget styling */
.article-sidebar .widget,
.article-sidebar .sidebar-widget {
  background: var(--c-surface);
  border: 1px solid var(--c-gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.article-sidebar .widget:hover,
.article-sidebar .sidebar-widget:hover {
  border-color: var(--c-gray-200);
  box-shadow: 0 4px 20px rgba(13,27,42,.06);
}
.article-sidebar .widget__title,
.article-sidebar .sidebar-widget__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-light);
  padding: var(--sp-md) var(--sp-lg);
  padding-left: calc(var(--sp-lg) + 50px);
  background: var(--c-gray-50);
  border-bottom: 1px solid var(--c-gray-200);
  margin: 0;
  position: relative;
}
.article-sidebar .widget__title::before,
.article-sidebar .sidebar-widget__title::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--usa-blue);
  box-shadow:
    16px 0 0 0 var(--usa-white),
    16px 0 0 1.5px #999,
    32px 0 0 0 var(--usa-red);
  bottom: auto;
  left: 14px;
  width: 10px;
  height: 10px;
}

/* Popular list in single sidebar = same as front-page */
.article-sidebar .widget-popular__list {
  list-style: none;
  padding: var(--sp-sm) var(--sp-lg) var(--sp-lg);
  margin: 0;
}
.article-sidebar .widget-popular__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--c-gray-50);
}
.article-sidebar .widget-popular__item:last-child { border-bottom: none; }
.article-sidebar .widget-popular__rank {
  font-family: var(--ff-heading);
  font-weight: 900;
  font-size: var(--fs-lg);
  color: var(--c-gray-200);
  min-width: 28px;
  line-height: 1;
}
.article-sidebar .widget-popular__item:first-child .widget-popular__rank { color: var(--c-red); }
.article-sidebar .widget-popular__content {
  display: flex;
  gap: var(--sp-sm);
  flex: 1;
  align-items: center;
}
.article-sidebar .widget-popular__thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.article-sidebar .widget-popular__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-sidebar .widget-popular__title {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text-heading);
  display: block;
  line-height: 1.35;
  text-decoration: none;
}
.article-sidebar .widget-popular__title:hover { color: var(--c-red); }
.article-sidebar .widget-popular__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--c-gray-400);
  margin-top: 2px;
}

/* Old article-newsletter hidden (replaced by v2) */
.article-newsletter { display: none !important; }
