.int-section-page {
    --section-ink: #183139;
    --section-subtle: #40565a;
    --section-line: #d1dfd9;
    --section-glow: #2c6057;
    --section-dark: #102b2e;
    --section-accent: #dbf3a6;
}

.int-section-page.im-guides {
    --section-glow: #294e6b;
    --section-dark: #112637;
    --section-accent: #ffdca1;
}

.int-section-page.im-books {
    --section-glow: #526251;
    --section-dark: #1b302e;
    --section-accent: #e0efad;
}

.int-section-page .breadcrumbs {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .48rem;
    margin: 0;
    padding: clamp(14px, 2vw, 24px) 0;
    color: var(--section-subtle);
}

.int-section-page .breadcrumbs a {
    color: #145b52;
    text-underline-offset: .18em;
}

.int-section-page .im-hero {
    padding: clamp(23px, 4.6vw, 59px);
    border: 1px solid #ffffff1f;
    border-radius: clamp(17px, 2.6vw, 30px);
    background:
        radial-gradient(ellipse at 87% 0%, var(--section-glow), transparent 63%),
        var(--section-dark);
    box-shadow: 0 13px 36px #142a2d1a;
}

.int-section-page .im-hero-featured {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: clamp(20px, 4.15vw, 60px);
}

.int-section-page .im-hero-copy .eyebrow {
    margin-bottom: .8em;
    color: var(--section-accent);
    letter-spacing: .1em;
}

.int-section-page .im-hero h1 {
    max-width: 13ch;
    margin-bottom: clamp(14px, 2vw, 23px);
    font-size: clamp(2.35rem, 5.4vw, 4.65rem);
    line-height: 1.04;
    text-wrap: unset;
}

.int-section-page .im-hero-copy > p:not(.eyebrow) {
    max-width: 39ch;
    margin: 0 0 clamp(18px, 2.7vw, 32px);
    color: #e8f4ef;
    font-size: clamp(1rem, 1.65vw, 1.17rem);
    line-height: 1.56;
}

.int-section-page .im-hero .button {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    min-height: 46px;
    padding: 10px 17px;
    border: 1px solid var(--section-accent);
    border-radius: 8px;
    background: var(--section-accent);
    color: var(--section-ink);
    font-weight: 750;
    text-decoration: none;
}

.int-section-page .im-hero .button:hover {
    border-color: #fff;
    background: #fff;
    color: var(--section-ink);
}

.int-section-page .im-hero .button:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

.int-section-page .im-hero-picture {
    max-width: none;
    margin: 0;
    border: 1px solid #ffffff54;
    border-radius: 14px;
    background: #0c2328;
    box-shadow: 0 20px 33px #06151552;
}

.int-section-page .im-hero-picture img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.int-section-page .im-hero-picture.im-art-tradingview img,
.int-section-page .im-hero-picture.im-art-stream img {
    padding: clamp(6px, 1.15vw, 14px);
    object-fit: contain;
}

.int-section-page .im-hero-picture figcaption {
    border-top: 1px solid #ffffff21;
    padding: 6px 12px;
    color: #e0efea;
    font-size: .73rem;
}

.int-section-page .im-section {
    margin-block: clamp(32px, 5.8vw, 72px);
}

.int-section-page .im-section-head {
    align-items: center;
    flex-direction: row;
    padding-block-end: 13px;
    border-bottom: 1px solid var(--section-line);
    margin-bottom: clamp(15px, 2.3vw, 29px);
}

.int-section-page .im-section-head h2 {
    color: var(--section-ink);
    font-size: clamp(1.68rem, 3.4vw, 2.62rem);
    line-height: 1.12;
}

.int-section-page .im-filters a,
.int-section-page .int-section-text-link {
    display: inline-flex;
    align-items: center;
    gap: .38em;
    min-height: 44px;
    padding: 6px 13px;
    border: 1px solid var(--section-line);
    border-radius: 8px;
    background: #fff;
    color: var(--section-ink);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.int-section-page .im-filters a[aria-current="page"],
.int-section-page .im-filters a:hover,
.int-section-page .int-section-text-link:hover {
    border-color: var(--section-dark);
    background: var(--section-dark);
    color: #fff;
}

.int-section-page .im-grid,
.int-section-page .ib-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(13px, 2.3vw, 26px);
}

.int-section-page .im-card,
.int-section-page .ib-tile {
    display: grid;
    grid-template: auto 1fr / minmax(0, 1fr);
    border-color: var(--section-line);
    border-radius: 15px;
    color: var(--section-ink);
    text-decoration: none;
    box-shadow: 0 7px 18px #16352f0a;
}

.int-section-page .im-card:hover,
.int-section-page .ib-tile:hover {
    border-color: #659785;
    box-shadow: 0 12px 26px #193a3222;
}

.int-section-page .im-card:focus-within,
.int-section-page .ib-tile:focus-visible,
.int-section-page .im-filters a:focus-visible,
.int-section-page .int-section-text-link:focus-visible {
    outline: 2px solid #176859;
    outline-offset: 4px;
}

.int-section-page .im-card-art {
    display: grid;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid #17342d17;
    background: #e5efe9;
}

