/* ============================================================
 * PS METHODOLOGY PANEL — standalone editorial content block
 *
 * Same design language as ps-delivery-flow chapters (gold pill,
 * gold group-dots, emerald check bullets, short-rule outcome) but
 * independent: own namespace, own stylesheet, own proportions
 * tuned for dropping between other sections on a page.
 * ============================================================ */

.ps-methodology-panel {
    padding: 72px 0;
    background: transparent;
    color: var(--gray-900);
}

/* ── Head ───────────────────────────────────────────────────── */

.ps-methodology-panel-head {
    margin-bottom: 44px;
}

.ps-methodology-panel-eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    font-weight: var(--font-bold);
}

.ps-methodology-panel-heading {
font-size: var(--text-3xl-size);
    line-height: var(--text-3xl-line);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: normal;
    color: var(--blue-900);
    margin-bottom: 16px;
}

/* Gold pill underline — anchors the panel as its own section mark */
.ps-methodology-panel-heading::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 9999px;
    margin-top: 20px;
}

.ps-methodology-panel-lead {
    margin: 22px 0 0;
    line-height: 1.66;
    color: var(--gray-700);
}

/* Drop the 22 px gap when there is no heading above the lead — the
   lead then sits cleanly as the panel's primary text. */
.ps-methodology-panel-lead:first-child {
    margin-top: 0;
}

/* ── Groups ─────────────────────────────────────────────────── */

.ps-methodology-panel-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px 56px;
}

@media (min-width: 860px) {
    .ps-methodology-panel-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Single group spans the whole measure so items breathe */
    .ps-methodology-panel-groups:has(> .ps-methodology-panel-group:only-child) {
        grid-template-columns: 1fr;
    }
}

.ps-methodology-panel-group {
    min-width: 0;
}

.ps-methodology-panel-group-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--color-secondary);
    font-weight: var(--font-bold);
}

.ps-methodology-panel-group-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    transform: translateY(-2px);
}

.ps-methodology-panel-group-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ps-methodology-panel-group-item {
    position: relative;
    padding-left: 22px;
    font-size: var(--text-base-size);
    line-height: 1.62;
    color: var(--gray-700);
}

/* Emerald check bullet — stem + tick, no background shape */
.ps-methodology-panel-group-item::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.5em;
    width: 9px;
    height: 5px;
    border-left: 1.5px solid var(--color-secondary);
    border-bottom: 1.5px solid var(--color-secondary);
    transform: rotate(-45deg);
    transform-origin: 0 0;
}

/* ── After-text ─────────────────────────────────────────────── */

.ps-methodology-panel-after {
    margin: 36px 0 0;
    padding-top: 26px;
    border-top: 1px dashed var(--gray-200);
    max-width: 70ch;
    font-size: var(--text-base-size);
    line-height: 1.72;
    color: var(--gray-600);
}

/* If the groups grid is absent, the after-text becomes the first
   content after the head — drop the dashed rule and collapse the
   top padding so no orphaned separator appears. */
.ps-methodology-panel-head + .ps-methodology-panel-after,
.ps-methodology-panel-after:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* ── Outcome ────────────────────────────────────────────────── */

.ps-methodology-panel-outcome {
    position: relative;
    margin-top: 44px;
    padding-top: 28px;
}

.ps-methodology-panel-outcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.ps-methodology-panel-outcome-label {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    font-weight: var(--font-bold);
}

.ps-methodology-panel-outcome-text {
    margin: 0;
    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1.5;
    color: var(--color-secondary);
    font-weight: var(--font-semibold);
}

/* If the outcome follows directly after the head (no groups, no
   after-text), keep a calm gap instead of the taller 44 px one. */
.ps-methodology-panel-head + .ps-methodology-panel-outcome,
.ps-methodology-panel-outcome:first-child {
    margin-top: 0;
}

/* ── Tablet ─────────────────────────────────────────────────── */

@media (max-width: 1099px) {
    .ps-methodology-panel {
        padding: 60px 0;
    }

    .ps-methodology-panel-head {
        margin-bottom: 36px;
    }
}

/* ── Mobile ─────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .ps-methodology-panel {
        padding: 48px 0;
    }

    .ps-methodology-panel-head {
        margin-bottom: 28px;
    }

    .ps-methodology-panel-heading {
        font-size: clamp(24px, 7vw, 32px);
    }

    .ps-methodology-panel-heading::after {
        width: 48px;
        margin-top: 16px;
    }

    .ps-methodology-panel-lead {
        font-size: var(--text-base-size);
    }

    .ps-methodology-panel-groups {
        gap: 26px;
    }

    .ps-methodology-panel-outcome {
        margin-top: 36px;
    }

    .ps-methodology-panel-outcome-text {
        font-size: clamp(16px, 4.8vw, 19px);
    }
}
