/* Start page additions (theme 1.37.0, inc/home-extras.php). All rules are scoped to the new components (lxh-),
   except the single permitted change to the existing hero: its height variable is a little lower. */

/* 1. Hero: slightly lower (about 50 px on a 900 px high screen), same image, texts, buttons and layout */
html body .lx-c3d,html body .lx-c3d.lx-c3d{--h:clamp(215px,calc(100vh - 460px),355px)}
@media (max-width:560px){html body .lx-c3d,html body .lx-c3d.lx-c3d{--h:clamp(240px,calc(100vh - 395px),345px)}}

/* 2. News ticker */
.lxh-ticker{background:var(--navy,#0d1e3a);color:#e8eef6;border-top:1px solid #1d3558;border-bottom:1px solid #1d3558;font-size:.86rem}
.lxh-ticker__bar{display:flex;align-items:center;min-height:46px}
.lxh-ticker__label{flex:0 0 auto;display:flex;align-items:center;gap:8px;margin:0;padding:0 18px;height:46px;background:var(--brand,#2f5d8c);
  color:#fff;font:700 .74rem var(--lx-head,inherit);letter-spacing:.14em;text-transform:uppercase}
.lxh-ticker__dot{width:8px;height:8px;border-radius:50%;background:#7fe0a8;box-shadow:0 0 0 3px rgba(127,224,168,.25)}
.lxh-ticker__view{flex:1 1 auto;overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24px,#000 calc(100% - 24px),transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 24px,#000 calc(100% - 24px),transparent 100%)}
.lxh-ticker__track{display:flex;width:max-content;animation:lxh-scroll var(--lxh-dur,60s) linear infinite}
.lxh-ticker__list{display:flex;list-style:none;margin:0;padding:0}
.lxh-ticker__item{display:flex;align-items:baseline;gap:10px;white-space:nowrap;padding:12px 26px 12px 0;margin-left:26px;border-left:1px solid rgba(255,255,255,.14);padding-left:26px}
.lxh-ticker__item:first-child{border-left:0;margin-left:0}
.lxh-ticker__cat{font:700 .66rem var(--lx-head,inherit);letter-spacing:.1em;text-transform:uppercase;color:#a9c4e2}
.lxh-ticker__item--own .lxh-ticker__cat{color:#0d1e3a;background:#7fd3e0;padding:3px 8px;border-radius:4px;letter-spacing:.08em}
.lxh-ticker__item--own a,.lxh-ticker__own{color:#cfe6ff !important}
.lxh-cat-markets .lxh-ticker__cat{color:#f2c879}.lxh-cat-sap .lxh-ticker__cat{color:#7fd3e0}.lxh-cat-labor .lxh-ticker__cat{color:#b9e39a}
.lxh-ticker__item a{color:#fff;text-decoration:none;font-weight:600}
.lxh-ticker__item a:hover,.lxh-ticker__item a:focus-visible{text-decoration:underline}
.lxh-ticker__item a:focus-visible{outline:2px solid #fff;outline-offset:2px}
.lxh-ticker__src{color:#9fb3cc;font-size:.76rem}
.lxh-ticker__view:hover .lxh-ticker__track,.lxh-ticker__view:focus-within .lxh-ticker__track,.lxh-ticker.is-paused .lxh-ticker__track{animation-play-state:paused}
.lxh-ticker__toggle{flex:0 0 auto;width:46px;height:46px;border:0;border-left:1px solid #1d3558;background:transparent;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lxh-ticker__toggle span{display:block;width:10px;height:12px;border-left:3px solid currentColor;border-right:3px solid currentColor}
.lxh-ticker.is-paused .lxh-ticker__toggle span{width:0;height:0;border:0;border-left:11px solid currentColor;border-top:7px solid transparent;border-bottom:7px solid transparent}
.lxh-ticker__toggle:hover{background:rgba(255,255,255,.08)}
.lxh-ticker__toggle:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.lxh-ticker__empty{margin:0;padding:12px 18px;color:#c7d4e4}
.lxh-ticker__stamp{margin:0 !important;padding:3px 18px 5px;font-size:.68rem;color:#8ea4bf;background:#0a182f;text-align:end}
@keyframes lxh-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
html[dir="rtl"] .lxh-ticker__track{animation-name:lxh-scroll-rtl}
@keyframes lxh-scroll-rtl{from{transform:translateX(0)}to{transform:translateX(50%)}}
@media (prefers-reduced-motion:reduce){
  .lxh-ticker__track{animation:none}
  .lxh-ticker__view{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
  .lxh-ticker__list[aria-hidden="true"],.lxh-ticker__toggle{display:none}
}
@media (max-width:720px){.lxh-ticker__label{padding:0 12px;font-size:0;gap:0}.lxh-ticker__label .lxh-ticker__dot{margin:0}.lxh-ticker__src,.lxh-ticker__note{display:none}}

/* 3. Banner / campaign area */
.lxh-banners{margin-top:28px !important;margin-bottom:8px !important;position:relative}
.lxh-banners__stage{position:relative;aspect-ratio:1180/380;border-radius:22px;overflow:hidden;background:#e4edf7;box-shadow:0 14px 36px rgba(20,33,61,.12)}
.lxh-banner{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .7s ease,visibility 0s linear .7s}
.lxh-banner.is-active{opacity:1;visibility:visible;transition:opacity .7s ease}
.lxh-banner__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lxh-banners__stage .lxh-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(13,30,58,.82) 0%,rgba(13,30,58,.55) 42%,rgba(13,30,58,0) 72%)}
html[dir="rtl"] .lxh-banners__stage .lxh-banner::after{background:linear-gradient(270deg,rgba(13,30,58,.82) 0%,rgba(13,30,58,.55) 42%,rgba(13,30,58,0) 72%)}
.lxh-banner__txt{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;max-width:min(560px,62%);padding:28px 44px;color:#fff}
.lxh-banner__txt>*{margin:0}
.lxh-banner__title{color:#fff;font-size:clamp(1.25rem,2.3vw,2rem);line-height:1.2}
.lxh-banner__desc{margin-top:10px !important;font-size:clamp(.9rem,1.2vw,1.05rem);line-height:1.5;color:#e8eef6}
.lxh-banner__btn{margin-top:18px !important;display:inline-block}
.lxh-banner__flag{display:inline-block;align-self:flex-start;margin-bottom:10px !important;padding:4px 10px;border-radius:999px;background:#f2c879;color:#14213d;font-size:.74rem;font-weight:700}
.lxh-banner__eyebrow{display:inline-block;align-self:flex-start;padding:6px 14px;border-radius:999px;background:var(--brand,#2f5d8c);color:#fff;font:700 .7rem var(--lx-head,inherit);letter-spacing:.14em;text-transform:uppercase;margin-bottom:14px !important}
.lxh-banner__btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px !important}
.lxh-banner__btns .lxh-banner__btn{margin-top:0 !important}
/* placeholder without an active campaign: Ledgrix colours, no image */
.lxh-banner--placeholder{position:relative;opacity:1;visibility:visible;border-radius:22px;overflow:hidden;border:1px solid #d5e1ef;
  background:radial-gradient(circle at 88% 20%,rgba(93,143,194,.22),transparent 42%),radial-gradient(circle at 70% 100%,rgba(26,155,176,.14),transparent 46%),linear-gradient(135deg,#f4f8fd 0%,#e4eef9 100%);
  box-shadow:0 14px 36px rgba(20,33,61,.08)}
/* compact: title on one line, below it the text with the two buttons on the same line */
.lxh-banner--placeholder .lxh-banner__txt{max-width:none;color:var(--ink,#14213d);padding:18px 32px;text-align:center}
.lxh-banner__brand{margin:0 0 4px !important;font:800 clamp(1.05rem,1.5vw,1.3rem)/1.2 var(--lx-head,inherit);
  background:linear-gradient(90deg,#1d4f8a 0%,#2f6fb0 45%,#1a9bb0 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.lxh-banner__brand span{font-weight:700}
.lxh-banner--placeholder .lxh-banner__title{max-width:none;color:var(--ink,#14213d);font-size:clamp(1.05rem,1.55vw,1.4rem);line-height:1.3}
.lxh-banner__row{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:nowrap;margin-top:8px}
.lxh-banner--placeholder .lxh-banner__desc{flex:1 1 320px;min-width:0;margin:0 !important;color:var(--text,#374151);font-size:.86rem}
.lxh-banner--placeholder .lxh-banner__btns{margin:0 !important;gap:10px;flex-wrap:nowrap}
.lxh-banner--placeholder .lxh-banner__btn{padding:8px 14px;font-size:.82rem;white-space:nowrap}
.lxh-banner__btn{background:var(--brand,#2f5d8c);border-color:var(--brand,#2f5d8c);color:#fff}
.lxh-banner__btn:hover{background:var(--brand-d,#234a70);border-color:var(--brand-d,#234a70);color:#fff}
.lxh-banner__btn--ghost{background:#fff;color:var(--brand,#2f5d8c)}
.lxh-banner__btn--ghost:hover{background:var(--brand,#2f5d8c);color:#fff}
.lxh-banners__ui{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px}
.lxh-banners__btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--brand,#2f5d8c);background:#fff;color:var(--brand,#2f5d8c);font-size:1.2rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lxh-banners__btn:hover{background:var(--alt,#e9eef4)}
.lxh-banners__pause span{display:block;width:8px;height:11px;border-left:3px solid currentColor;border-right:3px solid currentColor}
.lxh-banners.is-paused .lxh-banners__pause span{width:0;height:0;border:0;border-left:10px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent}
.lxh-banners__dots{display:flex;gap:6px}
.lxh-banners__dot{width:26px;height:6px;padding:0;border:0;border-radius:3px;background:#c9d6e6;cursor:pointer}
.lxh-banners__dot.is-active{background:var(--brand,#2f5d8c)}
.lxh-banners :focus-visible{outline:3px solid var(--brand,#2f5d8c);outline-offset:2px}
@media (max-width:820px){
  .lxh-banners__stage{aspect-ratio:auto;min-height:340px}
  .lxh-banners__stage .lxh-banner::after{background:linear-gradient(0deg,rgba(13,30,58,.88) 0%,rgba(13,30,58,.55) 55%,rgba(13,30,58,.1) 100%)}
  .lxh-banner__txt{max-width:none;justify-content:flex-end;padding:22px}
  .lxh-banner--placeholder .lxh-banner__txt{padding:18px 18px 20px}
  .lxh-banner__row{flex-wrap:wrap}
  .lxh-banner--placeholder .lxh-banner__btns{flex-wrap:wrap}
}
@media (prefers-reduced-motion:reduce){.lxh-banner,.lxh-banner.is-active{transition:none}}
@media print{.lxh-ticker,.lxh-banners__ui{display:none}}