.int-section-page .im-art-tradingview.im-card-art,
.int-section-page .im-art-investingpro.im-card-art {
    background: #e5ecef;
}

.int-section-page .im-art-eaton.im-card-art,
.int-section-page .im-art-ergotron.im-card-art {
    background: #142b30;
}

.int-section-page .im-art-tradingview.im-card-art img,
.int-section-page .im-art-investingpro.im-card-art img,
.int-section-page .im-art-stream.im-card-art img {
    padding: clamp(7px, 1.2vw, 15px);
    object-fit: contain;
}

.int-section-page .int-section-card-empty {
    place-items: center;
    color: #33796b;
}

.int-section-page .int-section-card-empty svg {
    width: 66px;
    height: 54px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.int-section-page .im-card-copy,
.int-section-page .ib-tile-copy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: clamp(16px, 2.05vw, 25px);
}

.int-section-page .im-card-copy h3,
.int-section-page .ib-tile-copy h3 {
    margin: 0 0 9px;
    color: var(--section-ink);
    font-size: clamp(1.21rem, 2.15vw, 1.6rem);
    line-height: 1.21;
    letter-spacing: -.024em;
    overflow-wrap: break-word;
}

.int-section-page .im-card-copy p:not(.im-card-label),
.int-section-page .ib-tile-copy p {
    margin: 0 0 15px;
    color: var(--section-subtle);
    font-size: .95rem;
    line-height: 1.57;
}

.int-section-page .im-card-link {
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--section-line);
    color: #175b50;
    font-size: .9rem;
}

.int-section-page .im-card-link > span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e6f1e9;
    font-weight: 750;
}

.int-section-book-covers {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: clamp(4px, 1.4vw, 16px);
    min-width: 0;
    padding: clamp(10px, 2.5vw, 25px) clamp(5px, 1.9vw, 22px) 18px;
}

