/*
Theme Name: maisonjuriò
Description: A custom WordPress theme for Markolko's Design.
Version: 1.0
Author: Markolko
*/
/* ===== Transparent Navbar with logo offset + fullscreen mobile menu ===== */

/* ===== Transparent Navbar with logo offset + fullscreen mobile menu ===== */

h1, h2, h3, h4, h5, h6, .title, .headline, .elementor-heading-title {
  font-family: "Instrument Serif", "Noto Serif Display", serif !important;
}

/* UI — основен: Inria Sans, fallback: sans-serif */
body,
.sans,
p,
span,
.button,
nav,
input,
textarea {
  font-family: "Inria Sans", sans-serif;
}
.notranslate.instrument {
  font-family: "Instrument Serif", "Noto Serif Display", serif !important;
}

.notranslate.inria {
  font-family: "Inria Sans", sans-serif !important;
}

:root{
  --mj-link-light: #0B2A6B;
  --mj-link-dark:  #FDE8AD;
  --mj-maxw: 1440px;

  /* thresholds for your JS sampler (if used) */
  --mj-thresh-light: 0.60;
  --mj-thresh-dark:  0.45;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
}

.nav-inner{
  max-width: var(--mj-maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left{
  display: flex;
  align-items: center;
  gap: 100px;         /* space between logo and first link */
  margin-left: 10px;  /* your left offset */
}

.nav-left .custom-logo-link img{
  max-height: 70px;
  width: auto;
  display: block;
}

/* Desktop menus */
.menu-primary,
.menu-utility{
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-primary a,
.menu-utility a{
  font-family: "Inria Sans", sans-serif;
  font-weight: 300;
  font-size: 17px;
  text-decoration: none;
  position: relative;
  padding: 0; /* remove underline spacing */
  transition: color .25s ease, opacity .25s ease;
  color: var(--mj-link-light);
  opacity: 1;
}

/* Dynamic link colors toggled by JS */
.nav-inner.nav-links-light a{ color: var(--mj-link-light); }
.nav-inner.nav-links-dark  a{ color: var(--mj-link-dark); }

/* No underlines at all */
.menu-primary a::after,
.menu-utility a::after{ content: none !important; }

/* Hover feedback */
.menu-primary a:hover,
.menu-utility a:hover{ opacity: .7; }

/* Active link stable */
.menu-primary .current-menu-item > a,
.menu-primary .current_page_item > a,
.menu-utility .current-menu-item > a,
.menu-utility .current_page_item > a{ opacity: 1; }

/* Hamburger button hidden on desktop */
.hamburger-btn{
  display: none;
  background: transparent;
  border: 0;
  width: 34px;
  height: 28px;
  padding: 0;
  margin-left: 12px;
  cursor: pointer;
  color: #F3CE63; /* gold */
}
.hamburger-line{
  display: block;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
  border-radius: 2px;
}

/* Fullscreen mobile menu hidden by default */
.mobile-menu{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  color: var(--mj-link-light);
  display: none;              /* keep closed by default */
  z-index: 2000;
}
.mobile-menu[aria-hidden="false"]{ display: block; }

.mobile-menu-inner{
  max-width: 100vw;
  height: 100%;
  padding: 24px 28px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-close{
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 30px;    /* thinner look via font-weight */
  font-weight: 300;   /* thin “×” */
  line-height: 1;
  background: transparent;
  border: 0;
  color: #F3CE63;     /* same gold */
  cursor: pointer;
}

.mobile-logo{
  margin-top: 24px;
  margin-bottom: 32px;
}
.mobile-logo .custom-logo-link img{
  max-height: 70px;
  width: auto;
}

/* Mobile lists */
.mobile-menu-list,
.mobile-utility-list{
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(90vw, 420px);
}

.mobile-menu-list li,
.mobile-utility-list li{
  margin: 0;
  padding: 0;
}

.mobile-menu-list a,
.mobile-utility-list a{
  display: block;
  font-family: "Inria Sans", sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.3;
  color: var(--mj-link-light);
  text-decoration: none;
  padding: 14px 8px;
  border-radius: 8px;
  transition: opacity .2s ease;
}
.mobile-menu-list a:hover,
.mobile-utility-list a:hover{ opacity: .7; }

.mobile-utility-list{ margin-top: 14px; }
.mobile-utility-list a{ font-size: 22px; opacity: .9; }

/* Prevent page scroll when overlay open */
html.mobile-menu-open,
body.mobile-menu-open{
  overflow: hidden;
  touch-action: none;
}

/* Responsive rules */
@media (max-width: 768px){
  /* hide desktop menus on mobile, show hamburger */
  .menu-primary,
  .menu-utility{ display: none; }

  .hamburger-btn{ display: inline-block; }

  .nav-left{
    margin-left: 20px;  /* your smaller mobile offset */
    gap: 30px;
  }

  .nav-left .custom-logo-link img{
    max-height: 80px;
  }
}

/*-----------FOOTER-----------------------------------------------------------------------------------*/


 /* ===== Footer (Markolko-style) ===== */

footer.site-footer {
  background-color: #F3CE63 !important;
  padding: 12px 15px !important;
  color: #ffffff;
  font-family: "Inria Sans", sans-serif;
}

footer.site-footer .footer-content {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* stack menu and text */
  align-items: center; /* center both horizontally */
  text-align: center;
  gap: 8px; /* space between menu and text */
}

footer.site-footer .footer-menu {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
}

footer.site-footer .footer-menu a {
  font-family: "Inria Sans", sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity .25s ease;
}

footer.site-footer .footer-menu a:hover {
  opacity: 1;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  opacity: 0.7;
}

/* Dynamic link colors togg

/*-----------BLOG-----------------------------------------------------------------------------------*/


  .blog-description {
    font-family: "Kumbh Sans", sans-serif;
    font-weight: 100;
    font-size: 30px;
    color: #ffffff;
    max-width: 650px;
    margin: 0 auto;
    margin-bottom: 100px;
    text-align: center;
  }
  
  .blog-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
    margin-bottom: 20px;
  }
  
  .blog-header img.blog-logo {
    max-height: 40px;
    margin-right: 5px;
  }
  
  .blog-header h1 {
    font-size: 32px;
    font-family: "Kumbh Sans", sans-serif;
    color:#ffffff;
    margin: 0;
  }
  
  
  /* General Styles */
  .archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .featured-post-link,
  .small-post-link {
    text-decoration: none;
    color:#ffffff;
    display: block;
  }
  
  .featured-post {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    align-items: center;
  }
  
  .featured-post-image img {
    border-radius: 24px;
    width: 800px;
    height: 400px;
    object-fit: cover;
  }
  
  .featured-post-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .featured-post-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    max-height: 4.8em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
  }
  
  .post-tag {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    color: #fff;
    display: inline-block;
  }
  
  .post-date {
    background-color: rgb(32, 32, 32);
    border:0.5px solid rgba(255, 255, 255, 0.104);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    color: #8a8a8a;
  }
  
  .tag-marketing {
    background-color: #46249a;
    border:0.5px solid rgba(255, 255, 255, 0.104);
  }
  
  .tag-design {
    background-color: #14539b;
    border:0.5px solid rgba(255, 255, 255, 0.104);
  }
  
  .tag-other {
    background-color: #841198;
    border:0.5px solid rgba(255, 255, 255, 0.104);
    color: #ffffff;
  }
  
  .small-posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .small-post img {
    border-radius: 24px;
    width: 100%;
    height: 350px;
    object-fit: cover;
  }
  
  .small-post-content {
    text-align: center;
    margin-top: 10px;
  }
  
  .small-post-content h3 {
    font-size: 20px;
    margin-top: 10px;
    line-height: 1.2; /* Adjusts line height for consistent spacing */
    max-height: 2.4em; /* Allows for exactly two lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }
  
  .small-post-content .post-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap; /* Ensure tags wrap correctly */
  }
  
  .small-post-content .post-tag {
    padding: 5px 15px;
    font-size: 14px;
  }
  
  .load-more {
    text-align: center;
    margin: 30px 0;
  }
  
  #load-more-posts {
    background-color: rgb(40, 40, 40);
    border:0.5px solid rgba(255, 255, 255, 0.104);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    /* Featured Post Adjustments */
    .featured-post {
      flex-direction: column;
      text-align: center;
    }
  
    .featured-post-image img {
      width: 100%;
      height: auto;
    }
  
    .featured-post-content {
      width: 100%;
      margin-left: 0;
      margin-top: 20px;
    }
  
    .featured-post-content h2 {
      font-size: 24px;
    }
  
    /* Smaller Posts */
    .small-posts {
      grid-template-columns: 1fr;
    }
  
    .small-post img {
      height: 250px;
    }
  
    .small-post-content h3 {
      font-size: 18px;
    }
  
    .post-meta {
      flex-wrap: wrap;
      justify-content: center;
      gap: 5px;
    }
  }
  
  /* General Hover Effect for Posts */
  .featured-post-link:hover, .small-post-link:hover {
    transform: scale(1.01); /* Slight scaling for the dynamic enlargement */
    transition: transform 0.3s ease; /* Smooth transition */
  }
  
  /* Featured Post */
  .featured-post {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    align-items: center;
    transition: transform 0.3s ease;
  }
  
  .featured-post:hover {
    transform: scale(1.01); /* Scale up slightly on hover */
  }
  
  /* Small Posts */
  .small-post {
    transition: transform 0.3s ease;
  }
  
  .small-post:hover {
    transform: scale(1.01); /* Scale up slightly on hover */
  }
  
  .custom-recent-posts li .recent-post-title {
    color: #ffffff !important;
  }
  .custom-recent-posts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .custom-recent-posts li {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 200px; /* Ensures each post container stays within this width */
  }
  
  .custom-recent-posts img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
  }
  
  .custom-recent-posts .recent-post-title {
    margin-top: 10px;
    font-family: "Kumbh Sans", sans-serif;
    font-size: 16px;
    text-align: center; /* Center the title within each post */
    color: #ffffff !important;
  }
  
  @media (max-width: 768px) {
    .custom-recent-posts {
      display: flex;
      flex-wrap: wrap;
      justify-content: center; /* Center the posts on smaller screens */
      list-style: none;
      padding: 0;
      margin: 0;
      gap: 30px; /* Reducing the space between posts */
      flex-direction: column;
      align-items: center; /* Center posts for mobile */
    }
    
    .custom-recent-posts li {
      width: 200px; /* Set fixed width matching image size */
      margin-bottom: 20px;
      text-align: center;
    }
    
    .custom-recent-posts li img {
      width: 200px;
      height: 200px;
      margin: 0 auto; /* Center image for mobile */
      border-radius: 15px;
      object-fit: cover;
      object-position: center;
    }
    
    .custom-recent-posts li .recent-post-title {
      max-width: 200px;
      font-family: "Kumbh Sans", sans-serif;
      font-size: 14px;
      margin-top: 10px;
      text-align: center; /* Centering title text */
    }
    .elementor-widget-container h5 {
      text-align: center;
      font-family: "Kumbh Sans", sans-serif;
      font-size: 24px;
      margin-bottom: 20px;
    }
  }
