/* Codex reference edition, 2026-10-28. Only generated content pages opt in. */
body[data-design=reference-v1]{background:var(--paper);color:var(--ink);--ref-serif:"Songti SC",STSong,SimSun,Georgia,serif}
[data-design] :is(.site-header,main,footer){box-sizing:border-box;max-width:1200px;width:calc(100% - 80px);padding-left:0;padding-right:0}
[data-design] .site-header{min-height:86px;gap:24px;border-bottom:1px solid var(--line)}
[data-design] .site-header nav{gap:22px;font-size:14px}
[data-design] .brand{font-size:23px;letter-spacing:0}
[data-design] .brand small{font-size:10px}
[data-design] .hero.compact,[data-design] .ref-title{max-width:none;padding:44px 0 28px}
[data-design] .hero.compact h1,[data-design] .ref-title h1{font-size:36px;line-height:1.35;letter-spacing:-.025em}
[data-design] .hero.compact>p,[data-design] .ref-title>p{font-size:15px;color:var(--muted);max-width:760px}
[data-design] .ref-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 26px}
[data-design] .ref-card{min-width:0;border-bottom:1px solid var(--line);padding-bottom:22px}
[data-design] .ref-card h2{font-size:23px;line-height:1.45;margin:12px 0}
[data-design] .ref-card p{font-size:14px;line-height:1.85;color:var(--muted)}
[data-design] .ref-cover{display:block;width:100%;height:220px;object-fit:cover;background:var(--soft)}
[data-design] .ref-copy{padding-top:16px}
[data-design] .ref-entry{padding:26px 0;border-bottom:1px solid var(--line)}
[data-design] .ref-entry h2{font-size:25px;line-height:1.5;margin:10px 0}
[data-design] .ref-entry p{font-size:15px;color:var(--muted);line-height:1.9}
[data-design] .ref-button{display:inline-flex;align-items:center;padding:12px 26px;background:var(--accent);color:var(--paper);border-radius:6px;font-size:15px}
[data-design] .ref-topics{display:flex;flex-wrap:wrap;gap:12px 24px;padding:22px 0;font-size:14px}
[data-design] .ref-topics small{font-size:11px;color:var(--muted);margin-left:7px}
[data-design] .home-directory{position:static;margin-top:40px;max-width:none;padding:22px 0;border-top:1px solid var(--line)}
[data-design] .home-directory nav{display:flex;flex-wrap:wrap;gap:18px;border:0}
[data-design] .home-directory nav a{border:0;gap:10px;padding:8px 0;font-size:14px}
[data-design] .home-directory .directory-note{max-width:660px;font-size:12px}
[data-design] .feed-layout{display:grid;grid-template-columns:215px minmax(0,1fr);gap:44px}
[data-design] .feed-sidebar{position:sticky;top:22px;align-self:start}
[data-design] .feed-results{min-width:0}
[data-design] .feed-search-control{display:flex;gap:6px}
[data-design] #feed-search{min-width:0;width:100%}
[data-design] .feed-entry{padding:24px 0;border-bottom:1px solid var(--line);min-width:0}
[data-design] .feed-entry h2{font-size:24px;line-height:1.5;margin:12px 0}
[data-design] .feed-entry p{color:var(--muted);font-size:15px;line-height:1.85}
[data-design] .feed-cover{display:none}
[data-design] .feed-cover img{display:block;width:100%;height:210px;object-fit:cover;background:var(--soft)}
[data-design] :is(.feed-pagination,.pagination){margin:36px 0;gap:12px;flex-wrap:wrap}
[data-design] .reading{max-width:760px;margin:50px auto}
[data-design] .reading-layout{display:grid;grid-template-columns:minmax(0,760px) 190px;gap:50px;justify-content:center}
[data-design] .reading-layout .reading{width:100%;min-width:0}
[data-design] .prose{font-size:18px;line-height:1.95}
[data-design] .prose h1{font-size:38px;line-height:1.4;letter-spacing:-.025em}
[data-design] .reading-aside{min-width:0}
[data-design] .showcase-card,[data-design] .showcase-copy{min-width:0}
[data-design] :is(h1,h2,h3,p){overflow-wrap:anywhere}
[data-design] [hidden]{display:none!important}
@media(max-width:850px){[data-design] :is(.site-header,main,footer){width:calc(100% - 40px)}[data-design] .ref-grid{grid-template-columns:repeat(2,minmax(0,1fr))}[data-design] .reading-layout{display:block}[data-design] .feed-layout{grid-template-columns:180px minmax(0,1fr);gap:24px}}
@media(max-width:650px){[data-design] :is(.site-header,main,footer){width:calc(100% - 36px)}[data-design] .site-header{padding:18px 0;min-height:0}[data-design] .site-header nav{gap:10px 18px;font-size:13px}[data-design] .ref-grid{grid-template-columns:1fr}[data-design] .hero.compact h1,[data-design] .ref-title h1{font-size:29px}[data-design] .feed-layout{grid-template-columns:1fr;gap:22px}[data-design] .feed-sidebar{position:static}[data-design] .feed-filters{display:flex;flex-wrap:wrap;gap:8px}[data-design] .feed-filters a{padding:6px 10px;font-size:12px}[data-design] .feed-entry h2{font-size:22px}[data-design] .reading{margin:30px auto}[data-design] .prose h1{font-size:29px}[data-design] .prose{font-size:17px}[data-design] .ref-entry h2{font-size:22px}[data-design] footer{margin-top:55px}}
/* Listings come in three layouts, chosen per site and section (blog-presets.mjs, `feed`):
   - waterfall: columns of cards, after Xiaohongshu;
   - list: rows of text with a small picture, for content read by title and date;
   - mixed: a row of four cards (the newest works) above the rows.
   In rows, notes stay cards: a run of notes forms a row of its own (.feed-notes).
   A card is its cover at the picture's own shape (within 3:4 to 3:2), then the title, then the section and date;
   the article or note mark sits on the cover's corner and the whole card is one link. A work's cover is the first
   card of its card set, else its first picture, else a text cover in its section's card colours (.feed-cover-text).
   Sites set the look through these variables and their own fonts: --wf-radius, --wf-fit (cover or contain),
   --wf-title (font), --wf-meta (font), --wf-col (narrowest column), --wf-thumb (picture width in a row).
   pets keeps its own cards. */
