/* Armenian font checker: upload, preview and coverage report */

.ft-page { color: var(--f-text); font-size: 15px; line-height: 1.55; }

.ft-head { padding-top: 18px; padding-bottom: 8px; }
.ft-head h1 { margin: 0; font-size: 42px; font-weight: 700; letter-spacing: -0.02em; }
.ft-intro { margin: 0; font-size: 17px; line-height: 1.65; color: rgba(32, 30, 29, 0.72); }

.ft-work { padding-top: 24px; padding-bottom: 48px; }
.ft-work .f-alert { margin-bottom: 16px; }

/* ── dropping a font in ────────────────────────────────────── */

.ft-drop {
	max-width: 560px;
	border: 2px dashed var(--f-text);
	background: #faf9f8;
	padding: 30px 24px 26px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 9px;
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease;
}
.ft-drop:hover,
.ft-drop.is-over { border-color: var(--f-accent); background: var(--f-accent-100); }
.ft-drop svg { color: var(--f-accent); flex: none; }
.ft-drop-title { font-weight: 700; font-size: 16px; }
.ft-drop-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--f-neutral-600); max-width: 46ch; }
.ft-drop input[type="file"] { display: none; }
.ft-drop[hidden] { display: none; }

/* the card that replaces the drop zone, shaped like the converter's */
.ft-file {
	max-width: 560px;
	border: 2px solid var(--f-text);
	background: #fff;
}
.ft-file[hidden] { display: none; }
.ft-file-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 2px solid var(--f-divider);
}
.ft-file-icon {
	position: relative;
	flex: none;
	width: 40px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--f-accent);
}
.ft-file-icon svg { width: 40px; height: 46px; }
.ft-file-ext {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	margin: 0 4px;
	padding: 2px 0;
	background: var(--f-accent);
	color: #fff;
	font-size: 8.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: uppercase;
}
.ft-file-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ft-file-name {
	font-weight: 700;
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ft-file-sub { font-size: 12.5px; color: var(--f-neutral-600); }
.ft-file-x {
	margin-left: auto;
	flex: none;
	border: none;
	background: none;
	color: var(--f-neutral-600);
	font-size: 22px;
	line-height: 1;
	padding: 2px 6px;
	cursor: pointer;
}
.ft-file-x:hover { color: var(--f-accent); background: var(--f-accent-100); }

.ft-file-stage { padding: 14px; }
.ft-file-stage[hidden] { display: none; }
.ft-file-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--f-neutral-600); }
.ft-file-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.ft-progress {
	height: 10px;
	border: 2px solid var(--f-text);
	background: #fff;
	overflow: hidden;
}
.ft-progress-fill {
	height: 100%;
	width: 0;
	background: var(--f-accent);
	transition: width 0.25s ease;
}
#ftWorking .ft-file-note { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; }
.ft-progress-pct { margin-left: auto; font-variant-numeric: tabular-nums; flex: none; }

/* the one-line answer, coloured by the verdict from the JS */
.ft-verdict {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	border: 2px solid var(--f-text);
	padding: 16px 18px;
	margin-top: 14px;
}
.ft-verdict[hidden] { display: none; }
.ft-verdict-icon {
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}
.ft-verdict-title { font-size: 17px; font-weight: 700; }
.ft-verdict-body { margin: 5px 0 0; font-size: 13.5px; line-height: 1.65; color: rgba(32, 30, 29, 0.75); }
.ft-verdict-body a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* ── preview, below the report ─────────────────────────────── */

.ft-preview {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 2px solid var(--f-divider);
}
.ft-preview[hidden] { display: none; }
.ft-preview-head h2 { margin: 0 0 5px; font-size: 25px; font-weight: 700; letter-spacing: -0.01em; }
.ft-preview-head p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--f-neutral-600); max-width: 78ch; }

.ft-preview-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 14px 0 10px;
}
.ft-size { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--f-neutral-600); }
.ft-size input[type="range"] { width: 150px; accent-color: var(--f-accent); }
.ft-size-value { font-weight: 700; color: var(--f-text); min-width: 42px; }

