/* Rules from index-CeIXbdJzv15.css that are not in v13 (React pages must keep the v13 href). */

/* Picture Word Match: keep cards, pictures, and captions inside the page. */
.kg-game,
.kg-pics,
.kg-words,
.kg-pics .kg-card {
	max-width: 100%;
	min-width: 0;
}
.kg-game {
	overflow-x: clip;
}
.kg-pics {
	width: 100%;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)) !important;
}
.kg-pics.kg-pics-4-5 {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.kg-pics.kg-pics-6-7,
.kg-pics.kg-pics-8-10 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr)) !important;
}
.kg-pics .kg-card {
	box-sizing: border-box;
	height: auto;
	overflow: hidden;
	padding: 8px !important;
	gap: 6px !important;
}
.kg-pics .kg-card img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: min(34vw, 168px) !important;
	aspect-ratio: 1 / 1;
	object-fit: contain !important;
	margin: 0 auto !important;
}
.kg-card-label,
.kg-meaning {
	display: block;
	max-width: 100%;
	overflow-wrap: anywhere;
	white-space: normal;
	padding: 4px 6px 6px;
}
@media (min-width: 768px) {
	.kg-pics .kg-card img {
		max-height: 180px !important;
	}
}
@media (min-width: 1280px) {
	.kg-pics .kg-card img {
		max-height: 200px !important;
	}
	.kg-pics.kg-pics-8-10 {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 700px) {
	.kg-pics.kg-pics-6-7,
	.kg-pics.kg-pics-8-10 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Fit the header row, including the menu button, inside the viewport. */
.site-header,
.header-inner {
	max-width: 100%;
	min-width: 0;
}
.header-inner {
	width: 100%;
}
@media (max-width: 480px) {
	.header-inner {
		padding-inline: 8px;
		gap: 6px;
	}
	.brand {
		flex: 1 1 auto;
		min-width: 0;
		max-width: none;
	}
	.brand-logo-lockup {
		min-width: 0;
		gap: 4px;
	}
	.brand-word {
		font-size: clamp(13px, 4.1vw, 18px);
	}
	.header-pill {
		min-height: 44px;
		padding: 6px 10px;
		font-size: 15px;
		gap: 4px;
	}
	.menu-button {
		flex: 0 0 auto;
		min-width: 44px;
		min-height: 44px;
		padding: 6px !important;
	}
}
.hero-art {
	max-width: 100%;
}

/* Page Playground review fixes (Nov 2026). */
/* Premium plan table: stacked cards on narrow phones instead of a sideways-scrolling table. */
@media (max-width: 640px) {
	.prem-table-wrap { overflow: visible; }
	.prem-table, .prem-table tbody, .prem-table tr, .prem-table th, .prem-table td { display: block; width: 100%; box-sizing: border-box; }
	.prem-table { background: transparent; border-radius: 0; }
	.prem-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.prem-table tbody tr { background: #fff; border: 1px solid #eee6d8; border-radius: 16px; margin: 0 0 12px; overflow: hidden; }
	.prem-table th[scope=row] { background: #243d4f; color: #fff; padding: 10px 14px; border-bottom: 0; }
	.prem-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: right; padding: 9px 14px; }
	.prem-table td::before { flex: 0 0 auto; text-align: left; font-weight: 800; color: #243d4f; }
	.prem-table td:nth-of-type(1)::before { content: "Visitor"; }
	.prem-table td:nth-of-type(2)::before { content: "Free account"; }
	.prem-table td:nth-of-type(3)::before { content: "Premium"; color: #d9622b; }
	.prem-table td:last-child { border-bottom: 0; }
}

/* Weekly "new stories" email is not sent yet: hide the sign-up opt-in (it starts unticked). */
.prem-optin { display: none !important; }
