/**
 * OSpress â€” Software / Application post type styles
 *
 * Play Store-style layout rendered inside .doc-primary (document-explorer).
 * The address bar, left nav pane, and doc sidebar are provided by the shared
 * document-explorer template and are unchanged.
 *
 * Block order inside .doc-primary:
 *   .sw-hero         â€” icon + name + developer + badges + download/website btns
 *   .sw-stats        â€” thin bar: file size Â· compatibility Â· last updated
 *   .app-screenshots â€” horizontal screenshot strip + lightbox (see below)
 *   .sw-section      â€” "About this app" + editor content
 *   .sw-section--info / .sw-info-grid â€” metadata grid
 */

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   APP HERO
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.sw-hero {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap; /* allows action buttons to wrap to a second line */
	gap: 12px 16px;
	padding: 20px 24px 18px;
	border-bottom: 1px solid var(--win-border);
}

/* App icon */
.sw-hero__icon-wrap { flex-shrink: 0; }

.sw-hero__icon {
	width: 72px;
	height: 72px;
	border-radius: calc(var(--ospress-radius) * 1.5);
	object-fit: cover;
	border: 1px solid var(--win-border);
	display: block;
	background: var(--win-bg);
}

.sw-hero__icon--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--ospress-accent) 14%, var(--win-bg));
	color: var(--ospress-accent);
	border-color: color-mix(in srgb, var(--ospress-accent) 22%, transparent);
}

/* Name + developer + badge row */
.sw-hero__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.sw-hero__name {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--win-text);
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sw-hero__dev {
	margin: 0;
	font-size: 11px;
	color: var(--win-text-muted);
	display: flex;
	align-items: center;
	gap: 4px;
}

.sw-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 2px;
}

