.resources{max-width:1100px}
.resource-hero{padding:clamp(22px,4vw,44px);border:1px solid #cbd6ed;border-radius:16px;background:linear-gradient(110deg,#f3f6ff,#e7edff)}
.resource-hero h1{margin:0;font-size:clamp(34px,4.3vw,54px);letter-spacing:-.065em;color:#1d2943}
.resource-hero p,.section-help,.resource-card p,.guide-steps p{color:#4e5b73;line-height:1.7}
.resource-hero p{margin:12px 0 19px}
.resource-jumps{display:flex;flex-wrap:wrap;gap:8px}
.resource-jumps a,.source-link,.copy-url,.copy-prompt{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;border-radius:7px;font:650 14px/1.4 var(--font-sans);text-decoration:none}
.resource-jumps a{background:white;border:1px solid #c7d3f0;padding:8px 12px;color:#354f9e}
.resource-jumps a:hover,.resource-jumps a:focus-visible{background:#edf2ff;border-color:#8ca3e9}
.resource-section{margin-top:38px;scroll-margin-top:15px}
.resource-section h2{font-size:clamp(24px,2.6vw,32px);letter-spacing:-.055em;margin:0;color:var(--ink)}
.section-help{margin:7px 0 16px;font-size:15px}
.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.resource-card,.worked-example,.guide-steps{min-width:0;background:white;border:1px solid var(--edge);border-radius:12px}
.resource-card{padding:20px;align-self:stretch;display:flex;flex-direction:column;align-items:flex-start}
.resource-kind,.project-credit{font-size:12px;font-weight:650;line-height:1.6;color:#4058a8}
.resource-card h3,.worked-example h3,.guide-steps h3{font-size:20px;margin:5px 0 0;letter-spacing:-.035em;line-height:1.4}
.resource-card h3 a{color:#24324b;text-decoration:none}
.resource-card h3 a:hover{text-decoration:underline}
.resource-card>p{font-size:15px;margin:8px 0 15px;flex:1}
.source-link,.source-link:visited{color:#3454b0;overflow-wrap:anywhere;min-height:34px;text-decoration:underline;text-underline-offset:4px}
.repo-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.featured-repo{border-color:#9cb2ec;background:linear-gradient(140deg,#f2f6ff,white 70%)}
.project-credit{color:#244d9f;background:#e1eafc;border-radius:4px;padding:2px 7px}
.repo-address{display:flex;width:100%;gap:10px;align-items:center;justify-content:space-between;border-top:1px solid #e2e7ef;padding-top:10px}
.repo-url,.repo-url:visited{min-width:0;overflow-wrap:anywhere;color:#39529f;font:500 13px/1.5 ui-monospace,Consolas,monospace}
.copy-url,.copy-prompt{background:#f2f5ff;border:1px solid #cbd8fa;color:#3555bd;white-space:nowrap;padding:6px 10px}
.copy-url:hover,.copy-prompt:hover{background:#e7eeff;border-color:#a4b7ed}
.repo-prompt{width:100%;margin-top:9px;color:#4c5970}
.repo-prompt summary{width:fit-content;padding:5px 0;font-size:14px;font-weight:650;cursor:pointer}
.prompt-body{white-space:pre-line;overflow-wrap:anywhere;word-break:normal;max-width:76ch}
.repo-prompt p,.worked-example p{font-size:15px;line-height:1.7;margin:8px 0 12px}
.guide-steps{padding:5px 20px 5px 43px;margin:14px 0}
.guide-steps li{padding:12px 0 12px 3px}
.guide-steps li::marker{font-weight:750;color:var(--blue)}
.guide-steps h3,.worked-example h3{font-size:17px}
.guide-steps p{margin:5px 0;font-size:15px}
.guide-steps code{overflow-wrap:anywhere}
.worked-example{padding:18px 20px;background:#eff3ff;border-color:#d1dbf2}
.official-links{font-size:14px;margin-top:15px;color:#556278}
.official-links a,.official-links a:visited{color:#3554a6;text-decoration:underline}
.resource-preview{width:100%;margin:0 0 13px}
.preview-open{position:relative;display:block;width:100%;overflow:hidden;border:1px solid #d8dfeb;border-radius:8px;background:#edf1f6;line-height:0;color:#fff}
.preview-open img{display:block;width:100%;height:auto;aspect-ratio:8/5}
.preview-zoom{position:absolute;right:9px;bottom:9px;display:inline-flex;align-items:center;gap:5px;color:white;background:#1b273de8;border:1px solid #ffffff55;border-radius:6px;padding:6px 9px;font-size:12px;font-weight:650;line-height:1.3}
.preview-zoom .site-icon{width:14px;height:14px}
.preview-zoom{z-index:1}
.card-motion{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#f3f5fa;pointer-events:none}
.motion-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.motion-toggle,.motion-filter{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:6px 12px;border:1px solid #b7c6ed;border-radius:7px;background:#f0f4ff;color:#2b48a2;font:650 14px/1.4 var(--font-sans)}
.motion-filter{background:#fff}
.motion-filter[aria-pressed=true],.motion-toggle[aria-pressed=true]{background:#344faa;color:white;border-color:#344faa}
.motion-toggle:hover,.motion-filter:hover{border-color:#5778cc}
.motion-sign{min-width:14px;text-align:center;font-family:Arial,sans-serif}
.motion-detail,.motion-file{font-size:13px;line-height:1.5}
.motion-detail{color:#546278}.motion-file{color:#3452b2;text-decoration:underline}
.preview-open:hover,.preview-open:focus-visible{border-color:#5274ca}
.preview-open:hover .preview-zoom,.preview-open:focus-visible .preview-zoom{background:#2c4db2}
.resource-preview figcaption{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin-top:7px;color:#53617a;font-size:12px;line-height:1.5}
.preview-origin{padding-right:7px;border-right:1px solid #cdd5e2;font-weight:650;color:#425370}
html:has(.preview-dialog[open]){overflow:hidden}
.preview-dialog{box-sizing:border-box;width:min(1120px,calc(100% - 28px));max-width:none;max-height:calc(100dvh - 28px);padding:0;border:0;border-radius:14px;background:#fff;color:#22304a;box-shadow:0 16px 60px #0f1c3766}
.preview-dialog::backdrop{background:#14213bcc}
.preview-panel{display:grid;gap:0;padding:12px 16px}
.preview-header,.preview-info,.preview-info nav{display:flex;gap:10px;align-items:center;justify-content:space-between}
.preview-header{margin-bottom:9px}.preview-header h2{margin:0;font-size:clamp(18px,2vw,25px);line-height:1.3;letter-spacing:-.035em}
.preview-header h2{flex:1;min-width:0}.preview-header button{flex:none}
.preview-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #cfd8e7;border-radius:6px;background:white;color:#354765;min-height:44px;padding:6px 12px;font-size:14px;font-weight:650}
.preview-dialog button:hover,.preview-dialog button:focus-visible{background:#eef2ff;border-color:#8ca4de}
.preview-large{display:block;width:100%;height:auto;max-height:calc(100dvh - 200px);object-fit:contain;background:#f1f3f7;border-radius:6px}
.preview-stage{min-width:0;max-width:100%;overflow:auto;max-height:calc(100dvh - 200px);overscroll-behavior:contain;border-radius:6px}
.preview-stage.is-zoomed .preview-large{width:1200px;max-width:none;max-height:none;height:auto}
.preview-dialog .preview-scale[aria-pressed=true]{background:#e6ecff;color:#2c4ba6}
@media(max-width:600px){.preview-stage{max-height:calc(100dvh - 225px)}}
.preview-info{flex-wrap:wrap;padding-top:10px}
.preview-info p{margin:0;color:#53617a;font-size:13px;line-height:1.4}
.preview-source,.preview-source:visited{display:inline-flex;align-items:center;min-height:36px;color:#3452b2;text-decoration:underline;font-size:14px;font-weight:650}
.preview-info nav{gap:6px}.preview-count{min-width:50px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}
@media(max-width:600px){.preview-panel{padding:10px}.preview-dialog{width:calc(100% - 16px)}.preview-info{align-items:flex-start}.preview-source{min-height:44px}.preview-info nav{margin-left:auto}.preview-dialog button{padding:6px 10px}.preview-large{max-height:calc(100dvh - 225px)}}
@media(max-width:720px){.resource-grid{grid-template-columns:minmax(0,1fr)}.resource-section{margin-top:26px}.resource-card{padding:16px}.resource-jumps a,.copy-url,.copy-prompt,.source-link{min-height:44px}.repo-prompt summary{padding-block:11px}.resource-hero{padding:21px 15px}.resource-jumps{gap:5px}.resource-jumps a{font-size:13px;padding:6px 8px}.resource-card>p{margin-bottom:10px}}
