/* Shared dark directory; color tokens match the current black public footer. */
html[data-guide-theme=dark] { color-scheme:dark; --bg:#0b0b0c; --ink:#f4f4f5; --fg:#f4f4f5; --text:#f4f4f5; --muted:#b6b6bd; --line:#29292d; --surface:#17171a; background:var(--bg); color:var(--ink); }
html[data-guide-theme=dark] body { background:var(--bg); color:var(--ink); }
html[data-guide-theme=dark] .guide-directory h1,html[data-guide-theme=dark] .guide-group>h2,html[data-guide-theme=dark] .guide-row-action { color:var(--ink); }
.guide-directory { --guide-ink:var(--ink,#171719); --guide-muted:var(--muted,#66666b); --guide-line:var(--line,#e4e4e7); }
.guide-directory .resource-intro { margin-bottom:30px; }
.guide-directory .resource-intro h1 { margin-bottom:0; }
.guide-category-nav { display:flex; flex-wrap:wrap; gap:14px 32px; padding:0 0 24px; border-bottom:1px solid var(--guide-line); font-size:15px; color:var(--guide-ink); }
.guide-category-nav a { text-decoration:none; text-underline-offset:7px; }
.guide-category-nav a:hover,.guide-category-nav a:focus-visible { text-decoration:underline; }
.guide-group { scroll-margin-top:110px; margin-top:48px; }
.guide-directory .guide-group>h2 { margin:0 0 20px; font-size:21px; line-height:1.3; font-weight:600; letter-spacing:-.02em; }
.guide-row { display:grid; grid-template-columns:210px minmax(0,1fr) 92px; gap:28px; align-items:center; min-width:0; padding:28px 0; border-bottom:1px solid var(--guide-line); text-decoration:none; color:var(--guide-ink); }
.guide-row:first-child { border-top:1px solid var(--guide-line); }
.guide-thumbnail { display:block; width:210px; aspect-ratio:3 / 2; overflow:hidden; border-radius:7px; background:var(--surface,#17171a); }
.guide-thumbnail img { display:block; width:100%; height:100%; object-fit:cover; object-position:var(--guide-image-position,50% 50%); }
.guide-row-copy { min-width:0; }
.guide-directory .guide-row h3 { margin:0; font-size:23px; font-weight:600; line-height:1.3; letter-spacing:-.025em; color:var(--guide-ink); }
.guide-directory .guide-row p { margin:12px 0 0; font-size:15px; line-height:1.65; color:var(--guide-muted); }
.guide-row-action { justify-self:end; font-size:13px; white-space:nowrap; }
.guide-row:hover h3,.guide-row:focus-visible h3 { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:5px; }
.guide-row:focus-visible,.guide-category-nav a:focus-visible { outline:2px solid currentColor; outline-offset:5px; }
html[lang=zh-CN] .guide-row h3 { font-size:22px; line-height:1.5; letter-spacing:-.02em; }
html[lang=zh-CN] .guide-row p { line-height:1.8; }
@media(max-width:760px) {
 .guide-group { scroll-margin-top:200px; }
 .guide-row { grid-template-columns:160px minmax(0,1fr); gap:10px 22px; }
 .guide-thumbnail { width:160px; grid-row:1 / 3; }
 .guide-row-copy { grid-column:2; }
 .guide-row-action { grid-column:2; justify-self:start; }
 .guide-directory .guide-row h3 { font-size:20px; }
 .guide-directory .guide-row p { font-size:14px; }
}
@media(max-width:600px) {
 .guide-directory .resource-intro { margin-bottom:24px; }
 .guide-category-nav { gap:12px 26px; font-size:14px; padding-bottom:22px; }
 .guide-group { margin-top:36px; }
 .guide-directory .guide-group>h2 { font-size:19px; margin-bottom:18px; }
 .guide-row { grid-template-columns:96px minmax(0,1fr); gap:8px 18px; padding:24px 0; align-items:start; }
 .guide-thumbnail { width:96px; }
 .guide-directory .guide-row h3,html[lang=zh-CN] .guide-directory .guide-row h3 { font-size:17px; line-height:1.45; letter-spacing:-.015em; }
 .guide-directory .guide-row p { display:none; }
 .guide-row-action { font-size:12px; }
}
@media(max-width:350px) {
 .guide-row { grid-template-columns:80px minmax(0,1fr); column-gap:15px; }
 .guide-thumbnail { width:80px; }
 .guide-category-nav { column-gap:22px; }
}
