/* 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}}
/* 小猪萌宠 — picture almanac: warm cream page, cocoa ink, rounded photo cards,
   one colour per section (matching each category's article accent). This file
   is pets' single visual source; the skin keeps only the same tokens.
   System fonts only: web fonts are slow or blocked for many readers in China. */
body[data-site=pets][data-design]{
  --paper:light-dark(#fffaf3,#1b1511);--card:light-dark(#fff,#241c16);--soft:light-dark(#fbeedd,#2e241c);
  --ink:light-dark(#2e2118,#f6ece2);--muted:light-dark(#6e5b4b,#c7b4a3);--line:light-dark(#f0e1cc,#3a2e24);
  --accent:light-dark(#b5501a,#ffab73);
  --cat:light-dark(#b4532a,#ff9d70);--dog:light-dark(#3f7a52,#8fd3a3);--exotic:light-dark(#6a4fa3,#c3a8ff);--news:light-dark(#2f6690,#8cc4ef);
  --round:ui-rounded,"SF Pro Rounded","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  background:var(--paper);color:var(--ink);font-family:var(--round)}
[data-site=pets][data-design] [data-section]{--sec:var(--accent)}
[data-site=pets][data-design] [data-section=daily-cat]{--sec:var(--cat)}
[data-site=pets][data-design] [data-section=daily-dog]{--sec:var(--dog)}
[data-site=pets][data-design] [data-section=exotic-pets]{--sec:var(--exotic)}
[data-site=pets][data-design] [data-section=pet-news]{--sec:var(--news)}
[data-site=pets][data-design] a:hover{color:inherit}

/* Header: rounded brand and pill navigation. */
[data-site=pets][data-design] .site-header{min-height:80px;border-bottom:0}
[data-site=pets][data-design] .brand{font:800 24px/1.2 var(--round);letter-spacing:.01em}
[data-site=pets][data-design] .brand .site-logo,[data-site=pets][data-design] .brand .brand-monogram{border-radius:50%}
[data-site=pets][data-design] .site-header nav{gap:6px;font-size:14px}
[data-site=pets][data-design] .site-header nav a{padding:8px 16px;border-radius:999px;font-weight:700}
[data-site=pets][data-design] .site-header nav a:hover{background:var(--soft)}
[data-site=pets][data-design] .site-header nav a[aria-current=page]{background:var(--ink);color:var(--paper);text-decoration:none}
[data-site=pets][data-design] .site-header nav a.github-mark{background:none}

/* Shared pieces. */
[data-site=pets][data-design] .pt-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:color-mix(in srgb,var(--sec) 13%,var(--card));color:var(--sec);font:700 12px/1.2 var(--round);letter-spacing:.02em}
[data-site=pets][data-design] .pt-chip::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--sec)}
[data-site=pets][data-design] .pt-photo{display:block;overflow:hidden;border-radius:10px;background:var(--soft)}
/* Boxes take each picture's own shape (--ar, set by the template from the real
   size) minus the site-name band at the foot of published pictures, so only
   that band is trimmed. */
[data-site=pets][data-design] .pt-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .35s ease}
[data-site=pets][data-design] a:hover .pt-photo img,[data-site=pets][data-design] .pt-daily:hover img{transform:scale(1.04)}

/* Home: greeting and today's cat and dog. */
[data-site=pets][data-design] .pt-hero{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:44px;align-items:center;padding:40px 0 48px}
[data-site=pets][data-design] .pt-kicker{display:inline-block;margin:0 0 20px;padding:7px 14px;border-radius:999px;background:var(--soft);color:var(--accent);font:800 13px/1 var(--round)}
[data-site=pets][data-design] .pt-greeting h1{margin:0 0 18px;font:800 clamp(34px,4.4vw,54px)/1.18 var(--round);letter-spacing:-.01em}
[data-site=pets][data-design] .pt-greeting p:last-child{margin:0;max-width:24em;font-size:17px;line-height:1.85;color:var(--muted)}
[data-site=pets][data-design] .pt-dailies{display:flex;gap:18px;align-items:flex-start}
[data-site=pets][data-design] .pt-daily{position:relative;display:block;flex:var(--ar,1) 1 0;min-width:0;aspect-ratio:var(--ar,1);overflow:hidden;border-radius:14px;background:var(--soft);color:#fff;box-shadow:0 18px 40px -24px rgba(46,33,24,.55)}
[data-site=pets][data-design] .pt-daily:hover{color:#fff;text-decoration:none}
[data-site=pets][data-design] .pt-daily img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .35s ease}
[data-site=pets][data-design] .pt-daily>div{position:absolute;inset:auto 0 0;padding:70px 20px 20px;background:linear-gradient(transparent,rgba(20,12,6,.78))}
[data-site=pets][data-design] .pt-daily .pt-chip{background:light-dark(#fff,#2a2019);color:var(--sec)}
[data-site=pets][data-design] .pt-daily h2{margin:12px 0 6px;font:800 21px/1.4 var(--round);color:#fff}
[data-site=pets][data-design] .pt-daily time{font-size:12px;font-weight:600;text-shadow:0 1px 2px rgba(0,0,0,.5)}

/* Home: sections as coloured cards. */
[data-site=pets][data-design] .pt-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 56px;padding:0;border:0}
[data-site=pets][data-design] .pt-section{display:grid;gap:6px;padding:20px 20px 18px;border-radius:12px;background:color-mix(in srgb,var(--sec) 9%,var(--card));border:1px solid color-mix(in srgb,var(--sec) 22%,transparent);color:inherit;transition:transform .15s ease}
[data-site=pets][data-design] .pt-section:hover{transform:translateY(-3px);text-decoration:none}
[data-site=pets][data-design] .pt-section b{font:800 18px/1.3 var(--round);color:var(--sec)}
[data-site=pets][data-design] .pt-section small{font-size:13px;line-height:1.6;color:var(--muted)}
[data-site=pets][data-design] .pt-section em{font:700 12px/1.4 var(--round);font-style:normal;color:var(--sec)}

/* Home: latest stories and the exotic pets picture index. */
[data-site=pets][data-design] .pt-block{margin:0 0 56px}
[data-site=pets][data-design] .pt-head{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 20px}
[data-site=pets][data-design] .pt-head h2{margin:0;font:800 26px/1.3 var(--round)}
[data-site=pets][data-design] .pt-head a{font-weight:700;color:var(--accent)}
[data-site=pets][data-design] .pt-gallery{display:grid;gap:18px}
[data-site=pets][data-design] .pt-card{position:relative;display:block;flex:var(--ar,1.33) 1 0;min-width:0;aspect-ratio:var(--ar,1.33);overflow:hidden;border-radius:12px;background:color-mix(in srgb,var(--sec,var(--accent)) 14%,var(--soft));color:#fff;box-shadow:0 14px 30px -24px rgba(46,33,24,.6)}
[data-site=pets][data-design] .pt-card:hover{color:#fff;text-decoration:none}
[data-site=pets][data-design] .pt-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .35s ease}
[data-site=pets][data-design] .pt-card:hover>img{transform:scale(1.04)}
[data-site=pets][data-design] .pt-card:not(:has(img))::before{content:"🐾";position:absolute;top:22%;left:50%;transform:translateX(-50%);font-size:44px;opacity:.5}
[data-site=pets][data-design] .pt-mask{position:absolute;inset:auto 0 0;display:grid;justify-items:start;gap:6px;padding:56px 16px 16px;background:linear-gradient(transparent,rgba(20,12,6,.82))}
[data-site=pets][data-design] .pt-mask .pt-chip{background:light-dark(#fff,#2a2019)}
[data-site=pets][data-design] .pt-mask h3{margin:0;font:800 17px/1.4 var(--round);color:#fff;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
[data-site=pets][data-design] .pt-mask p{margin:0;font-size:13px;line-height:1.6;color:rgba(255,255,255,.85);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
[data-site=pets][data-design] .pt-tiles{display:grid;gap:22px}
[data-site=pets][data-design] .pt-row{display:flex;gap:18px;align-items:flex-start}
[data-site=pets][data-design] .pt-pair{display:contents}
[data-site=pets][data-design] .pt-tile{display:grid;gap:10px;justify-items:center;flex:var(--ar,1) 1 0;min-width:0;text-align:center;color:inherit}
[data-site=pets][data-design] .pt-tile:hover{text-decoration:none;color:var(--exotic)}
[data-site=pets][data-design] .pt-tile .pt-photo{width:100%;aspect-ratio:var(--ar,1);border-radius:12px;border:4px solid var(--card);box-shadow:0 0 0 1px var(--line)}
[data-site=pets][data-design] .pt-tile b{font:800 15px/1.4 var(--round)}
[data-site=pets][data-design] .pt-block~.home-directory{display:none}

/* Listing pages: photo cards. */
[data-site=pets][data-design] .content-feed h1,[data-site=pets][data-design] :is(.hero.compact,.ref-title) h1{font:800 40px/1.25 var(--round)}
[data-site=pets][data-design] .feed-layout{display:block}
[data-site=pets][data-design] .feed-sidebar{position:static;margin-bottom:24px}
[data-site=pets][data-design] .feed-filters{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}
[data-site=pets][data-design] .feed-filters a{padding:7px 14px;border-radius:999px;background:var(--soft);font-weight:700;font-size:14px}
[data-site=pets][data-design] .feed-filters a:is(.active,[aria-current]){background:var(--ink);color:var(--paper)}
[data-site=pets][data-design] #feed-search-form{max-width:480px}
[data-site=pets][data-design] #feed-search{border-radius:999px}
/* Note waterfall, after Xiaohongshu: every card is its cover at the picture's
   own shape (less the site-name band at its foot, kept within 3:4 to 4:3), a
   two-line title and a foot row with the section and date. Columns fill top to
   bottom, newest first. Cards without a cover show their summary instead. */
[data-site=pets][data-design] #feed-entries{display:block;columns:4 210px;column-gap:16px}
[data-site=pets][data-design] #feed-entries>.empty{column-span:all}
[data-site=pets][data-design] .feed-entry{display:flex;flex-direction:column;gap:8px;break-inside:avoid;margin:0 0 16px;padding:0 0 12px;border:0;border-radius:10px;overflow:hidden;background:var(--card);box-shadow:0 1px 0 var(--line),0 14px 30px -26px rgba(46,33,24,.6);transition:transform .2s ease,box-shadow .2s ease}
[data-site=pets][data-design] .feed-entry:hover{transform:translateY(-2px);box-shadow:0 1px 0 var(--line),0 18px 34px -24px rgba(46,33,24,.7)}
[data-site=pets][data-design] .feed-entry>:not(.feed-cover){margin-left:12px;margin-right:12px}
[data-site=pets][data-design] .feed-entry:not(:has(.feed-cover:not(.feed-cover-text))){padding-top:16px;background:color-mix(in srgb,var(--accent) 8%,var(--card))}
/* A work without a picture keeps pets' summary card rather than the shared text cover. */
[data-site=pets][data-design] .feed-cover.feed-cover-text{display:none}
[data-site=pets][data-design] .feed-cover{display:block;overflow:hidden;aspect-ratio:clamp(.75,var(--ar,1.3333),1.5);background:var(--soft)}
[data-site=pets][data-design] .feed-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 35%;transition:transform .35s ease}
[data-site=pets][data-design] .feed-entry:hover .feed-cover img{transform:scale(1.03)}
[data-site=pets][data-design] .feed-entry h2{order:1;margin:2px 12px 0;font:700 15px/1.5 var(--round);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
[data-site=pets][data-design] .feed-entry h2 a{color:inherit}
[data-site=pets][data-design] .feed-entry h2 a::after{content:"";position:absolute;inset:0}
[data-site=pets][data-design] .feed-entry{position:relative}
[data-site=pets][data-design] .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-site=pets][data-design] .feed-entry:has(.feed-cover:not(.feed-cover-text)) p{display:none}
[data-site=pets][data-design] .feed-entry .entry-meta{order:3;display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:2px;font:600 12px/1.4 var(--round);color:var(--muted)}
[data-site=pets][data-design] .feed-entry .entry-meta span{display:inline-flex;align-items:center;gap:6px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--sec,var(--accent))}
[data-site=pets][data-design] .feed-entry .entry-meta span::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:currentColor}
/* The blog theme sets list dates in small muted monospace; on these cards the date takes the card's own colour and type. */
[data-site=pets][data-design] .feed-entry .entry-meta time{flex:none;font:500 12px/1.4 var(--round);color:inherit}
/* A card with a cover is the cover itself: a shadow rises from its foot and the title, section and date float
   on it in white, as on the home page. The whole card stays one link. */
[data-site=pets][data-design] .feed-entry:has(.feed-cover:not(.feed-cover-text)){display:grid;grid-template-rows:1fr auto auto;gap:0;padding:0;color:#fff}
[data-site=pets][data-design] .feed-entry:has(.feed-cover:not(.feed-cover-text))>.feed-cover{grid-area:1/1/4/2;position:relative}
[data-site=pets][data-design] .feed-entry:has(.feed-cover:not(.feed-cover-text))>.feed-cover::after{content:"";position:absolute;inset:auto 0 0;height:max(64%,128px);background:linear-gradient(to top,rgba(20,12,6,.88),rgba(20,12,6,.62) 42%,rgba(20,12,6,0));pointer-events:none}
/* A soft shade in the corner keeps the type icon visible on light pictures. */
[data-site=pets][data-design] .feed-entry:has(.feed-type)>.feed-cover::before{content:"";position:absolute;top:0;right:0;z-index:1;width:72px;height:72px;background:radial-gradient(circle at top right,rgba(20,12,6,.5),rgba(20,12,6,0) 70%);pointer-events:none}
[data-site=pets][data-design] .feed-entry:has(.feed-cover:not(.feed-cover-text))>h2{grid-area:2/1/3/2;z-index:1;margin:0 12px 6px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.55)}
[data-site=pets][data-design] .feed-entry:has(.feed-cover:not(.feed-cover-text))>.entry-meta{grid-area:3/1/4/2;z-index:1;margin:0 12px 12px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.6)}
[data-site=pets][data-design] .feed-entry:has(.feed-cover:not(.feed-cover-text)) .entry-meta time{font-weight:600;font-variant-numeric:tabular-nums}
[data-site=pets][data-design] .feed-entry:has(.feed-cover:not(.feed-cover-text)) .entry-meta span{color:#fff}
[data-site=pets][data-design] .feed-entry:has(.feed-cover:not(.feed-cover-text)) .entry-meta span::before{background:var(--sec,var(--accent));box-shadow:0 0 0 1.5px rgba(255,255,255,.9)}
/* Article or note: a small picture floating on the cover's corner; on a card without a cover, above the title. */
[data-site=pets][data-design] .feed-type{position:absolute;top:10px;right:10px;z-index:2;color:#fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
[data-site=pets][data-design] .feed-type svg{width:20px;height:20px}
[data-site=pets][data-design] .feed-type[data-type=article]{opacity:1}
[data-site=pets][data-design] .feed-entry:not(:has(.feed-cover:not(.feed-cover-text))) .feed-type{position:static;align-self:flex-start;margin:0 12px;color:var(--sec,var(--accent));filter:none}

/* Article pages: the category template keeps its accent; paper and ink follow the site. */
body[data-site=pets][data-design]:has(.rssd-article),body[data-site=pets][data-design] article.rssd-article.rssd-article{--read-paper:var(--card);--read-canvas:var(--paper);--read-ink:var(--ink);--read-muted:var(--muted);--read-line:var(--line)}
[data-site=pets][data-design] .rssd-article{border-radius:14px}
[data-site=pets][data-design] .rssd-article-heading h1{font-family:var(--round);font-weight:800}
[data-site=pets][data-design] .rssd-article .article-body img{border-radius:10px}

/* #tags under an article: the section first, then the tags bound to the work, then its own. */
[data-site=pets][data-design] .rssd-tags{display:flex;flex-wrap:wrap;gap:6px 14px;margin:6px 0 30px;padding-top:18px;border-top:1px dashed var(--line);font:700 15px/1.6 var(--round)}
[data-site=pets][data-design] .rssd-tags :is(a,span){color:var(--sec,var(--accent));text-decoration:none}
[data-site=pets][data-design] .rssd-tags a:hover{text-decoration:underline;text-underline-offset:4px}

[data-site=pets][data-design] footer{border-top:1px solid var(--line)}

@media(max-width:900px){
  [data-site=pets][data-design] .pt-hero{grid-template-columns:1fr;gap:28px;padding:24px 0 36px}
  [data-site=pets][data-design] .pt-sections{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  [data-site=pets][data-design] .site-header nav a{padding:6px 11px}
  [data-site=pets][data-design] .pt-dailies{gap:12px}
  [data-site=pets][data-design] .pt-daily{border-radius:12px}
  [data-site=pets][data-design] .pt-daily>div{padding:50px 14px 14px}
  [data-site=pets][data-design] .pt-daily h2{font-size:16px}
  [data-site=pets][data-design] .pt-sections{gap:10px;margin-bottom:40px}
  [data-site=pets][data-design] .pt-section{padding:16px}
  [data-site=pets][data-design] .pt-section small{display:none}
  [data-site=pets][data-design] #feed-entries{columns:2;column-gap:10px}
  [data-site=pets][data-design] .feed-entry{margin-bottom:10px;border-radius:8px;gap:6px;padding-bottom:10px}
  [data-site=pets][data-design] .feed-entry>:not(.feed-cover){margin-left:9px;margin-right:9px}
  [data-site=pets][data-design] .feed-entry h2{margin:0 9px;font-size:14px}
  [data-site=pets][data-design] .feed-entry:has(.feed-cover:not(.feed-cover-text))>h2{margin:0 10px 4px}
  [data-site=pets][data-design] .feed-entry:has(.feed-cover:not(.feed-cover-text))>.entry-meta{margin:0 10px 10px}
  [data-site=pets][data-design] .feed-type{top:8px;right:8px}
  [data-site=pets][data-design] .pt-gallery .pt-row{flex-direction:column}
  [data-site=pets][data-design] .pt-card{flex:none;width:100%}
  [data-site=pets][data-design] .pt-dailies{gap:12px}
  [data-site=pets][data-design] .pt-row{display:grid;gap:22px}
  [data-site=pets][data-design] .pt-pair{display:flex;gap:14px;align-items:flex-start}
  [data-site=pets][data-design] .pt-dailies{flex-direction:column;align-items:stretch}
  [data-site=pets][data-design] .pt-daily{flex:none;width:100%}
  [data-site=pets][data-design] .content-feed h1{font-size:30px}
}
@media(prefers-reduced-motion:reduce){[data-site=pets][data-design] :is(.pt-photo img,.pt-daily img,.pt-section,.feed-entry,.feed-cover img){transition:none}}
