/* =============================================
   Blog — Dark Forge Design System Extension
   Consistent with landing page design tokens
   ============================================= */

:root {
  --bg-primary: #0F0F0F;
  --bg-secondary: #1A1A1A;
  --surface: #242424;
  --amber: #E8A020;
  --amber-light: #F5C563;
  --amber-glow: rgba(232, 160, 32, 0.15);
  --text-primary: #F0EDE6;
  --text-secondary: #8A8780;
  --border: #2E2E2E;

  --blog-body-max-width: 740px;
  --blog-layout-max-width: 1200px;
  --blog-sidebar-width: 260px;
  --blog-layout-gap: 80px;
  --blog-section-padding-x: 48px;
  --blog-section-padding-x-mobile: 24px;
}

@keyframes forgeReveal {
  0%   { opacity: 0; transform: translateY(24px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Focus states */
a:focus-visible,
button:focus-visible,
[role="tab"]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* =============================================
   BLOG HERO
   ============================================= */

.blog-hero {
  background: var(--bg-primary);
  position: relative;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 2px, transparent 2px);
  background-size: 40px 40px;
  pointer-events: none;
}

.blog-hero__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.blog-hero__eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  animation: forgeReveal 600ms ease both;
  animation-delay: 0ms;
}

.blog-hero__eyebrow .amber {
  color: var(--amber);
}

.blog-hero__headline {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 48px;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
  animation: forgeReveal 600ms ease both;
  animation-delay: 120ms;
}

.blog-hero__description {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  animation: forgeReveal 600ms ease both;
  animation-delay: 240ms;
}

@media (max-width: 767px) {
  .blog-hero {
    padding: 6rem 1.25rem 3rem;
  }

  .blog-hero__headline {
    font-size: 32px;
  }

  .blog-hero__description {
    font-size: 16px;
  }
}

/* =============================================
   CATEGORY FILTER TABS
   ============================================= */

.blog-filter {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.blog-filter__inner {
  max-width: var(--blog-layout-max-width);
  margin: 0 auto;
  padding: 0 var(--blog-section-padding-x);
}

.blog-filter__tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-filter__tabs::-webkit-scrollbar {
  display: none;
}

.blog-filter__tab {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: block;
  transition: color 150ms ease, border-color 150ms ease;
}

.blog-filter__tab:hover {
  color: var(--text-primary);
}

.blog-filter__tab--active {
  color: var(--text-primary);
  border-bottom-color: var(--amber);
}

@media (max-width: 767px) {
  .blog-filter__inner {
    padding: 0 20px;
  }
}

/* =============================================
   BLOG TAG (shared component)
   ============================================= */

.blog-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--amber);
  background: rgba(232, 160, 32, 0.08);
  border: 1px solid rgba(232, 160, 32, 0.2);
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
  white-space: nowrap;
}

/* =============================================
   FEATURED POST CARD
   ============================================= */

.blog-featured {
  max-width: var(--blog-layout-max-width);
  margin: 0 auto;
  padding: 48px var(--blog-section-padding-x);
}

.blog-featured__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  overflow: hidden;
  min-height: 320px;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  text-decoration: none;
}

.blog-featured__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(232, 160, 32, 0.12), 0 8px 32px rgba(0, 0, 0, 0.4);
  border-left-color: var(--amber-light);
}

.blog-featured__image {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

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

.blog-featured__image-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-featured__image-placeholder::before,
.blog-featured__image-placeholder::after,
.blog-featured__image-placeholder .claw-line {
  content: "";
  position: absolute;
  width: 2px;
  height: 120px;
  background: rgba(232, 160, 32, 0.15);
  transform: rotate(-20deg);
}

.blog-featured__image-placeholder::before {
  left: calc(50% - 22px);
}

.blog-featured__image-placeholder::after {
  left: 50%;
}

.blog-featured__image-placeholder .claw-line {
  left: calc(50% + 22px);
}

.blog-featured__content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured__badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
  background: rgba(232, 160, 32, 0.1);
  border: 1px solid rgba(232, 160, 32, 0.25);
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 16px;
}

.blog-featured__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-featured__badges .blog-featured__badge {
  margin-bottom: 0;
}

.blog-featured__title {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 12px;
  transition: color 150ms ease;
}

.blog-featured__card:hover .blog-featured__title {
  color: var(--amber);
}

.blog-featured__excerpt {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.blog-featured__meta-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.blog-featured__meta-sep {
  color: var(--border);
}

.blog-featured__link {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--amber);
  margin-top: 20px;
  display: inline-block;
  text-decoration: none;
  transition: color 150ms ease;
}

.blog-featured__link:hover {
  color: var(--amber-light);
  text-decoration: underline;
}

@media (max-width: 1023px) {
  .blog-featured__card {
    grid-template-columns: 1fr;
  }

  .blog-featured__image {
    min-height: 200px;
  }
}

