/* A local editorial cover and contents; source documents keep their own design. */
html{scroll-padding-top:24px}
body{font-size:18px;line-height:32px}
.portal-shell{max-width:1216px;margin-inline:auto;padding-inline:64px}
.portal-header{position:static}.portal-header .masthead{min-height:84px;padding-block:16px}
.portal-header .brand{display:block;line-height:1.4;white-space:nowrap}
.portal-nav{display:flex;gap:10px 20px;flex-wrap:wrap;justify-content:flex-end;font-family:var(--type-title);font-size:12px;line-height:24px}
.portal-nav a,.read-link,.back-link,.contents-row,.latest>a{font-family:var(--type-title);font-style:normal;font-variation-settings:normal;text-decoration:none}
.portal-nav a{border-radius:4px;padding:3px 5px}.portal-nav [aria-current]{background:var(--accent-soft);color:var(--ink)}
.cover{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:64px;align-items:start;padding:64px 0 48px}
.cover-title{font-size:80px;line-height:1.12;font-weight:600;letter-spacing:-.02em;margin-top:20px}
.cover-chinese{font-family:var(--type-title);font-size:28px;line-height:40px;margin-top:12px;font-weight:550;letter-spacing:0}
.cover-intro{font-size:20px;line-height:34px;max-width:690px;margin-top:28px}
.project-stage{font-family:var(--type-title);font-size:12px;line-height:24px;color:var(--muted);margin-top:12px}
.cover-art{width:200px;margin-top:40px;color:var(--ink)}
.section-kicker{display:flex;justify-content:space-between;gap:24px;align-items:baseline;border-top:1px solid var(--ink);padding-top:24px;margin-bottom:16px}
.section-kicker h2{font-size:20px;line-height:32px;font-weight:550}.section-kicker>span{font:12px/24px var(--type-title);color:var(--muted)}
.contents-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:64px}
.contents-row{display:grid;grid-template-columns:28px minmax(0,1fr) 24px;gap:20px;align-items:baseline;border-bottom:1px solid var(--rule);padding:24px 0}
.section-number{font:14px/24px var(--type-code);font-variation-settings:normal;color:var(--accent)}
.contents-row h3{font-size:25px;line-height:36px;font-weight:600;letter-spacing:0}.contents-row p{font:400 15px/26px var(--type-body);font-variation-settings:"opsz" 16;color:var(--muted);margin-top:8px}
.entry-arrow{font-size:22px;color:var(--accent);transition:transform .15s}.contents-row:hover .entry-arrow{transform:translate(3px,-2px)}
.contents-row:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.latest{padding-top:36px}.latest>a{display:inline-block;font-size:21px;line-height:34px;font-weight:550;margin-top:12px}.latest .doc-state{display:block;margin-top:8px}
.section-cover{padding:64px 0 40px}.section-cover h1{font-size:52px;line-height:1.3;font-weight:600;margin-top:20px;letter-spacing:0}
.section-intro{font-size:20px;line-height:34px;margin-top:24px;max-width:780px}.section-status{font:13px/24px var(--type-title);color:var(--muted);margin-top:12px}
.main-reading{border-top:1px solid var(--ink);padding-top:28px}.document-entry{position:relative}
.doc-metadata{display:flex;flex-wrap:wrap;gap:8px 16px;font-family:var(--type-title);font-size:12px;line-height:24px;color:var(--muted)}
.doc-state{font:12px/24px var(--type-title);color:var(--accent)}.doc-format{font-family:var(--type-code);font-variation-settings:normal}
.primary-entry{padding:24px 0 40px;border-bottom:1px solid var(--rule)}.primary-entry h2{font-size:32px;line-height:46px;font-weight:600;margin-top:12px}
.doc-summary{margin-top:18px;max-width:800px}.doc-notice{font:13px/24px var(--type-title);font-variation-settings:normal;max-width:800px;color:var(--muted);margin-top:18px;border-left:2px solid var(--accent-soft);padding-left:16px}
.read-link{display:inline-block;font-size:16px;line-height:28px;margin-top:22px;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.related-reading{padding-top:48px}.related-reading>h2{font-size:24px;line-height:36px;font-weight:600;margin-bottom:8px}
.secondary-entry{padding:28px 0;border-bottom:1px solid var(--rule)}.secondary-entry h3{font-size:24px;line-height:36px;font-weight:600;margin-top:8px}.secondary-entry h3>a{font-family:var(--type-title);font-style:normal;text-decoration:none}.secondary-entry .doc-summary{font-size:17px;line-height:30px;margin-top:12px}.secondary-entry .read-link{font-size:14px;margin-top:16px}
.history{margin-top:48px;border-top:1px solid var(--ink);padding-top:24px}.history>summary{cursor:pointer;font:550 20px/32px var(--type-title)}
.document-entry:target{outline:1px solid var(--accent);outline-offset:10px;border-radius:4px}
.source-view{padding-top:40px}.back-link{font-size:13px;line-height:24px;color:var(--accent)}.source-view h1{font-size:40px;line-height:56px;font-weight:600;margin:32px 0 20px}.source-origin{font:12px/24px var(--type-title);color:var(--muted);margin:24px 0;overflow-wrap:anywhere}
.source-original{font:400 17px/31px var(--type-body);font-variation-settings:"opsz" 16;white-space:pre-wrap;overflow-wrap:anywhere;margin:32px 0 0;border-top:1px solid var(--rule);padding-top:28px}
.architecture-map{display:grid;grid-template-columns:repeat(3,1fr);gap:48px}.architecture-map section{border-top:1px solid var(--ink);padding-top:24px}.architecture-map h2{font-size:26px;line-height:38px;font-weight:600;margin-top:20px}.architecture-map p{margin-top:16px;font-size:18px;line-height:32px}.maintenance-link{font-size:14px;display:inline-block;margin-top:48px}
.web-footer{margin-top:64px}
@media(max-width:1023px){.portal-shell{padding-inline:40px}.cover{grid-template-columns:minmax(0,1fr) 140px;gap:32px}.cover-title{font-size:62px}.cover-art{width:140px}.contents-grid{column-gap:32px}.contents-row{gap:12px}.portal-header .masthead{flex-wrap:wrap;gap:16px}.portal-nav{justify-content:flex-start}}
@media(max-width:599px){body{font-size:16px;line-height:28px}.portal-shell{padding-inline:24px}.portal-header .masthead{padding-block:14px;gap:14px}.portal-nav{font-size:11px;gap:6px 10px}.portal-header .brand-en{font-size:16px}.cover{display:block;padding:40px 0 32px}.cover-title{font-size:48px;line-height:1.15;letter-spacing:-.02em;margin-top:20px}.cover-chinese{font-size:24px;line-height:36px}.cover-art{display:none}.cover-intro{font-size:18px;line-height:30px;margin-top:24px}.project-stage{font-size:12px}.section-kicker{display:block;padding-top:24px}.section-kicker>span{display:block;margin-top:8px}.contents-grid{grid-template-columns:1fr}.contents-row{padding:20px 0;gap:12px;grid-template-columns:24px minmax(0,1fr) 20px}.contents-row h3{font-size:23px;line-height:34px}.contents-row p{font-size:14px;line-height:24px}.latest{padding-top:32px}.latest>a{font-size:18px;line-height:30px}.section-cover{padding:40px 0 28px}.section-cover h1{font-size:36px;line-height:48px}.section-intro{font-size:18px;line-height:30px;margin-top:20px}.section-status{font-size:12px}.primary-entry h2{font-size:27px;line-height:40px}.related-reading{padding-top:36px}.doc-notice{padding-left:12px}.source-view h1{font-size:30px;line-height:42px}.source-original{font-size:16px;line-height:28px}.architecture-map{grid-template-columns:1fr;gap:32px}.architecture-map h2{margin-top:12px}.web-footer{margin-top:48px}}
@media(prefers-reduced-motion:reduce){.entry-arrow{transition:none}}



/* Navigation is a primary control, with visible size and selection feedback. */
.portal-header .masthead{min-height:96px;gap:24px}
.portal-nav{gap:6px 8px;font-size:18px;line-height:28px}
.portal-nav a,.web-footer .footer-links a{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:8px 10px;border-radius:4px;color:var(--ink);text-decoration:none;font:500 18px/28px var(--type-title);transition:background-color 180ms ease,color 180ms ease,transform 140ms ease}
.portal-nav a::after,.web-footer .footer-links a::after{content:"";position:absolute;left:10px;right:10px;bottom:5px;height:2px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform 180ms ease}
.portal-nav a:hover,.web-footer .footer-links a:hover{background:var(--surface);color:var(--accent)}
.portal-nav a:hover::after,.portal-nav a:focus-visible::after,.portal-nav a[aria-current="page"]::after,.web-footer .footer-links a:hover::after,.web-footer .footer-links a:focus-visible::after,.web-footer .footer-links a[aria-current="page"]::after{transform:scaleX(1)}
.portal-nav a[aria-current="page"],.web-footer .footer-links a[aria-current="page"]{background:var(--surface);color:var(--accent);font-weight:600}
.portal-nav a:focus-visible,.web-footer .footer-links a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;background:var(--surface)}
.portal-nav a:active,.web-footer .footer-links a:active{transform:translateY(1px) scale(.98);background:var(--accent-soft)}
.web-footer .footer-links{gap:8px 20px}
@media(max-width:1023px){.portal-nav{justify-content:flex-start}.portal-header .masthead{gap:12px}}
@media(max-width:599px){.portal-nav{gap:4px 6px}.portal-nav a,.web-footer .footer-links a{font-size:16px;line-height:28px;padding-inline:10px}.portal-header .masthead{gap:12px;padding-block:14px}.portal-header .brand-en{font-size:18px}.web-footer .footer-links{gap:8px 16px}}
@media(prefers-reduced-motion:reduce){.portal-nav a,.portal-nav a::after,.web-footer .footer-links a,.web-footer .footer-links a::after{transition:none}.portal-nav a:active,.web-footer .footer-links a:active{transform:none}}