/* 3D Button styles */
  /*----------------------------------------------------------------------------------------------*/  

.button-3d-l {
  position: relative;
  border-radius: 40px;
  box-shadow: inset 0px 4px 1.5px -3px #ffffff56, inset 0px 5px 5px -3px #ffffff3f, inset 0 -1px 1px 0px rgba(0, 0, 0, 0.075) !important;
  background: radial-gradient(ellipse at 50% 110%, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.01) 90%);
  -webkit-backdrop-filter: blur(20px);
  -moz-backdrop-filter: blur(20px);
  -ms-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 100px;
  cursor: pointer;
  overflow: hidden;
}

.button-3d-l::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.01) 90%);
  box-shadow: inset 0px 4px 1.5px -3px #ffffff56, inset 0px 8px 8px -3px #ffffff3f, inset 0 -1px 1px 0px #00000017 !important;
  opacity: 0;
  transition: opacity 1s ease; /* Add background transition */
  pointer-events: none; /* Allow click events to pass through */
}

.button-3d-l:hover::after {
  opacity: 1;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.01) 90%);
}
.parallex{
  background-attachment: fixed;
}
#gallery-1 img{
  border: none !important;
}
.gallery-item{
  margin-bottom: 100px !important;
}







/* ===== Legal pages (Privacy Policy, Terms) ===== */
.mj-legal{
  --ink:#120c05; --text:#433d35; --muted:#8a8378; --line:rgba(18,12,5,.12);
  --cream:#f7f3ea; --gold:#c99a3b; --blue:#0B2A6B;
  max-width:780px; margin:0 auto; padding:clamp(120px,16vh,180px) 0 clamp(80px,12vh,140px);
  font-family:"Inria Sans",sans-serif; font-size:17px; line-height:1.75; font-weight:300; color:var(--text);
}
.mj-legal *{ box-sizing:border-box; }
.mj-legal .mj-legal__title{
  font-family:"Instrument Serif","Noto Serif Display",serif !important; font-weight:400;
  font-size:clamp(44px,7vw,72px); line-height:1.02; letter-spacing:-.01em; color:var(--ink); margin:0 0 14px;
}
.mj-legal .mj-legal__meta{
  font-size:15px; color:var(--muted); margin:0 0 40px;
  padding-bottom:32px; border-bottom:1px solid var(--line);
}
.mj-legal p{ margin:0 0 1.15em; color:var(--text); font-weight:300; }
.mj-legal h2{
  font-family:"Instrument Serif","Noto Serif Display",serif !important; font-weight:400;
  font-size:clamp(26px,3.4vw,34px); line-height:1.15; color:var(--ink);
  margin:64px 0 18px; padding-top:30px; border-top:1px solid var(--line);
}
.mj-legal h3{
  font-family:"Inria Sans",sans-serif !important; font-weight:700; font-size:17px;
  color:var(--ink); margin:34px 0 12px;
}
.mj-legal b, .mj-legal strong{ font-weight:700; color:var(--ink); }
.mj-legal a{ color:var(--blue); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.mj-legal a:hover{ text-decoration-thickness:2px; }
.mj-legal ul{ list-style:none; margin:0 0 1.4em; padding:0; }
.mj-legal li{ position:relative; padding:0 0 0 26px; margin:0 0 .7em; }
.mj-legal li::before{
  content:""; position:absolute; left:4px; top:.78em; width:6px; height:6px; border-radius:50%; background:var(--gold);
}
.mj-legal__table{
  margin:22px 0 30px; border:1px solid var(--line); border-radius:16px; background:#fff; overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.mj-legal table{ width:100% !important; min-width:560px; border-collapse:collapse; font-size:15px; line-height:1.55; margin:0; }
.mj-legal th{
  background:var(--cream); color:var(--ink); text-align:left; font-weight:700; font-size:14px;
  padding:14px 20px; border:0; border-bottom:1px solid var(--line);
}
.mj-legal td{ padding:16px 20px; border:0; border-bottom:1px solid var(--line); vertical-align:top; color:var(--text); font-weight:300; }
.mj-legal tr:last-child td{ border-bottom:0; }
.mj-legal td:first-child{ color:var(--ink); font-weight:400; }
.mj-legal table tr:nth-child(even) td{ background:rgba(247,243,234,.35); }
@media (max-width:640px){
  .mj-legal{ font-size:16px; padding-left:20px; padding-right:20px; }
  .mj-legal th, .mj-legal td{ padding:13px 14px; }
  .mj-legal h2{ margin-top:48px; }
}

/* ---- logo follows the menu colour engine: blue on light backgrounds, gold on dark ones (the links keep their own colours) ---- */
:root { --mj-logo-light: #0B2A6B; --mj-logo-dark: #F3CE63; }
@supports ((-webkit-mask-image: none) or (mask-image: none)) {
  .nav-inner .custom-logo-link.mj-recolor { position: relative; display: block; }
  .nav-inner .custom-logo-link.mj-recolor img { opacity: 0; }   /* stays in the page, only its colour is replaced */
  .nav-inner .custom-logo-link.mj-recolor::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: var(--mj-logo-light, #0B2A6B);
    -webkit-mask: var(--mj-logo-mask) center / contain no-repeat;
            mask: var(--mj-logo-mask) center / contain no-repeat;
    transition: background-color .25s ease;
  }
  .nav-inner.nav-links-dark .custom-logo-link.mj-recolor::after { background-color: var(--mj-logo-dark, #F3CE63); }
}


/* ---- tablet and phone fixes ---- */

/* The home page paragraphs have a fixed 500px margin on each side. On screens just above the tablet size that left a column
   a few pixels wide. The margin now shrinks so the text keeps at least 560px; on large screens it stays 500px as designed. */
@media (min-width: 1025px) {
  .elementor-element-e066948 > .elementor-widget-container,
  .elementor-element-b15aaef > .elementor-widget-container,
  .elementor-element-5d92c4c > .elementor-widget-container {
    margin-left: min(500px, calc((100vw - 560px) / 2)) !important;
    margin-right: min(500px, calc((100vw - 560px) / 2)) !important;
  }
}

/* On touch screens the transparent menu sat right on top of the words while scrolling. Once the page has moved, the content
   passing under the menu softly blurs: no coloured bar, just a blur that is strongest at the top and fades out below the
   (large) logo. Two layers with different strength and reach make the fade progressive.
   They are separate layers (::before and ::after) on purpose: a blur on the header itself would trap the full-screen mobile
   menu inside the header and break it once the page had scrolled. */
@media (max-width: 1024px) {
  .site-header::before,
  .site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
  }
  .site-header::before {                       /* wide and gentle */
    height: calc(100% + 48px);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, rgba(0,0,0,.5) 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 40%, rgba(0,0,0,.5) 70%, transparent 100%);
  }
  .site-header::after {                        /* stronger, closer to the top */
    height: calc(100% + 8px);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, rgba(0,0,0,.45) 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 35%, rgba(0,0,0,.45) 70%, transparent 100%);
  }
  html.mj-scrolled .site-header::before,
  html.mj-scrolled .site-header::after { opacity: 1; }
  /* while the full-screen menu is open the blur is not needed */
  html.mobile-menu-open .site-header::before,
  html.mobile-menu-open .site-header::after { opacity: 0; }
}

/* ---- hamburger lines follow the menu colour engine (gold over dark, blue over light), like the logo ---- */
.hamburger-btn { color: var(--mj-logo-dark, #F3CE63); transition: color .25s ease; }
.nav-inner.nav-links-light .hamburger-btn { color: var(--mj-logo-light, #0B2A6B); }
.nav-inner.nav-links-dark  .hamburger-btn { color: var(--mj-logo-dark, #F3CE63); }

/* ---- the open mobile menu, reordered ----
   Top: logo on the left, close button on the right, on one row.
   Middle: the main pages, large, in the serif of the headings.
   Bottom: the contact button, then the social icons with the language on the same row. */
.mobile-menu-inner {
  position: relative;
  align-items: stretch;
  padding: 22px 26px calc(28px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}
.mobile-logo { margin: 0 0 14px; align-self: flex-start; }
.mobile-logo .custom-logo-link { display: block; }
.mobile-close {
  top: 35px; right: 14px;                    /* centred on the logo's row */
  height: 44px;
  font-size: 34px;
  color: var(--mj-logo-light, #0B2A6B);
}
.mobile-menu .mobile-menu-list {
  width: 100%;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(11, 42, 107, .14);
}
.mobile-menu .mobile-menu-list a {
  font-family: "Instrument Serif", "Noto Serif Display", serif;
  font-weight: 400;
  font-size: clamp(32px, 9.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -.01em;
  padding: 12px 0;
  border-radius: 0;
}
.mobile-menu .mobile-utility-list {
  width: 100%;
  margin-top: auto;                           /* sits at the bottom of the screen */
  padding-top: 18px;
  border-top: 1px solid rgba(11, 42, 107, .14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}
.mobile-menu .mobile-utility-list li:first-child { flex: 1 0 100%; margin-bottom: 12px; }
.mobile-menu .mobile-utility-list li:first-child a {
  text-align: center;
  font-size: 18px;
  padding: 14px 20px;
  border: 1px solid var(--mj-link-light);
  border-radius: 2px;
  opacity: 1;
}
.mobile-menu .mobile-utility-list li a { padding: 10px 2px; opacity: 1; }
.mobile-menu .mobile-utility-list li svg { width: 24px; height: 24px; display: block; }
.mobile-menu .mobile-utility-list .trp-language-switcher-container { margin-left: auto; }
.mobile-menu .mobile-utility-list .trp-language-switcher-container a { font-size: 18px; }

/* the logo inside the white menu is drawn in the same blue as the close button (the nav logo rules only reach the top bar) */
@supports ((-webkit-mask-image: none) or (mask-image: none)) {
  .mobile-menu .custom-logo-link.mj-recolor { position: relative; display: block; }
  .mobile-menu .custom-logo-link.mj-recolor img { opacity: 0; }
  .mobile-menu .custom-logo-link.mj-recolor::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: var(--mj-logo-light, #0B2A6B);
    -webkit-mask: var(--mj-logo-mask) left center / contain no-repeat;
            mask: var(--mj-logo-mask) left center / contain no-repeat;
  }
}

/* solid white behind the open menu: the page's words showed through faintly and competed with the links */
.mobile-menu { background: #fff; }

/* ---- footer stays at the bottom of the screen on short pages (like the 404 page) ----
   The page is a column at least as tall as the screen; the footer takes the leftover space above it. */
body {
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
  display: flex;
  flex-direction: column;
}
body > footer.site-footer { margin-top: auto; }
