/* Centered navigation and distinct course identities. */
header{height:88px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px;padding:0 max(24px,calc((100vw - 1600px)/2))}
.brand{font-size:22px;white-space:nowrap}.brand small{font-size:10px;letter-spacing:1.3px}
.site-chapters{display:flex;align-items:center;justify-content:center;gap:4px;margin:0;padding:5px;border:1px solid #e59a7426;border-radius:12px;background:linear-gradient(120deg,#30201788,#15100e);white-space:nowrap}
.site-chapters a{padding:12px;color:#e3d4c9;text-decoration:none;font-size:18px;font-weight:600;border-radius:7px}.site-chapters a:hover{color:#ffb38e;background:#ff794711}.site-chapters a:focus-visible{outline:2px solid #ff885b;outline-offset:2px}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0}.view-switch{width:auto;flex-shrink:0;margin:0;gap:6px;padding:5px}.view-tab{font-size:16px;padding:0 14px;min-height:44px;white-space:nowrap}.view-tab small{display:none}
#tab-shitu{color:#ffb28d;background:#63301e66;box-shadow:inset 0 0 0 1px #ff884d55}#tab-shitu.is-active{color:#fff5ed;background:linear-gradient(115deg,#f76a35,#d83c24);box-shadow:0 5px 20px #ed48252a,inset 0 0 0 1px #ffb28d}
#tab-shangan{color:#9bdcff;background:#17496666;box-shadow:inset 0 0 0 1px #62bcf055}#tab-shangan.is-active{color:#f1fbff;background:linear-gradient(115deg,#218ec7,#175ca9);box-shadow:0 5px 20px #168ac72a,inset 0 0 0 1px #98dfff}
.group-entry{flex-shrink:0;min-height:48px;padding:0 18px;border:1px solid #ef8a6055;border-radius:8px;color:#ffe8d8;background:linear-gradient(120deg,#543020,#291a13);cursor:pointer;font-size:17px;font-weight:600;white-space:nowrap}.group-entry:hover{border-color:#ff996b}.group-entry:active{scale:.96}iframe{height:calc(100dvh - 88px)}
@media(max-width:1450px){header{grid-template-columns:auto 1fr auto;gap:16px;padding-inline:24px}.site-chapters{justify-self:center}.site-chapters a{font-size:16px;padding-inline:10px}.header-actions{gap:10px}.view-tab{font-size:15px;padding-inline:10px}.group-entry{font-size:15px;padding-inline:12px}.brand small{display:none}}
@media(max-width:1120px){header{height:136px;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:8px 16px;padding:10px 20px}.brand{grid-column:1;grid-row:1}.header-actions{grid-column:2;grid-row:1}.site-chapters{grid-column:1/-1;grid-row:2;width:100%;padding:0;border:0;background:none;justify-content:center;gap:24px}.site-chapters a{font-size:17px;padding:8px 12px}iframe{height:calc(100dvh - 136px)}}
@media(max-width:600px){header{padding:8px 12px;height:124px;gap:6px}.brand{font-size:17px}.header-actions{gap:6px}.view-switch{gap:3px;padding:3px}.view-tab{font-size:12px;padding:0 7px;min-height:38px}.group-entry{font-size:12px;padding:0 8px;min-height:42px}.site-chapters{gap:0;justify-content:space-between}.site-chapters a{font-size:14px;padding:8px 4px}iframe{height:calc(100dvh - 124px)}}
@media(max-width:380px){.brand{font-size:15px}.view-tab{padding-inline:5px}.group-entry{padding-inline:6px;font-size:11px}.header-actions{gap:4px}}
