/**
 * LUPKYNIS Pro – Starting Patients page (2026 HCP refresh).
 *
 * Enqueued only by page-starting-patients.php. The interior hero, the anchor menu
 * and the rep banner are styled by hcp-refresh.css; this file covers the page body.
 * Values follow the Figma frame "6.0- Resources - Desktop" (node 2152:47682).
 */

.starting-patients {
    --sp-ink: #023038;
    --sp-sea-green: #00ada6;
    --sp-teal-700: #007b76;
    --sp-sea-green-50: #e6f7f6;
    color: var(--sp-ink);
    font-family: "Mulish", sans-serif;
}

/* The anchor ids sit on the inner container, not the <section>: main-min.js
   offsets a non-section hash target by the sticky header plus its padding-top. */
.starting-patients .sp-section__inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    /* Same-page clicks scroll natively; keep the heading below the sticky header */
    scroll-margin-top: 1.5rem;
}

@media (min-width: 992px) {
    .starting-patients .sp-section__inner {
        padding-top: 3.875rem;
        scroll-margin-top: 2.5rem;
    }

    /* Figma body column: x=100, 1240px wide at 1440 (headings, divider, Comprehensive
       support on one line, footnotes, reference), the same 100px gutter as the interior
       banner in hcp-refresh.css, instead of the 1110px Bootstrap container. Width, not
       padding, so the Cost Support divider spans the column only. */
    .starting-patients .sp-section > .container,
    .starting-patients .sp-references > .container {
        width: calc(100% - 2 * clamp(1.25rem, 6.95vw, 6.25rem));
        max-width: 77.5rem;
        padding-left: 0;
        padding-right: 0;
    }

    /* The fax | or | eRx row keeps its validated 1110px width, centred. */
    .starting-patients .sp-methods {
        max-width: 69.375rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Divider spans the content column only, as in the design */
.starting-patients .sp-section--cost .sp-section__inner {
    border-top: 1px solid #ff9281;
}

/* Client round 2 (CU-86bcfffav): 60px above and below the
   "Aurinia provides support for your patients on LUPKYNIS" block. */
.starting-patients .sp-section--cost .sp-section__inner,
.starting-patients .sp-section--cost .sp-section__inner[id] {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
}

/* Client round 2d (CU-86bcfffav): 60px above the Cost Support divider too, i.e. at the
   bottom of the Prescribe LUPKYNIS block (Figma 2152:47705 -> 2152:47767). */
.starting-patients .sp-section__inner#prescribing-lupkynis {
    padding-bottom: 3.75rem;
}

#content .sp-heading {
    margin: 0 0 2.5rem;
    font-family: "Mulish", sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--sp-ink);
    text-transform: none;
}

#content .sp-section p,
#content .sp-references p {
    color: var(--sp-ink);
}

/* The shared rep banner sits inside main#content here, where the legacy
   "#content p" colour would otherwise darken its white lead text. */
#content .rep-banner .rep-banner__lead {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Start Form callout
   -------------------------------------------------------------------------- */

.starting-patients .sp-start-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 62.5rem;
    margin: 0 auto 2.75rem;
    padding: 1.5rem 1.25rem;
    background: var(--sp-sea-green-50);
    border-radius: 25px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .starting-patients .sp-start-form {
        flex-direction: row;
        justify-content: center;
        gap: 2.5rem;
        padding: 1.5rem 3.75rem;
        text-align: left;
    }
}

/* Figma: the Start Form callout text and button are Gotham Black; Montserrat stands in. */
#content .sp-start-form__text {
    margin: 0;
    font-family: "Montserrat", "Mulish", sans-serif;
    font-weight: 900;
    font-size: 1.375rem;
    line-height: 1.3;
}

@media (min-width: 992px) {
    #content .sp-start-form__text {
        font-size: 1.75rem;
        line-height: 2.25rem;
    }
}

.starting-patients .sp-start-form__button {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2.5rem;
    background: var(--sp-teal-700);
    border-radius: 0 25px;
    color: #fff;
    font-family: "Montserrat", "Mulish", sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
}

.starting-patients .sp-start-form__button::after {
    content: "";
    width: 20px;
    height: 20px;
    background: url("../images/icon-download.svg") center / contain no-repeat;
}

.starting-patients .sp-start-form__button:hover,
.starting-patients .sp-start-form__button:focus-visible {
    background: #004946;
    color: #fff;
    text-decoration: none;
}

.starting-patients .sp-start-form__button:focus-visible {
    outline: 2px solid var(--sp-ink);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Prescribing methods: fax | or | eRx
   -------------------------------------------------------------------------- */

.starting-patients .sp-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
}

