/* Resource library: scoped neutral surfaces, readable summaries and versioned downloads. */
.resources-page { background:#f7f8fa; }
.resource-cover { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#edf2f4; }
.resource-cover-placeholder { display:flex; align-items:center; justify-content:center; color:#75909d; }
.resource-cover-placeholder svg { width:48px; height:48px; }
.resource-page .resource-card h2.resource-card-title { margin:0; padding:12px 14px 14px; font-size:16px; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.resource-detail-cover { border-radius:12px; margin-bottom:24px; }
.resource-page { --res-ink:#202931; --res-muted:#737d87; --res-line:#e5e9ed; --res-accent:#296a78; max-width:1120px; margin:0 auto; padding:44px 28px 64px; color:var(--res-ink); }
.resource-page svg { display:block; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.resource-page a { text-decoration:none; }
.resource-page button { font:inherit; cursor:pointer; }
.resource-page button:focus-visible,.resource-page a:focus-visible,.resource-card-summary:focus-visible { outline:2px solid #4c8c9b; outline-offset:4px; }
.resource-hero { padding:0 0 40px; }
.resource-breadcrumb { display:inline-flex; align-items:center; gap:12px; color:var(--res-muted); font-size:12px; }
.resource-breadcrumb span { color:#b8c1c8; }
.resource-page .resource-eyebrow { margin:38px 0 15px; color:var(--res-accent); font:600 10px/1.5 var(--font-body,system-ui); letter-spacing:2px; }
.resource-page .resource-hero h1 { margin:0; color:var(--res-ink); font-size:clamp(28px,3.3vw,40px); line-height:1.35; font-weight:650; letter-spacing:-1.2px; }
.resource-page .resource-hero h1 span { display:block; margin-top:8px; color:#8b959e; font-size:clamp(24px,2.9vw,34px); font-weight:400; letter-spacing:-.8px; }
.resource-page .resource-lead { margin:22px 0 0; color:var(--res-muted); font-size:14px; line-height:1.9; }
.resource-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px; padding:24px 0 18px; border-top:1px solid var(--res-line); }
.resource-library-title { display:flex; align-items:center; gap:12px; }
.resource-page .resource-library-title h2 { margin:0; font-size:17px; color:var(--res-ink); font-weight:600; }
.resource-library-title>span { padding:3px 8px; border-radius:6px; background:#eaf0f2; color:#687981; font-size:11px; }
.resource-page #resource-search { display:flex; align-items:center; gap:10px; width:340px; margin:0; padding:7px 8px 7px 13px; border:1px solid var(--res-line); border-radius:10px; background:#fff; box-shadow:none; }
#resource-search>svg { width:17px; height:17px; color:#8b969f; flex-shrink:0; }
.resource-page #resource-search input { flex:1; width:0; min-width:0; min-height:26px; margin:0; padding:0; border:0; outline:0; box-shadow:none; background:transparent; color:var(--res-ink); font-size:12px; }
.resource-page #resource-search input::placeholder { color:#929ba3; }
.resource-page #resource-search:focus-within { border-color:#79a4ae; box-shadow:0 0 0 3px #296a780a; }
.resource-page #resource-search button { padding:6px 10px; min-height:28px; border:0; border-radius:6px; background:#edf2f4; color:#53656f; font-size:11px; box-shadow:none; }
.resource-filters { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:24px; }
.resource-filters button { padding:7px 13px; border:1px solid transparent; border-radius:7px; color:#7a858e; background:transparent; font-size:12px; transition:background .16s,color .16s; }
.resource-filters button:hover { background:#eaf0f2; color:#354e5a; }
.resource-filters button[aria-pressed="true"] { background:#263d47; color:#fff; }
.resource-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; align-items:start; }
.resource-card { margin:0; border:1px solid var(--res-line); border-radius:15px; background:#fff; overflow:hidden; box-shadow:0 3px 12px #1c344503; transition:border-color .18s,box-shadow .18s; }
.resource-card:hover { border-color:#c7d6dc; box-shadow:0 6px 24px #1c344508; }
.resource-card-summary { cursor:pointer; min-height:0; padding:16px 16px 0; list-style:none; }
.resource-card:has(> .resource-cover) .resource-art { display:none; }
.resource-card:has(> .resource-cover) .resource-card-top { margin-bottom:12px; justify-content:flex-end; }
.resource-card .resource-tags { margin:12px 0; }
.resource-card .resource-facts { flex-wrap:wrap; }
.resource-card-summary::-webkit-details-marker { display:none; }
.resource-card-top { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:23px; }
.resource-art { display:flex; align-items:center; justify-content:center; width:62px; height:62px; border-radius:14px; color:#4c8190; background:#eef5f6; }
.resource-art svg { width:37px; height:37px; }
.resource-art.is-game { color:#7b78a2; background:#f1f0f7; }
.resource-art.is-game rect { fill:currentColor; fill-opacity:.10; }
.resource-version { padding:4px 8px; border:1px solid #edf0f2; border-radius:6px; color:#89949c; font:11px/1.6 var(--font-mono,monospace); }
.resource-meta { margin:0 0 8px; color:#7d8c95; font-size:11px; line-height:1.5; }
.resource-page .resource-card h2 { margin:0 0 10px; color:var(--res-ink); font-size:16px; font-weight:600; line-height:1.5; letter-spacing:-.3px; }
.resource-page .resource-card .resource-summary { margin:0; min-height:66px; color:#78828a; font-size:13px; line-height:1.85; }
.resource-tags { display:flex; flex-wrap:wrap; gap:6px; margin:18px 0 22px; }
.resource-tags>span { padding:3px 8px; border-radius:5px; background:#f4f6f7; color:#78858d; font-size:10px; line-height:1.5; }
.resource-card-footer { display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:58px; border-top:1px solid #edf0f2; }
.resource-facts { display:flex; gap:24px; flex-wrap:wrap; margin:0 0 16px; font-size:11px; }
.resource-facts div { display:grid; gap:4px; }
.resource-facts dt { color:#8a959c; }
.resource-facts dd { margin:0; color:#516570; }
.resource-checksum { margin:0 0 18px; }
.resource-checksum>span { display:block; margin-bottom:5px; color:#8b969d; font-size:10px; }
.resource-checksum code { display:block; padding:0; background:transparent; color:#73828c; font:10px/1.7 var(--font-mono,monospace); overflow-wrap:anywhere; white-space:normal; }
.resource-requirements { display:grid; gap:20px; margin:24px 0; }
.resource-requirements:empty { display:none; }
.resource-page .resource-requirements h3 { margin:0 0 8px; color:#364952; font-size:14px; }
.resource-requirements ul { margin:0; padding-left:18px; color:#74818a; font-size:12px; overflow-wrap:anywhere; }
.resource-requirements li+li { margin-top:6px; }
.resource-access { display:flex; align-items:center; gap:7px; color:#8a949c; font-size:11px; }
.resource-access i { width:5px; height:5px; border-radius:50%; background:#80a79e; }
.resource-more { display:flex; align-items:center; gap:6px; color:#3d6a78; font-size:12px; font-weight:500; }
.resource-more svg { width:16px; height:16px; transition:transform .2s; }
.when-open { display:none; }
.resource-card[open] .when-open { display:inline; }
.resource-card[open] .when-closed { display:none; }
.resource-card[open] .resource-more svg { transform:rotate(180deg); }
.resource-card[open] { border-color:#c8d8de; }
.resource-detail { border-top:1px solid #edf0f2; padding:24px 26px; color:#66747e; font-size:13px; line-height:1.85; animation:resource-reveal .2s ease-out; }
.resource-body { overflow-wrap:anywhere; }
.resource-body section+section { margin-top:24px; }
.resource-page .resource-body h3,.resource-page .resource-files h3 { margin:0 0 10px; color:#364952; font-size:14px; line-height:1.5; font-weight:600; }
.resource-page .resource-body p { margin:0; color:#74818a; font-size:13px; line-height:1.9; }
.resource-body ul { padding-left:19px; margin:0; color:#74818a; }
.resource-body li+li { margin-top:7px; }
.resource-files { margin-top:28px; padding-top:22px; border-top:1px solid #edf0f2; }
.resource-files>div { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:14px 0; }
.resource-file-symbol { display:flex; justify-content:center; align-items:center; width:36px; height:42px; border-radius:6px; background:#f0f4f5; color:#75909d; font:10px var(--font-mono,monospace); }
.resource-file-name { flex:1; min-width:100px; }
.resource-file-name strong { display:block; color:#4b5d68; font-size:11px; font-weight:500; overflow-wrap:anywhere; }
.resource-file-name small { display:block; color:#98a2a9; font-size:10px; }
.resource-download { display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:7px; background:#2d535f; color:white; font-size:11px; }
.resource-download:hover { background:#1e414e; color:white; }
.resource-subscribe { display:flex; justify-content:center; padding:5px 0; }
.resource-subscribe .text-link { color:#2e6d7b; font-size:13px; }
.resource-empty { margin:15px 0; padding:48px 20px; text-align:center; color:#8b969d; border:1px dashed #dbe3e7; border-radius:12px; }
.resource-page .resource-empty h3 { color:#596d79; font-size:17px; }
.resource-empty button { margin-top:12px; padding:8px 14px; border:0; border-radius:7px; background:#eaf0f2; color:#486675; }
.resource-page .resource-bottom-note { margin:28px 0 0; text-align:center; color:#9da7ad; font-size:11px; }
@keyframes resource-reveal { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:760px) { .resource-page { padding:24px 18px 40px; } .resource-hero { padding-bottom:28px; } .resource-page .resource-eyebrow { margin-top:26px; } .resource-list { grid-template-columns:1fr; } .resource-page #resource-search { width:100%; } .resource-toolbar { gap:15px; } .resource-card-summary { min-height:0; padding:22px 22px 0; } .resource-detail { padding:22px; } .resource-page .resource-card .resource-summary { min-height:0; } }
@media(prefers-reduced-motion:reduce) { .resource-card,.resource-more svg { transition:none; } .resource-detail { animation:none; } }

.resource-page a.resource-card { display:block; text-decoration:none; color:var(--res-ink); }
.resource-card-footer { justify-content:flex-end; }
.resource-back { display:inline-flex; align-items:center; gap:9px; margin-bottom:32px; color:#64808e; font-size:13px; }
.resource-back:hover { color:#263d47; }
.resource-detail-heading { padding-bottom:30px; border-bottom:1px solid var(--res-line); margin-bottom:32px; }
.resource-page .resource-detail-heading h1 { font-size:30px; line-height:1.45; color:var(--res-ink); margin:10px 0 14px; letter-spacing:-.5px; }
.resource-detail-heading>p { max-width:760px; color:#75828b; font-size:14px; line-height:1.9; }
.resource-detail-heading .resource-tags { margin:18px 0 0; }
.resource-detail-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:44px; align-items:start; }
.resource-description .resource-requirements { margin-top:32px; padding-top:28px; border-top:1px solid var(--res-line); }
.resource-description:empty { display:none; }
.resource-download-panel { border:1px solid var(--res-line); border-radius:13px; padding:24px; background:#fff; }
.resource-page .resource-download-panel h2 { margin:0 0 22px; font-size:17px; color:#374e5b; }
.resource-package-info { display:grid; gap:5px; padding:18px 0; border-top:1px solid #edf0f2; }
.resource-package-info>strong { font-size:12px; color:#536873; font-weight:500; overflow-wrap:anywhere; }
.resource-package-info>span { color:#87969e; font-size:11px; }
.resource-package-info .resource-checksum { margin:12px 0 0; }
.resource-detail-downloads { padding-top:16px; }
.resource-detail-downloads>.resource-download { justify-content:center; }
.resource-download-item { margin-bottom:12px; }
.resource-download-item>div { display:none; }
.resource-download-item>a { justify-content:center; }
@media(max-width:800px) { .resource-detail-layout { grid-template-columns:1fr; gap:24px; } .resource-page .resource-detail-heading h1 { font-size:25px; } }

@media (min-width:761px) and (max-width:1000px) { .resource-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:521px) and (max-width:760px) { .resource-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
