/* Local, reversible header signature. Keep #brand-ko for the original app hook. */
@font-face {
  font-family: 'Nanum Pen Script';
  src: url('/header-assets/nanum-pen-signature.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
header:has(.brand-signature) { gap: 20px; }
header #brand-ko[hidden] { display: none; }
header:has(.brand-signature) .brand { flex: 0 0 auto; }
header:has(.brand-signature) .brand strong { font-size: 28px; color: #000; }
.brand-signature {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 8px;
  color: #000;
  font-family: 'Nanum Pen Script', 'Malgun Gothic', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  height: 1.35em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-signature span { display: inline-block; }
.brand-signature span + span { color: inherit; }
header:has(.brand-signature) #nav { flex: 0 0 auto; }
header:has(.brand-signature) > .button { white-space: nowrap; flex: 0 0 auto; }
@media (min-width: 761px) and (max-width: 1100px) {
  header:has(.brand-signature) { height: auto; min-height: 84px; flex-wrap: wrap; gap: 10px 16px; padding-block: 12px; }
  header:has(.brand-signature) .brand strong { font-size: 26px; }
  .brand-signature { order: 5; flex-basis: 100%; margin: 0; font-size: 20px; }
}
@media (max-width: 760px) {
  header:has(.brand-signature) {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 44px;
    grid-template-areas: 'brand brand language' 'signature signature language' 'contact nav nav';
    height: auto;
    min-height: 0;
    padding: 12px 12px 10px;
    gap: 2px 8px;
  }
  header:has(.brand-signature) .brand { grid-area: brand; min-width: 0; margin: 0; }
  header:has(.brand-signature) .brand strong { font-size: clamp(18px, 5.4vw, 21px); line-height: 1.2; letter-spacing: .08em; white-space: nowrap; }
  header:has(.brand-signature) #language {
    grid-area: language;
    justify-self: end;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--ink);
    font-size: 12px;
    white-space: nowrap;
  }
  header:has(.brand-signature) .brand-signature { grid-area: signature; margin: 0; font-size: 18px; }
  header:has(.brand-signature) #nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    min-width: 0;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    gap: 8px;
  }
  header:has(.brand-signature) #nav .fragrance-nav-link {
    flex: initial;
    width: auto;
    min-width: 0;
    height: 46px;
    min-height: 46px;
    padding: 6px 11px;
    border-radius: 28px 28px 28px 7px;
    background-size: 100% 100%, auto 66px;
    box-shadow: 0 2px 5px rgba(36, 29, 16, .1);
  }
  header:has(.brand-signature) #nav .fragrance-nav-copy { gap: 3px; }
  header:has(.brand-signature) #nav .fragrance-nav-copy strong { font-size: 13px; }
  header:has(.brand-signature) #nav .fragrance-nav-copy small { font-size: 7px; letter-spacing: .12em; }
  header:has(.brand-signature) > .button {
    grid-area: contact;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: 24px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
}
