/* 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}}
/* 智能学堂 — Hugging Face Learn course shelves and roadmap.sh entry points, with pill-shaped topic links.
   This file is study's single visual source; skins/study.css keeps only the same
   tokens. System fonts only: web fonts are slow or blocked for many readers in China. */
body[data-site=study][data-design]{--paper:light-dark(#fff,#161a23);--ink:light-dark(#20232c,#e7eaf3);--accent:light-dark(#34548a,#a4c2ef);--soft:light-dark(#f0f2f7,#252b3c);--line:light-dark(#e0e4ec,#3b445a);--muted:light-dark(#58627a,#b0bad0);--card:light-dark(#fff,#1d2418);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=study] .brand .brand-monogram,[data-site=study] .brand .site-logo{border-radius:9px}
[data-site=study] h1{font-weight:900}
[data-site=study] .eyebrow{font-weight:700}
[data-site=study] .home-directory{margin-bottom:28px}
[data-site=study] .home-directory h2,[data-site=study] .directory-note{display:none}
[data-site=study] .home-directory nav a{min-height:0;padding:8px 16px;border:1px solid transparent;border-radius:999px;font-weight:600}
/* Each topic pill has a light and a dark colour; the light pastels alone glared on the dark page. */
[data-site=study] .home-directory nav a:nth-child(4n+1){background:light-dark(#e6eed9,#24301a);color:light-dark(#35501d,#cfe3b5);border-color:light-dark(#d3e1bf,#3a4c2d)}
[data-site=study] .home-directory nav a:nth-child(4n+2){background:light-dark(#dde9f3,#182838);color:light-dark(#1f4a6b,#bcd6ee);border-color:light-dark(#c5dbe9,#2c4259)}
[data-site=study] .home-directory nav a:nth-child(4n+3){background:light-dark(#f6ead0,#33280f);color:light-dark(#6b4a0e,#f0d9a6);border-color:light-dark(#ebd7a8,#4d3c1a)}
[data-site=study] .home-directory nav a:nth-child(4n){background:light-dark(#e6e2f3,#27223d);color:light-dark(#4a3a7a,#d6cdf3);border-color:light-dark(#d4cdea,#3d355a)}
[data-site=study] .home-directory nav small{margin-left:8px;color:inherit;opacity:.75}
[data-site=study] .entries{display:grid;gap:16px;align-items:start}
[data-site=study] .entry{padding:22px;border-radius:14px}
[data-site=study] .entry:hover{border-color:var(--accent);transform:none}
@media(max-width:700px){[data-site=study] .entries{grid-template-columns:1fr}}
[data-site=study][data-design] .learn-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}
[data-site=study][data-design] .learn-course{position:relative;min-height:285px;border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;align-items:flex-end;background:var(--soft)}
[data-site=study][data-design] .learn-course>.ref-cover{position:absolute;right:0;top:0;width:52%;height:100%;object-fit:cover;opacity:.5}
[data-site=study][data-design] .learn-course>div{position:relative;padding:32px 26px;width:75%;background:linear-gradient(90deg,var(--soft) 75%,transparent)}
[data-site=study][data-design] .learn-course h2{font-size:25px;margin:0 0 12px}
[data-site=study][data-design] .learn-course p{font-size:14px;line-height:1.8;color:var(--muted);max-width:290px}
[data-site=study][data-design] .learn-course small{font-size:12px;color:var(--accent)}
[data-site=study][data-design] .course-1{--soft:light-dark(#f9f0d8,#373121)}
[data-site=study][data-design] .course-2{--soft:light-dark(#e8edf9,#252f45)}
[data-site=study][data-design] .course-3{--soft:light-dark(#eee7f8,#332840)}
[data-site=study][data-design] .ref-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}
/* Waterfall listing (shared.css): this site's cards. */
[data-site=study][data-design] .content-feed{--wf-radius:9px}
[data-site=study][data-design] .ref-card{border:1px solid var(--line);border-radius:9px;overflow:hidden;padding:0 0 22px}
[data-site=study][data-design] .ref-copy{padding:20px}
[data-site=study][data-design] .feed-layout{display:block}
[data-site=study][data-design] .feed-sidebar{position:static;margin-bottom:22px}
[data-site=study][data-design] .feed-filters{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}
[data-site=study][data-design] #feed-search-form{max-width:560px}
@media(max-width:650px){[data-site=study][data-design] .learn-grid,[data-site=study][data-design] .ref-grid{grid-template-columns:1fr}[data-site=study][data-design] .learn-course{min-height:245px}}
