/* Long-form guide prototype.
   Built on the approved Mariah homepage system and intentionally scoped so it
   can be rolled out across /guides/<slug>/ only after prototype approval. */

body.guide-redesign {
  --guide-paper: #fffae7;
  --guide-tint: #f6eed2;
  --guide-ink: #2f2d2d;
  --guide-red: #d02e2e;
  overflow-x: clip;
  background: var(--guide-paper);
  color: var(--guide-ink);
  font-family: 'Open Sans', sans-serif;
}

.guide-redesign .topbar {
  display: none !important;
}

.guide-redesign .hero {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: auto;
  padding: 0;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 86% 16%, rgba(239, 174, 120, 0.34), transparent 28%),
    var(--guide-red);
  color: var(--guide-paper);
}

.guide-redesign .hero-section {
  padding: 0;
}

.guide-redesign .hero::after {
  position: absolute;
  right: -4vw;
  bottom: -16vw;
  width: 34vw;
  height: 34vw;
  border: 1px solid rgba(255, 250, 231, 0.2);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.guide-redesign .hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(54px, 6.5vw, 96px) 48px clamp(48px, 5.5vw, 82px);
  box-sizing: border-box;
  text-align: center;
}

.guide-redesign .guide-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  color: var(--guide-paper);
  font-family: 'Mariah Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.guide-redesign .guide-back:hover {
  color: var(--guide-paper);
  opacity: 0.76;
}

.guide-redesign .hero-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 18px;
  color: rgba(255, 250, 231, 0.76);
  font-family: 'Mariah Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-redesign .hero-by,
.guide-redesign .hero-social {
  justify-content: center;
}

.guide-redesign .hero-byline strong {
  color: var(--guide-paper);
  font-weight: 800;
}

.guide-redesign .hero-byline a {
  padding: 0;
  border-bottom: 1px solid rgba(255, 250, 231, 0.58);
  background: transparent;
  color: var(--guide-paper);
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  letter-spacing: inherit;
}

.guide-redesign .hero-byline .hero-line {
  display: none;
}

.guide-redesign .hero-byline .hero-name {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: inherit;
}

.guide-redesign .hero-title {
  max-width: 1040px;
  margin: 0 auto 28px;
  color: var(--guide-paper);
  font-family: 'Mariah Display', 'Arial Narrow', sans-serif;
  font-size: clamp(5rem, 9.2vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.006em;
  line-height: 0.82;
  text-transform: uppercase;
  text-wrap: balance;
}

.guide-redesign .hero-title em {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 0.64em;
  font-weight: 500;
  line-height: 0.95;
  text-transform: none;
}

.guide-redesign .hero-title span {
  display: inline-block;
  color: var(--guide-paper) !important;
  font-family: 'Playfair Display', serif;
  font-size: 0.72em;
  font-style: italic;
  font-weight: 500;
  line-height: 0.95;
  text-transform: none;
}

.guide-redesign .hero-sub {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 250, 231, 0.94);
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.7;
}

.guide-redesign .hero-tag,
.guide-redesign .hero-badge,
.guide-redesign .guide-hero-extra {
  display: none !important;
}

.guide-redesign .source-callout,
.guide-redesign .inner,
.guide-redesign .disclosure {
  max-width: 820px;
}

.guide-redesign .source-callout {
  margin-top: 0;
  padding: 32px 28px 0;
}

.guide-redesign .source-inner {
  padding: 18px 20px;
  border: 1px solid rgba(208, 46, 46, 0.15);
  border-left: 4px solid var(--guide-red);
  border-radius: 0 14px 14px 0;
  background: var(--guide-tint);
  font-size: 0.88rem;
}

.guide-redesign .source-inner .source-label,
.guide-redesign .callout-label {
  font-family: 'Mariah Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.guide-redesign .section-cream {
  background: var(--guide-paper);
}

.guide-redesign .inner {
  padding: clamp(30px, 4vw, 52px) 28px;
}

.guide-redesign .body-text,
.guide-redesign .how-list li,
.guide-redesign .pick-list li,
.guide-redesign .step-desc,
.guide-redesign .callout-text {
  font-family: 'Open Sans', sans-serif;
}

