/* Scoped to the home views that opt in. Typography and page furniture come from each template. */
:where(html:has(meta[name="homepage-design"])) {
    --home-ink: #20242a;
    --home-accent: #365267;
    --home-paper: #fff;
    --home-rule: #d0d6d9;
}

:where(html:has(meta[name="homepage-design"])) :is(a, button, input, select):focus-visible {
    outline: 2px solid var(--home-accent);
    outline-offset: 3px;
}

.home-feature {
    --feature-inset: clamp(1.25rem, 5vw, 5rem);
    --feature-type: clamp(1.6rem, 4vw, 3.6rem);
    --feature-height: clamp(24rem, 33vw, 35rem);
    --feature-copy-width: 58rem;
    --feature-overlay: linear-gradient(0deg, #10131be8, #1419230a 80%);
    box-sizing: border-box;
    display: block;
    position: relative;
    min-inline-size: 0;
    max-inline-size: 100%;
    margin: 0;
    isolation: isolate;
    color: var(--home-ink);
    background: var(--home-paper);
    text-align: start;
}

.home-feature *, .home-feature *::before, .home-feature *::after { box-sizing: border-box; }

.home-feature-track {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.home-feature-track::-webkit-scrollbar, .home-feature-pages::-webkit-scrollbar { display: none; }

.home-feature-panel {
    flex: 0 0 100%;
    min-inline-size: 0;
    scroll-snap-align: start;
    position: relative;
    display: grid;
    grid-template: minmax(0, auto) / minmax(0, 1fr);
    align-content: stretch;
    margin: 0;
    padding: 0;
    min-block-size: var(--feature-height);
    background: var(--home-paper);
}

.home-feature-media {
    display: block;
    min-inline-size: 0;
    min-block-size: 0;
    position: relative;
    grid-area: 1 / 1;
}

.home-feature-media img {
    display: block;
    border: 0;
    border-radius: inherit;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--feature-crop, center);
    margin: 0;
}

.home-feature-panel > .home-feature-media img {
    position: absolute;
    inset: 0;
}

.home-feature-copy {
    min-inline-size: 0;
    max-inline-size: var(--feature-copy-width);
    overflow-wrap: anywhere;
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
    align-self: end;
    padding: var(--feature-inset);
}

.home-feature-panel:has(.home-feature-media) > .home-feature-copy { color: var(--feature-on-photo, #fff); }
.home-feature-panel:has(.home-feature-copy) > .home-feature-media::after {
    content: "";
    background: var(--feature-overlay);
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
}

.home-feature-title {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: var(--feature-type);
    font-weight: var(--feature-weight, 700);
    line-height: 1.14;
    letter-spacing: var(--feature-letterspace, -.018em);
    text-transform: var(--feature-case, none);
}

.home-feature-title a, .home-feature-summary a { color: inherit; text-decoration: none; }
.home-feature-title a:hover { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: .055em; }
.home-feature-summary {
    margin: .8em 0 0;
    max-inline-size: 54ch;
    font-size: clamp(.98rem, 1.25vw, 1.14rem);
    line-height: 1.62;
    color: inherit;
}
.home-feature-action {
    color: inherit;
    display: inline-block;
    margin-block-start: 1.1rem;
    padding: .42em 0;
    border-block-end: 2px solid var(--home-accent);
    font-family: inherit;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
}
.home-feature-category, .home-feature-date {
    color: var(--home-accent);
    display: inline-block;
    margin: 0 .5rem .65rem 0;
    font-weight: 700;
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.home-feature-controls {
    display: flex;
    align-items: center;
    justify-content: var(--controls-align, center);
    gap: .35rem;
    padding: .45rem var(--controls-inset, 1rem);
    position: relative;
    background: var(--controls-paper, var(--home-paper));
    color: var(--controls-ink, var(--home-ink));
    border-block-start: 1px solid var(--controls-rule, var(--home-rule));
}
.home-feature-controls[hidden] { display: none !important; }
.home-feature-pages {
    display: flex;
    align-items: center;
    min-inline-size: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.home-feature-arrow, .home-feature-page {
    display: inline-grid;
    place-items: center;
    flex: none;
    block-size: 2.75rem;
    min-inline-size: 2.75rem;
    margin: 0;
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 0;
    font: 600 .8rem/1 system-ui, sans-serif;
    color: inherit;
    background: transparent;
    cursor: pointer;
    letter-spacing: 0;
    text-shadow: none;
    box-shadow: none;
}
.home-feature-arrow::before {
    content: "";
    inline-size: .54rem;
    block-size: .54rem;
    border-top: 2px solid;
    border-right: 2px solid;
    transform: rotate(45deg);
}
.home-feature-arrow[data-home-prev]::before { transform: rotate(-135deg); }
.home-feature-arrow:dir(rtl)::before { transform: rotate(-135deg); }
.home-feature-arrow[data-home-prev]:dir(rtl)::before { transform: rotate(45deg); }
.home-feature-arrow[aria-disabled="true"] { opacity: .42; cursor: default; }
.home-feature-arrow:not([aria-disabled="true"]):hover, .home-feature-page:hover {
    background: color-mix(in srgb, currentColor 10%, transparent);
}
.home-feature-page[aria-current="true"] { color: var(--controls-active, var(--home-accent)); }
.home-feature-page:focus-visible, .home-feature-arrow:focus-visible,
.home-feature-media:focus-visible, .home-feature-title a:focus-visible, .home-feature-action:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}
.home-feature-count { min-inline-size: 4.5rem; text-align: center; font: 600 .86rem/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.home-feature-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.home-controls--steps .home-feature-page::after, .home-controls--dots .home-feature-page::after {
    content: "";
    inline-size: 1.25rem;
    block-size: 2px;
    background: currentColor;
    opacity: .45;
}
.home-controls--dots .home-feature-page::after { inline-size: .42rem; block-size: .42rem; border-radius: 50%; }
.home-controls--steps [aria-current="true"]::after, .home-controls--dots [aria-current="true"]::after { opacity: 1; }
:is(.home-controls--numbers, .home-controls--dates) .home-feature-page[aria-current="true"] {
    box-shadow: inset 0 -2px var(--controls-active, var(--home-accent));
}
.home-controls--dates .home-feature-page { min-inline-size: 3.6rem; }
.home-controls--thumbs .home-feature-page { padding: .2rem; inline-size: clamp(3.05rem, 7vw, 5.4rem); block-size: 3.5rem; }
.home-controls--thumbs .home-feature-page img { width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.home-controls--thumbs .home-feature-page[aria-current="true"] { outline: 2px solid currentColor; outline-offset: -2px; }
.home-controls--thumbs .home-feature-page[aria-current="true"] img { opacity: 1; }

/* Split and captioned formats keep the original reading order and image placement. */
:is(.home-feature--orchard, .home-feature--atelier, .home-feature--workshop, .home-feature--redline,
    .home-feature--cloud, .home-feature--ink-banner, .home-feature--folio, .home-feature--exhibition,
    .home-feature--dispatch, .home-feature--digest, .home-feature--chronicle) {
    --feature-on-photo: var(--home-ink);
    --feature-overlay: transparent;
}

:is(.home-feature--orchard, .home-feature--atelier, .home-feature--workshop, .home-feature--redline,
    .home-feature--cloud, .home-feature--digest) .home-feature-panel {
    grid-template: minmax(0, auto) / minmax(0, var(--feature-split, 52fr)) minmax(0, 48fr);
}
:is(.home-feature--orchard, .home-feature--atelier, .home-feature--redline, .home-feature--cloud) .home-feature-media { grid-column: 2; }
:is(.home-feature--workshop, .home-feature--digest) .home-feature-copy { grid-column: 2; }
:is(.home-feature--orchard, .home-feature--atelier, .home-feature--workshop, .home-feature--redline,
    .home-feature--cloud, .home-feature--digest) .home-feature-copy { align-self: center; }

:is(.home-feature--ink-banner, .home-feature--folio, .home-feature--exhibition,
    .home-feature--dispatch, .home-feature--chronicle) .home-feature-panel {
    grid-template: minmax(var(--feature-height), auto) auto / minmax(0, 1fr);
    min-block-size: 0;
}
:is(.home-feature--ink-banner, .home-feature--folio, .home-feature--exhibition,
    .home-feature--dispatch, .home-feature--chronicle) .home-feature-copy {
    grid-row: 2;
    align-self: stretch;
    max-inline-size: none;
}

/* Only the documented slide controls and native media are repositioned below. */
.home-feature-arrow, .home-feature-page { min-block-size: 44px; min-inline-size: 44px; }

.home-feature--ink-banner {
    --home-accent: #184ba7; --home-ink: #192c44; --home-rule: #e1e8ee;
    --feature-height: clamp(150px, 23vw, 300px); --feature-type: clamp(18px, 2.65vw, 31px);
    --controls-align: flex-start;
    overflow: hidden;
    border-radius: 5px;
}
.home-feature--ink-banner .home-feature-copy { padding: 1rem 1.3rem .8rem; }
.home-feature--ink-banner .home-feature-controls { padding-block: 0; }

.home-feature--folio {
    --home-accent: #d15c33; --home-ink: #40342d; --home-paper: #f6f3ed;
    --home-rule: #ded6c9; --feature-height: clamp(165px, 25vw, 285px);
    --feature-type: clamp(19px, 2.6vw, 29px); --controls-align: flex-end;
    border-block: 1px solid var(--home-rule);
}
.home-feature--folio .home-feature-copy { border-inline-start: 5px solid var(--home-accent); padding: .85rem 1.15rem; }
.home-feature--folio .home-feature-controls { padding-block: 0; }

.home-feature--orchard {
    --home-accent: #57783a; --home-ink: #322b20; --home-paper: #f7f1e1; --home-rule: #ddd4bc;
    --feature-height: clamp(345px, 43vw, 650px); --feature-split: 48fr;
    --feature-type: clamp(28px, 4.1vw, 66px); --feature-weight: 650;
    --controls-align: flex-start; --controls-inset: var(--feature-inset);
}
.home-feature--orchard .home-feature-media { border-start-start-radius: 28% 55%; overflow: hidden; }
.home-feature--orchard .home-feature-action { border: 0; background: var(--home-accent); color: #fff; border-radius: 2em; padding: .8em 1.35em; }

.home-feature--studio, .home-feature--loft {
    --home-accent: #c3946a; --home-paper: #211e1c; --home-rule: #4b3d35; --home-ink: #fff6e9;
    --feature-height: clamp(350px, 43vw, 645px); --feature-type: clamp(29px, 4.4vw, 69px);
    --feature-overlay: linear-gradient(0deg, #211b17cf, #211b1740 85%);
    --feature-weight: 600;
}
:is(.home-feature--studio, .home-feature--loft) .home-feature-copy {
    justify-self: center; align-self: center; text-align: center; padding-block: 2.5rem;
}
:is(.home-feature--studio, .home-feature--loft) .home-feature-action { border-block-end-color: #eac6a3; }
:is(.home-feature--studio, .home-feature--loft) .home-feature-controls { --controls-active: #f3c697; }

.home-feature--workshop {
    --home-accent: #2bc1a1; --home-ink: #f1f4f3; --home-paper: #262a2d; --home-rule: #414b4e;
    --feature-height: clamp(320px, 39vw, 560px); --feature-split: 49fr;
    --feature-type: clamp(24px, 3.3vw, 50px); --controls-align: flex-end;
    border-block-start: 3px solid var(--home-accent);
}
.home-feature--workshop .home-feature-media { margin: clamp(12px, 2vw, 25px); }
.home-feature--workshop .home-feature-copy { padding: clamp(16px, 3vw, 40px); }

.home-feature--marquee {
    --home-accent: #f3c067; --home-ink: #fff; --home-paper: #24170d73; --home-rule: #fff4; --controls-active: #ffcd79;
    --feature-height: clamp(140px, 20vw, 275px); --feature-type: clamp(25px, 4vw, 58px);
    border-block: 1px solid #ffedcf5c;
}
.home-feature--marquee .home-feature-copy { align-self: center; justify-self: center; text-align: center; }

.home-feature--photo-note {
    --home-accent: #267aa3; --home-paper: #e9f0f3; --home-rule: #bbcdd6;
    --feature-height: clamp(215px, 36vw, 410px); --feature-type: clamp(20px, 3vw, 39px);
    --feature-inset: clamp(14px, 3.5vw, 42px); --controls-align: flex-end;
    border: 1px solid #c8d5da; padding: 6px;
}
.home-feature--photo-note .home-feature-copy { margin: 0 var(--feature-inset) var(--feature-inset); padding: .8rem 1.25rem; background: #162937e8; }

.home-feature--directory {
    --home-accent: #058a7e; --home-ink: #143c37;
    --feature-height: clamp(350px, 36vw, 580px); --feature-type: clamp(26px, 3.8vw, 59px);
    --feature-overlay: linear-gradient(90deg, #132e3928, #102e32ec 96%);
    --controls-align: flex-end; --controls-inset: var(--feature-inset);
}
.home-feature--directory .home-feature-copy { width: min(55%, 53rem); justify-self: end; align-self: center; border-inline-end: 4px solid #51c7b6; }

.home-feature--ribbon {
    --home-accent: #c45025; --home-rule: #e5dacf; --feature-type: clamp(21px, 3.35vw, 54px);
    --feature-height: clamp(225px, 33vw, 505px); --feature-overlay: linear-gradient(0deg, #1920259c, transparent 58%);
    --controls-align: flex-start;
}
.home-feature--ribbon .home-feature-copy { background: #24282a; padding: .85rem 1.3rem; margin: 0 14px 14px 0; border-inline-start: 5px solid #f98650; }

.home-feature--poster {
    --home-accent: #fff2ce; --home-ink: #fff; --home-paper: #0815229e; --home-rule: #ffffff4b;
    --feature-height: clamp(250px, 34vw, 510px); --feature-type: clamp(26px, 4vw, 64px);
    --feature-weight: 650; --controls-align: flex-start; --controls-inset: var(--feature-inset);
}
.home-feature--poster .home-feature-copy { align-self: center; border-inline-start: 3px solid #ffffff7a; margin-inline-start: var(--feature-inset); padding-inline-start: clamp(12px, 2vw, 30px); }

.home-feature--cinema {
    --home-accent: #e3854d; --home-paper: #171819; --home-ink: #fff;
    --home-rule: #383838; --feature-height: clamp(220px, 37vw, 480px);
    --feature-type: clamp(24px, 3.55vw, 46px); --feature-letterspace: 0;
}
.home-feature--cinema .home-feature-copy { max-inline-size: none; padding: 1.2rem 5%; width: 100%; background: #171819cf; text-align: center; }

:is(.home-feature--frame, .home-feature--mount, .home-feature--panorama, .home-feature--album, .home-feature--screen) .home-feature-media:focus-visible { z-index: 2; outline-color: #fff; }
.home-feature--frame { --home-accent: #327aa5; --feature-height: clamp(145px, 27vw, 320px); padding: 7px; border: 1px solid #d1dce2; border-radius: 4px; }
.home-feature--frame .home-feature-controls { border: 0; padding: 0; }
.home-feature--mount { --home-accent: #745235; --home-paper: #f1e9dc; --home-rule: #d8c6ac; --feature-height: clamp(180px, 32vw, 385px); padding: 8px; }
.home-feature--mount .home-feature-media { box-shadow: inset 0 0 0 1px #2115; }
.home-feature--mount .home-feature-controls { --controls-align: flex-start; }
.home-feature--panorama { --home-accent: #2d7189; --home-paper: #f3f5f4; --feature-height: clamp(160px, 23vw, 420px); --feature-crop: center 44%; --controls-align: flex-end; --controls-inset: var(--feature-inset); }
.home-feature--panorama .home-feature-controls { padding-block: 0; }
.home-feature--album { --home-accent: #995233; --home-paper: #f4f1ed; --feature-height: clamp(200px, 40vw, 450px); border-block: 4px double #c8b9a5; }
.home-feature--album .home-feature-controls { --controls-align: flex-end; }
.home-feature--screen { --home-accent: #b8e2ff; --home-ink: #f4f9ff; --home-paper: #252d35; --home-rule: #414b57; --feature-height: clamp(190px, 36vw, 440px); padding: 6px; border-radius: 4px; }

.home-feature--brief {
    --home-accent: #dec573; --home-paper: #242b30; --home-ink: #fff;
    --home-rule: #3d484e; --feature-height: clamp(320px, 34vw, 460px);
    --feature-inset: clamp(16px, 3.25vw, 40px); --feature-type: clamp(25px, 3.25vw, 50px);
    --controls-align: flex-start; --controls-inset: var(--feature-inset);
}
.home-feature--brief .home-feature-copy { background: #1d262df2; margin: var(--feature-inset); border-inline-start: 4px solid #d2ad51; max-inline-size: 43rem; }

.home-feature--chronicle {
    --home-accent: #865324; --home-ink: #362e28; --home-paper: #f8f5ed; --home-rule: #d7cab3;
    --feature-height: clamp(135px, 16vw, 220px); --feature-type: clamp(17px, 2vw, 26px);
    --feature-inset: clamp(12px, 1.7vw, 24px); --controls-align: flex-start;
    padding: .8rem 0 0;
    border-block: 1px solid var(--home-rule);
}
.home-feature--chronicle .home-feature-track {
    --chronicle-card: 29%;
    gap: 1rem;
    background: linear-gradient(0deg, transparent 94%, var(--home-rule) 94% 95%, transparent 95%);
}
.home-feature--chronicle .home-feature-track::after { content: ""; flex: 0 0 calc(100% - var(--chronicle-card) - 1rem); }
.home-feature--chronicle .home-feature-panel { flex-basis: var(--chronicle-card); padding-block-start: 4px; border-block-start: 3px solid #99734b; }
.home-feature--chronicle .home-feature-copy { border: 1px solid var(--home-rule); border-block-start: 0; }
.home-feature--chronicle .home-feature-summary { font-size: .96rem; line-height: 1.45; }

.home-feature--gazette {
    --home-accent: #324f7a; --home-paper: #eef2f5; --home-rule: #cbd6e1;
    --feature-height: clamp(265px, 37vw, 550px); --feature-type: clamp(24px, 3.7vw, 54px);
    --feature-overlay: linear-gradient(90deg, #111d31b8, transparent);
    --controls-align: flex-end; --controls-inset: var(--feature-inset);
}
.home-feature--gazette .home-feature-copy { border-block-start: 3px solid #efc262; margin: 0 var(--feature-inset) 20px; padding: .8rem 0 0; max-inline-size: 37rem; }

.home-feature--terrace {
    --home-accent: #ad2749; --home-paper: #f8f4ef; --feature-height: clamp(305px, 36vw, 500px);
    --feature-type: clamp(25px, 3.6vw, 57px); --feature-overlay: linear-gradient(0deg, #2c151cda, transparent 77%);
    --controls-rule: #ecd7da; --controls-align: flex-end;
}
.home-feature--terrace .home-feature-copy { margin-inline-start: clamp(0px, 8vw, 110px); }
.home-feature--terrace .home-feature-title { border-inline-start: 3px solid #e8909f; padding-inline-start: .55em; }

.home-feature--exhibition {
    --home-accent: #b32251; --home-paper: #fff7f9; --home-rule: #f0cbd9; --home-ink: #542331;
    --feature-height: clamp(205px, 35vw, 480px); --feature-inset: clamp(13px, 3vw, 38px);
    --feature-type: clamp(23px, 3.3vw, 48px); --controls-align: flex-start; --controls-inset: var(--feature-inset);
    padding: clamp(10px, 2vw, 24px); max-inline-size: min(100%, 83rem); margin-inline: auto;
}
.home-feature--exhibition .home-feature-copy { padding-block: 1.05rem; border-inline-start: 4px solid #e6507b; }

.home-feature--foundry {
    --home-accent: #ed6b54; --home-paper: #191d23; --home-ink: #fff; --home-rule: #48413e;
    --feature-height: clamp(365px, 45vw, 635px); --feature-type: clamp(30px, 4.8vw, 78px);
    --feature-overlay: linear-gradient(0deg, #1b1416a6, #18141658);
}
.home-feature--foundry .home-feature-copy { justify-self: center; align-self: center; text-align: center; }
.home-feature--foundry .home-feature-title { padding-block: .24em .32em; border-block: 2px solid #f88165; }

.home-feature--rose {
    --home-accent: #a01e3c; --home-paper: #faeeee; --home-rule: #f0ccd1;
    --feature-height: clamp(300px, 32vw, 520px); --feature-type: clamp(25px, 4.2vw, 56px);
    --feature-overlay: linear-gradient(0deg, #2f1021bf, transparent 66%);
}
.home-feature--rose .home-feature-copy { margin: 0 auto; text-align: center; }
.home-feature--rose .home-feature-title { text-shadow: 0 2px 18px #250a146b; }
.home-feature--rose .home-feature-controls { width: min(100%, 28rem); margin-inline: auto; border-block-start: 3px solid #d13d5b; }

.home-feature--editorial {
    --home-accent: #ecb879; --home-paper: #251f1b; --home-ink: #fffaf2; --home-rule: #4b3b32;
    --feature-height: clamp(395px, 43vw, 635px); --feature-type: clamp(30px, 4.65vw, 70px);
    --feature-overlay: linear-gradient(90deg, #231b17f5, #241d1869 68%, transparent);
    --controls-align: flex-start; --controls-inset: var(--feature-inset);
}
.home-feature--editorial .home-feature-copy { align-self: center; max-inline-size: 51rem; box-shadow: inset 6px 0 #d99e58; }

.home-feature--arena {
    --home-accent: #e5bd60; --home-paper: #1a2022; --home-rule: #454139; --home-ink: #fff;
    --feature-height: clamp(350px, 40vw, 600px); --feature-type: clamp(26px, 4.8vw, 68px);
    --feature-case: uppercase; --feature-weight: 800;
    --feature-overlay: linear-gradient(90deg, #111b22ef, #11172122);
    --controls-align: flex-start;
}
.home-feature--arena .home-feature-copy { align-self: center; }
.home-feature--arena .home-feature-title { border-inline-start: .22em solid #e9a93a; padding-inline-start: .5em; }

.home-feature--atelier {
    --home-accent: #946049; --home-ink: #302924; --home-paper: #f8f0e8; --home-rule: #e0cabb;
    --feature-height: clamp(320px, 41vw, 600px); --feature-split: 47fr; --feature-type: clamp(26px, 4vw, 61px);
    --feature-weight: 600; --controls-align: flex-start; --controls-inset: var(--feature-inset);
}
.home-feature--atelier .home-feature-media { margin: clamp(12px, 2.8vw, 38px); margin-inline-start: 0; outline: 1px solid #a17461; outline-offset: -7px; }

.home-feature--monument {
    --home-accent: #f5cb70; --home-paper: #191a20; --home-ink: #fff; --home-rule: #383947;
    --feature-height: clamp(380px, 49vw, 670px); --feature-type: clamp(32px, 5.3vw, 86px);
    --feature-overlay: linear-gradient(0deg, #111319e3, #17182357);
}
.home-feature--monument .home-feature-copy { justify-self: center; align-self: center; text-align: center; text-shadow: 0 1px 25px #141516af; }
.home-feature--monument .home-feature-copy::after { content: ""; display: block; width: 3rem; height: 3px; margin: 1.4rem auto 0; background: #f1c56c; }

.home-feature--platform {
    --home-accent: #c17c36; --home-paper: #f6eee4; --home-rule: #ddc5ad;
    --feature-height: clamp(320px, 35vw, 510px); --feature-type: clamp(25px, 3.75vw, 58px);
    --feature-overlay: linear-gradient(90deg, #251b13e0, transparent 88%);
    --controls-align: flex-end; --controls-inset: var(--feature-inset);
}
.home-feature--platform .home-feature-copy { align-self: center; }
.home-feature--platform .home-feature-title { border-block-end: 2px solid #e7b072; padding-block-end: .45em; }

.home-feature--proscenium {
    --home-accent: #ed5454; --home-paper: #201b22; --home-ink: #fff; --home-rule: #4a3948;
    --feature-height: clamp(340px, 40vw, 530px); --feature-type: clamp(29px, 4.6vw, 67px);
    --feature-overlay: radial-gradient(ellipse at center, #180d1ac4, #180d1a1c 90%);
}
.home-feature--proscenium .home-feature-copy { align-self: center; justify-self: center; text-align: center; }
.home-feature--proscenium .home-feature-title { padding: .24em .5em; border: 1px solid #efd5e6; }

.home-feature--signal {
    --home-accent: #af4a13; --home-paper: #f5eee5; --home-rule: #e0c8ae;
    --feature-height: clamp(305px, 39vw, 575px); --feature-type: clamp(27px, 4.4vw, 64px);
    --feature-inset: clamp(17px, 3.5vw, 46px); --controls-align: flex-end;
    --feature-overlay: linear-gradient(0deg, #16151370, transparent 60%);
}
.home-feature--signal .home-feature-copy { margin: var(--feature-inset); background: #2d231bea; border-inline-start: 7px solid #ed8d37; }

.home-feature--shop-window {
    --home-accent: #a9511a; --home-ink: #38342d; --home-paper: #f9f7f0; --home-rule: #e5daca;
    --feature-height: clamp(285px, 32vw, 480px); --feature-type: clamp(26px, 4vw, 59px);
    --feature-overlay: linear-gradient(90deg, #211b15cd, transparent);
    --controls-align: flex-start; --controls-inset: var(--feature-inset);
}
.home-feature--shop-window .home-feature-copy { align-self: center; margin-inline-start: clamp(0px, 4vw, 4rem); }
.home-feature--shop-window .home-feature-title { max-width: 19ch; font-weight: 600; }

.home-feature--edition {
    --home-accent: #f0cb78; --home-paper: #262423; --home-ink: #fdf7ed; --home-rule: #48413a;
    --feature-height: clamp(305px, 43vw, 640px); --feature-type: clamp(31px, 4.8vw, 71px);
    --feature-overlay: linear-gradient(0deg, #211d19ed, transparent 70%); --feature-weight: 600;
}
.home-feature--edition .home-feature-title { font-family: Georgia, serif; }
.home-feature--edition .home-feature-copy { max-width: min(100%, 77rem); margin-inline: auto; text-align: center; }

.home-feature--brochure {
    --home-accent: #214d94; --home-paper: #f4f6fa; --home-rule: #c8d7e9;
    --feature-height: clamp(365px, 45vw, 650px); --feature-type: clamp(25px, 4.2vw, 62px);
    --feature-overlay: linear-gradient(90deg, #1b2d4677, transparent 70%); --feature-inset: clamp(14px, 3.4vw, 42px);
    --controls-align: flex-end;
}
.home-feature--brochure .home-feature-copy { margin: var(--feature-inset); background: #f8faf8f5; --feature-on-photo: #17345f; border-block-start: 4px solid #315ca5; align-self: center; width: min(calc(100% - 2 * var(--feature-inset)), 36rem); box-shadow: 0 12px 32px #131c2944; }

.home-feature--retreat {
    --home-accent: #d1ad77; --home-paper: #252b27; --home-ink: #fff9ea; --home-rule: #4a554a;
    --feature-height: clamp(365px, 41vw, 615px); --feature-type: clamp(29px, 4.3vw, 65px);
    --feature-overlay: linear-gradient(0deg, #18211bd9, #1b231b31 90%);
}
.home-feature--retreat .home-feature-copy { align-self: end; justify-self: center; text-align: center; }
.home-feature--retreat .home-feature-summary { margin-inline: auto; }

.home-feature--stage {
    --home-accent: #ae612b; --home-paper: #f1e9de; --home-rule: #e1cbb2;
    --feature-height: clamp(370px, 44vw, 645px); --feature-type: clamp(28px, 4.7vw, 70px);
    --feature-overlay: linear-gradient(90deg, #191d24f2, #181b21a3 54%, transparent);
    --controls-align: flex-start; --controls-inset: var(--feature-inset);
}
.home-feature--stage .home-feature-copy { align-self: center; padding-inline-end: .8rem; }
.home-feature--stage .home-feature-title { max-width: 20ch; }

.home-feature--diagonal {
    --home-accent: #f0c461; --home-paper: #252320; --home-ink: #faf7ef; --home-rule: #4c4535;
    --feature-height: clamp(340px, 41vw, 605px); --feature-type: clamp(28px, 4.2vw, 65px);
    --feature-overlay: linear-gradient(108deg, #22201cf2 20%, #22201c89 56%, transparent 71%);
    --controls-align: flex-start; --controls-inset: var(--feature-inset);
}
.home-feature--diagonal .home-feature-copy { align-self: center; padding-block-start: clamp(32px, 8vw, 120px); }
.home-feature--diagonal .home-feature-title { max-width: 20ch; letter-spacing: .015em; }

.home-feature--redline {
    --home-accent: #ffb6a7; --home-paper: #461b21; --home-ink: #fff7ee; --home-rule: #7d4145;
    --feature-height: clamp(340px, 37vw, 525px); --feature-type: clamp(25px, 3.8vw, 60px);
    --controls-align: flex-start; --controls-inset: var(--feature-inset); --feature-split: 57fr;
}
.home-feature--redline .home-feature-panel { background: linear-gradient(110deg, #38252b, #8c1e23); }
.home-feature--redline .home-feature-media { margin: clamp(13px, 3vw, 42px); margin-inline-start: 0; border-radius: .28rem; overflow: hidden; }

.home-feature--digest {
    --home-accent: #ad393f; --home-paper: #fff9f8; --home-ink: #342527; --home-rule: #ecd2d0;
    --feature-height: clamp(225px, 26vw, 360px); --feature-type: clamp(21px, 2.9vw, 39px);
    --feature-inset: clamp(14px, 2.8vw, 29px); --feature-split: 40fr;
    border: 1px solid var(--home-rule);
}
.home-feature--digest .home-feature-category { margin-inline-end: .6rem; }
.home-feature--digest .home-feature-media { margin: 8px; }

.home-feature--listing {
    --home-accent: #315d46; --home-paper: #e9eee8; --home-rule: #c9d3c6;
    --feature-height: clamp(185px, 31vw, 430px); --feature-type: clamp(23px, 3.2vw, 42px);
    --feature-inset: clamp(12px, 3vw, 33px);
    border: 1px solid #c1cbbf; padding: 5px;
}
.home-feature--listing .home-feature-copy { background: #243b2feb; padding: .85rem 1.1rem; inline-size: 100%; max-inline-size: none; }
.home-feature--listing .home-feature-controls { --controls-align: flex-start; }

.home-feature--dispatch {
    --home-accent: #a1352e; --home-paper: #f8f4ee; --home-rule: #e2d8ca; --home-ink: #312c27;
    --feature-height: clamp(165px, 30vw, 350px); --feature-type: clamp(22px, 3.5vw, 48px);
    --feature-inset: clamp(14px, 2.7vw, 32px); --controls-align: flex-start;
    border-block-end: 1px solid var(--home-rule);
}
.home-feature--dispatch .home-feature-copy { border-inline-start: 4px solid #bc4a3c; }
.home-feature--dispatch .home-feature-date { background: #a1352e; color: #fff; padding: .4rem .5rem; }
.home-feature--dispatch .home-feature-controls { padding-block: 0; }

.home-feature--cloud {
    --home-accent: #ab352e; --home-paper: #f7f4f2; --home-rule: #e0d5cf; --home-ink: #413a36;
    --feature-type: clamp(24px, 4vw, 62px); --feature-height: clamp(330px, 37vw, 520px); --feature-split: 55fr;
    --controls-align: flex-start; --controls-inset: var(--feature-inset);
}
.home-feature--cloud .home-feature-media { margin: clamp(12px, 4vw, 55px); margin-inline-start: 0; background: #ffffffaa; border-radius: 15px; overflow: hidden; }
.home-feature--cloud .home-feature-media img { object-fit: contain; }
.home-feature--cloud .home-feature-action { background: #ab352e; color: #fff; border: 0; padding: .64em 1.12em; border-radius: .25em; }

@media (max-width: 940px) {
    .home-feature--chronicle .home-feature-track { --chronicle-card: 43%; }
}
@media (max-width: 640px) {
    .home-feature { --feature-inset: clamp(15px, 5vw, 27px); }
    :is(.home-feature--orchard, .home-feature--atelier, .home-feature--workshop, .home-feature--redline,
        .home-feature--cloud, .home-feature--digest) .home-feature-panel {
        grid-template: minmax(160px, 52vw) auto / minmax(0, 1fr);
        min-block-size: 0;
    }
    :is(.home-feature--orchard, .home-feature--atelier, .home-feature--workshop, .home-feature--redline,
        .home-feature--cloud, .home-feature--digest) .home-feature-media { grid-area: 1 / 1; margin: 0; border-radius: 0; }
    :is(.home-feature--orchard, .home-feature--atelier, .home-feature--workshop, .home-feature--redline,
        .home-feature--cloud, .home-feature--digest) .home-feature-copy { grid-area: 2 / 1; align-self: stretch; }
    .home-feature--orchard .home-feature-media { border-end-end-radius: 28% 32%; }
    .home-feature--chronicle .home-feature-track { --chronicle-card: 84%; gap: .65rem; }
    .home-feature--chronicle .home-feature-track::after { flex-basis: calc(100% - var(--chronicle-card) - .65rem); }
    .home-feature--directory { --feature-overlay: linear-gradient(0deg, #0f292beb, #102e3270 80%); }
    .home-feature--directory .home-feature-copy { width: 100%; align-self: end; }
    .home-feature--brief .home-feature-copy { max-width: none; }
    .home-feature--editorial .home-feature-copy { box-shadow: inset 3px 0 #d99e58; }
    .home-feature--diagonal { --feature-overlay: linear-gradient(0deg, #22201cf7 15%, #22201c4f 90%); }
}

@media (prefers-reduced-motion: reduce) {
    .home-feature-track { scroll-behavior: auto; }
}

/* The original secondary galleries keep their article cards and their place in the page. */
.home-rail {
    --rail-card: calc((100% - 2 * var(--rail-gap)) / 3);
    --rail-gap: clamp(10px, 2.1vw, 28px);
    --controls-align: flex-end;
    display: block;
    position: relative;
    width: 100%;
    min-width: 0;
}
.home-rail-track {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    gap: var(--rail-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    list-style: none;
}
.home-rail-track::-webkit-scrollbar { display: none; }
.home-rail-track > [data-home-panel] {
    box-sizing: border-box;
    width: auto;
    height: auto;
    min-width: 0;
    flex: 0 0 var(--rail-card);
    margin: 0;
    scroll-snap-align: start;
    overflow-wrap: anywhere;
    list-style: none;
}
.home-rail-track::after { content: ""; flex: 0 0 calc(100% - var(--rail-card) - var(--rail-gap)); }
.home-rail-track:not(:has([data-home-panel]:nth-child(2)))::after { display: none; }
.home-rail-track img { max-width: 100%; }
.home-rail .home-feature-controls {
    margin-block-start: .6rem;
    padding: 0;
    background: transparent;
}
.home-rail--folio {
    --rail-card: 100%; --rail-gap: 0px; --home-accent: #a2493e; --home-rule: #e4d3ce;
    --controls-align: center;
}
.home-rail--folio .overlay-thumb { margin: 0; width: 100%; }
.home-rail--folio .overlay-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.home-rail--cinema { --rail-card: calc((100% - var(--rail-gap)) / 2); --home-accent: #ac521a; }
.home-rail--cinema [data-home-panel] > a > img { aspect-ratio: 4 / 3; object-fit: cover; }
.home-rail--projects { --home-accent: #b18236; --controls-align: flex-start; }
.home-rail--brief { --home-accent: #79704c; }
.home-rail--gazette { --rail-card: calc((100% - 3 * var(--rail-gap)) / 4); --home-accent: #315d8b; }
.home-rail--gazette [data-home-panel] { border-block-start: 3px solid #bd8a3c; }
.home-rail--logos {
    --rail-card: calc((100% - 4 * var(--rail-gap)) / 5); --home-rule: #414248; --home-ink: #fff; --home-accent: #fc725b;
    padding-block: clamp(15px, 3vw, 32px);
}
.home-rail--logos [data-home-panel] { display: grid; place-items: center; min-block-size: 64px; }
.home-rail--atelier { --home-accent: #926349; --controls-align: flex-start; }
.home-rail--monument { --home-accent: #9c6e26; --controls-align: center; }
.home-rail--platform { --home-accent: #9a5c2e; }
.home-rail--proscenium { --home-accent: #8e3349; --controls-align: center; }
.home-rail--signal { --home-accent: #c4682c; --controls-align: flex-start; }
.home-rail--bulletin { --home-accent: #c4682c; --home-rule: #e5d1bc; }
.home-rail--shop { --rail-card: calc((100% - 3 * var(--rail-gap)) / 4); --home-accent: #2362af; --controls-align: flex-start; }
.home-rail--shop-news { --home-accent: #2362af; }
.home-rail--shop-news .blog-news__link { display: block; }
.home-rail--brochure { --home-accent: #2f63ae; }
.home-rail--diagonal { --home-accent: #9b6d2b; --controls-align: flex-start; }
.home-rail--ticker {
    --rail-card: 100%; --rail-gap: 0px; --home-accent: #984b3b; --home-rule: #ded1c6;
    width: auto;
    overflow: hidden;
}
.home-rail--ticker .home-rail-track { align-items: center; }
.home-rail--ticker [data-home-panel] { padding: .42em .9em; font-weight: 600; }
.home-rail--ticker .home-feature-controls { margin: 0; }

@media (max-width: 920px) {
    .home-rail { --rail-card: calc((100% - var(--rail-gap)) / 2); }
    .home-rail--shop, .home-rail--logos { --rail-card: calc((100% - 2 * var(--rail-gap)) / 3); }
    .home-rail--folio, .home-rail--ticker { --rail-card: 100%; }
}
@media (max-width: 530px) {
    .home-rail { --rail-card: 84%; }
    .home-rail--shop, .home-rail--logos { --rail-card: 56%; }
    .home-rail--folio, .home-rail--ticker { --rail-card: 100%; }
}

/* Homes whose original first section is static. */
:where(html:has(meta[content="L03"][name="homepage-design"])) .slider_wrapper.witr_ds_content {
    min-block-size: clamp(310px, 39vw, 640px);
    display: grid;
    place-items: center;
    padding: clamp(20px, 5vw, 80px) 1rem;
}
:where(html:has(meta[content="L03"][name="homepage-design"])) :is(.slider_title, .slider_title a) {
    color: #fff;
    font-size: clamp(28px, 4.6vw, 68px);
    line-height: 1.15;
    text-wrap: balance;
}
:where(html:has(meta[content="L03"][name="homepage-design"])) .slider_cont {
    margin: 1rem auto 2rem;
    max-width: 60ch;
    font-size: 1.04rem;
    line-height: 1.65;
    color: #eee;
}

:where(html:has(meta[content="X002"][name="homepage-design"])) .top-grids .top-grid {
    border-inline-start: 2px solid #e1c6d3;
    padding: clamp(14px, 2vw, 28px);
}
:where(html:has(meta[content="X002"][name="homepage-design"])) .top-grid h3 a { font-size: clamp(18px, 2vw, 26px); line-height: 1.26; }
:where(html:has(meta[content="X002"][name="homepage-design"])) .top-grid > a { line-height: 1.6; color: #484253; }

:where(html:has(meta[content="X025"][name="homepage-design"])) .boxes-third .boxes-padding {
    min-block-size: clamp(120px, 16vw, 215px);
    border-block-start: 3px solid #719a51;
    padding-block: 1.1rem;
}
:where(html:has(meta[content="X025"][name="homepage-design"])) .featured-titles a { line-height: 1.28; font-size: clamp(17px, 1.85vw, 24px); }
:where(html:has(meta[content="X025"][name="homepage-design"])) .featured-text > a { color: #39443b; line-height: 1.55; }

:where(html:has(meta[content="Y02"][name="homepage-design"])) .welcome-grids {
    padding-block: clamp(14px, 2.5vw, 34px);
    border-block-start: 1px solid #f3d8a4;
}
:where(html:has(meta[content="Y02"][name="homepage-design"])) .welcome-left img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}
:where(html:has(meta[content="Y02"][name="homepage-design"])) .welcome-right h3 a { line-height: 1.22; font-size: clamp(22px, 2.9vw, 39px); }
:where(html:has(meta[content="Y02"][name="homepage-design"])) .welcome-right p { color: #444e59; line-height: 1.65; }

:where(html:has(meta[content="Y03"][name="homepage-design"])) .banner-style-2 .cd-headline {
    margin: 0 auto;
    max-width: 22ch;
    padding: .5em;
    border-block: 1px solid #ffffff65;
    font-size: clamp(29px, 5vw, 65px);
    line-height: 1.15;
    text-wrap: balance;
}
:where(html:has(meta[content="Y03"][name="homepage-design"])) .banner-style-2 .cd-headline a { color: #fff; font-weight: 700; text-shadow: 0 1px 18px #1b202a; }
:where(html:has(meta[content="Y03"][name="homepage-design"])) .course-grid .course-title { line-height: 1.3; }

:where(html:has(meta[content="li01"][name="homepage-design"])) :is(.timeline-item, .timeline-item-content) { min-width: 0; }
:where(html:has(meta[content="li01"][name="homepage-design"])) .timeline-item-content .title { font-size: clamp(19px, 2.2vw, 29px); line-height: 1.24; overflow-wrap: anywhere; }
:where(html:has(meta[content="li01"][name="homepage-design"])) .timeline-item-content p { line-height: 1.56; }
:where(html:has(meta[content="li01"][name="homepage-design"])) .timeline-item-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
:where(html:has(meta[content="li01"][name="homepage-design"])) .timeline-author-date span { font-variant-numeric: tabular-nums; }

:where(html:has(meta[content="examen"][name="homepage-design"])) #home-featured :is(h2,h3) { text-wrap: balance; line-height: 1.22; }
:where(html:has(meta[content="examen"][name="homepage-design"])) #home-featured p { line-height: 1.65; max-width: 80ch; }
:where(html:has(meta[content="examen"][name="homepage-design"])) #home-featured .card { border-block-start: 2px solid #1c73b8; }
:where(html:has(meta[content="examen"][name="homepage-design"])) #search .text-shadow { text-shadow: 0 2px 6px #081b3c99; }

:where(html:has(meta[content="runelite"][name="homepage-design"])) #intro h1 { font-size: clamp(34px, 5vw, 76px); letter-spacing: -.025em; line-height: 1.06; }
:where(html:has(meta[content="runelite"][name="homepage-design"])) #intro p { max-width: 52ch; line-height: 1.62; }
:where(html:has(meta[content="runelite"][name="homepage-design"])) :is(#features-home, #news) .page-header {
    border-block-end: 2px solid #e9a13d;
    padding-block-end: .45em;
}

:where(html:has(meta[content="sanliurfa"][name="homepage-design"])) #editable_area_content .rv-text-center img {
    max-inline-size: 100%;
    height: auto;
}
:where(html:has(meta[content="sanliurfa"][name="homepage-design"])) #editable_area_content h2 {
    font-size: clamp(23px, 3.1vw, 47px);
    line-height: 1.15;
    text-wrap: balance;
}
:where(html:has(meta[content="sanliurfa"][name="homepage-design"])) #editable_area_content h3 { line-height: 1.25; }

/* Standalone product homes use their existing campaigns, pictures and translated copy. */
:where(html:has(meta[name="homepage-design"][content^="li03"])) .top-slider .slide-item {
    display: grid;
    grid-template: minmax(clamp(325px, 37vw, 630px), auto) / minmax(0, 1fr);
}
:where(html:has(meta[name="homepage-design"][content^="li03"])) .top-slider .home-poster .slide-item .slide-bg {
    grid-area: 1 / 1;
    position: relative;
    height: auto;
    max-height: none;
}
:where(html:has(meta[name="homepage-design"][content^="li03"])) .top-slider .home-poster .slide-item .slide-bg img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}
:where(html:has(meta[name="homepage-design"][content^="li03"])) .top-slider .slide-bg::after {
    content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #17191229, #231b16c7);
}
:where(html:has(meta[name="homepage-design"][content^="li03"])) .top-slider .home-poster .slide-item > .content {
    grid-area: 1 / 1;
    z-index: 1;
    position: relative;
    inset: auto;
    transform: none;
    align-self: center;
    justify-self: end;
    width: min(60%, 78ch);
    max-width: 100%;
    margin: 0;
    padding: clamp(22px, 4vw, 52px);
    text-align: start;
}
:where(html:has(meta[name="homepage-design"][content^="li03"])) .top-slider .home-poster .animated {
    opacity: 1;
    animation: none;
    transform: none;
}
:where(html:has(meta[name="homepage-design"][content^="li03"])) .top-slider .home-poster .main-title h1 { margin-bottom: .55em; }
:where(html:has(meta[name="homepage-design"][content^="li03"])) .top-slider .home-poster .main-title .large-text {
    color: #fff0c7;
    font-size: clamp(29px, 4.1vw, 63px);
    line-height: 1.06;
    text-wrap: balance;
}
:where(html:has(meta[name="homepage-design"][content^="li03"])) .top-slider .home-poster .main-title .small-text {
    font-size: clamp(18px, 2.1vw, 29px);
    line-height: 1.23;
    color: #fff;
}
:where(html:has(meta[name="homepage-design"][content^="li03"])) .top-slider .home-poster .sub-title p {
    color: #fff;
    margin: 1em 0 0;
    line-height: 1.65;
    text-transform: none;
}
:where(html:has(meta[name="homepage-design"][content^="li03"])) .page-content .main-title { text-wrap: balance; overflow-wrap: anywhere; }
@media (max-width: 700px) {
    :where(html:has(meta[name="homepage-design"][content^="li03"])) .top-slider .home-poster .slide-item > .content {
        width: 100%;
        padding-inline: 6%;
        text-align: center;
    }
    :where(html:has(meta[name="homepage-design"][content^="li03"])) .top-slider .slide-bg::after {
        background: linear-gradient(0deg, #171912c7, #231b1652);
    }
}

:where(html:has(meta[name="homepage-design"][content^="li04"])) .slider-area .single-slider {
    min-height: clamp(360px, 43vw, 690px);
    height: auto;
    padding-block: clamp(42px, 6vw, 90px);
}
:where(html:has(meta[name="homepage-design"][content^="li04"])) .slider-area .slider-content h1 {
    font-size: clamp(32px, 4.6vw, 71px);
    line-height: 1.06;
    letter-spacing: -.024em;
    overflow-wrap: anywhere;
}
:where(html:has(meta[name="homepage-design"][content^="li04"])) .slider-area .slider-content h1 span { margin-top: .35em; font-size: .63em; letter-spacing: 0; }
:where(html:has(meta[name="homepage-design"][content^="li04"])) .slider-area .slider-content p { line-height: 1.62; max-width: 58ch; }
:where(html:has(meta[name="homepage-design"][content^="li04"])) .slider-img { margin-inline: 0; max-width: 100%; }
:where(html:has(meta[name="homepage-design"][content^="li04"])) .slider-img img { object-fit: contain; max-height: min(45vw, 500px); }

:where(html:has(meta[name="homepage-design"][content^="hihonor"])) #phones-5g .phones-kv {
    display: grid;
    grid-template: minmax(auto, 1fr) auto / minmax(0, 1fr);
    min-block-size: clamp(325px, 35vw, 555px);
    isolation: isolate;
}
:where(html:has(meta[name="homepage-design"][content^="hihonor"])) #phones-5g .phones-kv .kv-bg {
    position: relative;
    grid-area: 1 / 1 / 3 / 2;
}
:where(html:has(meta[name="homepage-design"][content^="hihonor"])) #phones-5g .phones-kv .kv-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
:where(html:has(meta[name="homepage-design"][content^="hihonor"])) #phones-5g .phones-kv .kv-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0b172aab, #1016250c 66%, #0b172a4d);
}
:where(html:has(meta[name="homepage-design"][content^="hihonor"])) #phones-5g .phones-kv > :is(.kv-toptitle, .kv-bttext) {
    position: relative;
    inset: auto;
    width: min(90%, 75ch);
    margin-inline: auto;
    padding-inline: 12px;
    z-index: 1;
}
:where(html:has(meta[name="homepage-design"][content^="hihonor"])) #phones-5g .phones-kv .kv-toptitle {
    grid-area: 1 / 1;
    align-self: center;
    padding-block: clamp(16px, 3vw, 48px);
}
:where(html:has(meta[name="homepage-design"][content^="hihonor"])) #phones-5g .phones-kv .kv-bttext {
    grid-area: 2 / 1;
    padding-block-end: clamp(18px, 3vw, 45px);
}
:where(html:has(meta[name="homepage-design"][content^="hihonor"])) #phones-5g .phones-kv .kv-toptitle h1 {
    font-size: clamp(27px, 3.9vw, 63px);
    line-height: 1.14;
    text-wrap: balance;
    text-shadow: 0 2px 14px #111b2bdb;
    margin: 0 auto;
    max-inline-size: 28ch;
}
:where(html:has(meta[name="homepage-design"][content^="hihonor"])) #phones-5g .phones-kv .kv-bttext p {
    font-size: clamp(14px, 1.25vw, 19px);
    text-shadow: 0 1px 5px #101421;
    line-height: 1.55;
    margin: 0;
}
:where(html:has(meta[name="homepage-design"][content^="hihonor"])) #phones-5g :is(h2,h3) {
    text-wrap: balance;
    overflow-wrap: anywhere;
}

:where(html:has(meta[name="homepage-design"]:is([content="li05"], [content="p60"]))) .product-tabs__heading { border-block-end: 1px solid #dbe0e3; }
:where(html:has(meta[name="homepage-design"]:is([content="li05"], [content="p60"]))) .product-tabs__title h1 { font-size: clamp(21px, 2.9vw, 42px); letter-spacing: -.025em; line-height: 1.1; }
:where(html:has(meta[name="homepage-design"]:is([content="li05"], [content="p60"]))) .product-tabs__content .section-title {
    font-size: clamp(24px, 2.65vw, 43px);
    line-height: 1.15;
    padding-block-end: .55em;
    border-block-end: 1px solid #dbe0e3;
}
:where(html:has(meta[name="homepage-design"]:is([content="li05"], [content="p60"]))) .product-tabs__content .section-content { line-height: 1.65; }

:where(html:has(meta[name="homepage-design"][content="travel"])) .teaserBox--hero .teaserBox__figure {
    display: block;
    overflow: hidden;
    border-radius: .4rem .4rem 0 0;
}
:where(html:has(meta[name="homepage-design"][content="travel"])) .teaserBox--hero .teaserBox__image { max-width: 100%; width: 100%; object-fit: cover; }
:where(html:has(meta[name="homepage-design"][content="travel"])) .teaserBox--hero .teaserBox__content {
    border-block-start: 3px solid #ec9d1d;
    padding-block: .8rem;
}
:where(html:has(meta[name="homepage-design"][content="travel"])) .teaserBox--hero .teaserBox__headline { font-size: clamp(22px, 3.05vw, 41px); line-height: 1.14; }

:where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main,
:where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table {
    max-width: 100%;
}
:where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main img { max-width: 100%; height: auto; }
:where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #main-content .entry-content strong {
    font: 600 clamp(19px, 2vw, 27px)/1.25 Georgia, serif;
    color: #484728;
}
:where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #main-content .entry-content :is(p, li) { line-height: 1.6; }
:where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #main-content .entry-content table { width: 100%; }

@media (max-width: 767px) {
    :where(html:has(meta[name="homepage-design"][content="Y02"])) .welcome-right { padding-block: 12px; }
    :where(html:has(meta[name="homepage-design"][content^="li04"])) .slider-img {
        margin-block-start: 17px;
        margin-inline: auto;
    }
    :where(html:has(meta[name="homepage-design"][content^="li04"])) .slider-img img { max-height: 58vw; }
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table,
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table > tbody,
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table > tbody > tr,
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table > tbody > tr > td {
        display: block;
        width: 100% !important;
        padding: .35rem !important;
        box-sizing: border-box;
    }
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > table { max-width: calc(100% - 11px); }
}
@media (prefers-reduced-motion: reduce) {
    :where(html:has(meta[name="homepage-design"][content^="li04"])) .slider-area [data-animation] {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.home-rail--honor {
    --rail-card: 100%;
    --rail-gap: 0px;
    --home-accent: #1959ae;
    --home-rule: #d5dfec;
    --controls-align: center;
}
.home-rail--honor [data-home-panel] img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.home-rail--honor .home-feature-controls { color: #233d61; }

.home-feature--loft { --feature-type: clamp(31px, 4.6vw, 70px); --controls-align: flex-end; }
.home-feature--loft .home-feature-copy { max-inline-size: 46rem; }
.home-feature--loft .home-feature-title { text-wrap: balance; }
.home-feature--loft .home-feature-controls { justify-content: center; padding: 0; }
.home-feature--loft .home-feature-count { color: #e7bd99; }

:where(html:has(meta[name="homepage-design"][content="Y26"])) .home-feature--shop-window {
    --home-accent: #2259a4; --home-rule: #d7e3f1; --home-paper: #f2f6fc;
}
:where(html:has(meta[name="homepage-design"][content="Y30"])) .common-slider.large-slider { height: auto; }
:where(html:has(meta[name="homepage-design"][content="Y07"])) .home-feature--rose {
    --home-accent: #9e481e; --home-paper: #f9efe7; --home-rule: #efd9c8;
}
:where(html:has(meta[name="homepage-design"][content="Y07"])) .home-feature--rose .home-feature-controls {
    border-block-start-color: #e8894b;
}

/* Fixed-width originals retain their columns above the point where they no longer fit. */
:where(html:has(meta[name="homepage-design"]:is([content="X015"], [content="X021"], [content="X022"], [content="Y01"]))) .container,
:where(html:has(meta[name="homepage-design"][content="X019"])) .wraper,
:where(html:has(meta[name="homepage-design"][content="X027"])) :is(.wrapper, .wrapperr1) {
    max-inline-size: 100%;
}
:where(html:has(meta[name="homepage-design"][content="X025"])) #main-wrap { display: flow-root; }
:where(html:has(meta[name="homepage-design"][content="Y07"])) .card-img-top { max-width: 100%; object-fit: cover; }
:where(html:has(meta[name="homepage-design"][content="dream"])) :is(.container, #floating, #floating-inner) {
    box-sizing: border-box;
    min-width: 0;
    max-inline-size: 100%;
}
:where(html:has(meta[name="homepage-design"][content="dream"])) .second_content :is(.left, .right) { max-inline-size: 100%; }
:where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) :is(.narrowcolumn, #page-center) { max-inline-size: 100%; box-sizing: border-box; }
:where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main table[width="800"] { max-width: 100%; }

@media (max-width: 975px) {
    :where(html:has(meta[name="homepage-design"][content="dream"])) .second_content .left { width: 100% !important; }
    :where(html:has(meta[name="homepage-design"][content="dream"])) .listings_grid {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(min(100%, 155px), 1fr));
        gap: 9px;
    }
    :where(html:has(meta[name="homepage-design"][content="dream"])) .listings_grid::after { content: none; }
    :where(html:has(meta[name="homepage-design"][content="dream"])) .grid_cell { width: auto; margin: 0; }
    :where(html:has(meta[name="homepage-design"][content="dream"])) .grid_cell_content { height: auto; min-block-size: 180px; }
}

:where(html:has(meta[name="homepage-design"][content="p60"])) .product-summary {
    padding-block: clamp(16px, 3vw, 38px);
    line-height: 1.65;
}
:where(html:has(meta[name="homepage-design"][content="p60"])) .product-summary p { max-width: 76ch; }
:where(html:has(meta[name="homepage-design"][content="p60"])) .specs-banner-wrap {
    padding-block: clamp(10px, 2vw, 28px);
    background: #f5f6f7;
    border-block-end: 1px solid #e0e3e6;
}
:where(html:has(meta[name="homepage-design"][content="p60"])) .specs-banner-img li { min-inline-size: 0; }
:where(html:has(meta[name="homepage-design"][content="p60"])) .specs-banner-img img { max-inline-size: 100%; height: auto; }

:where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) :is(#bildpage, #page-center, .bildheader, .bildhead, .bildheader table) { max-inline-size: 100%; }
:where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) :is(#page_main, #page-center) table { max-inline-size: 100%; }

@media (max-width: 820px) {
    :where(html:has(meta[name="homepage-design"][content="X027"])) .date { max-inline-size: 100%; }
    :where(html:has(meta[name="homepage-design"][content="Y05"])) .blog__postcontent { min-inline-size: 0; overflow-wrap: anywhere; }
    :where(html:has(meta[name="homepage-design"][content="Y05"])) .blog__postcontent .default-btn { max-width: 100%; }
    :where(html:has(meta[name="homepage-design"]:is([content="mobile"], [content="z01"]))) :is(.container,.theme-layout) {
        box-sizing: border-box;
        max-width: 100%;
    }
}

/* Keep the tracks themselves as the clipping boundary for native card overlays. */
.home-rail-track { position: relative; }
.home-feature-status { inset-inline-start: 0; inset-block-end: 0; }
.home-rail--profiles { --home-accent: #9f703d; --controls-align: flex-start; }
.home-rail--office { --home-accent: #246393; }
.home-rail--profiles .team-box { height: 100%; }

:where(html:has(meta[name="homepage-design"][content="Y03"])) .primary-menu > li:last-child > .submenu,
:where(html:has(meta[name="homepage-design"][content="Y14"])) .header-nav .navbar-nav > li:last-child > .sub-menu {
    inset-inline: auto 0;
}
:where(html:has(meta[name="homepage-design"][content="X027"])) .recent-posts .date {
    white-space: normal;
    overflow-wrap: anywhere;
}
:where(html:has(meta[name="homepage-design"][content="X027"])) footer .one-third-col { box-sizing: border-box; }

@media (max-width: 1040px) {
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table {
        width: 100% !important;
        table-layout: fixed;
    }
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table > tbody > tr > :is(td,th) {
        width: auto !important;
    }
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main :is(.bildheader,.bildfooter,#nav-link,#MainNav1) {
        max-inline-size: 100%;
        box-sizing: border-box;
    }
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table > tbody > tr > td:first-child { width: 19% !important; }
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table > tbody > tr > td:empty { width: 0 !important; }
}
@media (max-width: 900px) {
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table > tbody,
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table > tbody > tr,
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table > tbody > tr > td,
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main > div:first-child > table > tbody > tr > td:first-child {
        display: block;
        width: 100% !important;
        max-inline-size: 100%;
        box-sizing: border-box;
    }
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) .narrowcolumn { float: none; padding-inline: 0; }
}
@media (max-width: 975px) {
    :where(html:has(meta[name="homepage-design"][content="dream"])) :is(#container,.footer_links,.header,.main_nav) {
        min-width: 0;
        max-inline-size: 100%;
    }
    :where(html:has(meta[name="homepage-design"][content="dream"])) .top_info_lang { line-height: 1.65; overflow-wrap: anywhere; }
}
@media (max-width: 812px) {
    :where(html:has(meta[name="homepage-design"]:is([content="X015"], [content="X021"], [content="Y01"], [content="z01"]))) .container .sixteen.columns {
        box-sizing: border-box;
        max-width: calc(100% - 20px);
    }
    :where(html:has(meta[name="homepage-design"][content="X021"])) .container .homepage_slogan2 h2 { margin-inline: 0; width: auto; }
    :where(html:has(meta[name="homepage-design"][content="X019"])) .wraper { width: auto; }
    :where(html:has(meta[name="homepage-design"][content="Y07"])) .blog-section .card a { max-inline-size: 100%; }
    :where(html:has(meta[name="homepage-design"][content="sanliurfa"])) #editable_area_content :is(h2,h3,h4,p,li) { overflow-wrap: anywhere; white-space: normal; }
}

.home-rail--office .witr_sb_thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.home-rail--office .busi_singleBlog { height: 100%; }

:where(html:has(meta[name="homepage-design"][content="Y03"])) .site-navbar .primary-menu > li > ul.submenu:has(a[hreflang]),
:where(html:has(meta[name="homepage-design"][content="Y08"])) .header__menu nav ul li > ul.submenu:has(a[hreflang]) {
    left: auto;
    right: 0;
}
:where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #bildpage :is(#bildheader,#bildfooter) { max-width: 100%; }

@media (max-width: 975px) {
    :where(html:has(meta[name="homepage-design"][content="dream"])) #container :is(.nav,.sf-menu) { width: 100%; box-sizing: border-box; }
    :where(html:has(meta[name="homepage-design"][content="dream"])) .sf-menu > li { width: auto; }
    :where(html:has(meta[name="homepage-design"][content="dream"])) .sf-menu a { font-size: clamp(14px, 2.35vw, 20px); padding-inline: .55em; }
    :where(html:has(meta[name="homepage-design"][content="X019"])) :is(.wraper, .social_block, .footer, .copyright) { min-width: 0; max-width: 100%; }
    :where(html:has(meta[name="homepage-design"][content="X019"])) .features_slider_wrap .home-feature-controls { float: none; }
    :where(html:has(meta[name="homepage-design"][content="X023"])) .centered-wrapper {
        max-width: 100%;
        box-sizing: border-box;
    }
    :where(html:has(meta[name="homepage-design"][content="X027"])) .wrapperr1 footer { overflow: clip; }
    :where(html:has(meta[name="homepage-design"][content="Y01"])) #from-blog-wrap .divider { max-width: calc(100% - 16px); }
    :where(html:has(meta[name="homepage-design"][content="Y13"])) body:not(.mobile-menu-visible) .mobile-menu { display: none; }
    :where(html:has(meta[name="homepage-design"][content="sanliurfa"])) #selected_footer .uk-grid { margin-inline: 0; }
    :where(html:has(meta[name="homepage-design"][content="sanliurfa"])) #selected_footer :is(a,b,p) { overflow-wrap: anywhere; white-space: normal; }
}
@media (max-width: 812px) {
    :where(html:has(meta[name="homepage-design"][content="X021"])) header .container .sixteen.columns.alpha.omega { max-width: 100%; }
    :where(html:has(meta[name="homepage-design"][content="X021"])) .homepage_img img { height: auto; max-width: 100%; }
}
@media (max-width: 900px) {
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main #bildcontent > div { height: auto !important; }
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #page_main table { max-width: calc(100% - 11px); }
}

@media (max-width: 975px) {
    :where(html:has(meta[name="homepage-design"][content="X019"])) .footer footer {
        width: 100%;
        padding-inline: 0;
        box-sizing: border-box;
    }
    :where(html:has(meta[name="homepage-design"][content="X019"])) .features_slider_wrap .home-rail--cinema .home-feature-controls {
        width: 100%;
        margin-inline: 0;
    }
    :where(html:has(meta[name="homepage-design"][content="X023"])) :is(body,#wrapper) { min-width: 0; max-width: 100%; }
    :where(html:has(meta[name="homepage-design"][content="Y01"])) .container > .divider { max-width: calc(100% - 16px); }
    :where(html:has(meta[name="homepage-design"][content="Y13"])) .main-header .main-menu .navigation > li.dropdown > ul:has(a[hreflang]) {
        left: auto;
        right: 0;
    }
    :where(html:has(meta[name="homepage-design"][content="sanliurfa"])) #selected_footer .rvsb-bg-footer { overflow: clip; }
}
@media (max-width: 812px) {
    :where(html:has(meta[name="homepage-design"][content="X021"])) #top_container #topmenu { max-width: calc(100% - 20px); }
}
@media (max-width: 900px) {
    :where(html:has(meta[name="homepage-design"][content="tcm-weiss"])) #bildcontent img { margin-inline: 0 !important; }
}

@media (max-width: 975px) {
    :where(html:has(meta[name="homepage-design"][content="X023"])) :is(#header,#footer,#bottomfooter) { max-width: 100%; }
    :where(html:has(meta[name="homepage-design"][content="X023"])) #header .two-third { max-width: calc(100% - 20px); }
}