.ft-samples { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-sample-btn {
	border: 1px solid rgba(32, 30, 29, 0.35);
	background: #fff;
	color: var(--f-neutral-600);
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 600;
	padding: 5px 9px;
	cursor: pointer;
	transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.ft-sample-btn:hover { color: var(--f-accent); border-color: var(--f-accent); background: var(--f-accent-100); }

.ft-text { min-height: 0; height: 62px; font-size: 14px; }
.ft-specimen {
	border: 2px solid var(--f-text);
	background: #fff;
	padding: 26px 22px;
	margin-top: 10px;
	font-size: 48px;
	line-height: 1.35;
	overflow-wrap: break-word;
	min-height: 150px;
}

/* ── the report ────────────────────────────────────────────── */

.ft-report { padding-top: 34px; }
.ft-report[hidden] { display: none; }
.ft-report-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.ft-report h2 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -0.01em; }
.ft-report h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.ft-report-summary { font-size: 13px; font-weight: 600; color: var(--f-neutral-600); }
.ft-report .sup-rule { margin: 12px 0 14px; }

.ft-legend { display: flex; gap: 16px; align-items: center; font-size: 12px; color: var(--f-neutral-600); }
.ft-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.ft-swatch { width: 11px; height: 11px; border: 1px solid; flex: none; }
.ft-swatch--present { border-color: #bfe0cb; background: #eaf6ee; }
.ft-swatch--blank { border-color: #e6cfa8; background: #fdf4e7; }
.ft-swatch--missing { border-color: #e8c2be; background: #fceceb; }

.ft-keyboard { border: 2px solid var(--f-text); background: #fff; padding: 14px 18px; margin-top: 16px; }
.ft-keyboard--ok { border-left: 8px solid #0f7a3d; }
.ft-keyboard--bad { border-left: 8px solid #c0271f; }
.ft-keyboard--warn { border-left: 8px solid #a8620a; }
.ft-keyboard strong { display: block; font-size: 15.5px; }
.ft-keyboard p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--f-neutral-600); }

.ft-group { margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(32, 30, 29, 0.16); }
.ft-group-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.ft-group-head h5 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
.ft-group-count { font-size: 11.5px; font-weight: 600; color: var(--f-neutral-600); }
.ft-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--f-neutral-600); max-width: 78ch; }
.ft-note--blank { margin-top: 10px; padding-left: 10px; border-left: 3px solid #a8620a; color: #a8620a; }

/* one cell per character: what it draws, and its code point underneath */
.ft-cells { display: flex; flex-wrap: wrap; gap: 5px; }
.ft-cell {
	width: 46px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 6px 2px 5px;
	border: 1px solid;
	cursor: default;
}
.ft-cell-char { font-size: 20px; line-height: 1.1; }
.ft-cell-code { font-size: 9px; letter-spacing: 0.02em; opacity: 0.75; }
.ft-cell.is-present { border-color: #bfe0cb; background: #eaf6ee; color: #0f7a3d; }
.ft-cell.is-missing { border-color: #e8c2be; background: #fceceb; color: #c0271f; }
.ft-cell.is-missing .ft-cell-char { text-decoration: line-through; }

/* mapped but empty: the character is drawn hollow, since the font draws nothing */
.ft-cell.is-blank { border-color: #e6cfa8; background: #fdf4e7; color: #a8620a; }
.ft-cell.is-blank .ft-cell-char { opacity: 0.35; }

.ft-two-col {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 34px;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 2px solid var(--f-divider);
}
.ft-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ft-table td { padding: 7px 6px; border-bottom: 1px solid rgba(32, 30, 29, 0.14); vertical-align: top; }
.ft-table td:first-child { width: 42%; color: var(--f-neutral-600); }
.ft-license { margin-top: 14px; font-size: 13px; }
.ft-license summary { cursor: pointer; font-weight: 600; }
.ft-license p { margin: 8px 0 0; color: var(--f-neutral-600); line-height: 1.6; }


/* the offer is a different kind of thing from the warning above it, so it gets
   its own box and its own colour rather than reading as more bad news */
.ft-legacy-offer {
	margin: 0 0 30px;
	border: 2px solid #1f5fa8;
	background: #eef4fb;
	padding: 16px 18px 18px;
}
.ft-legacy-offer strong { display: block; font-size: 16px; color: #16457a; margin-bottom: 6px; }
.ft-legacy-offer p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.65; color: #2c4762; }
.ft-legacy-offer .ft-btn { border-color: #1f5fa8; background: #fff; color: #16457a; }
.ft-legacy-offer .ft-btn:hover { box-shadow: 4px 4px 0 #16457a; color: #16457a; }

/* ── buttons, shared with the blocks below ─────────────────── */

.ft-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 2px solid transparent;
	background: none;
	color: var(--f-text);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	padding: 8px 11px;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}
.ft-btn--outline { border-color: var(--f-text); background: #fff; }
.ft-btn--outline:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--f-text); color: var(--f-accent); }
.ft-btn--accent { border-color: var(--f-accent); color: var(--f-accent); }
.ft-btn--ghost { color: var(--f-neutral-600); }
.ft-btn--ghost:hover { color: #c0271f; background: #fdeceb; }

/* ── about and FAQ ─────────────────────────────────────────── */

.ft-below { border-top: 2px solid var(--f-divider); }
.ft-below-grid {
	padding-top: 40px;
	padding-bottom: 50px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
	gap: 56px;
	align-items: start;
}
.ft-about h2,
.ft-faq h2 { margin: 0; font-size: 27px; font-weight: 700; }
.ft-about p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.75; }
.ft-about-note { color: var(--f-neutral-600); font-size: 13px; line-height: 1.65; }
.ft-about-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.ft-faq-item { border-top: 2px solid var(--f-divider); padding: 14px 0 16px; }
.ft-faq-item:last-child { padding-bottom: 0; }
.ft-faq-q { font-weight: 800; font-size: 15.5px; }
.ft-faq-item p { margin: 7px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--f-neutral-600); }
.ft-faq-item a { color: var(--f-accent); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 991.98px) {
	.ft-below-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.ft-two-col { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767.98px) {
	.ft-head h1 { font-size: 32px; }
	.ft-intro { font-size: 15px; }
	.ft-specimen { font-size: 34px; padding: 20px 16px; min-height: 110px; }
	.ft-cell { width: 42px; }
}
