/* IAG r23 – IAG Health design layer for the whole site (owner order 05.11.2026: "take that design for everything").
   Loaded last on every page. Tokens live in site.css :root (Health token set); this file only shapes components:
   white sticky header, light mega menu, light footer with gold seam, emerald buttons with gold edge, daylight heroes with the
   hexagon line pattern, rounded white cards with hairline + soft green shadow, H2 with a gold inline-start bar.
   No motion here – the r20 motion rules (transform/opacity, finite, IO-paused, reduced-motion, html.mo-paused) are untouched. */

html,body{background:var(--paper)}
body{color:var(--ink)}
:root{--logo-a:#044435;--logo-b:#C29848}
::selection{background:var(--emerald-100);color:var(--emerald-900)}
:focus-visible{outline:2px solid var(--emerald-700)!important;outline-offset:3px}
a{text-underline-offset:.22em}

/* ---------------------------------------------------------------- type scale (Health: H1 ≈43px, H2 ≈31.5px, H3 20px – calmer than the old display sizes) */
:root,:root:lang(de){--t-display:clamp(34px,3.4vw,50px);--t-h1:clamp(32px,3.1vw,46px);--t-h2:clamp(26px,2.2vw,32px);--t-h3:20px}
:root:lang(ar){--t-display:clamp(32px,3.1vw,46px);--t-h1:clamp(30px,2.9vw,43px);--t-h2:clamp(25px,2.1vw,31.5px);--t-h3:20px}
#main :is(.fx-hero,.iv-hero,.sw-hero,.c-hero,.phero) h1{font-size:var(--t-display);line-height:1.12;letter-spacing:-.015em}
:root:lang(ar) #main :is(.fx-hero,.iv-hero,.sw-hero,.c-hero,.phero) h1{line-height:1.38;letter-spacing:0}

/* ---------------------------------------------------------------- headings */
#main h1{color:var(--emerald-900);font-weight:600}
#main h1 :is(.fx-h1b,.iv-h1b,.sw-h1b){color:var(--emerald-600)}
#main h2{color:var(--emerald-900)}
#main h3{color:var(--ink)}
/* section heads: gold bar on the inline-start side (Health H2) */
main section:not(.fx-hero):not(.iv-hero):not(.sw-hero):not(.c-hero):not(.phero):not(.fx-cta) h2[id$="-h"]:not(.gl-h){border-inline-start:3.5px solid var(--gold-500);padding-inline-start:14px}

/* ---------------------------------------------------------------- eyebrows / labels in gold-brown (text = gold-700) */
#main :is(.fx-eb,.sw-eb,.iv-eb,.c-eb){color:var(--gold-700)}
.fx-dot,.fx-eb .fx-dot{background:var(--gold-500)}

/* ---------------------------------------------------------------- header */
.hdr,.hdr[data-mo-header],.hdr[data-mo-header].is-scrolled,body.nav-open .hdr[data-mo-header]{background:#fff;background-color:#fff;color:var(--ink);border-bottom:1px solid var(--line);box-shadow:var(--shadow-1);-webkit-backdrop-filter:none;backdrop-filter:none}
.nav-list>li>a,.sub-btn{color:var(--ink-soft);font-weight:500}
.nav-list>li>a:hover,.sub-btn:hover,.sub-btn[aria-expanded=true],.nav-list>li>a[aria-current]{color:var(--emerald-700)}
.brand-t small{color:var(--ink-faint);border-inline-start-color:var(--line)}
.hdr .lang a,.hdr .lang .lang-cur{color:var(--ink-soft)}
.hdr .lang .lang-cur,.hdr .lang [aria-current]{color:var(--emerald-700)}
.hdr-cta,.hdr.is-scrolled .hdr-cta,.nd-cta{background:var(--grad-emerald);color:#fff;border:1px solid var(--emerald-700);border-bottom:2px solid var(--gold-500);border-radius:var(--r-sm)}
.hdr-cta:hover,.hdr.is-scrolled .hdr-cta:hover,.nd-cta:hover{background:var(--emerald-800);border-color:var(--emerald-800);border-bottom-color:var(--gold-500);color:#fff}
.nav-toggle{border-color:var(--lapis-line);color:var(--emerald-700);border-radius:var(--r-sm);background:#fff}

/* ---------------------------------------------------------------- mega menu (light) */
@media (min-width:961px){.mega{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);box-shadow:var(--shadow-2)}}
body.mega-open::after{background:rgba(4,68,53,.14)}
.mega-feat{background:var(--grad-mint);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.mega-list a:hover b,.mega-list a[aria-current] b,.mega-aud .aud-list a:hover b,.mega-aud .aud-list a[aria-current] b{color:var(--emerald-700);text-decoration-color:var(--gold-500)}

/* ---------------------------------------------------------------- buttons (Health: radius 6, emerald + gold bottom edge; secondary white + lapis border) */
.btn{border-radius:var(--r-sm);background:var(--grad-emerald);color:#fff;border:1px solid var(--emerald-700);border-bottom:3px solid var(--gold-500);font-weight:600;box-shadow:var(--shadow-1)}
.btn:hover{background:var(--emerald-800);border-color:var(--emerald-800);border-bottom-color:var(--gold-500);color:#fff}
.btn .ico{color:var(--gold-300)}
.btn-line,.btn-ghost,.btn-wa,.btn.btn-line,.btn.fx-btn2{background:#fff;color:var(--emerald-700);border:1px solid var(--lapis-line);box-shadow:none}
.btn-line:hover,.btn-ghost:hover,.btn-wa:hover,.btn.btn-line:hover{background:var(--emerald-50);border-color:var(--emerald-700);color:var(--emerald-800)}
.btn-line .ico,.btn-ghost .ico,.btn-wa .ico{color:var(--emerald-700)}
.btn-light{background:#fff;color:var(--emerald-700);border:1px solid var(--lapis-line)}
.tlink{color:var(--emerald-700)}

/* ---------------------------------------------------------------- heroes: daylight gradient + hexagon line pattern + gold seam */
#main :is(.phero,.fx-hero,.iv-hero,.sw-hero,.c-hero){background:var(--seam) bottom/100% 2px no-repeat,var(--grad-daylight);color:var(--ink);border-bottom:0}
#main :is(.fx-hero-bg,.iv-hero-bg,.sw-hero-bg,.phero-grid){background:url(img/hex-pattern.svg) no-repeat right -40px top 50%/auto 104%;-webkit-mask-image:none;mask-image:none;opacity:.75}
[dir=rtl] #main :is(.fx-hero-bg,.iv-hero-bg,.sw-hero-bg,.phero-grid){background-position:left -40px top 50%}
#main :is(.fx-hero-bg,.iv-hero-bg,.sw-hero-bg) i{display:none}
#main .c-grid-bg{display:none}
#main :is(.fx-lead,.phero .lead,.iv-lead,.sw-lead,.c-hsub){color:var(--ink-soft)}
@media (max-width:760px){#main :is(.fx-hero-bg,.iv-hero-bg,.sw-hero-bg,.phero-grid){background-size:auto 62%;background-position:right -150px top 24px;opacity:.55}
[dir=rtl] #main :is(.fx-hero-bg,.iv-hero-bg,.sw-hero-bg,.phero-grid){background-position:left -150px top 24px}}
/* home hero: the only map on the site – kept, restyled for the light ground (see core.css map tokens) */
.core .c-btn{border-radius:var(--r-sm)}
.core .c-btn:not(.c-btn-2):not(.c-btn-g),.core .c-hero .c-btn-1{background:var(--grad-emerald);color:#fff;border:1px solid var(--emerald-700);border-bottom:3px solid var(--gold-500);font-weight:600}
.core .c-btn:not(.c-btn-2):not(.c-btn-g):hover,.core .c-hero .c-btn-1:hover{background:var(--emerald-800);border-color:var(--emerald-800);border-bottom-color:var(--gold-500)}
.core .c-btn:not(.c-btn-2):not(.c-btn-g) .c-arr{color:var(--gold-300)}
.core .c-btn-2,.core .c-btn-g{background:#fff;color:var(--emerald-700);border:1px solid var(--lapis-line)}
.core .c-btn-2:hover,.core .c-btn-g:hover{background:var(--emerald-50);border-color:var(--emerald-700)}
.core .c-btn-2 .c-arr,.core .c-btn-g .c-arr{color:var(--emerald-700)}

/* ---------------------------------------------------------------- footer: light, hairline + gold seam, no dark band */
.ftr{position:relative;background:#fff;color:var(--ink);border-top:1px solid var(--line)}
.ftr::before{content:"";position:absolute;inset-inline:0;top:-1px;height:2px;background:var(--seam);pointer-events:none}

/* ---------------------------------------------------------------- cards (white, hairline, soft shadow, radius) */
/* hairline grids (items share 1px lines): the whole strip becomes one white rounded card, like the Health benefit strip */
:is(.fxh-facts,.fxh-fn,.fxs-band,.fxs-fts,.fxs-path,.fxs-defs,.fx-risks,.fx-grid,.fx-spec,.invp .iv-risks,.invp .ct-spec,.invp .svs){border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-1)}
:is(.fxh-facts,.fxh-fn,.fxs-band,.fxs-fts,.fxs-path,.fxs-defs,.fx-risks,.fx-grid,.fx-spec,.invp .iv-risks,.invp .ct-spec,.invp .svs) :focus-visible{outline-offset:-3px}
.fx-grid>li>a:hover{background:var(--row-hover)}
/* separate cards */
.fx-bc-in{border-radius:var(--r-lg);background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-1)}

/* interface sketches: light "device" frames */
.fx-hero-fig,.iv-hero-fig,.sw-hero-fig{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-3);padding:clamp(12px,1.4vw,20px)}
.fx-win,.fx-doc{border-radius:var(--r-md);box-shadow:var(--shadow-1)}

/* forms */
.f input,.f select,.f textarea{border-radius:var(--r-sm);background:#fff}

/* ---------------------------------------------------------------- home hero map (the only map on the site): emerald/gold on daylight */
.core .c-hero{--fig-acc:var(--gold-500);--fig-node:var(--emerald-900);--fig-line:var(--emerald-300);--fig-dot:var(--emerald-300)}
.core .c-hero .sy-city .sy-main{fill:var(--emerald-700);opacity:1}
.core .c-hero .sy-ext text{fill:var(--gold-700);opacity:1}
.core .c-hero .sy-city text{opacity:.85}

/* story chapters (home): inactive chapters stay readable on the light ground (was .62 on ink) */
@media (min-width:761px){.core .st-js .st-ch:not(.is-on){opacity:.88}}

/* ---------------------------------------------------------------- forms: white card, rounded fields, emerald submit */
.core .c-formbox{--fc-acc:var(--ksigi);--fc-field:#fff}
.core .c-formbox .f :is(input,select,textarea){border-radius:var(--r-sm)}
.core .c-formbox .btn,.fx-ch-r .btn,.toc .ask .btn{background:var(--grad-emerald);color:#fff;border:1px solid var(--emerald-700);border-bottom:3px solid var(--gold-500);border-radius:var(--r-sm);font-weight:600}
.core .c-formbox .btn:hover,.fx-ch-r .btn:hover,.toc .ask .btn:hover{background:var(--emerald-800);color:#fff;border-color:var(--emerald-800);border-bottom-color:var(--gold-500)}
.core .c-formbox .form-result .btn-line{background:#fff;color:var(--emerald-700);border:1px solid var(--lapis-line);border-bottom-width:1px}
.fx-cr-box{background:#fff;border-top:3px solid var(--gold-500);box-shadow:var(--shadow-2)}
@media (min-width:761px){.fx-cr-box{border-radius:var(--r-lg)}}
.core .st-cta .c-btn:not(.c-btn-2):not(.c-btn-g){background:var(--emerald-700)}
@media (max-width:760px){.core .cm-seq.cm-lit .c-pr-m b{color:#fff}}  /* pre-existing: number badge was acc-on-acc on phones */
.ph2-btn,.lang-cur,.mo-tg{border-radius:var(--r-sm)}

/* ================================================================================================================
   r24 polish layer (appended to health.css by tools/r24build.py). Owner request 05.11.2026: "check everything … make a
   better design for the images, colours and motion". Only presentation: no text, no structure.
   ================================================================================================================ */

/* ---------------------------------------------------------------- one motion system
   Durations 120–600 ms, one ease-out curve (the Health --ease-out), small rises, short staggers. Only transform/opacity
   move; reduced-motion and the Motion switch (html.mo-paused) keep their existing hard stops. */
:root{--m-ease-out:cubic-bezier(.2,.7,.2,1);--m-ease-inout:cubic-bezier(.45,0,.25,1);--m-1:120ms;--m-2:200ms;--m-3:320ms;--m-4:520ms;--m-5:600ms;
  --m-stagger:50ms;--m-rise:12px;--d-1:.2s;--d-2:.32s;--d-3:.52s}
.fx,.swp,.invp,.core{--e:var(--m-ease-out)}
/* reveals that ran longer than the system allows (.9–.95 s) */
.sw-js .swp .sw-close h2[data-sw-in]{animation-duration:var(--m-5);--fy:14px}
.sw-js .swp [data-sw-in]{--fy:12px}
.jl.is-lit>*::after{animation-duration:var(--m-5)}
.mo .glance .gl-in[data-mo-reveal].is-in:not(.mo-now) :is(.gl-h,.gl-what,.gl-c,.gl-not){animation-duration:var(--m-4)}
@keyframes fx-rise-px{from{opacity:0;transform:translate3d(0,12px,0)}}
@keyframes iv-rise-px{from{opacity:0;transform:translate3d(0,12px,0)}}

/* gentle hover lifts (pointer devices only, motion on) */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  html:not(.mo-paused) :is(.btn,.c-btn,.hdr-cta,.nd-cta,.ph2-btn){transition:transform var(--m-2) var(--m-ease-out),box-shadow var(--m-2) var(--m-ease-out),background-color var(--m-2) ease,border-color var(--m-2) ease,color var(--m-2) ease}
  html:not(.mo-paused) :is(.btn,.c-btn,.hdr-cta,.nd-cta,.ph2-btn):hover{transform:translate3d(0,-1px,0);box-shadow:0 6px 14px -6px rgb(4 68 53/.32)}
  html:not(.mo-paused) :is(.btn,.c-btn,.hdr-cta,.nd-cta,.ph2-btn):active{transform:none;box-shadow:var(--shadow-1);transition-duration:80ms}
  html:not(.mo-paused) :is(.btn-line,.btn-ghost,.btn-wa,.c-btn-2,.c-btn-g):hover{box-shadow:0 4px 12px -6px rgb(4 68 53/.22)}
  html:not(.mo-paused) :is(.core .c-card,.fx-bc-in,.mega-feat){transition:transform var(--m-3) var(--m-ease-out),box-shadow var(--m-3) var(--m-ease-out),border-color var(--m-3) ease}
  html:not(.mo-paused) :is(.core .c-card,.fx-bc-in):has(a:hover){transform:translate3d(0,-3px,0);box-shadow:var(--shadow-2);border-color:var(--lapis-line)}
  html:not(.mo-paused) .mega-feat:hover{box-shadow:var(--shadow-2)}
  html:not(.mo-paused) :is(.mo-arrow,.c-arr){transition:transform var(--m-2) var(--m-ease-out)}
  html:not(.mo-paused) a:hover>:is(.mo-arrow,.c-arr),html:not(.mo-paused) a:hover :is(.mo-arrow,.c-arr){transform:translate3d(calc(var(--mo-x,1) * 3px),0,0)}
  html:not(.mo-paused)[dir=rtl] a:hover :is(.mo-arrow,.c-arr){transform:translate3d(-3px,0,0)}
}

/* ---------------------------------------------------------------- headings: no orphan words, calmer paragraph rag */
#main :is(h1,h2,h3),.mega :is(b,.mega-lbl),.ftr .f-h{text-wrap:balance}
#main :is(p,li,dd,figcaption,summary){text-wrap:pretty}

/* ---------------------------------------------------------------- fonts: IBM Plex everywhere (no Schibsted / Segoe leftovers) */
.core :is(.c-line-v,.c-clause-n){font-family:"IBM Plex Sans","IAG Plex Fallback",system-ui,sans-serif}
html:not(:lang(ar)) .core :is(.st-ui,.ui,.ui-top b,.ui-h){font-family:"IBM Plex Sans","IAG Plex Fallback",system-ui,sans-serif}
.lang a[lang=ar],.lang-cur[lang=ar]{font-family:"IBM Plex Sans Arabic","IAG Arabic Fallback",Tahoma,sans-serif}

/* ---------------------------------------------------------------- stray colours → tokens */
.core .c-l,.core .c-w{--fg2:var(--ink-soft);--fg3:var(--ink-faint);--fig-node:var(--emerald-900);--fig-dot:var(--emerald-300);--fig-line:var(--emerald-500);--fig-faint:rgba(4,68,53,.06)}
.core .c-d{--fig-node:var(--emerald-900);--fig-dot:var(--emerald-300);--fig-line:var(--emerald-500);--fig-faint:rgba(4,68,53,.06)}
.fx,.fx-scene,.fx-doc,.fx.light,.fx .light,.fx.dark,.fx .dark{--amber:var(--warn);--red:var(--danger)}

/* ---------------------------------------------------------------- interface sketches: crafted for the light Health look
   white panels, mint headers/tints, emerald accents (active, done, progress), gold only for stamps/markers,
   green-grey hairlines instead of neutral greys, rounded "device" frames with soft layered shadows. */
:is(.fx-scene,.fx-hero-fig,.fx-win,.fx-doc,.sw-hero-fig,.swp .hx,.swp .dc,.swp .jr-sc,.iv-hero-fig,.invp .ivx,.invp .cx,.core .ui,.core .st-stage){
  --signal:var(--emerald-600);--sig:var(--emerald-600);--ksig:var(--emerald-600);--signal-t:var(--emerald-700);--signal-dim:rgba(18,122,96,.12);
  --line-d:#DDE9E2;--line-d2:#A9CBBE;--kld:#DDE9E2;--kld2:#A9CBBE;--panel2:#F5FAF7;--alt:#F5FAF7}
:is(.fx-stamp,.j-stamp,.st-stamp,.phero-stamp){--signal:var(--gold-500);--sig:var(--gold-500);--ksig:var(--gold-500);--signal-t:var(--gold-700)}
.fx-hero-fig,.iv-hero-fig,.sw-hero-fig{border-color:#DDE9E2;border-radius:var(--r-xl);
  box-shadow:0 1px 2px rgb(4 68 53/.05),0 12px 28px -14px rgb(4 68 53/.18),0 36px 64px -32px rgb(4 68 53/.22);
  background:linear-gradient(180deg,#fff 0%,#FBFDFB 100%)}
.fx-win{border-radius:var(--r-md);border-color:#CFE2D8;box-shadow:0 1px 2px rgb(4 68 53/.05),0 14px 30px -18px rgb(4 68 53/.22)}
.fx-win-h{background:linear-gradient(180deg,#F5FAF7,#fff);border-bottom-color:#DDE9E2}
.fx-doc{border-radius:var(--r-sm);border-color:#CFE2D8;box-shadow:0 1px 2px rgb(4 68 53/.05),0 16px 32px -20px rgb(4 68 53/.22)}
.fx-bar{background:var(--emerald-100);border-radius:999px}
.fx-bar>*{border-radius:inherit}
.fx-chip{border-radius:5px}
.fx-chip.ok{color:var(--emerald-700);background:var(--emerald-50);border-color:var(--emerald-300)}
.fx-chip.fill{background:var(--grad-emerald);border-color:var(--emerald-700)}
.fx-chip.wait{background:var(--warn-wash)}
.fx-chip.err{background:var(--danger-wash)}
.fx-chip.plan{border-color:var(--lapis-line)}

/* ---------------------------------------------------------------- r23 colour-map artefacts: light panels had become gold fills */
.core .c-card-fig,.core .c-card-fig img{background:#F4F9F6}
.core .c-card-fig{border-bottom-color:var(--line)}
.core .ui-nav{background:var(--emerald-50)}
.core .ui-r.on{background:var(--emerald-50)}
.core .ui-sw{background:var(--gold-50)}
.core .ui-sr{background:var(--surface-2)}

/* ---------------------------------------------------------------- home map (the only map on the site): polished on daylight */
.core .c-hero .sy-base>use{fill:rgba(227,241,234,.55);stroke:var(--emerald-500);stroke-width:1.3}
.core .c-hero{--fig-line:var(--emerald-500);--fig-dot:#A9D3C1;--fig-faint:rgba(4,68,53,.05)}
.core .c-hero .sy-arc{stroke:var(--gold-500);stroke-width:1.7}
:root .core .c-hero .sy-city text{fill:var(--emerald-900);opacity:1;font-weight:500;paint-order:stroke;stroke:rgba(247,250,246,.9);stroke-width:3px;stroke-linejoin:round}
.core .c-hero .sy-city .sy-main{fill:var(--emerald-700)}
.core .c-hero .sy-tick text,.core .c-hero .sy-scale text{fill:var(--ink-faint)}
.core .c-hero .fig-tick{opacity:1}
.core .c-hero .sy-coord{fill:var(--emerald-800)}

/* ---------------------------------------------------------------- 404 */
.e404-hero .big404{color:var(--emerald-900);background:linear-gradient(180deg,var(--emerald-900) 0%,var(--emerald-700) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.e404-hero .e404 h2{color:var(--emerald-900)}

/* ---------------------------------------------------------------- print: content only, nothing left faded or cut off */
@media print{
  html,body{background:#fff!important}
  .hdr,.ftr,.qc,.mega,.nav-wrap,.nav-toggle,.mo-pause,.skip,.skip-link,.j-hair,.cm-hair,.pidx,.ph-ix,.toc,body::after{display:none!important}
  *,*::before,*::after{animation:none!important;transition:none!important}
  #main :is([data-mo-reveal],[data-mo-stagger]>*,[data-fx-in],[data-fx-in]>*,[data-sw-in],[data-sw-in]>*,[data-iv-in],[data-iv-in]>*,.cm-rv,.cm-kh,.cm-w,.cm-seq>*,.jl>*,.st-ch,.kw,.gl-in,.gl-in>*,.j-hero *,.jpath>li>*){opacity:1!important;transform:none!important;filter:none!important}
  #main div[aria-hidden=true],#main [class*=stage]>[aria-hidden=true]{display:none!important}
  #main .fx-pks{grid-template-columns:1fr 1fr!important}
  #main .fx-pk{min-width:0!important;width:auto!important}
  #main :is(.fx-hero-fig,.iv-hero-fig,.sw-hero-fig,.fx-scene,.c-hero-fig,.st-stage,figure[aria-hidden=true],[aria-hidden=true].fig){display:none!important}
  #main :is(.phero,.fx-hero,.iv-hero,.sw-hero,.c-hero){background:#fff!important;min-height:0!important}
  #main [data-swipe],#main .swipe,#main [class*=rail]{overflow:visible!important;flex-wrap:wrap!important}
  #main [data-swipe]>*{flex:1 1 240px!important;min-width:0!important;max-width:none!important}
  #main :is(h1,h2,h3){break-after:avoid}
  #main :is(article,li,.fx-bc-in,details,tr,figure,blockquote){break-inside:avoid}
  details::details-content{content-visibility:visible!important;display:block!important}
  a[href^="http"]::after{content:""}
}

/* sketch text placeholders: mint-grey instead of warm grey */
.fx-doc>s,.fx-doc s,.fx-sk s{background:#DDE9E2}
