/* HairProof beta — Phase 1 public copy, navigation and readability refinements.
   Presentation only. No database, submission, authentication or moderation rules. */
.beauty .hero-opening h1,
.beauty .hero-copy h1 { font-size: clamp(50px, 5.2vw, 78px); line-height: 1.04; letter-spacing: -.035em; }
.beauty .hero-copy > p:not(.eyebrow):not(.hero-foot) { font-size: clamp(16px, 1.45vw, 18px); line-height: 1.65; }
.beauty .hero-search label { font-size: 16px; font-weight: 700; }
.beauty .hero-search input { font-size: 16px; min-height: 48px; }
.beauty .hero-search button { min-height: 48px; }
.beauty .hero-copy > .button { min-height: 48px; }

/* Keep HairProof's permanent tagline visible and in its original wording. */
.beauty-home .hero-foot {
  font-family: var(--hp-display-font);
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.3;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.025em;
  color: var(--hp-berry-ink);
  max-width: 26rem;
}

/* A quick orientation, not another research-heavy landing page. */
.beauty .hairproof-how { border-block: 1px solid var(--hp-rule); background: #fff7f0; }
.beauty .hairproof-how .how-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.7rem; }
.beauty .hairproof-how .how-heading h2 { margin: .4rem 0 0; font-family: var(--hp-display-font); font-size: clamp(36px, 4.5vw, 57px); font-weight: 400; line-height: 1.1; }
.beauty .hairproof-how .how-heading h2 em { color: var(--hp-berry-ink); }
.beauty .hairproof-how .how-heading > p:last-child { max-width: 28rem; font-size: 17px; line-height: 1.6; }
.beauty .how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; margin: 0; }
.beauty .how-steps > li { border-top: 2px solid var(--hp-heritage-burgundy); padding: 18px 10px 14px 0; }
.beauty .how-number { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--hp-berry-ink); }
.beauty .how-steps h3 { font-family: var(--hp-display-font); font-size: clamp(22px, 2vw, 30px); font-weight: 400; margin: .55rem 0 .3rem; }
.beauty .how-steps p { font-size: 16px; line-height: 1.65; margin: 0; }

/* Cards, descriptions and comparison: pleasant to scan on a phone. */
.beauty-library .library-card .eyebrow { font-size: 12px; letter-spacing: .06em; line-height: 1.4; }
.beauty-library .library-card .muted { font-size: 15px; line-height: 1.55; }
.beauty-library .library-card .evidence-count { font-size: 14px; line-height: 1.55; }
.beauty-library .library-card .button { font-size: 14px; line-height: 1.3; min-height: 44px; padding: 10px 12px; }
.beauty-library .library-card-body { padding: 20px; }
.beauty-library .library-card h3 { overflow-wrap: anywhere; }
.beauty-library .library-search input { font-size: 16px; min-height: 50px; }
.beauty-library .texture-filters button { font-size: 14px; min-height: 44px; padding: 11px 14px; }
.beauty-library .library-controls select,
.beauty-library .library-controls button { font-size: 15px; min-height: 44px; }
.beauty-library #libraryHelp,
.beauty-library #comparisonStatus { font-size: 15px; line-height: 1.6; }
.beauty-library .comparison p,
.beauty-library .comparison dd { font-size: 15px; line-height: 1.5; }
.beauty .editorial-context { line-height: 1.6; }
.beauty .beauty-heading > p { font-size: 16px; line-height: 1.6; }
.beauty .beauty-library-hero > div:first-child > p:not(.eyebrow) { font-size: 17px; line-height: 1.6; }
.beauty .story-copy > p:not(.eyebrow),
.beauty .beauty-diaries p:not(.eyebrow) { font-size: 17px; line-height: 1.6; }
.beauty .beauty-nav a,
.beauty .footer-links a { min-height: 40px; }
.beauty-product .section-intro,
.beauty-product .hero-deck,
.beauty-product .community-invite p,
.beauty-product .notebook-content p { line-height: 1.6; }
.beauty-product .report-disclosures p,
.beauty-product .report-disclosures summary { font-size: 15px; line-height: 1.65; }
.beauty-wear .form label { line-height: 1.55; }
.beauty-wear .form input,
.beauty-wear .form select,
.beauty-wear .form textarea { font-size: 16px; min-height: 46px; }
.beauty-wear .form .button { min-height: 48px; font-size: 16px; }
.beauty-wear .form p,
.beauty-wear .form-message { font-size: 15px; line-height: 1.6; }