[data-design]:where(:not([data-site=pets])) .content-feed{--wf-gap:16px}
[data-design]:where(:not([data-site=pets])) [data-feed-layout=waterfall] #feed-entries{display:block;columns:4 var(--wf-col,210px);column-gap:var(--wf-gap)}
[data-design]:where(:not([data-site=pets])) [data-feed-layout=waterfall] #feed-entries>.empty{column-span:all}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) #feed-entries{display:block;columns:auto}
[data-design]:where(:not([data-site=pets])) .feed-lead{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--wf-gap);align-items:start;padding:0 0 22px;border-bottom:1px solid var(--line)}
[data-design]:where(:not([data-site=pets])) .feed-notes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;align-items:start;padding:18px 0;border-bottom:1px solid var(--line)}
[data-design]:where(:not([data-site=pets])) :is(.feed-lead,.feed-notes) .feed-cover{aspect-ratio:3/4}
/* Cards */
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry){position:relative;display:flex;flex-direction:column;gap:8px;break-inside:avoid;margin:0 0 var(--wf-gap);padding:0 0 12px;border:1px solid var(--line);border-radius:var(--wf-radius,8px);overflow:hidden;background:var(--card,var(--paper))}
[data-design]:where(:not([data-site=pets])) :is(.feed-lead,.feed-notes)>.feed-entry{margin:0}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry)>:not(.feed-cover,.feed-type){margin-left:12px;margin-right:12px}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry):not(:has(.feed-cover)){padding-top:14px;background:color-mix(in srgb,var(--accent) 7%,var(--card,var(--paper)))}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) .feed-cover{display:block;overflow:hidden;aspect-ratio:clamp(.75,var(--ar,1.3333),1.5);background:var(--soft)}
[data-design]:where(:not([data-site=pets])) :is(.feed-lead,.feed-notes)>.feed-entry .feed-cover{aspect-ratio:3/4}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) .feed-cover img{display:block;width:100%;height:100%;object-fit:var(--wf-fit,cover);object-position:50% 35%;background:var(--soft)}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) h2{order:1;margin:2px 0 0;font-weight:600;font-size:15px;line-height:1.5;font-family:var(--wf-title,inherit);letter-spacing:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) h2 a{color:inherit;text-decoration:none}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) h2 a::after{content:"";position:absolute;inset:0}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) h2 a:focus-visible{outline:none}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry):has(h2 a:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) p{order:2;margin:0;font-size:13px;line-height:1.7;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry):has(.feed-cover) p{display:none}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) .entry-meta{order:3;display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:0;font-weight:500;font-size:12px;line-height:1.4;font-family:var(--wf-meta,inherit);letter-spacing:0;color:var(--muted)}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) .entry-meta span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--accent)}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) .entry-meta time{flex:none;font-variant-numeric:tabular-nums}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) .feed-type{position:absolute;top:8px;right:8px;z-index:1;width:28px;height:28px;border-radius:50%;color:var(--ink);background:color-mix(in srgb,var(--card,var(--paper)) 88%,transparent);opacity:1}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry):not(:has(.feed-cover)) .feed-type{position:static;order:0;align-self:flex-end;margin:-6px 0 -4px;background:none}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry):has(.feed-cover){transition:box-shadow .2s ease}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry):hover{box-shadow:0 10px 26px -18px color-mix(in srgb,var(--ink) 60%,transparent)}
/* The text cover: a work without a picture, as the algorithmic card layout opens its first card. */
[data-design]:where(:not([data-site=pets])) .feed-cover.feed-cover-text{display:flex;flex-direction:column;justify-content:space-between;gap:12px;aspect-ratio:3/4;padding:16px 14px 18px;box-sizing:border-box;text-decoration:none;background:var(--tc-paper,var(--soft));color:var(--tc-ink,var(--ink));border-top:4px solid var(--tc-accent,var(--accent))}
/* On a card the text cover keeps its card colours in both modes: the card's picture background must not replace them. */
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) .feed-cover.feed-cover-text{background:var(--tc-paper,var(--soft));color:var(--tc-ink,var(--ink))}
[data-design]:where(:not([data-site=pets])) .feed-cover-text span{font-weight:600;font-size:11px;line-height:1.4;font-family:var(--wf-meta,inherit);letter-spacing:.08em;color:color-mix(in srgb,var(--tc-accent,var(--accent)) 78%,var(--tc-ink,var(--ink)))}
[data-design]:where(:not([data-site=pets])) .feed-cover-text strong{font-weight:700;font-size:17px;line-height:1.45;font-family:var(--wf-title,inherit);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}
/* Rows */
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry{position:relative;display:grid;grid-template-columns:minmax(0,1fr) var(--wf-thumb,132px);grid-template-areas:"meta cover" "title cover" "text cover";column-gap:24px;align-items:start;margin:0;padding:20px 0;border:0;border-bottom:1px solid var(--line);background:none;break-inside:auto}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry:not(:has(.feed-cover:not(.feed-cover-text))){grid-template-columns:minmax(0,1fr)}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry .feed-cover{grid-area:cover;display:block;overflow:hidden;aspect-ratio:4/3;border-radius:var(--wf-radius,6px);background:var(--soft)}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry .feed-cover img{display:block;width:100%;height:100%;object-fit:var(--wf-fit,cover);background:var(--soft)}
/* In a row a work without a picture shows no cover: its title is already the row. */
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry .feed-cover-text{display:none}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry .entry-meta{grid-area:meta;display:flex;gap:12px;font-weight:500;font-size:12px;line-height:1.6;font-family:var(--wf-meta,inherit);color:var(--muted)}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry .entry-meta span{color:var(--accent)}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry .feed-type{grid-area:meta;justify-self:end;width:22px;height:22px}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry h2{grid-area:title;margin:6px 0 6px;font-weight:700;font-size:19px;line-height:1.5;font-family:var(--wf-title,inherit)}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry h2 a{color:inherit;text-decoration:none}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry h2 a:hover{color:var(--accent)}
[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry p{grid-area:text;margin:0;font-size:14px;line-height:1.8;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(max-width:650px){[data-design]:where(:not([data-site=pets])) .content-feed{--wf-gap:10px}[data-design]:where(:not([data-site=pets])) [data-feed-layout=waterfall] #feed-entries{columns:2}[data-design]:where(:not([data-site=pets])) .feed-lead{grid-template-columns:repeat(2,minmax(0,1fr))}[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry) h2{font-size:14px}[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry)>:not(.feed-cover,.feed-type){margin-left:10px;margin-right:10px}[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry{--wf-thumb:96px;column-gap:14px;padding:16px 0}[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=list],[data-feed-layout=mixed]) .feed-results>div>.feed-entry h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){[data-design]:where(:not([data-site=pets])) :is([data-feed-layout=waterfall] .feed-entry,.feed-lead>.feed-entry,.feed-notes>.feed-entry){transition:none}}
/* 犀术 IME — Sogou Mac product hierarchy with Starlight documentation navigation: blue on white, mono labels, keycap links.
   This file is xsime's single visual source; skins/xsime.css keeps only the same
   tokens. System fonts only: web fonts are slow or blocked for many readers in China. */
body[data-site=xsime][data-design]{--paper:light-dark(#fff,#121923);--ink:light-dark(#19334e,#e1ecf8);--accent:light-dark(#2369b5,#9ac8ff);--soft:light-dark(#eff6ff,#202d40);--line:light-dark(#dbe4ef,#35445a);--muted:light-dark(#5d7186,#adbed3);--card:light-dark(#fff,#131b17);--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-family:system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif}
/* Rules that came from the skin, at its specificity, so the reference rules below still win. */
[data-site=xsime] .site-header{border-color:var(--line)}
[data-site=xsime] .brand .brand-monogram,[data-site=xsime] .brand .site-logo{border-radius:7px;border-bottom:3px solid color-mix(in srgb,var(--accent) 60%,#000)}
[data-site=xsime] .eyebrow{font-family:var(--mono);letter-spacing:.1em}
[data-site=xsime] h1{font-weight:900;letter-spacing:-.02em}
[data-site=xsime] .hero-links a{font-family:var(--mono);font-size:12px;padding:6px 12px;border:1px solid var(--line);border-bottom-width:3px;border-radius:7px}
[data-site=xsime] .hero-links a:hover{border-color:var(--accent)}
[data-site=xsime] .entry{padding:22px;margin-bottom:12px;border-radius:12px}
[data-site=xsime] .entry:hover{border-color:var(--accent);transform:none}
[data-site=xsime] .entry-meta{font-family:var(--mono)}
[data-site=xsime] .read{font-family:var(--mono);padding:3px 10px;border:1px solid var(--line);border-bottom-width:3px;border-radius:6px}
[data-site=xsime] .home-directory nav a{font-family:var(--mono)}
[data-site=xsime] .toc li a:hover{color:var(--accent)}
[data-site=xsime][data-design] .ime-product-hero{background:var(--soft);margin:0 calc((min(1200px,100vw - 80px) - 100vw)/2);padding:45px max(40px,calc((100vw - 1120px)/2)) 30px;text-align:center}
[data-site=xsime][data-design] .ime-product-hero h1{font-size:54px;line-height:1.3;margin:18px 0}
[data-site=xsime][data-design] .ime-product-hero>p{color:var(--muted)}
[data-site=xsime][data-design] .ime-actions{display:flex;justify-content:center;align-items:center;gap:28px;margin:24px 0 36px;font-size:14px}
[data-site=xsime][data-design] .ime-device-stage{display:flex;justify-content:center;align-items:center;gap:26px;text-align:left}
[data-site=xsime][data-design] .ime-device-stage figure{width:190px;margin:0}
[data-site=xsime][data-design] .ime-device-stage img{display:block;width:100%;height:auto;border-radius:24px;border:5px solid light-dark(#fff,#35445a);box-shadow:0 15px 35px #15335b19}
[data-site=xsime][data-design] .ime-device-stage figcaption{text-align:center;font-size:12px;color:var(--muted);margin-top:10px}
[data-site=xsime][data-design] .ime-device-stage>div{max-width:235px;margin-left:22px}
[data-site=xsime][data-design] .ime-device-stage h2{font-size:22px}
[data-site=xsime][data-design] .ime-device-stage p{font-size:14px;color:var(--muted)}
[data-site=xsime][data-design] .feed-sidebar{background:var(--soft);padding:20px}
/* Waterfall listing (shared.css): this site's cards. */
[data-site=xsime][data-design] .content-feed{--wf-radius:12px;--wf-meta:var(--mono)}
@media(max-width:850px){[data-site=xsime][data-design] .ime-product-hero{margin:0 -20px;padding:35px 20px}}
@media(max-width:650px){[data-site=xsime][data-design] .ime-product-hero{margin:0 -18px}[data-site=xsime][data-design] .ime-product-hero h1{font-size:39px}[data-site=xsime][data-design] .ime-device-stage{flex-wrap:wrap;gap:16px}[data-site=xsime][data-design] .ime-device-stage figure{width:42%;max-width:185px}[data-site=xsime][data-design] .ime-device-stage>div{text-align:center;margin:0;max-width:100%}[data-site=xsime][data-design] .ime-device-stage>div p{display:none}}
