/*
  0.1.4 compatibility layer.
  Kept separate from styles.css so the production-baseline branch can preserve
  the deployed 0.1.3 stylesheet while applying the tested mobile navigation
  and clearer DH header treatment. This can be consolidated into styles.css
  during the next design-system refactor.
*/

.brand { gap:14px; }
.brand-mark { width:36px; height:36px; stroke-width:1.65; flex:0 0 auto; }
.brand #brand-name {
  display:inline-block;
  position:relative;
  padding:2px 0 5px;
  color:#f5f1e8;
  font-size:14px;
  font-weight:780;
  letter-spacing:.17em;
  line-height:1;
  text-shadow:0 0 24px rgba(210,179,125,.08);
}
.brand #brand-name::after {
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:38%;
  height:1px;
  background:linear-gradient(90deg,var(--accent),rgba(185,138,69,0));
}

@media (max-width:900px) {
  body.menu-open { overflow:hidden; overscroll-behavior:none; }
  .site-header {
    grid-template-columns:1fr auto;
    height:68px;
    padding-left:max(18px, env(safe-area-inset-left, 0px));
    padding-right:max(18px, env(safe-area-inset-right, 0px));
    background:rgba(15,23,28,.94);
    overflow:visible;
  }
  .brand, .header-actions { position:relative; z-index:112; }
  .main-nav {
    position:fixed !important;
    top:68px !important;
    right:0 !important;
    bottom:0 !important;
    left:0 !important;
    inset:68px 0 0 0 !important;
    z-index:108;
    min-height:0;
    height:auto;
    padding:30px 24px max(36px, env(safe-area-inset-bottom, 0px)) !important;
    display:none;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start !important;
    gap:12px !important;
    overflow-y:auto !important;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    background:rgba(16,25,31,.985);
    font:400 23px/1.2 Georgia,var(--serif) !important;
  }
  body.menu-open .main-nav { display:flex !important; }
  .main-nav a {
    display:flex;
    align-items:center;
    flex:0 0 auto;
    width:min(100%,420px);
    min-height:50px;
    justify-content:center;
    padding:10px 14px !important;
    text-align:center;
  }
  .header-cta { display:none; }
  .menu-button {
    display:grid !important;
    place-items:center;
    width:44px;
    height:44px;
    padding:0;
    position:relative;
    z-index:114;
    font-size:25px;
    line-height:1;
    cursor:pointer;
    touch-action:manipulation;
  }
  .header-actions { gap:8px; }
  .language-switch { position:relative; z-index:114 !important; }
  .language-switch button { min-width:38px; min-height:44px; padding:0 4px; }
}

@media (max-width:360px) {
  .brand #brand-name { display:none; }
}
