/* Block wrappers preserve the accepted composition. Native controls remain editable. */
.toyo-editable-home .wp-block-group__inner-container{display:contents}
.toyo-editable-home .rapid-quote-card{margin:30px 0}
.toyo-editable-home .rapid-quote-card h2{font-size:22px;line-height:1.2;margin:0 0 10px}
.toyo-editable-home .rapid-quote-card h2+p{font-size:14px;line-height:1.5;margin:0 0 18px}
@media(max-width:740px){.toyo-editable-home .rapid-quote-card{margin:30px 0 0}.toyo-editable-home .rapid-quote-card h2{font-size:23px}.toyo-editable-home .rapid-quote-card h2+p{font-size:13px;margin-bottom:20px}}
.toyo-editable-home :where(.wp-block-group,.wp-block-image,.wp-block-buttons,.wp-block-button){margin-block:0}
.toyo-editable-home .rapid-backdrop{margin:0;width:100%;height:100%}
.toyo-editable-home .rapid-backdrop picture{display:block;width:100%;height:100%}
.toyo-editable-home .rapid-photo-card>.wp-block-image{margin:0}
.toyo-editable-home .rapid-editable-link{margin:0}
.toyo-editable-home :is(.rapid-model-grid,.rapid-service-links)>.rapid-editable-link{display:contents}
.toyo-editable-home .rapid-service-badges .wp-block-toyo-link-card{display:flex;align-items:center;gap:15px}
.toyo-editable-home .rapid-service-badges p{margin:0;color:inherit}
.toyo-editable-home .wp-block-button.rapid-button{padding:0;background:transparent;border:0;min-height:0}
.toyo-editable-home .rapid-button>.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:13px 24px;border-radius:4px;background:var(--rapid-red);color:#fff;text-decoration:none;font:inherit;font-weight:700;border:1px solid var(--rapid-red)}
.toyo-editable-home .rapid-button-dark>.wp-block-button__link{background:#202020;border-color:#202020}
.toyo-editable-home .rapid-button-white>.wp-block-button__link{background:#fff;border-color:#fff;color:#202020}
.toyo-editable-home .rapid-button-outline>.wp-block-button__link{background:transparent;border-color:#202020;color:#202020}
.toyo-editable-home .rapid-accordion summary:after{content:'+';font-size:22px;line-height:1}
.toyo-editable-home .rapid-accordion details[open]>summary:after{content:'−'}
.toyo-editable-home .rapid-contact-phone p{margin:0;font:inherit;line-height:1.3}
.toyo-editable-home .rapid-contact-phone small{display:block}
.toyo-editable-home .rapid-band-symbols .wp-block-toyo-icon{flex:0 0 auto}
.editor-styles-wrapper .toyo-editor-native-form{border:1px dashed #777;background:#f4f4f4;color:#202020;padding:20px;font-size:14px}
.editor-styles-wrapper .toyo-editor-native-form p{color:#202020;font-size:14px}
.editor-styles-wrapper .toyo-editor-icon{min-width:80px;max-width:180px;color:#202020;background:#fff;border:1px dashed #aaa;padding:8px}
.editor-styles-wrapper .rapid-hero{overflow:visible}
.editor-styles-wrapper .rapid-backdrop{pointer-events:auto}
.editor-styles-wrapper .rapid-hero-grid>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:30px}
.editor-styles-wrapper .rapid-pitch{position:relative;z-index:1}
.editor-styles-wrapper .wp-block-toyo-link-card{color:inherit}
@media(max-width:740px){.toyo-editable-home .rapid-button>.wp-block-button__link{font-size:13px;padding:12px 18px}.toyo-editable-home .rapid-service-badges .wp-block-toyo-link-card{gap:10px}}

/* Inner-page pilot: preserve the existing theme grid around native controls. */
.toyo-editable-inner .wp-block-group__inner-container{display:contents}
.toyo-editable-inner :where(.wp-block-group,.wp-block-image,.wp-block-button){margin-block:0}
.toyo-editable-inner .breadcrumb p{display:inline;margin:0}
.toyo-editable-inner .breadcrumb p+p:before{content:" ";white-space:pre}
.toyo-editable-inner .actions p{margin:0}
.toyo-editable-inner .actions .wp-block-button.button{padding:0;border:0;background:transparent;min-height:0;box-shadow:none}
.toyo-editable-inner .actions .wp-block-button.button>.wp-block-button__link{display:flex;align-items:center;justify-content:center;min-height:50px;padding:14px 22px;border:1px solid rgb(181,46,33);border-radius:5px;background:rgb(181,46,33);color:#fff;font-size:13px;font-weight:750;text-decoration:none}
.toyo-editable-inner .next-step .wp-block-button.button{display:inline-flex;padding:0;border:0;background:transparent;min-height:0;box-shadow:none}
.toyo-editable-inner .next-step .wp-block-button.button>.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:14px 22px;border:1px solid rgb(181,46,33);border-radius:5px;background:rgb(181,46,33);color:#fff;font-size:13px;font-weight:750;text-decoration:none}
.toyo-editable-inner .scope-strip p{font:inherit;letter-spacing:.08em;text-transform:uppercase;margin:0}
.toyo-editable-inner .scope-strip p:before{content:"·";margin-right:8px;color:var(--red)}
.toyo-editable-inner .guide-nav p{margin:0}
.toyo-editable-inner .guide-nav .toyo-editable-direct-link{margin:0}
.toyo-editable-inner .article>.wp-block-group__inner-container{display:contents}

/* Inner-page quote uses a white native form surface inside a dark section. */
.toyo-editable-inner #quote .rapid-native .afb-form-wrap{background:#fff!important;color:#242823!important;box-sizing:border-box}
body:not(.page-id-29) .toyo-editable-inner #quote .rapid-native .afb-form-wrap{padding:clamp(16px,2vw,24px)!important;border:1px solid #e4e3dd;border-radius:8px;box-shadow:0 8px 28px rgba(0,0,0,.12)}
.toyo-editable-inner #quote .rapid-native .afb-field-label{color:#242823!important}
.toyo-editable-inner #quote .rapid-native .afb-field-label span{color:#a72b20!important}

.toyo-editable-inner .next-step .wp-block-button.button>.wp-block-button__link:focus-visible{outline:3px solid #fff;outline-offset:5px;scroll-margin-block-end:96px}

/* Contact: the block editor inserts group containers between the dark quote section and its form panel. */
body.page-id-29 .toyo-editable-inner #quote .wp-block-group.quote-fields{box-sizing:border-box;min-width:0;padding:clamp(20px,2.4vw,30px);border:1px solid #e4e3dd;border-radius:8px;background:#fff;color:#242823;box-shadow:0 8px 28px rgba(0,0,0,.12)}
body.page-id-29 .toyo-editable-inner #quote .rapid-native .afb-form-wrap{background:transparent!important;color:#242823!important}
body.page-id-29 .toyo-editable-inner #quote .rapid-native .afb-progress{margin-bottom:20px!important}
body.page-id-29 .toyo-editable-inner #quote .rapid-native .afb-progress-meta{font-size:13px!important;line-height:1.45!important;color:#4b514b!important}
body.page-id-29 .toyo-editable-inner #quote .rapid-native .afb-field-label{font-size:14px!important;line-height:1.45!important;margin:0 0 7px!important;color:#242823!important}
body.page-id-29 .toyo-editable-inner #quote .rapid-native .afb-row{gap:16px!important}
body.page-id-29 .toyo-editable-inner #quote .rapid-native.quote-fields :is(input:not([type=hidden]),select,textarea){min-height:48px!important;font-size:16px!important}
body.page-id-29 .toyo-editable-inner #quote .rapid-native .afb-step-next{min-height:48px!important}
@media(max-width:740px){body.page-id-29 .toyo-editable-inner #quote{padding:18px!important}body.page-id-29 .toyo-editable-inner #quote .wp-block-group.quote-fields{padding:18px}body.page-id-29 .toyo-editable-inner #quote .rapid-native .afb-row{gap:15px!important}}
/* Services draft 640 only: restore the published page's rhythm and readable native controls. */
body:is(.page-id-640,.page-id-112) .toyo-editable-inner .breadcrumb{margin-bottom:26px}
body:is(.page-id-640,.page-id-112) .toyo-editable-inner .scope-strip{margin-top:55px;min-height:75px}
body:is(.page-id-640,.page-id-112) .toyo-editable-inner #quote{margin-top:65px}
body:is(.page-id-640,.page-id-112) .toyo-editable-inner .content-layout{margin-top:70px;margin-bottom:80px}
body:is(.page-id-640,.page-id-112) .toyo-editable-inner #quote .wp-block-group.quote-fields{box-sizing:border-box;min-width:0;padding:28px;background:#fff;color:#242823}
body:is(.page-id-640,.page-id-112) .toyo-editable-inner #quote .rapid-native .afb-form-wrap{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body:is(.page-id-640,.page-id-112) .toyo-editable-inner #quote .rapid-native .afb-field-label{font-size:14px!important;line-height:1.45!important;margin:0 0 6px!important}
body:is(.page-id-640,.page-id-112) .toyo-editable-inner #quote .rapid-native .afb-row{gap:14px!important}
body:is(.page-id-640,.page-id-112) .toyo-editable-inner #quote .rapid-native :is(input:not([type=hidden]),select,textarea){min-height:52px!important;font-size:16px!important}
body:is(.page-id-640,.page-id-112) .toyo-editable-inner #quote .rapid-native .afb-step-next{min-height:52px!important}
body:is(.page-id-640,.page-id-112) .toyo-editable-inner .service-grid .service-card p{margin:0;color:inherit}
body:is(.page-id-640,.page-id-112) .toyo-editable-inner .service-grid .service-card :is(strong,span){color:inherit}
@media(max-width:740px){body:is(.page-id-640,.page-id-112) .toyo-editable-inner .breadcrumb{margin-bottom:24px}body:is(.page-id-640,.page-id-112) .toyo-editable-inner .scope-strip{margin-top:51px}body:is(.page-id-640,.page-id-112) .toyo-editable-inner #quote{margin-top:34px}body:is(.page-id-640,.page-id-112) .toyo-editable-inner #quote .wp-block-group.quote-fields{padding:22px}body:is(.page-id-640,.page-id-112) .toyo-editable-inner .content-layout{margin-top:44px;margin-bottom:56px}}body:is(.page-id-640,.page-id-112) .toyo-editable-inner .guide-nav a{text-transform:none;color:#202020}
