/* Page 92: 900 px desktop composition using the client's original artwork.
   Packshots and milk are separate transparent images. Editorial copy remains HTML. */
.trial-page {
    --trial-unit: min(calc(100vw / 900), 1px);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #edf4fa;
    color: #595959;
    font-family: Arial, 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif !important;
}
.trial-content {
    display: flow-root;
    width: 100%; max-width: 900px; margin: 0 auto;
    background: #edf4fa;
}
.trial-page *, .trial-page *::before, .trial-page *::after { box-sizing: border-box; }
.trial-page h1, .trial-page h2 {
    margin: 0;
    font-family: Arial, 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif !important;
}
.trial-page p { margin: 0; }
.trial-page img { display: block; height: auto; max-height: none; }
.trial-page a:focus-visible { outline: 3px solid #275c87; outline-offset: 5px; }
.trial-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Use the supplied high-resolution banner at the prototype's desktop ratio. */
.trial-hero { aspect-ratio: 900 / 298; overflow: hidden; }
.trial-hero > img { width: 100%; height: 100%; object-fit: fill; }

/* The source heading ornaments are reused independently from live headings. */
.trial-heading { margin: calc(20 * var(--trial-unit)) auto calc(22 * var(--trial-unit)); text-align: center; }
.trial-heading-top { width: 44.2222%; margin: 0 auto; }
.trial-page .trial-heading h1 {
    margin: calc(20 * var(--trial-unit)) 0 calc(16 * var(--trial-unit));
    color: #387baa; font-size: calc(36 * var(--trial-unit)); font-weight: 400; line-height: 1.2;
}
.trial-heading-bottom { width: 37%; margin: 0 auto; }
.trial-intro-copy {
    padding: 0 6.666667%;
    font-size: calc(20 * var(--trial-unit)); line-height: 1.4;
}
.trial-page .trial-intro h2 {
    color: #252e68; font-size: calc(24 * var(--trial-unit));
    line-height: 1.4; font-weight: 700; text-align: center;
}
.trial-page .trial-intro .trial-offer-title { margin-top: calc(32 * var(--trial-unit)); }

/* Client artwork B includes the lettering, gradient and shadow. Crop only its
   transparent canvas so its visible bounds determine the layout and hit area. */
.trial-page .trial-apply {
    position: relative; display: block; overflow: hidden;
    width: 82.888889%; aspect-ratio: 5590 / 1796;
    margin: calc(41 * var(--trial-unit)) auto 0;
    text-decoration: none;
}
.trial-page .trial-apply > img {
    position: absolute; width: 107.334526%; max-width: none;
    left: -3.649374%; top: -47.048998%;
}
.trial-page .trial-apply:hover { filter: brightness(1.025); }

/* Alternating product rows retain the actual 900 px reference coordinates.
   The row can grow when text wraps; only decorative milk stretches with it. */
.trial-products {
    position: relative; isolation: isolate; overflow: hidden;
    margin-top: calc(32 * var(--trial-unit));
}
.trial-page .trial-milk-background {
    /* Show the entire I artwork once across all three desktop product rows. */
    position: absolute; z-index: -1; inset: 0; pointer-events: none;
    width: 100%; max-width: none; height: 100%;
    object-fit: fill;
}
.trial-milk-mobile { display: none; }
.trial-product {
    position: relative; isolation: isolate;
    display: grid; grid-template-columns: 38.461538% 61.538462%;
    grid-template-rows: calc(100 * var(--trial-unit)) auto;
    gap: calc(24 * var(--trial-unit)) 0;
    align-content: start;
    min-height: calc(510 * var(--trial-unit));
    padding: calc(40 * var(--trial-unit)) 6.666667% 0;
}
.trial-product-2 { min-height: calc(500 * var(--trial-unit)); }
.trial-product-3 { min-height: calc(580 * var(--trial-unit)); }
.trial-product-heading {
    position: relative; z-index: 2;
    grid-column: 2; grid-row: 1;
    display: flex; align-items: center; gap: calc(35 * var(--trial-unit));
    min-width: 0;
}
/* F/G/H have different transparent margins. Keep each visible crop proportional
   and let flex alignment center the artwork against the two-line heading. */
.trial-stage-art {
    position: relative; display: block; overflow: hidden;
    flex: 0 0 calc(143 * var(--trial-unit)); width: calc(143 * var(--trial-unit));
    aspect-ratio: 409 / 305;
}
.trial-page .trial-stage-art > img {
    position: absolute; width: 113.202934%; max-width: none;
    left: -7.823961%; top: -18.032787%;
}
.trial-stage-art-2 { aspect-ratio: 418 / 265; }
.trial-page .trial-stage-art-2 > img {
    width: 112.200957%; left: -6.937799%; top: -18.113208%;
}
.trial-stage-art-3 { aspect-ratio: 378 / 248; }
.trial-page .trial-stage-art-3 > img {
    width: 113.227513%; left: -7.936508%; top: -18.145161%;
}
.trial-page .trial-product h2 { color: #000; font-size: calc(32 * var(--trial-unit)); line-height: 1.4; font-weight: 700; white-space: nowrap; }
.trial-packshot {
    position: absolute; z-index: 1; top: calc(164 * var(--trial-unit)); left: 2.666667%;
    width: 42%; height: auto; pointer-events: none;
}
.trial-product-copy { position: relative; z-index: 2; grid-column: 2; grid-row: 2; min-width: 0; font-size: calc(24 * var(--trial-unit)); line-height: 1.4; }
.trial-product-copy ul { margin: 0; padding-left: 1.75em; }
.trial-product-copy li { padding-left: .05em; }
.trial-product-copy strong { font-weight: 700; }
.trial-product-copy .trial-product-nutrition {
    margin-top: calc(28 * var(--trial-unit));
    font-size: calc(20 * var(--trial-unit)); line-height: 1.35;
}
.trial-page .trial-product-more {
    display: inline-block; margin-top: calc(16 * var(--trial-unit));
    color: #595959; text-decoration: underline; text-underline-offset: .12em;
    font-size: calc(20 * var(--trial-unit)); line-height: 1.35;
}
.trial-page .trial-product-more:hover { color: #2f719c; }
.trial-product-2 .trial-product-heading {
    grid-column: 1 / -1; width: 57.692308%; margin-left: calc(20 * var(--trial-unit));
    flex-direction: row-reverse; justify-content: space-between; gap: 0;
}
.trial-product-2 .trial-product-copy { grid-column: 1 / -1; width: 61.538462%; }
.trial-product-2 .trial-packshot { top: calc(117 * var(--trial-unit)); left: 57.333333%; width: 41.666667%; }
.trial-product-2 .trial-product-more { display: block; width: fit-content; margin-left: auto; }
.trial-product-3 .trial-packshot { top: calc(144 * var(--trial-unit)); left: 2%; width: 40.444444%; }

/* Evidence is native copy, without the old placeholder box. */
.trial-terms { padding: calc(32 * var(--trial-unit)) 8.333333% calc(12 * var(--trial-unit)); font-size: calc(14 * var(--trial-unit)); line-height: 1.45; }
.trial-terms p { overflow-wrap: anywhere; }
.trial-terms .trial-terms-condition { margin-top: calc(24 * var(--trial-unit)); }
.trial-page .trial-terms a { color: inherit; text-decoration: none; }
.trial-page .trial-terms a:hover { text-decoration: underline; }
/* Older shared layouts always render the site footer, ignoring hideFooter. */
.page-trial-92 > #footer { display: none; }
.page-trial-92 #easychat-floating-button,
.page-trial-92 #easychat-close-btn,
.page-trial-92 #easychat-unread-badge,
.page-trial-92 #easychat-chat-dialog { display: none !important; }

/* Navigation and body spacing use the shared theme, as on page 82. */
@media (min-width: 992px) {
    /* The banner follows the viewport; all content below it stays at 900 px. */
    .trial-page { max-width: none; background: transparent; }
}
/* Readable small-screen layout: alternating pack/heading, then full-width copy. */
@media (max-width: 767px) {
    .trial-heading { margin: 22px auto; }
    .trial-heading-top { width: min(65%, 300px); }
    .trial-page .trial-heading h1 { font-size: 28px; margin: 14px 0 12px; }
    .trial-heading-bottom { width: 50%; }
    .trial-intro-copy { padding: 0 20px; font-size: 14px; line-height: 1.55; }
    .trial-page .trial-intro h2 { font-size: 16px; }
    .trial-page .trial-intro .trial-offer-title { margin-top: 24px; }
    .trial-page .trial-apply { width: calc(100% - 40px); margin-top: 44px; }
    .trial-products { margin-top: 44px; }
    .trial-product, .trial-product-2, .trial-product-3 {
        min-height: 0; padding: 12px 20px 10px;
        grid-template-columns: 50% 50%; grid-template-rows: auto auto;
        gap: 22px 0;
    }
    .trial-page .trial-milk-background { display: none; }
    .trial-milk-mobile {
        position: absolute; z-index: -1; inset: 0; display: grid;
        grid-template-rows: repeat(2, minmax(0, 1fr)); pointer-events: none;
    }
    .trial-page .trial-milk-mobile > img { width: 100%; height: 100%; object-fit: fill; }
    .trial-product-heading {
        grid-column: 2; grid-row: 1; align-self: center;
        flex-direction: column; gap: 8px; align-items: flex-start; padding-left: 0;
    }
    .trial-stage-art { flex-basis: auto; width: 92px; }
    .trial-page .trial-product h2 { font-size: clamp(17px, 4.5vw, 24px); line-height: 1.35; }
    .trial-packshot, .trial-product-2 .trial-packshot, .trial-product-3 .trial-packshot {
        position: relative; grid-column: 1; grid-row: 1;
        top: auto; left: auto; width: calc(100% + 20px); max-width: none;
        margin-left: -10px; align-self: center;
    }
    .trial-product-copy, .trial-product-2 .trial-product-copy {
        grid-column: 1 / -1; grid-row: 2; width: 100%; font-size: 16px; line-height: 1.5;
    }
    .trial-product-copy .trial-product-nutrition { margin-top: 18px; font-size: 14px; line-height: 1.5; }
    .trial-page .trial-product-more { margin-top: 10px; font-size: 15px; min-height: 32px; padding-top: 5px; }
    .trial-product-2 .trial-product-heading {
        grid-column: 1; width: auto; margin-left: 0; padding-left: 0; padding-right: 12px;
        flex-direction: column; justify-content: center; align-items: flex-end;
        text-align: right; gap: 8px;
    }
    .trial-product-2 .trial-packshot { grid-column: 2; }
    /* Raise only the stage 2 copy; retain the following product's position. */
    .trial-product-2 .trial-product-copy { top: -12px; }
    .trial-product-2 .trial-product-more { margin-left: 0; }
    .trial-terms { padding: 24px 20px 28px; font-size: 12px; line-height: 1.55; }
    .trial-terms .trial-terms-condition { margin-top: 20px; }
}
