/* Article extension to David-Legal and the We Say client-memo layout. */
[hidden]{display:none!important}
html{scroll-padding-top:0}
body{font-size:16px;line-height:1.8}
.brand-link{text-decoration:none;color:var(--ink)}
.brand-link:hover{text-decoration:none}
.toolbar-inner{max-width:1280px;padding:13px 32px}
.toolbar-nav{gap:22px}
.nav-label{font-size:12px;color:var(--gray-600)}
.language{display:flex;border:1px solid var(--border);padding:3px;border-radius:4px;gap:3px}
.language button{font:500 12px/1.4 var(--font-sans);color:var(--gray-600);border:0;border-radius:2px;background:transparent;padding:6px 10px;cursor:pointer}
.language button[aria-pressed=true]{color:var(--accent);background:var(--accent-wash)}
.language button:hover{background:var(--gray-100)}
.print{border-radius:4px}
#reading-progress{position:absolute;bottom:-1px;left:0;width:100%;height:2px;border:0;background:transparent;appearance:none}
#reading-progress::-webkit-progress-bar{background:transparent}
#reading-progress::-webkit-progress-value{background:var(--accent)}
#reading-progress::-moz-progress-bar{background:var(--accent)}
.layout{max-width:1280px;grid-template-columns:216px minmax(0,1fr);gap:36px;padding:0 32px;margin-top:32px}
.paper{padding:44px 56px 30px}
.paper-header{margin-bottom:36px}
.letterhead{padding-bottom:22px;margin-bottom:30px}
.letterhead .wordmark{font-size:29px}
.brand-caption{letter-spacing:.13em}
.folio{font-size:10px}
h1{font-size:46px;line-height:1.18;letter-spacing:-.03em;margin:17px 0 7px}
.article-subtitle{font:600 24px/1.45 var(--font-serif);margin:0 0 22px;color:var(--gray-700);letter-spacing:-.02em}
.deck{font-size:17px;line-height:1.8;margin-bottom:24px}
.memo-meta{font-size:12px;gap:5px 16px;padding:18px 0;grid-template-columns:66px minmax(0,1fr)}
.toc{top:101px;max-height:calc(100dvh - 125px)}
.toc-disclosure{min-height:0;overflow:auto;flex:1 1 auto}
.toc-title{cursor:pointer;list-style:none;margin-bottom:15px}
.toc-title::-webkit-details-marker{display:none}
.toc-links a{display:flex;gap:10px;font-size:12px;line-height:1.6;padding:6px 0}
.toc-links a span{font:11px/1.75 var(--font-mono);color:var(--gray-500)}
.toc small{font:10px/1.9 var(--font-mono);margin-top:16px;padding-top:14px}
.toc .author-signature{margin-top:15px;padding-top:16px}
.toc .signature-name{font-size:20px;line-height:1.5}
.toc .signature-name-en{font-size:20px}
.toc .signature-name-zh{font-size:16px}
.toc .signature-role{font-size:10px}
.toc .signature-contact a{gap:7px}
.toc .signature-contact a span:last-child{font-size:10px}
.paper{scroll-margin-top:100px}
.article-intro{scroll-margin-top:112px}
.article-intro>p{margin:0 0 20px}
.article-intro>p:first-child{font-size:18px;line-height:1.85}
.route{padding:20px 24px;font-size:13px;line-height:1.9;margin:28px 0}
.route strong{display:block;margin-bottom:6px}
.chapter{padding:32px 0 7px;margin-top:33px;scroll-margin-top:112px}
.chapter h2{font-size:28px;line-height:1.4;margin:0 0 24px}
.item-head{grid-template-columns:38px minmax(0,1fr);gap:15px}
.item-no{font-size:22px;line-height:1.8}
.item-head h2{margin:0 0 24px}
.chapter p{margin-bottom:20px}
.chapter li{margin:8px 0}
.chapter strong{font-weight:600}
.table-wrap{border-top:1px solid var(--border);margin:28px 0}
table{min-width:0;table-layout:fixed;font-size:13px}
th:first-child,td:first-child{width:35%}
th,td{padding:13px 16px}
th{background:var(--gray-50)}
td:first-child{min-width:0}
.diagram{margin:30px 0 28px;break-inside:avoid}
.diagram-open{display:block;width:100%;padding:0;border:1px solid var(--border);background:#fff;cursor:zoom-in;text-align:left}
.diagram img{display:block;width:100%;height:auto;background:#fff}
.diagram figcaption{display:flex;justify-content:space-between;gap:16px;margin-top:9px;font:10px/1.7 var(--font-sans);color:var(--gray-600)}
.figure-label{letter-spacing:.03em}
.figure-action{color:var(--accent);white-space:nowrap}
.diagram-open:hover{border-color:var(--gray-400)}
.article-end{border-top:1px solid var(--border);margin-top:30px;padding-top:24px;font-size:12px;color:var(--gray-600)}
.article-end p{margin:0 0 14px}
.download{display:inline-block;text-decoration:none;font-size:13px;font-weight:500}
.chapter[data-section=closing]>p:last-child{font-size:12px;line-height:1.9;color:var(--gray-600)}
.chapter[data-section=closing]>p:last-child em{font-style:normal}
.closing-signature{display:none}
.footer a{text-decoration:none;white-space:nowrap}
.modal-open{overflow:hidden}
.diagram-viewer{border:1px solid var(--border);border-radius:6px;padding:0;width:calc(100vw - 32px);max-width:1600px;max-height:calc(100dvh - 32px);background:#fff;color:var(--ink);box-shadow:var(--shadow-lg)}
.diagram-viewer::backdrop{background:rgba(21,23,28,.75)}
.diagram-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;border-bottom:1px solid var(--border);font-size:13px;line-height:1.5}
.diagram-toolbar p{margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.diagram-controls{display:flex;gap:8px;flex-shrink:0}
.diagram-toolbar button{font:500 12px var(--font-sans);padding:8px 12px;border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:4px;cursor:pointer}
.diagram-toolbar button:hover{background:var(--accent-hover)}
.diagram-viewport{overflow:auto;max-height:calc(100dvh - 112px);padding:12px}
.diagram-viewport img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 136px);margin:auto}
.diagram-viewport.zoomed img{width:1536px;max-width:none;max-height:none;margin:0}
.not-found{max-width:800px;margin:10vh auto;padding:48px}
.not-found h1{font-size:38px}
.not-found .eyebrow{margin-top:45px}
.noscript-note{text-align:center;font-size:13px;padding:16px}
[lang=zh-CN] h1{font-size:41px;line-height:1.4}
[lang=zh-CN] .article-subtitle{font-size:21px;line-height:1.7}
[lang=zh-CN] .chapter p,[lang=zh-CN] .chapter li{line-height:1.95}
@media(max-width:1100px){.layout{grid-template-columns:190px minmax(0,1fr);gap:26px;padding:0 24px}.paper{padding:36px 36px 28px}h1{font-size:40px}.chapter h2{font-size:26px}.toc-links a{font-size:11px}}
@media(max-width:800px){.toolbar-inner{padding:11px 18px}.toolbar .wordmark{font-size:22px}.toolbar-nav{gap:12px}.nav-label{display:none}.language button{font-size:11px;padding:5px 8px}.print{font-size:11px;padding:8px 12px}.layout{display:block;padding:0 16px;margin:20px auto 32px}.toc{max-height:none;margin-bottom:18px;top:0;padding:0}.toc-disclosure{overflow:visible;border-bottom:1px solid var(--border);padding-bottom:10px}.toc-title{font-size:11px;margin:0}.toc-title::after{content:' +';float:right;font-family:var(--font-mono)}.toc-disclosure[open] .toc-title::after{content:' −'}.toc-links{display:grid;grid-template-columns:1fr 1fr;gap:2px 18px;margin-top:10px}.toc-links a{font-size:11px;padding:5px 0}.toc small,.toc .author-signature{display:none}.paper{padding:28px 26px 24px}.paper-header{margin-bottom:27px}.letterhead{margin-bottom:25px}.folio{font-size:9px}.letterhead .wordmark{font-size:26px}h1{font-size:35px}.article-subtitle{font-size:21px}.deck{font-size:15px}.article-intro>p:first-child{font-size:16px}.chapter{padding-top:27px;margin-top:26px}.chapter h2{font-size:25px}.item-head{grid-template-columns:31px minmax(0,1fr);gap:12px}.item-no{font-size:19px}.chapter p,.chapter li{font-size:15px}.diagram{margin:24px 0}.diagram figcaption{display:block;font-size:9px}.figure-action{display:block;margin-top:4px}.diagram-toolbar{padding:10px;gap:8px}.diagram-toolbar p{font-size:11px}.diagram-toolbar button{font-size:11px;padding:7px 10px}.diagram-viewer{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.closing-signature{display:grid}.footer{display:flex;font-size:9px}.signature-role{font-size:11px}[lang=zh-CN] h1{font-size:33px}[lang=zh-CN] .article-subtitle{font-size:18px}[lang=zh-CN] .chapter h2{font-size:24px}}
@media(max-width:420px){.toolbar .wordmark{display:block;font-size:20px}.toolbar-inner{justify-content:space-between;padding:10px 14px}.toolbar-nav{width:auto;gap:8px}.print{padding:7px 9px}.language{padding:2px}.language button{font-size:10px;padding:5px 6px}.layout{padding:0 10px;margin-top:16px}.paper{padding:24px 19px}.letterhead{gap:14px}.letterhead .wordmark{font-size:25px}.brand-caption{font-size:8px}.folio{font-size:8px}h1{font-size:32px}.article-subtitle{font-size:20px}.memo-meta{font-size:11px;grid-template-columns:54px 1fr;gap:5px 10px}.route{padding:16px;font-size:12px}.chapter h2{font-size:23px}.item-head{grid-template-columns:26px 1fr;gap:10px}.item-no{font-size:17px}th,td{font-size:11px;padding:10px}.footer{gap:10px}[lang=zh-CN] h1{font-size:30px}[lang=zh-CN] .article-subtitle{font-size:17px}}
@media print{.toolbar,.toc,.skip,.diagram-viewer,.figure-action{display:none!important}.layout{display:block;margin:0;padding:0;max-width:none}.paper{padding:0;border:0}.paper-header{margin-bottom:7mm}.letterhead{padding-bottom:5mm;margin-bottom:6mm}h1,[lang=zh-CN] h1{font-size:28pt;line-height:1.3}.article-subtitle,[lang=zh-CN] .article-subtitle{font-size:16pt}.deck{font-size:11pt}.memo-meta{font-size:9pt;padding:4mm 0}.article-intro>p:first-child{font-size:11pt}.article-intro>p,.chapter p,.chapter li,[lang=zh-CN] .chapter p,[lang=zh-CN] .chapter li{font-size:10pt;line-height:1.8}.chapter{margin-top:6mm;padding-top:6mm}.chapter h2,[lang=zh-CN] .chapter h2{font-size:18pt}.item-head{grid-template-columns:10mm 1fr;gap:4mm}.item-no{font-size:17pt}.route{font-size:9pt;padding:4mm}.diagram{margin:5mm 0;break-inside:avoid}.diagram-open{border:0}.diagram img{max-height:90mm;object-fit:contain}.diagram figcaption{font-size:7pt}.closing-signature{display:grid!important}.article-end{font-size:8pt}.footer{font-size:7pt}table,th,td{font-size:8pt}p{orphans:3;widows:3}}