@media (min-width: 768px) {
    .starting-patients .sp-methods {
        grid-template-columns: 1fr auto 1fr;
        align-items: start;
        gap: 0 2rem;
    }
}

.starting-patients .sp-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 22rem;
    text-align: center;
}

.starting-patients .sp-method__icon {
    width: 127px;
    height: 127px;
    margin-bottom: 1.25rem;
}

#content .sp-method__title {
    margin: 0 0 1.25rem;
    font-weight: 700;
    font-size: 1.234rem;
    line-height: 1.25;
}

/* theme-overrides.css forces b, strong to 700 !important; the design sets the lead-ins
   in Black (900) over a Bold (700) line, so the emphasis must win here. */
#content .sp-method__title strong {
    font-weight: 900 !important;
}

/* Figma text boxes: eRx block 408px wide (the pharmacy line stays on one line),
   Bridge note 300px wide ("...the first eRx, / is required for Bridge fulfillment."). */
#content .sp-method__note {
    max-width: 18.75rem;
}

/* The browser sets that pharmacy line ~1px wider than Figma's 408px box, so it
   broke before "Rare"; keep it on one line wherever the column has room. */
@media (min-width: 992px) {
    .starting-patients .sp-method--erx {
        max-width: 26rem;
    }
}

@media (min-width: 1200px) {
    .starting-patients .sp-method__line {
        white-space: nowrap;
    }
}

#content .sp-method__note {
    margin: 0;
    font-weight: 600;
    font-size: 0.989rem;
    line-height: 1.25;
}

.starting-patients .sp-methods__or {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
}

.starting-patients .sp-methods__or::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    border-top: 1.5px solid rgba(0, 173, 166, 0.5);
}

@media (min-width: 768px) {
    .starting-patients .sp-methods__or {
        width: auto;
        min-height: 20.9rem;
    }

    .starting-patients .sp-methods__or::before {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        border-top: 0;
        border-left: 1.5px solid rgba(0, 173, 166, 0.5);
    }
}

.starting-patients .sp-methods__or span {
    position: relative;
    padding: 0.625rem 0.75rem;
    background: #fff;
    border: 1.5px solid var(--sp-sea-green);
    border-radius: 50px;
    color: #000;
    font-weight: 900;
    font-size: 1.125rem;
    line-height: 1.25;
}

.starting-patients .sp-pharmacies {
    display: flex;
    align-items: stretch;
}

.starting-patients .sp-pharmacy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.125rem;
}

.starting-patients .sp-pharmacy + .sp-pharmacy {
    border-left: 0.565px solid var(--sp-sea-green);
}

.starting-patients .sp-pharmacy img {
    width: auto;
    height: 46px;
}

.starting-patients .sp-pharmacy__fax {
    color: var(--sp-ink);
    font-weight: 900;
    font-size: 0.989rem;
    white-space: nowrap;
    text-decoration: none;
}

/* The pharmacy row needs ~324px; below 375px stack it so the fax numbers are not clipped (WCAG 1.4.10). */
@media (max-width: 374.98px) {
    .starting-patients .sp-pharmacies {
        flex-direction: column;
        align-items: center;
    }

    .starting-patients .sp-pharmacy {
        padding: 1rem 0;
    }

    .starting-patients .sp-pharmacy:first-child {
        padding-top: 0;
    }

    .starting-patients .sp-pharmacy + .sp-pharmacy {
        border-left: 0;
        border-top: 0.565px solid var(--sp-sea-green);
    }
}

.starting-patients .sp-pharmacy__fax:hover,
.starting-patients .sp-pharmacy__fax:focus-visible {
    color: var(--sp-teal-700);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Footnotes and reference
   -------------------------------------------------------------------------- */

.starting-patients .sp-footnotes {
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

.starting-patients .sp-footnotes li {
    display: flex;
    /* The marker shares the first line's baseline, so its offset below does not depend on
       the platform's font ascent/descent metrics (Windows reads different ones). */
    align-items: baseline;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.25;
}

.starting-patients .sp-footnotes__mark {
    font-size: 0.484rem;
}

.starting-patients .sp-footnotes__mark {
    flex: none;
    position: relative;
    /* Client round 2d (CU-86bcfffav): superscript height as in Figma 2152:47707 / 2152:49914
       (SUPS): the marker's baseline is 4px (0.333em of the 12px text) above the text
       baseline, so the "a" reaches the cap height of the first letter.
       Reverted per David's instruction (CU-86bcfffba comment 90140283357298). */
    top: -0.25rem;
    width: 7px;
    margin-right: 0;
    text-align: right;
    line-height: 1;
}

.starting-patients .sp-references {
    padding: 2.5rem 0;
}

#content .sp-references p.sp-references__title {
    margin: 0 0 0.25rem;
    /* MLR round 3 (CU-86bcfffba, p.15 "match color of these to LO files, a bit lighter"):
       Sea Green #00ADA6, the fill of the Figma heading (2152:47713) and the Home one.
       2.79:1 on white, below WCAG AA for 12px text; the client's approved colour. */
    color: var(--sp-sea-green);
    font-weight: 700;
    font-size: 0.75rem;
}

#content .sp-references__text {
    margin: 0;
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Cost support statistics
   -------------------------------------------------------------------------- */

.starting-patients .sp-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .starting-patients .sp-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .starting-patients .sp-stat + .sp-stat {
        border-left: 1.835px solid rgba(0, 173, 166, 0.5);
    }
}

