/*!
 * @Rank – Schema.org / JSON-LD Generator: the tool's own rules.
 *
 * The palette, header, cards, buttons, notices and toast all come from
 * assets/css/atrank-core.css. Only what is specific to this tool is here, and
 * every rule is anchored on .atrank-schema.
 *
 * Two rules here are function rather than decoration:
 *   · a field Google IGNORES is dimmed and struck through in its label, because
 *     the whole argument of this tool is that some perfectly valid properties
 *     do nothing — and an argument made only in a footnote is not made;
 *   · a type that no longer produces a rich result gets an amber banner above
 *     its fields rather than a note below them, so nobody fills the form in
 *     first and reads the bad news afterwards.
 */

.atrank-schema .atrank-schema-panes {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	align-items: start;
}
@media (min-width: 980px) {
	.atrank-schema .atrank-schema-panes {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}
}
.atrank-schema .atrank-schema-col {
	display: grid;
	gap: 10px;
	min-width: 0;
	align-content: start;
}

.atrank-schema .atrank-cardhead {
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
}
.atrank-schema .atrank-cardhead h2 {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--accent);
}

/* Above the fields, not below them: nobody should fill in a form and then
   learn the type stopped producing a result in 2023. */
.atrank-schema .atrank-schema-about {
	margin: 0 0 10px;
	padding: 7px 10px;
	border-radius: var(--r);
	border: 1px solid var(--line);
	background: var(--panel2);
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}
.atrank-schema .atrank-schema-about.is-limited,
.atrank-schema .atrank-schema-about.is-no {
	background: var(--warn-soft);
	border-color: var(--warn);
	color: var(--warn);
	font-weight: 600;
}

/* ── The fields ───────────────────────────────────────────────────────── */
.atrank-schema .atrank-schema-fields {
	display: grid;
	gap: 9px;
}
.atrank-schema .atrank-schema-field {
	display: grid;
	gap: 3px;
	min-width: 0;
}
.atrank-schema .atrank-schema-fieldhead {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 8px;
}
.atrank-schema .atrank-schema-fieldlabel {
	font-size: 12px;
	font-weight: 600;
	color: var(--txt);
}
/* The argument of the tool, made where it is read. */
.atrank-schema .atrank-schema-field.is-ignored .atrank-schema-fieldlabel {
	color: var(--dim);
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.atrank-schema .atrank-schema-level {
	padding: 0 6px;
	border-radius: var(--r);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.atrank-schema .atrank-schema-level.is-required {
	background: var(--accent);
	color: var(--on-accent);
}
.atrank-schema .atrank-schema-level.is-recommended {
	background: var(--panel2);
	color: var(--dim);
	border: 1px solid var(--line2);
}
.atrank-schema .atrank-schema-level.is-ignored {
	background: var(--warn-soft);
	color: var(--warn);
}

.atrank-schema .atrank-schema-input,
.atrank-schema .atrank-schema-area,
.atrank-schema .atrank-schema-select {
	width: 100%;
	min-width: 0;
	padding: 6px 9px;
	border: 1px solid var(--line2);
	border-radius: var(--r);
	background: var(--panel);
	color: var(--txt);
	font: inherit;
	font-size: 12.5px;
	line-height: 1.5;
}
.atrank-schema .atrank-schema-select {
	max-width: 24ch;
	width: auto;
}
.atrank-schema .atrank-schema-area {
	resize: vertical;
	font-family: var(--mono);
	font-size: 12px;
}
.atrank-schema .atrank-schema-input:focus,
.atrank-schema .atrank-schema-area:focus,
.atrank-schema .atrank-schema-select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: var(--ring);
}
.atrank-schema .atrank-schema-field.is-ignored .atrank-schema-input {
	background: var(--inset);
}

.atrank-schema .atrank-schema-why {
	font-size: 11px;
	line-height: 1.45;
	color: var(--warn);
}

/* ── The output ───────────────────────────────────────────────────────── */
.atrank-schema .atrank-schema-output {
	margin: 0;
	padding: 9px 11px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--inset);
	color: var(--txt);
	font-family: var(--mono);
	font-size: 12px;
	line-height: 1.55;
	white-space: pre;
	overflow-x: auto;
	max-height: 44vh;
	overflow-y: auto;
}

/* ── The audit ────────────────────────────────────────────────────────── */
.atrank-schema .atrank-schema-audit {
	display: grid;
	gap: 3px;
}
.atrank-schema .atrank-schema-auditrow {
	display: grid;
	grid-template-columns: 2ch minmax(0, 1fr) auto;
	gap: 9px;
	align-items: baseline;
	padding: 3px 9px;
	border-radius: var(--r);
	background: var(--panel2);
}
.atrank-schema .atrank-schema-auditmark {
	font-weight: 700;
	color: var(--dim);
}
.atrank-schema .atrank-schema-auditrow.is-present .atrank-schema-auditmark {
	color: var(--ok);
}
.atrank-schema .atrank-schema-auditrow.is-required:not(.is-present) {
	background: var(--err-soft);
}
.atrank-schema .atrank-schema-auditrow.is-required:not(.is-present) .atrank-schema-auditmark {
	color: var(--err);
}
.atrank-schema .atrank-schema-auditrow.is-ignored.is-present {
	background: var(--warn-soft);
}
.atrank-schema .atrank-schema-auditname {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--txt);
	overflow-wrap: anywhere;
}
.atrank-schema .atrank-schema-auditlevel {
	font-size: 10.5px;
	color: var(--dim);
	white-space: nowrap;
}
.atrank-schema .atrank-schema-auditrow.is-ignored .atrank-schema-auditlevel {
	color: var(--warn);
	font-weight: 700;
}
