.yt-home-chapter {
    position: relative;
    padding: clamp(40px, 5.3vw, 76px) 0;
    color: #172746;
}

.yt-home-products, .yt-home-solutions, .yt-home-chapter {
    --yt-chapter-ink: #182747;
    --yt-chapter-muted: #465773;
    --yt-chapter-line: #d8e0f1;
    --yt-chapter-bg: #fff;
    --yt-chapter-rail: #f5f7fd;
    --yt-chapter-active: #e9edff;
    --yt-chapter-accent: #3c3cab;
}

.yt-chapter-compute {
    --yt-chapter-ink: #f0f4ff;
    --yt-chapter-muted: #c6d3e8;
    --yt-chapter-line: #4d6191;
    --yt-chapter-bg: #132442;
    --yt-chapter-rail: #13213c;
    --yt-chapter-active: #253964;
    --yt-chapter-accent: #adcbff;
    color: var(--yt-chapter-ink);
    background: radial-gradient(ellipse at 85% 12%, #202f58, transparent 64%), #0f1930;
}

.yt-chapter-industry { background: #f3f6fd; }
.yt-chapter-anchor { position: absolute; top: -42px; left: 0; width: 1px; height: 1px; }
.yt-chapter-alias { top: -42px; }
.yt-chapter-heading { margin-bottom: clamp(21px, 3vw, 34px); }
.yt-chapter-heading h2 { margin: 0 0 9px; color: inherit; font-size: clamp(1.85rem, 3.15vw, 2.85rem); font-weight: 730; letter-spacing: -.04em; line-height: 1.22; }
.yt-chapter-heading p { margin: 0; color: var(--yt-chapter-muted); line-height: 1.66; }
.yt-chapter-section-link, .yt-chapter-action, .yt-chapter-source { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 42px; color: var(--yt-chapter-accent); font-weight: 650; }
.yt-chapter-section-link:is(:hover,:focus-visible), .yt-chapter-action:is(:hover,:focus-visible), .yt-chapter-source:is(:hover,:focus-visible) { color: var(--yt-chapter-ink); }
.yt-chapter-section-link { margin-top: 4px; }

.yt-chapter-picker { overflow: visible; }
.yt-chapter-picker:not(.yt-picker-ready) > .yt-chapter-panel + .yt-chapter-panel { margin-top: 12px; }
.yt-chapter-picker.yt-picker-ready {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    border: 0;
    background: transparent;
    align-items: start;
}
.yt-chapter-picker [hidden] { display: none; }
.yt-chapter-picker > .yt-pick-controls:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--yt-chapter-line);
    border-radius: 7px;
    overflow: hidden;
    background: var(--yt-chapter-rail);
}
.yt-home-chapter .yt-chapter-picker > .yt-pick-controls:not([hidden]) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.yt-chapter-picker > .yt-pick-controls button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    justify-content: start;
    justify-items: start;
    gap: 9px;
    min-width: 0;
    min-height: 49px;
    padding: 9px;
    color: var(--yt-chapter-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    text-align: left;
    font-size: .87rem;
    font-weight: 660;
    line-height: 1.4;
}
.yt-chapter-picker > .yt-pick-controls button::after { display: none; }
.yt-chapter-picker > .yt-pick-controls button:is(:hover,[aria-pressed="true"]) { color: var(--yt-chapter-accent); background: var(--yt-chapter-active); }
.yt-chapter-picker > .yt-pick-controls button[aria-pressed="true"] { box-shadow: inset 0 -2px var(--yt-chapter-accent); }
.yt-chapter-picker > .yt-pick-controls button i { color: var(--yt-chapter-accent); }
.yt-chapter-picker > .yt-pick-controls button small { display: none; }
.yt-chapter-picker :is(button,a,summary):focus-visible { outline: 2px solid var(--yt-chapter-accent); outline-offset: 2px; }
.yt-chapter-picker > .yt-pick-controls button:focus-visible { outline-offset: -4px; }

.yt-chapter-picker > .yt-chapter-panel {
    min-width: 0;
    background: var(--yt-chapter-bg);
    border: 1px solid var(--yt-chapter-line);
    border-radius: 8px;
}
.yt-chapter-panel [id], .yt-chapter-panel button, .yt-chapter-panel details { scroll-margin-top: 92px; }

