:root{--header-height:50px;--bg:#fff;--text:#1d1d1f;--muted:#6e6e73;--line:#e5e5e8;--surface:#f5f5f7;--blue:#0066cc;--active:#eef5ff;--header:rgba(255,255,255,.94);color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:root[data-theme=dark]{--bg:#161617;--text:#f5f5f7;--muted:#a1a1a6;--line:#38383b;--surface:#232325;--blue:#75b5ff;--active:#23334b;--header:rgba(22,22,23,.94);color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-height) + 16px)}body{margin:0;background:var(--bg);color:var(--text);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #007aff;outline-offset:4px}[hidden]{display:none!important}.skip-link{position:fixed;z-index:50;top:10px;left:20px;transform:translateY(-180%);padding:9px 16px;background:var(--bg);border:1px solid var(--line);border-radius:8px}.skip-link:focus{transform:none}.site-header{position:sticky;top:0;z-index:20;background:var(--header);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.global-bar{height:50px;max-width:1450px;margin:auto;display:flex;align-items:center;padding:0 36px;gap:22px;border-bottom:1px solid var(--line)}.brand{font-size:18px;letter-spacing:-.5px;font-weight:650;color:var(--text);display:flex;align-items:center;gap:9px}.brand:hover{text-decoration:none}.brand-mark{font-size:27px;line-height:1}.mobile-chapters{display:none}.page-layout{max-width:1440px;padding:0 36px;margin:auto;display:grid;grid-template-columns:208px minmax(0,780px) minmax(130px,1fr);gap:42px;align-items:start}.sidebar,.toc{position:sticky;top:calc(var(--header-height) + 22px);max-height:calc(100dvh - var(--header-height) - 54px);overflow-y:auto;scrollbar-width:thin}.sidebar{display:flex;flex-direction:column;height:calc(100dvh - var(--header-height) - 44px);max-height:calc(100dvh - var(--header-height) - 44px);padding-bottom:0;overflow:hidden}.nav-group-title{font-size:13px;color:var(--text);font-weight:600;margin:25px 9px 9px}.chapter-links a,.overview-link{display:flex;align-items:center;gap:11px;padding:8px 10px;margin:2px 0;color:var(--muted);font-size:14px;line-height:1.4;border-radius:7px}.chapter-links a:hover,.overview-link:hover{background:var(--surface);text-decoration:none}.chapter-links a[aria-current=location],.overview-link[aria-current=location]{background:var(--active);color:var(--blue);font-weight:600}.chapter-number{font-size:11px;width:17px;flex-shrink:0;font-variant-numeric:tabular-nums}main{min-width:0;padding-top:47px}main:focus{outline:0}.eyebrow{font-size:11px;line-height:1.4;letter-spacing:1.25px;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:18px}h1{font-size:clamp(42px,4.3vw,61px);line-height:1.06;letter-spacing:-2.4px;font-weight:700;margin:0 0 28px;max-width:760px}.dek{font-size:25px;line-height:1.42;letter-spacing:-.5px;margin:0 0 37px;max-width:710px}.hero-visual{height:320px;background:linear-gradient(115deg,#c3e0f6,#dbeafa 60%,#d1ddff);border-radius:22px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:26px;color:#1d1d1f;margin-bottom:32px}.hero-grid{position:absolute;inset:0;background-image:linear-gradient(#436fa615 1px,transparent 1px),linear-gradient(90deg,#436fa615 1px,transparent 1px);background-size:36px 36px}.hero-task{position:relative;width:265px;background:#fff;border:1px solid #ffffffcc;box-shadow:0 15px 35px #385b8220;border-radius:17px;padding:18px;transform:rotate(-3deg);z-index:2}.hero-task-heading{display:flex;justify-content:space-between;font-size:14px;font-weight:650;margin-bottom:20px}.hero-date{background:#e9f2ff;border-radius:10px;width:52px;float:left;text-align:center;padding:5px 0;margin-right:12px}.hero-date span{font-size:9px;display:block;letter-spacing:1px;color:#0066cc}.hero-date strong{font-size:25px;line-height:1.2}.hero-task-copy{padding-top:5px;font-size:13px;display:grid;gap:3px}.hero-task-copy span{font-size:11px;color:#6e6e73}.hero-task-button{clear:both;background:#007aff;color:white;border-radius:8px;font-size:12px;font-weight:600;text-align:center;margin-top:21px;padding:8px}.hero-task-input{background:#f5f5f7;color:#6e6e73;font-size:10px;padding:9px;border-radius:8px;margin-top:12px}.hero-audio{position:relative;width:135px;transform:rotate(-6deg);background:#ffffffa8;border:1px solid #fff8;border-radius:21px;text-align:center;padding:28px 12px 20px;font-size:10px}.hero-wave{height:38px;display:flex;align-items:center;justify-content:center;gap:5px;margin-bottom:16px}.hero-wave i{width:3px;height:12px;background:#0066cc;border-radius:4px}.hero-wave i:nth-child(2n){height:26px}.hero-wave i:nth-child(3n){height:36px}.hero-phone{z-index:1;position:relative;width:104px;height:185px;border:3px solid #7594ba;background:#fff;border-radius:20px;transform:rotate(7deg);padding:25px 10px 10px}.hero-phone-notch{position:absolute;width:30px;height:4px;border-radius:5px;background:#7594ba;left:34px;top:8px}.hero-phone-label{font-size:9px;font-weight:650;margin:0 0 14px}.hero-phone-thumb{height:47px;background:linear-gradient(135deg,#bfd0bd,#e9ede4);border-radius:5px;margin-bottom:12px}.hero-phone-line{height:4px;background:#d5d9de;border-radius:3px;margin:6px 0}.hero-phone-line.short{width:65%}.hero-phone-action{height:18px;background:#007aff;border-radius:5px;margin-top:12px}.prose p,.practices p{font-size:17px;line-height:1.65;margin:0 0 18px}.principle{padding:63px 0 26px;border-bottom:1px solid var(--line);scroll-margin-top:16px}.principle h2,.about h2{font-size:36px;line-height:1.15;letter-spacing:-1.1px;margin:0 0 21px;font-weight:680}.section-lead{font-size:21px;line-height:1.45;letter-spacing:-.3px;margin:0 0 23px}.principle h3{font-size:22px;line-height:1.3;letter-spacing:-.4px;margin:34px 0 18px;scroll-margin-top:16px}.practices p{margin-bottom:15px}.practices strong{font-weight:650}.example-figure{margin:24px 0 20px}.live-example{background:#f5f5f7;border-radius:17px;overflow:hidden;padding:28px 22px;color:#1d1d1f;color-scheme:light}.example-figure figcaption{font-size:13px;color:var(--muted);line-height:1.55;margin-top:15px;display:grid;grid-template-columns:24px 1fr;gap:3px 8px}.toc{border-left:1px solid var(--line);padding-left:15px;font-size:12px;top:calc(var(--header-height) + 47px)}.toc-heading{font-size:12px;font-weight:600;line-height:1.5;margin-bottom:12px}.toc a{display:block;padding:5px 0;color:var(--muted);line-height:1.4}.toc a:hover{color:var(--text)}.about{padding:60px 0 64px;scroll-margin-top:16px}.about h2{font-size:28px}.about p{font-size:15px;line-height:1.65;color:var(--muted)}.noscript-note{padding:15px;background:var(--surface);position:fixed;bottom:0}
@media(min-width:1500px){.page-layout{grid-template-columns:218px minmax(0,780px) 190px;gap:45px}}
@media(max-width:1200px){.page-layout{grid-template-columns:190px minmax(0,1fr);gap:35px;padding:0 28px}.toc{display:none}h1{font-size:53px}.global-bar{padding-left:28px;padding-right:28px}}
@media(max-width:860px){:root{--header-height:93px}.page-layout{display:block;padding:0 28px;max-width:820px}.sidebar{display:none}.global-bar{height:47px}.mobile-chapters{display:block;border-bottom:1px solid var(--line);padding:0 28px;background:var(--bg);font-size:13px}.mobile-chapters summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:45px;padding:0;color:var(--muted);cursor:pointer}.mobile-chapters summary::-webkit-details-marker{display:none}.mobile-chapters[open] summary{color:var(--text)}.mobile-chapters nav{display:grid;grid-template-columns:1fr 1fr;padding-bottom:16px;gap:4px 20px;max-height:45vh;overflow:auto}.mobile-chapters nav a{display:flex;gap:9px;padding:8px;color:var(--text);border-radius:6px}.mobile-chapters nav a[aria-current=location]{background:var(--active);color:var(--blue)}main{padding-top:37px}h1{font-size:49px;letter-spacing:-1.9px}.hero-visual{height:310px}}
@media(max-width:520px){body{font-size:16px}.global-bar,.mobile-chapters{padding-left:20px;padding-right:20px}.brand{font-size:16px}.brand-mark{font-size:23px}.page-layout{padding:0 20px}.mobile-chapters nav{grid-template-columns:1fr 1fr;gap:1px 5px;font-size:12px}h1{font-size:40px;letter-spacing:-1.55px;line-height:1.09;margin-bottom:23px}.eyebrow{font-size:10px}.dek{font-size:22px;line-height:1.42;margin-bottom:28px}.hero-visual{height:270px;gap:13px;border-radius:16px}.hero-task{width:208px;padding:15px}.hero-task-heading{font-size:12px}.hero-task-copy{font-size:11px}.hero-task-copy span{font-size:10px}.hero-date{width:43px}.hero-task-button{margin-top:17px}.hero-audio{position:absolute;left:-38px;top:44px;width:109px;padding:18px 8px;transform:rotate(-12deg)}.hero-audio span{font-size:8px}.hero-wave{gap:4px;margin-bottom:10px}.hero-phone{position:absolute;right:-24px;bottom:25px;width:77px;height:143px;border-width:2px;padding:22px 7px 5px}.hero-phone-notch{width:24px;left:24px}.hero-phone-label{font-size:7px;margin-bottom:9px}.hero-phone-thumb{height:35px;margin-bottom:6px}.hero-phone-action{height:14px;margin-top:9px}.prose p,.practices p{font-size:16px;line-height:1.65}.principle{padding-top:49px}.principle h2{font-size:31px;letter-spacing:-.8px}.section-lead{font-size:20px}.principle h3{font-size:21px}.live-example{padding:20px 12px;border-radius:13px}.example-figure figcaption{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
@media print{.site-header,.sidebar,.toc,.live-example{display:none!important}.page-layout{display:block;padding:0}main{padding:0}.principle{padding-top:25px}h2,h3{break-after:avoid}.contrast,.practices p,.rule-grid li,.de-panel{break-inside:avoid}.example-figure,.principle h3[id$="-example"]{display:none}.hero-visual{height:230px}body{color:#1d1d1f;background:white}a{color:inherit}}

/* Bilingual navigation. */
:lang(zh) h1,:lang(zh) h2,:lang(zh) h3{letter-spacing:0}:lang(zh) h1{line-height:1.2}:lang(zh) .dek{letter-spacing:0;line-height:1.55}:lang(zh) .eyebrow{letter-spacing:.6px}:lang(zh) .principle h2{line-height:1.35}:lang(zh) .prose p,:lang(zh) .practices p{line-height:1.8}:lang(zh) .brand{letter-spacing:0}.noscript-note{position:static;margin:20px auto;max-width:780px;border-radius:10px}
@media(max-width:860px){.global-bar{gap:12px}}
@media(max-width:520px){.global-bar{gap:8px}.brand{gap:6px;font-size:14px}.brand-mark{font-size:22px}:lang(zh) h1{font-size:37px}:lang(zh) .dek{font-size:20px}}
:lang(zh) h1{text-wrap:balance;word-break:keep-all}

/* The author's motivation connects reading effort to the working principles. */
.background{margin:36px 0 30px;padding:28px 30px;background:var(--surface);border:1px solid var(--line);border-radius:17px;scroll-margin-top:16px}.background .eyebrow{margin-bottom:11px}.background h2{font-size:28px;font-weight:650;line-height:1.25;letter-spacing:-.5px;margin:0 0 15px}.background-lead{font-size:20px;line-height:1.45;margin:0 0 20px}.background .prose p{font-size:15px;line-height:1.7;margin-bottom:16px}.background-takeaway{font-size:17px;font-weight:600;line-height:1.65;margin:22px 0 0;padding:16px 0 0;border-top:1px solid var(--line)}.background-links{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:19px;font-size:12px;line-height:1.55}.background-links a{padding:4px 0}:lang(zh) .background .prose p{line-height:1.8}

@media(max-width:520px){.background{padding:22px 19px;margin-top:28px;border-radius:14px}.background h2{font-size:24px}.background-lead{font-size:18px}.background .prose p{font-size:14px}.background-takeaway{font-size:15px}.background-links{gap:7px 14px;font-size:11px}}
@media print{.background{break-inside:avoid;background:white}}

/* Header controls stay on one row; narrow screens use a short title and move appearance into the menu. */
.header-settings{display:flex;align-items:center;gap:22px;margin-left:auto;flex-shrink:0}.header-appearance{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);white-space:nowrap}
@media(max-width:860px){.header-settings{gap:16px}}

/* Segmented header controls and navigation metadata. */
.language-switch{font-size:12px;white-space:nowrap}.appearance-switch,.language-switch{display:flex;align-items:center;gap:2px;padding:2px;background:var(--surface);border:1px solid var(--line);border-radius:999px;flex-shrink:0}.appearance-switch button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--muted);line-height:1;flex-shrink:0}.appearance-switch button svg{display:block;width:16px;height:16px;stroke:currentColor}.language-switch a{display:flex;align-items:center;justify-content:center;min-height:30px;padding:4px 9px;border-radius:999px;color:var(--muted);line-height:1.3;text-decoration:none}.appearance-switch button:hover,.language-switch a:hover{background:var(--bg);color:var(--text);text-decoration:none}.appearance-switch button[aria-checked=true],.language-switch a[aria-current=page]{background:var(--bg);color:var(--text);box-shadow:0 1px 3px #00000018,inset 0 0 0 1px var(--line);font-weight:600}.appearance-switch button[aria-checked=true]{color:var(--blue)}.appearance-switch button:focus-visible,.language-switch a:focus-visible{outline-offset:2px}
.menu-meta{display:flex;flex-direction:column;align-items:stretch;flex-shrink:0;gap:12px;margin:auto 10px 0;padding-top:16px;border-top:1px solid var(--line);font-size:12px;line-height:1.5;color:var(--muted)}.menu-top{display:inline-flex;align-items:center;align-self:flex-start;gap:4px;min-height:30px;color:var(--muted)}.menu-top:hover{color:var(--text)}
@media(max-width:860px){.mobile-chapters nav .menu-meta{grid-column:1/-1;flex-direction:column;align-items:stretch;gap:12px;margin:16px 0 0;padding:16px 8px 0}.mobile-chapters nav .menu-top{min-height:32px;padding:4px 0;font-size:12px;color:var(--muted)}.mobile-chapters nav .menu-top:hover{color:var(--text)}}
@media(max-width:640px){.language-switch a{padding:4px 8px}}

/* Keep navigation scrollable above the author profile at the bottom of the sidebar. */
.sidebar-navigation{flex:1 1 auto;min-height:0;padding-bottom:18px;overflow-y:auto;scrollbar-width:thin}.author-profile{display:grid;gap:5px;width:100%;color:var(--text)}.author-label{font-size:10px;font-weight:600;line-height:1.4;letter-spacing:.65px;text-transform:uppercase;color:var(--muted)}.author-name{font-size:14px;font-weight:600;line-height:1.45;color:var(--blue)}.author-name span[aria-hidden]{font-size:12px;font-weight:400;margin-left:4px;color:var(--muted)}.author-bio{font-size:12px;line-height:1.6;color:var(--muted)}.author-work{margin-top:3px;font-size:11px;line-height:1.5;color:var(--muted)}.author-name:hover{text-decoration:underline}.author-name:focus-visible{border-radius:5px}
@media(max-width:860px){.mobile-chapters nav .author-profile{display:grid;width:100%;gap:5px;padding:0;border-radius:0;color:var(--text)}.mobile-chapters nav .author-name{display:inline;padding:0;border-radius:0;color:var(--blue)}.mobile-chapters nav .github-star{display:inline-flex;padding:5px 10px;border-radius:8px}.mobile-chapters nav .menu-meta{padding-bottom:2px}}

/* The full guideline name, with a short title for narrow headers. */
.brand{min-width:0}.brand-mark{flex-shrink:0}.brand-title{display:block;min-width:0;white-space:normal;line-height:1.2}.brand-short{display:none}

.github-star{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:32px;padding:5px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap}
.github-star:hover{background:var(--active);text-decoration:none}.github-star svg{flex-shrink:0}
@media(max-width:860px){.brand{flex:1 1 auto;font-size:15px;gap:8px}.brand-mark{font-size:25px}}
@media(max-width:700px){.brand-title{display:none}.brand-short{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-appearance{display:none}.header-settings{gap:10px}}

/* Mobile contents show where the reader is; the appearance switch lives in the menu on narrow screens. */
.mobile-chapters summary{gap:10px}.mobile-current{margin-left:auto;min-width:0;color:var(--text);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-chevron{flex-shrink:0}.mobile-appearance{display:none}
@media(max-width:700px){.mobile-appearance{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:14px 8px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}}
.toc.is-empty{visibility:hidden}

/* The seven rules, readable in one screen before the detail. */
.rules-title{font-size:22px;line-height:1.3;letter-spacing:-.4px;margin:40px 0 16px;scroll-margin-top:16px}
.rule-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rule-grid li{min-width:0}
.rule-grid a{display:flex;flex-direction:column;gap:8px;height:100%;padding:16px 18px 18px;border:1px solid var(--line);border-radius:14px;color:var(--text);background:var(--bg);transition:border-color .15s,background-color .15s}
.rule-grid a:hover{text-decoration:none;border-color:var(--blue);background:var(--active)}
.rule-meta{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.4;color:var(--muted);font-weight:500}.rule-number{font-variant-numeric:tabular-nums;color:var(--blue);font-weight:650}
.rule-grid strong{font-size:17px;line-height:1.35;font-weight:620;letter-spacing:-.2px}
.rule-devices a{background:var(--surface);border-style:dashed}
.reading-note{font-size:14px;line-height:1.65;color:var(--muted);margin:18px 0 0;padding-left:14px;border-left:2px solid var(--line)}
:lang(zh) .rule-grid strong{letter-spacing:0;line-height:1.5}
@media(max-width:520px){.rules-title{font-size:20px;margin-top:32px}.rule-grid{grid-template-columns:1fr;gap:8px}.rule-grid a{padding:14px 16px}.rule-grid strong{font-size:16px}}

/* Don’t and do: the same moment, handled two ways. The mock-ups stay light, like the live examples. */
.contrast{margin:30px 0 8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;scroll-margin-top:16px}
.contrast-side{display:flex;flex-direction:column;min-width:0}
.contrast-label{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:650;margin-bottom:9px}
.contrast-mark{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:11px;line-height:1;color:#fff}.contrast-dont .contrast-mark{background:#c4372d}.contrast-do .contrast-mark{background:#1f8a4c}
.contrast-stage{flex:1;padding:18px;background:#f5f5f7;border-radius:14px;border-top:3px solid #e9b8b2;color:#1d1d1f;color-scheme:light}.contrast-do .contrast-stage{border-top-color:#a3d4b6}
.contrast-caption{font-size:13px;line-height:1.5;color:var(--muted);margin:10px 0 0}
.mock{display:flex;flex-direction:column;gap:10px;font-size:13px;line-height:1.55}
.mock-bubble{max-width:92%;padding:9px 12px;border-radius:14px;overflow-wrap:anywhere}
.mock-user{align-self:flex-end;background:#0071e3;color:#fff;border-bottom-right-radius:5px}
.mock-assistant{align-self:flex-start;background:#fff;border:1px solid #e3e3e8;border-bottom-left-radius:5px;color:#3a3a40}
.mock-card{display:flex;flex-direction:column;gap:6px;padding:14px 15px;background:#fff;border:1px solid #e3e3e8;border-radius:12px;min-width:0}
.mock-eyebrow{font-size:11px;font-weight:600;color:#6e6e73}
.mock-title{font-size:17px;line-height:1.3;font-weight:650;letter-spacing:-.2px}
.mock-body{margin:0;font-size:13px;color:#55555c}
.mock-quote{margin:2px 0 0;padding:8px 10px;background:#f5f5f7;border-radius:8px;font-size:13px;color:#3a3a40}
.mock-note{margin:4px 0 0;padding:8px 10px;border-radius:8px;background:#fff6e0;color:#5f4500;font-size:12px}
.mock-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.mock-action{display:inline-flex;align-items:center;min-height:30px;padding:5px 11px;border:1px solid #e0e0e5;border-radius:7px;background:#f0f0f4;color:#1d1d1f;font-size:12px;font-weight:500}.mock-primary{background:#0071e3;border-color:#0071e3;color:#fff}
.mock-footer{display:flex;align-items:center;gap:7px;margin-top:8px;padding-top:9px;border-top:1px solid #eeeef1;font-size:11px;color:#6e6e73}.mock-footer i{width:6px;height:6px;border-radius:50%;background:#0071e3}
.mock-days{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:6px 0 2px}
.mock-day{display:flex;flex-direction:column;align-items:center;padding:6px 0;border:1px solid #e6e6eb;border-radius:8px;font-size:15px;line-height:1.3}.mock-day small{font-size:10px;color:#6e6e73}.mock-day b{font-weight:550}

.mock-steps{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:7px;font-size:13px}.mock-steps li{display:flex;align-items:center;gap:8px}
.mock-steps i{display:grid;place-items:center;flex-shrink:0;width:18px;height:18px;border-radius:50%;font-size:10px;font-style:normal;font-weight:700}

.mock-day.is-busy{opacity:.45;text-decoration:line-through}.mock-day.is-selected{border-color:#0071e3;background:#eef5ff;color:#0066cc}.mock-day.is-selected small{color:#0066cc}
.mock-steps .is-done i{background:#e3f4ea;color:#1f8a4c}.mock-steps .is-wait i{background:#fff1cc;color:#7a5600}.mock-steps .is-wait{color:#5f4500}
.mock-stack{display:grid;gap:8px}
.mock-card-mini{flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px}.mock-card-mini .mock-title{font-size:13px}.mock-card-mini .mock-action{flex-shrink:0}

.mock-card-takeover{align-items:center;justify-content:center;min-height:190px;padding:26px 18px 30px;text-align:center;background:#1c1c22;border-color:#1c1c22;color:#f5f5f7}
.mock-card-takeover .mock-eyebrow,.mock-card-takeover .mock-body{color:#a1a1aa}.mock-card-takeover .mock-title{font-size:22px}.mock-takeover-wave{display:flex;color:#7fb6ff;margin-bottom:6px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:640px){.contrast{grid-template-columns:1fr;gap:22px}}
@media print{.contrast-stage{background:white;border:1px solid #ddd}}

/* Simulated examples carry one quiet label and a short list of what to look for. */
.sim-tag{display:inline-block;vertical-align:middle;margin-left:8px;padding:2px 8px;border:1px solid var(--line);border-radius:999px;font-size:11px;font-weight:500;letter-spacing:0;color:var(--muted)}
.example-figure figcaption.notice{display:block;margin-top:16px;font-size:14px;line-height:1.6;color:var(--text)}
.notice-title{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:6px}
.notice ol{margin:0;padding-left:20px;display:grid;gap:4px}.notice li::marker{color:var(--muted)}

/* Device chapter: one guide for six devices instead of a device block in every principle. */
.devices{padding:63px 0 30px;border-bottom:1px solid var(--line);scroll-margin-top:16px}
.devices h2{font-size:36px;line-height:1.15;letter-spacing:-1.1px;margin:0 0 21px;font-weight:680}
.device-matrix{margin-top:8px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);scroll-margin-top:16px}
.device-matrix>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:15px 0;font-size:14px;font-weight:600}
.device-matrix>summary::-webkit-details-marker{display:none}.device-matrix>summary>span{font-size:18px;font-weight:400;line-height:1}.device-matrix[open]>summary>span{transform:rotate(45deg)}
.matrix-scroll{overflow-x:auto;padding-bottom:16px}
.matrix-scroll table{border-collapse:collapse;min-width:960px;font-size:12px;line-height:1.5}
.matrix-scroll th,.matrix-scroll td{text-align:left;vertical-align:top;padding:10px 12px;border-top:1px solid var(--line)}
.matrix-scroll thead th{border-top:0;color:var(--muted);font-weight:600}
.matrix-scroll tbody th{white-space:nowrap;font-weight:600}.matrix-scroll tbody th span{color:var(--blue);margin-right:6px;font-variant-numeric:tabular-nums}
.matrix-scroll td{min-width:140px;color:var(--muted)}
:lang(zh) .devices h2{letter-spacing:0;line-height:1.35}
@media(max-width:520px){.devices{padding-top:49px}.devices h2{font-size:31px;letter-spacing:-.8px}}

.menu-meta .github-star{align-self:flex-start}
