
:root{
  --zx-navy:#07182e;
  --zx-navy-2:#102c50;
  --zx-blue:#0758df;
  --zx-blue-2:#1383ec;
  --zx-cyan:#12c4ee;
  --zx-bg:#f7f9fb;
  --zx-surface:#ffffff;
  --zx-text:#122033;
  --zx-muted:#607083;
  --zx-border:#dfe7ee;
  --zx-soft:#eef6fb;
  --zx-radius:14px;
  --zx-shadow:0 12px 32px rgba(22,51,82,.08);
  --zx-max:1240px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--zx-bg);
  color:var(--zx-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto}
a{color:var(--zx-blue);text-decoration:none}
a:hover{color:#0347b7}
.zx-container{width:min(var(--zx-max),calc(100% - 40px));margin-inline:auto}
.zx-skip{position:absolute;left:-9999px;top:0}
.zx-skip:focus{left:12px;top:12px;z-index:99999;padding:10px 14px;background:#fff;border-radius:8px}

/* HEADER */
.zx-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.97);
  box-shadow:0 1px 12px rgba(10,32,58,.07);
  backdrop-filter:saturate(140%) blur(10px);
}
.zx-top{border-bottom:1px solid rgba(215,225,234,.82)}
.zx-top-inner{
  min-height:105px;
  display:flex;
  align-items:center;
  gap:30px;
}
.zx-brand{
  display:flex;
  align-items:flex-end;
  gap:20px;
  min-width:0;
}
.zx-logo{
  display:block;
  height:78px;
  width:auto;
  max-width:min(620px,70vw);
  object-fit:contain;
}
.zx-tagline{
  display:none; /* tagline is already present in the supplied new logo */
}
.zx-topbar{
  margin-left:auto;
  color:var(--zx-muted);
  font-size:.9rem;
}
.zx-nav{background:#fff}
.zx-nav .mod-menu{
  list-style:none;
  display:flex;
  align-items:center;
  gap:3px;
  padding:0;
  margin:0;
}
.zx-nav .mod-menu > li{position:relative}
.zx-nav .mod-menu > li > a{
  display:block;
  padding:15px 16px 13px;
  color:#26374c;
  font-size:.94rem;
  font-weight:650;
  border-bottom:3px solid transparent;
}
.zx-nav .mod-menu > li.active > a,
.zx-nav .mod-menu > li > a:hover{
  color:var(--zx-blue);
  border-bottom-color:var(--zx-blue);
}
.zx-nav-toggle{
  display:none;
  margin-left:auto;
  width:45px;height:42px;
  border:1px solid var(--zx-border);
  border-radius:10px;
  background:#fff;
  padding:8px 10px;
}
.zx-nav-toggle span{
  display:block;
  height:2px;
  background:#142d4a;
  margin:5px 0;
  border-radius:2px;
}

/* HERO — exact uploaded Bakgrund.png */
.zx-hero{
  position:relative;
  min-height:var(--zx-hero-min-height,390px);
  overflow:hidden;
  background-color:#eef6fb;
  background-image:
    image-set(
      url("../images/Bakgrund.webp") type("image/webp"),
      url("../images/Bakgrund.png") type("image/png")
    );
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover;
  border-bottom:1px solid #d8e6ef;
}
.zx-hero-inner{
  position:relative;
  min-height:var(--zx-hero-min-height,390px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:34px;
  padding-block:38px;
}
.zx-hero-brand{
  width:min(610px,48vw);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.zx-hero-logo{
  display:block;
  width:min(600px,100%);
  height:auto;
  filter:drop-shadow(0 2px 2px rgba(255,255,255,.35));
}
.zx-hero-extra{
  width:min(480px,36vw);
  margin-left:auto;
  padding:20px 22px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:14px;
  background:rgba(255,255,255,.66);
  box-shadow:0 12px 32px rgba(22,51,82,.07);
  backdrop-filter:blur(4px);
}
.zx-hero-extra h1,
.zx-hero-extra h2,
.zx-hero-extra h3{
  margin-top:0;
  color:#0b1d34;
}
.zx-hero-extra p{
  color:#405267;
}
.zx-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}
.zx-hero-actions p{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:0;
}
.zx-hero-actions a,
.zx-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 18px;
  border-radius:8px;
  font-weight:750;
  transition:.18s ease;
}
.zx-hero-actions a:first-child,.zx-btn-primary{
  background:linear-gradient(135deg,var(--zx-blue),var(--zx-blue-2));
  color:#fff;
  box-shadow:0 6px 18px rgba(7,88,223,.18);
}
.zx-hero-actions a:not(:first-child){
  background:rgba(255,255,255,.92);
  border:1px solid #9cbbe2;
  color:var(--zx-blue);
}
.zx-hero-actions a:hover{transform:translateY(-1px)}

/* MAIN */
.zx-breadcrumbs{
  background:#fff;
  border-bottom:1px solid var(--zx-border);
  padding:10px 0;
  font-size:.88rem;
}
.zx-main{padding:46px 0 70px}
.zx-layout{display:grid;grid-template-columns:1fr;gap:30px}
.zx-layout.zx-has-sidebar{grid-template-columns:minmax(0,1fr) 315px}
.zx-content{min-width:0}
.zx-content .item-page,
.zx-content .blog,
.zx-content .category-list,
.zx-content .contact,
.zx-content .login,
.zx-content .registration,
.zx-content .profile{
  background:#fff;
  border:1px solid var(--zx-border);
  border-radius:var(--zx-radius);
  box-shadow:0 6px 22px rgba(20,46,75,.045);
  padding:34px;
}
.zx-content h1,.zx-content h2,.zx-content h3{
  color:#112b49;
  letter-spacing:-.02em;
}
.zx-content h1{font-size:clamp(2rem,4vw,3rem)}
.zx-content h2{margin-top:2rem}
.zx-content .lead{font-size:1.12rem;color:#44566b}

.zx-zone{margin-top:30px}
.zx-card{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--zx-border);
  border-radius:var(--zx-radius);
  box-shadow:0 6px 22px rgba(20,46,75,.045);
  padding:27px;
  margin-bottom:24px;
}
.zx-card::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:4px;
  background:linear-gradient(180deg,var(--zx-blue),var(--zx-cyan));
}
.zx-module-title{
  margin:0 0 15px;
  color:#173959;
  font-size:1.1rem;
}
.zx-sidebar .zx-card{padding:23px}
.zx-card ul{padding-left:1.2rem}
.zx-card li{margin:.32rem 0}
.contact-list{list-style:none;padding:0!important;margin:0}
.contact-list li{padding:.48rem 0;border-bottom:1px solid #edf1f4}
.contact-list li:last-child{border-bottom:0}
.contact-list strong{
  display:block;
  text-transform:uppercase;
  letter-spacing:.045em;
  font-size:.72rem;
  color:#627487;
}
.status-row{display:flex;align-items:center;gap:9px}
.status-dot{
  width:9px;height:9px;border-radius:50%;
  background:#24a163;
  box-shadow:0 0 0 3px rgba(36,161,99,.12);
}

/* FOOTER */
.zx-footer{
  background:#edf3f7;
  border-top:1px solid #d8e2ea;
  color:#526477;
}
.zx-footer-grid{
  padding:42px 0 34px;
  display:grid;
  grid-template-columns:1.45fr repeat(3,1fr);
  gap:34px;
}
.zx-footer-logo{height:54px;width:auto}
.zx-footer h3{
  margin-top:0;
  color:#154177;
  text-transform:uppercase;
  letter-spacing:.065em;
  font-size:.76rem;
}
.zx-footer ul{list-style:none;padding:0;margin:0}
.zx-footer li{margin:.4rem 0}
.zx-footer-bottom{
  border-top:1px solid #d8e2ea;
  color:#788796;
  font-size:.84rem;
}
.zx-footer-bottom-inner{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

/* SPECIAL */
.zx-component-only{background:#fff;padding:28px}
.zx-component-wrap{max-width:1000px}
.zx-special-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  background:linear-gradient(135deg,#fff,#eaf5fb);
}
.zx-special-card{
  width:min(640px,100%);
  padding:42px;
  background:#fff;
  border:1px solid var(--zx-border);
  border-radius:18px;
  box-shadow:var(--zx-shadow);
  text-align:center;
}
.zx-special-card img{max-height:95px;width:auto}
.zx-error-code{
  margin-top:22px;
  font-size:5rem;
  line-height:1;
  font-weight:850;
  color:var(--zx-blue);
}

/* TABLET */
@media (max-width:1024px){
  .zx-layout.zx-has-sidebar{grid-template-columns:minmax(0,1fr) 280px}
  .zx-footer-grid{grid-template-columns:1.3fr 1fr 1fr}
  .zx-footer-grid > :last-child{grid-column:2/4}
  .zx-hero-copy{width:min(640px,76%)}
}

/* MOBILE NAV + TABLET */
@media (max-width:820px){
  .zx-header{position:sticky;top:0}
  .zx-top-inner{min-height:88px}
  .zx-logo{height:62px;max-width:78vw}
  .zx-topbar{display:none}
  .zx-nav-toggle{display:block}
  .zx-nav{display:none;border-top:1px solid var(--zx-border)}
  .zx-nav.zx-open{display:block}
  .zx-nav .mod-menu{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:10px 0;
  }
  .zx-nav .mod-menu > li > a{
    border-bottom:0;
    border-left:3px solid transparent;
    padding:11px 14px;
  }
  .zx-nav .mod-menu > li.active > a,
  .zx-nav .mod-menu > li > a:hover{
    border-left-color:var(--zx-blue);
    background:#f2f7fb;
  }
  .zx-hero{background-position:58% center}
  .zx-hero-inner{padding-block:30px}
  .zx-hero-brand{width:min(560px,64vw)}
  .zx-hero-extra{display:none}
  .zx-layout.zx-has-sidebar{grid-template-columns:1fr}
  .zx-footer-grid{grid-template-columns:1fr 1fr}
  .zx-footer-brand{grid-column:1/-1}
}

/* PHONE */
@media (max-width:560px){
  .zx-container{width:min(var(--zx-max),calc(100% - 24px))}
  .zx-top-inner{min-height:76px}
  .zx-logo{height:52px;max-width:78vw}
  .zx-hero{
    min-height:280px!important;
    background-position:61% center;
  }
  .zx-hero-inner{
    min-height:280px!important;
    align-items:center;
    padding:24px 0;
  }
  .zx-hero-brand{
    width:min(420px,82vw);
  }
  .zx-hero-extra{display:none}
  .zx-main{padding:28px 0 48px}
  .zx-content .item-page,
  .zx-content .blog,
  .zx-content .category-list,
  .zx-content .contact,
  .zx-content .login,
  .zx-content .registration,
  .zx-content .profile{
    padding:22px;
    border-radius:12px;
  }
  .zx-card{padding:21px}
  .zx-footer-grid{grid-template-columns:1fr;gap:20px}
  .zx-footer-brand{grid-column:auto}
  .zx-footer-bottom-inner{
    min-height:72px;
    align-items:flex-start;
    justify-content:center;
    flex-direction:column;
  }
}


/* =========================================================
   ZOXALITY v1.1 — public landing-page cleanup
   ========================================================= */

/* Joomla article chrome should not make the homepage look like a blog post */
.zx-content .article-info,
.zx-content .article-info-term,
.zx-content .article-info dd,
.zx-content .article-info dt,
.zx-content .icons,
.zx-content .icons .btn-group,
.zx-content .pagination,
.zx-content .pager,
.zx-content .pagenavigation,
.zx-content nav[aria-label="Pagination"],
.zx-content nav[aria-label="Page navigation"],
.zx-content .com-content-article__navigation {
  display:none !important;
}

/* Hide generic Details captions from article metadata renderers */
.zx-content .article-info + *[class*="article-info"],
.zx-content .article-info-term {
  display:none !important;
}

/* Landing-page article should blend into the site instead of looking like a CMS card */
.zx-content .item-page {
  border:0;
  box-shadow:none;
  padding:8px 4px 18px;
  background:transparent;
}

/* Stronger page rhythm */
.zx-content .item-page > h1:first-child,
.zx-content .item-page > h2:first-child {
  margin-top:0;
}

.zx-content .item-page h2 {
  margin-top:2.4rem;
  margin-bottom:.7rem;
}

.zx-content .item-page ul {
  columns:2;
  column-gap:38px;
  padding-left:1.25rem;
}

.zx-content .item-page li {
  break-inside:avoid;
  margin:.45rem 0;
}

/* Make module groups feel like the reference design */
.zx-projects,
.zx-repositories,
.zx-contact {
  margin-top:24px;
}

.zx-projects .zx-card,
.zx-repositories .zx-card,
.zx-contact .zx-card {
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.zx-projects .zx-card:hover,
.zx-repositories .zx-card:hover,
.zx-contact .zx-card:hover {
  transform:translateY(-2px);
  border-color:#c9dce9;
  box-shadow:0 14px 34px rgba(22,51,82,.08);
}

/* Contact list: visually separate label and address */
.contact-list li {
  display:grid;
  grid-template-columns:minmax(110px,145px) minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding:.65rem 0;
}
.contact-list strong {
  margin:0;
}
.contact-list a {
  overflow-wrap:anywhere;
}

/* Footer tightening */
.zx-footer-grid {
  align-items:start;
}
.zx-footer-brand {
  padding-right:18px;
}

/* Desktop landing page gets a little more air */
@media (min-width:821px){
  .zx-main {
    padding-top:54px;
  }
  .zx-content .item-page {
    max-width:880px;
  }
}

/* Mobile fixes */
@media (max-width:700px){
  .zx-content .item-page ul {
    columns:1;
  }
  .contact-list li {
    grid-template-columns:1fr;
    gap:2px;
  }
}

/* Prevent Joomla-generated heading wrappers from creating double spacing */
.zx-content .page-header {
  margin-bottom:18px;
}

/* v1.1.2 — professional breadcrumb navigation */
.zx-breadcrumbs{padding:0;background:linear-gradient(180deg,#fff,#fbfcfe);border-top:1px solid rgba(215,225,234,.7);border-bottom:1px solid var(--zx-border);box-shadow:0 5px 16px rgba(13,39,70,.025)}
.zx-breadcrumbs .zx-container{min-height:48px;display:flex;align-items:center}
.zx-breadcrumbs nav,.zx-breadcrumbs .mod-breadcrumbs__wrapper{width:100%}
.zx-breadcrumbs ol,.zx-breadcrumbs ul,.zx-breadcrumbs .breadcrumb,.zx-breadcrumbs .mod-breadcrumbs{display:flex!important;align-items:center;flex-wrap:wrap;gap:0!important;list-style:none!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;font-size:.82rem;line-height:1.2}
.zx-breadcrumbs li{display:flex!important;align-items:center;list-style:none!important;margin:0!important;padding:0!important;color:#6d7d91;font-weight:650}
.zx-breadcrumbs li::marker{content:""}
.zx-breadcrumbs .mod-breadcrumbs__here{display:none!important}
.zx-breadcrumbs li+li::before{content:"›"!important;display:inline-block!important;margin:0 .72rem!important;padding:0!important;color:#a4b1bf!important;font-size:1rem!important;font-weight:500!important}
.zx-breadcrumbs a{display:inline-flex;align-items:center;min-height:32px;color:#52667e;font-weight:700;text-decoration:none;border-radius:8px;padding:.22rem .35rem;transition:background .15s,color .15s}
.zx-breadcrumbs a:hover{background:#eef5fd;color:var(--zx-blue)}
.zx-breadcrumbs li:last-child,.zx-breadcrumbs .active{color:#172f4c;font-weight:800}
body.zx-inner .zx-main{padding-top:26px}
@media(max-width:620px){.zx-breadcrumbs .zx-container{min-height:44px}.zx-breadcrumbs li+li::before{margin:0 .45rem!important}.zx-breadcrumbs{overflow-x:auto}.zx-breadcrumbs ol,.zx-breadcrumbs ul{flex-wrap:nowrap;white-space:nowrap}}

/* =========================================================
   ZOXALITY v1.2.0 — readability, contrast and responsive pass
   ========================================================= */
:root{
  --zx-text:#13283f;
  --zx-muted:#455a70;
  --zx-border:#bccbd9;
  --zx-soft:#e8f1f8;
  --zx-shadow:0 12px 32px rgba(14,42,72,.11);
}
body{color:var(--zx-text);font-size:16px}
a{text-underline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(7,88,223,.32)!important;
  outline-offset:2px!important;
}
.zx-header{box-shadow:0 2px 14px rgba(10,32,58,.12)}
.zx-top{border-bottom:1px solid #c3d0dc}
.zx-nav .mod-menu > li > a{color:#1d334b;font-size:.97rem;font-weight:720}
.zx-nav-toggle{border:2px solid #aebfd0;min-width:46px;min-height:44px}
.zx-hero{border-bottom:2px solid #bfd0de}
.zx-hero-extra{border:2px solid rgba(171,194,214,.78);background:rgba(255,255,255,.86)}
.zx-hero-extra p,.zx-content .lead{color:#344b63}
.zx-breadcrumbs{border-top:1px solid #c2d0dc;border-bottom:2px solid #b7c7d5;box-shadow:0 5px 18px rgba(13,39,70,.05)}
.zx-breadcrumbs li{color:#4a6077;font-size:.86rem}
.zx-breadcrumbs a{color:#344f6c;font-weight:760}
.zx-breadcrumbs li:last-child,.zx-breadcrumbs .active{color:#102b49}
.zx-breadcrumbs li+li::before{color:#718297!important;font-weight:800!important}
.zx-content,.zx-card{color:#172d44}
.zx-content p,.zx-content li,.zx-card p,.zx-card li{color:#273e56}
.zx-content small,.zx-card small,.text-muted,.zx-content .text-muted{color:#4b6077!important}
.zx-content .item-page,
.zx-content .blog,
.zx-content .category-list,
.zx-content .contact,
.zx-content .login,
.zx-content .registration,
.zx-content .profile,
.zx-card{border-color:#b8c8d6;box-shadow:0 8px 26px rgba(20,46,75,.08)}
.zx-module-title{color:#103b66;font-weight:800}
.contact-list li{border-bottom-color:#cbd6e0}
.contact-list strong{color:#43586e;font-weight:800}
.zx-footer{background:#e6eef4;border-top:2px solid #b8c8d6;color:#334b63}
.zx-footer h3{color:#103e72;font-weight:850}
.zx-footer a{color:#174f91;font-weight:650}
.zx-footer-bottom{border-top:1px solid #bac9d6;color:#4f6275}

/* Generic Joomla forms/tables inside the Zoxality surface */
.zx-content input:not([type="checkbox"]):not([type="radio"]),
.zx-content select,.zx-content textarea{
  min-height:44px;border:2px solid #afc0cf;border-radius:9px;color:#142b43;background:#fff;
}
.zx-content table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #b6c6d4;border-radius:10px;overflow:hidden;background:#fff}
.zx-content th{background:#eaf1f6;color:#183650;font-weight:800;border-bottom:2px solid #b4c5d3}
.zx-content th,.zx-content td{padding:.75rem .85rem;border-bottom:1px solid #cbd7e1;vertical-align:top}
.zx-content tr:last-child td{border-bottom:0}

@media (max-width:820px){
  .zx-container{width:min(var(--zx-max),calc(100% - 28px))}
  .zx-nav{border-top:2px solid #b9c9d7}
  .zx-nav .mod-menu > li > a{min-height:46px;display:flex;align-items:center;font-size:1rem;padding:12px 14px}
  .zx-main{padding-top:24px}
  .zx-card{padding:22px}
}
@media (max-width:620px){
  body{font-size:16px;line-height:1.55}
  .zx-container{width:min(var(--zx-max),calc(100% - 20px))}
  .zx-logo{height:48px;max-width:75vw}
  .zx-top-inner{min-height:70px;gap:12px}
  .zx-main{padding:20px 0 38px}
  .zx-breadcrumbs .zx-container{min-height:46px}
  .zx-breadcrumbs ol,.zx-breadcrumbs ul,.zx-breadcrumbs .breadcrumb,.zx-breadcrumbs .mod-breadcrumbs{font-size:.86rem}
  .zx-content .item-page,.zx-content .blog,.zx-content .category-list,.zx-content .contact,.zx-content .login,.zx-content .registration,.zx-content .profile{padding:18px}
  .zx-content h1{font-size:clamp(1.8rem,9vw,2.35rem)}
  .zx-content h2{font-size:1.45rem}
  .zx-footer-grid{padding:30px 0 24px}
  .zx-footer-bottom{font-size:.88rem}
  .zx-content .table-responsive,.zx-content table{font-size:.92rem}
}

/* v1.2.1 — responsive layout hardening, preserving existing desktop presentation */
.zx-site,.zx-main,.zx-content,.zx-container,.zx-content>*{min-width:0}
.zx-content img,.zx-content video,.zx-content iframe,.zx-content svg{max-width:100%}
.zx-content iframe{height:auto;aspect-ratio:16/9}
.zx-content pre,.zx-content code{overflow-wrap:anywhere}
.zx-content pre{overflow-x:auto;white-space:pre;max-width:100%}
.zx-content a,.zx-card a{overflow-wrap:anywhere}
.zx-content .row > *, .zx-content [class*="col-"]{min-width:0}
.zx-content input:not([type="checkbox"]):not([type="radio"]),.zx-content select,.zx-content textarea{max-width:100%;min-width:0}
.zx-content .input-group,.zx-content .control-group,.zx-content .controls{min-width:0;max-width:100%}
.zx-content .table-responsive{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.zx-content table{max-width:100%}
.zx-content .btn,.zx-content button{white-space:normal;overflow-wrap:anywhere}
@media(max-width:820px){
  .zx-top-inner,.zx-brand,.zx-nav,.zx-main,.zx-footer-grid{min-width:0}
  .zx-content .row{max-width:100%;margin-inline:0}
  .zx-content .row > *{max-width:100%;}
  .zx-content .btn-group{flex-wrap:wrap}
  .zx-content .input-group{flex-wrap:wrap;gap:6px}
  .zx-content .input-group > input{flex:1 1 180px}
  .zx-content .input-group > .btn{flex:0 0 auto}
}
@media(max-width:620px){
  .zx-container{max-width:100%}
  .zx-content table{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .zx-content table th,.zx-content table td{white-space:normal;overflow-wrap:anywhere}
  .zx-content .pagination,.zx-content .pagination-list{flex-wrap:wrap;gap:5px}
  .zx-content .form-actions{display:flex;flex-wrap:wrap;gap:8px}
  .zx-content .form-actions > *{max-width:100%}
  .zx-content .item-page,.zx-content .blog,.zx-content .category-list,.zx-content .contact,.zx-content .login,.zx-content .registration,.zx-content .profile{min-width:0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* 1.2.2: readable, consistent small-screen typography. */
@media (max-width: 820px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .zx-content, .zx-card, .zx-footer, .zx-nav { font-size: 1rem; line-height: 1.6; }
  .zx-content h1 { font-size: clamp(1.75rem, 5.5vw, 2.35rem); line-height: 1.2; overflow-wrap: anywhere; }
  .zx-content h2 { font-size: clamp(1.4rem, 4.5vw, 1.85rem); line-height: 1.27; }
  .zx-content h3 { font-size: clamp(1.18rem, 3.8vw, 1.45rem); line-height: 1.35; }
  .zx-content p, .zx-content li, .zx-content dd, .zx-content dt { line-height: 1.6; }
  .zx-content input:not([type=checkbox]):not([type=radio]), .zx-content textarea,
  .zx-content select, .zx-content button, .zx-content .btn { font-size: 1rem; line-height: 1.4; }
  .zx-content small, .zx-content .small, .zx-content .form-text, .zx-breadcrumbs { font-size: .875rem; line-height: 1.5; }
  .zx-content th, .zx-content td { font-size: .875rem; line-height: 1.5; }
}
@media (max-width: 620px) {
  .zx-content h1 { font-size: clamp(1.65rem, 6.5vw, 2rem); }
  .zx-content h2 { font-size: clamp(1.35rem, 5vw, 1.65rem); }
  .zx-content h3 { font-size: 1.17rem; }
  .zx-content .lead { font-size: 1.05rem; line-height: 1.55; }
  .zx-content .item-page, .zx-content .blog, .zx-content .category-list,
  .zx-content .contact, .zx-content .login, .zx-content .registration,
  .zx-content .profile { padding: clamp(12px, 4vw, 18px); }
}

/* v1.2.4 — portrait mobile: retain branding/menu + context navigation */
@media (max-width:820px) and (orientation:portrait) {
  :root { --zx-sticky-header-height:70px; }
  .zx-header {
    position:sticky;
    top:0;
    z-index:1100;
    background:#fff;
    isolation:isolate;
  }
  .zx-breadcrumbs {
    position:sticky;
    top:var(--zx-sticky-header-height);
    z-index:1090;
    background:#fff;
  }
  /* An expanded menu must remain usable on a short phone display. */
  .zx-nav.zx-open {
    max-height: min(62dvh, 420px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  /* Scroll targets must not hide underneath fixed navigation. */
  #zx-main, .zx-content, [id] { scroll-margin-top:calc(var(--zx-sticky-header-height) + 58px); }
}

/* 1.2.7: cart is a normal primary-menu link, without a box. */
.zx-nav-with-cart{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.zx-nav-main-links{flex:1;min-width:0}
/* The navigation itself is WHITE; never use white menu-link text here. */
.zx-nav a.zx-menu-cart,
.zx-nav a.zx-menu-cart:visited{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  flex:none;white-space:nowrap;
  padding:15px 0 13px;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;text-decoration:none!important;
  color:#1d334b!important;
  font-family:inherit;font-size:.97rem;font-weight:720;line-height:normal;
}
.zx-nav a.zx-menu-cart:hover,
.zx-nav a.zx-menu-cart:focus-visible{color:var(--zx-blue)!important;background:transparent!important;box-shadow:none!important}
.zx-nav a.zx-menu-cart:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.zx-menu-cart svg{display:block;flex:none}
.zx-menu-cart .zx-cart-badge{
  display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
  border:2px solid currentColor;border-radius:999px;
  min-width:25px;height:25px;padding:0 5px;
  color:inherit;background:transparent!important;
  font-family:inherit;font-weight:720;font-size:.80rem;line-height:1;font-variant-numeric:tabular-nums;
}
.zx-cart-badge[hidden]{display:none!important}
@media(max-width:850px){
  .zx-nav-with-cart{align-items:flex-start;flex-wrap:wrap}
  .zx-nav a.zx-menu-cart{margin:7px 0 9px auto;font-size:1rem;padding:11px 0}
}

/* 1.2.8 – currency selector aligned with navigation, no button background */
.zx-menu-currency{display:inline-flex;align-items:center;gap:.35rem;color:inherit;font:inherit;white-space:nowrap}
.zx-currency-label{font:inherit}
.zx-menu-currency select{font:inherit;color:inherit;background:transparent;border:1px solid currentColor;border-radius:5px;padding:.2rem .3rem;min-width:4.1rem;max-width:5rem;cursor:pointer}
.zx-menu-currency select:focus-visible{outline:2px solid var(--zx-blue);outline-offset:2px}
.zx-nav-with-cart{flex-wrap:wrap}
@media(max-width:700px){.zx-menu-currency{margin-left:auto}}

/* 1.2.9 – Currency text follows the same menu typography as Cart. */
.zx-nav .zx-menu-currency,
.zx-nav .zx-menu-currency .zx-currency-label,
.zx-nav .zx-menu-currency select{
  font-family:inherit!important;
  font-size:.97rem!important;
  font-weight:720!important;
  line-height:normal!important;
  letter-spacing:inherit;
  color:#1d334b!important;
}
.zx-nav .zx-menu-currency select{background:transparent!important}
@media(max-width:850px){
  .zx-nav .zx-menu-currency,
  .zx-nav .zx-menu-currency .zx-currency-label,
  .zx-nav .zx-menu-currency select{font-size:1rem!important}
}

/* v1.2.10 – mobile menu built on the ORIGINAL v1.2.9 currency/cart logic.
   Keep both controls intact and show actual Joomla menu links in two columns. */
.zx-nav-tools {
  display:flex;
  align-items:center;
  flex:0 0 auto;
  gap:clamp(12px,1.5vw,22px);
  min-width:0;
}
/* The template uses Inter for the whole page; menu controls inherit its loaded faces. */
.zx-nav .zx-nav-with-cart,
.zx-nav .zx-nav-with-cart a,
.zx-nav .zx-nav-with-cart button,
.zx-nav .zx-nav-with-cart select {
  font-family:Inter,Arial,Helvetica,sans-serif;
}
@media (min-width:821px) {
  .zx-nav-with-cart {flex-wrap:nowrap;align-items:center}
  .zx-nav-main-links {flex:1 1 auto;min-width:0}
  .zx-nav-tools {margin-left:auto}
  .zx-nav .zx-menu-currency {margin-left:0}
}
@media (max-width:820px) {
  .zx-nav.zx-open {
    max-height:min(70dvh,560px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .zx-nav-with-cart {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    flex-wrap:nowrap;
    gap:0;
    padding:12px 0 14px;
  }
  .zx-nav-tools {
    order:0;
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin:0 0 12px;
    padding:11px 12px;
    border:1px solid #b9cada;
    border-radius:12px;
    background:#f1f6fa;
  }
  .zx-nav .zx-menu-currency {margin:0;min-height:44px;gap:9px}
  .zx-nav .zx-menu-currency select {
    min-height:42px;
    padding:8px 10px;
    background:#fff!important;
    border:1px solid #829bb3;
    border-radius:8px;
  }
  .zx-nav a.zx-menu-cart,
  .zx-nav a.zx-menu-cart:visited {
    min-height:44px;
    padding:8px 6px;
    margin:0;
    font-size:1rem;
    font-weight:700;
    color:#1d334b!important;
  }
  .zx-nav-main-links {order:1;width:100%;flex:none;min-width:0}
  .zx-nav-main-links .mod-menu,
  .zx-nav-main-links ul.mod-menu,
  .zx-nav-main-links ul.menu {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    justify-items:stretch;
    gap:9px;
    margin:0;
    padding:0;
    list-style:none;
  }
  .zx-nav-main-links .mod-menu > li,
  .zx-nav-main-links ul.menu > li {
    min-width:0;
    width:100%;
    margin:0;
  }
  .zx-nav-main-links .mod-menu > li > a,
  .zx-nav-main-links ul.menu > li > a {
    display:flex;
    align-items:center;
    width:100%;
    height:100%;
    min-height:56px;
    padding:12px 10px;
    border:1px solid #b7c8d7;
    border-left:3px solid transparent;
    border-radius:10px;
    background:#fff;
    color:#1d334b;
    font-size:clamp(.86rem,3.5vw,.98rem);
    font-weight:650;
    line-height:1.35;
    text-wrap:pretty;
    overflow-wrap:break-word;
    hyphens:auto;
  }
  .zx-nav-main-links .mod-menu > li.active > a,
  .zx-nav-main-links .mod-menu > li > a:hover,
  .zx-nav-main-links ul.menu > li.active > a,
  .zx-nav-main-links ul.menu > li > a:hover {
    border-left-color:var(--zx-blue);
    border-bottom-color:#b7c8d7;
    background:#eaf3fc;
  }
  .zx-nav-main-links .mod-menu > li > a:focus-visible,
  .zx-nav-main-links ul.menu > li > a:focus-visible {
    outline:3px solid #0758df;
    outline-offset:2px;
  }
}
@media (max-width:350px) {
  .zx-nav-tools {padding:8px;gap:5px}
  .zx-nav-main-links .mod-menu,
  .zx-nav-main-links ul.menu {gap:6px}
  .zx-nav-main-links .mod-menu > li > a,
  .zx-nav-main-links ul.menu > li > a {padding:10px 7px;font-size:.84rem}
}