.starting-patients .sp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
    text-align: center;
}

#content .sp-stat__label {
    margin: 0 0 1.25rem;
    font-family: "Mulish", sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.25;
    color: var(--sp-ink);
    text-transform: none;
}

#content .sp-stat__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 8.75rem;
    margin: 0 0 1.25rem;
    line-height: 1;
}

#content .sp-stat__kicker {
    font-weight: 700;
    font-size: 1.611rem;
    text-transform: uppercase;
}

/* Figma 2152:49928 / 2152:49932: Gotham Black. The theme's Gotham stand-in is
   Montserrat (Home hero and CTA); weights 300, 500 and 900 are enqueued on every page. */
#content .sp-stat__value {
    color: var(--sp-sea-green);
    font-family: "Montserrat", "Mulish", sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
}

#content .sp-stat__unit {
    font-size: 0.575em;
}

@media (min-width: 992px) {
    #content .sp-stat__value {
        font-size: 5.833rem;
    }

    #content .sp-stat:last-child .sp-stat__value {
        font-size: 6.295rem;
    }

    #content .sp-stat:last-child .sp-stat__kicker {
        font-size: 1.738rem;
    }
}

#content .sp-stat__text {
    max-width: 32rem;
    margin: 0;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.25;
}

@media (min-width: 992px) {
    #content .sp-stat__text {
        font-size: 1.25rem;
    }
}

/* ExtraBold (800) over SemiBold (600), as in the design; see the strong note above. */
#content .sp-stat__text strong {
    font-weight: 800 !important;
}

/* Figma text boxes: 389px and 511px wide, which set the line breaks
   ("...paid less than / $10 out of pocket..." and "...commercial or / government insurance..."). */
@media (min-width: 992px) {
    #content .sp-stat:first-child .sp-stat__text {
        max-width: 24.375rem;
    }

    #content .sp-stat:last-child .sp-stat__text {
        max-width: 32rem;
    }
}

.starting-patients .sp-comprehensive {
    margin-bottom: 0;
}

#content .sp-comprehensive__title {
    margin: 0 0 0.5rem;
    font-family: "Mulish", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--sp-ink);
    text-transform: none;
}

#content .sp-comprehensive__text {
    margin: 0;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.25;
}

/* --------------------------------------------------------------------------
   MLR round 3 (CU-86bcfffba, review PDF p.15): pharmacy contacts
   Name (logo), then Fax, then Phone, stacked, all bold. The divider between the two
   pharmacies (the green bar) runs the full height of both blocks and a little past the
   last line, so no copy hangs below it.
   -------------------------------------------------------------------------- */

.starting-patients .sp-pharmacy {
    padding-bottom: 0.5rem;
}

.starting-patients .sp-pharmacy__numbers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.starting-patients .sp-pharmacy__phone {
    color: var(--sp-ink);
    font-weight: 900;
    font-size: 0.989rem;
    white-space: nowrap;
    text-decoration: none;
}

.starting-patients .sp-pharmacy__phone:hover,
.starting-patients .sp-pharmacy__phone:focus-visible {
    color: var(--sp-teal-700);
    text-decoration: underline;
}

/* With Fax and Phone each pharmacy needs ~220px, so the pair needs ~440px. The fax
   column only has that room from 1200px (the row is centred and runs ~16px into the
   column gap on each side, clear of the "or" line). Narrower, the two pharmacies stack
   like the <375px layout above, with the divider between them. */
@media (max-width: 1199.98px) {
    .starting-patients .sp-pharmacies {
        flex-direction: column;
        align-items: center;
    }

    .starting-patients .sp-pharmacy {
        padding: 1rem 0;
    }

    .starting-patients .sp-pharmacy:first-child {
        padding-top: 0;
    }

    .starting-patients .sp-pharmacy + .sp-pharmacy {
        border-left: 0;
        border-top: 0.565px solid var(--sp-sea-green);
    }
}