@media (max-width: 760px) {
 /* Explain what HairProof does and show search before the decorative artwork. */
 .beauty-home .beauty-hero { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 0 16px; }
 .beauty-home .hero-copy { display: contents; }
 .beauty-home .hero-opening { grid-column: 1; grid-row: 1; padding: 26px 22px 0; }
 .beauty-home .hero-opening .eyebrow { font-size: 11px; min-height: 0; margin-bottom: 14px; }
 .beauty-home .hero-opening h1 { font-size: clamp(38px, 8.6vw, 58px); width: auto; max-width: 15ch; line-height: 1.07; min-height: 0; margin-bottom: 0; }
 .beauty-home .hero-copy > p:not(.eyebrow):not(.hero-foot) { grid-column: 1; grid-row: 2; margin: 16px 22px 12px; font-size: 16px; line-height: 1.55; }
 .beauty-home .hero-search { grid-column: 1; grid-row: 3; margin: 8px 22px 0; }
 .beauty-home .hero-search label { font-size: 15px; margin-bottom: 7px; }
 .beauty-home .hero-search input { font-size: 16px; min-width: 0; }
 .beauty-home .hero-copy > .button { grid-column: 1; grid-row: 4; margin: 14px 22px 0; min-height: 48px; font-size: 15px; }
 .beauty-home .hero-visual { grid-column: 1; grid-row: 6; position: relative; height: 150px; min-height: 150px; width: auto; margin: 18px 22px 0; border-radius: 16px; }
 .beauty-home .hero-portrait { min-height: 0; height: 100%; }
 .beauty-home .hero-visual .art-label { bottom: 12px; font-size: 10px; }
 .beauty-home .hero-foot { grid-column: 1; grid-row: 5; font-size: 22px; line-height: 1.35; margin: 17px 22px 0; }
 .beauty .hairproof-how .how-heading { display: block; margin-bottom: 16px; }
 .beauty .hairproof-how .how-heading > p:last-child { font-size: 16px; }
 .beauty .how-steps { grid-template-columns: 1fr; gap: 2px; }
 .beauty .how-steps > li { padding: 12px 0; }
 .beauty .how-steps h3 { font-size: 24px; }
 .beauty .how-steps p { font-size: 16px; }
 .beauty-library .library-search input { font-size: 16px; }
 .beauty-library .library-card .muted { font-size: 15px; }
 .beauty-library .library-card .eyebrow { font-size: 12px; }
 .beauty-library .library-card .evidence-count { font-size: 14px; }
 .beauty-library .library-card .button { font-size: 14px; padding: 10px 12px; }
 .beauty-library .texture-filters button { font-size: 14px; min-height: 44px; }
 .beauty-library .library-art-label { font-size: 12px; padding: 7px; }
 .beauty .beauty-heading > p { font-size: 16px; }
 .beauty .hero-search button { min-height: 48px; font-size: 14px; }
}
@media (max-width: 600px) {
 .beauty-library #evidenceGrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
 .beauty-library .library-card .library-art { height: 185px; }
 .beauty-library .library-card-body { padding: 20px; }
 .beauty-library .library-card h3 { font-size: 26px; }
 .beauty .beauty-library-hero h1 { font-size: clamp(39px, 10vw, 54px); }
 .beauty .beauty-library-hero > div:first-child { padding: 32px 22px 22px; }
 .beauty-wear .wear-intro h1 { font-size: clamp(42px, 10vw, 56px); }
 .beauty-product .product-hero h1 { overflow-wrap: anywhere; }
}
@media (max-width: 350px) {
 .beauty-home .hero-opening h1 { font-size: 35px; }
 .beauty-home .hero-search { margin-inline: 16px; }
 .beauty-home .hero-opening { padding-inline: 16px; }
 .beauty-home .hero-copy > p:not(.eyebrow):not(.hero-foot) { margin-inline: 16px; }
 .beauty-home .hero-copy > .button { margin-inline: 16px; }
 .beauty-home .hero-visual { margin-inline: 16px; }
 .beauty-home .hero-foot { margin-inline: 16px; }
}

/* Mobile nav: styles.css hides links at <=700px; restore them only while open. */
@media (max-width: 760px) {
  .beauty .beauty-nav nav.is-open > a:not(.button) {
    display: block;
    min-height: 44px;
  }
  .beauty .beauty-nav nav.is-open > a:not(.button):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
}


/* Hair Library source breakdown: neutral research coverage, not product scores. */
.beauty-library .library-card .research-breakdown {
  display:block;
  margin-top:8px;
  font-size:14px;
  font-weight:400;
  color:#5e4753;
  line-height:1.5;
}

/* Secondary A–Z action matches the primary Hair Library button's geometry,
   but stays outlined to preserve the visual hierarchy. */
.beauty-home .hero-directory-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 14px;
  padding: 16px 22px;
  box-sizing: border-box;
  border: 1px solid var(--hp-primary);
  background: var(--hp-porcelain);
  color: var(--hp-primary);
  font: 700 11px/1.5 var(--hp-body-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background var(--hp-motion-quick);
}
.beauty-home .hero-directory-link:hover { background: var(--hp-warm-cream); }
.beauty-home .hero-directory-link .beauty-arrow {
  width: 1.1em;
  height: 1.1em;
  margin-left: 0;
  flex: 0 0 auto;
}
/* Preserve the familiar desktop navigation instead of squeezing in a sixth item. */
@media (min-width: 761px) {
  .beauty-home .beauty-nav nav a.nav-directory-link { display: none; }
}
@media (max-width: 760px) {
  .beauty-home .hero-directory-link {
    grid-column: 1;
    grid-row: 5;
    justify-self: stretch;
    margin: 12px 22px 0;
    padding: 13px 16px;
    min-height: 48px;
    font-size: 14px;
  }
  .beauty-home .hero-foot { grid-row: 6; }
  .beauty-home .hero-visual { grid-row: 7; }
}
@media (max-width: 350px) {
  .beauty-home .hero-directory-link { margin-inline: 16px; padding-inline: 10px; font-size: 12px; }
}


/* Native select options must not widen the mobile layout. */
.beauty-library .library-controls label { min-width: 0; max-width: 100%; }
.beauty-library .library-controls select { min-width: 0; width: 100%; }
/* Switch to the existing accessible menu before tablet navigation runs out of room. */
@media (min-width: 761px) and (max-width: 1000px) {
 .beauty .beauty-menu { display: block; }
 .beauty .beauty-nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px 22px; background: var(--hp-porcelain); border-bottom: 1px solid #b79da7; box-shadow: 0 15px 20px #26131f20; }
 .beauty .beauty-nav nav.is-open { display: flex; flex-direction: column; gap: 0; }
 .beauty .beauty-nav nav a { font-size: 12px; padding: 14px 0; }
}
