/* V20: scoped carousel polish and share panel, no unrelated layout changes. */
body.horizon #horizon-photo-card{isolation:isolate}
body.horizon #horizon-photo-card .horizon-viewport{height:clamp(340px,58vw,565px)!important;max-height:none!important}
body.horizon #horizon-photo-card .horizon-mobile-photo-bottom{bottom:35px!important;padding-bottom:30px!important;pointer-events:none}
body.horizon #horizon-photo-card .atlas-gallery-nav{position:absolute!important;bottom:42px!important;left:50%!important;z-index:30!important;background:transparent!important;backdrop-filter:none!important;box-shadow:none!important;border:0!important;transform:translateX(-50%)!important;gap:7px!important;padding:5px 8px!important;margin:0!important;width:auto!important;height:auto!important}
body.horizon #horizon-photo-card .atlas-gallery-dot{width:5px!important;height:5px!important;min-width:5px!important;min-height:5px!important;border-radius:50%!important;background:rgba(255,255,255,.65)!important;box-shadow:0 0 0 1px rgba(0,0,0,.08)!important;transition:background .2s,transform .2s!important}
body.horizon #horizon-photo-card .atlas-gallery-dot.is-active{width:5px!important;height:5px!important;background:white!important;transform:scale(1.1)!important}
body.horizon #horizon-photo-card .atlas-gallery-nav::before,body.horizon #horizon-photo-card .atlas-gallery-nav::after{display:none!important}
body.horizon #horizon-photo-card .atlas-story-slide{padding:28px 22px 72px!important}
body.horizon #horizon-photo-card .atlas-story-slide__box{max-width:540px}
body.horizon #horizon-photo-card .atlas-story-slide__button{font-family:inherit!important}
body.horizon .atlas-footer-copy{margin-top:18px}
.atlas-share-overlay[hidden]{display:none!important}
.atlas-share-overlay{position:fixed;inset:0;z-index:99999;display:flex;align-items:flex-end;justify-content:center;background:rgba(8,15,12,.55);padding:16px;box-sizing:border-box}
.atlas-share-panel{width:min(100%,600px);background:#fff;color:#202624;border-radius:22px 22px 18px 18px;padding:24px;box-sizing:border-box;box-shadow:0 18px 70px rgba(0,0,0,.16)}
.atlas-share-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.atlas-share-heading h2{margin:0;font-size:clamp(22px,4vw,29px);line-height:1.2;letter-spacing:-.025em}
.atlas-share-close{width:44px;height:44px;border:0;background:#f2f4f2;border-radius:50%;font-size:30px;cursor:pointer;color:#243027}
.atlas-share-subtitle{font-size:15px;color:#58625e;line-height:1.55;margin:14px 0 24px}
.atlas-share-label{display:block;font-size:13px;font-weight:650;margin-bottom:8px}
.atlas-share-copy{display:flex;border:1px solid #cdd5d0;border-radius:14px;overflow:hidden;min-height:54px}
.atlas-share-copy input{width:100%;min-width:0;border:0;outline-offset:-3px;background:#fff;padding:12px;font:inherit;color:#1b2a23}
.atlas-share-copy button{flex:none;border:0;border-left:1px solid #cdd5d0;background:#f2f5f2;color:#20372b;font:inherit;font-weight:700;padding:0 17px;cursor:pointer}
.atlas-share-feedback{min-height:1.2em;font-size:13px;color:#255c3a;margin:10px 0 0}
.atlas-share-close:focus-visible,.atlas-share-copy button:focus-visible{outline:3px solid #569d68;outline-offset:2px}
@media(min-width:700px){.atlas-share-overlay{align-items:center}.atlas-share-panel{border-radius:24px;padding:30px}}
@media(max-width:640px){body.horizon #horizon-photo-card .horizon-viewport{height:390px!important;min-height:340px!important;max-height:65vh!important}body.horizon #horizon-photo-card .horizon-mobile-photo-bottom{bottom:33px!important;padding-bottom:32px!important}body.horizon #horizon-photo-card .atlas-gallery-nav{bottom:42px!important}body.horizon #horizon-photo-card .atlas-story-slide{padding:18px 18px 65px!important}.atlas-share-overlay{padding:0}.atlas-share-panel{border-radius:22px 22px 0 0;padding:24px 20px calc(22px + env(safe-area-inset-bottom,0px))}}
@media(prefers-reduced-motion:reduce){body.horizon #horizon-photo-card .atlas-gallery-dot{transition:none!important}}

/* V22: headline after fundraiser and refined sharing sheet */
body.horizon .atlas-story-headline{font-family:inherit;font-weight:750;font-size:clamp(25px,3vw,38px);letter-spacing:-.035em;line-height:1.16;color:#192337;margin:26px 0 16px;text-wrap:balance}
body.horizon .horizon-mobile-photo-bottom{display:none!important}
body.horizon .horizon-story-block{margin-top:0!important}
.atlas-share-overlay{background:rgba(10,20,19,.38);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.atlas-share-panel{border:1px solid rgba(27,52,40,.08);box-shadow:0 20px 65px rgba(0,0,0,.13);padding:28px;border-radius:24px}
.atlas-share-heading h2{font-size:clamp(23px,3vw,28px);font-weight:730;letter-spacing:-.03em}
.atlas-share-close{width:38px;height:38px;font-size:25px;background:#f4f5f4;transition:background .2s}
.atlas-share-close:hover{background:#e6ebe7}
.atlas-share-copy{border-color:#d6ddd8;background:#fafbfa;border-radius:13px}
.atlas-share-copy input{background:transparent;font-size:15px}
.atlas-share-copy button{background:#e8f2eb;color:#1c5034;font-size:14px;transition:background .2s}
.atlas-share-copy button:hover{background:#dcebe1}
@media(max-width:699px){body.horizon .atlas-story-headline{font-size:clamp(24px,6vw,31px);margin:30px 0 14px;padding:0 1px}.atlas-share-panel{border-radius:24px 24px 0 0;padding:26px 22px calc(26px + env(safe-area-inset-bottom,0px))}}

/* V23: headline editorial compacta, sem alterar corpo da história */
body.horizon #historia.horizon-story-block {padding-top:clamp(24px,4vw,40px)!important}
body.horizon #historia .atlas-story-headline {
  display:block!important;
  max-width:26ch!important;
  margin:0 0 clamp(17px,2.3vw,24px)!important;
  padding:0!important;
  color:#182336!important;
  font-family:inherit!important;
  font-size:clamp(25px,3vw,34px)!important;
  font-weight:700!important;
  line-height:1.23!important;
  letter-spacing:-.035em!important;
  text-align:left!important;
  text-wrap:pretty;
}
@media(max-width:699px){
  body.horizon #historia.horizon-story-block{padding-top:26px!important}
  body.horizon #historia .atlas-story-headline{font-size:clamp(24px,5.55vw,29px)!important;max-width:100%!important;margin-bottom:20px!important;line-height:1.22!important;letter-spacing:-.028em!important}
}
