@font-face { font-family: "Anthropic Sans"; src: url("/assets/fonts/anthropic-sans.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Anthropic Serif"; src: url("/assets/fonts/anthropic-serif.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Anthropic Mono"; src: url("/assets/fonts/anthropic-mono.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
:root {
  --shell: #111111; --surface: #1a1a19; --hover: #2a2a27; --selected: #353531;
  --border: #393934; --line: #343431; --text: #f2f1ea; --body: #c5c5bd;
  --muted: #95958b; --faint: #77776e;
  /* Claude 官网标志的原始 fill；正文使用同色相的深浅墨色保证可读性。 */
  --accent: #d97757; --accent-ink: #e7a084; --accent-contrast: #241914;
  --accent-surface: color-mix(in srgb, var(--accent) 14%, var(--surface));
  --story-surface: #242424;
  --summary-surface: color-mix(in srgb, var(--accent) 8%, var(--story-surface));
  --token-surface: color-mix(in srgb, var(--accent) 14%, var(--summary-surface));
  --token-border: color-mix(in srgb, var(--accent) 32%, var(--summary-surface));
  --token-ink: var(--accent-ink);
  --sidebar-expanded-width: 248px; --frame-gap: 8px; --frame-radius: 16px;
  --sans: "Anthropic Sans", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --reading-sans: var(--sans);
  --serif: "Anthropic Serif", "Songti SC", Georgia, serif;
  --mono: "Anthropic Mono", "SFMono-Regular", Consolas, monospace;
}
:root { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --shell: #f3f3f3; --surface: #fff; --hover: #ececec; --selected: #e6e6e6;
  --border: #e1e1dc; --line: #e9e9e5; --text: #26261f; --body: #51514a;
  --muted: #707068; --faint: #85857d; --accent-ink: #a34e35;
  --story-surface: #f6f6f6;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
body { font: 14px/1.65 var(--sans); font-feature-settings: "pnum" on, "lnum" on, "liga" on; color: var(--text); background: var(--shell); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; border: 0; background: transparent; }
button:disabled { cursor: default; opacity: .4; }
a { color: inherit; text-decoration: none; }
button, a, input { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
.icon-library { width: 0; height: 0; position: absolute; overflow: hidden; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon.small { width: 15px; height: 15px; }
.github-icon { fill: currentColor; stroke: none; }
.mono, kbd { font-family: var(--mono); }
.muted { color: var(--muted); }
.previous { transform: rotate(180deg); }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 280px; padding: 8px 16px; color: var(--accent-contrast); background: var(--accent); border-radius: 8px; }
.skip-link:focus { top: 18px; }
.site-shell { position: relative; --sidebar-width: var(--sidebar-expanded-width); display: flex; height: 100svh; min-height: 400px; width: 100%; overflow: hidden; background: var(--shell); transition: background-color 180ms ease; }
/* 侧栏融入外壳，阅读与目录分别围框；两框共用留白和上下圆角。 */
.workspace { display: flex; flex: 1 1 auto; min-width: 0; gap: var(--frame-gap); margin: 4px var(--frame-gap) var(--frame-gap); overflow: hidden; }
.reading-panel { position: relative; display: flex; flex: 1 1 auto; min-width: 0; overflow: hidden; flex-direction: column; }
.reading-panel, .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--frame-radius); transition: background-color 180ms ease, border-color 180ms ease; }
.sidebar { position: relative; display: flex; flex: 0 0 var(--sidebar-width); width: var(--sidebar-width); min-width: 0; flex-direction: column; background: transparent; overflow: hidden; transition: flex-basis 220ms cubic-bezier(.22,1,.36,1), width 220ms cubic-bezier(.22,1,.36,1); }
.sidebar-resize { position: absolute; top: 24px; bottom: 24px; left: calc(var(--sidebar-width) + var(--frame-gap) - 5px); width: 10px; z-index: 20; transition: left 220ms cubic-bezier(.22,1,.36,1); cursor: col-resize; touch-action: none; }
.sidebar-resize::after { content: ""; position: absolute; inset: 0 auto 0 4px; width: 2px; border-radius: 2px; background: #888; opacity: 0; transition: opacity 150ms ease; }
.sidebar-resize:hover::after { opacity: .32; }
.sidebar-resize:focus-visible { outline: 1px solid #8886; outline-offset: -3px; }
.sidebar-resize:focus-visible::after, .is-resizing .sidebar-resize::after { opacity: .5; }
.is-resizing, .is-resizing * { cursor: col-resize !important; user-select: none; }
.is-resizing .sidebar, .is-resizing .sidebar-resize { transition: none; }
.sidebar-brand { position: relative; height: 82px; min-height: 82px; }
.brand-mark { position: absolute; left: 18px; top: 27px; width: 100px; height: 28px; padding: 0; border-radius: 4px; transition: width 220ms cubic-bezier(.22,1,.36,1), transform 220ms cubic-bezier(.22,1,.36,1); }
.brand-lockup, .brand-compact, .brand-wordmark { position: relative; display: block; }
.brand-lockup { position: absolute; inset: 3px auto auto 0; width: 100px; height: 22px; opacity: 1; transition: opacity 120ms ease, transform 180ms cubic-bezier(.22,1,.36,1); }
.brand-compact { position: absolute; inset: 0 auto auto 0; width: 28px; height: 28px; opacity: 0; transform: scale(.88); transition: opacity 120ms ease 35ms, transform 180ms cubic-bezier(.22,1,.36,1) 35ms; }
.theme-logo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; transition: opacity 180ms ease; }
.theme-logo-light { opacity: 0; }
.theme-logo-dark { opacity: 1; }
html[data-theme="light"] .theme-logo-light { opacity: 1; }
html[data-theme="light"] .theme-logo-dark { opacity: 0; }
.sidebar-brand .sidebar-collapse { position: absolute; top: 26px; right: 14px; transition: opacity 120ms ease, transform 180ms cubic-bezier(.22,1,.36,1), color 120ms ease, background 120ms ease; }
.icon-button { padding: 0; width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 7px; color: var(--muted); transition: color 120ms ease, background 120ms ease; }
.icon-button:hover { color: var(--text); background: var(--hover); }
.sidebar .icon-button:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.sidebar-scroll { min-height: 0; overflow-y: auto; flex: 1; scrollbar-width: none; }
.sidebar-scroll::-webkit-scrollbar { display: none; }
.primary-nav { padding: 0 8px; }
.nav-item { display: flex; align-items: center; width: 100%; height: 38px; padding: 0 10px; gap: 11px; margin: 1px 0; font-size: 13px; line-height: 1; color: var(--muted); border-radius: 7px; white-space: nowrap; text-align: left; transition: color 150ms ease, background 150ms ease; }
.nav-item:hover { color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); }
.nav-item.is-active { color: var(--text); background: var(--selected); }
.nav-item > .icon { width: 18px; height: 18px; }
.nav-item kbd { font-size: 10px; padding: 4px 4px; margin-left: auto; color: var(--faint); background: var(--shell); border: 1px solid var(--border); border-radius: 4px; }
.calendar { padding: 34px 18px 24px; }
.calendar-masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 1px 13px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.calendar-selected-day { font: 500 38px/1 var(--mono); letter-spacing: -2px; color: var(--text); }
.calendar-selected-copy { text-align: right; }
.calendar-selected-copy strong { font-size: 13px; font-weight: 500; }
.calendar-selected-copy p { margin: 4px 0 0; font-size: 11px; color: var(--accent-ink); }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 23px; margin-bottom: 7px; }
.calendar-heading strong { font-size: 12px; font-weight: 400; color: var(--muted); }
.calendar-month-actions { display: flex; gap: 3px; }
.calendar-heading .icon-button { width: 23px; height: 23px; }
.calendar-heading .icon { width: 13px; height: 13px; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); text-align: center; }
.calendar-week { color: var(--faint); margin-bottom: 8px; font-size: 11px; }
.calendar-days { gap: 2px 0; font-size: 12px; font-family: var(--mono); }
.calendar-days > span, .calendar-days > button { width: 25px; max-width: 100%; height: 25px; margin: 0 auto; display: grid; place-items: center; color: var(--faint); border-radius: 5px; }
.calendar-days > button { color: var(--muted); transition: background 120ms ease, color 120ms ease; }
.calendar-days > button:hover { background: var(--hover); }
.calendar-days > button.is-current { color: var(--accent-contrast); background: var(--accent); box-shadow: none; border-radius: 6px; }
.recent-issues { padding: 5px 18px 10px; }
.recent-issues h2 { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 500; }
.recent-issue { padding: 7px 0; display: flex; align-items: center; justify-content: space-between; width: 100%; color: var(--muted); font-size: 13px; }
.recent-issue:hover { color: var(--text); }
.recent-issue .icon { width: 12px; height: 12px; opacity: .6; }
.sidebar-footer { padding: 6px 8px 8px; }
.trailing, .theme-label { margin-left: auto; }
.theme-label { font-size: 12px; color: var(--faint); }
.is-collapsed { --sidebar-width: 48px; --rail-axis: calc((var(--sidebar-width) + var(--frame-gap)) / 2); }
/* 48px 轨道 + 8px 框间留白，中线为 28px；顶部品牌与上下功能按钮必须同轴。 */
.is-collapsed .brand-mark { width: 28px; transform: translateX(-4px); }
.is-collapsed .brand-lockup { opacity: 0; transform: translateX(-7px); }
.is-collapsed .brand-compact { opacity: 1; transform: scale(1); }
.is-collapsed .sidebar-collapse { opacity: 0; transform: translateX(6px); pointer-events: none; }
.is-collapsed .sidebar-resize { display: none; }
.is-collapsed .nav-item span, .is-collapsed .nav-item kbd, .is-collapsed .calendar, .is-collapsed .recent-issues, .is-collapsed .trailing { display: none; }
.is-collapsed .primary-nav, .is-collapsed .sidebar-footer { padding-left: 0; padding-right: 0; }
.is-collapsed .nav-item { justify-content: center; width: 38px; margin-left: calc(var(--rail-axis) - 19px); padding: 0; height: 38px; }
.topbar { height: 52px; min-height: 52px; padding: 0 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); }
.breadcrumb-separator { color: var(--faint); }
.breadcrumb .mono { font-size: 10px; }
.topbar-actions { display: flex; gap: 4px; align-items: center; }
#more-toggle[aria-expanded="true"] { color: var(--accent-ink); background: var(--accent-surface); }
.more-panel { position: fixed; inset: auto; margin: 0; width: 272px; max-width: calc(100vw - 24px); max-height: calc(100svh - 80px); overflow: auto; padding: 6px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 50px #0004, 0 3px 10px #0002; }
.more-panel:popover-open { animation: more-enter 150ms cubic-bezier(.22,1,.36,1) both; }
.more-panel::backdrop { background: transparent; }
.more-actions { display: grid; gap: 2px; }
.more-row { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 9px; font-size: 12px; line-height: 1.5; }
.more-row { width: 100%; text-align: left; border-radius: 6px; color: var(--body); transition: background 100ms ease, color 100ms ease; }
.more-row:hover, .social-entry:hover { color: var(--text); background: var(--hover); }
.more-panel .icon { width: 16px; height: 16px; flex: none; color: var(--muted); }
.toggle-track { margin-left: auto; width: 32px; height: 19px; padding: 2px; border: 1px solid var(--border); border-radius: 20px; background: var(--shell); transition: background 140ms ease, border-color 140ms ease; }
.toggle-track > span { display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--muted); transition: transform 140ms ease, background 140ms ease; }
[aria-checked="true"] .toggle-track { background: var(--accent); border-color: var(--accent); }
[aria-checked="true"] .toggle-track > span { transform: translateX(13px); background: var(--surface); }
.more-social { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.social-entry { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 6px 9px; border-radius: 6px; font-size: 12px; line-height: 1.5; color: var(--body); transition: background 100ms ease, color 100ms ease; }
.more-panel .brand-icon { fill: currentColor; stroke: none; }
.social-entry:hover .icon { color: var(--accent-ink); }
@keyframes more-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu { display: none; }
.workspace-body { min-height: 0; flex: 1; display: flex; overflow: hidden; }
.reading-scroll { flex: 1; min-width: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: auto; scrollbar-color: auto; scrollbar-gutter: stable; scroll-behavior: smooth; }
.reading-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.reading-scroll::-webkit-scrollbar-track { background: transparent; }
.reading-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; min-height: 32px; }
.reader { max-width: 1080px; margin: 0 auto; padding: 24px 40px 40px; outline: none; font-family: var(--reading-sans); }
.issue-header { margin-bottom: 28px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 1.35px; }
.status-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
h1 { font-family: var(--serif); font-size: 46px; font-weight: 500; letter-spacing: -1.8px; line-height: 1.2; margin: 18px 0 13px; }
.issue-title { display: flex; align-items: center; flex-wrap: wrap; gap: .28em; margin-top: 0; }
.brand-wordmark { flex: 0 0 auto; width: 3.68em; height: .8em; }
.issue-title-copy { white-space: nowrap; display: inline-flex; align-items: center; gap: .22em; }
.issue-title-latin { transform: translateY(.06em); }
.title-period { color: var(--accent); }
.issue-date { margin: 0; font-size: 15px; color: var(--body); letter-spacing: .4px; }
.issue-date-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }
.text-button:hover { color: var(--accent-ink); }
.previous-issue { margin-left: auto; }
.video-section { margin: 30px 0 35px; }
.issue-player { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #080808; border: 1px solid var(--border); border-radius: 12px; color-scheme: dark; }
.issue-player iframe, .issue-player video { display: block; width: 100%; height: 100%; border: 0; background: #080808; }
.issue-player video { object-fit: contain; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 23px; gap: 12px; }
.section-heading h2 { font-size: 18px; line-height: 1.3; margin: 0; font-weight: 550; letter-spacing: -.3px; }
.section-heading > span { font-size: 10px; color: var(--faint); }
.story-section { margin-top: 48px; scroll-margin-top: 30px; }
.story-section-heading { display: flex; align-items: center; gap: 11px; padding-bottom: 18px; font: 500 24px/1.4 var(--serif); }
.story-section-heading::before { content: ""; width: 3px; height: 1em; flex: none; background: var(--accent); border-radius: 2px; }
.story-section-heading h2 { margin: 0; font: inherit; letter-spacing: -.3px; }
.story { padding: 24px; margin-bottom: 14px; background: var(--story-surface); border-radius: 18px; scroll-margin-top: 25px; }
.story-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.story-heading h3 { flex: 1; margin: 0; font: 500 25px/1.45 var(--serif); letter-spacing: -.3px; color: var(--accent-ink); }
.story-title-link { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.story-title-link:hover, .story-title-link:focus-visible { text-decoration: underline; }
.story-link { margin-left: auto; display: none; flex: 0 0 auto; }
.show-share-links .story-link { display: inline-grid; }
.story-body { font-size: 17px; color: var(--body); line-height: 1.85; }
.story-body p { margin: 0 0 16px; }
.story-body .story-lead { border-radius: 12px; background: var(--summary-surface); padding: 15px 18px; margin-bottom: 18px; }
.story-body p:last-child { margin-bottom: 0; }
.project-card { padding: 22px; }
.project-card.has-preview { display: grid; grid-template-columns: minmax(0,1fr) 178px; align-items: center; gap: 24px; }
.project-copy { min-width: 0; }
.project-card .story-heading { margin-bottom: 10px; gap: 8px; }
.project-card .story-heading h3 { font-size: 25px; line-height: 1.35; overflow-wrap: anywhere; }
.project-card .story-title-link .icon { display: inline-block; vertical-align: baseline; margin-left: 9px; opacity: .6; }
.project-purpose { color: var(--body); font-size: 16px; line-height: 1.8; margin: 0; }
.project-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.project-stars { display: inline-flex; align-items: center; gap: 5px; }
.project-stars .icon { width: 13px; height: 13px; }
.project-preview { aspect-ratio: 8 / 5; border: 1px solid var(--border); }
.project-card .project-preview img { height: 100%; object-fit: cover; object-position: top; }
.is-github .story-section { margin-top: 32px; }
.is-github .story-section-heading { padding-bottom: 14px; }
.product-token { color: var(--token-ink); background: var(--token-surface); border: 1px solid var(--token-border); border-radius: 5px; padding: 0 4px 1px; font: .88em/1.6 var(--mono); box-decoration-break: clone; -webkit-box-decoration-break: clone; overflow-wrap: anywhere; }
.number-token { font-weight: 600; color: var(--text); }
.story-media { margin-top: 25px; }
.media-gallery { width: 100%; max-width: 700px; contain: size; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; scrollbar-gutter: stable; border-radius: 9px; }
.media-gallery figure { width: 100%; min-width: 0; margin: 0; }
.media-gallery figure + figure { margin-top: 14px; }
.media-preview { display: block; width: 100%; padding: 0; border-radius: 9px; overflow: hidden; background: var(--summary-surface); cursor: zoom-in; }
.media-preview img { display: block; width: 100%; height: auto; }
.media-preview:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.related-links { margin-top: 24px; }
.related-links h4 { color: var(--muted); font-size: 14px; font-weight: 500; margin: 0 0 10px; }
.related-link-list { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.related-link-list li { min-width: 0; }
.related-links a { color: var(--accent-ink); display: inline-flex; align-items: baseline; gap: 7px; max-width: 100%; font-size: 14px; line-height: 1.6; }
.related-links a span { min-width: 0; overflow-wrap: anywhere; }
.related-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.related-links .icon { width: 12px; height: 12px; }
.related-links-toggle { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; padding: 3px 0; color: var(--muted); font-size: 13px; }
.related-links-toggle:hover { color: var(--text); }
.related-links-toggle .icon { transform: rotate(90deg); transition: transform 150ms ease; }
.related-links-toggle[aria-expanded="true"] .icon { transform: rotate(-90deg); }
/* Closing panel shares the homepage follow controls. */
.article-footer { container-type: inline-size; background: var(--story-surface); border: 1px solid var(--border); border-radius: 13px; margin-top: 36px; padding: 20px; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 14px 14px; column-gap: 12px; row-gap: 16px; }
.footer-signoff, .footer-copy { display: contents; }
.footer-signoff > img { width: 44px; height: 44px; object-fit: contain; grid-column: 1; grid-row: 1 / 3; align-self: center; }
#footer-closing { margin: 0; color: var(--muted); font-size: 13px; line-height: 14px; font-weight: 400; }
.footer-follow { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 14px; }
.footer-follow .brand-wordmark { width: 4.13em; height: .9em; }
.footer-bottom { min-height: 0; grid-column: 2; grid-row: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.footer-social { display: flex; justify-content: flex-end; gap: 4px; margin-left: auto; }
.footer-social .social-entry { height: 32px; min-height: 32px; padding: 5px 8px; font-size: 12px; line-height: 20px; gap: 6px; border: 1px solid var(--border); border-radius: 7px; white-space: nowrap; }
.footer-social .icon { width: 15px; height: 15px; flex: none; }
.footer-social .brand-icon { fill: currentColor; stroke: none; }
/* ICP filing line: last item in the reading column, shown on every view. */
.footer-beian { margin-top: 24px; text-align: center; color: var(--muted); font-size: 12px; line-height: 18px; }
.footer-beian a { color: inherit; text-decoration: none; }
.footer-beian a:hover { text-decoration: underline; text-underline-offset: 3px; }
@container (max-width: 700px) {
  .footer-social .social-entry { width: 32px; padding: 5px; }
  .footer-social .social-entry span { display: none; }
}

.outline-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--border); border-radius: 7px; font-size: 11px; }
.outline-button:hover { color: var(--accent-ink); border-color: var(--accent); }
.toc { width: 260px; flex: 0 0 260px; display: flex; flex-direction: column; overflow: hidden; }
.toc-heading { display: flex; flex: 0 0 52px; align-items: center; justify-content: space-between; padding: 0 20px; color: var(--muted); font-size: 12px; }
.toc-heading .mono { font-size: 10px; }
.reading-progress { flex: 0 0 2px; background: var(--line); margin: 0 20px 9px; }
.reading-progress > span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 100ms linear; }
.toc nav { min-height: 0; flex: 1; overflow: auto; scrollbar-width: none; padding: 4px 10px 22px; }
.toc nav::-webkit-scrollbar { display: none; }
.toc a { display: block; color: var(--muted); font-size: 12px; line-height: 1.75; padding: 8px 11px; margin: 2px 0; border-radius: 7px; border-left: 2px solid transparent; transition: color 100ms ease, background 100ms ease; }
.toc a:hover { color: var(--text); background: var(--hover); }
.toc a.is-current { color: var(--accent-ink); border-left-color: var(--accent); background: var(--accent-surface); }
.toc a.toc-section { margin-top: 12px; color: var(--text); font-size: 12px; font-weight: 500; padding-left: 8px; }
.toc a.toc-story { padding-left: 12px; }
.toc-hidden .toc, .is-focused .toc { display: none; }
.is-focused .video-section { display: none; }
.is-focused .reader { max-width: 1080px; }
.is-focused #reading-mode { color: var(--accent-ink); background: var(--accent-surface); }
.view-secondary .toc, .view-secondary #reading-mode, .view-secondary #toc-toggle, .view-secondary #more-toggle { display: none; }
.page-description { color: var(--muted); font-size: 14px; margin-top: 17px; }
.archive-controls { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin: 38px 0 28px; }
.archive-controls > span { font-size: 11px; }
.archive-tabs { display: flex; gap: 15px; }
.archive-tabs button { font-size: 12px; color: var(--muted); padding: 5px 0; }
.archive-tabs button[aria-pressed="true"] { color: var(--accent-ink); }
.archive-list { display: grid; gap: 12px; }
.archive-month { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); margin: 16px 0 0; }
.archive-month:first-child { margin-top: 0; }
.home-header { margin-bottom: 0; }
.home-latest { padding: 18px 0 0; margin: 18px 0 28px; border-top: 1px solid var(--line); }
.home-header .issue-title-copy, #issue-title-copy { line-height: 1; transform: translateY(-.07em); }
.home-section-title { margin: 0 0 16px; font-size: 18px; line-height: 1.3; font-weight: 550; letter-spacing: -.3px; }
.edition-list { display: grid; gap: 12px; }
.edition-card { --edition-height: 99px; width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; padding: 12px; background: var(--story-surface); border: 1px solid var(--border); border-radius: 13px; transition: background 140ms ease, border-color 140ms ease, transform 140ms ease; }
.edition-card:hover, .edition-card:focus-visible { background: var(--hover); border-color: color-mix(in srgb, var(--muted) 50%, var(--border)); transform: translateY(-1px); }
.edition-cover { width: 176px; height: var(--edition-height); flex: none; display: grid; place-items: center; overflow: hidden; background: var(--shell); border-radius: 8px; }
.edition-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.edition-cover .edition-placeholder { width: 44px; height: 44px; object-fit: contain; }
.edition-copy { min-width: 0; flex: 1; height: var(--edition-height); display: flex; flex-direction: column; gap: 5px; }
.edition-copy > strong { color: var(--text); font-size: 16px; line-height: 1.4; font-weight: 550; flex: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.edition-summary { color: var(--muted); font-size: 12px; line-height: 1.5; min-height: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.edition-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; flex: none; font-size: 10px; line-height: 1.5; color: var(--faint); }
.edition-meta .icon { margin-left: auto; }
@media (max-width: 720px) {
  .edition-card { --edition-height: 96px; padding: 10px; gap: 12px; border-radius: 11px; }
  .edition-cover { width: 100px; }
  .edition-copy > strong { font-size: 14px; line-height: 1.4; }
  .edition-summary { font-size: 11px; }
  .edition-meta { gap: 7px; font-size: 9px; }
}
dialog { position: fixed; padding: 25px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; max-width: calc(100vw - 32px); width: 580px; box-shadow: 0 20px 100px #0004; }
dialog::backdrop { background: #0008; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dialog-heading h2 { font-size: 17px; font-weight: 500; margin: 0; }
.search-dialog { --search-top: clamp(48px,18svh,180px); top: var(--search-top); bottom: auto; margin: 0 auto; width: 480px; max-height: min(520px,calc(100svh - var(--search-top) - 24px)); padding: 18px; border-radius: 12px; }
.search-dialog[open] { animation: search-enter 180ms cubic-bezier(.22,1,.36,1) both; }
.search-dialog::backdrop { background: #0006; backdrop-filter: blur(3px); animation: search-backdrop-enter 180ms ease both; }
.search-dialog.is-closing { pointer-events: none; animation: search-exit 140ms ease-in both; }
.search-dialog.is-closing::backdrop { animation: search-backdrop-exit 140ms ease-in both; }
.search-dialog .dialog-heading { margin-bottom: 12px; }
.search-dialog .dialog-heading h2 { font-size: 16px; }
.search-dialog .dialog-heading .icon-button { width: 26px; height: 26px; }
.search-field { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--border); background: var(--shell); border-radius: 8px; color: var(--muted); }
.search-field:focus-within { border-color: var(--accent); }
.search-field input { min-width: 0; width: 100%; border: 0; outline: none; color: var(--text); background: transparent; font-size: 13px; }
.search-field kbd { font-size: 9px; color: var(--faint); }
.search-hint { color: var(--faint); font-size: 11px; line-height: 1.5; margin: 8px 0 0; }
.search-results { max-height: min(300px,50svh); overflow: auto; margin-top: 10px; }
.search-results:empty { display: none; }
.search-result { display: block; width: 100%; text-align: left; padding: 12px 3px; border-top: 1px solid var(--line); }
.search-empty { color: var(--faint); font-size: 11px; margin: 6px 0 0; }
.search-result:hover { color: var(--accent-ink); }
.search-result small { color: var(--faint); display: block; font-size: 10px; margin-bottom: 5px; }
.search-result strong { font-size: 13px; font-weight: 500; }
@keyframes search-enter { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes search-exit { from { opacity: var(--search-exit-opacity,1); transform: var(--search-exit-transform,translateY(0) scale(1)); } to { opacity: 0; transform: translateY(-4px) scale(.99); } }
@keyframes search-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes search-backdrop-exit { from { opacity: 1; } to { opacity: 0; } }
.rss-dialog { width: 360px; padding: 18px; border-radius: 12px; }
.rss-dialog .dialog-heading { margin-bottom: 12px; }
.rss-dialog .dialog-heading h2 { font-size: 16px; outline: none; }
.rss-dialog .icon-button { width: 26px; height: 26px; }
.rss-dialog :focus-visible { outline-color: var(--muted); }
.rss-dialog > p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.rss-path { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 11px; background: var(--shell); border: 1px solid var(--border); border-radius: 7px; margin: 14px 0 12px; }
.rss-path code { min-width: 0; color: var(--body); font: 11px/1.6 var(--mono); overflow-wrap: anywhere; }
.rss-path .text-button { font-size: 11px; flex: none; }
.rss-dialog > .sample-note { font-size: 11px; color: var(--faint); }
.home-header .page-description { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.home-social { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; margin-top: 24px; }
.home-social-label { font-size: 14px; font-weight: 500; color: var(--muted); }
.home-social-links { display: flex; flex-wrap: wrap; gap: 4px; }
.home-social .social-entry { min-height: 32px; padding: 5px 9px; font-size: 12px; }
.home-social .icon { width: 16px; height: 16px; }
.brand-icon { fill: currentColor; stroke: none; }
.media-dialog { width: min(1120px,calc(100vw - 40px)); max-height: calc(100svh - 40px); padding: 20px; }
.media-dialog .dialog-heading { margin-bottom: 15px; }
.media-full-stage { max-height: calc(100svh - 130px); overflow: auto; border-radius: 8px; }
.media-full-stage img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.toast { position: fixed; z-index: 200; bottom: 60px; left: 50%; max-width: calc(100vw - 36px); transform: translate(-50%,10px); padding: 10px 16px; color: var(--text); background: var(--selected); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity 150ms ease, transform 150ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.tooltip { position: fixed; inset: auto; margin: 0; z-index: 250; display: flex; align-items: center; gap: 14px; max-width: min(300px,calc(100vw - 24px)); padding: 7px 10px; color: #f2f1ea; background: #30302d; border: 1px solid #484844; border-radius: 7px; box-shadow: 0 4px 16px #0002; font-size: 12px; line-height: 1.5; pointer-events: none; opacity: 0; transition: opacity 70ms ease-out; }
.tooltip.is-visible { opacity: 1; }
.tooltip kbd { flex: 0 0 auto; font-size: 10px; color: #c6c6bd; padding: 0 4px; border: 1px solid #5a5a53; border-radius: 3px; }
.tooltip::before { content: ""; position: absolute; width: 6px; height: 6px; background: inherit; transform: rotate(45deg); }
.tooltip[data-side="right"]::before { left: -4px; top: var(--tip-arrow); border-left: 1px solid #484844; border-bottom: 1px solid #484844; }
.tooltip[data-side="left"]::before { right: -4px; top: var(--tip-arrow); border-right: 1px solid #484844; border-top: 1px solid #484844; }
.tooltip[data-side="bottom"]::before { top: -4px; left: var(--tip-arrow); border-left: 1px solid #484844; border-top: 1px solid #484844; }
.tooltip[data-side="top"]::before { bottom: -4px; left: var(--tip-arrow); border-right: 1px solid #484844; border-bottom: 1px solid #484844; }
.mobile-backdrop { display: none; }
.story:target { animation: target-highlight 1.2s ease; }
@keyframes target-highlight { 0%,35% { background: var(--accent-surface); } 100% { background: var(--story-surface); } }
@media (min-width: 1800px) { .toc { flex-basis: 278px; width: 278px; } .reader { padding-top: 36px; } }
@media (max-width: 1200px) { .toc { width: 224px; flex-basis: 224px; } h1 { font-size: 39px; } .project-card.has-preview { grid-template-columns: minmax(0,1fr) 140px; gap: 18px; } }
@media (max-width: 1000px) { .toc { display: none; } .toc-mobile-open .toc { display: flex; position: fixed; right: 16px; top: 67px; bottom: 16px; width: 260px; z-index: 10; box-shadow: 0 15px 50px #0003; } .reader { padding-top: 24px; } }
@media (max-height: 700px) and (min-width: 721px) { .calendar { padding-top: 22px; } .recent-issues { display: none; } }
@media (max-width: 720px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 30; background: var(--shell); transform: translateX(-100%); transition: transform 200ms ease; }
  .sidebar-resize { display: none; }
  .mobile-nav-open .sidebar { transform: translateX(0); box-shadow: 12px 0 60px #0004; }
  .mobile-nav-open .mobile-backdrop { display: block; position: fixed; inset: 0; background: #0008; z-index: 20; }
  .site-shell { --frame-gap: 6px; --frame-radius: 14px; }
  .topbar { padding: 0 14px; height: 50px; min-height: 50px; }
  .breadcrumb { gap: 8px; font-size: 10px; }
  .breadcrumb .mono { font-size: 9px; }
  .mobile-menu { display: inline-grid; margin-left: -3px; }
  .topbar-actions { gap: 1px; }
  .topbar-actions .icon-button { width: 28px; height: 28px; }
  .topbar-actions .icon { width: 17px; height: 17px; }
  .reader { padding: 22px 12px 32px; }
  .eyebrow { font-size: 9px; letter-spacing: 1px; }
  h1 { font-size: 35px; margin-top: 17px; letter-spacing: -1.3px; }
  .issue-title { margin-top: 0; }
  .issue-date { font-size: 13px; }
  .previous-issue { font-size: 9px; }
  .video-section { margin: 25px 0 29px; }
  .issue-player { border-radius: 10px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: 17px; }
  .story { padding: 19px 16px; border-radius: 15px; }
  .story-heading { gap: 10px; }
  .story-heading h3 { font-size: 22px; }
  .story-body .story-lead { padding: 13px 14px; border-radius: 10px; }
  .story-body { font-size: 15px; }
  .project-card.has-preview { grid-template-columns: 1fr; gap: 16px; }
  .project-card { padding: 19px 16px; }
  .project-card .story-heading h3 { font-size: 23px; }
  .project-purpose { font-size: 15px; }
  .project-preview { aspect-ratio: 16 / 7; }
  .show-share-links .story-link { width: 28px; height: 28px; }
  .article-footer { padding: 16px 12px; grid-template-rows: auto auto; row-gap: 8px; }
  #footer-closing { font-size: 12px; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-follow { font-size: 13px; }
  .footer-social { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .footer-social .social-entry span { display: inline; }
  .footer-social .social-entry { width: auto; height: auto; min-height: 38px; flex-direction: column; gap: 4px; padding: 7px 2px; font-size: 10px; }

  .toc-mobile-open .toc { right: 13px; }
  .skip-link { left: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after, *::backdrop { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Focus outline stays visible and follows the active article without a collapsed state. */
.toc-content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.is-focused #toc-toggle { display: none; }
.is-focused .reader { width: calc(100% - 300px); margin-left: max(0px, calc((100% - 300px - 1080px) / 2)); margin-right: 300px; }
.is-focused .toc { display: block; position: fixed; z-index: 15; right: 20px; top: 50%; bottom: auto; width: 280px; height: min(480px, calc(100svh - 140px)); transform: translateY(-50%); overflow: visible; background: transparent; border: 0; box-shadow: none; }
.is-focused .toc-content { height: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 36px #0004; overflow: hidden; animation: more-enter 160ms ease both; }
.is-focused .toc-heading { flex-basis: 42px; padding: 0 15px; }
.is-focused .toc nav { padding: 0 7px 12px; overscroll-behavior: contain; }
.is-focused .toc a { font-size: 12px; padding: 6px 9px; }
.is-focused .reading-progress { margin: 0 15px 6px; }
@media (max-width: 1000px) {
  .is-focused .reader { width: calc(100% - 244px); margin-left: 0; margin-right: 244px; }
  .is-focused .toc { width: 224px; }
}
@media (max-width: 720px) {
  .is-focused .reader { width: 100%; margin: 0 auto; padding-bottom: min(240px, 36svh); }
  .is-focused .back-to-top { bottom: calc(min(180px, 30svh - 20px) + 28px); }
  .is-focused .toc { right: 16px; bottom: 16px; top: auto; transform: none; width: calc(100vw - 32px); height: min(180px, calc(30svh - 20px)); }
}

/* Shared controls retain the same geometry in normal and focused reading. */
.back-to-top { position: absolute; z-index: 16; right: 18px; bottom: 18px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 3px 12px #0002; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 150ms ease, transform 150ms ease, visibility 150ms, background 120ms ease, color 120ms ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: var(--text); background: var(--hover); }
.back-to-top .icon { width: 18px; height: 18px; }

.wechat-popover { position: fixed; inset: auto; margin: 0; width: 230px; max-width: calc(100vw - 24px); padding: 7px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); box-shadow: 0 8px 28px #0004; }
.wechat-popover:popover-open { animation: more-enter 130ms ease both; }
.wechat-popover img { display: block; width: 100%; height: auto; border-radius: 6px; }
[data-wechat][aria-expanded="true"] { background: var(--hover); color: var(--text); }
