/* ============================================================
   AGATE — original Divi design language, fixed & extended
   ============================================================ */
:root{
  --orange:#F15B33;
  --orange-dark:#d94a24;
  --ink:#666;
  --dark:#333;
  --serif:'Taviraj',Georgia,'Times New Roman',serif;
  --sans:'Open Sans',Arial,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--sans);color:var(--ink);line-height:1.7;font-size:16px;background:#fff;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:var(--orange);text-decoration:none}
a:hover{color:var(--orange-dark)}
section{scroll-margin-top:150px}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}

/* text scaling for vision problems */
html[data-fontscale="2"] body > :not(.site-top):not(.menu-bar){zoom:1.15}
html[data-fontscale="3"] body > :not(.site-top):not(.menu-bar){zoom:1.3}

h1,h2,h3,h4{font-family:var(--serif);font-weight:600;color:var(--dark)}
h2.sec{font-size:clamp(1.9rem,3.4vw,2.5rem);color:var(--orange);margin-bottom:22px}

/* ============ header ============ */
.site-top{background:#fff;position:relative;z-index:1001}
.site-top .wrap{display:flex;align-items:center;gap:30px;min-height:170px;flex-wrap:wrap;padding-top:14px;padding-bottom:14px}
.brand-logos{display:flex;align-items:center;gap:34px;flex-wrap:wrap}
.brand-logos img{height:110px;width:auto}
.top-info{margin-left:auto;text-align:right}
.top-info .info-line{font-family:var(--sans);font-weight:700;color:var(--orange);font-size:17px}
.top-info a{color:var(--orange)}

/* ============ orange menu bar ============ */
.menu-bar{background:var(--orange);position:sticky;top:0;z-index:1000;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.menu-bar .wrap{display:flex;align-items:center}
.menu-bar ul{list-style:none;display:flex;flex-wrap:wrap;align-items:center}
.menu-bar a.ml{display:block;color:#fff;font-family:var(--sans);font-weight:600;font-size:14.5px;padding:15px 11px;transition:background .15s}
.menu-bar a.ml:hover{background:rgba(255,255,255,.14);color:#fff}
.menu-bar .bar-tools{margin-left:auto;display:flex;align-items:center;gap:10px;padding:8px 0}
.font-scale{display:flex;border:1.5px solid rgba(255,255,255,.8);border-radius:18px;overflow:hidden}
.font-scale button{border:0;background:transparent;color:#fff;font-weight:700;padding:4px 8px;cursor:pointer;font-family:var(--sans);font-size:.78rem}
.font-scale button:nth-child(2){font-size:.92rem}
.font-scale button:nth-child(3){font-size:1.05rem}
.font-scale button.active{background:#fff;color:var(--orange)}
.nav-toggle{display:none;background:none;border:0;cursor:pointer;padding:10px;margin-left:auto}
.nav-toggle span{display:block;width:26px;height:3px;background:#fff;margin:5px 0;border-radius:2px}

/* ============ hero ============ */
.hero{
  position:relative;
  background:url("AGATE-scaled.jpg") center/cover no-repeat;
  padding:90px 0 110px;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:url("psychologist-03.jpg") center/cover no-repeat;
  opacity:.55;pointer-events:none;
}
.hero > .wrap{position:relative;z-index:1}
.hero-flex{display:flex;gap:40px;align-items:flex-start}
.hero-panel{
  background:rgba(255,255,255,.88);padding:56px 54px 60px;flex:1.2;
  box-shadow:0 4px 30px rgba(0,0,0,.08);
}
.hero-panel h1{font-size:clamp(2rem,4vw,2.9rem);color:var(--orange);line-height:1.25;margin-bottom:14px}
.hero-panel p{font-size:1.15rem;color:var(--dark);max-width:520px}
.btn{
  display:inline-block;padding:13px 28px;border:0;cursor:pointer;font-family:var(--sans);
  font-weight:600;font-size:15px;transition:.15s;border-radius:3px;
}
.btn-orange{background:var(--orange);color:#fff}
.btn-orange:hover{background:var(--orange-dark);color:#fff}
.btn-gray{background:#e8e8e8;color:var(--dark)}
.btn-gray:hover{background:#dcdcdc;color:var(--dark)}
.hero-panel .btn{margin-top:26px}
.hero-photo{flex:.8;max-width:420px}
.hero-photo img{width:100%;box-shadow:0 4px 30px rgba(0,0,0,.10)}
.hero-motto{
  background:#fff;text-align:center;padding:26px 24px;
  font-family:var(--serif);font-style:italic;color:var(--orange);font-size:1.1rem;line-height:1.8;
}

/* ============ generic sections ============ */
.sec{padding:70px 0}
.sec-gray{background:#f8f8f8}
#pakalpojumi{
  background:linear-gradient(rgba(255,255,255,.72),rgba(255,255,255,.72)),url("how-to-choose-a-psychologist-consultant-5-steps-of-search_5d685872a67aa.jpg") center/cover no-repeat;
}
.sec p{margin-bottom:12px}
.sec h3.sub{font-size:1.45rem;color:var(--dark);margin:34px 0 12px}
.lead{color:var(--dark);font-size:1.08rem}

.cards{display:grid;gap:26px}
.cards-2{grid-template-columns:repeat(2,1fr)}
.cards-3{grid-template-columns:repeat(3,1fr)}
.card{background:#fff;padding:34px 30px;box-shadow:0 3px 18px rgba(0,0,0,.06)}
.sec-gray .card{box-shadow:0 3px 18px rgba(0,0,0,.07)}
.card h3,.card h4{color:var(--orange);font-size:1.3rem;margin-bottom:12px}
.card h4{font-size:1.12rem;color:var(--dark)}
.card ul{padding-left:1.2em}
.card li{margin-bottom:6px}
.price{color:var(--orange);font-weight:700}
.span-full{grid-column:1/-1}

/* articles */
.article-card .btn{margin-top:14px}

/* photos / rooms */
.rooms-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:26px 0 8px}
.rooms-grid figure{overflow:hidden;box-shadow:0 3px 14px rgba(0,0,0,.08);aspect-ratio:4/3}
.rooms-grid img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.rooms-grid figure:hover img{transform:scale(1.05)}
.rooms-logo{height:74px;width:auto;margin:36px 0 4px}
.rooms-title{font-size:1.5rem;margin-bottom:2px}

/* gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:26px}
.gallery-grid a{display:block;overflow:hidden;box-shadow:0 3px 12px rgba(0,0,0,.08);aspect-ratio:4/3;cursor:zoom-in}
.gallery-grid img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.gallery-grid a:hover img{transform:scale(1.06)}

/* lightbox */
.lightbox{position:fixed;inset:0;background:rgba(10,10,10,.92);display:none;align-items:center;justify-content:center;z-index:3000;padding:30px}
.lightbox.open{display:flex}
.lightbox img{max-width:92vw;max-height:88vh}
.lightbox .lb-close{position:absolute;top:16px;right:26px;font-size:2.4rem;color:#fff;cursor:pointer;line-height:1}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);font-size:3rem;color:#fff;cursor:pointer;padding:20px;opacity:.75;user-select:none}
.lb-nav:hover{opacity:1}
.lb-prev{left:8px}.lb-next{right:8px}

/* team */
.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.member{background:#fff;box-shadow:0 3px 18px rgba(0,0,0,.07);display:flex;flex-direction:column}
.member .ph{aspect-ratio:1/1;width:100%;object-fit:cover}
.member .ph.placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#F15B33,#c74420);color:#fff;font-family:var(--serif);font-size:2.6rem;font-weight:600}
.member .body{padding:22px 24px 26px;display:flex;flex-direction:column;flex:1}
.member .role{font-family:var(--sans);font-weight:700;font-size:.82rem;text-transform:uppercase;letter-spacing:.04em;color:var(--ink)}
.member h3{color:var(--orange);font-size:1.35rem;margin:2px 0 6px}
.member .motto{font-family:var(--serif);font-style:italic;color:var(--orange);font-size:.98rem}
.member .cert{font-size:.92rem;color:var(--dark);margin-top:10px}
.member details{margin-top:12px}
.member summary{cursor:pointer;font-family:var(--sans);font-weight:700;color:var(--dark);list-style:none;padding:7px 0;user-select:none}
.member summary::before{content:"+ ";color:var(--orange);font-weight:800}
.member details[open] summary::before{content:"– "}
.member details ul{font-size:.9rem;padding-left:1.2em}
.member details h4{font-size:.95rem;margin:12px 0 4px;color:var(--dark);font-family:var(--sans);font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.member details p{font-size:.9rem}

/* structural units */
.unit{background:#fff;box-shadow:0 3px 18px rgba(0,0,0,.07);padding:40px;margin-top:34px}
.unit-head{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:14px}
.unit-head img{height:80px;width:auto}
.unit-head h3{color:var(--orange);font-size:1.6rem}
.unit h4{font-size:1.25rem;margin:26px 0 8px}
.unit .meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.unit .meta span{background:#f4f4f4;padding:7px 16px;font-size:.9rem;font-weight:600;color:var(--dark)}

/* projects */
.projects-cols{columns:2;column-gap:44px}
.projects-cols li{break-inside:avoid;margin-bottom:12px;font-size:.95rem}
.projects-cols ul{margin-top:6px}

/* partners */
.partners-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;list-style:none;padding:0}
.partners-grid li{background:#fff;padding:15px 20px;font-weight:600;color:var(--dark);box-shadow:0 3px 12px rgba(0,0,0,.06)}

/* ============ kontakti (orange-tinted photo bg like original) ============ */
.sec-kontakti{
  background:linear-gradient(rgba(255,255,255,.28),rgba(255,255,255,.28)),url("b2e02296045249.5ea5afb596cdb.png") center/cover no-repeat;
  padding:80px 0;
}
.sec-kontakti h2.sec{color:#7a2c12}
.kontakt-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:50px;align-items:start}
.kontakt-info h2{color:#7a2c12}
.kontakt-info h3{font-size:1.7rem;margin:30px 0 10px;color:#5c2410}
.kontakt-info h3:first-of-type{margin-top:0}
.kontakt-info li{margin-bottom:4px;color:#3d1d0d}
.kontakt-info a{color:#7a2c12;font-weight:700}
.kontakt-info a:hover{color:#5c2410}
.kontakt-info .big-phone{font-family:var(--serif);font-size:2rem;color:#5c2410;font-weight:600}
.contact-card{background:#fff;padding:34px 30px;box-shadow:0 6px 30px rgba(0,0,0,.15)}
.contact-card h3{color:var(--orange);font-size:1.5rem;margin-bottom:14px}
.contact-card label{display:block;font-weight:700;color:var(--dark);margin:14px 0 5px;font-size:.92rem}
.contact-card input,.contact-card textarea{
  width:100%;padding:11px 13px;border:1px solid #ddd;background:#fafafa;
  font-family:var(--sans);font-size:.97rem;color:var(--dark);
}
.contact-card input:focus,.contact-card textarea:focus{outline:none;border-color:var(--orange)}
.contact-card textarea{min-height:120px;resize:vertical}
.contact-card .btn{margin-top:18px}
.contact-card .direct{margin-top:16px;font-size:.9rem}
.form-note{font-size:.82rem;color:var(--ink);margin-top:10px}

/* ============ footer ============ */
.site-footer{background:var(--orange);color:#fff;padding:44px 0 30px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:40px}
.site-footer h4{color:#fff;font-size:1.25rem;margin-bottom:10px;font-family:var(--sans);font-weight:700}
.site-footer p,.site-footer li{color:rgba(255,255,255,.92);font-size:.95rem}
.site-footer ul{list-style:none;padding:0}
.footer-bottom{margin-top:30px;font-size:.82rem;color:rgba(255,255,255,.75)}

/* whatsapp float (like original plugin button) */
.wa-float{
  position:fixed;right:22px;bottom:16px;z-index:2000;width:75px;
  filter:drop-shadow(0 5px 14px rgba(0,0,0,.28));transition:transform .15s;
}
.wa-float:hover{transform:scale(1.06)}
.wa-float img{width:100%;display:block}

/* ---- pieejamības (accessibility) widget ---- */
.a11y-btn{
  position:fixed;left:22px;bottom:22px;z-index:2500;width:56px;height:56px;border-radius:50%;
  background:#111;color:#ffe94d;border:2.5px solid #ffe94d;display:flex;align-items:center;justify-content:center;
  cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.35);transition:transform .15s;
}
.a11y-btn:hover{transform:scale(1.08)}
.a11y-btn svg{width:26px;height:26px}

.a11y-panel{
  position:fixed;left:16px;bottom:90px;z-index:2600;width:352px;max-width:calc(100vw - 24px);
  max-height:calc(100vh - 120px);overflow-y:auto;display:none;
  background:#f9ee7a;border:3px solid #111;border-radius:24px;padding:18px 18px 14px;
  font-family:var(--sans);color:#111;box-shadow:0 14px 50px rgba(0,0,0,.35);
}
.a11y-panel.open{display:block}
.a11y-head{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:2px solid #111;margin-bottom:12px}
.a11y-title{display:flex;align-items:center;gap:8px;font-weight:800;font-size:1.15rem}
.a11y-title svg{width:22px;height:22px}
.a11y-close{margin-left:auto;width:38px;height:38px;border-radius:50%;border:2.5px solid #111;background:#f9ee7a;font-size:1.3rem;font-weight:700;cursor:pointer;line-height:1}
.a11y-close:hover{background:#111;color:#ffe94d}
.a11y-sec{font-weight:800;font-size:1rem;margin:14px 0 8px}
.a11y-row{display:flex;gap:8px;flex-wrap:wrap}
.a11y-pill,.a11y-toggle,.a11y-eye{
  font-family:var(--sans);font-weight:700;color:#111;background:#f9ee7a;
  border:2.5px solid #111;border-radius:26px;cursor:pointer;
}
.a11y-pill{padding:9px 20px;font-size:.98rem}
.a11y-pill.active{background:#111;color:#ffe94d}
.a11y-toggle{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;font-size:.95rem}
.a11y-toggle.wide{width:100%;justify-content:center;margin-bottom:8px}
.a11y-toggle.active{background:#111;color:#ffe94d}
.a11y-badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:2.5px solid #111;border-radius:8px;font-weight:800;font-size:.85rem}
.a11y-toggle.active .a11y-badge{border-color:#ffe94d}
.a11y-contrast{display:flex;gap:8px;justify-content:space-between}
.a11y-contrast > div{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:.72rem;font-weight:700;text-align:center}
.a11y-eye{width:58px;height:44px;border-radius:24px;border:2.5px solid #111;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;background:#f9ee7a}
.a11y-eye svg{width:32px;height:24px}
.a11y-eye.active{outline:3px solid #111;outline-offset:2px}
.a11y-extra{margin-top:2px}
.a11y-foot{border-top:2px solid #111;margin-top:14px;padding-top:12px;font-size:.82rem;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.a11y-reset{background:none;border:none;font-weight:700;font-size:.85rem;color:#111;text-decoration:underline;cursor:pointer;font-family:var(--sans)}

/* reading mask */
#read-mask{
  position:fixed;left:0;right:0;top:0;height:100vh;z-index:2400;pointer-events:none;display:none;
  background:linear-gradient(to bottom,
    rgba(0,0,0,.78) 0, rgba(0,0,0,.78) calc(50% - 34px),
    transparent calc(50% - 34px), transparent calc(50% + 34px),
    rgba(0,0,0,.78) calc(50% + 34px), rgba(0,0,0,.78) 100%);
}
#read-mask.on{display:block}

/* ---- accessibility modes ---- */
/* Viegli lasīt */
body.a11y-easy #lv-root, body.a11y-easy #en-root{
  font-size:19px;line-height:2;letter-spacing:.015em;
}
body.a11y-easy #lv-root p, body.a11y-easy #en-root p,
body.a11y-easy #lv-root li, body.a11y-easy #en-root li{line-height:2;margin-bottom:10px}
/* Paslēpt bildes */
body.a11y-noimg img{visibility:hidden}
/* Pasvītrot saites */
body.a11y-underlink a{text-decoration:underline !important}
/* Lielāka atstarpe */
body.a11y-spacing #lv-root p, body.a11y-spacing #en-root p,
body.a11y-spacing #lv-root li, body.a11y-spacing #en-root li{margin-bottom:16px;line-height:2.2 !important;letter-spacing:.04em}
body.a11y-spacing #lv-root h3, body.a11y-spacing #en-root h3,
body.a11y-spacing #lv-root h4, body.a11y-spacing #en-root h4{margin-top:44px}

/* ---- kontrasta režīmi ---- */
body.c-bwm, body.c-bwm #lv-root, body.c-bwm #en-root,
body.c-moy, body.c-moy #lv-root, body.c-moy #en-root,
body.c-yom, body.c-yom #lv-root, body.c-yom #en-root{background:#000 !important}
body[class*="c-"] #lv-root, body[class*="c-"] #en-root,
body[class*="c-"] #lv-root *, body[class*="c-"] #en-root *{
  background-image:none !important;
}
body.c-bwm #lv-root, body.c-bwm #en-root,
body.c-bwm #lv-root *, body.c-bwm #en-root *{
  background-color:#000 !important;color:#fff !important;border-color:#fff !important;
  box-shadow:none !important;text-shadow:none !important;
}
body.c-bwm #lv-root a, body.c-bwm #en-root a{color:#fff !important;text-decoration:underline}
body.c-bwm .menu-bar{background:#000 !important;border-bottom:2px solid #fff}

body.c-moy #lv-root, body.c-moy #en-root,
body.c-moy #lv-root *, body.c-moy #en-root *{
  background-color:#ffe94d !important;color:#111 !important;border-color:#111 !important;
  box-shadow:none !important;text-shadow:none !important;
}
body.c-moy #lv-root a, body.c-moy #en-root a{color:#111 !important;text-decoration:underline}
body.c-moy .menu-bar{background:#111 !important}
body.c-moy .menu-bar a.ml, body.c-moy .font-scale button, body.c-moy .lang-switch button{color:#ffe94d !important;background:transparent !important}
body.c-moy .font-scale button.active, body.c-moy .lang-switch button.active{background:#ffe94d !important;color:#111 !important}

body.c-yom #lv-root, body.c-yom #en-root,
body.c-yom #lv-root *, body.c-yom #en-root *{
  background-color:#000 !important;color:#ffe94d !important;border-color:#ffe94d !important;
  box-shadow:none !important;text-shadow:none !important;
}
body.c-yom #lv-root a, body.c-yom #en-root a{color:#ffe94d !important;text-decoration:underline}
body.c-yom .menu-bar{background:#000 !important;border-bottom:2px solid #ffe94d}

/* lens */
.lens-on-cursor{
  outline:3px solid var(--orange) !important;outline-offset:2px;border-radius:3px;
}


/* ============ responsive ============ */
@media (max-width:1150px){
  .brand-logos{gap:22px}
  .brand-logos img{height:84px}
  .site-top .wrap{min-height:0}
}
@media (max-width:980px){
  .hero-flex{flex-direction:column}
  .hero-photo{max-width:520px}
  .cards-3{grid-template-columns:1fr 1fr}
  .team-grid{grid-template-columns:1fr 1fr}
  .kontakt-grid{grid-template-columns:1fr}
  .rooms-grid{grid-template-columns:repeat(3,1fr)}
  .gallery-grid{grid-template-columns:repeat(4,1fr)}
  .projects-cols{columns:1}
  .footer-grid{grid-template-columns:1fr}
}
@media (max-width:820px){
  .nav-toggle{display:block}
  .menu-bar .wrap{flex-wrap:wrap}
  .menu-bar ul{flex-direction:column;width:100%;display:none;padding-bottom:10px}
  body.menu-open .menu-bar ul{display:flex}
  .menu-bar a.ml{padding:12px 6px;border-bottom:1px solid rgba(255,255,255,.18)}
  .bar-tools{padding:10px 0}
  section{scroll-margin-top:60px}
}
@media (max-width:640px){
  .site-top .wrap{justify-content:center}
  .brand-logos{flex-direction:column;align-items:center;gap:4px}
  .brand-logos img,
  .brand-logos img:first-child{height:72px}
  .top-info{margin:10px auto 0;text-align:center}
  .hero{padding:50px 0 60px}
  .hero-panel{padding:34px 26px}
  .cards-2,.cards-3{grid-template-columns:1fr}
  .rooms-grid{grid-template-columns:1fr 1fr}
  .gallery-grid{grid-template-columns:1fr 1fr}
  .team-grid{grid-template-columns:1fr}
  .partners-grid{grid-template-columns:1fr 1fr}
  .unit{padding:26px 20px}
  .sec{padding:50px 0}
}
@media (max-width:420px){
  .team-grid{grid-template-columns:1fr}
  .partners-grid{grid-template-columns:1fr}
}

/* ---- menu dropdowns (original sub-categories) ---- */
.menu-bar li.has-sub{position:relative}
.menu-bar li.has-sub > a.ml::after{content:" ˅";font-size:.8em;opacity:.85}
.menu-bar .sub-menu{
  position:absolute;top:100%;left:0;min-width:280px;background:#fff;list-style:none;
  box-shadow:0 8px 26px rgba(0,0,0,.18);padding:6px 0;opacity:0;visibility:hidden;
  transform:translateY(6px);transition:.15s;z-index:1200;display:block;
}
.menu-bar li.has-sub:hover .sub-menu,
.menu-bar li.has-sub:focus-within .sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.menu-bar .sub-menu a{display:block;padding:10px 18px;color:var(--dark);font-size:14px;font-weight:600}
.menu-bar .sub-menu a:hover{background:#f7f4f2;color:var(--orange)}
@media (max-width:820px){
  .menu-bar .sub-menu{
    position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;
    display:none;background:rgba(255,255,255,.08);min-width:0;padding:2px 0;
  }
  .menu-bar li.has-sub.open .sub-menu{display:block}
  .menu-bar .sub-menu a{color:#fff;padding:9px 24px;font-weight:400}
  .menu-bar .sub-menu a:hover{background:rgba(255,255,255,.1);color:#fff}
  .menu-bar li.has-sub > a.ml::after{content:" +";float:right}
  .menu-bar li.has-sub.open > a.ml::after{content:" –"}
}

/* ---- original-style plain lists (less "AI box" look) ---- */
ul.two-col{columns:2;column-gap:56px;padding-left:1.3em;margin:6px 0 10px}
ul.two-col li{break-inside:avoid;margin-bottom:8px}
ul.two-col.plain{list-style:none;padding:0}
ul.two-col.plain li{
  background:#fff;padding:13px 20px;margin-bottom:10px;
  font-weight:600;color:var(--dark);box-shadow:0 1px 6px rgba(0,0,0,.06);
}
ul.two-col.plain li::marker{content:""}

/* softer cards */
.card{box-shadow:0 1px 8px rgba(0,0,0,.07)}

/* units: plain like original text sections */
.unit.plain{background:transparent;box-shadow:none;padding:34px 0 6px;margin-top:26px;border-top:1px solid #eee}
.unit.plain:first-of-type{border-top:0}
.unit.plain .meta span{background:#f4f4f4}
/* ESF+ / SIF logo ansamblis (publicity) in project unit head */
.unit-head img.lg-ensemble{height:64px}
.unit ul{padding-left:1.3em;margin:6px 0 12px}
.unit ul li{margin-bottom:6px}
@media (max-width:900px){.unit-head img.lg-ensemble{height:52px}}
@media (max-width:640px){.unit-head img.lg-ensemble{height:auto;width:100%}}

@media (max-width:820px){
  ul.two-col{columns:1}
}

/* ---- LV / ENG language switch ---- */
.lang-switch{display:flex;border:1.5px solid rgba(255,255,255,.8);border-radius:18px;overflow:hidden}
.lang-switch button{border:0;background:transparent;color:#fff;font-weight:700;padding:4px 10px;cursor:pointer;font-family:var(--sans);font-size:.8rem}
.lang-switch button.active{background:#fff;color:var(--orange)}
#en-root{display:none}
body[data-lang="en"] #en-root{display:block}
body[data-lang="en"] #lv-root{display:none}

/* remove Safari/Chrome default details triangle (we draw our own orange +) */
.member summary::-webkit-details-marker{display:none}
.member summary{list-style:none}

/* font-scale applies to both language roots */
html[data-fontscale="2"] #lv-root > :not(.site-top):not(.menu-bar),
html[data-fontscale="2"] #en-root > :not(.site-top):not(.menu-bar){zoom:1.5}
html[data-fontscale="3"] #lv-root > :not(.site-top):not(.menu-bar),
html[data-fontscale="3"] #en-root > :not(.site-top):not(.menu-bar){zoom:2}

/* AIVIS project card: centre photo (top image from Word doc) with official funding logo ensemble next to it */
.aivis-top{display:flex;align-items:center;gap:28px;flex-wrap:wrap;margin:2px 0 18px}
.aivis-top .aivis-photo{flex:0 1 auto;width:min(360px,100%);height:auto;border-radius:6px}
.aivis-top .aivis-fund{flex:1 1 300px;max-width:560px;min-width:240px;height:auto}