.yt-chapter-media {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
    color: var(--yt-chapter-ink);
    overflow: hidden;
}
.yt-chapter-art { position: relative; min-height: 255px; margin: 0; overflow: hidden; background: var(--yt-chapter-rail); }
.yt-chapter-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.yt-chapter-art figcaption { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; color: #f6f9ff; background: #14223b; border-radius: 3px; font-size: .74rem; }
.yt-chapter-copy { align-self: center; min-width: 0; padding: clamp(15px, 2.55vw, 34px); }
.yt-chapter-copy h3 { margin: 0 0 9px; color: var(--yt-chapter-ink); font-weight: 710; font-size: clamp(1.25rem, 2.05vw, 1.75rem); line-height: 1.3; }
.yt-chapter-copy p { margin: 0; color: var(--yt-chapter-muted); font-size: .94rem; line-height: 1.7; }
.yt-chapter-action { margin-top: 8px; padding: 0 11px; border: 1px solid var(--yt-chapter-line); border-radius: 4px; background: var(--yt-chapter-active); font-size: .9rem; }
.yt-chapter-source { margin-right: 8px; min-height: 38px; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.yt-chapter-detail { margin: 10px 0 3px; border-block: 1px solid var(--yt-chapter-line); }
.yt-chapter-detail summary { min-height: 44px; padding: 11px 3px; cursor: pointer; color: var(--yt-chapter-accent); font-size: .93rem; font-weight: 650; }
.yt-chapter-detail > p { padding: 0 3px 11px; }

.yt-chapter-media:has(.yt-chapter-demo[open]) { display: block; }
.yt-chapter-media:has(.yt-chapter-demo[open]) .yt-chapter-art { display: none; }
.yt-chapter-demo .yt-ai-journey-embedded { padding: 0 0 12px; background: transparent; }
.yt-chapter-demo .yt-journey-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.yt-chapter-demo .yt-ai-journey-embedded[data-yt-journey-ready] .yt-journey-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 5px; }
.yt-chapter-demo .yt-ai-journey-embedded[data-yt-journey-ready] .yt-journey-steps li { min-height: 0; padding: 0; border: 0; }
.yt-chapter-demo .yt-ai-journey-embedded[data-yt-journey-ready] .yt-journey-steps p { display: none; }
.yt-chapter-demo .yt-ai-journey-embedded[data-yt-journey-ready] .yt-journey-stage { position: static; }
.yt-chapter-demo .yt-journey-steps h3 a { width: 100%; padding: 5px 9px; color: #263971; border: 1px solid #d2daf0; border-radius: 4px; font-size: .86rem; background: #f1f5fc; gap: 6px; }
.yt-chapter-demo .yt-journey-steps h3 a[aria-current="step"] { color: #fff; background: #273c70; }
.yt-chapter-demo .yt-journey-steps h3 span { color: inherit; font-size: .76rem; }
.yt-chapter-demo .yt-journey-window { box-shadow: none; }
.yt-chapter-demo .yt-journey-panel h3 { color: #fff; }
.yt-chapter-demo .yt-journey-panel p { color: #c6d3e8; }
.yt-chapter-demo .yt-ai-journey-embedded[data-yt-journey-ready] .yt-journey-panel { min-height: 0; }
.yt-chapter-demo .yt-ai-journey-embedded [hidden] { display: none; }

.yt-home-products .yt-stock-groups { margin: 15px 0 0; }
.yt-home-products .yt-home-supplement { margin-top: 20px; }
.yt-chapter-picker .yt-offer-picker.yt-picker-ready { grid-template-columns: minmax(0, 1fr); }
.yt-chapter-picker .yt-offer-picker.yt-picker-ready > .yt-pick-controls { display: flex; flex-wrap: wrap; gap: 4px; }
.yt-chapter-picker .yt-offer-picker.yt-picker-ready button { width: auto; padding: 5px 9px; flex: 0 1 auto; margin: 0; font-size: .86rem; min-height: 39px; white-space: normal; }
.yt-chapter-picker .yt-offer-picker.yt-picker-ready button i { display: none; }

.yt-chapter-picker .yt-solution-stage { grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: 15px; }
.yt-solution-exhibit .yt-stage-media-cover img { object-fit: cover; }
.yt-chapter-picker .yt-stage-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yt-chapter-picker .yt-stage-capabilities > div { padding: 10px 12px; }
.yt-chapter-picker .yt-stage-capabilities dd { font-size: .87rem; }

@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    .yt-chapter-picker.yt-picker-ready { grid-template-columns: minmax(185px, .26fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 26px); }
    .yt-chapter-picker > .yt-pick-controls:not([hidden]) { display: block; grid-area: 1 / 1; }
    .yt-chapter-picker > .yt-pick-controls button { width: 100%; min-height: clamp(135px, 18vh, 177px); gap: 10px; padding: 13px 17px; border-bottom: 1px solid var(--yt-chapter-line); font-size: 1rem; }
    .yt-chapter-picker > .yt-pick-controls button:last-child { border-bottom: 0; }
    .yt-chapter-picker > .yt-pick-controls button[aria-pressed="true"] { box-shadow: inset 3px 0 var(--yt-chapter-accent); }
    .yt-chapter-picker > .yt-pick-controls button small { display: block; margin-top: 5px; font-size: .78rem; font-weight: 480; color: var(--yt-chapter-muted); }
    .yt-solution-exhibit > .yt-pick-controls { margin-bottom: clamp(154px, 21vh, 218px); }
    .yt-solution-exhibit > .yt-pick-controls button { min-height: clamp(104px, 12.5vh, 132px); }
    .yt-chapter-picker.yt-picker-ready > .yt-chapter-panel { grid-area: 1 / 2; position: sticky; top: 91px; }
    .yt-chapter-picker > .yt-chapter-panel:has(details[open]) { position: static; }
    .yt-chapter-art { min-height: clamp(302px, 38vh, 390px); }
}

@media (max-width: 767px) {
    .yt-chapter-media, .yt-chapter-picker .yt-solution-stage { grid-template-columns: minmax(0, 1fr); }
    .yt-chapter-art { min-height: 0; aspect-ratio: 2.05; }
}

@media (max-width: 575px) {
    .yt-home-chapter .yt-chapter-picker > .yt-pick-controls:not([hidden]),
    .yt-solution-exhibit > .yt-pick-controls:not([hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 379px) {
    .yt-chapter-picker .yt-stage-capabilities { grid-template-columns: minmax(0,1fr); }
}

.yt-chapter-flow {
    grid-column: 1 / -1;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 12px 0;
    padding: 6px 2px;
    border: 1px solid var(--yt-chapter-line);
    border-radius: 5px;
    color: var(--yt-chapter-ink);
    background: var(--yt-chapter-rail);
    list-style: none;
}
.yt-chapter-flow::before, .yt-chapter-flow::after {
    content: "";
    position: absolute;
    inset: 10px 16.8% auto;
    height: 2px;
    pointer-events: none;
}
.yt-chapter-flow::before { background: var(--yt-chapter-line); }
.yt-chapter-flow::after { background: var(--yt-chapter-accent); }
.yt-chapter-flow li {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 3px;
    min-width: 0;
    color: var(--yt-chapter-ink);
    text-align: center;
    font-size: .77rem;
    line-height: 1.35;
}
.yt-chapter-flow li::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid var(--yt-chapter-rail);
    border-radius: 50%;
    background: var(--yt-chapter-accent);
}
.yt-solution-stage .yt-chapter-flow { grid-area: flow; margin: 0; }
.yt-chapter-picker .yt-solution-stage {
    grid-template-areas: "media intro" "capabilities capabilities" "flow flow" "next next";
}

@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    .yt-chapter-flow::after {
        transform: scaleX(var(--yt-demo-progress, 1));
        transform-origin: left center;
    }
    .yt-chapter-picker[data-yt-demo-phase="0"] .yt-chapter-flow li:not(:first-child)::before,
    .yt-chapter-picker[data-yt-demo-phase="1"] .yt-chapter-flow li:last-child::before {
        background: var(--yt-chapter-line);
    }
    .yt-chapter-picker > .yt-pick-controls { position: relative; }
    .yt-chapter-picker > .yt-pick-controls::before,
    .yt-chapter-picker > .yt-pick-controls::after {
        content: "";
        position: absolute;
        z-index: 2;
        inset: 12px 4px 12px auto;
        width: 2px;
        border-radius: 2px;
        pointer-events: none;
    }
    .yt-chapter-picker > .yt-pick-controls::before { background: var(--yt-chapter-line); }
    .yt-chapter-picker > .yt-pick-controls::after {
        background: var(--yt-chapter-accent);
        transform: scaleY(var(--yt-chapter-progress, 0));
        transform-origin: top center;
    }
    .yt-chapter-art img { translate: 0 var(--yt-chapter-drift, 0px); scale: 1.075; }
    .yt-solution-exhibit .yt-stage-media-cover img { translate: 0 var(--yt-chapter-drift, 0px); scale: 1.14; }
    .yt-chapter-picker .yt-offer::before { background-position: 0 var(--yt-chapter-drift, 0px); }
}
@media (max-width: 767px) {
    .yt-chapter-picker .yt-solution-stage { grid-template-areas: "intro" "media" "capabilities" "flow" "next"; }
}
