/* Theme defaults remain exact until the owner chooses a custom value. */
body .rh-home-hero-copy[data-hero-title-position] h1 { font-size: var(--rh-hero-title-desktop, clamp(2.8rem, 5.6vw, 4.5rem)); }
body.theme-horizon .rh-home-hero-copy[data-hero-title-position] h1 { font-size: var(--rh-hero-title-desktop, clamp(4.2rem, 7.8vw, 7.15rem)); }
body .rh-home-hero-copy[data-hero-title-position]:not([data-hero-title-position="default"]) { min-width: 0; width: 100%; }
body .rh-home-hero-copy[data-hero-title-position^="top-"] { align-self: start; }
body .rh-home-hero-copy[data-hero-title-position^="middle-"] { align-self: center; }
body .rh-home-hero-copy[data-hero-title-position^="bottom-"] { align-self: end; }
body .rh-home-hero-copy[data-hero-title-position$="-left"],
body .rh-home-hero-copy[data-hero-title-position$="-left"] h1 { text-align: left; }
body .rh-home-hero-copy[data-hero-title-position$="-center"],
body .rh-home-hero-copy[data-hero-title-position$="-center"] h1 { text-align: center; }
body .rh-home-hero-copy[data-hero-title-position$="-right"],
body .rh-home-hero-copy[data-hero-title-position$="-right"] h1 { text-align: right; }
body .rh-home-hero-copy[data-hero-title-position$="-center"] > p,
body .rh-home-hero-copy[data-hero-title-position$="-center"] h1 { margin-inline: auto; }
body .rh-home-hero-copy[data-hero-title-position$="-right"] > p,
body .rh-home-hero-copy[data-hero-title-position$="-right"] h1 { margin-left: auto; }
body .rh-home-hero-copy[data-hero-title-position$="-center"] .rh-hero-actions { justify-content: center; }
body .rh-home-hero-copy[data-hero-title-position$="-right"] .rh-hero-actions { justify-content: flex-end; }
@media (max-width: 1060px) {
    body.theme-horizon .rh-home-hero-copy[data-hero-title-position] h1 { font-size: var(--rh-hero-title-desktop, clamp(3.7rem, 8vw, 5.8rem)); }
}
@media (max-width: 820px) {
    body .rh-home-hero-copy[data-hero-title-position] h1 { font-size: var(--rh-hero-title-mobile, clamp(2.8rem, 5.6vw, 4.5rem)); }
    body.theme-horizon .rh-home-hero-copy[data-hero-title-position] h1 { font-size: var(--rh-hero-title-mobile, clamp(3rem, 11vw, 5rem)); }
    /* Command stacks its stats at this width. Give its title a real free area to move in. */
    body.theme-command .rh-home-hero:has([data-hero-title-position]:not([data-hero-title-position="default"])) { grid-template-rows: minmax(min-content, 1fr) auto; align-content: stretch; }
}
@media (max-width: 580px) {
    body .rh-home-hero-copy[data-hero-title-position] h1 { font-size: var(--rh-hero-title-mobile, clamp(2.3rem, 13vw, 3.4rem)); }
    body.theme-horizon .rh-home-hero-copy[data-hero-title-position] h1 { font-size: var(--rh-hero-title-mobile, clamp(2.45rem, 13vw, 3.8rem)); }
}
