/* LUXURRE 5.0.66 — home hero ordering, text-aligned CTA box and carousel/consent toolbar.
   Deliberately scoped to home hero. No image changes, no remote dependencies. */

/* Universal: keep original links, slide controls and privacy consent button operable. */
[data-lux-hero] .lx566-hero-controls {
  position:absolute;z-index:140;
  inset-inline:clamp(24px,7vw,112px) clamp(24px,6vw,95px);
  bottom:clamp(24px,4.5vh,52px);
  min-height:44px;display:flex;align-items:center;justify-content:space-between;
  column-gap:18px;direction:ltr;
}
[data-lux-hero] .lx566-hero-controls .lx544-slide-markers {
  position:relative!important;inset:auto!important;bottom:auto!important;left:auto!important;right:auto!important;
  display:flex!important;align-items:center!important;flex:0 1 auto;min-width:0;
  max-width:100%!important;transform:none!important;margin:0!important;
}
[data-lux-hero] .lx566-hero-controls .lx541-control.lx551-privacy-inline {
  position:relative!important;inset:auto!important;top:auto!important;bottom:auto!important;
  right:auto!important;left:auto!important;margin:0 0 0 auto!important;
  transform:none!important;flex:0 0 auto;min-height:40px;
  max-width:min(50%,220px);box-sizing:border-box;
  white-space:normal;overflow-wrap:anywhere;text-align:center;
}
[data-lux-hero] .lx566-hero-controls .lx541-control.lx551-privacy-hidden {pointer-events:none!important;}
[data-lux-hero] .lx566-cta {transform:none!important;box-sizing:border-box;}
[data-lux-hero] .lx566-cta .lux-editorial-cta-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
[data-lux-hero] .lx566-cta .lux-editorial-cta-links a.lx546-original-cta {
  min-width:0!important;overflow-wrap:anywhere;hyphens:auto;
  margin:0!important;min-height:57px!important;
}
/* First action (publish an asset) and fourth action (discover) span the full width. */
[data-lux-hero] .lx566-cta .lux-editorial-cta-links a.lx546-original-cta:nth-child(1),
[data-lux-hero] .lx566-cta .lux-editorial-cta-links a.lx546-original-cta:nth-child(4) {grid-column:1 / -1;}
[data-lux-hero] .lx566-cta .lux-editorial-cta-links a.lx546-original-cta:focus-visible,
[data-lux-hero] .lx566-hero-controls .lx541-control:focus-visible {outline:2px solid #a7e8f3;outline-offset:3px;}
/* Visual reading direction is LTR for carousel markers, but Arabic/Persian labels use document direction. */
[dir="rtl"] [data-lux-hero] .lx566-cta {text-align:right;}
[dir="rtl"] [data-lux-hero] .lx566-cta .lux-editorial-cta-links a.lx546-original-cta {direction:rtl;}
[dir="rtl"] [data-lux-hero] .lx566-hero-controls .lx541-control {direction:rtl;}

/* Browser/tablet layout: keep distinct columns and sufficient room for both content and cards. */
@media (min-width:768px) and (max-width:1130px) {
  [data-lux-hero].lux-hero-editorial .lux-hero-content {
    width:min(45vw,530px);max-width:min(45vw,530px);left:clamp(24px,5vw,65px);
  }
  [data-lux-hero] .lx566-cta {
    width:min(43vw,480px);max-width:min(43vw,480px);right:clamp(24px,5vw,65px);padding:18px;
    bottom:112px;
  }
  [data-lux-hero] .lx566-cta .lux-editorial-cta-links a.lx546-original-cta {font-size:13px;min-height:52px!important;padding:9px 11px!important;}
}

/* Mobile: align CTA outer edges with the text column; don't shrink CTA via old scale() rules. */
@media (max-width:767px) {
  [data-lux-hero].lux-hero {
    --lx566-inset:clamp(16px,5vw,24px);
    padding-inline:var(--lx566-inset)!important;
    padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;
  }
  [data-lux-hero] .lux-hero-content,
  [data-lux-hero].lux-hero-editorial .lux-hero-content,
  [data-lux-hero] .lx566-cta {
    box-sizing:border-box!important;
    width:100%!important;max-width:100%!important;
    margin-inline:0!important;padding-inline:0!important;
    left:auto!important;right:auto!important;
    min-width:0!important;transform:none!important;
  }
  [data-lux-hero] .lux-hero-content {margin-bottom:clamp(15px,3vh,26px)!important;}
  [data-lux-hero] .lx566-cta {
    align-self:stretch!important;order:2!important;
    padding:clamp(12px,3.2vw,19px)!important;
    margin:0 0 13px!important;
    border:1px solid rgba(255,255,255,.24)!important;
    background:rgba(7,18,27,.66)!important;
    box-shadow:none!important;
  }
  [data-lux-hero] .lx566-cta .lux-editorial-cta-kicker {margin-bottom:11px!important;}
  [data-lux-hero] .lx566-cta .lux-editorial-cta-links {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  [data-lux-hero] .lx566-cta .lux-editorial-cta-links a.lx546-original-cta {
    display:flex!important;gap:9px!important;min-height:60px!important;
    padding:12px!important;font-size:clamp(13px,3.45vw,16px)!important;
    margin:0!important;
  }
  [data-lux-hero] .lx566-cta .lux-editorial-cta-links a.lx546-original-cta:first-child {
    min-height:53px!important;grid-column:1/-1!important;
  }
  [data-lux-hero] .lx566-cta .lux-editorial-cta-links a.lx546-original-cta:nth-child(4) {
    min-height:53px!important;grid-column:1/-1!important;
  }
  [data-lux-hero] .lx546-lower-actions {
    order:3!important;align-self:stretch!important;
    max-width:100%!important;margin:0 0 5px!important;
    gap:2px 9px!important;padding:1px 0 5px!important;
    justify-content:flex-start!important;
  }
  [data-lux-hero] .lx546-lower-actions a {font-size:clamp(11px,2.9vw,13px)!important;}
  /* New row replaces independently positioned and overlapping bottom controls. */
  [data-lux-hero] .lx566-hero-controls {
    position:relative!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
    order:4;align-self:stretch;z-index:140;box-sizing:border-box;
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;padding:3px 0 0!important;min-height:48px!important;
    display:flex!important;flex-wrap:nowrap;align-items:center!important;justify-content:space-between!important;
    gap:10px;direction:ltr;
  }
  [data-lux-hero] .lx566-hero-controls .lx544-slide-markers {
    width:auto!important;min-height:44px!important;min-width:0!important;max-width:calc(100% - 132px)!important;
    flex:0 1 auto!important;order:0!important;transform:none!important;
    padding:0!important;margin:0!important;justify-content:flex-start!important;
  }
  [data-lux-hero] .lx566-hero-controls .lx544-slide-marker {flex-shrink:0!important;}
  [data-lux-hero] .lx566-hero-controls .lx541-control.lx551-privacy-inline {
    order:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    max-width:46%!important;min-width:100px!important;min-height:41px!important;
    padding:8px 10px!important;line-height:1.3!important;font-size:10px!important;
    margin:0 0 0 auto!important;
  }
}
/* Ultra-narrow screens: allow longer languages to use their own full-width lines. */
@media (max-width:359px) {
  [data-lux-hero] .lx566-cta .lux-editorial-cta-links {grid-template-columns:1fr!important;}
  [data-lux-hero] .lx566-cta .lux-editorial-cta-links a.lx546-original-cta {grid-column:1/-1!important;min-height:49px!important;}
  [data-lux-hero] .lx566-hero-controls .lx544-slide-markers {max-width:calc(100% - 118px)!important;gap:5px!important;}
  [data-lux-hero] .lx566-hero-controls .lx541-control.lx551-privacy-inline {min-width:94px!important;max-width:47%!important;}
}
@media (prefers-reduced-motion:reduce) {
  [data-lux-hero] .lx566-cta .lux-editorial-cta-links a.lx546-original-cta {transition:none!important;}
}
/* Desktop: registration links are a separate row between the card panel and controls,
   not superimposed on the settings button (regression inherited from 5.0.51). */
@media (min-width:768px) {
  [data-lux-hero] .lx546-lower-actions {
    position:absolute!important;bottom:84px!important;right:clamp(24px,6vw,95px)!important;
    left:auto!important;min-height:24px;z-index:130;max-width:46vw;
    display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;
  }
  [data-lux-hero] .lx566-hero-controls {bottom:clamp(12px,2.2vh,22px);}
}
