/* The guide is intentionally self-contained: it must not inherit broad dialog rules. */
.menst-refined .hair-guide-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--menst-accent, #0e6bff);
  border: 1px solid currentColor;
  border-radius: 6px;
  font: 600 13px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}

.menst-refined .hair-guide-nav:hover {
  color: #fff;
  background: var(--menst-accent, #0e6bff);
}

.menst-refined .hair-guide-nav:focus-visible {
  outline: 3px solid var(--menst-accent, #0e6bff);
  outline-offset: 3px;
}

#hair-guide-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  max-height: min(680px, calc(100vh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--menst-ink, #10233f);
  background: #fff;
  border: 1px solid var(--menst-cloud, #d8e1ec);
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(16, 35, 63, .24);
}

#hair-guide-dialog::backdrop {
  background: rgba(13, 29, 52, .58);
}

#hair-guide-dialog .hair-guide-dialog-layout {
  display: grid;
  grid-template-columns: minmax(230px, .94fr) minmax(0, 1.06fr);
  min-height: 320px;
}

#hair-guide-dialog .hair-guide-cover {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  background: var(--menst-paper, #f4f7fb);
}

#hair-guide-dialog .hair-guide-dialog-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 40px 36px;
}

#hair-guide-dialog .hair-guide-kicker {
  margin: 0 0 10px;
  color: var(--menst-accent, #0e6bff);
  font: 600 13px/1.35 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#hair-guide-dialog h2 {
  margin: 0;
  color: var(--menst-ink, #10233f);
  font: 600 clamp(28px, 3vw, 38px)/1.12 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.035em;
}

#hair-guide-dialog #hair-guide-description {
  margin: 16px 0 28px;
  color: var(--menst-steel, #52657d);
  font: 400 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#hair-guide-dialog .btn--menst-primary {
  min-height: 44px;
}

#hair-guide-dialog .hair-guide-later {
  min-height: 44px;
  margin: 10px 0 0;
  padding: 8px 0;
  color: var(--menst-steel, #52657d);
  background: transparent;
  border: 0;
  font: 500 14px/1.3 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#hair-guide-dialog .hair-guide-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--menst-ink, #10233f);
  background: #fff;
  border: 1px solid var(--menst-cloud, #d8e1ec);
  border-radius: 50%;
  cursor: pointer;
}

#hair-guide-dialog :focus-visible {
  outline: 3px solid var(--menst-accent, #0e6bff);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  #hair-guide-dialog {
    width: min(100vw - 24px, 480px);
    max-height: calc(100vh - 24px);
  }

  #hair-guide-dialog .hair-guide-dialog-layout {
    grid-template-columns: 1fr;
  }

  #hair-guide-dialog .hair-guide-cover {
    min-height: 0;
    height: min(43vw, 220px);
  }

  #hair-guide-dialog .hair-guide-dialog-copy {
    padding: 30px 24px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hair-guide-dialog {
    scroll-behavior: auto;
  }
}
