/* 사이트 공통 메뉴 (2026-11-19). base.html 이 각 페이지 extra_head 뒤에 불러온다.
   - 홈(/): 히어로 위에서 투명 → 스크롤하면 크림 바(.quiet-nav-solid, 홈 스크립트가 붙임). 히어로 순환(.auto-top)과 짝.
   - 다른 페이지: base.html 이 <html class="quiet-nav-solid nav-solid-page"> 를 처음부터 붙여 늘 크림 바 + 위에 고정.
   원본: todaymusic-redesign tools/main-hero/port-quiet-nav.css.html + 홈 메뉴 모양 덮어쓰기 */

/* ---- 메뉴 모양 (원래 홈 extra_head 에 있던 것) ---- */
/* 홈 전용: 메뉴 내용은 사이트 공통 그대로, 모양만 새 디자인(투명 바·넓은 높이·원형 SNS) */
.float-nav-wrapper{position:sticky;top:0;width:100%;max-width:none;margin:0;padding:0 40px;box-sizing:border-box;background:rgba(255,252,247,0.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid rgba(235,217,204,0.6)}
.float-nav-wrapper .nav-inner{max-width:1320px;margin:0 auto;align-items:center;height:84px}
.float-nav-wrapper .nav-pill{background:transparent;box-shadow:none;height:84px;padding:0;border-radius:0;justify-content:flex-start}
.float-nav-wrapper .pill-logo-link{width:auto}
.float-nav-wrapper .pill-logo-img{height:40px}
.float-nav-wrapper .nav-spacer{display:none}
.float-nav-wrapper .pill-links{justify-content:flex-start;gap:32px;margin:0 0 0 48px;flex-grow:1}
.float-nav-wrapper .menu-link{color:#6B5A52!important;font-family:'Pretendard Variable','Pretendard',system-ui,sans-serif;font-size:15.5px;font-weight:500;line-height:84px;padding:0;transition:color .2s}
.float-nav-wrapper .menu-link:hover{color:#CC4D3C!important;opacity:1}
.float-nav-wrapper .dropdown-box{top:74px;border-radius:16px;box-shadow:0 18px 40px rgba(150,40,28,0.22);font-family:'Pretendard Variable','Pretendard',system-ui,sans-serif}
.float-nav-wrapper .nav-socials{margin-top:0;gap:10px}
.float-nav-wrapper .nav-socials a{width:42px;height:42px;border-radius:50%;background:#FFFFFF;border:1px solid #EBD9CC;color:#CC4D3C!important;font-size:16px}
.float-nav-wrapper .nav-socials a:hover{background:#CC4D3C!important;color:#FFFFFF!important;border-color:#CC4D3C!important}
@media (max-width: 1180px){.float-nav-wrapper .pill-links{gap:20px;margin-left:28px}.float-nav-wrapper .menu-link{font-size:14px}}
@media (max-width: 768px){
.m-nav{top:0!important;margin:0!important;height:64px!important;border-radius:0!important;padding:0 10px 0 18px!important;background:rgba(255,252,247,0.86)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:none!important;border-bottom:1px solid rgba(235,217,204,0.6)}
.m-nav-logo img{height:30px!important}
}

/* ---- 조용한 메뉴 / 단단한 바 ---- */
html,
body { overflow-x: clip; }

body > :is(.float-nav-wrapper, header.m-nav) {
  --nav-cream: #FFFCF7;
  --nav-line: rgba(58,39,34,.18);
  --nav-ink: #807069;
  --nav-red: #CC4D3C;
  --nav-transition: .25s ease;
  z-index: 1000;
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color var(--nav-transition);
}

/* Continue the hero canvas behind the transparent controls. */
body > :is(.float-nav-wrapper, header.m-nav)::before,
body > :is(.float-nav-wrapper, header.m-nav)::after {
  content: "";
  position: absolute;
  inset: 0 0 -1px;
  z-index: -1;
  pointer-events: none;
  background: var(--nav-cream);
}

html body > .float-nav-wrapper::before {
  background-image:
    linear-gradient(var(--nav-line), var(--nav-line)),
    linear-gradient(var(--nav-line), var(--nav-line)),
    linear-gradient(var(--nav-line), var(--nav-line));
  background-size: 1px 100%;
  background-position: calc(25% - .75px) top, calc(50% - .5px) top, calc(75% - .25px) top; /* = exact 25/50/75% - 1px, same pixel as the panel borders */
  background-repeat: no-repeat;
}

body > :is(.float-nav-wrapper, header.m-nav)::after {
  inset: 0;
  opacity: 0;
  transition: opacity var(--nav-transition);
}

html.quiet-nav-solid body > :is(.float-nav-wrapper, header.m-nav) {
  --nav-ink: #6B5A52;
  border-bottom-color: var(--nav-line) !important;
}

html.quiet-nav-solid body > :is(.float-nav-wrapper, header.m-nav)::after {
  opacity: 1;
}
html.quiet-nav-solid body > .float-nav-wrapper::before { opacity: 0; }

body > .float-nav-wrapper .nav-inner > .nav-pill {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body > .float-nav-wrapper .pill-logo-img,
body > header.m-nav .m-nav-logo img {
  opacity: .75;
  transition: height var(--nav-transition), opacity var(--nav-transition);
}

body > .float-nav-wrapper .pill-logo-img { height: 46px; max-width: none; }
body > header.m-nav .m-nav-logo img { height: 36px !important; }
html.quiet-nav-solid body > .float-nav-wrapper .pill-logo-img { height: 46px; }
html.quiet-nav-solid body > header.m-nav .m-nav-logo img { height: 38px !important; }

html.quiet-nav-solid body > :is(.float-nav-wrapper, header.m-nav) a img,
body > :is(.float-nav-wrapper, header.m-nav) a:is(:hover, :focus-visible) img {
  opacity: 1;
}

body > .float-nav-wrapper .pill-links .menu-link {
  color: var(--nav-photo-ink, var(--nav-ink)) !important;
  font-size: 14px;
  opacity: 1;
  transition: color var(--nav-transition), font-size var(--nav-transition);
}

html.quiet-nav-solid body > .float-nav-wrapper .pill-links .menu-link { font-size: 15.5px; }

/* The hero grid lines pass behind the menu words: a cream patch the height of the text cuts the line around each word. */
body > .float-nav-wrapper .pill-links .menu-link {
  background: linear-gradient(var(--nav-cream), var(--nav-cream)) center / calc(100% + 16px) 1.7em no-repeat;
}

@media (max-width: 1180px) {
  body > .float-nav-wrapper .pill-links .menu-link { font-size: 13px; }
  html.quiet-nav-solid body > .float-nav-wrapper .pill-links .menu-link { font-size: 14px; }
}

html:not(.quiet-nav-solid) body > .float-nav-wrapper .nav-socials a {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--nav-photo-ink, var(--nav-ink)) !important;
}

body > .float-nav-wrapper .nav-socials a {
  transition: color var(--nav-transition), background-color var(--nav-transition), border-color var(--nav-transition);
}

html:not(.quiet-nav-solid) body > .float-nav-wrapper .nav-socials i { display: none; }
body > .float-nav-wrapper .nav-socials .quiet-nav-icon { display: none; }
html:not(.quiet-nav-solid) body > .float-nav-wrapper .nav-socials .quiet-nav-icon {
  display: block;
  width: 18px;
  height: 18px;
}

body > header.m-nav .m-nav-toggle {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--nav-ink);
  transition: color var(--nav-transition);
}

body > header.m-nav .m-nav-toggle span { background: currentColor !important; }

body > .float-nav-wrapper .pill-links .menu-link:is(:hover, :focus-visible),
html:not(.quiet-nav-solid) body > .float-nav-wrapper .nav-socials a:is(:hover, :focus-visible) {
  color: var(--nav-photo-ink, var(--nav-red)) !important;
}

html.quiet-nav-solid body > .float-nav-wrapper .nav-socials a:focus-visible {
  background: var(--nav-red) !important;
  border-color: var(--nav-red) !important;
  color: var(--nav-cream) !important;
}

body > header.m-nav .m-nav-toggle:is(:hover, :focus-visible) { color: var(--nav-red); }

body > :is(.float-nav-wrapper, header.m-nav) :is(a, button):focus-visible {
  outline: 2px solid var(--nav-red) !important;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  body > .float-nav-wrapper {
    --photo-transition: .58s cubic-bezier(.22,.75,.15,1);
    position: fixed;
    inset: 0 0 auto;
    pointer-events: none;
  }

  body:has(.hc .hero.auto-slide) > .float-nav-wrapper { --photo-transition: 0s; }

  body > .float-nav-wrapper :is(a, button, .dropdown-box) { pointer-events: auto; }
  html body > .float-nav-wrapper::before { content: none; }

  body .hc .hero {
    height: 100vh;
    height: 100svh;
    min-height: 656px;
  }

  body .hc :is(.hero-logo-note, .tagline) { top: 128px; }
  body .hc .headline { top: 121px; }
  #class { scroll-margin-top: 84px; }

  body > .float-nav-wrapper .pill-links .menu-link { background: none; }

  html:not(.quiet-nav-solid) body > .float-nav-wrapper :is(.menu-link, .nav-socials a) {
    transition: color var(--photo-transition), text-shadow var(--photo-transition);
  }

  html:not(.quiet-nav-solid) body > .float-nav-wrapper :is(
    body:has(.hc .toc > .panel:nth-child(1):is(:hover:not(.touch-input), :focus-visible, .chosen, .auto-top)) [data-quiet-nav-panel="1"],
    body:has(.hc .toc > .panel:nth-child(2):is(:hover:not(.touch-input), :focus-visible, .chosen, .auto-top)) [data-quiet-nav-panel="2"],
    body:has(.hc .toc > .panel:nth-child(3):is(:hover:not(.touch-input), :focus-visible, .chosen, .auto-top)) [data-quiet-nav-panel="3"],
    body:has(.hc .toc > .panel:nth-child(4):is(:hover:not(.touch-input), :focus-visible, .chosen, .auto-top)) [data-quiet-nav-panel="4"]
  ) {
    --nav-photo-ink: #fff;
    --nav-logo-filter: brightness(0) invert(1);
    --nav-logo-opacity: 1;
    text-shadow: 0 1px 3px rgba(58,39,34,.26);
  }

  html:not(.quiet-nav-solid) body > .float-nav-wrapper .pill-logo-img {
    filter: var(--nav-logo-filter, brightness(1) invert(0));
    opacity: var(--nav-logo-opacity, .75);
    transition: height var(--nav-transition), opacity var(--photo-transition), filter var(--photo-transition);
  }

  html:not(.quiet-nav-solid) body > .float-nav-wrapper .pill-logo-link:is(:hover, :focus-visible) img {
    opacity: 1;
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  body .hc .panel:hover.touch-input:not(:is(:focus-visible, .chosen, .auto)) .panel-photo { opacity: 0; }
  body .hc .panel.auto .panel-photo { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body > :is(.float-nav-wrapper, header.m-nav),
  body > :is(.float-nav-wrapper, header.m-nav)::before,
  body > :is(.float-nav-wrapper, header.m-nav)::after,
  body > :is(.float-nav-wrapper, header.m-nav) * {
    transition: none !important;
    animation: none !important;
  }
}

/* A menu word that crosses a panel line is filled in two colours split exactly at the line (same idea as the hero headline),
   so only the half over a raised photo turns white. Registered colours let the two halves fade like the other items. */
@property --qn-l { syntax: "<color>"; inherits: true; initial-value: #807069; }
@property --qn-r { syntax: "<color>"; inherits: true; initial-value: #807069; }
@media (min-width: 768px) {
  html:not(.quiet-nav-solid) body > .float-nav-wrapper .menu-link[data-qn-split] {
    --qn-ink: var(--nav-ink);
    --qn-l: var(--qn-ink);
    --qn-r: var(--qn-ink);
    color: transparent !important;
    text-shadow: none;
    background-image: linear-gradient(90deg, var(--qn-l) var(--qn-split), var(--qn-r) var(--qn-split));
    -webkit-background-clip: text;
    background-clip: text;
    transition: --qn-l var(--photo-transition), --qn-r var(--photo-transition);
  }
  html:not(.quiet-nav-solid) body > .float-nav-wrapper .menu-link[data-qn-split]:is(:hover, :focus-visible) { --qn-ink: var(--nav-red); }
  html:not(.quiet-nav-solid) body:has(.hc .toc > .panel:nth-child(1):is(:hover:not(.touch-input), :focus-visible, .chosen, .auto-top)) > .float-nav-wrapper .menu-link[data-qn-l="1"] { --qn-l: #fff; }
  html:not(.quiet-nav-solid) body:has(.hc .toc > .panel:nth-child(1):is(:hover:not(.touch-input), :focus-visible, .chosen, .auto-top)) > .float-nav-wrapper .menu-link[data-qn-r="1"] { --qn-r: #fff; }
  html:not(.quiet-nav-solid) body:has(.hc .toc > .panel:nth-child(2):is(:hover:not(.touch-input), :focus-visible, .chosen, .auto-top)) > .float-nav-wrapper .menu-link[data-qn-l="2"] { --qn-l: #fff; }
  html:not(.quiet-nav-solid) body:has(.hc .toc > .panel:nth-child(2):is(:hover:not(.touch-input), :focus-visible, .chosen, .auto-top)) > .float-nav-wrapper .menu-link[data-qn-r="2"] { --qn-r: #fff; }
  html:not(.quiet-nav-solid) body:has(.hc .toc > .panel:nth-child(3):is(:hover:not(.touch-input), :focus-visible, .chosen, .auto-top)) > .float-nav-wrapper .menu-link[data-qn-l="3"] { --qn-l: #fff; }
  html:not(.quiet-nav-solid) body:has(.hc .toc > .panel:nth-child(3):is(:hover:not(.touch-input), :focus-visible, .chosen, .auto-top)) > .float-nav-wrapper .menu-link[data-qn-r="3"] { --qn-r: #fff; }
  html:not(.quiet-nav-solid) body:has(.hc .toc > .panel:nth-child(4):is(:hover:not(.touch-input), :focus-visible, .chosen, .auto-top)) > .float-nav-wrapper .menu-link[data-qn-l="4"] { --qn-l: #fff; }
  html:not(.quiet-nav-solid) body:has(.hc .toc > .panel:nth-child(4):is(:hover:not(.touch-input), :focus-visible, .chosen, .auto-top)) > .float-nav-wrapper .menu-link[data-qn-r="4"] { --qn-r: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  body > .float-nav-wrapper .menu-link[data-qn-split] { transition: none !important; }
}

/* ---- 홈이 아닌 페이지: 메뉴가 위에 고정(PC)이라 본문을 메뉴 높이만큼 내리고, 앵커가 메뉴 밑에 숨지 않게 ---- */
@media (min-width: 768px) {
  html.nav-solid-page body { padding-top: 85px; }
  html.nav-solid-page [id] { scroll-margin-top: 96px; }
}
@media (max-width: 767px) {
  html.nav-solid-page [id] { scroll-margin-top: 72px; }
}
