/* Layout only. Page IDs, project colors and forced typography are excluded. */
.gt-sl-section{--gt-sl-gap:clamp(24px,4vw,64px);--gt-sl-offset:80px;--gt-sl-surface:#f2f2f2;}
/* Own section vertical rhythm once; leave theme horizontal gutters intact. */
.gt-sl-section.wp-block-columns.gt-sl-section{margin-block:0;padding-block:clamp(16px,6vw,80px);}
.gt-sl-section>.gt-sl-body{min-width:0;display:block;}
.gt-sl-section .wp-block-column{min-width:0;}
.gt-sl-section .gt-sl-pair,.gt-sl-section .gt-sl-overlap{gap:var(--gt-sl-gap);align-items:center;flex-wrap:nowrap;}
.gt-sl-section .gt-sl-pair+.gt-sl-pair{margin-top:80px;}
.gt-sl-section .gt-sl-reverse{flex-direction:row-reverse;}
.gt-sl-section>.gt-sl-body>h2{margin-block:0 32px;}
.gt-sl-section h3{text-wrap:pretty;}
.gt-sl-section :where(h3){font-size:clamp(22px,2.4vw,32px);line-height:1.5;}
.gt-sl-section :where(.gt-sl-number){font-size:48px;line-height:1.2;font-weight:700;}
.gt-sl-section :where(figure){margin:0;}
.gt-sl-section :where(figure img){width:100%;height:auto;display:block;}
.gt-sl-section .gt-sl-image-group{gap:16px;flex-wrap:nowrap;align-items:flex-start;}
.gt-sl-section .gt-sl-image-group>.wp-block-column:nth-child(2){margin-top:var(--gt-sl-offset);}
.gt-sl-r07 .gt-sl-pair{flex-direction:row-reverse;}
.gt-sl-r12 .gt-sl-pair{align-items:flex-start;}
.gt-sl-r12 .gt-sl-pair+.gt-sl-pair{margin-top:calc(-1 * var(--gt-sl-offset));}
.gt-sl-r12 .gt-sl-pair+.gt-sl-pair>.gt-sl-copy{padding-top:calc(var(--gt-sl-offset) + 40px);}
.gt-sl-r12 .gt-sl-media img{aspect-ratio:3/4;object-fit:cover;}
.gt-sl-r12 .gt-sl-media figure{max-width:360px;margin-inline:auto;}
.gt-sl-section .gt-sl-stagger,.gt-sl-section .gt-sl-steps{gap:40px;align-items:flex-start;flex-wrap:nowrap;}
.gt-sl-section .gt-sl-stagger>.wp-block-column:nth-child(2){margin-top:var(--gt-sl-offset);}
.gt-sl-section .gt-sl-stagger>.wp-block-column:nth-child(3){margin-top:40px;}
.gt-sl-section .gt-sl-overlap{flex-direction:row-reverse;gap:0;}
.gt-sl-section .gt-sl-overlap>.gt-sl-copy{position:relative;z-index:1;padding:32px;margin-left:-32px;margin-top:80px;}
.gt-sl-section .gt-sl-overlap>.gt-sl-copy:not(.has-background){background:var(--gt-sl-surface);}
.gt-sl-section .gt-sl-step{position:relative;}
.gt-sl-section .gt-sl-step figure{max-width:280px;margin-inline:auto;}
.gt-sl-section .gt-sl-step+.gt-sl-step:before{content:'→';position:absolute;left:-30px;top:60px;}
@media(max-width:781px){
 .gt-sl-section .gt-sl-pair,.gt-sl-section .gt-sl-overlap,.gt-sl-section .gt-sl-stagger,.gt-sl-section .gt-sl-steps{flex-direction:row;gap:32px;}
 .gt-sl-section .gt-sl-pair>.wp-block-column,.gt-sl-section .gt-sl-overlap>.wp-block-column,.gt-sl-section .gt-sl-stagger>.wp-block-column,.gt-sl-section .gt-sl-steps>.wp-block-column{width:100%;}
 .gt-sl-section .gt-sl-image-group>.wp-block-column:nth-child(2),.gt-sl-section .gt-sl-stagger>.wp-block-column:nth-child(n){margin-top:0;}
 .gt-sl-r12 .gt-sl-pair+.gt-sl-pair{margin-top:48px;}
 .gt-sl-r12 .gt-sl-pair+.gt-sl-pair>.gt-sl-copy{padding-top:0;}
 .gt-sl-r12 .gt-sl-media img{aspect-ratio:4/3;}
 .gt-sl-section .gt-sl-overlap>.gt-sl-copy{margin:0;padding:24px;}
 .gt-sl-section .gt-sl-steps{gap:64px;}
 .gt-sl-section .gt-sl-step+.gt-sl-step:before{content:'↓';left:50%;top:-44px;}
 .gt-sl-section .gt-sl-image-group{flex-wrap:nowrap;}
}


/* Shared chapter flow: outer stack only; inner cards and offset layouts keep their rhythm. */
.gt-sl-section.wp-block-columns:not(.gt-sl-sec04,.gt-sl-r07,.gt-sl-r11,.gt-sl-r12,.gt-sl-r14,.gt-sl-r08,.gt-sl-r18)>.gt-sl-body{display:flex;flex-direction:column;min-width:0;gap:var(--gt-sl-stack-gap,40px);}
.gt-sl-section.wp-block-columns:not(.gt-sl-sec04,.gt-sl-r07,.gt-sl-r11,.gt-sl-r12,.gt-sl-r14,.gt-sl-r08,.gt-sl-r18)>.gt-sl-body>:where(h1,h2,h3,h4,h5,h6,p,figure,ul,ol,.wp-block-buttons,.gt-sl-003-pair,.gt-sl-003-closing,.gt-sl-005-pair,.gt-sl-006-grid,.gt-sl-009-grid,.gt-sl-008-axis,.gt-sl-029-pair){margin-block:0;}

/* Nested content columns use the same vertical rhythm. Slots retain equal-height card layout. */
.gt-sl-section.wp-block-columns .wp-block-column.wp-block-column:not(:where(.gt-sl-body,.gt-sl-006-slot,.gt-sl-009-slot,.gt-sl-007-item)){display:flex;flex-direction:column;min-width:0;gap:var(--gt-sl-stack-gap,40px);}
.gt-sl-section.wp-block-columns .wp-block-column.wp-block-column:not(:where(.gt-sl-body,.gt-sl-006-slot,.gt-sl-009-slot,.gt-sl-007-item))>:where(h1,h2,h3,h4,h5,h6,p,figure,ul,ol,.wp-block-buttons,.wp-block-table,.wp-block-columns){margin-block:0;}
/* Symbol/text rows retain grid placement; only the vertical gap changes. */
.gt-sl-section.wp-block-columns .gt-sl-007-row>.gt-sl-007-item{row-gap:var(--gt-sl-stack-gap,40px);}

/* Shared list rhythm: preserve native list markers and indentation. */
.gt-sl-section.wp-block-columns :is(ul,ol).wp-block-list,
.gt-sl-section.wp-block-columns .wp-block-list :is(ul,ol){display:flex;flex-direction:column;row-gap:var(--gt-sl-list-gap,16px);}
.gt-sl-section.wp-block-columns :is(ul,ol).wp-block-list>li,
.gt-sl-section.wp-block-columns .wp-block-list :is(ul,ol)>li{margin-block:0;}
.gt-sl-section.wp-block-columns .wp-block-list li>:is(ul,ol){margin-block:var(--gt-sl-list-gap,16px) 0;}

/* Shared art direction for two existing editable image blocks. */
.gt-sl-section .gt-sl-responsive-media-host{container-type:inline-size;container-name:gt-sl-media;}
.gt-sl-section .gt-sl-media-wide{display:block;width:100%;max-width:900px;margin-inline:auto;}
.gt-sl-section .gt-sl-media-narrow{display:none;width:100%;max-width:360px;margin-inline:auto;}
.gt-sl-section :is(.gt-sl-media-wide,.gt-sl-media-narrow) img{display:block;width:100%;height:auto;object-fit:contain;}
@container gt-sl-media (max-width:559px){
 .gt-sl-section .gt-sl-media-wide{display:none;}
 .gt-sl-section .gt-sl-media-narrow{display:block;}
}

/* Mobile nested content rhythm: 16px up to 781px. */
@media(max-width:781px){
 .gt-sl-section.wp-block-columns .wp-block-column.wp-block-column:not(:where(.gt-sl-body,.gt-sl-006-slot,.gt-sl-009-slot,.gt-sl-007-item)){gap:16px;}
}
