body.mt-tool-page .wp-block-post-title {
	max-width: var(--wp--custom--container--tool);
	margin-left: auto;
	margin-right: auto;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content {
	max-width: var(--wp--custom--container--tool);
	margin-left: auto;
	margin-right: auto;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--custom--shadow--xs);
	padding: clamp(1.5rem, 1.1rem + 2vw, 2.75rem);
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content > *:first-child {
	margin-top: 0;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content > *:last-child {
	margin-bottom: 0;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content h2 {
	font-size: var(--wp--preset--font-size--x-large);
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content h2:first-child {
	margin-top: 0;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content h3 {
	font-size: var(--wp--preset--font-size--large);
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content p {
	line-height: 1.7;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content hr {
	border: none;
	border-top: 1px solid var(--wp--preset--color--line);
	margin: 2rem 0;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content label {
	display: inline-block;
	font-weight: var(--wp--custom--font-weight--medium);
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 0.35rem;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="text"],
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="email"],
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="url"],
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="search"],
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="number"],
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="password"],
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="file"],
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content select,
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
	padding: 0.7rem 0.9rem;
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	min-height: 2.75rem;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content textarea {
	min-height: 8rem;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input:focus-visible,
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content select:focus-visible,
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content textarea:focus-visible,
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content button:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="checkbox"],
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="radio"] {
	width: 1.15em;
	height: 1.15em;
	accent-color: var(--wp--preset--color--brand);
	margin-right: 0.4em;
	vertical-align: middle;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content button,
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="submit"],
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--semibold);
	min-height: 2.75rem;
	padding: 0.7rem 1.5rem;
	border: none;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--white);
	cursor: pointer;
	box-shadow: var(--wp--custom--shadow--xs);
	transition: background-color var(--wp--custom--duration--base) ease;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content button:hover,
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="submit"]:hover,
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content input[type="button"]:hover {
	background: var(--wp--preset--color--brand-dark);
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content .mt-field {
	margin-bottom: 1.1rem;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content .mt-result {
	margin-top: 1.25rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--mist);
	font-size: var(--wp--preset--font-size--small);
	word-break: break-word;
	overflow-wrap: anywhere;
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content table th,
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content table td {
	border: 1px solid var(--wp--preset--color--line);
	padding: 0.6rem 0.75rem;
	text-align: left;
}

body.mt-tool-page .mt-tool-support {
	max-width: var(--wp--custom--container--tool);
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 480px) {
	body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content {
		padding: 1.25rem;
		border-radius: var(--wp--custom--radius--md);
	}
}

body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content img,
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content iframe,
body.mt-tool-page:not(.mt-tool-app-owned) .wp-block-post-content svg {
	max-width: 100%;
	height: auto;
}
