/* Shared responsive finishing rules for the Gelasio / Inter system. */
body.type-system .type-display,body.type-system .type-dialog-title{padding-bottom:.12em}
body.type-system :is(.journey-step-title,.journey-row-heading,.journey-row-route,.journey-world-heading,.journey-route-title,.journey-endless-title){font-family:Gelasio,serif;font-weight:700}
@media(max-width:800px){
 body.type-system :is(.btn,.pill-cta,.menu-toggle,.mega>summary,.case-slide-nav button,.story-close,.campaign-dialog-close,.audit-close,.spark-journey-toggle,.spark-flow-toggle,.filter-tabs button){min-height:44px}
 body.type-system :is(.audit-native-form input,.audit-native-form select,.contact-form input,.contact-form textarea,.hero-chat textarea){font-size:16px!important}
 body.type-system .audit-native-layout{gap:24px}
 body.type-system .audit-native-form-panel{min-width:0}
 body.type-system .audit-native-submit{white-space:normal}
 body.type-system .brand-spark-summary-grid h3{min-height:0}
 body.type-system .core-hero-actions{align-items:stretch}
 body.type-system .core-hero-actions>.btn{justify-content:center}
}
@media(max-width:650px){
 .embedded-motion .motion-stage{height:auto!important;aspect-ratio:16/10}
 .embedded-motion .brand-window{left:4%;width:92%}
 .embedded-motion .guide-screen{object-fit:contain}
 .embedded-motion .scene-controls{padding:0 10px;gap:12px}
 .embedded-motion .scene-controls button{min-height:58px}
 .embedded-motion .scene-controls button>span{font-size:11px;line-height:1.4;white-space:normal}
 .embedded-motion .motion-footnote{padding:0 10px;font-size:11px}
}
@media(max-width:380px){
 body.type-system .core-hero-actions>.btn{width:100%}
 body.type-system .core-hero>.core-hero-copy>.type-eyebrow{font-size:10px!important}
 body.type-system .header .logo img{max-width:165px}
 body.type-system .audit-native-dialog .audit-modal-head .logo img{max-width:145px}
}
body.embedded-motion{background:#111019;color:#eee8f0;min-height:100vh}
body.embedded-motion .motion-footnote{color:#b9adc2}
@media(max-width:650px){body.embedded-motion .motion-stage{aspect-ratio:1/1}.embedded-motion .scene-controls button{color:#c5b6ce}.embedded-motion .scene-controls button.selected{color:#fff}}
/* Preserve intentional breaks; hiding a br can join two words into one. */
body.type-system :is(h1,h2,h3,h4) br{display:initial!important}
@media(max-width:600px){
 .campaign-detail-dialog .campaign-dialog-head{display:block;position:relative;align-items:flex-start;padding:20px}
 .campaign-detail-dialog .campaign-dialog-head>div{min-width:0}
 .campaign-detail-dialog .campaign-dialog-head>button{position:absolute;right:15px;top:15px}
 .campaign-detail-dialog .campaign-dialog-head .eyebrow{padding-right:85px;min-height:44px;margin-bottom:14px}
}
/* Keep small accent text readable on the light backgrounds. */
body.type-system .beyond h2>span{color:#7452AC}
body.type-system .audit-native-coverage li>span{color:#7452AC}
body.type-system .brand-summary-label>span,body.type-system .spark-stage-number{color:#C9006A}
body.type-system .btn.electric-cta{background:#D90077;border-color:#D90077;color:#fff}
body.type-system .btn.electric-cta:hover{background:#BF0069;border-color:#BF0069}

/* Open the audit at its title, without an artificial outline around the logo.
   Interactive links and buttons retain their keyboard focus treatment. */
.audit-native-dialog #audit-modal-title:focus{outline:none}
@media(max-width:800px){
 body.type-system .closing-row>div{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
 body.type-system .closing-row>div>p{margin-bottom:16px}
 body.type-system .closing-row>div>.btn{margin:0!important;max-width:100%;white-space:normal;text-align:center;justify-content:center}
 .audit-native-dialog .audit-modal-head .logo{display:inline-flex;width:auto;flex-shrink:0}
}
