/* Content links and display preferences have distinct, consistent roles. */
.unified-header{--nav-bg:#f7f6ef;--nav-ink:#173b31;--nav-muted:#617369;--nav-line:#d2d8c9;position:sticky;inset:0 0 auto;z-index:100;display:flex;align-items:center;gap:32px;width:100%;height:88px;margin:0;padding:0 clamp(24px,4vw,64px);border:0;border-bottom:1px solid var(--nav-line);background:var(--nav-bg);color:var(--nav-ink);font:14px/1.4 Inter,"PingFang SC","Microsoft YaHei",Arial,sans-serif;letter-spacing:0;box-sizing:border-box}
[data-theme=dark] .unified-header,html[data-palette=dark] .unified-header{--nav-bg:#102f27;--nav-ink:#f4f2e6;--nav-muted:#b3c3b4;--nav-line:#52765c}
.unified-header .nav-brand{flex:0 0 auto;display:block;line-height:0}.unified-header .nav-brand img{width:132px;height:40px;object-fit:contain;object-position:left;max-width:none}.unified-header .nav-logo-dark{display:none}[data-theme=dark] .unified-header .nav-logo-light,html[data-palette=dark] .unified-header .nav-logo-light{display:none}[data-theme=dark] .unified-header .nav-logo-dark,html[data-palette=dark] .unified-header .nav-logo-dark{display:block}
.unified-header .primary-nav{display:flex;align-items:stretch;gap:26px;align-self:stretch;margin:0;padding:0;white-space:nowrap}.unified-header .primary-nav a{display:flex;align-items:center;position:relative;color:var(--nav-muted);font:inherit;text-decoration:none;padding:0;border:0;border-radius:0;background:none}.unified-header .primary-nav a:hover,.unified-header .primary-nav a[aria-current=page]{color:var(--nav-ink)}.unified-header .primary-nav a[aria-current=page]{font-weight:650}.unified-header .primary-nav a[aria-current=page]:after{content:"";position:absolute;bottom:17px;left:0;right:0;height:2px;background:currentColor;border-radius:2px}
.unified-header .nav-utilities{display:flex;align-items:center;gap:18px;margin-left:auto;flex:none}.unified-header .nav-utilities>a{display:flex;align-items:center;gap:6px;color:inherit;padding:7px 0;border:0;border-radius:0;background:none;font:inherit;text-decoration:none;white-space:nowrap}.unified-header .nav-utilities>a svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.5}.unified-header .nav-settings{position:relative;border:0;border-left:1px solid var(--nav-line);padding:0 0 0 18px;margin:0;color:inherit;font:inherit}.unified-header .nav-settings summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;white-space:nowrap;color:inherit;font:inherit;padding:7px 0}.unified-header .nav-settings summary::-webkit-details-marker{display:none}.unified-header .nav-settings[open] summary>span{transform:rotate(180deg)}.unified-header .nav-settings-panel{position:absolute;top:calc(100% + 14px);right:0;min-width:185px;padding:8px;border:1px solid var(--nav-line);border-radius:10px;background:var(--nav-bg);color:var(--nav-ink);box-shadow:0 12px 32px #0002;display:grid;gap:4px}.unified-header .nav-settings-panel button{display:flex;align-items:center;gap:8px;min-width:0;width:100%;padding:12px;border:0;border-radius:6px;white-space:nowrap;background:none;color:inherit;text-align:left;font:inherit;cursor:pointer}.unified-header .nav-settings-panel button:hover{background:#82946e22}.unified-header .nav-settings-panel svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}.unified-header .nav-settings-panel .icon-sun{display:none}[data-theme=dark] .unified-header .nav-settings-panel .icon-sun{display:block}[data-theme=dark] .unified-header .nav-settings-panel .icon-moon{display:none}.unified-header :is(a,button,summary):focus-visible{outline:2px solid #b18b3f;outline-offset:5px}.unified-header .nav-page-number{font:11px/1.4 inherit;color:var(--nav-muted);white-space:nowrap;letter-spacing:0}
body[data-navigation-section=manifesto] .hero{padding-top:60px}body[data-navigation-section=film] .film-main{padding-top:64px}.resource-nav{width:100%;display:flex;gap:24px;flex-wrap:wrap;padding-top:22px;margin-top:20px;border-top:1px solid currentColor;font:13px/1.8 Inter,"PingFang SC","Microsoft YaHei",sans-serif}.resource-nav a{color:inherit;text-decoration:none}.resource-nav a[aria-current=page]{font-weight:650}footer:has(.resource-nav){flex-wrap:wrap}.archive-notice{font-size:13px;line-height:1.8;padding:18px 0;border-bottom:1px solid var(--line);color:var(--muted)}.archive-notice a{text-decoration:underline;text-underline-offset:4px}
/* Presentation navigation retains the slide canvas and existing controls. */
.stage .unified-header{position:absolute;inset:0 5.8% auto;width:auto;height:11.2%;padding:0;gap:2cqw;font-size:clamp(9px,.95cqw,14px);background:transparent;z-index:20}.stage .unified-header .nav-brand img{width:9cqw;height:3.5cqw}.stage .unified-header .primary-nav{gap:1.8cqw}.stage .unified-header .primary-nav a[aria-current=page]:after{bottom:1cqw}.stage .unified-header .nav-utilities{gap:1cqw}.stage .unified-header .nav-settings{padding-left:1cqw}.stage .unified-header .nav-settings-panel{font-size:13px}.stage .unified-header .nav-page-number{font-size:.85cqw}
@media(max-width:1050px){.unified-header{gap:22px;font-size:13px}.unified-header .primary-nav{gap:18px}.unified-header .nav-utilities{gap:12px}.unified-header .nav-settings{padding-left:12px}}
@media(max-width:780px){.unified-header{height:auto;min-height:116px;padding:15px 24px 0;flex-wrap:wrap;gap:12px;position:sticky}.unified-header .nav-brand img{width:116px;height:35px}.unified-header .nav-utilities{order:1;font-size:12px}.unified-header .primary-nav{order:2;flex:0 0 100%;width:100%;height:43px;justify-content:space-between;gap:12px;overflow-x:auto;scrollbar-width:none;font-size:13px}.unified-header .primary-nav a[aria-current=page]:after{bottom:0}.unified-header .nav-settings-panel{top:calc(100% + 8px);font-size:13px}.resource-nav{gap:12px 20px}body[data-navigation-section=manifesto] .hero{padding-top:32px}body[data-navigation-section=film] .film-main{padding-top:36px}body[data-navigation-section=manifesto] .chapter-nav{top:116px}html{scroll-padding-top:170px}body[data-navigation-section=resources] .unified-header{padding-left:0;padding-right:0}}
@media(max-width:700px) and (orientation:portrait){.stage .unified-header{position:relative;inset:auto;width:100%;min-height:116px;height:auto;padding:15px 24px 0;gap:12px;font-size:12px}.stage .unified-header .nav-brand img{width:100px;height:35px}.stage .unified-header .primary-nav{gap:10px;font-size:12px}.stage .unified-header .primary-nav a[aria-current=page]:after{bottom:0}.stage .unified-header .nav-utilities{gap:10px}.stage .unified-header .nav-settings{padding-left:10px}.stage .unified-header .nav-page-number{display:none}}
/* The archive keeps its original materials while following the chosen palette. */
html[data-theme=light] body[data-navigation-section=resources]{--bg:#f7f6ef;--text:#173b31;--muted:#617369;--line:#d2d8c9;--lime:#456f43;background:#f7f6ef;color:#173b31}html[data-theme=light] body[data-navigation-section=resources] .button.primary{background:#173b31;color:#f7f6ef}html[data-theme=light] body[data-navigation-section=resources] .modes button[aria-pressed=true]{background:#173b31;color:#f7f6ef}
@media print{.unified-header .primary-nav,.unified-header .nav-utilities,.resource-nav{display:none}.unified-header{position:static}}
