/*
 * Event toolkit: the [event_toolkit_resources] gallery/accordion and the event host
 * pages. Tokens and shared components (.swft-page, .swft-card, .swft-resources,
 * .swft-notice) come from swft-platform/assets/swft-theme.css (dependency
 * `swft-theme`). Only toolkit-specific layout lives here.
 */
.toolkit-gallery { margin-top: var(--swft-space-4); }
.toolkit-category { margin-bottom: var(--swft-space-3); border: 1px solid var(--swft-border); border-radius: var(--swft-radius-card); background: var(--swft-card); overflow: hidden; }
.toolkit-category:last-child { margin-bottom: 0; }
.toolkit-category-header { display: flex; justify-content: space-between; align-items: center; gap: var(--swft-space-3); padding: var(--swft-space-3) var(--swft-space-4); cursor: pointer; user-select: none; color: var(--swft-primary-dark); background: var(--swft-surface-alt); transition: background-color var(--swft-transition); }
.toolkit-category-header:hover { background: var(--swft-surface-strong); }
.toolkit-category-header:focus-visible { outline: 2px solid var(--swft-primary-hover); outline-offset: -2px; }
.toolkit-category-title { margin: 0; font-size: 1.05rem; font-weight: 600; }
.toolkit-category-icon { font-size: .9rem; color: var(--swft-primary); transition: transform var(--swft-transition); }
.toolkit-category.active .toolkit-category-icon { transform: rotate(180deg); }
.toolkit-category-content { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.toolkit-category.active .toolkit-category-content { max-height: 5000px; }
.toolkit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--swft-space-4); padding: var(--swft-space-4); }
.toolkit-card { display: flex; flex-direction: column; border: 1px solid var(--swft-border); border-radius: var(--swft-radius-card); background: var(--swft-card); text-decoration: none; color: inherit; transition: border-color var(--swft-transition), box-shadow var(--swft-transition); }
.toolkit-card:hover { border-color: var(--swft-primary); box-shadow: var(--swft-shadow); }
.toolkit-thumbnail { display: flex; align-items: center; justify-content: center; width: 100%; height: 160px; overflow: hidden; background: var(--swft-surface-alt); border-bottom: 1px solid var(--swft-border); }
.toolkit-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.toolkit-thumbnail-logo { padding: var(--swft-space-4); background: var(--swft-card); }
.toolkit-thumbnail-logo img { max-width: 90%; max-height: 90%; }
.toolkit-thumbnail-pdf { background: var(--swft-surface-strong); color: var(--swft-primary-dark); }
.file-icon { font-size: 3rem; line-height: 1; }
.toolkit-card-content { display: flex; flex-direction: column; flex: 1; padding: var(--swft-space-3) var(--swft-space-4); }
.toolkit-card h4 { margin: 0 0 var(--swft-space-1); font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--swft-ink); }
.toolkit-card-meta { margin: 0 0 var(--swft-space-2); font-size: .85rem; line-height: 1.4; color: var(--swft-text-muted); }
.toolkit-badge { display: inline-block; align-self: flex-start; margin-top: auto; padding: .2em .7em; background: var(--swft-surface-strong); color: var(--swft-primary-dark); border-radius: var(--swft-radius); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.canva-note { margin-top: var(--swft-space-4); }
/* GravityView edit/delete list items inside the host's own-entries views. */
.swft-event-host li.edit, .swft-event-host li.delete { display: none; }
