/* The same two-pane rhythm as the main converter, with a clear direction control. */
.aksharkosh-krutidev {
	margin: 1.5em 0;
}
.aksharkosh-krutidev .kd-font-choice {
	display: flex;
	align-items: center;
	gap: 0.65em;
	margin-bottom: 1em;
}
.aksharkosh-krutidev .kd-font-choice label {
	font-weight: 600;
}
.aksharkosh-krutidev .kd-font-choice select,
.aksharkosh-krutidev .ak-legacy-font select {
	/* the scripts page's pill select */
	max-width: 100%;
	padding: 0.5em 0.85em;
	border: 1px solid var(--dl-accent, #3b47c4);
	border-radius: 999px;
	background: var(--dl-page, #fff);
	color: var(--dl-accent, #3b47c4);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
}
.aksharkosh-krutidev .kd-panes {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: start;
	gap: 0.75em;
}
.aksharkosh-krutidev .kd-swap-wrap {
	align-self: center;
}
.aksharkosh-krutidev .kd-pane {
	min-width: 0;
}
.aksharkosh-krutidev .kd-pane-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5em;
	margin-bottom: 0.35em;
	font-weight: 600;
}
.aksharkosh-krutidev .kd-pane-title label {
	margin: 0;
	font: inherit;
}
.aksharkosh-krutidev textarea {
	box-sizing: border-box;
	width: 100%;
	height: 22rem; /* rem, not em: the Chanakya box has a larger font, and both boxes must match */
	min-height: 8em;
	padding: 0.75em;
	border: 1px solid var(--aksharkosh-border, rgba(128, 128, 128, 0.5));
	border-radius: 6px;
	background: var(--aksharkosh-pane-bg, transparent);
	color: inherit;
	font-family: inherit;
	font-size: 1.1em;
	line-height: 1.7;
	resize: vertical;
}
.aksharkosh-krutidev textarea:focus-visible,
.aksharkosh-krutidev .kd-font-choice select:focus-visible,
.aksharkosh-krutidev .ak-legacy-font select:focus-visible,
.aksharkosh-krutidev .ak-legacy-pick:focus-within,
.aksharkosh-krutidev .kd-button:focus-visible {
	outline: 2px solid var(--aksharkosh-focus, rgba(37, 99, 235, 0.6));
	outline-offset: 2px;
}
.aksharkosh-krutidev textarea[readonly] {
	background: var(--aksharkosh-pane-bg, rgba(128, 128, 128, 0.04));
}
.aksharkosh-krutidev textarea[data-kd-font="krutidev"] {
	font-family: "Kruti Dev 010", "DevLys 010", "Kruti Dev", serif;
}
.aksharkosh-krutidev textarea[data-kd-font="chanakya"] {
	font-family: "Chanakya", serif;
	font-size: 1.5em; /* Chanakya draws small for its size */
}
.aksharkosh-krutidev .kd-button {
	/* the converter's pill button (theme site.css .dl-copy) */
	padding: 0.2em 0.85em;
	border: 1px solid var(--dl-accent, #3b47c4);
	border-radius: 999px;
	background: var(--dl-page, #fff);
	color: var(--dl-accent, #3b47c4);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.aksharkosh-krutidev .kd-button:hover {
	background: var(--dl-accent, #3b47c4);
	color: #fff;
}
.aksharkosh-krutidev .kd-swap {
	white-space: nowrap;
}
.aksharkosh-krutidev .kd-swap span {
	font-size: 1.4em;
	vertical-align: -0.05em;
}
.aksharkosh-krutidev .kd-note,
.aksharkosh-krutidev .kd-status {
	margin: 0.65em 0 0;
	font-size: 0.9em;
}
.aksharkosh-krutidev .kd-note {
	opacity: 0.75;
}
.aksharkosh-krutidev .kd-status:empty {
	display: none;
}
.aksharkosh-krutidev .aksharkosh-files {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--dl-border, #d8dce8);
}
.aksharkosh-krutidev .ak-legacy-font {
	display: block;
	margin-bottom: 0.8rem;
}
.aksharkosh-krutidev .ak-legacy-font select {
	margin-left: 0.4rem;
}
.aksharkosh-krutidev .aksharkosh-files .ak-legacy-pick {
	display: inline-block;
	position: relative;
	padding: 0.4em 0.85em;
	border: 1px solid var(--dl-accent, #3b47c4);
	border-radius: 999px;
	background: var(--dl-page, #fff);
	color: var(--dl-accent, #3b47c4);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.aksharkosh-krutidev .ak-legacy-pick:hover {
	background: var(--dl-accent, #3b47c4);
	color: #fff;
}
.aksharkosh-krutidev .ak-legacy-pick input {
	position: absolute;
	width: 1px;
	height: 1px;
	clip-path: inset(50%);
}
.aksharkosh-krutidev .ak-legacy-file-note {
	margin: 0.4em 0 0;
	font-size: 0.9em;
}
@media (max-width: 700px) {
	.aksharkosh-krutidev .kd-font-choice {
		align-items: flex-start;
		flex-direction: column;
	}
	.aksharkosh-krutidev .kd-panes {
		grid-template-columns: minmax(0, 1fr);
	}
	.aksharkosh-krutidev .kd-swap-wrap {
		text-align: center;
	}
}
