/**
 * LUPKYNIS Pro – 2026 HCP refresh: shared tokens, interior hero, request-a-rep ribbon.
 *
 * Its own file rather than the tail of theme-overrides.css: that tail is edited by
 * every branch, and the Pantheon pre-deploy merges each PR into upstream, where it
 * has diverged from master. Loaded after theme-overrides.css via its dependency.
 */

/* ==========================================================================
   1. Shared design tokens (2026 HCP refresh)
   ========================================================================== */

:root {
    --lupkynis-deep-teal: #023038;
    --lupkynis-teal-600: #007b76;
    --lupkynis-sea-green-100: #b0e6e3;
    --lupkynis-sea-green-300: #54c8c3;
    /* Modal/video overlay green: deep teal at 90% */
    --lupkynis-overlay: rgba(2, 48, 56, 0.9);
}

/* ==========================================================================
   2. Interior hero – every page that has .subhead-wrapper (all but Home)
   ========================================================================== */

/* Drop the patient-with-shield billboards and the light gradient at every
   breakpoint; style-min.css sets them per page id, hence !important. */
.subhead-wrapper {
    background-image: none !important;
}

.subhead-wrapper #intro {
    background: var(--lupkynis-deep-teal) url("../images/billboards/interior-hero-bg.jpg") center / cover no-repeat !important;
    color: #fff;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* Sharper art on high-density screens (Figma "Internal Pages" banner fill, exported
   at 2x). Browsers without image-set() type() keep the 1x shorthand above. */
.subhead-wrapper #intro {
    background-image: image-set(
        url("../images/billboards/interior-hero-bg@2x.webp") type("image/webp") 2x,
        url("../images/billboards/interior-hero-bg@2x.jpg") type("image/jpeg") 2x,
        url("../images/billboards/interior-hero-bg.jpg") type("image/jpeg") 1x
    ) !important;
}

@media (min-width: 992px) {
    .subhead-wrapper #intro {
        /* Figma "Internal Pages": one banner height on every page, 423px from the
           top of the utility bar, i.e. 381px from this hero's top (it starts under
           the utility bar and runs up behind the nav card, see header-nav.css). */
        min-height: 23.8125rem;
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }

    /* Banner text lines up with the utility bar and the logo (Figma x=100 at 1440),
       using the same gutter as header-nav.css instead of the 1110px body container. */
    .subhead-wrapper #intro > .container {
        max-width: none;
        padding-left: clamp(1.25rem, 6.95vw, 6.25rem);
        padding-right: clamp(1.25rem, 6.95vw, 6.25rem);
    }
}

.subhead-wrapper #intro .hero-eyebrow {
    font-family: "Mulish", sans-serif;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.25;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.25rem;
}

/* Figma: interior page titles are Gotham Light; Montserrat is the site's Gotham stand-in. */
.subhead-wrapper #intro h1 {
    font-family: "Montserrat", "Mulish", sans-serif;
    font-weight: 300;
    font-size: 2rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .subhead-wrapper #intro h1 {
        font-size: 3rem;
    }
}

/* Page intro copy under the title (Safety subtitle, Patient Profiles) */
.subhead-wrapper #intro p:not(.hero-eyebrow),
.subhead-wrapper #intro .container > div[style] {
    color: #fff !important;
}

.subhead-wrapper #intro .container > p:not(.hero-eyebrow),
.subhead-wrapper #intro .container > div[style] {
    margin-top: 1.25rem;
}

/* Anchor menu with double chevrons */
#intro .page-anchors {
    margin-top: 2.5rem;
}

@media (min-width: 992px) {
    /* Figma: anchor row 60px below the 50px title box, i.e. ~52px below the 57.6px line. */
    #intro .page-anchors {
        margin-top: 3.25rem;
    }
}

#intro .page-anchors ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 992px) {
    #intro .page-anchors ul {
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 3.75rem;
        row-gap: 1rem;
    }
}

#intro .page-anchors li,
#intro .page-anchors li:not(:first-child) {
    display: block;
    margin: 0;
    font-family: "Mulish", sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.25;
    text-transform: none;
}

#intro .page-anchors a {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--lupkynis-sea-green-100);
    text-decoration: none;
}

#intro .page-anchors a svg {
    display: none;
}

/* Chevron with the Figma glow (DROP_SHADOW #04E5DC, offset 0, radius 4 on the chevron of
   2152:47695, 2152:48529, 2304:375, 2304:1121, 2304:1198; client round 2 asks for it on
   "Cost Support" and "Educational Resources" too, so every anchor gets it). A 2px
   drop-shadow matches the Figma render side by side (4px was wider and softer). A CSS
   mask would clip the shadow, so the chevron is an image, one per link colour.
   MLR round 3 (CU-86bcfffba): the glow shows only on hover, and on keyboard focus so
   keyboard users get the same cue; the default state has none. */
#intro .page-anchors a::after {
    content: "";
    flex: none;
    width: 18.2px;
    height: 18px;
    background: url("../images/icon-chevron-double-down.svg") center / contain no-repeat;
}

