/*
 * Platform picker (/platform) — CR #34637.
 * Scoped under the .repo-* prefix so the pages that share styles.css
 * (index.jsp, platform/ios.jsp, info.jsp, error.jsp) are unaffected.
 * The page background stays the global body colour, #CAC9CF.
 */

.repo-page {
	box-sizing: border-box;
	width: 100%;
}

.repo-page *,
.repo-page *:before,
.repo-page *:after {
	box-sizing: inherit;
}

/* ---------- top bar ---------- */

.repo-topbar {
	background: #0B1533;
	color: #fff;
	padding: 1.1rem 1.5rem;
}

.repo-topbar-inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.repo-topbar img {
	width: 34px;
	height: 34px;
	flex: none;
	display: block;
}

.repo-topbar-title {
	font-size: 1.3rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.2;
}

/* ---------- page body ---------- */

.repo-main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0rem 1.5rem 3rem;
	text-align: left;
}

/* deliberately one size at every breakpoint - do not add responsive scaling */
.repo-title {
	margin: 1rem 0rem;
	font-size: 1rem;
	line-height: 1.15;
	font-weight: 700;
	color: #0B1533;
	text-align: left;
}

.repo-section-title {
	margin: 2.6rem 0 1.2rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #0B1533;
}

/* ---------- card grid ---------- */

.repo-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.repo-card {
	position: relative;
	display: block;
	padding: 1.75rem 1.25rem 3.1rem;
	background: #fff;
	border: 1px solid #E3E4E9;
	border-radius: 14px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.repo-card:hover,
.repo-card:focus {
	border-color: #2743E3;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .10);
	outline: none;
}

.repo-card:active {
	transform: translateY(1px);
}

.repo-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: #E7F7EC;
}

.repo-card-icon img {
	width: 46px;
	height: 46px;
	display: block;
}

.repo-card-icon.is-blue {
	background: #E3F0FD;
}

.repo-card-icon.is-grey {
	background: #EDEEF1;
}

.repo-card-icon.is-plain {
	background: #fff;
	border: 1px solid #E3E4E9;
}

.repo-card-body {
	display: block;
}

.repo-card-title {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0B1533;
}

.repo-card-desc {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.82rem;
	font-weight: 400;
	line-height: 1.4;
	color: #3B5BDB;
}

.repo-card-arrow {
	position: absolute;
	right: 1.25rem;
	bottom: 1rem;
	font-size: 1.15rem;
	line-height: 1;
	color: #2743E3;
}

/* ---------- bottom note ---------- */

.repo-note {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 2.5rem;
	padding-top: 1.1rem;
	border-top: 1px solid #B4B3BA;
	font-size: 0.88rem;
	font-weight: 400;
	color: #5B5B66;
}

.repo-note img {
	width: 17px;
	height: 17px;
	flex: none;
	display: block;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
	.repo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.repo-topbar {
		padding: 0.9rem 1rem;
	}
	.repo-topbar img {
		width: 28px;
		height: 28px;
	}
	.repo-topbar-title {
		font-size: 1.05rem;
	}
	.repo-section-title {
		font-size: 1.25rem;
	}
	.repo-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.85rem;
	}
	/* single column: switch each card to a horizontal row so the list stays
	   short enough to scan without a lot of scrolling */
	.repo-card {
		display: flex;
		align-items: center;
		gap: 1rem;
		min-height: 84px;
		padding: 1rem 2.75rem 1rem 1rem;
		text-align: left;
	}
	.repo-card-icon {
		width: 56px;
		height: 56px;
		margin: 0;
		flex: none;
	}
	.repo-card-icon img {
		width: 30px;
		height: 30px;
	}
	.repo-card-body {
		min-width: 0;
	}
	.repo-card-arrow {
		right: 1rem;
		top: 50%;
		bottom: auto;
		transform: translateY(-50%);
	}
	.repo-card:active {
		transform: none;
	}
	.repo-note {
		margin-top: 1.8rem;
		font-size: 0.8rem;
	}
}

@media (max-width: 360px) {
	.repo-topbar-title {
		font-size: 0.95rem;
	}
	.repo-card {
		padding-right: 2.4rem;
	}
	.repo-card-title {
		font-size: 0.98rem;
	}
}
