/* Standalone opt-in banner; deliberately independent of legacy intro rules. */
.rm-hero {box-sizing:border-box;position:relative;isolation:isolate;overflow:hidden;container:rm-hero / inline-size;display:flex;align-items:center;gap:var(--rm-h-gap);min-height:var(--rm-h-min-height);padding:clamp(8px,5%,var(--rm-h-padding));border:var(--rm-h-border-width) solid var(--rm-h-border);border-radius:var(--rm-h-radius);color:var(--rm-h-ink);background:var(--rm-h-bg);min-width:0;overflow-wrap:anywhere;}
.rm-hero.rm-hero-bg-gradient{background:linear-gradient(135deg,var(--rm-h-bg),var(--rm-h-bg2))}
.rm-hero.rm-hero-bg-transparent{background:transparent}
.rm-hero-shadow-soft{box-shadow:0 5px 18px #0002}.rm-hero-shadow-strong{box-shadow:0 10px 28px #0004}
.rm-hero .rm-hero-content{position:relative;z-index:1;flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:14px;align-items:flex-start;text-align:left;}
.rm-hero-align-center .rm-hero-content{align-items:center;text-align:center}.rm-hero-align-right .rm-hero-content{align-items:flex-end;text-align:right}
.rm-public .rm-hero .rm-hero-title,.rm-hero .rm-hero-title{color:var(--rm-h-ink);font-size:clamp(18px,5cqi,var(--rm-h-heading-size));font-weight:700;line-height:1.15;margin:0;max-width:100%;}
.rm-public .rm-hero .rm-hero-text,.rm-hero .rm-hero-text{color:var(--rm-h-ink);font-size:var(--rm-h-text-size);line-height:1.6;margin:0;max-width:70ch;white-space:pre-line;}
.rm-hero .rm-hero-buttons{display:flex;flex-wrap:wrap;gap:10px;max-width:100%;}
.rm-hero-align-center .rm-hero-buttons{justify-content:center}.rm-hero-align-right .rm-hero-buttons{justify-content:flex-end}
.rm-public .rm-hero .rm-hero-button,.rm-hero .rm-hero-button{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;min-height:44px;max-width:100%;padding:10px var(--rm-h-button-padding);border:1px solid var(--rm-h-button-bg);border-radius:var(--rm-h-button-radius);background:var(--rm-h-button-bg);color:var(--rm-h-button-ink);font-weight:600;font-size:15px;text-align:center;text-decoration:none;line-height:1.3;overflow-wrap:anywhere;}
.rm-public .rm-hero .rm-hero-button-2,.rm-hero .rm-hero-button-2{background:var(--rm-h-secondary-bg);color:var(--rm-h-secondary-ink);border-color:var(--rm-h-secondary-bg)}
.rm-public .rm-hero a.rm-hero-button:hover{filter:brightness(.9);text-decoration:underline}
.rm-public .rm-hero a.rm-hero-button:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.rm-hero .rm-hero-media{flex:0 1 var(--rm-h-image-width);min-width:0;overflow:hidden;border-radius:calc(var(--rm-h-radius) / 2);align-self:stretch;display:flex;align-items:center;justify-content:center;}
.rm-hero .rm-hero-image{display:block;width:100%;height:100%;max-width:100%;max-height:650px;object-fit:cover;}
.rm-hero-fit-contain .rm-hero-image{object-fit:contain}
.rm-hero-layout-right .rm-hero-media{order:2}
.rm-hero-layout-cover .rm-hero-media{position:absolute;inset:0;z-index:0;border-radius:0;pointer-events:none}
.rm-hero-layout-cover .rm-hero-image{position:absolute;inset:0;max-height:none;}
.rm-hero-layout-cover .rm-hero-media::after{content:'';position:absolute;inset:0;background:var(--rm-h-overlay-color);opacity:var(--rm-h-overlay);}
.rm-hero [hidden]{display:none!important;}
@media(max-width:600px){.rm-hero:is(.rm-hero-layout-left,.rm-hero-layout-right){flex-direction:column;align-items:stretch}.rm-hero:is(.rm-hero-layout-left,.rm-hero-layout-right) .rm-hero-media{flex:auto;max-height:320px}.rm-hero:is(.rm-hero-layout-left,.rm-hero-layout-right) .rm-hero-image{height:auto;max-height:320px}}
/* Container queries for narrow columns on otherwise wide screens. */
@container rm-hero (max-width:420px){.rm-hero .rm-hero-title{font-size:clamp(18px,7cqi,var(--rm-h-heading-size));}.rm-hero .rm-hero-buttons{flex-direction:column;align-items:stretch;}}
@container rm-home-block (max-width:520px){.rm-hero:is(.rm-hero-layout-left,.rm-hero-layout-right){flex-direction:column;align-items:stretch}.rm-hero:is(.rm-hero-layout-left,.rm-hero-layout-right) .rm-hero-media{flex:auto;max-height:320px}.rm-hero:is(.rm-hero-layout-left,.rm-hero-layout-right) .rm-hero-image{height:auto;max-height:320px}}
.rm-hero[hidden]{display:none!important}
/* Explicit banner colors override generic link rules in the global custom theme. */
.rm-design-custom .rm-public .rm-hero a.rm-hero-button{color:var(--rm-h-button-ink)}
.rm-design-custom .rm-public .rm-hero a.rm-hero-button-2{color:var(--rm-h-secondary-ink)}
