/* ==========================================================================
   RokkuWare Primer Detail Page Stylesheet (Polished 1-5 Node Experience)
   ========================================================================== */
@import url('variables.css');

html {
  scroll-behavior: smooth;
}

.node-scroll-target {
  scroll-margin-top: calc(var(--header-height, 63px) + 55px);
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary, #0e8088), #22b1ab);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Hero Banner (Full-Width, 420px Edge-to-Edge)
   ========================================================================== */
.primer-hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  background-color: #121416;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.primer-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.primer-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.5) 45%,
      rgba(14, 18, 22, 0.94) 100%);
  z-index: 1;
}

.primer-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  padding: 2.5rem 1.5rem 1.75rem;
  text-align: center;
  color: #ffffff;
}

/* Breadcrumb Navigation in Hero (kept for compatibility) */
.primer-breadcrumb {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.primer-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.primer-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.primer-breadcrumb .bc-sep {
  opacity: 0.5;
}

.primer-breadcrumb .bc-current {
  color: #ffffff;
  font-weight: 600;
}

.primer-category-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.primer-title {
  font-family: var(--font-brand);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.5px;
}

.primer-teaser {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  line-height: 1.55;
  max-width: 760px;
  margin: 0 auto;
}

/* Meta Highlights & Share in Hero */
.primer-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.05rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.meta-pill-category {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  transition: all var(--transition-fast);
}

.meta-pill-category:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.meta-share-btn {
  cursor: pointer;
  background: rgba(14, 128, 136, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.meta-share-btn:hover {
  background: var(--primary, #0e8088);
  transform: translateY(-1px);
}

/* ==========================================================================
   Sticky Sub-Nav (Quick Jump Between Nodes)
   ========================================================================== */
.primer-subnav-sticky {
  position: sticky;
  top: calc(var(--header-height, 63px) - 3px);
  z-index: 95;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.primer-subnav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.primer-subnav-container::-webkit-scrollbar {
  display: none;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark, #2d3748);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.subnav-link:hover {
  color: var(--primary, #0e8088);
  background-color: var(--primary-light, #e8f5f6);
}

.subnav-link.active {
  background-color: var(--primary, #0e8088);
  color: #ffffff;
}

/* ==========================================================================
   Article Content Container (Max-Width 900px, Content Box 852px)
   ========================================================================== */
.primer-article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

.primer-section-node {
  margin-bottom: 4.5rem;
}

.primer-section-node:last-child {
  margin-bottom: 2rem;
}

.node-badge-wrapper {
  margin-bottom: 0.6rem;
}

.node-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary, #0e8088);
  background: var(--primary-light, #e8f5f6);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

.node-heading {
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.4px;
}

.node-subheading {
  font-size: 1.05rem;
  color: var(--text-muted, #718096);
  line-height: 1.5;
  margin-top: -0.5rem;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   Editorial Prose & Structured Typography Layouts
   ========================================================================== */
.primer-prose {
  font-size: 1.125rem;
  line-height: 1.82;
  color: #334155;
}

.primer-prose p {
  margin-bottom: 1.35rem;
}

.primer-prose p:last-child {
  margin-bottom: 0;
}

/* Lead Paragraph (First Paragraph in Nodes 1 & 2) */
.prose-lead {
  font-size: 1.18rem;
  line-height: 1.85;
  color: #1e293b;
  font-weight: 450;
  margin-bottom: 1.5rem;
  letter-spacing: -0.1px;
}

/* Standard Paragraph */
.prose-p {
  font-size: 1.125rem;
  line-height: 1.82;
  color: #334155;
  margin-bottom: 1.35rem;
}

/* Inline Typography Elements */
.prose-bold {
  font-weight: 700;
  color: #0f172a;
}

.prose-italic {
  font-style: italic;
  color: inherit;
}

.prose-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  color: var(--primary, #0e8088);
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  word-break: break-word;
}

/* ==========================================================================
   Feature Cards Stack (Bulleted Landscape / Camp Items)
   ========================================================================== */
.prose-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 1.85rem 0;
}

.prose-card-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.prose-card-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #0e8088);
  box-shadow: 0 8px 22px rgba(14, 128, 136, 0.08);
}

.prose-card-indicator {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 0.65rem;
  border-radius: 50%;
  background-color: var(--primary, #0e8088);
  box-shadow: 0 0 0 4px var(--primary-light, #e8f5f6);
}

.prose-card-body {
  flex: 1;
}

.prose-card-title {
  font-size: 1.12rem;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 0.45rem 0;
  letter-spacing: -0.2px;
}

.prose-card-desc {
  font-size: 1.05rem;
  line-height: 1.72;
  color: #475569;
  margin: 0;
}

/* ==========================================================================
   Roadmap Steps Stack (Milestone Step Progression)
   ========================================================================== */
.prose-steps-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 1.85rem 0;
}

.prose-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.prose-step-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #0e8088);
  box-shadow: 0 8px 22px rgba(14, 128, 136, 0.08);
}

.prose-step-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary, #0e8088) 0%, #0a6b72 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(14, 128, 136, 0.3);
  margin-top: 0.15rem;
}

.prose-step-body {
  flex: 1;
}

.prose-step-title {
  font-size: 1.12rem;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 0.45rem 0;
  letter-spacing: -0.2px;
}

.prose-step-desc {
  font-size: 1.05rem;
  line-height: 1.72;
  color: #475569;
  margin: 0;
}

/* ==========================================================================
   Recommendation Callout Box (Landscape Bottom Line)
   ========================================================================== */
.prose-callout {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
  border: 1.5px solid rgba(14, 128, 136, 0.28);
  border-radius: 14px;
  padding: 1.45rem 1.75rem;
  margin: 2.25rem 0 1.5rem;
  box-shadow: none;
}

.callout-badge-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.callout-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.callout-pill {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary, #0e8088);
  background: rgba(14, 128, 136, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.callout-content p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #134e4a;
  font-weight: 500;
  margin: 0;
}

/* ==========================================================================
   Milestone Victory Closer & Title
   ========================================================================== */
.prose-milestone-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.prose-mission-title {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.3px;
}

.prose-mission-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary, #0e8088);
  background: var(--primary-light, #e8f5f6);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}

.prose-victory-callout {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid rgba(22, 163, 74, 0.28);
  border-radius: 14px;
  padding: 1.35rem 1.65rem;
  margin: 1.85rem 0 0.5rem;
  box-shadow: none;
}

.victory-badge-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.victory-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.victory-pill {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #15803d;
  background: rgba(22, 163, 74, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.victory-content p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #14532d;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 640px) {
  .prose-card-item {
    padding: 1.05rem 1.15rem;
    gap: 0.85rem;
  }

  .prose-step-item {
    padding: 1.05rem 1.15rem;
    gap: 0.85rem;
  }

  .prose-step-badge {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .prose-card-title,
  .prose-step-title {
    font-size: 1.02rem;
  }

  .prose-callout,
  .prose-victory-callout {
    padding: 1.15rem 1.25rem;
  }

  .prose-milestone-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
}

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

/* Right-Aligned Aside Image (Node 1 Core Appeal Photo) */
.node-aside-img-wrap {
  float: right;
  width: 42%;
  max-width: 360px;
  margin: 0.3rem 0 1.5rem 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color, #e2e8f0);
}

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

.node-aside-img-wrap:hover .node-aside-img {
  transform: scale(1.03);
}

@media (max-width: 680px) {
  .node-aside-img-wrap {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.5rem 0;
  }
}

/* ==========================================================================
   Node 3: Starter Kit & Budget
   ========================================================================== */
.starter-kit-block {
  /* Seamless transparent background */
}

.starter-budget-summary {
  background: linear-gradient(135deg, #e8f5f6 0%, #f0fdf4 100%);
  border: 1.5px solid rgba(14, 128, 136, 0.22);
  border-radius: 16px;
  padding: 1.25rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 14px rgba(14, 128, 136, 0.05);
}

.budget-summary-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.budget-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.budget-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary, #0e8088);
}

.budget-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.2;
}

.budget-summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 540px;
}

.budget-gear-list {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #1a202c;
}

.budget-gear-label {
  font-weight: 700;
  color: var(--primary, #0e8088);
  margin-right: 0.25rem;
}

.budget-gear-items {
  font-weight: 600;
  color: #2d3748;
}

.budget-summary-note {
  font-size: 0.88rem;
  font-weight: 500;
  color: #4a5568;
  line-height: 1.4;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.gear-card {
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gear-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary, #0e8088);
}

.gear-image-wrap {
  aspect-ratio: 1 / 1;
  background-color: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  overflow: hidden;
  padding: 0.75rem;
}

.gear-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.gear-card:hover .gear-img {
  transform: scale(1.05);
}

.gear-icon-placeholder {
  font-size: 3rem;
  color: var(--primary, #0e8088);
  opacity: 0.8;
}

.gear-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  min-height: 2.7rem;
}

.gear-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary, #0e8088);
  margin-bottom: 1.25rem;
}

.btn-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background-color: var(--primary, #0e8088);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
  margin-top: auto;
}

.btn-amazon:hover {
  background-color: var(--primary-hover, #0a6b72);
  color: #ffffff;
  transform: translateY(-1px);
}

.affiliate-legal-notice {
  font-size: 0.8rem;
  color: #718096;
  margin-top: 1.5rem;
  text-align: center;
  font-style: italic;
  line-height: 1.4;
}

/* ==========================================================================
   Node 5: The First Milestone (Interactive Win Box & Celebration)
   ========================================================================== */
.primer-milestone-container {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.milestone-box {
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-top: 1.25rem;
  box-shadow: none;
  transition: all 0.3s ease;
}

.milestone-box.achieved {
  background-color: #f0fdf4;
  border-color: #86efac;
  box-shadow: none;
}

.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.milestone-badge {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary, #0e8088);
  letter-spacing: 0.5px;
}

.milestone-box.achieved .milestone-badge {
  color: #16a34a;
}

.milestone-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-pill);
  background-color: #ffffff;
  border: 1.5px solid var(--primary, #0e8088);
  color: var(--primary, #0e8088);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.milestone-action-btn:hover {
  background-color: var(--primary-light, #e8f5f6);
}

.milestone-action-btn.achieved {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.milestone-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #2d3748;
}

/* ==========================================================================
   Node 5: The Rabbit Hole (Full-Width Breakout with Dynamic YouTube Cards)
   ========================================================================== */
.rabbit-hole-section {
  width: 100%;
  background-color: #f8fafc;
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--border-color, #e2e8f0);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.rabbit-hole-container {
  max-width: 1140px;
  margin: 0 auto;
}

.rabbit-hole-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.rabbit-hole-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.video-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--primary, #0e8088);
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #1a202c;
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumb {
  transform: scale(1.05);
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: rgba(220, 20, 60, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.video-card:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background-color: #e60000;
}

.video-info {
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}

.video-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 0.5rem;
}

.video-channel {
  font-size: 0.82rem;
  color: var(--text-muted, #718096);
  font-weight: 600;
}

.video-play-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary, #0e8088);
  background: var(--primary-light, #e8f5f6);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.video-card:hover .video-play-tag {
  background: var(--primary, #0e8088);
  color: #ffffff;
}

/* ==========================================================================
   Video Player Modal (In-Site YouTube Embed)
   ========================================================================== */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-dialog {
  width: 100%;
  max-width: 860px;
  background: #0f172a;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.video-modal-overlay.active .video-modal-dialog {
  transform: translateY(0) scale(1);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 1rem;
}

.video-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-modal-close:hover {
  background: rgba(239, 68, 68, 0.85);
  transform: scale(1.08);
}

.video-modal-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #000000;
}

.video-modal-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 1.4rem;
  background: #1e293b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal-ext-btn {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.video-modal-ext-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   Bottom Engagement: Keep Exploring & Action Hub
   ========================================================================== */
.primer-explore-section {
  width: 100%;
  background-color: #ffffff;
  padding: 4.5rem 1.5rem;
}

.primer-explore-container {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

.explore-heading {
  font-family: var(--font-brand);
  font-size: 1.85rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 2.25rem;
  letter-spacing: -0.3px;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto 3rem;
  width: 100%;
}

.explore-grid .discovery-card {
  width: 100%;
  max-width: 100%;
  flex: none;
  height: 125px;
}

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

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

.primer-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-explore-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-explore-share {
  background-color: #ffffff;
  color: var(--text-dark, #2d3748);
  border: 1.5px solid var(--border-color, #cbd5e0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-explore-share:hover {
  border-color: var(--primary, #0e8088);
  color: var(--primary, #0e8088);
  background-color: var(--primary-light, #e8f5f6);
  transform: translateY(-2px);
}

.milestone-action-btn.achieved {
  animation: milestonePulse 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes milestonePulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.primer-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #1a202c;
  color: #ffffff;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.primer-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Polish
   ========================================================================== */
@media (max-width: 900px) {
  .primer-title {
    font-size: 2.1rem;
  }

  .rabbit-hole-grid {
    grid-template-columns: 1fr;
  }

  .starter-budget-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .primer-subnav-sticky {
    top: 0;
  }

  .rabbit-hole-section {
    padding: 3.5rem 1rem;
  }

  .rabbit-hole-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .primer-subnav-sticky {
    top: calc(var(--header-height, 55px) - 3px);
  }

  .node-scroll-target {
    scroll-margin-top: calc(var(--header-height, 55px) + 50px);
  }

  /* Fix sticky subnav flexbox left-clipping bug on mobile */
  .primer-subnav-container {
    justify-content: flex-start;
    padding: 0.5rem 0.85rem;
    gap: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .subnav-link {
    scroll-snap-align: start;
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    flex-shrink: 0;
    min-height: 38px;
  }

  /* Node 1: Clear float and full-bleed image on mobile */
  .node-aside-img-wrap {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem 0;
    border-radius: 14px;
  }

  .node-aside-img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
  }

  /* Video Modal mobile polish */
  .video-modal-overlay {
    padding: 0.5rem;
  }

  .video-modal-dialog {
    max-height: 94dvh;
    border-radius: 14px;
  }

  .video-modal-header {
    padding: 0.7rem 1rem;
  }

  .video-modal-title {
    font-size: 0.95rem;
  }

  .video-modal-close {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .video-modal-footer {
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 600px) {
  .primer-hero {
    min-height: auto;
    padding: 2rem 1rem 1.4rem;
  }

  .primer-title {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 0.6rem;
  }

  .primer-teaser {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .primer-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
  }

  .meta-pill {
    font-size: 0.76rem;
    padding: 0.35rem 0.55rem;
    white-space: nowrap;
    flex-shrink: 1;
    gap: 0.25rem;
  }

  .budget-label-full {
    display: none;
  }

  .primer-article-container {
    padding: 1.75rem 1rem 1.5rem;
  }

  .primer-milestone-container {
    padding: 2rem 1rem 3rem;
  }

  .node-heading {
    font-size: 1.45rem;
    margin-bottom: 1rem;
  }

  .node-body {
    font-size: 1.02rem;
    line-height: 1.75;
  }

  .milestone-box {
    padding: 1.25rem;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0 !important;
    border-left: 1.5px solid #e2e8f0 !important;
    box-shadow: none !important;
  }

  .milestone-box.achieved {
    border-color: #86efac !important;
    border-left: 1.5px solid #86efac !important;
    box-shadow: none !important;
  }

  .milestone-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .milestone-action-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    font-size: 0.95rem;
  }

  /* Starter Budget Summary mobile */
  .starter-budget-summary {
    flex-direction: column;
    align-items: stretch;
    padding: 1.15rem 1.15rem;
    gap: 0.85rem;
  }

  .budget-amount {
    font-size: 1.4rem;
  }

  .budget-gear-list {
    font-size: 0.84rem;
  }

  .budget-summary-note {
    font-size: 0.82rem;
  }

  /* Gear grid & buttons */
  .gear-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gear-card {
    padding: 1.15rem;
    border-radius: 14px;
  }

  .gear-image-wrap {
    height: 180px;
    aspect-ratio: auto;
    margin-bottom: 0.85rem;
  }

  .btn-amazon {
    width: 100%;
    min-height: 46px;
    font-size: 0.95rem;
  }

  /* Explore Section Mobile */
  .explore-heading {
    font-size: clamp(1.2rem, 5.2vw, 1.38rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.2px;
  }

  /* Explore Grid */
  .explore-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .explore-grid .discovery-card {
    height: 105px;
  }

  .primer-bottom-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-explore-action {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
}

@media (max-width: 360px) {
  .explore-heading {
    font-size: 1.15rem;
  }
}