/* ==========================================================================
   ASINUP Secondary Pages Styles
   Complementary stylesheet loaded after styles.css
   Reuses colors, typography, cards, and buttons from the landing design.
   ========================================================================== */

/* --- Active Header & Mobile Navigation Styles --- */
.nav-link[aria-current="page"] {
  color: var(--color-orange-hero);
  font-weight: 700;
}

.mobile-nav-link[aria-current="page"] {
  color: var(--color-orange-hero);
  font-weight: 700;
}

.footer-links a[aria-current="page"] {
  color: var(--color-orange-hero);
  font-weight: 600;
}

/* --- Page Hero Band (Landing beige tone) --- */
.page-hero {
  background-color: var(--color-beige);
  border-bottom: 1px solid var(--color-beige-border);
  padding: 48px 0;
}

.page-hero-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  margin: 0;
}

.page-hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 720px;
  margin: 0;
}

/* --- Main Content Section Wrapper --- */
.page-main-content {
  padding: 56px 0 80px;
  background-color: var(--color-white);
  min-height: 50vh;
}

/* --- Legal & Policy Layout (2-column desktop, 70ch readable width, sticky TOC) --- */
.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 96px;
  background-color: var(--color-beige);
  border: 1px solid var(--color-beige-border);
  border-radius: var(--radius-card);
  padding: 24px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.legal-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-beige-border);
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.legal-toc-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: color 0.15s ease;
  display: block;
}

.legal-toc-link:hover {
  color: var(--color-orange-hero);
}

.legal-content {
  max-width: 72ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-main);
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 28px;
  margin-bottom: 12px;
  scroll-margin-top: 96px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  color: var(--color-orange-hero);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-back-to-top:hover {
  text-decoration: underline;
}

/* --- Market Reality Index Grid --- */
.market-reality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.market-reality-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-beige-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.market-reality-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
  border-color: #d8d3c8;
}

.market-reality-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-beige);
}

.market-reality-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.market-reality-card:hover .market-reality-card-img {
  transform: scale(1.02);
}

.market-reality-card-body {
  padding: 22px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.market-reality-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-navy);
  margin: 0;
  transition: color 0.15s ease;
}

.market-reality-card:hover .market-reality-card-title {
  color: var(--color-orange-hero);
}

/* --- Single Article Layout (Negative Reviews) --- */
.article-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-orange-hero);
  text-decoration: none;
  margin-bottom: 24px;
}

.back-link:hover {
  text-decoration: underline;
}

.article-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-navy);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.article-media {
  width: 100%;
  border-radius: var(--radius-img);
  overflow: hidden;
  border: 1px solid var(--color-beige-border);
  margin-bottom: 40px;
  background: var(--color-beige);
}

.article-media-img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-main);
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 28px;
  margin-bottom: 12px;
  scroll-margin-top: 96px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul {
  margin: 0 0 20px 24px;
  padding: 0;
}

.article-body li {
  margin-bottom: 8px;
}

.citation-tag {
  display: inline-block;
  padding: 3px 10px;
  background-color: var(--color-beige);
  border: 1px solid var(--color-beige-border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 8px 0 20px;
}

/* --- FAQ Layout (Clean visible questions, jump link grid, no accordions) --- */
.faq-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.faq-nav-card {
  background: var(--color-beige);
  border: 1px solid var(--color-beige-border);
  border-radius: var(--radius-card);
  padding: 28px;
  margin-bottom: 48px;
}

.faq-nav-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-beige-border);
}

.faq-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-nav-link {
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: color 0.15s ease;
  font-weight: 500;
}

.faq-nav-link:hover {
  color: var(--color-orange-hero);
  text-decoration: underline;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.faq-card {
  background: var(--color-white);
  border: 1px solid var(--color-beige-border);
  border-radius: var(--radius-card);
  padding: 32px;
  scroll-margin-top: 96px;
}

.faq-card-q {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 14px;
  line-height: 1.35;
}

.faq-card-a {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-main);
}

.faq-card-a p {
  margin-bottom: 14px;
}

.faq-card-a p:last-child {
  margin-bottom: 0;
}

/* --- About Page Layout --- */
.about-container {
  max-width: 980px;
  margin: 0 auto;
}

.about-card {
  background: var(--color-beige);
  border: 1px solid var(--color-beige-border);
  border-radius: var(--radius-panel);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-img-box {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-beige-border);
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-main);
}

.about-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.about-content p {
  margin-bottom: 16px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* --- Why It Works Page Layout --- */
.why-works-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.why-works-card {
  background: var(--color-white);
  border: 1px solid var(--color-beige-border);
  border-radius: var(--radius-card);
  padding: 36px 40px;
}

.why-works-card:nth-child(even) {
  background: var(--color-beige);
}

.why-works-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 18px;
  line-height: 1.3;
}