@media (max-width: 767px) {
  .blog-featured {
    padding: 24px 20px;
  }

  .blog-featured__content {
    padding: 24px;
  }

  .blog-featured__title {
    font-size: 22px;
  }
}

/* =============================================
   POST GRID
   ============================================= */

.blog-grid-section {
  max-width: var(--blog-layout-max-width);
  margin: 0 auto;
  padding: 48px var(--blog-section-padding-x);
}

.blog-grid-section__heading {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.blog-grid-section__heading::before {
  content: "—";
  color: var(--amber);
  margin-right: 10px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 767px) {
  .blog-grid-section {
    padding: 24px 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* =============================================
   BLOG CARD (post card)
   ============================================= */

.blog-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease, background 250ms ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.blog-card:hover {
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(232, 160, 32, 0.10), 0 4px 24px rgba(0, 0, 0, 0.35);
  border-left-color: var(--amber-light);
  border-color: rgba(232, 160, 32, 0.25);
  border-left-color: var(--amber-light);
}

.blog-card__image {
  height: 180px;
  background: var(--surface);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.03);
}

.blog-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card__image-placeholder::before,
.blog-card__image-placeholder::after,
.blog-card__image-placeholder .claw-line {
  content: "";
  position: absolute;
  width: 2px;
  height: 80px;
  background: rgba(232, 160, 32, 0.12);
  transform: rotate(-20deg);
}

.blog-card__image-placeholder::before {
  left: calc(50% - 15px);
}

.blog-card__image-placeholder::after {
  left: 50%;
}

.blog-card__image-placeholder .claw-line {
  left: calc(50% + 15px);
}

.blog-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.blog-card__date {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-secondary);
}

.blog-card__meta-sep {
  color: var(--border);
  font-size: 11px;
}

.blog-card__title {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color 150ms ease;
}

.blog-card:hover .blog-card__title {
  color: var(--amber);
}

.blog-card__excerpt {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

.blog-card__read-time {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: var(--text-secondary);
}

.blog-card__arrow {
  color: var(--amber);
  font-size: 16px;
  transition: transform 200ms ease;
}

.blog-card:hover .blog-card__arrow {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .blog-card__title {
    font-size: 18px;
  }
}

/* =============================================
   BLOG INDEX CTA
   ============================================= */

.blog-index-cta {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 80px 48px;
  text-align: center;
}

.blog-index-cta__headline {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--text-primary);
}

.blog-index-cta__subtext {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.blog-index-cta__btn {
  display: inline-block;
  background: var(--amber);
  color: #000;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 32px;
  border-radius: 8px;
  margin-top: 32px;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.blog-index-cta__btn:hover {
  background: var(--amber-light);
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(232, 160, 32, 0.25);
}

.blog-index-cta__secondary {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--amber);
  margin-top: 12px;
  text-decoration: none;
}

.blog-index-cta__secondary:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .blog-index-cta {
    padding: 60px 24px;
  }

  .blog-index-cta__headline {
    font-size: 24px;
  }
}

/* =============================================
   POST HEADER
   ============================================= */

.post-header {
  background: var(--bg-primary);
  position: relative;
  padding: 8rem 3rem 3rem;
  overflow: hidden;
}

.post-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 2px, transparent 2px);
  background-size: 40px 40px;
  pointer-events: none;
}

.post-header__inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.post-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  animation: forgeReveal 600ms ease both;
  animation-delay: 0ms;
}

.post-header__breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}

.post-header__breadcrumb a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.post-header__breadcrumb-sep {
  color: var(--border);
}

.post-header__title {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 48px;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 740px;
  animation: forgeReveal 600ms ease both;
  animation-delay: 120ms;
}

.post-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  animation: forgeReveal 600ms ease both;
  animation-delay: 240ms;
}

.post-header__meta-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

.post-header__meta-sep {
  color: var(--border);
  font-size: 12px;
}

.post-header__hero-image {
  margin-top: 32px;
  border-radius: 10px;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  overflow: hidden;
  display: block;
}

.post-header-divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}

@media (max-width: 767px) {
  .post-header {
    padding: 6rem 1.5rem 2rem;
  }

  .post-header__title {
    font-size: 30px;
  }
}

/* =============================================
   POST LAYOUT (body + sidebar)
   ============================================= */

.post-layout {
  max-width: var(--blog-layout-max-width);
  margin: 0 auto;
  padding: 64px var(--blog-section-padding-x);
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--blog-layout-gap);
}

@media (max-width: 1023px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 40px var(--blog-section-padding-x-mobile);
  }
}

/* =============================================
   POST BODY (prose)
   ============================================= */

.post-body {
  max-width: var(--blog-body-max-width);
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
}

.post-body h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--text-primary);
  line-height: 1.25;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--amber);
  position: relative;
}

