#knowledge-tabs { display:flex; flex:none; align-items:center; gap:clamp(14px,2.5vw,34px); margin:0 0 3px; border-bottom:1px solid var(--hairline); }
#knowledge-tabs button { position:relative; padding:0 2px; min-height:45px; color:var(--muted); font-size:14px; white-space:nowrap; }
#knowledge-tabs button[aria-pressed=true] { color:var(--accent); font-weight:600; }
#knowledge-tabs button[aria-pressed=true]::after { content:''; position:absolute; bottom:-1px; inset-inline:0; height:2px; background:var(--accent); }
#chapter-detail .knowledge-overview h3 { color:var(--accent); }
.knowledge-label { color:#d2e6ed; background:#0a1620d9; border:1px solid #b2d2d34d; border-radius:16px; font-size:12px; padding:5px 12px; line-height:1.4; }
.knowledge-label::before { content:''; position:absolute; left:50%; bottom:100%; height:7px; width:1px; background:#b2d2d377; }
@media (max-width:700px) and (orientation:portrait) {
 #knowledge-tabs { gap:22px; }
 body:has(#knowledge-tabs:not([hidden])) #body-caption { left:46%; }
 .knowledge-label::after { content:''; position:absolute; inset:auto 0 0; height:44px; }
 .knowledge-label { font-size:11px; padding:4px 7px; }
}
@media(max-height:600px) and (orientation:landscape) { #knowledge-tabs button { min-height:33px; font-size:12px; } }