.int-section-book-covers img {
    display: block;
    width: min(31%, 160px);
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    filter: drop-shadow(7px 10px 9px #091913b0);
}

.int-section-book-covers img:first-child:not(:last-child) { transform: rotate(-7deg); }
.int-section-book-covers img:last-child:not(:first-child) { transform: rotate(7deg); }
.int-section-book-covers img:nth-child(2):not(:last-child) { transform: translateY(-9%); }

.int-section-book-content > p { max-width: 65ch; color: var(--section-subtle); }

.int-section-page .ib-tile figure {
    min-height: clamp(164px, 21vw, 228px);
    padding: 17px;
    border-bottom: 1px solid var(--section-line);
    background: radial-gradient(ellipse at 44% 35%, #f1f5dd, #e5eee7 78%);
}

.int-section-page .ib-tile figure img {
    width: min(100%, 126px);
    box-shadow: 6px 9px 16px #20332e55;
}

@media (max-width: 920px) {
    .int-section-page .im-grid,
    .int-section-page .ib-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 730px) {
    .int-section-page .im-hero-featured { grid-template-columns: minmax(0, 1fr); }
    .int-section-page .im-hero h1 { max-width: 16ch; }
    .int-section-page .im-hero-picture { width: min(100%, 460px); }
    .int-section-page .int-section-book-covers { max-width: 420px; justify-self: center; }
}

@media (max-width: 540px) {
    .int-section-page .im-grid,
    .int-section-page .ib-shelf { grid-template-columns: minmax(0, 1fr); }
    .int-section-page .im-section-head { align-items: start; }
    .int-section-page .im-card-art { aspect-ratio: 16 / 8.5; }
    .int-section-page .im-hero-picture figcaption { overflow-wrap: break-word; }

    .int-section-page .ib-tile:has(figure) { grid-template: auto / minmax(92px, 31%) minmax(0, 1fr); }
    .int-section-page .ib-tile figure {
        min-height: 0;
        padding: 11px;
        border: 0;
        border-inline-end: 1px solid var(--section-line);
    }
}

/* Introsfera: equipment readability and responsive layout. Load after style.css.
 * Only equipment wrappers are targeted; commercial content and links are untouched.
 */
:is(.lg-page,.ergo-page,.eaton-page,.sd-page,.sihoo-page) {
    --equipment-anchor-offset: 144px;
    overflow-wrap: break-word;
}
:is(.lg-page,.ergo-page,.eaton-page,.sd-page,.sihoo-page) :is(section,h2,h3,details)[id] {
    scroll-margin-top: var(--equipment-anchor-offset);
}
:is(.lg-page,.ergo-page,.eaton-page,.sd-page,.sihoo-page) :is(figure,article,section,header,aside,dl,div) {
    min-width: 0;
}
:is(.lg-page,.ergo-page,.eaton-page,.sd-page,.sihoo-page) :is(h1,h2,h3) {
    text-wrap: balance;
}
:is(.lg-page,.ergo-page,.eaton-page,.sd-page,.sihoo-page) .breadcrumbs {
    font-size: 14px;
    line-height: 1.65;
}
:is(.lg-page,.ergo-page,.eaton-page,.sd-page,.sihoo-page) :is(.button,.lg-buy,.sd-buy,.sihoo-buy) {
    min-height: 48px;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
}
:is(.lg-page,.ergo-page,.eaton-page,.sd-page,.sihoo-page) a:focus-visible {
    outline: 3px solid #a65617;
    outline-offset: 5px;
    box-shadow: 0 0 0 2px #fff;
}
/* Legacy monitor and mouse layouts: remove miniature supporting copy. */
.lg-page .lg-kicker { font-size: 13px; line-height: 1.6; letter-spacing: .09em; }
.lg-page .lg-hero-copy > p:not(:first-child), .lg-page .lg-copy p,
.lg-page .lg-reading > p, .lg-page .lg-benefits p { font-size: 18px; line-height: 1.7; }
.lg-page .lg-hero-copy small, .lg-page .lg-benefits small,
.lg-page .lg-reading small, .lg-page .lg-final small,
.lg-page article > p:last-child { font-size: 14px; line-height: 1.65; }
.lg-page :is(.lg-hero-image,.lg-split) figcaption { font-size: 14px; line-height: 1.6; }
.lg-page .lg-benefits span, .lg-page .lg-stats span { font-size: 14px; line-height: 1.55; }
.lg-page .lg-stats strong { line-height: 1.2; margin-bottom: 8px; }
.lg-page .lg-image-badge small { font-size: 12px; line-height: 1.4; }
.lg-page .lg-specs dl > div { font-size: 17px; line-height: 1.65; }
.lg-page .lg-reading { max-width: 780px; }
.lg-page .lg-reading details, .lg-page .lg-reading details p { font-size: 18px; line-height: 1.7; }
.lg-page .lg-reading summary { min-height: 48px; padding-block: 8px; }
.lg-page .lg-layout-demo :is(span,small) { font-size: 13px; line-height: 1.5; }
.lg-page .lg-demo-notes p, .lg-page .lg-workspace > p:last-child { font-size: 16px; line-height: 1.65; }
.lg-page .lg-sticky { gap: 16px; bottom: max(12px,env(safe-area-inset-bottom)); }
.lg-page .lg-sticky strong { font-size: 15px; line-height: 1.4; }
.lg-page .lg-sticky small { display: block; font-size: 13px; line-height: 1.4; }
.lg-page .lg-sticky .lg-buy { min-height: 48px; font-size: 15px; flex-shrink: 0; white-space: normal; }
/* Preserve the whole hardware illustration and make attribution readable. */
:is(.ergo-page,.eaton-page) .ergo-figure img { object-fit: contain; }
:is(.ergo-page,.eaton-page) .ergo-figure figcaption { font-size: 14px; line-height: 1.6; padding: 12px 20px; }
:is(.ergo-page,.eaton-page) .ergo-disclosure { font-size: 14px; line-height: 1.65; }
:is(.ergo-page,.eaton-page) .ergo-specs dt { font-size: 15px; line-height: 1.5; }
:is(.ergo-page,.eaton-page) .ergo-specs dd { margin-top: 8px; }
:is(.ergo-page,.eaton-page) .ergo-aside p { font-size: 16px; line-height: 1.65; }
:is(.ergo-page,.eaton-page) .ergo-aside h3 { font-size: 18px; line-height: 1.4; }
.eaton-page .eaton-outlet-grid p { font-size: 17px; line-height: 1.65; }
.sd-page .sd-product img { object-fit: contain; }
.sd-page .sd-product figcaption,
.sihoo-page :is(.sihoo-hero-art,.sihoo-work-photo,.sihoo-mesh) figcaption {
    font-size: 14px;
    line-height: 1.55;
}
.sihoo-page .sihoo-hero-art { display: flex; flex-direction: column; aspect-ratio: auto; }
.sihoo-page .sihoo-hero-art img { height: auto; aspect-ratio: 1.16; object-fit: contain; }
.sihoo-page .sihoo-hero-art figcaption { position: static; border-radius: 0; }
.sd-page .sd-kicker { font-size: 13px; line-height: 1.5; }
.sd-page .sd-keyboard li { font-size: 14px; line-height: 1.4; padding: 10px 5px; }
.sd-page .sd-details { font-size: 17px; line-height: 1.65; }
.sd-page .sd-content > .sd-section > p { max-width: 75ch; }
.sihoo-page .sihoo-faq summary { font-size: 18px; line-height: 1.5; }
@media (min-width: 741px) and (max-width: 1000px) {
    .sd-page .sd-hero, .sihoo-page .sihoo-hero { grid-template-columns: minmax(0,1fr); }
    .sd-page .sd-product, .sihoo-page .sihoo-hero-art { width: 100%; max-width: 580px; justify-self: center; }
    .sd-page .sd-uses-grid, .sihoo-page .sihoo-benefit-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
    .lg-page .lg-hero { padding: 28px 22px; }
    .lg-page .lg-hero h1 { font-size: clamp(32px,7vw,42px); line-height: 1.13; }
    .lg-page .lg-hero-image { margin-top: 28px; }
    .lg-page .lg-section { margin-block: 44px; }
    .lg-page .lg-specs dl > div { grid-template-columns: minmax(0,1fr); gap: 5px; }
    .lg-page .lg-final h2 { font-size: clamp(28px,6.7vw,36px); }
    .lg-page .lg-sticky { position: static; transform: none; width: 100%; max-width: none; margin-top: 28px; box-shadow: none; padding: 18px; flex-wrap: wrap; }
    .lg-page .lg-sticky .lg-buy { flex: 1 0 auto; }
    .lg-page ~ .site-footer { padding-bottom: 40px; }
    :is(.ergo-page,.eaton-page) .ergo-specs { grid-template-columns: minmax(0,1fr); }
    :is(.ergo-page,.eaton-page) .ergo-specs div { padding: 16px 12px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 16px; }
    :is(.ergo-page,.eaton-page) .ergo-specs div + div { border-left: 0; border-top: 1px solid #ccdcd3; }
    :is(.ergo-page,.eaton-page) .ergo-specs dd { font-size: 20px; line-height: 1.3; margin: 0; }
    :is(.ergo-page,.eaton-page) .ergo-actions { align-items: stretch; }
    :is(.ergo-page,.eaton-page) .ergo-actions .button { width: 100%; }
    :is(.ergo-page,.eaton-page) .ergo-outbound { min-height: 44px; display: inline-flex; align-items: center; }
    .sd-page .sd-hero h1, .sihoo-page .sihoo-hero h1 { font-size: clamp(32px,8.5vw,44px); line-height: 1.12; }
}
@media (max-width: 380px) {
    .lg-page .lg-layout-demo { grid-template-columns: minmax(0,1fr); }
    .lg-page .lg-image-badge { position: static; display: inline-block; margin-top: 12px; }
    .lg-page .lg-sticky .lg-buy { flex-basis: 100%; }
}

/* Introsfera: three guides and book reviews. Append after the existing theme CSS. */
:is(.ig-guide,.ib-book) { overflow-wrap: break-word; }
:is(.ig-guide,.ib-book) :is(div,section,article,figure,nav,header) { min-width: 0; }
:is(.ig-guide,.ib-book) :is(h1,h2,h3) { text-wrap: balance; }
:is(.ig-guide,.ib-book) [id] { scroll-margin-top: 144px; }
:is(.ig-guide,.ib-book) .breadcrumbs { margin: 18px 0; padding: 0; font-size: 14px; line-height: 1.6; }
:is(.ig-guide,.ib-book) :is(.button,.wp-block-button__link) { min-height: 48px; font-size: 16px; line-height: 1.5; text-align: center; white-space: normal; }
:is(.ig-guide,.ib-book) a:focus-visible { outline: 3px solid #a65617; outline-offset: 5px; box-shadow: 0 0 0 2px #fff; }
.ig-guide .ig-hero { grid-template-columns: minmax(0,1.35fr) minmax(0,.65fr); padding: clamp(24px,3.6vw,44px); gap: 32px; }
.ig-guide .ig-hero-text { grid-template-columns: minmax(0,1fr); }
.ig-guide .ig-hero h1 { font-size: clamp(32px,3.8vw,48px); line-height: 1.12; margin-bottom: 16px; }
.ig-guide .ig-hero h1 span { font-size: .82em; line-height: 1.2; }
.ig-guide .ig-lede { font-size: 18px; line-height: 1.65; margin-bottom: 20px; max-width: 62ch; }
.ig-guide .ig-hero-art { box-shadow: none; }
.ig-guide .ig-hero-art img { width: 100%; max-height: 300px; object-fit: contain; }
.ig-guide .ig-hero-art figcaption { font-size: 14px; line-height: 1.55; }
.ig-guide .ig-actions > a:not(.button) { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.ig-guide :is(.ig-overview,.ig-related) { margin-block: 40px; }
.ig-guide .ig-choice { gap: 7px; padding: 18px; }
.ig-guide .ig-choice strong { font-size: 19px; line-height: 1.35; }
.ig-guide .ig-choice > span:last-child { font-size: 16px; line-height: 1.6; }
.ig-guide .ig-reading { grid-template-columns: 220px minmax(0,740px); justify-content: space-between; gap: clamp(28px,4vw,48px); }
.ig-guide .ig-index { top: 140px; padding: 16px; gap: 0; }
.ig-guide .ig-index p { font-size: 16px; margin-bottom: 8px; }
.ig-guide .ig-index a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 16px; line-height: 1.4; border-top: 1px solid var(--ig-line); }
.ig-guide .ig-prose { max-width: 740px; font-size: 18px; line-height: 1.75; }
.ig-guide .ig-prose h2 { margin-top: 40px; font-size: clamp(26px,2.6vw,32px); line-height: 1.2; }
.ig-guide .ig-prose h3 { font-size: 22px; line-height: 1.3; }
.ig-guide .ig-products { grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); }
.ig-guide .ig-products article { display: grid; grid-template-columns: 120px minmax(0,1fr); align-items: center; }
.ig-guide .ig-product-art { height: 100%; min-height: 130px; aspect-ratio: auto; }
.ig-guide .ig-product-art img { object-fit: contain; }
.ig-guide .ig-product-copy { padding: 20px; }
.ig-guide .ig-product-copy h3 { font-size: 21px; line-height: 1.25; }
.ig-guide .ig-product-copy p { font-size: 16px; line-height: 1.6; }
/* Book title and edition remain dominant; the cover no longer drives hero height. */
.ib-book .ib-hero { grid-template-columns: minmax(0,1fr) 220px; gap: 40px; padding: clamp(24px,3.6vw,44px); }
.ib-book .ib-hero:has(.ib-hero-copy:only-child) { grid-template-columns: minmax(0,1fr); }
.ib-book .ib-hero h1 { font-size: clamp(32px,3.6vw,46px); line-height: 1.15; margin-bottom: 18px; }
.ib-book .ib-hero .eyebrow { margin-bottom: 14px; font-size: 13px; }
.ib-book .ib-intro { font-size: 18px; line-height: 1.65; margin-bottom: 20px; }
.ib-book .ib-cover img { width: auto; max-width: 100%; max-height: 290px; object-fit: contain; box-shadow: 8px 12px 22px #071c1c45; }
.ib-book .ib-reading { width: min(100%,760px); margin-top: 36px; font-size: 18px; line-height: 1.75; }
.ib-book .ib-reading h2 { margin-top: 40px; font-size: clamp(26px,2.6vw,32px); line-height: 1.25; }
.ib-book .ib-reading h3 { font-size: 22px; line-height: 1.35; }
.ib-book .ib-edition { padding: clamp(20px,3vw,30px); }
.ib-book .ib-edition h2 { margin-top: 0; }
.ib-book .ib-edition ul { gap: 12px 24px; font-size: 17px; line-height: 1.6; }
.ib-book :is(.ib-disclosure,.ib-byline) { font-size: 14px; line-height: 1.65; }
.ib-book .ib-reading blockquote { margin-inline: 0; padding: 8px 0 8px 24px; border-left: 3px solid #0e6257; }
/* Native block tables fit the reading column; overflow is local, never the page. */
:is(.ig-prose,.ib-reading) .wp-block-table { max-width: 100%; overflow-x: auto; margin-inline: 0; }
:is(.ig-prose,.ib-reading) table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
:is(.ig-prose,.ib-reading) :is(th,td) { padding: 12px; vertical-align: top; text-align: left; border: 1px solid #d5e2da; overflow-wrap: anywhere; }
:is(.ig-prose,.ib-reading) th { background: #eaf2ee; color: #18382e; }
:is(.ig-prose,.ib-reading) tbody tr:nth-child(even) { background: #f0f4f2; }
:is(.ig-prose,.ib-reading) :is(figcaption,cite) { font-size: 14px; line-height: 1.6; }
@media (max-width: 980px) {
    .ig-guide .ig-reading { grid-template-columns: minmax(0,1fr); gap: 28px; }
    .ig-guide .ig-index { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
    .ig-guide .ig-index p { grid-column: 1/-1; }
    .ig-guide .ig-prose { max-width: 100%; }
    .ig-guide .ig-hero { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .ig-guide .ig-hero-art { width: min(100%,460px); justify-self: center; }
    .ig-guide .ig-hero-art img { max-height: 230px; }
    .ib-book .ib-hero { grid-template-columns: minmax(0,1fr) 170px; gap: 28px; }
}
@media (max-width: 650px) {
    .ig-guide .ig-hero, .ib-book .ib-hero { padding: 24px 20px; border-radius: 16px; }
    .ig-guide .ig-hero h1, .ib-book .ib-hero h1 { font-size: clamp(30px,7.5vw,38px); }
    .ig-guide .ig-options { grid-template-columns: minmax(0,1fr); gap: 10px; }
    .ig-guide .ig-choice { grid-template-columns: 62px minmax(0,1fr); gap: 3px 14px; align-items: center; }
    .ig-guide .ig-choice > :first-child { grid-row: 1/3; }
    .ig-guide .ig-choice > span:last-child { grid-column: 2; }
    .ig-guide .ig-display-wide i { width: 58px; }
    .ig-guide .ig-display-dual i { width: 27px; }
    .ig-guide .ig-index { grid-template-columns: minmax(0,1fr); }
    .ig-guide .ig-product-copy { padding: 16px; }
    .ig-guide .ig-products article { grid-template-columns: 90px minmax(0,1fr); }
    .ig-guide .ig-products { gap: 12px; }
    .ib-book .ib-hero { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .ib-book .ib-cover img { max-height: 220px; }
    .ib-book .ib-edition ul { grid-template-columns: minmax(0,1fr); }
    :is(.ig-guide,.ib-book) .wp-block-buttons { display: grid; grid-template-columns: minmax(0,1fr); }
    .ib-book .wp-block-button__link { width: 100%; }
    :is(.ig-prose,.ib-reading) table { font-size: 15px; }
    :is(.ig-prose,.ib-reading) :is(th,td) { padding: 9px; }
}

/* Platform editorial pages: ActivoTrading and TradingView. */
:is(.atx-page, .tv-page) {
    --platform-space: clamp(28px, 4.8vw, 58px);
    padding-bottom: var(--platform-space);
}
:is(.atx-page, .tv-page) .breadcrumbs { margin: 18px 0 14px; padding: 0; }

/* ActivoTrading keeps its navy, photography, and membership gold. */
.atx-page .atx-hero {
    min-height: clamp(328px, 36vw, 454px);
    padding: clamp(28px, 4.5vw, 58px);
    border: 1px solid #203e4e;
    border-radius: 22px;
    box-shadow: 0 12px 34px #0b223320;
}
.atx-page .atx-hero::after {
    background: linear-gradient(90deg, #081b2afa 0%, #0a2236ed 35%, #0a223664 68%, #0a223619);
}
.atx-page .atx-hero-image img { object-position: 74% 51%; }
.atx-page .atx-intro { min-width: 0; max-width: 32rem; }
.atx-page .atx-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.7rem);
    line-height: 1.02;
    overflow-wrap: break-word;
}
.atx-page .atx-hero .atx-tagline { font-size: clamp(1.22rem, 2.8vw, 1.85rem); }
.atx-page .atx-intro > p:not(.atx-kicker, .atx-tagline) { margin-bottom: 17px; line-height: 1.55; }
.atx-page .atx-actions { gap: 8px 12px; }
.atx-page .atx-actions .atx-hero-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: .4em;
    padding: 8px 12px;
    border: 1px solid #91adb9;
    border-radius: 8px;
    color: #f2f8fa;
    font-weight: 670;
    text-decoration: none;
}
.atx-page .atx-actions .atx-hero-link:hover { background: #274756; }
.atx-page .atx-hero a:focus-visible { outline: 3px solid #f9e8af; outline-offset: 3px; }
.atx-page .atx-content { gap: var(--platform-space); padding-top: var(--platform-space); }
.atx-page .atx-content [id] { scroll-margin-top: 14px; }
.atx-page .atx-content h2 { letter-spacing: -.035em; }
.atx-page .atx-grid > article {
    min-width: 0;
    border-color: #cddde4;
    border-radius: 12px;
    box-shadow: 0 3px 12px #142f3d0c;
}
.atx-page .atx-grid > article:focus-within { border-color: #436e82; }
.atx-page .atx-grid > article h3 { overflow-wrap: break-word; }
.atx-page .atx-plans .atx-grid .atx-plan-best {
    border-color: #a8c0cb;
    background: linear-gradient(145deg, #f9fcfd, #e8f1f5);
}
.atx-page .atx-plans .atx-price strong { font-variant-numeric: tabular-nums; }
.atx-page .atx-offer {
    border-color: #d9bd75;
    background: linear-gradient(120deg, #fff7df, #f9ecd0);
}
.atx-page .atx-ticket {
    min-width: 0;
    padding: 14px 17px;
    background: #fffaf0;
    color: #583f16;
}
.atx-page .atx-ticket button:not([hidden]) { min-height: 44px; }
.atx-page .atx-ticket button:hover { background: #f7dc8c; }
.atx-page .atx-explore { background: #eff5f8; }
.atx-page .atx-content :is(a, button):focus-visible { outline: 3px solid #275e75; outline-offset: 3px; }

/* TradingView uses a cool blue palette and a framed chart. */
.tv-page {
    --tv-panel: #172843;
    --tv-border: #cbd9ed;
    --tv-action: #245477;
}
.tv-page .tv-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    gap: clamp(20px, 3.5vw, 42px);
    margin: 0;
    padding: clamp(23px, 4.2vw, 50px);
    border: 1px solid #365070;
    border-radius: 22px;
    background: radial-gradient(ellipse at 95% 6%, #344f70 0%, var(--tv-panel) 68%);
    box-shadow: 0 12px 34px #14294520;
}
.tv-page .tv-hero > div { min-width: 0; }
.tv-page .tv-hero .tv-kicker { margin: 0 0 10px; color: #c3d7f6; }
.tv-page .tv-hero h1 {
    max-width: 20ch;
    margin: 0 0 12px;
    font-size: clamp(2.05rem, 3.8vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    overflow-wrap: break-word;
}
.tv-page .tv-hero .tv-lead {
    margin: 0 0 10px;
    color: #d9e7fd;
    font-size: clamp(1.14rem, 2.1vw, 1.54rem);
    line-height: 1.28;
}
.tv-page .tv-hero .tv-actions { gap: 8px 12px; margin: 15px 0 8px; }
.tv-page .tv-actions > a { overflow-wrap: break-word; }
.tv-page .tv-actions > a:not(.tv-button) {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #a7bddc;
    border-radius: 8px;
    text-decoration: none;
}
.tv-page .tv-hero a.tv-button {
    min-height: 48px;
    gap: 10px;
    padding: 9px 14px;
    background: #c2d8ff;
    color: #142947 !important;
}
.tv-page .tv-hero a.tv-button:hover { background: #e2eeff; }
.tv-page .tv-actions > a:not(.tv-button):hover { background: #304968; }
.tv-page .tv-hero .tv-fine { margin-bottom: 0; }
.tv-page .tv-hero a:focus-visible { outline: 3px solid #e1edff; outline-offset: 3px; }
.tv-page .tv-hero figure {
    min-width: 0;
    padding: clamp(7px, 1.25vw, 13px);
    border: 1px solid #6580a4;
    border-radius: 13px;
    background: #102035;
    transform: none;
}
.tv-page .tv-hero figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    border: 0;
    border-radius: 7px;
    object-fit: contain;
    box-shadow: none;
}
.tv-page .tv-hero figure figcaption { margin-top: 7px; color: #cfdbef; line-height: 1.4; }
.tv-page .tv-index {
    gap: 6px 10px;
    margin-top: 15px;
    padding: 8px;
    border: 1px solid var(--tv-border);
    border-radius: 12px;
    background: #edf3fc;
}
.tv-page .tv-index a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 6px;
    color: #24476a;
    font-weight: 690;
}
.tv-page .tv-index a:hover { background: #dce8fa; }
.tv-page .tv-content [id] { scroll-margin-top: 14px; }
.tv-page .tv-content .tv-section { margin: var(--platform-space) 0; }
.tv-page .tv-content .tv-section h2 { margin-bottom: 16px; letter-spacing: -.035em; }
.tv-page .tv-content .tv-section p { overflow-wrap: break-word; }
.tv-page .tv-plans { gap: 12px; }
.tv-page .tv-plan,
.tv-page .tv-benefits > div {
    min-width: 0;
    border-color: var(--tv-border);
    border-radius: 12px;
}
.tv-page .tv-plan {
    display: flex;
    grid-column: auto;
    flex-direction: column;
    padding: clamp(13px, 1.7vw, 22px);
    border-top: 3px solid #799cc9;
    box-shadow: 0 3px 12px #1d3d6410;
}
.tv-page .tv-plan .tv-kicker { color: #385b81; }
.tv-page .tv-plan h3 { margin: 8px 0 13px; overflow-wrap: break-word; }
.tv-page .tv-plan p { margin-bottom: 8px; line-height: 1.55; }
.tv-page .tv-plan > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: auto;
    color: var(--tv-action);
    font-weight: 700;
}
.tv-page .tv-plan > a:hover { color: #173351; }
.tv-page .tv-number small { margin: 5px 0 14px; }
.tv-page .tv-feature {
    padding: clamp(16px, 3vw, 34px);
    border: 1px solid var(--tv-border);
    border-radius: 14px;
    background: #edf3fc;
}
.tv-page .tv-feature figure { order: 0; min-width: 0; }
.tv-page .tv-choice { border: 1px solid var(--tv-border); background: #edf3fc; }
.tv-page .tv-offer {
    gap: 23px;
    margin: var(--platform-space) 0;
    padding: clamp(19px, 3.8vw, 44px);
    align-items: center;
    border: 1px solid #c2d4ec;
    border-radius: 16px;
    background: linear-gradient(125deg, #f0f5fd, #e0eaf9);
}
.tv-page .tv-offer h2 {
    margin: 9px 0 12px;
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    line-height: 1.12;
}
.tv-page .tv-offer-amount { color: #24476a; transform: none; }
.tv-page .tv-offer-amount > strong { font-size: clamp(3.25rem, 7vw, 5.6rem); }
.tv-page .tv-offer a.tv-button,
.tv-page .tv-last a.tv-button { background: var(--tv-action); }
.tv-page .tv-last { padding: clamp(19px, 3.6vw, 44px); background: #e5eefb; }
.tv-page :is(.tv-content, .tv-method) :is(a, summary):focus-visible {
    outline: 3px solid #36609a;
    outline-offset: 3px;
}

@media (max-width: 1000px) {
    .tv-page .tv-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .tv-page .tv-hero { grid-template-columns: minmax(0, 1fr); }
    .atx-page .atx-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding: 0;
        border-radius: 16px;
    }
    .atx-page .atx-hero::after { display: none; }
    .atx-page .atx-intro { padding: clamp(16px, 5vw, 29px); }
    .atx-page .atx-hero-image {
        position: relative;
        inset: auto;
        z-index: auto;
        order: 1;
        aspect-ratio: 2.35;
        border-top: 1px solid #365362;
    }
    .atx-page .atx-hero h1 { font-size: clamp(2rem, 10vw, 3.1rem); }
}
@media (max-width: 740px) {
    .atx-page .atx-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
}
@media (max-width: 640px) {
    .tv-page .tv-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tv-page .tv-offer { grid-template-columns: minmax(0, 1fr); }
    .tv-page .tv-offer-amount { display: none; }
}
@media (max-width: 480px) {
    .atx-page .atx-actions > a,
    .tv-page .tv-hero .tv-actions > a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .tv-page .tv-hero { padding: 17px; border-radius: 16px; }
    .tv-page .tv-hero h1 { font-size: clamp(1.65rem, 7.8vw, 2.2rem); }
    .tv-page .tv-plans { grid-template-columns: minmax(0, 1fr); }
    .tv-page .tv-plan .tv-kicker { min-height: 0; }
}

/* Contact, policies and error pages. */
.ix-page {
    --ix-border: #cfded8;
    --ix-radius: 18px;
    padding-block: clamp(24px, 4vw, 54px) clamp(10px, 2vw, 28px);
}

.ix-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid #315b53;
    border-radius: var(--ix-radius);
    background: #102b2e radial-gradient(ellipse at 94% 15%, #2b564d, transparent 67%);
    color: #fff;
}

.ix-banner::after {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 50%;
    background: repeating-radial-gradient(circle at 101% 86%, transparent 0 39px, #9fd0b324 40px 41px);
    mask-image: linear-gradient(to right, transparent, #000 45%);
    content: '';
    pointer-events: none;
}

.ix-banner h1 {
    margin: 0;
    font-size: clamp(2.05rem, 4.65vw, 3.7rem);
    font-weight: 750;
    line-height: 1.07;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

.ix-banner p {
    max-width: 56ch;
    margin: 16px 0 24px;
    color: #e0ebe6;
}

.ix-banner .actions { gap: 12px 20px; }
.ix-banner .button { border-color: #ddf2a6; background: #ddf2a6; color: #102b2e; }
.ix-banner .button:hover { background: #eff8cb; }
.ix-banner .ix-banner-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #e6f3ed; }
.ix-banner a:focus-visible { outline-color: #e9f6c1; }

.ix-page-layout {
    width: min(100%, 850px);
    margin: clamp(16px, 3vw, 36px) auto 0;
}

.ix-page .ix-paper {
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: clamp(16px, 4vw, 48px);
    border: 1px solid var(--ix-border);
    border-radius: var(--ix-radius);
    background: #fff;
    font-size: clamp(.98rem, 1.35vw, 1.11rem);
    line-height: 1.68;
}

.ix-paper > :first-child { margin-top: 0; }
.ix-paper > :last-child { margin-bottom: 0; }
.ix-paper > h2 {
    margin: 28px 0 12px;
    padding-top: 18px;
    border-top: 1px solid #e2ebe7;
    font-size: clamp(1.32rem, 2.1vw, 1.8rem);
}
.ix-paper > h3 { margin-block: 22px 10px; font-size: clamp(1.13rem, 1.6vw, 1.38rem); }
.ix-paper > p { margin-bottom: 17px; }
.ix-paper > .int-lead { font-size: clamp(1.04rem, 1.55vw, 1.28rem); line-height: 1.6; }
.ix-paper :is(.int-policy-table, .wp-block-table) { max-width: 100%; overflow-x: auto; }

.ix-page-index[hidden] { display: none; }
.ix-page-index {
    align-self: start;
    margin: 0 0 12px;
    padding: 0 15px;
    border: 1px solid var(--ix-border);
    border-radius: 12px;
    background: #eaf2ee;
    font-size: .91rem;
}
.ix-page-index summary {
    display: list-item;
    min-height: 44px;
    padding: 10px 0;
    color: #154e44;
}
.ix-page-index ul { margin: 0; padding: 0 0 8px; list-style: none; }
.ix-page-index a { display: block; padding: 8px 0; color: #165d4f; font-weight: 600; }

.ix-paper .int-contact { margin: 20px 0; }
.ix-paper .int-contact label { margin-bottom: 5px; color: #193e37; }
.ix-paper .int-contact :is(input:not([type=checkbox]):not([type=hidden]), select, textarea) {
    min-height: 48px;
    border-color: #a9c0b6;
    background: #f9fbfa;
}
.ix-paper .int-contact textarea { min-height: 132px; resize: vertical; }
.ix-paper .int-contact :is(input, select, textarea):focus-visible {
    outline: 3px solid #166655;
    outline-offset: 2px;
}
.ix-paper .int-contact > p,
.ix-paper .int-form-grid p { margin: 0 0 17px; }
.ix-paper .int-check label { font-size: .91rem; line-height: 1.55; }
.ix-paper .int-privacy-note { border: 1px solid #d9e8e0; margin: 15px 0; }
.ix-paper .int-contact .button { min-height: 48px; padding-inline: 22px; }

.ix-paper .int-identity,
.ix-paper .int-section-nav {
    border-color: var(--ix-border);
    border-radius: 12px;
    background: #edf4f0;
}
.ix-paper > .int-cookie-open { min-height: 46px; margin-block: 0 12px; }
.ix-not-found .ix-banner { margin-inline: auto; }

.int-section-page.im-criteria .im-method-index {
    border-color: #cfded8;
    border-radius: 12px;
    background: #eaf2ee;
}
.int-section-page.im-criteria .im-method-index a {
    display: flex;
    min-height: 40px;
    align-items: center;
    padding: 6px 0;
}
.int-section-page.im-criteria .im-method-content {
    min-width: 0;
    border-color: #cfded8;
}

@media (min-width: 901px) {
    .ix-with-index {
        display: grid;
        width: min(100%, 1060px);
        grid-template-columns: minmax(175px, .75fr) minmax(0, 3fr);
        align-items: start;
        gap: clamp(16px, 3vw, 36px);
    }
    .ix-page-index { position: sticky; top: calc(var(--sticky-header-height, 80px) + 18px); }
}

@media (max-width: 600px) {
    .ix-page { padding-top: 18px; }
    .ix-banner { padding: 23px 17px; }
    .ix-banner::after { left: 32%; }
    .ix-page .ix-paper { padding: 16px; }
    .ix-paper .int-contact .button { width: 100%; }
}
