/* english-fonts – compact cells, 4-up desktop / 2-up mobile */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	background: #fff;
	color: #111;
	font-family: Arimo, Arial, sans-serif;
}

.page-wrap {
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	padding: 0 12px 24px;
	overflow-x: hidden;
}

.ads-shell {
	width: 950px;
	max-width: 100%;
	margin: 0 auto;
	position: relative;
}

.side-ad-left,
.side-ad-right {
	position: absolute;
	top: 30px;
	width: 160px;
	height: 600px;
}

.side-ad-left { left: -200px; }
.side-ad-right { right: -200px; }

.mobile-ad {
	margin: 0 auto 6px;
	text-align: center;
	display: none;
	max-width: 100%;
	overflow: hidden;
}

.top-menu-frame {
	max-width: 100%;
}

h1 {
	margin: 0 0 14px;
	font-size: 24px;
	line-height: 1.2;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.tool-card {
	background: #fff;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

.fc-label {
	display: block;
	margin: 0 auto 8px;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.4;
}

.fc-input {
	display: block;
	width: 42%;
	max-width: 380px;
	min-width: 0;
	height: 40px;
	margin: 0 auto 12px;
	padding: 0 12px;
	border: 1px solid rgba(26, 26, 26, 0.2);
	border-radius: 4px;
	outline: none;
	background: #fff;
	color: #1a1a1a;
	box-sizing: border-box;
	box-shadow: 0 1px 0 rgba(26, 26, 26, 0.1);
	font: inherit;
	font-size: 14px;
	line-height: 40px;
	direction: ltr;
	text-align: left;
}

.fc-input:focus {
	border-color: rgba(26, 26, 26, 0.45);
	box-shadow: 0 1px 0 rgba(26, 26, 26, 0.14);
}

.fc-input::placeholder {
	color: #999;
	direction: rtl;
	text-align: right;
}

.font-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	max-width: 100%;
}

.font-section {
	border: 1px solid rgba(26, 26, 26, 0.2);
	border-radius: 8px;
	background: #fff;
	padding: 12px 10px 14px;
	height: auto;
	min-height: 118px;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.font-section-top {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-height: 22px;
	margin: 0;
	padding: 0 26px;
	min-width: 0;
}

.font-section-title {
	font-size: 12px;
	font-weight: 400;
	color: rgba(26, 26, 26, 0.85);
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.copy-btn {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #555;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	-webkit-tap-highlight-color: transparent;
}

.copy-btn:hover {
	background: #f3f3f3;
	color: #111;
}

.copy-btn.is-copied {
	color: #1a7f37;
}

.copy-icon {
	display: block;
	line-height: 0;
}

.copy-label {
	display: none;
}

.font-preview {
	flex: 1 1 auto;
	margin: 0;
	padding: 10px 2px 2px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	direction: ltr;
	text-align: center;
	word-break: break-word;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
	min-height: 44px;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 900px) {
	.page-wrap {
		max-width: 100%;
		padding: 0 10px 20px;
	}

	.top-menu-frame {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
	}

	.ads-shell {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
	}

	.mobile-ad {
		display: block;
	}

	.font-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}

	h1 {
		font-size: 18px;
		margin: 0 0 12px;
	}

	.fc-input {
		width: 70%;
		max-width: 260px;
		min-width: 0;
		height: 36px;
		line-height: 36px;
		font-size: 14px;
		margin-bottom: 10px;
	}

	.font-section {
		min-height: 100px;
		height: auto;
		padding: 10px 8px 12px;
	}

	.font-preview {
		font-size: 16px;
		min-height: 36px;
	}
}

.fonts-content {
	max-width: 850px;
	width: 100%;
	margin: 35px auto 20px;
	padding: 0 15px;
	line-height: 1.8;
	font-size: 16px;
	color: #222;
	text-align: right;
	overflow-wrap: anywhere;
	box-sizing: border-box;
}

.fonts-content h2 {
	font-size: 24px;
	line-height: 1.4;
	margin: 32px 0 12px;
	color: #111;
}

.fonts-content h3 {
	font-size: 19px;
	line-height: 1.5;
	margin: 24px 0 7px;
	color: #222;
}

.fonts-content p {
	margin: 0 0 15px;
}

.fonts-content ul,
.fonts-content ol {
	margin: 10px 0 20px;
	padding-right: 25px;
}

.fonts-content li {
	margin-bottom: 7px;
}

@media (max-width: 600px) {
	.fonts-content {
		font-size: 15px;
		line-height: 1.75;
		padding: 0 12px;
	}

	.fonts-content h2 {
		font-size: 21px;
	}

	.fonts-content h3 {
		font-size: 18px;
	}
}
