/* Homepage sections share one rhythm, including feeds inside deferred wrappers. */
.ace-shell--home .ace-home-content{--home-section-space:clamp(28px,4cqi,44px)}
.ace-shell--home .ace-home-content>:is(.ace-home-featured,.ace-home-categories,.ace-home-contribute,.ace-view-deferred:has(>.ace-community),.ace-home-discovery){margin-block:var(--home-section-space) 0!important}
.ace-shell--home .ace-home-content>.ace-home-days{padding-bottom:0!important}
.ace-shell--home .ace-home-content :is(.ace-coming-up__head h2,.ace-deck-band__head h2,.aln__heading,.ace-boosted__heading,.ace-home-categories h2,.ace-community__head h2,.ace-discovery-heading h2){font-size:clamp(1.35rem,3cqi,1.8rem)!important;line-height:1.2;letter-spacing:-.02em;text-align:left;text-wrap:balance}
.ace-shell--home .ace-coming-up{margin-top:var(--home-section-space);padding-top:24px}
.ace-shell--home .ace-coming-up__head{align-items:flex-start;gap:.5rem 1.5rem;margin-bottom:20px}
.ace-shell--home .ace-coming-up__head p{max-width:40ch;line-height:1.5}

/* News keeps an edge-to-edge background; its text follows the main content line. */
.ace-shell--home .ace-home-days .aln{box-sizing:border-box;width:100%;max-width:none;margin:var(--home-section-space) 0 0!important;padding:clamp(24px,4cqi,40px) var(--home-gutter);border-block:1px solid var(--shell-line);background:var(--shell-panel)}
.ace-shell--home .aln .aln__feed{box-sizing:border-box;width:min(100%,var(--home-wrap));max-width:var(--home-wrap);margin-inline:auto;padding:0;border:0;background:none}
.ace-shell--home .aln__heading{margin:0 0 12px}
.ace-shell--home .aln__via{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-bottom:20px}
.ace-shell--home .aln__list--ext{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;padding:0}
.ace-shell--home .aln__list--ext>li{box-sizing:border-box;min-width:0;margin:0;padding:16px;border:1px solid var(--shell-line);border-radius:12px;background:var(--shell-card)}
.ace-shell--home .aln__ext>a{display:block;margin-block:8px;color:var(--shell-ink);font-size:.95rem;line-height:1.45;font-weight:650;text-decoration:none}
.ace-shell--home .aln__ext>a:is(:hover,:focus-visible){color:var(--shell-accent);text-decoration:underline;text-underline-offset:3px}
.ace-shell--home .aln__more{margin:20px 0 0}
@container home-content (min-width:620px){.ace-shell--home .aln__list--ext{grid-template-columns:repeat(2,minmax(0,1fr))}}

.ace-shell--home .ace-home-content>.ace-home-featured.ace-home-featured{padding:24px var(--home-gutter)!important}
.ace-shell--home .ace-home-featured .ace-boosted__heading{margin-bottom:20px;text-align:left}
.ace-shell--home .ace-home-featured .ace-boosted__grid{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))}
.ace-shell--home .ace-home-categories h2{max-width:none;width:auto}
.ace-shell--home .ace-home-categories .wp-block-buttons{margin-top:20px}
.ace-shell--home .ace-home-contribute .wp-block-button__link{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.ace-shell--home .ace-community__grid{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:16px}
.ace-shell--home .ace-community__col{padding:20px;border-radius:14px}
.ace-shell--home .ace-community__head{margin-bottom:20px}
.ace-shell--home .ace-community__list{gap:16px}
.ace-shell--home .ace-community__list li+li{padding-top:16px;border-top:1px solid var(--shell-line)}
.ace-shell--home .ace-community__meta{line-height:1.5}

/* Four discoveries form two balanced rows on a normal centre panel. */
.ace-shell--home .ace-discovery-grid{grid-template-columns:minmax(0,1fr)}
.ace-shell--home .ace-discovery-heading{align-items:center;gap:16px;margin-bottom:20px}
.ace-shell--home .ace-discovery-heading h2{margin-block:6px 10px;font-family:inherit}
.ace-shell--home .ace-discovery-section{padding-block:24px 0}
.ace-shell--home .ace-discovery-section+.ace-discovery-section{margin-top:32px;padding-block:32px 16px}
.ace-shell--home .ace-discovery-card{gap:10px;background:var(--shell-card)}
.ace-shell--home .ace-discovery-card h3{font-size:1.05rem;line-height:1.4;font-family:inherit}
.ace-shell--home .ace-discovery-image{overflow:hidden;border-radius:8px}
@container home-content (min-width:520px){.ace-shell--home .ace-discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container home-content (min-width:1150px){.ace-shell--home .ace-discovery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.ace-shell--home .ace-discovery-grid:has(>.ace-discovery-card:only-child){grid-template-columns:minmax(0,1fr)}

/* The article deck can fan to the panel edges, but its heading follows the wrapper. */
.ace-shell--home .ace-home-days .ace-deck-band{margin-block:var(--home-section-space) 0;padding-top:0}
.ace-shell--home .ace-deck-band--wide :is(.ace-deck-band__head,.ace-deck__nav){width:min(calc(100% - 2 * var(--home-gutter)),var(--home-wrap));max-width:var(--home-wrap);margin-inline:auto}
.ace-shell--home .ace-deck-band__head{align-items:center;gap:12px 20px;margin-bottom:16px}
.ace-shell--home .ace-deck-band__head p{line-height:1.5}
.ace-shell--home .ace-deck-band--wide .ace-deck__track{--pad:max(var(--home-gutter),(100cqw - var(--home-wrap)) / 2)}
.ace-restyle .ace-shell--home .ace-home-discovery{border-top:0;padding-top:0}
@container home-content (max-width:519px){
 .ace-shell--home .ace-discovery-heading{flex-direction:column;align-items:flex-start}
 .ace-shell--home .ace-discovery-heading>div{flex:none;width:100%}
}
.ace-workspace-page[data-ace-theme=light] .ace-shell--home .aln__src{color:var(--shell-muted)}
