/* ═══════════════════════════════════════════════════════════════════════ */
/* SALOS production & concert pages on phones                              */
/* Tabs: one full-width bar, every tab visible (salos-credits.js sets the   */
/*       short names and the number of columns).                           */
/* Credits: compact "programme" list — role, then name.                    */
/* Computers are unchanged.                                                 */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Short names exist in the markup on every screen size, shown on phones only */
.salos-tab .salos-tab-short { display: none; }

@media (max-width: 640px) {

	/* ── Tab bar ───────────────────────────────────────────────────────── */
	.salos-tabs[data-salos-tabs] {
		display: grid;
		grid-template-columns: repeat(var(--salos-tab-cols, 5), minmax(0, 1fr));
		gap: 3px;
		margin: 1.75rem 0 0;
		padding: 4px;
		background: #ffffff;
		border: 1px solid #d5d9e3;
		border-radius: 10px;
	}

	.salos-tabs[data-salos-tabs] .salos-tab {
		margin: 0;
		min-height: 44px;
		padding: 0 4px;
		border: 0;
		border-radius: 7px;
		background: transparent;
		color: #0a1432;
		font-size: 12.5px;
		font-weight: 500;
		letter-spacing: 0;
		text-transform: none;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	.salos-tabs[data-salos-tabs] .salos-tab--active {
		background: var(--salos-hdr-navy, #0a1432);
		color: #ffffff;
		font-weight: 700;
	}

	.salos-tabs[data-salos-tabs] .salos-tab-full { display: none; }
	.salos-tabs[data-salos-tabs] .salos-tab-short { display: inline; }

	.salos-tabs[data-salos-tabs] .salos-tab:focus-visible {
		outline: 2px solid var(--salos-hdr-coral, #ff6b4a);
		outline-offset: 1px;
	}

	.salos-tab-panel { padding-top: 1.25rem; }

	/* ── Credits as a programme list ───────────────────────────────────── */
	.salos-credits-list .salos-person-grid {
		display: block;
		margin-bottom: 0.75rem;
	}

	.salos-credits-list .salos-person-card {
		display: grid;
		grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
		column-gap: 12px;
		align-items: baseline;
		padding: 9px 0;
		background: none;
		border: 0;
		border-bottom: 1px solid #e2e4ea;
		border-radius: 0;
	}

	.salos-credits-list .salos-person-role {
		order: -1;
		margin: 0;
		font-size: 10.5px;
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: #5f677d;
		line-height: 1.4;
	}

	.salos-credits-list .salos-person-name {
		font-size: 14px;
		font-weight: 600;
		color: #0a1432;
		line-height: 1.4;
	}

	.salos-credits-list .salos-cast-note {
		display: block;
		margin-top: 2px;
		font-size: 10.5px;
		letter-spacing: 0;
		text-transform: none;
		color: #7a8197;
	}

	.salos-credits-list .salos-section-heading {
		margin-top: 1.5rem !important;
		margin-bottom: 0.25rem !important;
		border-bottom: 0;
	}
}