#intro .page-anchors a:hover::after,
#intro .page-anchors a:focus-visible::after {
    filter: drop-shadow(0 0 2px #04e5dc);
}

#intro .page-anchors a:hover,
#intro .page-anchors a:focus-visible {
    color: var(--lupkynis-sea-green-300);
}

#intro .page-anchors a:hover::after,
#intro .page-anchors a:focus-visible::after {
    background-image: url("../images/icon-chevron-double-down-hover.svg");
}

/* Sections the banner anchors open (Figma "Internal Pages"): land with the section
   heading clear of the fixed header (87px desktop, 58px below 992px). The anchors use
   the page URL + hash, so the browser scrolls natively and honours these margins. */
body#efficacy #secondary-endpoints-1,
body#efficacy #steroid-tapering,
body#efficacy #secondary-endpoints-2,
body#dosing #dose-border,
body#lupus-nephritis #proteinuria {
    scroll-margin-top: 2.5rem;
}

body#how-lupkynis-works #about-lupkynis {
    scroll-margin-top: 5rem;
}

@media (min-width: 992px) {
    body#how-lupkynis-works #about-lupkynis {
        scroll-margin-top: 6.5rem;
    }
}

#intro .page-anchors a:focus-visible {
    outline: 2px solid var(--lupkynis-sea-green-300);
    outline-offset: 4px;
}

/* Targets of the anchors added in the agency markups 10.28 (round 3): same landing
   offset as the sections above. Kept as its own rule so it merges cleanly with #59. */
body#efficacy #study-design,
body#lupus-nephritis #LN-impacts,
body#lupus-nephritis #guidelines {
    scroll-margin-top: 2.5rem;
}

/* "Complete Response" opens the empty #primary-endpoint marker; 5rem (theme-overrides)
   left the CRR heading touching the fixed header at 1440. */
body#efficacy #primary-endpoint {
    scroll-margin-top: 6.5rem;
}

/* Banner headline ® (lupkynispro_banner_reg_mark() adds the class): the font's small
   superior glyph of the Figma titles (OpenType SUPS on 2304:1117 MOA, 2304:1279 Safety,
   2305:6665 Get Connected: ~29% of the cap height, top level with the caps), not a 60%
   <sup>. One rule for every banner, em-based so it scales with the h1. */
.subhead-wrapper #intro h1 sup.banner-reg {
    position: relative;
    top: -1.65em;
    margin-left: 0.15em;
    font-size: 0.3em;
    line-height: 0;
    vertical-align: baseline;
}

/* ==========================================================================
   3. "Let's talk LUPKYNIS | Request a rep" ribbon (template-parts/rep-banner)
   ========================================================================== */

.rep-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 2.5rem;
    padding: 2.5rem 1.25rem;
    background: linear-gradient(90deg, var(--lupkynis-deep-teal) 1.193%, var(--lupkynis-teal-600) 61.263%, var(--lupkynis-sea-green-300) 110.99%);
    color: #fff;
    /* Figma: the ribbon is Gotham (Medium lead, Black divider and link); Montserrat stands in. */
    font-family: "Montserrat", "Mulish", sans-serif;
    text-align: center;
}

@media (min-width: 992px) {
    .rep-banner {
        padding: 2.5rem 6.25rem;
    }
}

.rep-banner__lead {
    margin: 0;
    font-weight: 500;
    font-size: 1.5rem;
}

/* Inside main#content the legacy "#content p" colour would darken the lead. */
#content .rep-banner .rep-banner__lead {
    color: #fff;
}

.rep-banner__divider {
    font-weight: 900;
    font-size: 1.75rem;
    line-height: 2.25rem;
}

.rep-banner__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

.rep-banner__link::after {
    content: "";
    width: 12px;
    height: 22.8px;
    background: url("../images/icon-arrow-right-white.svg") center / contain no-repeat;
}

.rep-banner__link:hover,
.rep-banner__link:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.rep-banner__link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (max-width: 575.98px) {
    .rep-banner__divider {
        display: none;
    }
}
#content .rep-banner .rep-banner__link {
    color: #fff;
}

/* Sitewide "Let's talk LUPKYNIS" ribbon replaces legacy next-page jump links */
.jump-link {
    display: none !important;
}

/* ==========================================================================
   4. Resources page (Peer Perspectives & Educational Resources)
   ========================================================================== */

body#resources #peer-perspectives,
body#resources #educational-resources {
    scroll-margin-top: 5rem;
}

@media (min-width: 992px) {
    body#resources #peer-perspectives,
    body#resources #educational-resources {
        scroll-margin-top: 6.5rem;
    }
}

/* Section statements: Mulish Bold 20/25.1 #023038 (Figma 2115:25250, 2152:48280; client
   round 2). The registered mark is a <sup> and takes the sitewide SUPS rule. */
#resources .resources-statement {
    font-family: "Mulish", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.255;
    color: #023038;
}

