.mrl-provider-page,
.mrl-provider-page * {
    box-sizing: border-box;
}

.mrl-provider-page {
    --mrl-navy: #082b52;
    --mrl-teal: #008f88;
    --mrl-text: #46586a;
    --mrl-border: #d9e3ed;
    --mrl-soft: #f4f8fc;
    --mrl-green-soft: #eef9f7;

    /* Exact desktop frame used by the Research Catalog.
       !important is intentional here so WordPress constrained-layout rules
       cannot cap the shortcode at the theme content width. */
    width: min(1180px, calc(100vw - 40px)) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 22px 0 60px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    color: var(--mrl-text);
}

.mrl-provider-hero {
    /* Match the actual MRL Homepage v1.0.23 hero frame. The provider page
       remains 1180px wide below this hero; the hero intentionally breaks out
       of that parent and centers itself against the viewport. */
    width: min(1480px, calc(100vw - 24px)) !important;
    max-width: none !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    gap: 26px 30px;
    align-items: center;
    margin-bottom: 24px;
    padding: 32px 34px;
    background:
        radial-gradient(circle at top right, rgba(0, 143, 136, .08), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7fbfd 48%, #eef6fb 100%);
    border: 1px solid var(--mrl-border);
    border-left: 5px solid var(--mrl-teal);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(8, 43, 82, .08);
    overflow: hidden;
}

.mrl-provider-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--mrl-teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.mrl-provider-hero h1 {
    margin: 0 0 16px;
    color: var(--mrl-navy);
    font-size: clamp(34px, 4.45vw, 64px);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.mrl-provider-hero p {
    margin: 0;
    color: var(--mrl-text);
    font-size: 18px;
    line-height: 1.72;
}

.mrl-provider-inline-link,
.mrl-provider-inline-link:visited {
    color: var(--mrl-teal) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.mrl-provider-inline-link:hover,
.mrl-provider-inline-link:focus {
    color: var(--mrl-navy) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.mrl-provider-verification-note {
    margin-top: 12px !important;
}

.mrl-provider-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
    margin-top: 24px;
}

.mrl-provider-primary-cta,
.mrl-provider-primary-cta:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 22px;
    background: var(--mrl-navy);
    border: 1px solid var(--mrl-navy);
    border-radius: 12px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 14px 30px rgba(8, 43, 82, .16);
}

.mrl-provider-primary-cta:hover,
.mrl-provider-primary-cta:focus {
    background: #061f39;
    border-color: #061f39;
    text-decoration: none !important;
}

.mrl-provider-secondary-cta,
.mrl-provider-secondary-cta:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mrl-teal) !important;
    -webkit-text-fill-color: var(--mrl-teal) !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none !important;
}

.mrl-provider-secondary-cta:hover,
.mrl-provider-secondary-cta:focus {
    color: var(--mrl-navy) !important;
    -webkit-text-fill-color: var(--mrl-navy) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.mrl-provider-hero-credit {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--mrl-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(8, 43, 82, .08);
}

.mrl-provider-hero-credit-label {
    color: #5d6f81;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mrl-provider-hero-credit strong {
    color: var(--mrl-navy);
    font-size: clamp(28px, 2.75vw, 38px);
    line-height: 1.1;
}

.mrl-provider-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.mrl-provider-hero-visual img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(8, 43, 82, .12);
}

.mrl-provider-hero-points {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mrl-provider-hero-point {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--mrl-border);
    border-radius: 14px;
}

.mrl-provider-hero-point strong {
    color: var(--mrl-navy);
    font-size: 18px;
    line-height: 1.35;
}

.mrl-provider-hero-point-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3fbfa, #eef4fb);
    border: 1px solid var(--mrl-border);
    color: var(--mrl-teal);
    font-size: 24px;
    font-weight: 800;
}

.mrl-provider-note {
    margin: 0 0 26px;
    padding: 15px 18px;
    background: #fff8e5;
    border-left: 4px solid #dba617;
    border-radius: 6px;
    line-height: 1.55;
}

.mrl-provider-heading {
    margin: 34px 0 8px !important;
    color: var(--mrl-navy) !important;
    font-size: 28px;
}

.mrl-provider-subheading {
    margin: 0 0 20px;
    line-height: 1.6;
}

.mrl-provider-list {
    display: grid;
    gap: 16px;
}

.mrl-provider-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 225px;
    gap: 18px;
    align-items: start;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--mrl-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(8, 43, 82, .055);
}

