:root{--tamm-gold:#c9a900;--tamm-text:#1d1d1f}.tamm-header,.tamm-overlay{display:none}
@media(max-width:1024px){.tamm-header{display:flex;position:fixed;z-index:99998;top:0;left:0;right:0;height:64px;align-items:center;justify-content:space-between;padding:0 22px;box-sizing:border-box;background:rgba(255,255,255,.78);backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);border-bottom:1px solid rgba(0,0,0,.05);transition:.35s}.tamm-header.is-open{background:transparent;border-color:transparent}.tamm-toggle{position:relative;width:42px;height:42px;padding:0;border:0;background:transparent;cursor:pointer;z-index:100001}.tamm-toggle span{position:absolute;left:9px;width:24px;height:2px;background:var(--tamm-gold);border-radius:4px;transition:.35s}.tamm-toggle span:first-child{top:17px}.tamm-toggle span:last-child{top:25px}.tamm-header.is-open .tamm-toggle span{background:var(--tamm-text)}.tamm-header.is-open .tamm-toggle span:first-child{top:21px;transform:rotate(45deg)}.tamm-header.is-open .tamm-toggle span:last-child{top:21px;transform:rotate(-45deg)}.tamm-brand{position:relative;text-decoration:none;z-index:100001;max-width:190px;height:42px;display:flex;align-items:center;justify-content:flex-end}.tamm-logo-image{display:block;max-height:34px;width:auto;max-width:180px;object-fit:contain}.tamm-brand-text{font-size:18px;font-weight:500;color:var(--tamm-text)}.tamm-overlay{display:block;position:fixed;z-index:99997;inset:0;min-height:100vh;visibility:hidden;opacity:0;overflow-y:auto;background:radial-gradient(circle at 85% 8%,rgba(201,169,0,.12),transparent 28%),radial-gradient(circle at 12% 85%,rgba(235,220,170,.20),transparent 35%),linear-gradient(145deg,#fff 0%,#faf9f5 48%,#f3f0e7 100%);transition:opacity .42s ease,visibility 0s linear .42s}.tamm-overlay.is-open{visibility:visible;opacity:1;transition:opacity .42s ease}.tamm-overlay-gradient{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0))}.tamm-navigation{position:relative;z-index:1;padding:112px 32px 40px;box-sizing:border-box;min-height:calc(100vh - 70px);display:flex;align-items:center}.tamm-menu-list{list-style:none;padding:0;margin:0;width:100%}.tamm-menu-list>li{margin:0;opacity:0;transform:translateY(18px);transition:opacity .45s ease,transform .45s cubic-bezier(.2,.8,.2,1)}.tamm-overlay.is-open .tamm-menu-list>li{opacity:1;transform:translateY(0)}.tamm-overlay.is-open .tamm-menu-list>li:nth-child(1){transition-delay:.08s}.tamm-overlay.is-open .tamm-menu-list>li:nth-child(2){transition-delay:.13s}.tamm-overlay.is-open .tamm-menu-list>li:nth-child(3){transition-delay:.18s}.tamm-overlay.is-open .tamm-menu-list>li:nth-child(4){transition-delay:.23s}.tamm-overlay.is-open .tamm-menu-list>li:nth-child(5){transition-delay:.28s}.tamm-menu-list a{display:inline-block;padding:9px 0;color:var(--tamm-text);text-decoration:none;font-size:clamp(30px,9vw,42px);line-height:1.16;font-weight:500;letter-spacing:-.9px;transition:.2s}.tamm-menu-list a:active{color:var(--tamm-gold);transform:translateX(4px)}.tamm-social-link a{font-size:clamp(30px,9vw,42px);color:var(--tamm-text)}.tamm-footer{position:relative;z-index:1;padding:0 32px 32px}.tamm-footer a{color:#86868b;font-size:13px;text-decoration:none}body.tamm-menu-open{overflow:hidden!important;touch-action:none}}
@media(max-width:1024px){.mobile-menu-bar,.mobile-bottom-menu,.bottom-mobile-menu,.mobile-menu-footer,.elementor-mobile-menu,.menu-bottom-mobile,nav.mobile-navigation,.mobile-navigation-bar{display:none!important}}



/* v1.4.1: use this plugin as the single mobile navigation on phones and tablets. */
@media(max-width:1024px){
  body.tamm-plugin-active .site-header .menu-toggle,
  body.tamm-plugin-active .site-header .mobile-panel{
    display:none !important;
  }
  .tamm-language-switch{
    position:relative;
    z-index:2;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    padding:12px 32px 28px;
    font-size:15px;
    letter-spacing:1px;
  }
  .tamm-language-switch a{
    color:#777;
    text-decoration:none;
    font-weight:600;
  }
  .tamm-language-switch a[aria-current="true"]{
    color:var(--tamm-text);
    text-decoration:underline;
    text-underline-offset:5px;
  }
  .tamm-language-switch span{color:#aaa}
}


/* v1.4.2: keep language selector visible in the mobile header, beside the logo. */
@media(max-width:1024px){
  .tamm-header-right{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;margin-left:auto;}
  .tamm-header .tamm-language-switch-header{display:flex;position:static;align-items:center;justify-content:center;gap:7px;padding:0;margin:0;font-size:11px;letter-spacing:.8px;white-space:nowrap;}
  .tamm-header .tamm-language-switch-header a{color:#777;text-decoration:none;font-weight:600;padding:7px 0;}
  .tamm-header .tamm-language-switch-header a[aria-current="true"]{color:var(--tamm-text);text-decoration:underline;text-underline-offset:3px;}
  .tamm-header .tamm-language-switch-header span{color:#aaa;}
  .tamm-header .tamm-brand{flex:0 1 auto;max-width:clamp(120px,38vw,190px);}
}




/* v1.4.5: unified responsive header sizing.
   The language switch and logo share the available right-hand space
   at every mobile/tablet width, including narrow desktop browser windows. */
@media (max-width: 1024px) {
  .tamm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-left: clamp(10px, 3vw, 22px);
    padding-right: clamp(10px, 3vw, 22px);
    box-sizing: border-box;
  }
  .tamm-toggle {
    flex: 0 0 42px;
    width: 42px;
  }
  .tamm-header-right {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(5px, 1.5vw, 12px);
    width: auto;
    min-width: 0;
    max-width: calc(100% - 52px);
    margin-left: auto;
    overflow: hidden;
  }
  .tamm-header .tamm-language-switch-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    font-size: clamp(9px, 1.8vw, 11px);
    letter-spacing: .3px;
    line-height: 1;
  }
  .tamm-header .tamm-language-switch-header a {
    padding: 6px 0;
    line-height: 1;
  }
  .tamm-header .tamm-brand {
    display: flex;
    flex: 0 1 clamp(105px, 34vw, 190px);
    width: clamp(105px, 34vw, 190px);
    min-width: 0;
    max-width: clamp(105px, 34vw, 190px);
    height: 42px;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
  }
  .tamm-header .tamm-logo-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 32px;
    object-fit: contain;
    object-position: right center;
  }
  .tamm-header .tamm-brand-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(13px, 2.5vw, 18px);
  }
}
@media (max-width: 380px) {
  .tamm-header { gap: 6px; }
  .tamm-header-right { gap: 5px; }
  .tamm-header .tamm-brand {
    flex-basis: 100px;
    width: 100px;
    max-width: 100px;
  }
}


/* v1.4.6: add clear breathing room between ID/EN and the brand logo.
   Keep the gap responsive while preserving the existing compact header. */
@media (max-width: 1024px) {
  .tamm-header-right {
    gap: clamp(14px, 2.5vw, 20px);
  }
}
@media (max-width: 380px) {
  .tamm-header-right {
    gap: 12px;
  }
}


/* v1.4.7: make the plugin the single mobile header.
   Hide the theme header entirely on mobile so its logo/language/nav
   cannot overlap the plugin header. Keep the desktop theme header intact. */
@media (max-width: 1024px) {
  body.tamm-plugin-active .site-header {
    display: none !important;
  }
  body.admin-bar .tamm-header {
    top: 46px;
  }
  body.admin-bar .tamm-overlay {
    top: 46px;
    min-height: calc(100vh - 46px);
  }
}