.why-works-card-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-main);
}

.why-works-card-text p {
  margin-bottom: 16px;
}

.why-works-card-text p:last-child {
  margin-bottom: 0;
}

/* --- Responsive Media Queries --- */
@media (max-width: 991px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-sidebar {
    position: static;
    max-height: none;
  }

  .market-reality-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-card {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }

  .faq-nav-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 32px 0;
  }

  .page-hero-title {
    font-size: 1.75rem;
  }

  .page-main-content {
    padding: 36px 0 60px;
  }

  .market-reality-grid {
    grid-template-columns: 1fr;
  }

  .article-hero-title {
    font-size: 1.625rem;
  }

  .faq-card {
    padding: 22px;
  }

  .faq-card-q {
    font-size: 1.15rem;
  }

  .why-works-card {
    padding: 24px;
  }

  .why-works-card-title {
    font-size: 1.25rem;
  }

  .about-card {
    padding: 20px;
  }

  .about-content h2 {
    font-size: 1.75rem;
  }
}


/* Market Reality articles */
.article-body h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 24px;
  margin-bottom: 12px;
  scroll-margin-top: 96px;
}

.article-body a {
  color: var(--color-orange-hero);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--color-orange-hover);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.article-body th,
.article-body td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-beige-border);
  vertical-align: top;
}

.article-body th {
  background-color: var(--color-beige);
  color: var(--color-navy);
  font-weight: 700;
}

.article-body tr:hover td {
  background-color: rgba(245, 243, 239, 0.5);
}

@media (max-width: 768px) {
  .article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ==========================================================================
   Round 4: Market Reality Blog Index & Blog Article (Amazon Blog Layout)
   ========================================================================== */

/* --- Blog Index Layout --- */
.blog-index-hero {
  padding: 64px 0 40px;
  background-color: var(--color-white);
}

.blog-index-h1 {
  font-size: 4.5rem; /* 72px / 700 */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-navy);
  margin: 0;
}

.blog-index-subhead {
  font-size: 1.5rem; /* 24px */
  font-weight: 400;
  line-height: 1.35;
  color: #161d26;
  margin-top: 14px;
  max-width: 820px;
}

.featured-row-section {
  padding-bottom: 64px;
  background-color: var(--color-white);
}

.featured-row-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: stretch;
}

/* Featured Big Card (Article 1, 16:9) */
.featured-big-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-beige-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.featured-big-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: #d8d3c8;
}

.featured-big-card:hover .featured-big-title {
  text-decoration: underline;
}

.featured-big-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-beige);
}

.featured-big-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.featured-big-card:hover .featured-big-img {
  transform: scale(1.03);
}

.featured-big-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.featured-big-title {
  font-size: 1.5rem; /* 24px / 700 */
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
  margin: 0;
}

.featured-big-excerpt {
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.5;
  color: #161d26;
  margin: 4px 0 0 0;
}

/* 3 Small Items Column (Articles 2, 3, 4, 150x150) */
.featured-small-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.featured-small-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-beige-border);
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex: 1;
}

.featured-small-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #d8d3c8;
}

.featured-small-item:hover .featured-small-title {
  text-decoration: underline;
}

.featured-small-thumb-wrap {
  width: 150px;
  height: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-beige);
}

.featured-small-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.featured-small-item:hover .featured-small-thumb {
  transform: scale(1.03);
}

.featured-small-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.featured-small-title {
  font-size: 1.125rem; /* 18px / 700 */
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-navy);
  margin: 0;
}

/* Tag Pill: small pill, 12px / 600, light tinted background, dark text of the same hue */
.card-tag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
  line-height: 1.3;
}

/* Category Tints (Amazon style) */
.card-tag-pill.tag-green,
.card-tag-pill.tag-reviews {
  background-color: #e6f4ea;
  color: #137333;
}

.card-tag-pill.tag-red,
.card-tag-pill.tag-power {
  background-color: #fce8e6;
  color: #c5221f;
}

.card-tag-pill.tag-blue,
.card-tag-pill.tag-pricing {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.card-tag-pill.tag-purple,
.card-tag-pill.tag-brand {
  background-color: #f3e8fd;
  color: #7627bb;
}

/* Meta Read Time */
.card-meta-read {
  font-size: 0.875rem; /* 14px */
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Full-width Beige Band: 3-column card grid */
.blog-index-grid-section {
  padding: 80px 0;
  background-color: var(--color-beige);
  border-top: 1px solid var(--color-beige-border);
  border-bottom: 1px solid var(--color-beige-border);
}

.blog-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-beige-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #d8d3c8;
}

.blog-card:hover .blog-card-title {
  text-decoration: underline;
}

.blog-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-beige);
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.25rem; /* 20px / 700 */
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-navy);
  margin: 0;
  flex-grow: 1;
}

