.cn-page-library{--library-bg:#fafafa;--library-line:#efeff0;--library-ink:#202124;--library-muted:#737478;background:var(--library-bg);color:var(--library-ink);-webkit-font-smoothing:antialiased}
:root[data-theme=dark] .cn-page-library{--library-bg:#1c1f26;--library-line:#343943;--library-ink:#eef0f5;--library-muted:#acb4c2}
.cn-page-library .china-header{background:var(--library-bg)}.cn-page-library .china-footer{margin-top:0}.guide-library.wrap{width:min(960px,calc(100% - 80px));margin:auto}.guide-library button,.guide-library input{font:inherit}.guide-library button{background:none;border:0;color:inherit;cursor:pointer}.guide-library h1,.guide-library h2,.guide-library h3{font-family:inherit;letter-spacing:normal}.guide-library svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.guides-hero{text-align:center;padding:45px 0 36px}.guide-library .guides-hero h1{font-size:48px;font-weight:450;letter-spacing:-1.6px;line-height:1.15}.guides-hero>p{font-size:16px;color:var(--library-muted);margin-top:13px;line-height:1.5}
.guide-library .search{display:flex;align-items:center;gap:12px;min-height:48px;width:310px;min-width:200px;border:1px solid var(--library-line);border-radius:100px;padding:1px 5px 1px 17px;background:var(--rd-surface);color:var(--library-muted);transition:border-color 180ms,box-shadow 180ms}
.guide-library .search:focus-within{border-color:var(--rd-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--rd-accent) 10%, transparent)}.search input{border:0;outline:none;background:none;min-width:0;flex:1;width:100%;font-size:14px;padding:10px 0;color:var(--library-ink)}.search input::-webkit-search-cancel-button{display:none}.search input::placeholder{color:var(--library-muted)}.search>svg{width:18px;height:18px}.search button{min-width:44px;min-height:44px;display:grid;place-items:center;border-radius:50%;color:var(--library-muted)}.search button:hover{background:var(--rd-soft)}.search button svg{width:16px;height:16px}.search-shortcut{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--library-line);border-radius:6px;font:12px ChinaDM,sans-serif;color:var(--library-muted);margin-right:8px}.search:focus-within .search-shortcut{visibility:hidden}
.guides-body{padding-bottom:24px}.browse-bar{position:sticky;top:60px;z-index:20;display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:24px;padding:12px 0 24px;background:var(--library-bg);transition:box-shadow 180ms}.browse-bar.is-stuck,.tabs-rail.is-stuck{box-shadow:0 10px 18px -14px #24242c36}.tabs-rail{min-width:0;width:520px;flex-shrink:0}.guide-tabs{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1.4fr 1.12fr;width:100%;padding:3px;border:1px solid var(--library-line);background:var(--rd-soft);border-radius:100px;--indicator-x:3px;--indicator-width:28%}.tab-indicator{position:absolute;left:0;top:3px;bottom:3px;width:var(--indicator-width);transform:translateX(var(--indicator-x));background:var(--rd-surface);border-radius:100px;box-shadow:0 1px 5px #00000014;z-index:-1}.guide-tabs.is-ready .tab-indicator{transition:transform 260ms cubic-bezier(.16,1,.3,1),width 260ms cubic-bezier(.16,1,.3,1)}.guide-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;border-radius:100px;color:var(--library-muted);font-size:14px;white-space:nowrap;transition:color 180ms}.guide-tabs button[aria-selected=true],.guide-tabs button:hover{color:var(--library-ink)}.guide-tabs svg{width:16px;height:16px}.tab-count{font-size:11px;min-width:15px;height:18px;display:grid;place-items:center;border-radius:5px;background:var(--library-line);font-variant-numeric:tabular-nums}
.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:5px 0 13px;padding-inline:2px}.guide-library .collection-heading h2{font-size:14px;font-weight:500}.collection-heading>span{font-size:13px;color:var(--library-muted)}.resource-grid{background:var(--rd-surface);border:1px solid var(--library-line);border-radius:9px;overflow:clip}.resource-item{margin:0 20px}.resource-item:not([hidden])~.resource-item{border-top:1px solid var(--library-line)}.resource-row{display:block}.resource-trigger{width:100%;display:flex;align-items:center;gap:17px;text-align:left;min-height:72px;padding:0;border-radius:6px}.resource-icon{width:34px;height:34px;border-radius:8px;background:var(--rd-soft);color:var(--library-muted);display:grid;place-items:center;flex:none;transition:background 180ms,color 180ms}.resource-icon img{width:34px;height:34px;border-radius:8px;object-fit:contain}.resource-icon svg{width:20px;height:20px}.type-apps .resource-icon{background:transparent}.resource-copy{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:1;min-width:0}.resource-title{font-size:17px;line-height:1.45;font-weight:500;letter-spacing:-.2px;transition:color 180ms}.resource-topic{font-weight:400;font-size:14px;color:var(--library-muted);white-space:nowrap}.resource-toggle{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:var(--library-muted);flex:none}.resource-toggle svg{width:18px;height:18px}.plus-vertical{transform-origin:center;transition:transform 200ms cubic-bezier(.16,1,.3,1)}.resource-trigger:hover .resource-title,.resource-trigger[aria-expanded=true] .resource-title{color:var(--rd-accent)}.resource-trigger:hover .resource-toggle{background:var(--rd-soft);color:var(--rd-accent)}.resource-trigger[aria-expanded=true] .resource-toggle{color:var(--rd-accent)}.resource-trigger[aria-expanded=true] .plus-vertical{transform:scaleY(0)}.resource-detail{overflow:hidden}.resource-detail-inner{padding:0 51px 24px}.resource-detail p{font-size:16px;line-height:1.65;color:var(--library-muted);max-width:600px}.resource-detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-top:16px}.resource-detail-actions a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 19px;border-radius:100px;font-size:14px;transition:background 180ms}.resource-detail-actions .guide-item{border:0;background:var(--library-ink);color:var(--library-bg)}.resource-detail-actions .guide-item:hover{opacity:.85}.resource-detail-actions .prep-action{padding:0;background:transparent;color:var(--rd-accent)}.resource-detail-actions .prep-action:hover{text-decoration:underline;text-underline-offset:5px}.library-more{display:block;min-height:44px;margin:20px auto 0!important;font-size:14px!important;padding:0 18px!important;border:1px solid var(--library-line)!important;border-radius:100px;background:var(--rd-surface)!important}
.empty{text-align:center;padding:50px 20px}.guide-library .empty h2{font-size:20px;font-weight:500}.empty p{font-size:16px;color:var(--library-muted);margin-top:12px}.empty button{min-height:44px;margin-top:14px;color:var(--rd-accent);font-size:14px;text-decoration:underline}.prep-link{display:flex;align-items:center;gap:10px;justify-content:center;padding:22px 0 0;color:var(--library-muted);font-size:14px;line-height:1.5}.prep-link>svg{width:17px;height:17px}.prep-link .text-link{color:var(--rd-accent);min-height:44px;display:inline-flex;align-items:center;font-size:14px}
@media(min-width:761px) and (max-width:1050px){.browse-bar{gap:18px}.tabs-rail{width:59%}.guide-library .browse-bar>.search{width:36%;min-width:180px}.guide-tabs button{padding:0 7px;gap:6px}.guide-tabs svg{display:none}}
@media(max-width:760px){.guide-library.wrap{width:calc(100% - 40px)}.guides-hero{padding:28px 0 23px}.guide-library .guides-hero h1{font-size:36px;letter-spacing:-.9px}.guides-hero>p{margin-top:11px}.guides-body{display:flex;flex-direction:column;padding-bottom:17px}.browse-bar{display:contents}.guide-library .browse-bar>.search{width:100%;min-height:50px;padding:2px 6px 2px 17px;margin-bottom:9px}.browse-bar>.search input{font-size:16px}.search-shortcut{display:none}.tabs-rail{position:sticky;top:60px;z-index:20;width:100%;padding:12px 0 19px;background:var(--library-bg)}.guide-tabs button{font-size:14px;padding:0 6px;gap:5px}.guide-tabs svg{display:none}.tab-count{font-size:10px;min-width:13px;height:16px}.collection-heading{margin:3px 0 12px}.collection-heading>span{font-size:12px}.resource-item{margin:0 14px}.resource-trigger{min-height:76px;gap:12px}.resource-icon,.resource-icon img{width:32px;height:32px}.resource-icon svg{width:19px;height:19px}.resource-copy{display:block}.resource-title{display:block;font-size:16px;line-height:1.45}.resource-topic{display:block;white-space:normal;font-size:12px;margin-top:3px}.resource-toggle{width:26px;height:32px}.resource-toggle svg{width:16px;height:16px}.resource-detail-inner{padding:0 0 21px 44px}.resource-detail p{font-size:16px;line-height:1.6}.resource-detail-actions{gap:4px 15px;margin-top:13px}.resource-detail-actions .guide-item{padding:0 16px}.prep-link{font-size:14px;gap:7px;padding-top:17px;flex-wrap:wrap}.prep-link>svg{display:none}.library-more{align-self:center}}
@media(max-width:350px){.guide-library.wrap{width:calc(100% - 32px)}.guide-tabs button{font-size:13px;padding:0 4px;gap:3px}.resource-item{margin:0 12px}.resource-trigger{gap:10px}.resource-icon,.resource-icon img{width:28px;height:28px}.resource-detail-inner{padding-left:0}.resource-toggle{width:22px}}
@media(prefers-reduced-motion:reduce){.guide-library *{animation:none!important;transition:none!important}}
html[lang="zh-CN"] .cn-site.cn-page-library{line-height:1.5}
html[lang="zh-CN"] .cn-page-library .guides-hero h1{font-family:ChinaDM,'PingFang SC','Microsoft YaHei',sans-serif;line-height:1.15;letter-spacing:-1.6px}
.cn-page-library .guide-tabs{background:#efefef;border-color:#e5e5e5}
:root[data-theme=dark] .cn-page-library .guide-tabs{background:var(--rd-soft);border-color:var(--library-line)}
@media(max-width:1050px){.guide-library .guide-tabs .icon{display:none}}

.library-topic{margin-inline-start:auto;max-width:55%;min-width:0}
.library-topic select{max-width:100%;min-height:44px;padding:0 8px;border:1px solid var(--library-line);border-radius:8px;background:var(--rd-surface);color:var(--library-ink);font:inherit;font-size:14px}
.resource-journeys{display:flex;flex-wrap:wrap;column-gap:18px;margin-top:8px}
.resource-journeys .prep-action{display:inline-flex;align-items:center;min-height:44px;color:var(--rd-accent);font-size:14px;text-align:start;text-decoration:underline;text-underline-offset:4px}
@media(max-width:350px){.collection-heading{flex-wrap:wrap;column-gap:8px}.library-topic{max-width:53%}}

.type-apps .resource-item{scroll-margin-top:138px}
.library-app-steps{list-style:decimal;margin:18px 0 0;padding-inline-start:1.4rem}
.library-app-steps>li{padding-inline-start:.2rem}
.library-app-steps>li+li{border-top:1px solid var(--library-line);margin-top:18px;padding-top:16px}
.library-app-steps>li::marker{color:var(--library-muted);font-size:.875rem}
.library-app-steps h4{font-family:inherit;font-size:1rem;font-weight:600;line-height:1.45;margin:0 0 5px}
.library-app-steps .app-step-image-link{cursor:zoom-in}
@media(max-width:760px){
 .type-apps .resource-detail-inner{padding-inline-start:0}
}

/* China App Ready — approved directory card */
.app-ready-card .resource-trigger{min-height:88px}.app-ready-card .resource-icon{width:42px;height:42px;background:color-mix(in srgb,#1269ce 7%,var(--rd-surface));border:1px solid color-mix(in srgb,#1269ce 12%,var(--rd-surface));border-radius:11px}.app-ready-card .resource-icon img{width:30px;height:30px}.app-ready-card .resource-title{font-size:20px;font-weight:650;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.app-ready-descriptor{font-size:11px;font-weight:400;letter-spacing:.1px;color:var(--library-muted)}.app-ready-card .resource-detail-inner{padding:0 0 28px 59px}.app-ready-card .resource-detail p{max-width:570px;font-size:14px;line-height:1.9;margin:0;color:var(--library-muted)}.app-ready-card .resource-detail .app-ready-lead{font-size:18px;font-weight:550;letter-spacing:-.25px;line-height:1.6;margin-bottom:8px;color:var(--library-ink)}.app-ready-steps{list-style:none;display:flex;gap:23px;margin:19px 0 24px;padding:0;font-size:12px;color:var(--library-ink)}.app-ready-steps li{display:flex;gap:7px;align-items:center}.app-ready-steps li>span{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:var(--rd-soft);font-size:10px;color:var(--library-muted)}.app-ready-card .resource-detail-actions{gap:18px;align-items:center;margin:0;flex-wrap:wrap}.app-ready-scope{font-size:11px;color:var(--library-muted)}.app-ready-card .resource-detail-actions .guide-item{font-size:13px;font-weight:550;min-height:44px;padding:0 20px;transition:background .18s,transform .18s}.app-ready-card .resource-detail-actions .guide-item:hover{background:#1269ce;transform:translateY(-1px)}.app-ready-card .resource-detail .app-ready-note{font-size:11px;margin-top:12px}.app-ready-card .resource-journeys{border-top:1px solid var(--library-line);padding-top:10px;margin-top:20px;max-width:570px;gap:0 24px}.app-ready-card .resource-journeys a{font-size:12px;color:var(--library-muted);text-decoration:none}.app-ready-card .resource-journeys a:hover{color:var(--rd-accent);text-decoration:underline}
@media(max-width:760px){.app-ready-card .resource-title{font-size:19px;display:flex;flex-direction:column;gap:2px;align-items:flex-start}.app-ready-card .resource-topic{display:none}.app-ready-card .resource-detail-inner{padding-left:0;padding-bottom:25px}.app-ready-card .resource-detail .app-ready-lead{font-size:17px}.app-ready-card .resource-detail p{font-size:13px}.app-ready-steps{flex-direction:column;gap:9px;margin:18px 0 22px}.app-ready-steps li{gap:8px}.app-ready-card .resource-detail-actions{gap:10px}.app-ready-scope{width:100%;font-size:10px}.app-ready-card .resource-journeys{gap:0 16px}.app-ready-card .resource-journeys a{font-size:11px}.app-ready-card .resource-detail .app-ready-note{font-size:10px}}
@media(prefers-reduced-motion:reduce){.app-ready-card .resource-detail-actions .guide-item:hover{transform:none}}

/* Shared cumulative article counts; the library only reads totals. */
.resource-copy .reader-views{display:inline-flex;align-items:center;gap:5px;color:var(--library-muted);font-size:14px;font-weight:400;white-space:nowrap;font-variant-numeric:tabular-nums;margin-inline-start:auto}
.resource-copy .reader-views[hidden]{display:none}
.resource-copy .reader-views svg{width:16px;height:16px}
@media(max-width:760px){.resource-copy{display:flex;flex-wrap:wrap;align-items:center;gap:3px 12px}.resource-title{flex-basis:100%}.resource-copy .reader-views{margin-inline-start:0;font-size:12px}.resource-copy .resource-topic{margin-top:0}.resource-copy .reader-views svg{width:14px;height:14px}}

/* WEB-01/02/03/06: compact centered navigation and a separate search row. */
.guide-library.wrap{width:min(960px,calc(100% - 32px))}
.guides-hero{padding:64px 0 28px}
.guide-library .guides-hero h1{font-size:clamp(36px,5vw,62px);font-weight:400;line-height:1.2;letter-spacing:-.04em;margin:0}
.guides-hero>p{min-height:48px;max-width:520px;margin:16px auto 0;line-height:1.5}
.browse-bar{flex-direction:column;gap:20px;padding:12px 0 28px}
.tabs-rail{width:min(420px,100%);order:-1}
.guide-tabs{grid-template-columns:1fr 1.35fr 1fr;gap:4px}
.guide-tabs button{min-height:44px;padding:0 14px;font-size:14px}
.guide-tabs svg{display:none}
.tab-indicator{box-shadow:0 2px 7px #0000001f}
.guide-tabs.is-ready .tab-indicator{transition:transform 180ms ease,width 180ms ease}
.guide-library .browse-bar>.search{width:min(484px,100%);min-width:0;min-height:46px;margin:0;padding:0 6px 0 16px}
.search input{font-size:16px}
.collection-heading{margin:16px 0}
.guide-library .collection-heading h2{font-size:16px}
.guide-tabs button:focus-visible{outline:2px solid var(--rd-accent);outline-offset:2px}
@media(max-width:760px){
 .guides-hero{padding:32px 0 18px}
 .guides-hero>p{min-height:48px;padding-inline:8px}
 .browse-bar{display:flex;position:sticky;top:60px;gap:14px;padding:10px 0 16px}
 .tabs-rail{position:static;width:min(420px,100%);padding:0;background:transparent}
 .guide-tabs button{font-size:14px;padding:0 6px}
 .collection-heading{flex-wrap:wrap;gap:8px;margin:12px 0}
 .collection-heading h2{flex:1 0 100%}
 .library-topic{margin-inline-start:0;max-width:70%}
 .collection-heading>span{margin-inline-start:auto}
 .resource-topic{font-size:14px}
}
html[lang="zh-CN"] .cn-page-library .guides-hero h1{letter-spacing:-.025em}

/* App identity navigates; the remaining row toggles its preview. */
.resource-app-row{display:flex;align-items:stretch}.resource-app-link{display:flex;align-items:center;gap:17px;min-width:0;flex:none;max-width:70%;color:inherit;border-radius:6px}.resource-app-link .resource-title{overflow-wrap:anywhere}.resource-app-link:hover .resource-title{color:var(--rd-accent)}.resource-app-link:focus-visible{outline:2px solid var(--rd-accent);outline-offset:3px}.resource-app-row>.resource-trigger{flex:1;width:auto;min-width:0;justify-content:flex-end;padding-left:17px}.resource-app-row .resource-topic{margin-left:auto}
@media(max-width:760px){.resource-app-link{gap:12px;max-width:65%}.resource-app-row .resource-topic{display:none}.resource-app-row>.resource-trigger{padding-left:12px}}
@media(max-width:350px){.resource-app-link{gap:10px}}

/* Only the icon and title navigate; the rest of a guide row expands it. */
.resource-guide-row{position:relative;display:flex;align-items:center;gap:17px;min-height:72px}
.resource-guide-title{position:relative;z-index:1;color:inherit;border-radius:6px}
.resource-guide-title{display:flex;align-items:center;gap:17px;max-width:calc(100% - 216px);min-width:0;width:fit-content}
.resource-guide-title:hover .resource-title{color:var(--rd-accent)}
.resource-guide-title:hover .resource-icon{color:var(--rd-accent);background:var(--rd-soft)}
.resource-guide-row>.resource-trigger{position:absolute;inset:0;justify-content:flex-end;gap:20px;height:100%;min-height:100%}
.resource-guide-meta{display:flex;align-items:center;gap:20px;font-weight:400}
.resource-guide-meta .reader-views{display:inline-flex;align-items:center;gap:5px;color:var(--library-muted);font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.resource-guide-meta .reader-views[hidden]{display:none}
.resource-guide-meta .reader-views svg{width:16px;height:16px}
.resource-guide-row:has(.resource-trigger[aria-expanded=true]) .resource-guide-title{color:var(--rd-accent)}
.resource-guide-title:focus-visible{outline:2px solid var(--rd-accent);outline-offset:3px}
@media(max-width:760px){.resource-guide-row{min-height:90px;gap:12px;padding:14px 0 30px}.resource-guide-title{gap:12px;max-width:calc(100% - 38px)}.resource-guide-row>.resource-trigger{gap:12px}.resource-guide-meta{position:absolute;left:44px;bottom:12px;gap:12px}.resource-guide-meta .resource-topic{margin:0;white-space:nowrap}.resource-guide-meta .reader-views{font-size:12px}.resource-guide-meta .reader-views svg{width:14px;height:14px}}
@media(max-width:350px){.resource-guide-row{gap:10px}.resource-guide-title{gap:10px;max-width:calc(100% - 22px)}.resource-guide-meta{left:38px}}

/* Tools layout preview: shared bilingual catalog, no new interaction. */
.resource-grid.type-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;background:transparent;border:0;overflow:visible;align-items:start}
.resource-grid.type-tools[hidden]{display:none}
.type-tools .resource-item{margin:0;border:1px solid var(--library-line);border-radius:12px;background:var(--rd-surface);overflow:hidden;transition:border-color 180ms}
.type-tools .resource-item:hover{border-color:color-mix(in srgb,var(--library-ink) 25%,var(--library-line))}
.type-tools .resource-trigger{align-items:flex-start;gap:14px;padding:22px;min-height:150px}
.type-tools .resource-copy{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.type-tools .resource-title{display:block;font-size:17px;font-weight:550;line-height:1.4;letter-spacing:-.2px}
.type-tools .resource-icon{width:36px;height:36px;border-radius:9px;background:var(--rd-soft);border:0;color:var(--library-muted)}
.type-tools .resource-icon img{width:28px;height:28px}
.type-tools .app-ready-descriptor{display:none}
.type-tools .resource-topic{order:-1;font-size:13px;line-height:1.4;white-space:normal;color:var(--library-muted)}
.tool-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;font-weight:400;line-height:1.55;color:var(--library-muted)}
.type-tools .resource-toggle{width:24px;height:32px;margin-left:auto}
.type-tools .resource-detail-inner{padding:0 22px 22px}
.type-tools .resource-detail p{font-size:16px;line-height:1.65}
.type-tools .resource-detail-actions{gap:12px}
.type-tools .resource-detail-actions .guide-item{font-size:14px}
.type-tools .resource-trigger:focus-visible{outline:2px solid var(--rd-accent);outline-offset:-3px}
@media(max-width:760px){.resource-grid.type-tools{grid-template-columns:1fr;gap:10px}.type-tools .resource-trigger{padding:18px;min-height:140px;gap:12px}.type-tools .resource-title{font-size:16px}.type-tools .resource-detail-inner{padding:0 18px 20px}.type-tools .resource-copy{flex-wrap:nowrap}.type-tools .resource-title{flex-basis:auto}}

/* Refined Tools rhythm; other directory tabs retain their own layout. */
.type-tools .resource-item[data-open]{border-color:color-mix(in srgb,var(--rd-accent) 28%,var(--library-line))}
.type-tools .resource-item[data-open] .resource-trigger{min-height:0;padding-bottom:18px}
.type-tools .resource-item[data-open] .tool-summary{display:none}
.type-tools .resource-detail-inner{margin:0 22px;padding:18px 0 22px;border-top:1px solid var(--library-line)}
.type-tools .resource-detail-inner>p:first-child{margin-top:0}
.type-tools .resource-journeys{gap:8px 16px}
.type-tools .resource-journeys a,.type-tools .app-ready-scope,.type-tools .resource-detail .app-ready-note{font-size:13px;line-height:1.6}
.type-tools .app-ready-steps{flex-direction:column;gap:10px;font-size:14px;margin:18px 0}
.type-tools .resource-detail-actions .guide-item:hover{transform:none}
@media(max-width:760px){
.type-tools .resource-detail-inner{margin:0 18px;padding:16px 0 20px}
.type-tools .resource-copy{gap:6px}
.type-tools .app-ready-card .resource-topic{display:block}
}

/* Full-width summaries preserve space for long bilingual titles. */
.resource-grid.type-tools{align-items:start}
.type-tools .resource-trigger{display:grid;grid-template-columns:36px minmax(0,1fr) 24px;grid-template-rows:auto auto auto;gap:6px 14px;min-height:162px;align-content:start}
.type-tools .resource-copy{display:contents}
.type-tools .resource-icon{grid-column:1;grid-row:1 / 3;align-self:center}
.type-tools .resource-topic{grid-column:2;grid-row:1;order:0;margin:0}
.type-tools .resource-title{grid-column:2;grid-row:2;min-width:0;overflow-wrap:break-word}
.type-tools .resource-toggle{grid-column:3;grid-row:1 / 3;align-self:center}
.type-tools .tool-summary{grid-column:1 / -1;grid-row:3;margin-top:10px;line-height:1.6}
.type-tools .resource-item[data-open] .resource-trigger{min-height:0}
.type-tools .resource-item[data-open] .resource-icon{color:var(--rd-accent);background:color-mix(in srgb,var(--rd-accent) 8%,var(--rd-surface))}
@media(max-width:760px){.type-tools .resource-trigger{grid-template-columns:36px minmax(0,1fr) 24px;gap:5px 12px;min-height:150px}.type-tools .tool-summary{margin-top:8px}.type-tools .resource-title{font-size:17px}.type-tools .resource-topic{font-size:13px}}
@media(prefers-reduced-motion:reduce){.type-tools .resource-item{transition:none}}


/* Tool identity navigates; the card background toggles details. */
.type-tools .resource-tool-row{position:relative;min-height:162px;padding:22px;display:grid;grid-template-columns:36px minmax(0,1fr) 24px;grid-template-rows:19px auto 1fr;gap:6px 14px}
.type-tools .tool-icon-link{position:relative;z-index:2;grid-column:1;grid-row:1 / 3;align-self:center;width:36px;color:inherit}
.type-tools .tool-title-link{position:relative;z-index:2;grid-column:2;grid-row:2;justify-self:start;align-self:start;max-width:100%;color:var(--library-ink);text-decoration:none}
.type-tools .tool-title-link:hover{color:var(--rd-accent)}
.type-tools .tool-icon-link:focus-visible,.type-tools .tool-title-link:focus-visible{outline:2px solid var(--rd-accent);outline-offset:4px;border-radius:4px}
.type-tools .resource-tool-row>.resource-trigger{position:absolute;inset:0;min-height:100%;height:100%;padding:22px;grid-template-rows:19px 24px 1fr;align-content:start}
.type-tools .resource-toggle{grid-row:1 / 3}
.type-tools .resource-item[data-open] .resource-tool-row{min-height:98px}
.type-tools .resource-detail-actions .guide-item{display:none}
.type-tools .resource-detail-actions:has(>.guide-item:only-child){display:none}
@media(max-width:760px){.type-tools .resource-tool-row{padding:18px;gap:5px 12px;min-height:170px}.type-tools .resource-tool-row>.resource-trigger{padding:18px;grid-template-rows:19px 48px 1fr}.type-tools .resource-item[data-open] .resource-tool-row{min-height:110px}}
/* Keep the resource tabs centered with search at the right on desktop. */
@media(min-width:1001px){
 .browse-bar{display:grid;grid-template-columns:minmax(0,1fr) 420px minmax(0,1fr);column-gap:22px;row-gap:0}
 .browse-bar>.tabs-rail{grid-column:2;grid-row:1;width:100%;order:0}
 .guide-library .browse-bar>.search{grid-column:3;grid-row:1;width:100%;min-width:0}
 .browse-bar>.search input{font-size:14px}
 .browse-bar .search-shortcut{display:none}
}

/* Shared directory toolbar; Apps use visible topics and an arrow-free card grid. */
.guide-library[data-active-type]{width:min(1200px,calc(100% - 64px))}
.guide-library[data-active-type] .guides-hero{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.guide-library[data-active-type] .browse-bar{display:flex;flex-direction:row-reverse;justify-content:space-between;gap:24px;padding:26px 0 22px;margin-bottom:24px;border-bottom:1px solid var(--library-line)}
.guide-library[data-active-type] .tabs-rail{width:430px;order:0;flex-shrink:1}
.guide-library[data-active-type] .browse-bar>.search{width:340px;flex-shrink:1}
.guide-library[data-active-type=apps] .collection-heading{justify-content:flex-start;gap:14px;margin:0 0 16px;padding:0}
.guide-library[data-active-type=apps] .collection-heading h2{font-size:24px;font-weight:650;line-height:1.35;letter-spacing:-.025em}
.guide-library[data-active-type=apps] #result-count{font-size:14px;margin:0}
.app-topic-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.app-topic-filters button{min-height:44px;padding:8px 15px;border:1px solid transparent;border-radius:9px;background:var(--rd-soft);font-size:14px;line-height:1.4;transition:background 180ms,color 180ms,border-color 180ms}
.app-topic-filters button:hover{border-color:color-mix(in srgb,var(--library-ink) 22%,transparent)}
.app-topic-filters button[aria-pressed=true]{background:var(--rd-accent);color:#fff}
.resource-grid.type-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;background:none;border:0;overflow:visible;align-items:start}
.type-apps .resource-item{min-width:0;margin:0;border:1px solid var(--library-line);border-radius:12px;background:var(--rd-surface);overflow:hidden;transition:border-color 180ms,box-shadow 180ms,transform 180ms}
.type-apps .resource-item[data-open]{border-color:color-mix(in srgb,var(--rd-accent) 42%,var(--library-line))}
.type-apps .resource-app-card{padding:22px 24px 12px}
.type-apps .resource-app-heading{position:relative;min-height:48px;margin:0;padding-left:60px;display:flex;flex-direction:column;justify-content:center;gap:3px}
.type-apps .resource-app-link{display:block;max-width:100%;color:var(--library-ink);text-decoration:none}
.type-apps .resource-app-link .resource-icon{position:absolute;left:0;top:2px;width:44px;height:44px;border-radius:10px}
.type-apps .resource-icon img{width:44px;height:44px;border-radius:10px}
.type-apps .resource-title{font-size:18px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;letter-spacing:-.015em}
.type-apps .resource-topic{display:block;font-size:13px;line-height:1.5;white-space:normal}
.type-apps .app-card-summary{font-size:16px;line-height:1.6;color:var(--library-muted);margin:16px 0 8px;min-height:3.2em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.app-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.type-apps .app-guide-link,.type-apps .app-card-actions .resource-trigger{display:inline-flex;align-items:center;width:auto;min-height:44px;padding:0;border-radius:5px;font-size:14px;font-weight:450;line-height:1.5;text-decoration:none;color:var(--library-ink)}
.type-apps .app-card-actions .resource-trigger{color:var(--library-muted);text-align:right;justify-content:flex-end;flex:none}
.type-apps .app-guide-link:hover,.type-apps .app-card-actions .resource-trigger:hover{color:var(--rd-accent)}
.app-collapse-label{display:none}
.type-apps [aria-expanded=true] [data-app-disclosure]{display:none}
.type-apps [aria-expanded=true] .app-collapse-label{display:inline}
.type-apps .resource-detail-inner{margin:0 24px;padding:18px 0 22px;border-top:1px solid var(--library-line)}
.type-apps .resource-detail-inner>p:first-child{margin-top:0}
.type-apps .resource-detail p{font-size:16px;line-height:1.65;margin:14px 0 0;overflow-wrap:anywhere}
.type-apps .resource-detail .app-platforms{color:var(--library-ink);font-size:14px;font-weight:550}
.app-install-links{display:flex;flex-direction:column;gap:6px;margin:12px 0}
.app-install-links a{display:flex;align-items:center;min-height:44px;padding:9px 12px;border:1px solid var(--library-line);border-radius:7px;color:var(--library-ink);font-size:14px;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}
.app-install-links a:hover{background:var(--rd-soft)}
.type-apps .resource-detail .app-install-note{font-size:13px}
.type-apps .resource-detail-actions{display:none}
.type-apps .resource-journeys{margin-top:14px}
.type-apps .resource-journeys a{font-size:14px;line-height:1.6}
.app-topic-filters button:focus-visible,.type-apps a:focus-visible,.type-apps .resource-trigger:focus-visible{outline:2px solid var(--rd-accent);outline-offset:3px}
@media(hover:hover){.type-apps .resource-item:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--library-ink) 24%,var(--library-line));box-shadow:0 5px 16px #00000004}}
@media(min-width:761px) and (max-width:1000px){.resource-grid.type-apps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .guide-library[data-active-type]{width:calc(100% - 32px)}
 .guide-library[data-active-type] .browse-bar{flex-direction:column;gap:12px;padding:14px 0 16px;margin-bottom:20px}
 .guide-library[data-active-type] .tabs-rail{width:100%;order:-1}
 .guide-library[data-active-type] .browse-bar>.search{width:100%}
 .guide-library[data-active-type=apps] .collection-heading{flex-wrap:nowrap;gap:12px;margin:0 0 14px}
 .guide-library[data-active-type=apps] .collection-heading h2{flex:0 1 auto;font-size:22px}
 .app-topic-filters{gap:6px;margin-bottom:20px}
 .app-topic-filters button{padding:8px 12px}
 .resource-grid.type-apps{grid-template-columns:minmax(0,1fr);gap:12px}
 .type-apps .resource-app-card{padding:20px 20px 10px}
 .type-apps .app-card-summary{min-height:0;margin-top:14px}
 .type-apps .resource-detail-inner{margin:0 20px;padding:16px 0 20px}
}
@media(prefers-reduced-motion:reduce){.type-apps .resource-item,.app-topic-filters button{transition:none}.type-apps .resource-item:hover{transform:none}}
/* Counts share the header centerline; tools group the count with the disclosure. */
.type-apps .resource-app-heading .reader-views,.type-tools .reader-views{display:inline-flex;align-items:center;gap:5px;color:var(--library-muted);font-size:13px;font-weight:400;font-variant-numeric:tabular-nums;line-height:20px;white-space:nowrap}
.type-apps .resource-app-heading .reader-views{position:absolute;right:0;top:50%;transform:translateY(-50%)}
.type-apps .resource-app-heading:has(.reader-views:not([hidden])){padding-right:52px}
.type-apps .reader-views svg,.type-tools .resource-toggle .reader-views svg{width:16px;height:16px;flex:none}
.type-apps .reader-views[hidden],.type-tools .reader-views[hidden]{display:none}
.type-tools .resource-tool-row,.type-tools .resource-tool-row>.resource-trigger{grid-template-columns:36px minmax(0,1fr) 72px}
.type-tools .resource-toggle{display:flex;align-items:center;justify-content:flex-end;gap:12px;width:72px;height:32px}
/* The native guide link covers the card; install controls remain independent. */
.type-apps .resource-app-card{position:relative}
.type-apps .app-guide-link::after{content:"";position:absolute;inset:0;z-index:1;border-radius:11px;cursor:pointer}
.type-apps .app-card-actions .resource-trigger{position:relative;z-index:2}
.type-apps .app-guide-link:focus-visible::after{outline:2px solid var(--rd-accent);outline-offset:-3px}
/* Keep view metadata and the disclosure glyph distinct at every width. */
.type-tools .resource-tool-row,.type-tools .resource-tool-row>.resource-trigger{grid-template-columns:36px minmax(0,1fr) 88px}
.type-tools .resource-toggle{width:88px;gap:20px;flex-wrap:nowrap}
.type-tools .resource-toggle>.reader-views,.type-tools .resource-toggle>svg{flex-shrink:0}

/* Three resource types share the compact toolbar. */
.guide-library .guide-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
.guide-library[data-active-type] .tabs-rail{width:420px}
@media(max-width:760px){.guide-library[data-active-type] .tabs-rail{width:100%}.guide-library .guide-tabs button{padding:0 4px;gap:3px}}

/* Guide topics remain visible in the collection heading, including small screens. */
.guide-topic-filters{display:flex;flex:1 1 0;flex-wrap:wrap;gap:4px;min-width:0}
.guide-topic-filters button{min-height:32px;padding:4px 10px;border:1px solid var(--library-line);border-radius:100px;background:var(--rd-surface);color:var(--library-ink);font:inherit;font-size:14px;line-height:1.4}
.guide-topic-filters button:hover{border-color:var(--rd-accent);color:var(--rd-accent)}
.guide-topic-filters button[aria-pressed=true]{background:var(--rd-accent);border-color:var(--rd-accent);color:#fff}
.guide-topic-filters button:focus-visible{outline:2px solid var(--rd-accent);outline-offset:3px}
.guide-library[data-active-type=guides] .collection-heading{align-items:flex-start;gap:12px}
.guide-library[data-active-type=guides] #result-count{flex:none;padding-top:6px;white-space:nowrap}
@media(max-width:760px){.guide-topic-filters{flex-basis:100%}.guide-library[data-active-type=guides] #result-count{padding-top:0;margin-inline-start:0}}