/* â”€â”€ Badge pills â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.sw-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 20px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.sw-badge--version {
	background: color-mix(in srgb, var(--ospress-accent) 12%, transparent);
	color: var(--ospress-accent);
	border: 1px solid color-mix(in srgb, var(--ospress-accent) 25%, transparent);
}

/* License â€” default muted, then colour-coded variants */
.sw-badge--license {
	background: color-mix(in srgb, var(--win-text-muted) 10%, transparent);
	color: var(--win-text-muted);
	border: 1px solid transparent;
}
.sw-badge--license-free        { background: color-mix(in srgb, #107c10 13%, transparent); color: #107c10; }
.sw-badge--license-open-source { background: color-mix(in srgb, #ca5010 13%, transparent); color: #ca5010; }
.sw-badge--license-premium     { background: color-mix(in srgb, var(--ospress-accent) 13%, transparent); color: var(--ospress-accent); }
.sw-badge--license-freemium    { background: color-mix(in srgb, #008272 13%, transparent); color: #008272; }

/* â”€â”€ Action buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.sw-hero__actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%; /* span a full row below icon + info */
	padding-top: 4px;
}

/* Platform-specific download button accent colors */
.sw-btn--platform-android           { background: #3ddc84; color: #000; border-color: transparent; }
.sw-btn--platform-android:hover,
.sw-btn--platform-android:focus-visible { background: #2fbc71; color: #000; opacity: 1; }
.sw-btn--platform-windows           { background: #0078d4; color: #fff; border-color: transparent; }
.sw-btn--platform-windows:hover,
.sw-btn--platform-windows:focus-visible { background: #106ebe; color: #fff; opacity: 1; }
.sw-btn--platform-linux             { background: #e95420; color: #fff; border-color: transparent; }
.sw-btn--platform-linux:hover,
.sw-btn--platform-linux:focus-visible   { background: #d14817; color: #fff; opacity: 1; }
.sw-btn--platform-web               { background: #4285f4; color: #fff; border-color: transparent; }
.sw-btn--platform-web:hover,
.sw-btn--platform-web:focus-visible     { background: #357ae8; color: #fff; opacity: 1; }
.sw-btn--platform-chromeos          { background: #4285f4; color: #fff; border-color: transparent; }
.sw-btn--platform-chromeos:hover,
.sw-btn--platform-chromeos:focus-visible { background: #357ae8; color: #fff; opacity: 1; }
/* macOS, iOS, Other: inherit default accent (--ospress-accent) */

.sw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 16px;
	border-radius: var(--ospress-radius);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1;
	transition: opacity 0.15s, background 0.15s;
	user-select: none;
	min-width: 110px;
}

a.sw-btn {
	color: inherit;
	text-decoration: none;
}

.sw-btn--primary {
	background: var(--ospress-accent);
	color: #fff !important;
	border: 1px solid transparent;
}

.sw-btn--primary:hover,
.sw-btn--primary:focus-visible {
	opacity: 0.86;
	color: #fff !important;
	text-decoration: none !important;
}

.sw-btn--secondary {
	background: transparent;
	color: var(--win-text);
	border: 1px solid var(--win-border);
	text-decoration: none !important;
}

.sw-btn--secondary:hover,
.sw-btn--secondary:focus-visible {
	background: color-mix(in srgb, var(--win-text) 7%, transparent);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   STATS BAR
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.sw-stats {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	padding: 0 24px;
	background: var(--win-toolbar-bg);
	border-bottom: 1px solid var(--win-border);
}

.sw-stats__item {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 14px 8px 0;
	margin-right: 14px;
	font-size: 11px;
	color: var(--win-text-muted);
	border-right: 1px solid var(--win-border);
}

.sw-stats__item:first-child { padding-left: 0; }

.sw-stats__item:last-child {
	border-right: none;
	margin-right: 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SCREENSHOTS STRIP  (class names kept identical â€” lightbox JS depends on them)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.app-screenshots {
	padding: 20px 24px;
	border-bottom: 1px solid var(--win-border);
}

/* Horizontally scrollable strip of screenshot thumbnails */
.app-screenshots__strip {
	display: flex;
	flex-direction: row;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 10px;
	scroll-snap-type: x proximity;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--win-border) transparent;
}

.app-screenshots__strip::-webkit-scrollbar { height: 4px; }
.app-screenshots__strip::-webkit-scrollbar-track { background: transparent; }
.app-screenshots__strip::-webkit-scrollbar-thumb { background: var(--win-border); border-radius: 2px; }

/* Individual thumbnail button */
.app-screenshots__thumb {
	flex-shrink: 0;
	width: 220px;
	height: 138px;
	padding: 0;
	border: 1px solid var(--win-border);
	border-radius: var(--ospress-radius);
	overflow: hidden;
	cursor: pointer;
	background: var(--win-bg);
	scroll-snap-align: start;
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.app-screenshots__thumb:hover,
.app-screenshots__thumb:focus-visible {
	border-color: var(--ospress-accent);
	box-shadow: 0 0 0 1px var(--ospress-accent);
	transform: translateY(-2px);
	outline: none;
}

.app-screenshots__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SECTIONS  (About / App info)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.sw-section {
	padding: 20px 24px;
	border-bottom: 1px solid var(--win-border);
}

.sw-section:last-of-type { border-bottom: none; }

.sw-section__heading {
	margin: 0 0 12px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--win-text-muted);
}

.sw-section__excerpt {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--win-text-muted);
	line-height: 1.6;
}

/* Remove default document__content box padding â€” sw-section provides it */
.sw-section__body.document__content {
	padding: 0;
}

.sw-section__body.document__content > *:first-child { margin-top: 0; }

/* â”€â”€ App Info grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.sw-info-grid {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--win-border);
	border-radius: var(--ospress-radius);
	overflow: hidden;
}

.sw-info-grid__cell {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 12px;
	padding: 9px 16px;
	background: var(--win-bg);
	border-bottom: 1px solid var(--win-border);
}

.sw-info-grid__cell:nth-child(even) {
	background: color-mix(in srgb, var(--win-toolbar-bg) 50%, var(--win-bg));
}

.sw-info-grid__cell:last-child { border-bottom: none; }

.sw-info-grid__cell dt {
	width: 110px;
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--win-text-muted);
	margin: 0;
}

.sw-info-grid__cell dd {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	font-weight: 400;
	color: var(--win-text);
	margin: 0;
	word-break: break-word;
}

.sw-info-grid__cell dd a {
	color: var(--ospress-accent);
	text-decoration: none;
}

.sw-info-grid__cell dd a:hover { text-decoration: underline; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LIGHTBOX
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/*
 * position: fixed is containment-clipped to the nearest .os-window ancestor
 * because .os-window has a CSS transform applied for dragging. So the overlay
 * fills the window chrome rather than the whole viewport.
 */
.app-screenshots__lightbox {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: flex;
	align-items: center;
	justify-content: center;
}

.app-screenshots__lightbox[hidden],
.app-screenshots__lightbox:not(.is-open) { display: none; }

.app-screenshots__lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.app-screenshots__lightbox-content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 92%;
	max-height: 88%;
	z-index: 1;
}

.app-screenshots__lightbox-img {
	max-width: 100%;
	max-height: 80vh;
	border-radius: calc(var(--ospress-radius) * 1.5);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
	display: block;
	object-fit: contain;
	background: var(--win-bg);
}

.app-screenshots__lightbox-btn,
.app-screenshots__lightbox-close {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
}

.app-screenshots__lightbox-btn:hover,
.app-screenshots__lightbox-btn:focus-visible,
.app-screenshots__lightbox-close:hover,
.app-screenshots__lightbox-close:focus-visible {
	background: rgba(0, 0, 0, 0.8);
	outline: 2px solid var(--ospress-accent);
	outline-offset: 2px;
}

.app-screenshots__lightbox-prev  { width: 40px; height: 40px; left: -54px; }
.app-screenshots__lightbox-next  { width: 40px; height: 40px; right: -54px; }
.app-screenshots__lightbox-close { width: 32px; height: 32px; top: -44px; right: 0; }

.app-screenshots__lightbox-counter {
	position: absolute;
	bottom: -32px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 11px;
	color: rgba(255, 255, 255, 0.75);
	white-space: nowrap;
	pointer-events: none;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE  (container query â€” narrow window)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

@container (max-width: 560px) {
	.sw-hero {
		flex-wrap: wrap;
		gap: 12px;
	}

	.sw-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		width: 100%;
	}

	.sw-btn { flex: 1; min-width: 90px; }

	.app-screenshots__thumb { width: 160px; height: 100px; }

	.app-screenshots__lightbox-prev { left: -44px; }
	.app-screenshots__lightbox-next { right: -44px; }
}

/* â”€â”€ Viewport media query (tablet â‰¤ 1023px, mirrors responsive.css) â”€â”€â”€â”€â”€â”€â”€â”€ */

@media (max-width: 1023px) {
	.sw-hero { flex-wrap: wrap; padding: 16px; }

	.sw-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		width: 100%;
	}

	.sw-btn { flex: 1; min-width: 90px; }

	.sw-stats { padding: 0 16px; }

	.app-screenshots,
	.sw-section { padding-left: 16px; padding-right: 16px; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DARK MODE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

[data-theme="dark"] .sw-btn--primary,
[data-theme="dark"] .sw-btn--primary:hover,
[data-theme="dark"] .sw-btn--primary:focus-visible { color: #fff; }

@media (prefers-color-scheme: dark) {
	.sw-btn--primary,
	.sw-btn--primary:hover,
	.sw-btn--primary:focus-visible { color: #fff; }
}

/* == Related Software == */

.sw-related { padding-top: 20px; }

.sw-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.sw-related__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 8px;
	border-radius: var(--ospress-radius);
	text-decoration: none;
	color: var(--win-text);
	text-align: center;
	transition: background 0.15s;
	cursor: pointer;
}

.sw-related__card:hover,
.sw-related__card:focus-visible {
	background: var(--win-toolbar-bg);
	outline: none;
}

.sw-related__icon {
	width: 64px;
	height: 64px;
	border-radius: calc(var(--ospress-radius) * 1.5);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--win-toolbar-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-related__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sw-related__icon-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--win-text-muted);
}

.sw-related__name {
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--win-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sw-related__dev {
	font-size: 0.7rem;
	color: var(--win-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.sw-related__card .sw-badge {
	font-size: 0.62rem;
	padding: 1px 6px;
}

/* ══════════════════════════════════════════════════════════════════════════
   EMBEDDED APP CARD  (ospress/app-card Gutenberg block inside post content)
   ══════════════════════════════════════════════════════════════════════════ */

.ospress-app-card {
	border: 1px solid var(--win-border);
	border-radius: var(--ospress-radius);
	overflow: hidden;
	background: var(--win-bg);
	margin: 1.5em 0;
}

/* Inside a post's .entry-content the sw-hero/stats/screenshots already have
   correct padding/borders from their own rules — just add a small top reset. */
.ospress-app-card .sw-hero {
	border-bottom: 1px solid var(--win-border);
}

.ospress-app-card .sw-stats {
	border-bottom: 1px solid var(--win-border);
}

.ospress-app-card .app-screenshots {
	border: none;
	border-top: 1px solid var(--win-border);
	padding: 0;
}

/* Heading inside the card should not steal article-level heading weight */
.ospress-app-card .sw-hero__name {
	font-size: 1.1rem;
	margin: 0;
}

/* == Software Archive App Cards == */

/* ── Grid wrapper ── */
.sw-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 4px;
	padding: 8px;
	width: 100%;
	box-sizing: border-box;
	align-content: start;
	/* span all columns when inside a CSS-grid parent (mobile / list mode) */
	grid-column: 1 / -1;
}

/* ── Grid card (default / grid mode) ── */
.sw-archive-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 8px 12px;
	border-radius: var(--ospress-radius);
	border: 1px solid transparent;
	text-decoration: none;
	color: var(--win-text);
	text-align: center;
	transition: background 0.15s, border-color 0.15s, transform 0.1s;
	cursor: pointer;
}

.sw-archive-card:hover,
.sw-archive-card:focus-visible {
	background: var(--win-toolbar-bg);
	border-color: var(--win-border);
	transform: translateY(-1px);
	outline: none;
}

.sw-archive-card__icon {
	width: 64px;
	height: 64px;
	border-radius: calc(var(--ospress-radius) * 1.5);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--win-toolbar-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-archive-card__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sw-archive-card__icon-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--win-text-muted);
}

.sw-archive-card__name {
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--win-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 100%;
}

.sw-archive-card__dev {
	font-size: 0.7rem;
	color: var(--win-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.sw-archive-card .sw-badge {
	font-size: 0.62rem;
	padding: 1px 6px;
}

/* Info wrapper — transparent in grid mode (children already display correctly) */
.sw-archive-card__info {
	display: contents; /* acts invisible; children participate in card flex */
}

/* ── List mode overrides ── */
.explorer__content.view-list .sw-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	flex-direction: column;
	gap: 0;
	padding: 0;
	border-top: 1px solid var(--win-border);
}

/* Every row: strict 44 px compact flex row */
.explorer__content.view-list .sw-archive-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	padding: 0 14px 0 10px;
	height: 44px;
	max-height: 44px;
	overflow: hidden;        /* hard-clamp to row height */
	text-align: left;
	border-radius: 0;
	border: none;
	border-bottom: 1px solid var(--win-border);
	transform: none;
	transition: background 0.1s;
}

.explorer__content.view-list .sw-archive-card:last-child {
	border-bottom: none;
}

.explorer__content.view-list .sw-archive-card:hover,
.explorer__content.view-list .sw-archive-card:focus-visible {
	background: color-mix(in srgb, var(--ospress-accent) 9%, var(--win-bg));
	border-bottom-color: var(--win-border);
	transform: none;
	outline: none;
}

/* Accent left-bar on hover */
.explorer__content.view-list .sw-archive-card:hover::before,
.explorer__content.view-list .sw-archive-card:focus-visible::before {
	content: '';
	position: absolute;
	left: 0; top: 4px; bottom: 4px;
	width: 3px;
	border-radius: 0 2px 2px 0;
	background: var(--ospress-accent);
}
.explorer__content.view-list .sw-archive-card {
	position: relative; /* needed for ::before accent bar */
}

/* Icon – hard 28 px square, overflow hidden to clip the 64×64 img */
.explorer__content.view-list .sw-archive-card__icon {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	max-width: 28px;
	max-height: 28px;
	overflow: hidden;
	border-radius: 6px;
	background: transparent;
}

.explorer__content.view-list .sw-archive-card__icon img {
	width: 28px !important;
	height: 28px !important;
	object-fit: cover;
	display: block;
}

/* Info column: name on top, dev subtitle below – flex col, overflows clipped */
.explorer__content.view-list .sw-archive-card__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1 1 0;
	min-width: 0;
	gap: 1px;
	overflow: hidden;
}

.explorer__content.view-list .sw-archive-card__name {
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
}

.explorer__content.view-list .sw-archive-card__dev {
	font-size: 0.67rem;
	color: var(--win-text-muted);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

/* Badge pinned to the right, flex-shrink to never wrap */
.explorer__content.view-list .sw-archive-card .sw-badge {
	flex: 0 0 auto;
	margin-left: 6px;
	font-size: 0.64rem;
	padding: 2px 8px;
}

/* app info grid icons */
.sw-info-grid__cell dt {
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.sw-info-grid__icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.sw-info-grid__icon svg {
	width: 1em;
	height: 1em;
	color: inherit; /* inherits label colour */
	vertical-align: middle;
}

/* Left pane app icon (small thumbnail) */
.explorer__pane-app-icon {
width: 16px;
height: 16px;
border-radius: 3px;
object-fit: cover;
flex-shrink: 0;
}