/* Tutorials and downloads share site tokens, with distinct reading hierarchy. */
.resources-header, .resources-toolbar { display: flex; align-items: center; gap: 16px; }
.resources-header { justify-content: space-between; }
.resources-toolbar { gap: 8px; }
.resource-filter { min-width: 44px; min-height: 44px; }
.resources-section + .resources-section { margin-top: 32px; }
.resources-section-heading { margin-bottom: 16px; }
.resources-section-heading h2 { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.resources-section-heading p { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.resources-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.resources-page .resources-card {
 margin: 0; min-width: 0; border: 1px solid var(--border-default); border-radius: 16px;
 background: var(--surface-solid); box-shadow: 0 3px 14px rgba(0, 0, 0, .035);
}
.resources-page .resources-card--tutorial {
 background: linear-gradient(135deg, var(--surface-solid) 65%, color-mix(in srgb, var(--accent-primary) 4%, var(--surface-solid)));
}
.resources-page .resources-card:hover { box-shadow: 0 5px 20px rgba(0, 0, 0, .055); }
.resources-page .resources-card h3 { overflow-wrap: anywhere; letter-spacing: -.015em; }
.resource-app-icon { display: block; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; object-fit: cover; border: 1px solid var(--border-subtle); }
.resources-page .resource-device-icon {
 display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0;
 border-radius: 12px; font-size: 21px; background: var(--surface-solid-subtle); color: var(--text-secondary); box-shadow: none;
}
.resource-platform { margin-top: 5px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.resource-guide-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border-subtle); padding-top: 4px; }
.resource-guide-meta { font-size: 12px; color: var(--text-secondary); }
.resource-read-action { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 44px; padding: 4px 0 4px 8px; border-radius: 8px; background: transparent; color: var(--accent-primary-hover); font-size: 13px; font-weight: 600; }
.resource-read-action > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--accent-primary) 9%, var(--surface-solid)); font-size: 11px; }
.resource-read-action:hover > i { background: color-mix(in srgb, var(--accent-primary) 18%, var(--surface-solid)); }
.resource-admin-actions { flex-shrink: 0; }
.resource-admin-actions button { min-width: 44px; min-height: 44px; }
.software-download-list { display: flex; flex-direction: column; }
.software-download-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border-default); }
.software-download-row:last-child { padding-bottom: 0; }
.software-download-identity { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.software-download-icon { display: block; width: 36px; height: 36px; flex: 0 0 36px; object-fit: cover; border-radius: 9px; border: 1px solid var(--border-subtle); }
.software-download-icon--fallback { display: grid; place-items: center; background: var(--surface-solid-subtle); color: var(--text-secondary); font-size: 16px; }
.software-download-name { font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--text-primary); overflow-wrap: anywhere; }
.software-download-note { margin-top: 4px; font-size: 12px; line-height: 1.6; color: var(--text-secondary); overflow-wrap: anywhere; }
.software-download-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid var(--border-default); color: var(--text-primary); background: var(--surface-solid-subtle); }
.software-download-action > i { font-size: 10px; color: var(--text-secondary); }
.software-download-action:hover { border-color: var(--accent-primary); color: var(--accent-primary-hover); background: var(--surface-solid); }
.software-download-action[aria-disabled="true"] { color: var(--text-secondary); background: var(--surface-solid-subtle); }
.resource-read-action:focus-visible, .software-download-action:focus-visible, .resource-filter:focus-visible, .resource-admin-actions button:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }
html.dark .resource-read-action, html.dark .software-download-action:hover { color: var(--accent-primary); }
@media (min-width: 700px) {
 .resources-grid--tutorial, .resources-grid--software { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .resources-grid--tutorial { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) {
 .resources-header { align-items: stretch; flex-direction: column; }
 .resources-toolbar { width: 100%; }
 .resource-filters, .resource-filters .resource-filter { flex: 1; }
 .resources-section-heading { margin-bottom: 12px; }
 .resources-grid { gap: 12px; }
 .resources-page .resources-card > .p-5 > .flex { flex-wrap: wrap; gap: 8px; }
 .resources-page .resource-admin-actions { width: 100%; justify-content: flex-end; }
 .resources-page .resources-card > .p-5 { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 360px) {
 .software-download-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
 .software-download-action { justify-self: stretch; }
}
