.guide-shell {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 184, 79, 0.2), transparent 22rem),
    radial-gradient(circle at 90% 8%, rgba(44, 107, 255, 0.12), transparent 24rem),
    linear-gradient(180deg, #fffdfa 0%, #f7faff 36%, #ffffff 100%);
}

.guide-hero {
  padding: 4.2rem 0 2.5rem;
}

.guide-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: grid;
  align-items: end;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(8, 22, 41, 0.88) 0%, rgba(8, 22, 41, 0.66) 42%, rgba(8, 22, 41, 0.08) 100%),
    url("../assets/ai-guides-hero.png") center / cover no-repeat;
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.guide-hero-copy {
  max-width: 680px;
  padding: clamp(1.6rem, 5vw, 4rem);
  box-sizing: border-box;
}

.guide-hero-copy h1,
.guide-page-title {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

.guide-hero-copy p {
  margin: 1.1rem 0 0;
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.72;
}

.guide-library {
  padding: 1rem 0 4rem;
}

.guide-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-library-card {
  display: grid;
  gap: 0.85rem;
  min-height: 330px;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid rgba(16, 34, 61, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 55px rgba(9, 21, 37, 0.06);
}

.guide-library-card.featured-guide {
  color: var(--white);
  background:
    radial-gradient(circle at 95% 5%, rgba(255, 159, 26, 0.2), transparent 18rem),
    linear-gradient(145deg, #081629, #102947 72%, #17345f);
}

.guide-library-card.featured-guide p,
.guide-library-card.featured-guide .guide-card-meta {
  color: rgba(255, 255, 255, 0.75);
}

.guide-library-card h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.guide-library-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.68;
}

.guide-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--slate-500);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 34, 61, 0.09);
}

.featured-guide .guide-card-actions {
  border-top-color: rgba(255, 255, 255, 0.13);
}

.guide-page-header {
  padding: 3.5rem 0 2rem;
}

.guide-page-panel {
  padding: clamp(1.6rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(16, 34, 61, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.9)),
    radial-gradient(circle at 90% 0%, rgba(255, 184, 79, 0.2), transparent 20rem);
  box-shadow: var(--shadow-soft);
}

.guide-page-title {
  max-width: 13ch;
  color: var(--ink-950);
}

.guide-page-intro {
  max-width: 48rem;
  margin: 1.1rem 0 0;
  color: var(--slate-600);
  font-size: 1.1rem;
  line-height: 1.75;
}

.guide-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.guide-content {
  padding: 1.5rem 0 4rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.guide-main {
  display: grid;
  gap: 1rem;
}

.guide-block {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid rgba(16, 34, 61, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 42px rgba(9, 21, 37, 0.045);
}

.guide-block h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.guide-block h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.guide-block p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.72;
}

.guide-block p + p {
  margin-top: 0.85rem;
}

.guide-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  color: var(--slate-600);
  line-height: 1.65;
}

.guide-list li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sun-500), var(--sky-500));
}

.prompt-box,
.social-hook {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 34, 61, 0.09);
  background: linear-gradient(180deg, rgba(255, 246, 234, 0.85), rgba(255, 255, 255, 0.86));
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.65;
}

.social-hook {
  background: linear-gradient(145deg, rgba(238, 245, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.guide-aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1rem;
}

.guide-aside-card {
  padding: 1.25rem;
  border: 1px solid rgba(16, 34, 61, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 38px rgba(9, 21, 37, 0.045);
}

.guide-aside-card h2,
.guide-aside-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.guide-aside-card p {
  margin: 0.65rem 0 0;
  color: var(--slate-600);
  font-size: 0.9rem;
  line-height: 1.62;
}

.guide-watermark {
  display: none;
}

@media (max-width: 1080px) {
  .guide-layout,
  .guide-hero-panel {
    grid-template-columns: 1fr;
  }

  .guide-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .guide-hero-panel {
    min-height: 520px;
    background:
      linear-gradient(180deg, rgba(8, 22, 41, 0.86) 0%, rgba(8, 22, 41, 0.62) 54%, rgba(8, 22, 41, 0.2) 100%),
      url("../assets/ai-guides-hero.png") center / cover no-repeat;
  }

  .guide-hero-copy {
    width: 100%;
    max-width: 100%;
    padding: 1.55rem;
  }

  .guide-hero-copy h1,
  .guide-page-title {
    font-size: 2.25rem;
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .guide-hero-copy h1 {
    max-width: 9.5ch;
  }

  .guide-library .section-title {
    max-width: 12ch;
    font-size: 1.85rem;
    line-height: 1.12;
  }

  .guide-hero-copy p,
  .guide-page-intro {
    max-width: 20rem;
    font-size: 1rem;
    line-height: 1.62;
  }

  .guide-library .section-copy {
    max-width: 21rem;
  }

  .guide-library-grid,
  .guide-aside {
    grid-template-columns: 1fr;
  }

  .guide-page-actions,
  .guide-card-actions {
    flex-direction: column;
  }
}

@media print {
  @page {
    size: Letter;
    margin: 0.55in;
  }

  * {
    box-shadow: none !important;
  }

  body {
    background: #ffffff !important;
    color: #091525;
  }

  .site-header,
  .footer,
  .guide-page-actions,
  .guide-aside,
  .no-print {
    display: none !important;
  }

  .container {
    width: 100%;
  }

  .guide-page-header,
  .guide-content {
    padding: 0;
  }

  .guide-page-panel,
  .guide-block {
    border: 0;
    border-radius: 0;
    background: transparent !important;
    padding: 0;
    break-inside: avoid;
  }

  .guide-main {
    gap: 0.26in;
  }

  .guide-page-title {
    font-size: 34pt;
    max-width: none;
  }

  .guide-page-intro,
  .guide-block p,
  .guide-list li {
    color: #27364f;
  }

  .guide-block h2 {
    font-size: 19pt;
  }

  .prompt-box,
  .social-hook {
    border: 1px solid #d3dce8;
    background: #fff8ee !important;
  }

  .guide-watermark {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0.1in;
    z-index: -1;
    color: rgba(9, 21, 37, 0.08);
    font-size: 36pt;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: rotate(-18deg);
  }
}