/* --- Blog Article Layout --- */
.article-hero-section {
  padding: 48px 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-beige-border);
}

.article-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.article-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-orange-hero);
  text-decoration: none;
  margin-bottom: 8px;
}

.article-back-link:hover {
  text-decoration: underline;
}

.article-hero-h1 {
  font-size: 3.25rem; /* 52px / 700 */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin: 0;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.article-hero-frame {
  width: 100%;
  max-width: 578px;
  aspect-ratio: 5 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-beige);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.article-hero-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3-Column Body Section */
.article-body-section {
  padding: 56px 0 80px;
  background-color: var(--color-white);
}

.article-3col-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 733px) 1fr;
  gap: 48px;
  align-items: start;
}

/* Left Sticky Column */
.article-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-right: 8px;
}

.article-toc-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-toc-label {
  font-size: 0.75rem; /* 12px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5e6a78;
}

.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-toc-item a {
  font-size: 0.875rem; /* 14px */
  line-height: 1.4;
  color: #5e6a78;
  text-decoration: none;
  transition: color 0.15s ease;
  display: block;
}

.article-toc-item a:hover {
  color: var(--color-orange-hero);
}

/* Related in Sidebar: 3 items, 80x80 square thumb */
.article-sidebar-related {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-beige-border);
}

.article-sidebar-heading {
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-navy);
}

.article-sidebar-related-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-sidebar-related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.article-sidebar-related-item:hover {
  opacity: 0.85;
}

.article-sidebar-related-item:hover .article-sidebar-related-title {
  text-decoration: underline;
}

.article-sidebar-thumb-wrap {
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-beige);
}

.article-sidebar-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-sidebar-related-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-sidebar-related-title {
  font-size: 0.875rem; /* 14px / 700 */
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-sidebar-related-meta {
  font-size: 0.75rem; /* 12px */
  color: var(--color-text-muted);
  font-weight: 500;
}

.article-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-orange-hero);
  text-decoration: none;
  padding-top: 8px;
}

.article-back-to-top:hover {
  text-decoration: underline;
}

/* Main Column: ~733px, max 70ch */
.article-main-col {
  max-width: 733px;
  width: 100%;
}

.article-main-col .article-body {
  font-size: 1rem; /* 16px */
  line-height: 1.5;
  color: #5e6a78;
}

.article-main-col .article-body h2 {
  font-size: 2.375rem; /* 38px / 700 */
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
  margin-top: 48px;
  margin-bottom: 20px;
  scroll-margin-top: 88px;
}

.article-main-col .article-body h3 {
  font-size: 1.75rem; /* 28px / 700 */
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
  margin-top: 36px;
  margin-bottom: 16px;
  scroll-margin-top: 88px;
}

.article-main-col .article-body h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 28px;
  margin-bottom: 12px;
  scroll-margin-top: 88px;
}

.article-main-col .article-body p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: #5e6a78;
}

.article-main-col .article-body blockquote {
  font-size: 1.25rem; /* 20px / 400 / 1.5 */
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-navy);
  border-left: 3px solid var(--color-orange);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-style: normal;
}

.article-main-col .article-body img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  margin: 32px 0;
}

/* Empty Right Spacer */
.article-right-spacer {
  display: block;
}

/* Related Band at the Bottom: 3 cards, 16:9 */
.article-bottom-related-section {
  background-color: #f9f9f9;
  border-top: 1px solid var(--color-beige-border);
  padding: 64px 0 80px;
}

.article-bottom-related-title {
  font-size: 2rem; /* 32px / 700 */
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 36px;
}

.article-bottom-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* Mobile Collapsible TOC */
.mobile-toc-details {
  display: none;
  background: var(--color-beige);
  border: 1px solid var(--color-beige-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 32px;
}

.mobile-toc-details summary {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
}

.mobile-toc-details .article-toc-list {
  margin-top: 12px;
}

/* Responsive Queries for Blog Index and Articles */
@media (max-width: 1024px) {
  .featured-row-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-grid-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .article-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-3col-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-sidebar {
    position: static;
    max-height: none;
    padding-right: 0;
  }

  .article-right-spacer {
    display: none;
  }

  .article-bottom-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .blog-index-hero {
    padding: 36px 0 24px;
  }

  .blog-index-h1 {
    font-size: 2.25rem; /* ~36px */
  }

  .featured-small-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-small-thumb-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .blog-grid-3col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-index-grid-section {
    padding: 48px 0;
  }

  .article-hero-section {
    padding: 32px 0;
  }

  .article-hero-h1 {
    font-size: 2rem; /* 32px / 700 */
  }

  .mobile-toc-details {
    display: block;
  }

  .article-toc-box {
    display: none; /* replaced by mobile-toc-details on phone */
  }

  .article-bottom-related-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