.post-body h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 2px solid rgba(232, 160, 32, 0.5);
}

.post-body h4 {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 28px;
  margin-bottom: 8px;
}

.post-body p {
  margin-bottom: 24px;
}

.post-body a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 160, 32, 0.3);
  transition: color 150ms ease, border-color 150ms ease;
}

.post-body a:hover {
  color: var(--amber-light);
  border-bottom-color: var(--amber-light);
}

.post-body strong {
  font-weight: 600;
  color: var(--text-primary);
}

.post-body em {
  color: var(--text-primary);
  font-style: italic;
}

/* Lists */
.post-body ul {
  margin-bottom: 24px;
  padding-left: 0;
  list-style: none;
}

.post-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
}

.post-body ul li::before {
  content: "•";
  color: var(--amber);
  position: absolute;
  left: 0;
  font-size: 18px;
  line-height: 1.5;
}

.post-body ol {
  margin-bottom: 24px;
  padding-left: 0;
  list-style: none;
  counter-reset: post-ol;
}

.post-body ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 10px;
  counter-increment: post-ol;
}

.post-body ol li::before {
  content: counter(post-ol);
  position: absolute;
  left: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--amber);
  font-weight: 700;
  top: 3px;
  width: 24px;
  text-align: right;
}

/* Code */
.post-body code {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--amber-light);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}

.post-body pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
  overflow-x: auto;
  position: relative;
}

.post-body pre code {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
  background: transparent;
  border: none;
  padding: 0;
}

/* Blockquote */
.post-body blockquote {
  border-left: 4px solid var(--amber);
  padding: 20px 24px;
  margin: 32px 0;
  background: rgba(232, 160, 32, 0.04);
  border-radius: 0 8px 8px 0;
}

.post-body blockquote p {
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 0;
}

.post-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
}

/* HR */
.post-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
  position: relative;
}

.post-body hr::before {
  content: "///";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--bg-primary);
  padding: 0 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 4px;
  opacity: 0.6;
}

/* Images */
.post-body img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 32px 0;
  display: block;
}

.post-body figcaption,
.post-body__caption {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: -24px;
  margin-bottom: 32px;
}

/* Tables */
.post-body table {
  width: 100%;
  margin-bottom: 32px;
  border-collapse: collapse;
}

.post-body th {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  padding: 10px 16px;
  text-align: left;
}

.post-body td {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  vertical-align: top;
}

.post-body tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 767px) {
  .post-body {
    font-size: 16px;
  }

  .post-body h2 {
    font-size: 24px;
  }

  .post-body h3 {
    font-size: 19px;
  }
}

/* =============================================
   SIDEBAR (TOC)
   ============================================= */

.post-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.post-sidebar::-webkit-scrollbar {
  display: none;
}

.post-sidebar__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: 2px solid var(--amber);
  border-radius: 8px;
  padding: 24px;
}

.post-sidebar__heading {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.post-sidebar__toc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-sidebar__toc li {
  margin-bottom: 0;
}

.toc-link {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--border);
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}

.toc-link:hover {
  color: var(--text-primary);
  border-left-color: var(--amber);
}

.toc-link.active {
  color: var(--amber);
  border-left-color: var(--amber);
  font-weight: 500;
}

.toc-h3 {
  padding-left: 24px;
  font-size: 12px;
  color: rgba(138, 135, 128, 0.7);
}

@media (max-width: 1023px) {
  .post-sidebar {
    display: none;
  }
}

/* =============================================
   POST CTA CARD
   ============================================= */

.post-cta {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 48px;
  margin-top: 64px;
  max-width: var(--blog-body-max-width);
  box-shadow: 0 0 60px rgba(232, 160, 32, 0.06);
}

.post-cta__eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
}

.post-cta__headline {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--text-primary);
  margin-top: 8px;
}

.post-cta__subtext {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 10px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.post-cta__btn {
  display: inline-block;
  background: var(--amber);
  color: #000;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 32px;
  border-radius: 8px;
  min-width: 240px;
  text-align: center;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.post-cta__btn:hover {
  background: var(--amber-light);
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(232, 160, 32, 0.25);
}

.post-cta__secondary {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--amber);
  margin-top: 12px;
  text-decoration: none;
}

.post-cta__secondary:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .post-cta {
    padding: 32px;
  }

  .post-cta__headline {
    font-size: 22px;
  }
}

/* =============================================
   RELATED POSTS
   ============================================= */

.post-related {
  max-width: var(--blog-layout-max-width);
  margin: 0 auto;
  padding: 64px var(--blog-section-padding-x);
  border-top: 1px solid var(--border);
}

.post-related__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.post-related__heading::before {
  content: "—";
  color: var(--amber);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 22px;
}

.post-related__title {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--text-primary);
}

.post-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1023px) {
  .post-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .post-related {
    padding: 40px 20px;
  }

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