.mrl-provider-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--mrl-navy);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.mrl-provider-name {
    margin: 0 0 6px;
    color: var(--mrl-navy);
    font-size: 21px;
    line-height: 1.25;
}

.mrl-provider-summary {
    margin: 0 0 12px;
    line-height: 1.55;
}

.mrl-provider-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mrl-provider-tag {
    display: inline-flex;
    padding: 6px 9px;
    background: var(--mrl-soft);
    border: 1px solid var(--mrl-border);
    border-radius: 999px;
    color: #41566b;
    font-size: 12px;
    font-weight: 700;
}

.mrl-provider-pricing {
    padding: 15px;
    background: var(--mrl-soft);
    border-radius: 9px;
}

.mrl-provider-pricing-label {
    display: block;
    margin-bottom: 3px;
    color: #687786;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.mrl-provider-price {
    display: block;
    margin-bottom: 9px;
    color: var(--mrl-navy);
    font-size: 23px;
    font-weight: 800;
}

.mrl-provider-after-credit {
    display: block;
    margin-bottom: 12px;
    color: #176b59;
    font-size: 13px;
    font-weight: 700;
}

.mrl-provider-link-placeholder {
    display: block;
    padding: 10px 12px;
    background: #e7edf3;
    border-radius: 6px;
    color: #647382;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.mrl-provider-warning {
    margin-top: 11px;
    padding: 10px 12px;
    background: #fff7e8;
    border-left: 3px solid #d99b21;
    color: #6a510f;
    font-size: 13px;
    line-height: 1.45;
}

.mrl-provider-quote-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 18px;
}

.mrl-provider-quote-card {
    padding: 17px;
    background: #fff;
    border: 1px solid var(--mrl-border);
    border-radius: 9px;
}

.mrl-provider-quote-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--mrl-navy);
}

.mrl-provider-quote-card span {
    font-size: 14px;
    line-height: 1.45;
}

.mrl-provider-terms {
    margin-top: 30px;
    padding: 20px 22px;
    background: var(--mrl-soft);
    border: 1px solid var(--mrl-border);
    border-radius: 10px;
}

.mrl-provider-terms h2 {
    margin: 0 0 10px !important;
    color: var(--mrl-navy) !important;
    font-size: 22px;
}

.mrl-provider-terms ul {
    margin: 0;
    padding-left: 21px;
}

.mrl-provider-terms li {
    margin: 7px 0;
    line-height: 1.5;
}

.mrl-provider-updated {
    margin: 20px 0 0;
    color: #687786;
    font-size: 13px;
    text-align: right;
}

/* Provider action links */
.mrl-provider-link-button,
.mrl-provider-link-button:visited {
    display: block;
    padding: 10px 12px;
    background: #0b3158;
    border: 1px solid #0b3158;
    border-radius: 6px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none !important;
}

.mrl-provider-link-button:hover,
.mrl-provider-link-button:focus {
    background: #061f39;
    border-color: #061f39;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
}

.mrl-provider-quote-link,
.mrl-provider-quote-link:visited {
    display: inline-block;
    margin-top: 12px;
    color: #0b3158 !important;
    -webkit-text-fill-color: #0b3158 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.mrl-provider-quote-link:hover,
.mrl-provider-quote-link:focus {
    color: #008f88 !important;
    -webkit-text-fill-color: #008f88 !important;
}

@media (max-width: 1200px) {
    .mrl-provider-hero {
        width: calc(100vw - 24px) !important;
    }
}

@media (max-width: 850px) {
    .mrl-provider-page {
        width: calc(100vw - 30px) !important;
    }

    .mrl-provider-hero {
        width: calc(100vw - 24px) !important;
        grid-template-columns: 1fr;
        padding: 26px;
    }

    .mrl-provider-hero-copy {
        order: 1;
    }

    .mrl-provider-hero-visual {
        order: 2;
    }

    .mrl-provider-hero-points {
        order: 3;
        grid-template-columns: 1fr;
    }

    .mrl-provider-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .mrl-provider-pricing {
        grid-column: 1 / -1;
    }

    .mrl-provider-quote-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .mrl-provider-page {
        width: calc(100vw - 30px) !important;
        padding: 15px 0 45px;
    }

    .mrl-provider-hero {
        padding: 22px;
    }

    .mrl-provider-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
        padding: 17px;
    }

    .mrl-provider-rank {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .mrl-provider-name {
        font-size: 19px;
    }

    .mrl-provider-quote-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .mrl-provider-hero {
        width: calc(100vw - 16px) !important;
    }
}