.resources-divider {
    border: 0;
    border-top: 1px solid var(--lupkynis-coral, #ff9281);
    max-width: 1240px;
    margin: 0 auto;
}

#resources .video-thumbnail-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

#resources .video__thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    line-height: 0;
}

#resources .video__thumbnail img.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

#resources .video__thumbnail .video-play-button {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    transform: none;
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   MLR round 3 (CU-86bcfffba, review PDF "Pro site post MLR feedback 11.11.26")
   -------------------------------------------------------------------------- */

/* GLOBAL "Buttons - please update font to Montserrat" (p.1): every theme button
   (.btn: interstitial CONTINUE TO SITE / CANCEL, LN guideline downloads, Get Connected
   SUBMIT, mobile header Get Connected). Weight stays 900, which is enqueued. The Home
   cards and the Start Form button already use Montserrat (round 2). */
.btn {
    font-family: "Montserrat", "Mulish", sans-serif;
}

/* GLOBAL "interstitial popups: headline copy font to Montserrat" (p.1): the headline of
   every dialog (leaving the site, thank you, site map). Weight stays 900. */
.dialog-content h1 {
    font-family: "Montserrat", "Mulish", sans-serif;
}

/* Efficacy has no eyebrow (p.8, Figma 2304:1194). Keep the title where it was, as in
   Figma (title at y=229 on every interior banner): the eyebrow line (1rem x 1.25) plus
   its 1.25rem bottom margin. */
body#efficacy .subhead-wrapper #intro h1 {
    margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Approved Exit Modal Redesign (CU-86bcfffba, David Chaparro's approval in
   comment 90140283373915 based on Figma specification / image.png)
   White dialog box, cyan glow outer shadow, dark ink copy (#023038),
   and Aurinia leaf-shaped buttons (border-radius: 0 25px 0 25px).
   -------------------------------------------------------------------------- */

#external .dialog-content {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 0 35px 4px rgba(4, 229, 220, 0.65), 0 0 15px rgba(0, 184, 176, 0.35);
    max-width: 45rem;
    width: 90%;
    height: auto;
    max-height: 90vh;
    padding: 3.5rem 2.5rem;
}

@media (min-width: 768px) {
    #external .dialog-content {
        padding: 4rem 3.5rem;
        border-radius: 24px;
    }
}

@media screen and (max-width: 767px) {
    #external {
        top: 0;
        bottom: 0;
        align-items: center;
        justify-content: center;
    }

    #external .dialog-content {
        height: auto;
        background: #ffffff;
        padding: 2rem 1.25rem;
        margin: auto;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
}

#external .dialog-bg {
    display: none;
}

#external .dialog-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    color: #023038;
    background: transparent;
    border: none;
    font-size: 2.25rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

#external .dialog-close:hover,
#external .dialog-close:focus-visible {
    opacity: 1;
    color: #007b76;
    transform: scale(1.08);
}

#external #external-title {
    font-family: "Montserrat", "Mulish", sans-serif;
    font-weight: 900;
    font-size: 2.25rem;
    line-height: 1.2;
    color: #023038;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    #external #external-title {
        font-size: 1.625rem;
        line-height: 1.25;
    }
}

#external .dialog-content p {
    font-family: "Mulish", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
    color: #023038 !important;
    margin-bottom: 2.5rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    #external .dialog-content p {
        font-size: 1.0625rem;
        margin-bottom: 1.75rem;
    }
}

#external .dialog-content .d-lg-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

@media (min-width: 576px) {
    #external .dialog-content .d-lg-flex {
        flex-direction: row;
        gap: 1.5rem;
    }
}

/* The buttons' wrappers carry no margins: .d-lg-flex's gap spaces them both when
   stacked (< 576px) and in a row, so in a row they share one top/bottom edge.
   Same specificity as style-min.css's mobile `#external .dialog-content .btn`
   (padding 17px 30px 17px 22px, room for an arrow icon this design hides) so the
   symmetric padding below wins at every width and the label stays centred. */
#external .dialog-content .d-lg-flex > div {
    margin: 0;
}

#external .dialog-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12rem;
    padding: 0.9375rem 2.25rem;
    font-family: "Montserrat", "Mulish", sans-serif;
    font-weight: 900;
    font-size: 1.125rem;
    line-height: 1.2;
    text-transform: none;
    border-radius: 0 25px 0 25px; /* Aurinia leaf shape */
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    cursor: pointer;
}

#external .btn svg {
    display: none;
}

#external .btn--primary {
    background-color: #357975;
    border: 2px solid #357975;
    color: #ffffff !important;
}

#external .btn--primary:hover,
#external .btn--primary:focus-visible {
    background-color: #275d5a;
    border-color: #275d5a;
    color: #ffffff !important;
    transform: translateY(-1px);
}

#external .btn--secondary {
    background-color: transparent;
    border: 2px solid #357975;
    color: #357975 !important;
}

#external .btn--secondary:hover,
#external .btn--secondary:focus-visible {
    background-color: #e6f7f6;
    border-color: #275d5a;
    color: #275d5a !important;
    transform: translateY(-1px);
}
