/* Colors from tokens.css — layout only (theme residual fix). */
:root{--pad:clamp(18px,4vw,62px);--line:var(--hairline, #c6c6c0)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,"Noto Sans KR",sans-serif}
a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}h1,h2,p{word-break:keep-all}.library-head,main{width:min(1440px,100%);margin-inline:auto}
.library-head{padding:38px var(--pad) clamp(64px,10vw,140px);border-bottom:1px solid var(--ink)}.library-head>a,.library-head>p:first-of-type{font:10px ui-monospace,monospace;letter-spacing:.1em}
.library-head>p:first-of-type{margin:80px 0 18px;color:#517500}.library-head h1{max-width:1050px;margin:0;font-size:clamp(52px,8vw,120px);line-height:.94;letter-spacing:-.075em}
.library-head__dek{max-width:700px;margin:36px 0 0;color:var(--grey);font-size:18px;line-height:1.8}.summary{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--ink)}
.summary article{display:grid;min-height:180px;align-content:space-between;padding:22px;border-right:1px solid var(--line)}.summary article:last-child{border-right:0}.summary span,.summary small{font:9px ui-monospace,monospace;letter-spacing:.09em}.summary strong{font-size:56px;line-height:1}.summary small{color:var(--grey)}
.official-channels{padding:clamp(56px,8vw,110px) var(--pad);border-bottom:1px solid var(--ink)}.official-channels header p,.inventory header p{margin:0;font:10px ui-monospace,monospace;letter-spacing:.1em;color:#527600}
.official-channels h2,.inventory h2,.limitations h2{margin:10px 0 34px;font-size:clamp(38px,5vw,72px);line-height:1;letter-spacing:-.06em}.official-channels>div{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--ink)}
.official-channels a{display:grid;min-height:180px;align-content:space-between;padding:18px;border-right:1px solid var(--ink)}.official-channels a:last-child{border-right:0}.official-channels a span,.official-channels a small{font:9px ui-monospace,monospace;letter-spacing:.08em}.official-channels a strong{font-size:18px}.official-channels>p{margin:12px 0 0;color:var(--grey);font-size:11px}
.inventory{padding:clamp(56px,8vw,110px) var(--pad);border-bottom:1px solid var(--ink)}.inventory>header{display:flex;align-items:end;justify-content:space-between;gap:30px}.filters{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.filters button{padding:7px 10px;border:1px solid var(--line);background:transparent;font:9px ui-monospace,monospace}.filters button.is-active{border-color:var(--ink);background:var(--ink);color:#fff}.result-count{color:var(--grey);font-size:12px}
.content-list{border-top:1px solid var(--ink)}.content-item{display:grid;grid-template-columns:100px 120px minmax(0,1fr) auto;gap:18px;align-items:center;min-height:82px;padding:14px 0;border-bottom:1px solid var(--line)}
.content-item time,.content-item span,.content-item b{font:9px ui-monospace,monospace;letter-spacing:.06em}.content-item span{color:#527600}.content-item strong{font-size:17px;line-height:1.35;word-break:keep-all}.content-item b{font-weight:400}
.limitations{padding:clamp(56px,8vw,110px) var(--pad)}.limitations ul{max-width:800px;padding-left:20px;color:var(--grey)}.limitations li+li{margin-top:8px}
@media(max-width:760px){.summary{grid-template-columns:1fr 1fr}.summary article:nth-child(2){border-right:0}.summary article:nth-child(-n+2){border-bottom:1px solid var(--line)}.official-channels>div{grid-template-columns:1fr 1fr}.official-channels a:nth-child(2){border-right:0}.official-channels a:nth-child(-n+2){border-bottom:1px solid var(--ink)}.inventory>header{display:block}.filters{justify-content:flex-start}.content-item{grid-template-columns:72px 76px minmax(0,1fr)}.content-item b{display:none}}
@media(max-width:480px){.official-channels>div{grid-template-columns:1fr}.official-channels a{min-height:140px;border-right:0;border-bottom:1px solid var(--ink)}.content-item{grid-template-columns:64px minmax(0,1fr)}.content-item span{grid-column:1}.content-item strong{grid-column:2;grid-row:1/3}}
.library-footer{display:flex;justify-content:space-between;gap:14px;padding:36px var(--pad) 80px;border-top:1px solid var(--ink);font:10px ui-monospace,monospace;letter-spacing:.08em}
@media(max-width:620px){.library-footer{flex-direction:column;align-items:flex-start}}
/* U3 2026-08-15: 전역 마스트헤드 아래에서 히어로가 로컬 2차 바(flex row) 계약에 걸려
   세로로 찌그러진 백링크 라벨("MONSTAR JOURNAL")과 제목이 겹치는 문제 해소.
   library-head는 나브 없는 풀 히어로이므로 블록 흐름을 복원한다(캔버스 폭 규칙은 유지). */
html body .journal-global-masthead + .library-head {
  display: block !important;
  min-height: 0 !important;
  padding: 38px var(--pad) clamp(64px, 10vw, 140px) !important;
  border-top: 0 !important;
}
