.ip-page {
    --ip-ink: #11232b;
    --ip-muted: #425760;
    --ip-night: #10242a;
    --ip-soft: #e7f2ee;
    --ip-line: #d8e3e0;
    --ip-accent: #ffbe72;
    --ip-accent-text: #34200b;
    color: var(--ip-ink);
    padding-bottom: clamp(44px, 7vw, 90px);
}

.ip-page [id] { scroll-margin-top: 112px; }
.ip-page .ip-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 16px; }
.ip-page :is(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
.ip-page h2 { font-size: clamp(1.7rem, 3.3vw, 2.65rem); line-height: 1.13; letter-spacing: -.036em; }
.ip-page h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.018em; }
.ip-page p { line-height: 1.66; }
.ip-page a:focus-visible, .ip-page button:focus-visible { outline: 3px solid #1b826b; outline-offset: 4px; }

.ip-page .ip-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(22px, 4.6vw, 66px);
    align-items: center;
    padding: clamp(24px, 5vw, 65px);
    border-radius: clamp(16px, 2.7vw, 30px);
    background: radial-gradient(ellipse at 97% 1%, #456259 0%, transparent 59%), #10262b;
    color: #fff;
}

.ip-page .ip-kicker {
    color: #326356;
    font-size: .76rem;
    font-weight: 780;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.ip-page .ip-hero .ip-kicker { color: #ffcd90; }
.ip-page .ip-hero h1 {
    margin: 10px 0 13px;
    color: #fff;
    font-size: clamp(3.05rem, 6.6vw, 5.3rem);
    line-height: .99;
    letter-spacing: -.065em;
}
.ip-page .ip-hero h1 span { color: var(--ip-accent); }
.ip-page .ip-hero-lead { max-width: 36ch; color: #e7f1ee; font-size: clamp(1rem, 2vw, 1.22rem); }
.ip-page .ip-hero.ip-hero--campaign h1 {
    margin: 0 0 10px;
    font-size: clamp(3.25rem, 4.4vw, 3.55rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}
.ip-page .ip-hero--campaign h1 span { color: inherit; }
.ip-page .ip-campaign-title {
    color: var(--ip-accent);
    font-size: clamp(2.375rem, 3.4vw, 2.6875rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}
.ip-page .ip-campaign-title span { display: block; }
.ip-page .ip-hero--campaign .ip-hero-lead { margin-top: 11px; font-size: .96rem; }
.ip-page .ip-hero-art {
    min-width: 0;
    padding: clamp(8px, 1.2vw, 13px);
    border: 1px solid #769086;
    border-radius: 19px;
    background: #ecf4ed19;
}
.ip-page .ip-hero-art img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.22;
    object-fit: cover;
    object-position: left center;
    border-radius: 10px;
}
.ip-page .ip-hero-art figcaption { padding: 8px 3px 0; color: #ebf3ef; font-size: .75rem; }
.ip-page .ip-offer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 460px;
    margin-top: 23px;
    border: 1px solid #77948a;
    border-radius: 15px;
    background: #0b1c1f55;
}
.ip-page .ip-offer div { display: flex; flex-direction: column; padding: 13px clamp(9px, 2vw, 21px); }
.ip-page .ip-offer div + div { border-left: 1px solid #77948a; }
.ip-page .ip-offer dd {
    order: -1;
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.06em;
    white-space: nowrap;
}
.ip-page .ip-offer div:last-child dd { color: var(--ip-accent); }
.ip-page .ip-offer dd span { font-size: .6em; }
.ip-page .ip-offer dt { color: #edf4f1; font-size: .79rem; font-weight: 650; margin-top: 7px; line-height: 1.3; }
.ip-page .ip-expiry { margin-top: 9px; color: #e1eee9; font-size: .83rem; }
.ip-page .ip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 20px; }

.ip-page a.ip-cta {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--ip-accent);
    color: var(--ip-accent-text);
    font-weight: 830;
    line-height: 1.22;
    text-decoration: none;
    text-align: center;
}
.ip-page a.ip-cta:hover { background: #ffcf96; color: var(--ip-accent-text); }
.ip-page a.ip-secondary { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; color: #f4f8f6; font-weight: 660; }
.ip-page .ip-hero :is(a, button):focus-visible, .ip-page .ip-end a:focus-visible { outline-color: #fff; }
.ip-page .ip-coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: #ecf5f1; margin-top: 12px; font-size: .86rem; }
.ip-page code { display: inline-block; padding: 2px 7px; border-radius: 5px; font-family: ui-monospace, monospace; }
.ip-page .ip-coupon code, .ip-page .ip-end code { background: #f5ffffff; color: #18302b; font-weight: 750; }
.ip-page .ip-coupon button {
    min-height: 42px;
    padding: 5px 9px;
    background: transparent;
    border: 0;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: .2em;
    font: inherit;
    cursor: pointer;
}
.ip-page .ip-coupon button[hidden] { display: none; }
.ip-page .ip-status:not(:empty) { margin-top: 3px; color: #dcf1e9; font-size: .84rem; }

.ip-page .ip-redeem {
    margin: 18px 0 0;
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid var(--ip-line);
    border-radius: 16px;
    background: var(--ip-soft);
}
.ip-page .ip-redeem h2 { font-size: clamp(1.1rem, 2.1vw, 1.5rem); }
.ip-page .ip-redeem ol { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px 30px; margin: 13px 0 0; padding-left: 1.15em; color: var(--ip-ink); }
.ip-page .ip-redeem li { padding-left: .15em; }
.ip-page .ip-redeem li::marker { color: #216650; font-weight: 850; }
.ip-page .ip-redeem code { background: #fff; color: #173b30; font-weight: 760; overflow-wrap: anywhere; }

.ip-page .ip-content > * { margin: clamp(36px, 6vw, 68px) 0 0; }
.ip-page .ip-content h2 + p { max-width: 68ch; margin-top: 12px; color: var(--ip-muted); }
.ip-page .ip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}
.ip-page :is(.ip-grid, .ip-plans) article {
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid var(--ip-line);
    border-radius: 16px;
    background: #fff;
}
.ip-page :is(.ip-grid, .ip-plans) h3 + p { margin-top: 9px; color: var(--ip-muted); }
.ip-page .ip-workflow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    gap: clamp(21px, 4vw, 48px);
    align-items: center;
}
.ip-page .ip-workflow figure { overflow: hidden; border: 1px solid var(--ip-line); border-radius: 17px; background: #fff; }
.ip-page .ip-workflow figure img { display: block; width: 100%; height: auto; }
.ip-page .ip-workflow figcaption { padding: 9px 13px; color: var(--ip-muted); font-size: .78rem; }
.ip-page .ip-workflow ol { margin: 16px 0 0; padding-left: 1.15em; }
.ip-page .ip-workflow li + li { margin-top: 10px; }
.ip-page .ip-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 19px; }
.ip-page .ip-plans h3 { font-size: clamp(1.42rem, 2.8vw, 2.08rem); }
.ip-page .ip-plans article:nth-child(2) { background: #edf5ef; border-color: #aecbbe; }
.ip-page .ip-plans article:last-child { background: #fdf6eb; border-color: #e8d3b9; }
.ip-page .ip-plans ul { margin: 12px 0 0; padding-left: 1.13em; }
.ip-page .ip-plans li + li { margin-top: 6px; }
.ip-page .ip-questions details { border-block-end: 1px solid var(--ip-line); padding: 12px 0; }
.ip-page .ip-questions h2 { margin-bottom: 14px; }
.ip-page .ip-questions summary { cursor: pointer; padding: 7px 0; color: var(--ip-ink); font-weight: 780; }
.ip-page .ip-questions details p { max-width: 75ch; margin: 0 0 5px; color: var(--ip-muted); }
.ip-page .ip-reference-list { margin: 5px 0; padding-left: 1.2em; }
.ip-page .ip-reference-list a { text-underline-offset: .17em; }
.ip-page .ip-end {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 25px;
    justify-content: space-between;
    align-items: center;
    margin-top: clamp(35px, 5vw, 61px);
    padding: clamp(21px, 4.2vw, 47px);
    border-radius: 18px;
    background: var(--ip-night);
    color: #fff;
}
.ip-page .ip-end h2 { color: #fff; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.ip-page .ip-end p { margin-top: 8px; color: #e0ede7; font-size: .9rem; }

@media (max-width: 820px) {
    .ip-page .ip-hero, .ip-page .ip-workflow { grid-template-columns: minmax(0, 1fr); }
    .ip-page .ip-hero-art { max-width: 560px; }
    .ip-page .ip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ip-page .ip-plans { grid-template-columns: minmax(0, 1fr); }
    .ip-page .ip-redeem ol { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 540px) {
    .ip-page .ip-grid { grid-template-columns: minmax(0, 1fr); }
    .ip-page .ip-hero h1 { font-size: clamp(2.65rem, 12vw, 3.4rem); }
    .ip-page .ip-hero.ip-hero--campaign h1 { font-size: clamp(2.375rem, 10.2vw, 2.56rem); }
    .ip-page .ip-campaign-title { font-size: clamp(1.8125rem, 8vw, 2rem); }
    .ip-page .ip-actions a.ip-cta, .ip-page .ip-end a.ip-cta { width: 100%; }
    .ip-page .ip-actions { gap: 2px 10px; }
    .ip-page .ip-coupon { margin-top: 4px; }
}

/* InvestingPro editorial layout and offer controls. */
.ip-page { --ip-section-space: clamp(28px, 4.8vw, 58px); }
.ip-page .ip-breadcrumbs { margin: 18px 0 14px; }
.ip-page [id] { scroll-margin-top: 14px; }
.ip-page .ip-hero {
    padding: clamp(22px, 4.2vw, 54px);
    border: 1px solid #44645b;
    border-radius: 22px;
    box-shadow: 0 12px 34px #10262b24;
}
.ip-page .ip-hero-copy { min-width: 0; }
.ip-page .ip-hero h1,
.ip-page .ip-campaign-title { overflow-wrap: break-word; }
.ip-page .ip-hero-art { background: #edf5ee20; }
.ip-page .ip-offer { margin-top: 17px; }
.ip-page .ip-offer dd { font-variant-numeric: tabular-nums; }
.ip-page .ip-expiry { line-height: 1.42; }
.ip-page .ip-actions { gap: 8px 14px; margin-top: 14px; }
.ip-page a.ip-secondary {
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid #a2bdb4;
    border-radius: 8px;
    text-decoration: none;
}
.ip-page a.ip-secondary:hover { background: #29483f; }
.ip-page .ip-coupon button:not([hidden]) {
    min-height: 44px;
    border: 1px solid #92aea5;
    border-radius: 6px;
    text-decoration: none;
}
.ip-page .ip-coupon button:hover { background: #29483f; }
.ip-page .ip-redeem {
    margin-top: 16px;
    border-color: #c6dbd2;
    background: linear-gradient(120deg, #edf5ee, #e3efe8);
}
.ip-page .ip-content > * { margin-top: var(--ip-section-space); }
.ip-page :is(.ip-grid, .ip-plans) article {
    min-width: 0;
    border-radius: 12px;
    box-shadow: 0 3px 12px #133e3010;
}
.ip-page :is(.ip-grid, .ip-plans) article h3 { overflow-wrap: break-word; }
.ip-page .ip-workflow {
    padding: clamp(16px, 3vw, 33px);
    border: 1px solid var(--ip-line);
    border-radius: 14px;
    background: #edf4ef;
}
.ip-page .ip-questions summary { min-height: 44px; }
.ip-page .ip-questions summary:focus-visible { outline: 3px solid #1b6f5c; outline-offset: 3px; }
.ip-page .ip-end {
    margin-top: var(--ip-section-space);
    border-radius: 14px;
}

@media (min-width: 741px) and (max-width: 820px) {
    .ip-page .ip-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .ip-page .ip-hero { padding: 17px; border-radius: 16px; }
    .ip-page .ip-hero .ip-actions > a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Temporary InvestingPro campaign artwork. */
.ip-page [data-ip-after-campaign][hidden] { display: none; }
.ip-page .ip-hero-art--campaign {
    padding: clamp(5px, .7vw, 9px);
    border-color: #9c8460;
    background: #142b2f;
    box-shadow: 0 15px 32px #07151950;
}
.ip-page .ip-hero-art--campaign img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
}

.ip-page .ip-redeem-banner { display: none; }
@media (max-width: 540px) {
    .ip-page .ip-hero--campaign .ip-hero-lead[data-ip-campaign-only] { display: none; }
}
@media (min-width: 821px) {
    .ip-page .ip-redeem-banner {
        display: block;
        max-width: 850px;
        margin: 24px auto 0;
        border: 1px solid #a7bdb2;
        border-radius: 12px;
    }
    .ip-page .ip-redeem-banner img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 11px;
    }
    .ip-page .ip-redeem-banner:hover { border-color: #197459; }
}
