/* Consistent document flow: vertical gaps must not depend on grid height. */
body.atelier-site .tool-section{row-gap:28px}
body.author-tools-page main>.tool-section{display:block;height:auto;min-height:0;padding-block:48px}
body.author-tools-page main>.tool-section>h2{margin-bottom:18px}
body.author-tools-page main>.tool-section>p{margin-bottom:22px}
body.author-tools-page main>.tool-section>form{margin-top:24px;max-width:100%;height:auto}
body.author-tools-page main>.tool-section>.tool-result{margin-block:24px}
body.author-tools-page .tool-columns{margin-top:26px;row-gap:28px;min-width:0}
body.author-tools-page .tool-columns>*{min-width:0}
body.author-tools-page .tool-section .actions{margin-top:20px;gap:12px}
body.author-tools-page .tool-section .actions .button{margin-top:0}
body.author-tools-page .tool-section label{margin-bottom:8px}
body.author-tools-page .tool-section form textarea{display:block;resize:vertical}
body.author-tools-page .tool-section>textarea{width:100%;display:block;max-width:100%}
body.atelier-site main>.section{padding-top:56px;padding-bottom:56px}
body.atelier-site .page-intro{padding-top:45px;padding-bottom:42px}
body.atelier-site .page-cta{position:relative;clear:both;gap:24px;padding-top:42px;padding-bottom:42px;margin:0}
body.atelier-site .page-cta>div{min-width:0}
body.atelier-site .page-cta h2{margin-bottom:16px}
body.atelier-site .page-cta p{margin-bottom:0;line-height:1.6;color:inherit}
body.atelier-site .page-cta .button{margin:0;white-space:normal}
body.atelier-site .about,body.atelier-site .atelier-section-head,body.atelier-site .atelier-media,body.atelier-site .atelier-founder,body.atelier-site .atelier-service-image,body.atelier-site .studio-listen,body.atelier-site .case-overview{row-gap:28px}
body.atelier-site .section-top,body.atelier-site .tool-fields{min-width:0;row-gap:20px}
body.atelier-site .section-top>*,body.atelier-site .tool-fields>*,body.atelier-site .nd-heading>*{min-width:0}
body.atelier-site main input,body.atelier-site main select,body.atelier-site main textarea{max-width:100%}
body.atelier-site main{overflow-wrap:break-word}
body.atelier-site h1,body.atelier-site h2{letter-spacing:-.025em}
body.atelier-site :is(.tool-section,.page-cta,.section)[id]{scroll-margin-top:135px}
body.nd-home .nd-hero{min-height:0;padding-top:35px;padding-bottom:40px;row-gap:28px}
body.nd-home .nd-heading{margin-bottom:28px}
body.nd-home .nd-section{padding-top:42px;padding-bottom:42px}
body.nd-home .nd-final{padding-top:40px;padding-bottom:40px}
@media(max-width:850px){
 body.author-tools-page main>.tool-section{padding-block:32px}
 body.atelier-site main>.section{padding-top:36px;padding-bottom:36px}
 body.atelier-site .page-intro{padding-top:32px;padding-bottom:28px}
 body.atelier-site .page-cta{padding-top:32px;padding-bottom:32px;flex-direction:column;align-items:flex-start}
 body.atelier-site .tool-section{grid-template-columns:minmax(0,1fr);row-gap:24px;column-gap:24px}
 body.atelier-site .nd-heading{gap:18px}
 body.nd-home .nd-section{padding-block:32px}
 body.nd-home .nd-hero{padding-top:28px;padding-bottom:32px}
 body.nd-home .nd-hero h1{margin-bottom:22px}
 body.atelier-site .nd-team-detail{right:0}
 body.atelier-site .tool-controls .actions{align-items:stretch}
}
/* Keep section boundaries stable while scrolling; animate individual cards only. */
body.atelier-site main>section.studio-enter{animation:none!important;transform:none!important;opacity:1!important}
body.atelier-site main>.tool-section>.text-link{display:inline-block;margin-top:18px}
body.atelier-site main>.tool-section>label{display:block;margin-top:20px}
body.nd-home .nd-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.bookproof-install>p:not(.eyebrow){max-width:720px}
@media(max-width:700px){body.nd-home .nd-tools-grid{grid-template-columns:1fr}}
/* Footer brand statement remains legible against the dark footer. */
body.atelier-site .studio-footer .footer-brand h3{color:#fff!important}
/* Shared footer headings on every page. */
body.atelier-site .studio-footer h3{color:#fff!important}
/* Phone layout: preserve native scrolling, readable controls and stable columns. */
@media(max-width:600px){
 body.atelier-site{width:100%;min-width:0}
 body.atelier-site .studio-header{grid-template-columns:68px minmax(0,1fr) auto!important;column-gap:10px!important;padding-inline:5%!important}
 body.atelier-site .studio-header .header-cta{font-size:12px!important;padding:10px 11px!important;white-space:nowrap}
 body.atelier-site .studio-header .primary-nav{max-width:100%;gap:20px!important;-webkit-overflow-scrolling:touch}
 body.atelier-site .studio-footer{padding:35px 6% 24px}
 body.atelier-site .footer-top{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 20px!important;align-items:start}
 body.atelier-site .footer-top>.footer-brand{grid-column:1/-1}
 body.atelier-site .footer-top>div:last-child{grid-column:1/-1}
 body.atelier-site .studio-footer h3{font-size:21px;line-height:1.3;margin-bottom:15px}
 body.atelier-site .studio-footer .footer-brand h3{max-width:300px}
 body.atelier-site .studio-footer a,body.atelier-site .studio-footer p{overflow-wrap:anywhere}
 body.atelier-site .studio-footer a{font-size:14px;line-height:1.6}
 body.atelier-site .footer-bottom{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;margin-top:28px;padding-top:20px}
 body.atelier-site .footer-bottom>p{width:100%;margin:0}
 body.atelier-site .nd-heading{display:block!important}
 body.atelier-site .nd-heading>p{max-width:100%}
 body.interface-home.nd-home .nd-hero{padding:28px 6% 30px;gap:22px}
 body.interface-home.nd-home .nd-hero h1{font-size:clamp(34px,9.2vw,43px);line-height:1.12}
 body.interface-home.nd-home .nd-hero .nd-lead{font-size:16px}
 body.interface-home.nd-home .nd-actions{gap:10px;flex-wrap:wrap}
 body.interface-home.nd-home .nd-actions>.nd-button{flex:1 1 145px;padding:13px 15px}
 body.interface-home.nd-home .nd-blend-images{aspect-ratio:1.5}
 body.interface-home.nd-home .nd-slider-bar{padding:0;align-items:center;gap:10px}
 body.interface-home.nd-home .nd-slider-bar p{font-size:15px;max-width:180px}
 body.interface-home.nd-home .nd-slide-controls button{width:32px;height:32px}
 body.interface-home.nd-home .nd-package-grid,body.interface-home.nd-home .nd-review-grid{grid-template-columns:minmax(0,1fr)!important}
 body.interface-home.nd-home .nd-package h3{min-height:0}
 body.interface-home.nd-home .interface-feature{gap:22px}
 body.interface-home.nd-home .interface-feature-art img{aspect-ratio:1.35}
 body.interface-home.nd-home .nd-count-card h3{font-size:14px!important}
 body.atelier-site .assistant-launch{font-size:12px;padding:12px 15px}
 body.atelier-site .studio-assistant{right:12px;bottom:12px}
 body.author-tools-page .tool-columns{grid-template-columns:minmax(0,1fr)!important}
 body.author-tools-page #cover-canvas{position:static!important;grid-row:1;max-width:100%}
 body.atelier-site .actions{gap:12px}
}
@media(max-width:360px){body.atelier-site .studio-header .header-cta{font-size:11px!important;padding:9px!important}.interface-glass-toolbar{flex-wrap:wrap}.nd-slider-bar{flex-wrap:wrap}}
@media(max-width:600px){body.atelier-site .studio-header .primary-nav{flex-wrap:nowrap!important;overflow-x:auto!important;justify-content:flex-start!important}body.atelier-site .studio-header .primary-nav a{flex:0 0 auto!important}}
body.atelier-site .studio-footer .studio-threads-link{display:block;margin-top:14px;color:#fff!important;font-size:14px;line-height:1.6;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}
body.atelier-site .studio-footer .studio-threads-link:hover{color:#e9ecf2!important}

/* Readable crawlable directory and contextual guide links. */
.seo-related ul{padding-left:1.25rem;max-width:70ch}.seo-related li{margin:.65rem 0;line-height:1.65}.seo-related a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
