/* Shared layout rules: content stays in flow at every viewport and text size. */
html{scroll-padding-top:24px}
header{position:relative;top:auto;background:var(--bg);backdrop-filter:none}
header .bar{flex-wrap:wrap;gap:16px 24px}
header .logo{flex:none}
header .desktop-nav{display:flex;flex-wrap:wrap;white-space:normal;margin:0 auto 0 0;gap:12px 20px}
header .desktop-nav a:after{bottom:-10px}
header .actions{flex-wrap:wrap;gap:4px;margin-left:auto;max-width:100%;min-width:0}
header .actions .btn{white-space:normal}
.install-strip{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:16px;scroll-margin-top:24px}
.install-strip>div{min-width:0;overflow-wrap:anywhere}
.install-strip .btn{margin:0;white-space:normal}
.section-heading{justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:18px 28px}
.section-heading>div{min-width:0;max-width:58ch}
.section-heading .btn{flex:none;white-space:normal;max-width:100%}
.department-card>span:not(.department-icon){min-width:0;overflow-wrap:anywhere}
.demo-banner{height:auto;min-height:35px;flex-wrap:wrap;padding-block:8px}
.founding-banner>*,.kigo-concierge>*,.help-paths>*,.campaign-layout>*{min-width:0}
.founding-banner .row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.founding-banner .row>.btn{flex:0 1 auto}
.local-discovery input,.local-discovery select{min-width:0;max-width:100%;font-size:16px}
.local-discovery .btn{white-space:normal}
.local-discovery .note{line-height:1.65}
dialog{max-width:calc(100% - 24px)}
.sheet{max-width:100%;min-width:0}
.sheet>p.eyebrow:first-of-type{padding-right:44px;overflow-wrap:anywhere}
.sheet :is(input,select,textarea){max-width:100%;min-width:0}
.sheet .row>.btn{min-width:0;max-width:100%;overflow-wrap:anywhere}
.sheet .two,#ad-form .two{grid-template-columns:repeat(2,minmax(0,1fr))}
.provider-mark,.account-avatar{flex-shrink:0}
.aihead>div,.signed-in>div{min-width:0}
.aihead small{overflow-wrap:anywhere}
.help-paths{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.mobile-nav{isolation:isolate}
@media(max-width:1240px) and (min-width:701px){
 header .desktop-nav{order:3;flex-basis:100%;border-top:1px solid var(--line);padding-top:12px}
 header .desktop-nav a:after{bottom:-7px}
}
@media(max-width:700px){
 header .bar{flex-wrap:nowrap;gap:12px}
 header .desktop-nav{display:none}
 header .actions{width:auto;flex:0 1 auto;border:0;margin:0 0 0 auto;padding:0;justify-content:flex-end}
 header .actions #btn-messages{display:none}
 .install-strip{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:16px}
 .install-strip .btn{grid-column:1/-1;justify-self:stretch}
 .install-strip img{width:40px;height:40px}
 .install-strip strong{font-size:15px;line-height:1.4}
 .install-strip p{font-size:13px;line-height:1.5}
 .section-heading{align-items:flex-start;gap:14px}
 .section-heading>div{flex-basis:100%}
 .department-card b{overflow-wrap:anywhere}
 .sheet .two,#ad-form .two{grid-template-columns:1fr}
 .local-discovery{grid-template-columns:repeat(2,minmax(0,1fr))}
 .local-discovery>.location-picker{grid-column:1/-1}
 .mobile-nav button{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:380px){
 .local-discovery{grid-template-columns:1fr}
 .local-search-actions{flex-direction:column}
 .departments{grid-template-columns:1fr}
 .department-card{flex-direction:row;text-align:left;padding:14px;gap:14px}
 .department-card small{max-width:none}
 .logo{font-size:24px!important}
}

/* Selling hierarchy: distinct sections with generous, predictable rhythm. */
#sell .sheet{padding:clamp(22px,4vw,38px);background:#fafaf7}
#sell .sell-intro{padding:26px;background:linear-gradient(135deg,#234e42,#112e28);color:#fff;border-radius:22px;margin:20px 0 26px}
#sell .sell-intro .eyebrow{color:#ffcf59;font-size:10px;letter-spacing:.16em;padding:0}
#sell .sell-intro h2{font-size:clamp(27px,4vw,36px);letter-spacing:-.035em;line-height:1.15;margin:10px 0 14px}
#sell .sell-intro p:last-child{font-size:14px;line-height:1.6;color:#e1ebe4;margin:0;max-width:40ch}
.sell-flow-label{display:flex;align-items:center;gap:12px;padding:24px 0 12px;margin-top:16px;border-top:1px solid #dfe5db;color:#173e35}
.sell-flow-label span{font-size:11px;font-weight:700;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e8efdf;flex:none}
#sell .f{margin-top:18px}#sell :is(input,textarea,select){background:#fff;border-color:#d7dfd7;border-radius:12px}
#sell .photo-upload{background:#edf3e8;border:1px dashed #aabbac;border-radius:16px;padding:20px}
#sell #s-post{min-height:52px;background:#173e35;border-color:#173e35;margin-top:16px}
#sell .sell-intro + .sell-flow-label{border:0;margin-top:0;padding-top:0}
