/**
 * Pro Peptide — Site-wide page header (H1 + breadcrumb).
 *
 * Two-tone variant on /shop/ and /product-category/.
 * Single-tone variant on everything else except homepage.
 *
 * Tokens sourced from DESIGN.md v5 §Brand Colors / §Fonts / §Breadcrumbs.
 * Font-weight capped at 600 per PHASE3_FINDINGS.md #10.
 */

.pp-page-header {
    box-sizing: border-box;
    text-align: center;
    padding: 56px 24px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.pp-page-header__title {
    margin: 0 0 14px 0;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--pp-dark, #343434);
}

/* Variant A: two-tone. Dark grey prefix (e.g. "Shop "), brand teal main. */
.pp-page-header__title--two-tone .pp-page-header__title-prefix {
    color: var(--pp-dark, #343434);
}
.pp-page-header__title--two-tone .pp-page-header__title-main {
    color: var(--pp-blue, #1f9edb);
}
.pp-page-header__title--two-tone .pp-page-header__title-prefix-space {
    white-space: pre;
}

.pp-page-header__breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--pp-text-secondary, #6B7280);
}

.pp-page-header__breadcrumb a {
    color: var(--pp-blue-text, #0e6a99);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pp-page-header__breadcrumb a:hover,
.pp-page-header__breadcrumb a:focus-visible {
    color: var(--pp-blue, #1f9edb);
    text-decoration: underline;
}

.pp-page-header__breadcrumb-separator {
    color: var(--pp-text-tertiary, #9CA3AF);
    user-select: none;
}

.pp-page-header__breadcrumb-current {
    color: var(--pp-dark, #343434);
    font-weight: 500;
}

@media (max-width: 640px) {
    .pp-page-header {
        padding: 36px 16px 20px;
    }
    .pp-page-header__title {
        margin-bottom: 10px;
        font-size: clamp(26px, 7vw, 40px);
    }
    .pp-page-header__breadcrumb {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-page-header__breadcrumb a {
        transition: none;
    }
}

/* ============================================================================
 * Planner-hero variant — used on /peptide-planner/ (template-fullwidth-tool.php).
 * Centered + Lines two-tone H1 + subtitle + benefit pills. Mirrors the
 * "Most Popular" / "By research category" treatment so this page reads as
 * part of the site's heading system. (.pp-stacked-heading rules are ported
 * from pp-home.css since that file is home-only.)
 * ========================================================================== */
.pp-page-header--planner-hero {
    padding: 32px 24px 16px; /* tighter top + small bottom so Step 1 sits close */
}

/* The parent NineTheme puts a 120px margin-top on #nt-page (the real source of
   the big empty gap above Step 1). The planner hero already supplies the top
   spacing, so collapse it to ~20px on the planner page (page-id-4475) — Step 1
   then sits just below the heading row. Other tool pages keep the default. */
body.page-id-4475 #nt-page {
    margin-top: 34px !important; /* nets ~16px between heading row and Step 1 band (intake has a -20px pull) */
}

/* The pro-peptide-planner plugin renders its own copy of the standard
   single-tone page header inside the content area, which would duplicate the
   custom hero above. Scope-hide that duplicate only on this template. */
body.page-template-template-fullwidth-tool #nt-page .pp-page-header--variant-single-tone {
    display: none;
}
.pp-page-header--planner-hero .pp-page-header__breadcrumb {
    margin-bottom: 18px;
}

/* Centered heading + single subtitle line. Pills removed 2026-06-02 — the
   "Centered + Lines" treatment mirrors the site's section headings. */
.pp-page-header--planner-hero .pp-stacked-heading {
    display: block;
    text-align: center;
    margin: 0 auto 12px;
    /* The base .pp-page-header is shrink-to-fit, so a %-width collapses to the
       text. Use a viewport-based fixed width so the flanking lines extend like
       the site section headings, while the section still centers as a group. */
    width: min(760px, 90vw);
    padding: 0 16px;
}
.pp-page-header--planner-hero .pp-stacked-heading__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-size: clamp(28px, 4.5vw, 36px); /* match the site section-heading size so lines extend */
    font-weight: 600;
    color: var(--pp-dark, #343434);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}
.pp-page-header--planner-hero .pp-stacked-heading__title::before,
.pp-page-header--planner-hero .pp-stacked-heading__title::after {
    content: "";
    display: block;
    flex: 1 1 0;
    height: 1px;
    background: var(--pp-border, #E5E7EB);
    min-width: 24px;
}
.pp-page-header--planner-hero .pp-stacked-heading__title-text {
    display: inline-block;
    flex-shrink: 0;
}
.pp-page-header--planner-hero .pp-text-accent {
    color: var(--pp-blue, #1f9edb);
}

.pp-planner-hero__sub {
    margin: 0 auto;
    max-width: 460px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--pp-text-2, #6B7280);
    text-align: center;
}

@media (max-width: 640px) {
    .pp-page-header--planner-hero { padding: 24px 16px 14px; }
    .pp-page-header--planner-hero .pp-stacked-heading__title { gap: 14px; }
    .pp-page-header--planner-hero .pp-stacked-heading__title::before,
    .pp-page-header--planner-hero .pp-stacked-heading__title::after { min-width: 14px; }
    .pp-page-header--planner-hero .pp-stacked-heading__title-text {
        max-width: 100%;
        flex-shrink: 1;
    }
    .pp-planner-hero__sub { font-size: 13px; }
}

/* Planner unified search input — strip the blue border + focus ring per user.
   Plugin CSS (.ppp__search-input) wins at equal specificity, so use !important. */
body.page-template-template-fullwidth-tool .ppp__search-input,
body.page-template-template-fullwidth-tool .ppp__search-input:focus,
body.page-template-template-fullwidth-tool .ppp__search-input:focus-visible,
body.page-template-template-fullwidth-tool .ppp__search-input:hover {
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}
