.sl-page-guide {
    width: 100%;
    max-width: 70rem;
    min-width: 0;
    margin-inline: auto;
    color: inherit;
    overflow-wrap: anywhere;
    line-height: 1.65;
}
.sl-page-guide > section { display: flow-root; min-width: 0; padding-block: 1.5rem; border-top: 1px solid var(--sl-border, #cbd5e1); }
.sl-page-guide :is(h2,h3,h4,h5) { font-family: Georgia, serif; line-height: 1.15; margin: 0 0 .7em; }
.sl-page-guide h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
.sl-page-guide h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.sl-page-guide h4 { font-size: 1.2rem; }
.sl-page-guide p { margin: .65em 0; max-width: 76ch; }
.sl-page-guide img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.sl-page-guide figure { margin: 0; }
.sl-page-guide figcaption { font-size: .85em; margin-top: .5rem; }
.sl-page-guide a { text-decoration: underline; text-underline-offset: .18em; }
.sl-page-guide :is(ul,ol) { padding-inline-start: 1.4rem; }
.sl-page-guide ul { list-style: disc; }
.sl-page-guide ol { list-style: decimal; }
.sl-page-guide details { border-block-start: 1px solid var(--sl-border, #cbd5e1); }
.sl-page-guide summary { cursor: pointer; padding-block: .75rem; font-weight: 600; }
.sl-page-guide table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sl-page-guide :is(th,td) { border-bottom: 1px solid var(--sl-border, #cbd5e1); padding: .5rem; text-align: start; }
.sl-page-guide [data-layout="columns"] { display: grid; gap: 1rem; }
.sl-page-guide [data-layout="columns"] > * { min-width: 0; }
@media (min-width: 700px) {
    .sl-page-guide [data-layout="columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

/* Editorial blocks share these styles in the dashboard iframe and the listing. */
.sl-page-guide:has(> section > [data-layout|="editorial"]) {
    max-width: none;
}
.sl-page-guide > section:has(> [data-layout|="editorial"]) {
    padding-block: 0;
    border: 0;
}
.sl-page-guide > section + section:has(> [data-layout|="editorial"]) {
    margin-block-start: clamp(2rem, 4vw, 2.5rem);
}
.sl-page-guide [data-layout|="editorial"] {
    box-sizing: border-box;
    min-width: 0;
    border-top: 1px solid var(--sl-border, #e2e8f0);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    font: 400 1rem/1.5 var(--font-inter, system-ui, sans-serif);
    color: var(--sl-text, #12161b);

    & *, & *::before, & *::after { box-sizing: border-box; }
    & :is(h2,h3,h4,h5,p,dl,dd,figure,figcaption,ul,fieldset) { margin: 0; padding: 0; }
    & :is(h2,h3) { font-family: ui-serif, Georgia, serif; font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
    & h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
    & p, & dd { max-width: 68ch; color: var(--sl-guide-copy, #334155); font-size: .875rem; line-height: 1.75; }
    & :is(h4,dt) { line-height: 1.5; font-family: inherit; font-size: 1rem; font-weight: 600; }
    & figure { min-width: 0; }
    & img { display: block; width: 100%; height: 13rem; object-fit: contain; border-radius: .625rem; background: var(--sl-guide-image, #f1f5f9); }
    & figcaption { margin-top: .5rem; color: var(--sl-guide-caption, #475569); font: inherit; font-size: .75rem; line-height: 1.625; }

    &[data-layout="editorial-opening"] {
        display: grid; gap: 1rem 3rem; align-items: end;
        border-top: 3px solid currentColor; padding-top: clamp(1.25rem, 3vw, 2.5rem);
        & h2 { font-size: clamp(2.25rem, 5.3vw, 4.75rem); text-wrap: balance; }
        & h2 span { display: block; }
    }
    &:is([data-layout="editorial-design"],[data-layout="editorial-fit"],[data-layout="editorial-movement"]) {
        display: grid; gap: 1.25rem;
        & > div > * + * { margin-block-start: .75rem; }
    }
    &[data-layout="editorial-fit"] > div:last-child > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
    &:is([data-layout="editorial-models"],[data-layout="editorial-features"]) > * + * { margin-top: 1rem; }
    &[data-layout="editorial-features"] dl { display: grid; gap: 1.25rem; }
    &[data-layout="editorial-features"] dl > div { border-left: 2px solid #94a3b8; padding-left: .75rem; }
    &[data-layout="editorial-models"] {
        & ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem 1rem; list-style: none; }
        & img { height: 10rem; }
        & h4 { margin-top: .5rem; font-size: .875rem; }
        & li p { margin-top: .25rem; font-size: .75rem; color: var(--sl-guide-caption, #475569); }
    }
    @media (min-width: 640px) {
        & p, & dd { font-size: 1rem; line-height: 1.5; }
        & img { height: 16rem; }
        &[data-layout="editorial-features"] dl { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.75rem; }
    }
    @media (min-width: 700px) {
        &[data-layout="editorial-opening"] { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
    }
    @media (min-width: 1024px) {
        &[data-layout="editorial-design"] { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 2.5rem; }
        &[data-layout="editorial-movement"] { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: end; gap: 1.5rem; }
        &[data-layout="editorial-fit"] { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 1.5rem; }
        &[data-layout="editorial-models"] ul { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.25rem; }
    }
}
.dark .sl-page-guide { --sl-guide-copy: #e2e8f0; --sl-guide-caption: #cbd5e1; --sl-guide-image: #1e293b; }

.sl-page-guide [data-layout="editorial-comparison"] {
    & h3 { font-size: clamp(1.8rem, 3.8vw, 3.2rem); text-wrap: balance; }
    & > p { max-width: none; margin-block: .75rem 1.15rem; color: var(--sl-text-muted, #5c6570); line-height: 1.55; }
    & fieldset { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-width: 0; position: relative; border: 0; }
    & :is(legend, input, figcaption span span) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
    & label {
        position: relative; grid-row: 1; display: grid; place-items: center;
        padding: .65rem .25rem; min-height: 46px; cursor: pointer; text-align: center;
        font-size: clamp(.75rem, 1.65vw, 1rem); font-weight: 600; line-height: 1.25;
        color: var(--sl-text-muted, #5c6570); border-bottom: 1px solid var(--sl-border, #e0e4e9);
    }
    & label:has(input:checked) { color: inherit; box-shadow: inset 0 -3px currentColor; }
    & label:has(input:focus-visible) { outline: 2px solid #4486ac; outline-offset: -2px; }
    & [data-layout="panel"] { display: none; min-width: 0; grid-column: 1 / -1; grid-row: 2; }
    & label:has(input:checked) + [data-layout="panel"] { display: block; }
    & [data-layout="spread"] { display: grid; margin-top: 1rem; background: #193443; color: #f6f6f0; }
    & [data-layout="panel"]:nth-of-type(2) [data-layout="spread"] { background: #38433e; }
    & [data-layout="panel"]:nth-of-type(3) [data-layout="spread"] { background: #293955; }
    & [data-layout="plate"] {
        display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: center;
        padding: 1rem .5rem .8rem; text-align: center; color: #21333d;
        background: radial-gradient(ellipse at 50% 0%, #fcfcfa 18%, #e9eef0 90%);
        & figure { padding-inline: .25rem; }
        & figure + figure { border-inline-start: 1px solid #ccd5d9; }
        & img { height: clamp(8rem,19vw,15rem); background: transparent; }
        & figcaption { display: grid; gap: .14rem; margin: .45rem 0 0; color: inherit; }
        & figcaption strong { font-size: clamp(.85rem,1.4vw,1.08rem); line-height: 1.3; }
        & > span, & figcaption span:first-child { color: #465d67; font-size: .71rem; line-height: 1.45; }
        & figcaption > span:last-child { margin-top: .35rem; font: clamp(1.5rem,3vw,2.35rem)/1.1 Georgia,serif; }
        & > span { grid-column: 1 / -1; margin-top: .35rem; }
    }
    & [data-layout="story"] { display: grid; align-content: center; gap: 1rem; padding: clamp(1.15rem,3.4vw,3.25rem); }
    & [data-layout="story"] h4 { font: 400 clamp(1.75rem,3.2vw,2.9rem)/1.08 ui-serif,Georgia,serif; letter-spacing: -.04em; text-wrap: balance; }
    & [data-layout="story"] p, & [data-layout="notes"] p { font-size: clamp(.92rem,1.4vw,1rem); line-height: 1.65; }
    & [data-layout="story"] p { color: #e0e9eb; }
    & [data-layout="notes"] { display: grid; gap: 1.1rem 2.2rem; padding-block: 1.3rem; }
    & [data-layout="notes"] h5 { margin-bottom: .3rem; font-family: inherit; font-size: 1.05rem; font-weight: 650; }
    & [data-layout="notes"] p { max-width: 60ch; color: var(--sl-text-muted, #5c6570); }
    & [data-layout="specs"] { border-block: 1px solid var(--sl-border, #e0e4e9); font-size: .85rem; }
    & caption { text-align: start; padding-block: 1rem; font: 600 1.4rem Georgia,serif; }
    & thead { background: var(--sl-surface, #fdfdfe); }
    & tbody tr:nth-child(even) { background: color-mix(in srgb, var(--sl-border, #e0e4e9) 20%, transparent); }
    & :is(th,td) { padding: .6rem .35rem; border: 0; border-top: 1px solid var(--sl-border, #e0e4e9); }
    @media (min-width: 700px) {
        & [data-layout="spread"], & [data-layout="notes"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
        & [data-layout="notes"] { padding-block: 1.65rem; }
        & [data-layout="plate"] { padding: 1.4rem .8rem; }
    }
}

section:has(> .sl-content-shell > .sl-page-guide > section > [data-layout|="editorial"]) {
    padding-block: 2rem;
    @media (max-width: 639px) { --sl-page-gutter: 10px; }
    @media (min-width: 768px) { padding-block: 3rem; }
}
