/* ─── Reading Progress ───────────────────────────────────────────── */

.reading-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  pointer-events: none;
}

/* ─── Article Shell ──────────────────────────────────────────────── */

.article-shell {
  padding: 32px 0 84px;
  background:
    radial-gradient(circle at top right, rgba(201, 120, 74, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(236, 228, 216, 0.32), transparent 18%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: rgba(28, 28, 28, 0.48);
  font-size: 0.66rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: rgba(168, 95, 54, 0.7);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--article)) minmax(240px, 320px);
  justify-content: space-between;
  gap: 44px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

/* ─── Article Header ─────────────────────────────────────────────── */

.article-header {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

/* Tag lives in a single-col grid — prevent it stretching full width */
.article-header .tag {
  justify-self: start;
}

.article-title {
  margin: 0;
  max-width: 11ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 5.1vw, 5.4rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.article-deck {
  max-width: 44rem;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.58;
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(28, 28, 28, 0.5);
  font-size: 0.86rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  background: rgba(236, 228, 216, 0.56);
}

/* ─── Article Summary ────────────────────────────────────────────── */

.article-summary {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
  padding: 22px 24px;
  background: linear-gradient(
    135deg,
    rgba(236, 228, 216, 0.82),
    rgba(245, 240, 232, 0.66)
  );
}

.article-summary h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.article-summary ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.article-summary li {
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(28, 28, 28, 0.76);
}

/* ─── Hero Image ─────────────────────────────────────────────────── */

.hero {
  margin: 0 0 30px;
  background: transparent;
}

.hero-media {
  overflow: hidden;
  aspect-ratio: 16 / 9.6;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-credit {
  margin-top: 10px;
  padding: 0;
  background: transparent;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(28, 28, 28, 0.48);
}

/* ─── Article Body ───────────────────────────────────────────────── */

.article-body {
  display: grid;
  gap: 32px;
}

/* Offset anchor links so sticky nav doesn't overlap section headings */
.article-body section {
  display: grid;
  gap: 14px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.article-quick-answer,
.article-faq,
.article-sources,
.article-author,
.article-related-reads {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.article-body p,
.article-body li {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(28, 28, 28, 0.82);
}

.article-body h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.article-body ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.article-body p + p {
  margin-top: 4px;
}

.article-body p + ul,
.article-body ul + p,
.article-body p + blockquote,
.article-body blockquote + p {
  margin-top: 4px;
}

/* Inline images within article body */
.article-body figure {
  margin: 0;
}

.article-body figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-body figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(28, 28, 28, 0.48);
}

.article-pullquote {
  margin: 10px 0;
  padding: 32px 0 32px 28px;
  border-left: 2px solid rgba(201, 120, 74, 0.34);
  background: linear-gradient(
    90deg,
    rgba(236, 228, 216, 0.42),
    transparent 55%
  );
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.article-footer {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.article-footer-note {
  margin: 0;
  max-width: 34rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(28, 28, 28, 0.54);
}

/* ─── Quick Answer ───────────────────────────────────────────────── */

.article-support-card {
  display: grid;
  gap: 14px;
  padding: 20px 24px;
  background: rgba(236, 228, 216, 0.38);
}

.article-quick-answer {
  margin: 0 0 30px;
}

.article-support-card h2,
.rail-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.article-support-list,
.rail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-support-list li,
.rail-copy,
.rail-list a,
.article-author p,
.article-author-credential {
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--muted);
}

.article-support-list li,
.rail-list a {
  position: relative;
  padding-left: 14px;
}

.article-support-list li::before,
.rail-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 6px;
  height: 6px;
  background: rgba(168, 95, 54, 0.2);
  transform: translateY(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.article-mobile-support {
  display: none;
  margin: 0 0 30px;
  gap: 16px;
}

/* ─── FAQ ────────────────────────────────────────────────────────── */

.article-faq {
  display: grid;
  gap: 14px;
}

.article-faq h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.article-faq .faq-list {
  display: grid;
  gap: 8px;
}

.article-faq .faq-item {
  background: transparent;
}

.article-faq .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 0 6px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0;
  color: rgba(28, 28, 28, 0.82);
}

.article-faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.article-faq .faq-item summary::before {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent-dark);
}

.article-faq .faq-item[open] summary::before {
  content: "−";
}

.article-faq .faq-answer {
  padding: 0 0 12px 34px;
  max-width: 48rem;
  color: rgba(28, 28, 28, 0.82);
}

.article-faq .faq-answer,
.article-faq .faq-answer p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: inherit;
}

/* ─── Sources We Checked ─────────────────────────────────────────── */

.article-sources p {
  margin: 0;
  max-width: 48rem;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--muted);
}

.article-sources a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-sources a:hover,
.article-author-link:hover,
.article-related-reads a:hover {
  color: var(--text);
}

.article-support-card a:focus-visible,
.article-faq .faq-item summary:focus-visible {
  outline: 2px solid rgba(168, 95, 54, 0.72);
  outline-offset: 3px;
}

/* ─── Author / Editorial Block ───────────────────────────────────── */

.article-support-avatar,
.article-author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
}

.article-support-avatar img,
.article-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-author-copy {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.article-author p {
  margin: 0;
  max-width: 42rem;
}

.article-author-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-author-credential {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ─── Related Reads (inside article) ────────────────────────────── */

.article-related-reads a {
  display: inline-block;
  font-weight: 500;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms ease;
}

/* ─── Article Rail (desktop sidebar) ────────────────────────────── */

.article-rail {
  display: grid;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-height) + 28px);
}

.rail-list a {
  position: relative;
  display: block;
  transition: color 180ms ease;
}

.rail-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 6px;
  height: 6px;
  background: rgba(168, 95, 54, 0.2);
  transform: translateY(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.rail-list a:hover,
.rail-list a.is-active {
  color: var(--text);
}

.rail-list a.is-active::before {
  background: var(--accent-dark);
  transform: translateY(-50%) scale(1.2);
}

/* ─── Latest From The Swamp ──────────────────────────────────────── */

.latest {
  padding: 64px 0 84px;
  border-top: 1px solid rgba(28, 28, 28, 0.1);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.section-copy {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.58;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* ─── Post Page Responsive ───────────────────────────────────────── */

@media (max-width: 1180px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-rail {
    position: static;
  }

  .article-title {
    letter-spacing: -0.06em;
  }

  .section-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .article-shell {
    padding: 20px 0 64px;
  }

  .breadcrumb {
    gap: 6px;
    margin-bottom: 20px;
    font-size: 0.74rem;
  }

  .article-title {
    max-width: 8ch;
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .article-deck,
  .article-body p,
  .article-body li {
    font-size: 0.97rem;
  }

  .article-support-card {
    gap: 12px;
    padding: 18px 18px 16px;
  }

  .article-support-list,
  .rail-list {
    gap: 8px;
  }

  .article-support-list li,
  .rail-list a,
  .article-sources p,
  .article-author p,
  .article-author-credential {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero {
    margin-bottom: 24px;
  }

  .hero-media {
    aspect-ratio: 4 / 3.3;
  }

  .hero-credit {
    margin-top: 8px;
    font-size: 0.74rem;
  }

  .article-pullquote {
    padding: 20px 0 20px 18px;
    font-size: clamp(1.28rem, 6vw, 1.7rem);
  }

  .article-body section {
    gap: 12px;
  }

  .article-body {
    gap: 26px;
  }

  .article-body p + p {
    margin-top: 3px;
  }

  .article-faq .faq-answer {
    font-size: 0.95rem;
  }

  .article-faq .faq-answer,
  .article-faq .faq-answer p,
  .article-faq .faq-item summary {
    font-size: 0.97rem;
  }

  .article-author-avatar {
    width: 52px;
    height: 52px;
  }

  .article-rail {
    display: none;
  }

  .article-mobile-support {
    display: grid;
  }

  .section-head {
    display: grid;
    gap: 10px;
  }
}
