/* Unified header */
:root{
  --tt-header-z: 1200;
  --tt-header-max: 1180px;
  --tt-header-side: 24px;
  --tt-header-bg: rgba(247,243,236,.92);
  --tt-header-border: rgba(44,36,22,.07);
}
#tt-header-root{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--tt-header-z);
  display: flex;
  justify-content: center;
  padding: 0 max(var(--tt-header-side), env(safe-area-inset-right,0px)) 0 max(var(--tt-header-side), env(safe-area-inset-left,0px));
  background: var(--tt-header-bg, rgba(247,243,236,.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tt-header-border, rgba(44,36,22,.07));
}
.tt-header__shell{
  width: min(100%, var(--tt-header-max));
  min-height: 60px;
  padding: calc(12px + env(safe-area-inset-top,0px)) 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.tt-header__brand{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft, #6B5E4A);
  text-decoration: none;
  flex-shrink: 0;
}
.tt-header__brand-line{
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  line-height: .98;
}
.tt-header__nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.tt-header__link,
.tt-header__auth,
.tt-header__drawer-link,
.tt-header__drawer-auth{
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s;
}
.tt-header__link{
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-faint, #A89880);
  white-space: nowrap;
}
.tt-header__link:hover,
.tt-header__link.is-active{
  color: var(--ink, #2C2416);
  background: rgba(44,36,22,.05);
}
.tt-header__link.is-active{
  color: var(--terra, #B5634A);
}
.tt-header__actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.tt-header__auth{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink, #2C2416);
  color: var(--cream, #F7F3EC);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tt-header__auth:hover{
  background: var(--terra, #B5634A);
}
.tt-header__burger{
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(44,36,22,.12);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft, #6B5E4A);
  cursor: pointer;
  flex-shrink: 0;
}
.tt-header__burger:hover{
  border-color: rgba(44,36,22,.2);
  color: var(--ink, #2C2416);
}
.tt-header__overlay{
  position: fixed;
  inset: 0;
  background: rgba(44,36,22,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: calc(var(--tt-header-z) + 1);
}
.tt-header__drawer{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 100vw);
  padding: calc(18px + env(safe-area-inset-top,0px)) max(20px, env(safe-area-inset-right,0px)) max(22px, env(safe-area-inset-bottom,0px)) 20px;
  background: var(--cream, #F7F3EC);
  border-left: 1px solid rgba(44,36,22,.08);
  box-shadow: -18px 0 48px rgba(44,36,22,.12);
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: calc(var(--tt-header-z) + 2);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.tt-header__drawer-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.tt-header__drawer-brand{
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink-soft, #6B5E4A);
  text-decoration: none;
}
.tt-header__drawer-close{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(44,36,22,.12);
  background: transparent;
  color: var(--ink-soft, #6B5E4A);
  cursor: pointer;
  flex-shrink: 0;
}
.tt-header__drawer-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tt-header__drawer-label{
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint, #A89880);
}
.tt-header__drawer-link,
.tt-header__drawer-auth{
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  color: var(--ink-soft, #6B5E4A);
  background: rgba(44,36,22,.03);
}
.tt-header__drawer-link:hover,
.tt-header__drawer-link.is-active{
  color: var(--ink, #2C2416);
  background: rgba(44,36,22,.06);
}
.tt-header__drawer-link.is-active{
  color: var(--terra, #B5634A);
}
.tt-header__drawer-auth{
  margin-top: auto;
  text-align: center;
  font-weight: 500;
  color: var(--cream, #F7F3EC);
  background: var(--ink, #2C2416);
}
.tt-header__drawer-auth:hover{
  background: var(--terra, #B5634A);
}
body.tt-header-menu-open{
  overflow: hidden;
}
body.tt-header-menu-open .tt-header__overlay{
  opacity: 1;
  pointer-events: auto;
}
body.tt-header-menu-open .tt-header__drawer{
  transform: translateX(0);
}
@media (max-width: 640px){
  .tt-header__drawer{
    width: 100vw;
    padding-left: max(18px, env(safe-area-inset-left,0px));
    border-left: none;
    box-shadow: none;
  }
}
@media (max-width: 1100px){
  .tt-header__shell{
    min-height: 64px;
  }
  .tt-header__brand{
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .tt-header__nav,
  .tt-header__actions{
    display: none;
  }
  .tt-header__burger{
    display: inline-flex;
  }
}
@media (max-width: 480px){
  :root{
    --tt-header-side: 14px;
  }
  .tt-header__brand-line,
  .tt-header__drawer-brand .tt-header__brand-line{
    font-size: 12px;
    letter-spacing: .24em;
  }
  .tt-header__shell{
    min-height: 60px;
  }
}