.guide-redesign .body-text {
  margin-bottom: 1.1rem;
  color: rgba(47, 45, 45, 0.9);
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  font-weight: 400;
  line-height: 1.72;
}

.guide-redesign .section.content-width {
  max-width: 820px;
  padding: clamp(30px, 4vw, 52px) 28px;
}

.guide-redesign .section-inner {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 28px;
  padding-left: 28px;
}

.guide-redesign .t-body,
.guide-redesign .section.content-width p,
.guide-redesign .section-inner > p {
  color: rgba(47, 45, 45, 0.9);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.75;
}

.guide-redesign .body-text strong {
  color: var(--guide-ink);
  font-weight: 700;
}

.guide-redesign .body-text a,
.guide-redesign .step-desc a,
.guide-redesign .callout-text a {
  color: var(--guide-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.guide-redesign .compare-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.guide-redesign .cmp-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.guide-redesign .lead-in {
  color: var(--guide-ink);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.46;
}

.guide-redesign .tier-banner {
  border-top: 1px solid rgba(208, 46, 46, 0.15);
  border-bottom: 1px solid rgba(208, 46, 46, 0.15);
  background: var(--guide-tint) !important;
}

.guide-redesign .tier-banner-inner {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1120px;
  padding: clamp(24px, 3vw, 42px) 48px;
  gap: 14px;
}

.guide-redesign .tier-banner-inner > * {
  min-width: 0;
  max-width: 100%;
}

.guide-redesign .tier-pill {
  align-self: start;
  padding: 0;
  background: transparent;
  color: var(--guide-red);
  font-family: 'Mariah Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.guide-redesign .tier-title {
  max-width: 780px;
  color: var(--guide-ink);
  font-family: 'Mariah Display', 'Arial Narrow', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.guide-redesign .how-list {
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-redesign .how-list li {
  position: relative;
  min-height: 54px;
  margin: 0;
  padding: 15px 0 15px 66px;
  border-bottom: 1px solid rgba(208, 46, 46, 0.14);
  color: rgba(47, 45, 45, 0.9);
  font-size: 1rem;
  line-height: 1.65;
  counter-increment: guide-step;
}

.guide-redesign .how-list li::before {
  position: absolute;
  top: 14px;
  left: 0;
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--guide-red);
  color: var(--guide-paper);
  content: counter(guide-step, decimal-leading-zero);
  font-family: 'Mariah Display', 'Arial Narrow', sans-serif;
  font-size: 0.75rem;
  place-items: center;
}

.guide-redesign .prompt-box {
  max-height: 620px;
  margin: 28px 0 14px;
  padding: 28px;
  border: 1px solid rgba(255, 250, 231, 0.12);
  border-radius: 20px;
  background: #21110e;
  box-shadow: 0 18px 50px rgba(47, 45, 45, 0.14);
  scrollbar-color: rgba(255, 250, 231, 0.35) transparent;
}

.guide-redesign .prompt-label {
  margin-bottom: 22px;
  color: var(--guide-paper);
  font-family: 'Mariah Display', 'Arial Narrow', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.guide-redesign .prompt-text {
  color: rgba(255, 250, 231, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.75;
}

.guide-redesign .prompt-text strong {
  color: #efae78;
}

.guide-redesign .copy-btn,
.guide-redesign .skill-dl-btn,
.guide-redesign .pdf-download-btn {
  border-radius: 999px;
  font-family: 'Mariah Display', 'Arial Narrow', sans-serif;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.guide-redesign .copy-btn {
  padding: 9px 15px;
  background: var(--guide-paper);
  color: var(--guide-red);
}

.guide-redesign .copy-btn:hover {
  background: var(--guide-red);
  color: var(--guide-paper);
}

.guide-redesign .skill-dl-wrap {
  margin: 18px 0 4px;
}

.guide-redesign .skill-dl-btn {
  min-height: 48px;
  padding: 0 20px;
  background: var(--guide-red);
  color: var(--guide-paper);
}

.guide-redesign .skill-dl-btn:hover {
  background: var(--guide-ink);
  color: var(--guide-paper);
}

.guide-redesign .callout,
.guide-redesign .step-card {
  margin: 26px 0;
  padding: 24px;
  border: 1px solid rgba(208, 46, 46, 0.16);
  border-left: 4px solid var(--guide-red);
  border-radius: 0 16px 16px 0;
  background: var(--guide-tint);
}

.guide-redesign .callout-text,
.guide-redesign .step-desc {
  color: rgba(47, 45, 45, 0.88);
  font-size: 0.95rem;
  line-height: 1.7;
}

.guide-redesign .pdf-download-wrap {
  padding: 52px 24px !important;
  background: var(--guide-paper) !important;
  border-top: 1px solid rgba(208, 46, 46, 0.14);
}

.guide-redesign .pdf-download-btn {
  min-height: 54px;
  padding: 0 28px;
  font-size: 0.8rem;
}

/* Shared injected guide CTA, restyled without creating another CTA/footer. */
.guide-redesign .cta-section {
  background: var(--guide-red);
}

.guide-redesign .cta-inner {
  max-width: 1120px;
  padding: clamp(70px, 8vw, 112px) 28px;
}

.guide-redesign .cta-tile {
  padding: clamp(36px, 6vw, 72px);
  border-radius: 22px;
  background: var(--guide-paper);
}

.guide-redesign .cta-eyebrow {
  font-family: 'Mariah Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.68rem;
}

.guide-redesign .cta-headline {
  max-width: 820px;
  font-family: 'Mariah Display', 'Arial Narrow', sans-serif;
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 400;
  line-height: 0.9;
}

.guide-redesign .cta-body {
  max-width: 760px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.02rem;
}

.guide-redesign .cta-btn {
  border-radius: 999px;
  font-family: 'Mariah Display', 'Arial Narrow', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
}

.guide-redesign .guide-footer {
  padding: 54px 28px;
  background: #21110e;
  color: var(--guide-paper);
  text-align: center;
}

.guide-redesign .guide-legacy-footer {
  display: none !important;
}

.guide-redesign .guide-footer__brand {
  display: block;
  margin-bottom: 16px;
  color: var(--guide-paper);
  font-family: 'Mariah Display', 'Arial Narrow', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.9;
  text-decoration: none;
  text-transform: uppercase;
}

.guide-redesign .guide-footer__links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
}

.guide-redesign .guide-footer__links a {
  color: var(--guide-paper);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-redesign .guide-footer p {
  margin: 0;
  color: rgba(255, 250, 231, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .guide-redesign .hero-inner {
    height: auto !important;
    min-height: 0 !important;
    padding: 62px 20px 70px;
  }

  .guide-redesign .guide-back {
    margin-bottom: 26px;
  }

  .guide-redesign .hero-byline {
    gap: 7px 12px;
  }

  .guide-redesign .hero-title {
    font-size: clamp(3.15rem, 16.5vw, 4.5rem);
    line-height: 0.84;
  }

  .guide-redesign .hero-title em {
    font-size: 0.58em;
  }

  .guide-redesign .source-callout {
    padding: 22px 18px 0;
  }

  .guide-redesign .inner {
    padding: 30px 20px;
  }

  .guide-redesign .tier-banner-inner {
    grid-template-columns: 1fr;
    padding: 24px 20px 26px;
    gap: 10px;
  }

  .guide-redesign .tier-title {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .guide-redesign .prompt-box {
    margin-right: -4px;
    margin-left: -4px;
    padding: 22px 18px;
    border-radius: 16px;
  }

  .guide-redesign .prompt-text {
    font-size: 0.78rem;
  }

  .guide-redesign .cta-tile {
    padding: 36px 24px;
  }

  .guide-redesign .cta-headline {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .guide-redesign .guide-footer__links {
    flex-direction: column;
    gap: 9px;
  }
}

@media print {
  .guide-redesign .home-header,
  .guide-redesign .guide-footer,
  .guide-redesign .guide-back {
    display: none !important;
  }
}
