:root {
	--mto-blue: #0878c9;
	--mto-blue-dark: #0565aa;
	--mto-blue-soft: #eef7ff;
	--mto-orange: #ff8a00;
	--mto-red: #e53935;
	--mto-green: #0aa66a;
	--mto-bg: #f3f5f7;
	--mto-white: #ffffff;
	--mto-line: #d8e2ee;
	--mto-line-soft: #edf1f6;
	--mto-text: #001b3a;
	--mto-muted: #6d7b8c;
	--mto-header-height: 66px;
	--mto-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--mto-bg);
	color: var(--mto-text);
	font-family: var(--mto-font);
	font-size: 16px;
	line-height: 1.55;
	margin: 0;
	text-rendering: optimizeLegibility;
}

body.mto-dark {
	--mto-bg: #101827;
	--mto-white: #162033;
	--mto-line: #2f3b50;
	--mto-line-soft: #243044;
	--mto-text: #f7fbff;
	--mto-muted: #b6c2d1;
	--mto-blue-soft: #102b49;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--mto-blue);
}

button,
input,
select,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}

svg {
	display: block;
	fill: currentColor;
	height: 1em;
	width: 1em;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.mto-container {
	margin: 0 auto;
	max-width: 1120px;
	padding-left: 24px;
	padding-right: 24px;
	width: 100%;
}

.mto-site-header {
	background: var(--mto-white);
	border-bottom: 1px solid var(--mto-line);
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .mto-site-header {
	top: 32px;
}

.mto-header-inner {
	align-items: center;
	display: flex;
	gap: 18px;
	min-height: var(--mto-header-height);
}

.mto-brand {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 10px;
	min-width: max-content;
}

.mto-logo-mark {
	align-items: center;
	background: var(--mto-blue);
	color: #fff;
	display: inline-flex;
	height: 36px;
	justify-content: center;
	width: 36px;
}

.mto-logo-mark svg {
	height: 22px;
	width: 22px;
}

.mto-brand-text {
	display: grid;
}

.mto-brand-name {
	color: var(--mto-text);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.15;
}

.mto-brand-tagline {
	color: var(--mto-muted);
	font-size: 12px;
	line-height: 1.25;
}

.mto-primary-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.mto-primary-menu,
.mto-primary-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mto-primary-menu {
	align-items: center;
	display: flex;
	gap: 2px;
	justify-content: center;
}

.mto-primary-menu li {
	position: relative;
}

.mto-primary-menu a {
	border-bottom: 3px solid transparent;
	color: var(--mto-text);
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	padding: 22px 9px 18px;
	white-space: nowrap;
}

.mto-primary-menu a:hover,
.mto-primary-menu .current-menu-item > a {
	border-bottom-color: var(--mto-blue);
	color: var(--mto-blue);
}

.mto-primary-menu .sub-menu {
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
	display: none;
	left: 0;
	min-width: 230px;
	position: absolute;
	top: 100%;
	z-index: 80;
}

.mto-primary-menu li:hover > .sub-menu,
.mto-primary-menu li:focus-within > .sub-menu {
	display: block;
}

.mto-primary-menu .sub-menu a {
	border-bottom: 1px solid var(--mto-line-soft);
	display: block;
	font-size: 14px;
	line-height: 1.35;
	padding: 10px 12px;
	white-space: normal;
}

.mto-primary-menu .sub-menu li:last-child a {
	border-bottom: 0;
}

.mto-header-tools {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

.mto-icon-button,
.mto-language-button,
.mto-menu-toggle {
	align-items: center;
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
	color: var(--mto-text);
	display: inline-flex;
	height: 36px;
	justify-content: center;
}

.mto-icon-button {
	width: 36px;
}

.mto-language {
	position: relative;
}

.mto-language-button {
	gap: 5px;
	padding: 0 10px;
}

.mto-language-menu {
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
	display: none;
	min-width: 140px;
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 90;
}

.mto-language.is-open .mto-language-menu {
	display: block;
}

.mto-language-menu a {
	border-bottom: 1px solid var(--mto-line-soft);
	display: block;
	font-size: 14px;
	padding: 9px 12px;
}

.mto-language-menu a:last-child {
	border-bottom: 0;
}

.mto-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	width: 40px;
}

.mto-menu-toggle span:not(.screen-reader-text) {
	background: currentColor;
	height: 2px;
	width: 18px;
}

.mto-main {
	padding: 26px 0 42px;
}

.mto-main-layout {
	align-items: start;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr) 320px;
}

.mto-content-stack,
.mto-sidebar {
	display: grid;
	gap: 18px;
}

.mto-sidebar {
	position: sticky;
	top: calc(var(--mto-header-height) + 16px);
}

.mto-card,
.mto-section,
.mto-entry,
.mto-page-heading,
.mto-category-hero,
.mto-tool-hero,
.mto-tool-widget {
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
	border-radius: 2px;
	box-shadow: none;
}

.mto-card,
.mto-entry,
.mto-page-heading,
.mto-category-hero,
.mto-tool-hero,
.mto-tool-widget {
	padding: 18px;
}

.mto-section {
	padding: 18px 20px;
}

.mto-section h2,
.mto-card-title,
.mto-card-heading h2,
.mto-page-heading h1,
.mto-category-hero h1,
.mto-tool-hero h1,
.mto-entry h1,
.mto-hero h1 {
	color: var(--mto-text);
	margin-top: 0;
}

.mto-section h2,
.mto-card-title,
.mto-card-heading h2 {
	border-bottom: 2px solid var(--mto-blue);
	color: var(--mto-blue);
	font-size: 21px;
	line-height: 1.25;
	margin: 0 0 14px;
	padding-bottom: 8px;
}

.mto-page-heading h1,
.mto-category-hero h1,
.mto-tool-hero h1,
.mto-entry h1,
.mto-hero h1 {
	font-size: 34px;
	line-height: 1.15;
	margin-bottom: 8px;
}

.mto-page-heading p,
.mto-category-hero p,
.mto-category-description,
.mto-tool-hero p,
.mto-entry-content,
.mto-section p,
.mto-hero p {
	color: var(--mto-muted);
}

.mto-breadcrumb {
	align-items: center;
	color: var(--mto-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 8px;
}

.mto-breadcrumb a {
	color: var(--mto-blue);
	font-weight: 700;
}

.mto-eyebrow {
	color: var(--mto-blue);
	font-size: 13px;
	font-weight: 800;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.mto-button-primary,
.mto-button-outline,
.mto-read-more,
.mto-newsletter-form button {
	align-items: center;
	border: 1px solid var(--mto-blue);
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
}

.mto-button-primary,
.mto-newsletter-form button {
	background: var(--mto-blue);
	color: #fff;
}

.mto-button-primary:hover,
.mto-newsletter-form button:hover {
	background: var(--mto-blue-dark);
	border-color: var(--mto-blue-dark);
	color: #fff;
}

.mto-button-outline,
.mto-read-more {
	background: var(--mto-white);
	color: var(--mto-blue);
}

.mto-button-outline:hover,
.mto-read-more:hover {
	background: var(--mto-blue);
	color: #fff;
}

input,
select,
textarea {
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
	color: var(--mto-text);
	outline: none;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--mto-blue);
	box-shadow: 0 0 0 2px rgba(8, 120, 201, 0.12);
}

.mto-quick-card {
	border-top: 3px solid var(--mto-blue);
	display: grid;
	gap: 14px;
}

.mto-quick-form {
	align-items: end;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.mto-quick-form .mto-button-primary {
	height: 48px;
	min-height: 48px;
	padding-left: 22px;
	padding-right: 22px;
}

.mto-quick-input-wrap {
	display: grid;
	gap: 7px;
}

.mto-quick-input-wrap label,
.mto-field-grid label {
	color: var(--mto-text);
	font-size: 14px;
	font-weight: 800;
}

.mto-quick-input-wrap input,
.mto-tool-input-row input,
.mto-field-grid input,
.mto-field-grid select {
	min-height: 48px;
	padding: 0 14px;
	width: 100%;
}

.mto-suggestions,
.mto-expression-chips,
.mto-inline-links,
.mto-keyword-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mto-suggestions span {
	color: var(--mto-blue);
	font-size: 14px;
	font-weight: 800;
	padding: 7px 0;
}

.mto-suggestions button,
.mto-expression-chips button,
.mto-inline-links a,
.mto-keyword-list a {
	background: #f2f6fb;
	border: 1px solid var(--mto-line);
	color: var(--mto-blue);
	font-size: 13px;
	font-weight: 800;
	min-height: 34px;
	padding: 0 11px;
}

.mto-result-panel,
.mto-calc-display,
.mto-tool-result {
	background: #f8fbff;
	border: 1px solid var(--mto-line);
	display: grid;
	gap: 8px;
	padding: 14px;
}

.mto-result-panel {
	align-items: center;
	grid-template-columns: minmax(0, 1fr) auto;
}

.mto-result-panel span,
.mto-tool-result span {
	color: var(--mto-muted);
	font-size: 13px;
	font-weight: 800;
}

.mto-result-panel p,
.mto-tool-result p {
	color: var(--mto-muted);
	margin: 0;
	overflow-wrap: anywhere;
}

.mto-result-actions,
.mto-calc-display-actions {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.mto-result-actions strong,
.mto-calc-result,
.mto-tool-result strong {
	color: var(--mto-text);
	font-size: 34px;
	font-weight: 900;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.mto-copy-result {
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
	color: var(--mto-blue);
	height: 34px;
	width: 34px;
}

.mto-calculator {
	border-top: 4px solid var(--mto-orange);
	display: grid;
	gap: 12px;
	padding: 0;
}

.mto-calc-tabs {
	background: #f3f6fa;
	border-bottom: 1px solid var(--mto-line);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mto-calc-tabs button,
.mto-tool-tabs button {
	background: transparent;
	border: 0;
	border-right: 1px solid var(--mto-line);
	color: var(--mto-text);
	font-weight: 800;
	min-height: 48px;
	padding: 0 12px;
}

.mto-calc-tabs button:last-child,
.mto-tool-tabs button:last-child {
	border-right: 0;
}

.mto-calc-tabs button.is-active,
.mto-tool-tabs button.is-active {
	background: var(--mto-blue);
	color: #fff;
}

.mto-calc-display,
.mto-tab-panel,
.mto-key-grid {
	margin-left: 14px;
	margin-right: 14px;
}

.mto-calc-display {
	grid-template-columns: minmax(0, 1fr) auto;
}

.mto-calc-expression {
	color: var(--mto-muted);
	font-size: 14px;
	overflow-wrap: anywhere;
}

.mto-angle-toggle,
.mto-tool-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mto-angle-toggle button,
.mto-tool-actions button,
.mto-mini-key-grid button {
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
	color: var(--mto-text);
	font-weight: 800;
	min-height: 38px;
	padding: 0 10px;
}

.mto-angle-toggle button.is-active,
.mto-angle-toggle button:hover,
.mto-tool-actions button:hover,
.mto-mini-key-grid button:hover {
	background: var(--mto-blue-soft);
	color: var(--mto-blue);
}

.mto-tab-panel,
.mto-key-grid,
.mto-mini-key-grid {
	display: grid;
	gap: 8px;
}

.mto-tab-panel,
.mto-key-grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	padding-bottom: 14px;
}

.mto-mini-key-grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mto-tab-panel[hidden] {
	display: none;
}

.mto-key-grid button,
.mto-tab-panel button {
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
	color: var(--mto-text);
	font-size: 18px;
	font-weight: 900;
	min-height: 52px;
	padding: 0 8px;
}

.mto-key-grid button:hover,
.mto-tab-panel button:hover {
	background: #f7fbff;
	border-color: var(--mto-blue);
	color: var(--mto-blue);
}

.mto-key-operator {
	background: var(--mto-blue-soft) !important;
	color: var(--mto-blue) !important;
}

.mto-key-primary {
	background: var(--mto-blue) !important;
	border-color: var(--mto-blue) !important;
	color: #fff !important;
}

.mto-key-danger {
	background: #fff3f3 !important;
	color: var(--mto-red) !important;
}

.mto-key-muted {
	background: #f4f7fb !important;
	color: var(--mto-blue) !important;
}

.mto-key-wide {
	grid-column: span 2;
}

.mto-benefit-grid,
.mto-steps,
.mto-tool-grid,
.mto-category-tool-grid,
.mto-example-grid,
.mto-related-grid,
.mto-faq-grid,
.mto-blog-grid,
.mto-category-post-grid,
.mto-sitemap-grid,
.mto-field-grid,
.mto-filter-bar {
	display: grid;
	gap: 12px;
}

.mto-benefit-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mto-benefit-item {
	border: 1px solid var(--mto-line);
	padding: 14px;
}

.mto-benefit-item span {
	align-items: center;
	background: var(--mto-blue-soft);
	color: var(--mto-blue);
	display: inline-flex;
	font-weight: 900;
	height: 34px;
	justify-content: center;
	margin-bottom: 8px;
	width: 34px;
}

.mto-benefit-item strong {
	display: block;
	margin-bottom: 4px;
}

.mto-benefit-item p {
	font-size: 14px;
	margin: 0;
}

.mto-steps {
	border: 1px solid var(--mto-line);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
}

.mto-steps div {
	border-right: 1px solid var(--mto-line);
	padding: 14px;
}

.mto-steps div:last-child {
	border-right: 0;
}

.mto-steps span {
	align-items: center;
	background: var(--mto-blue);
	color: #fff;
	display: inline-flex;
	font-weight: 900;
	height: 28px;
	justify-content: center;
	margin-bottom: 7px;
	width: 28px;
}

.mto-steps strong {
	display: block;
}

.mto-steps p {
	font-size: 14px;
	margin: 4px 0 0;
}

.mto-tool-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mto-tool-card,
.mto-category-tool-card {
	align-items: center;
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
	display: grid;
	gap: 4px 12px;
	grid-template-areas:
		"icon title arrow"
		"icon desc arrow";
	grid-template-columns: 40px minmax(0, 1fr) 16px;
	min-height: 82px;
	padding: 12px;
}

.mto-tool-card:hover,
.mto-category-tool-card:hover,
.mto-related-grid a:hover {
	border-color: var(--mto-blue);
}

.mto-tool-card span,
.mto-category-tool-card span {
	align-items: center;
	background: var(--mto-blue-soft);
	color: var(--mto-blue);
	display: inline-flex;
	font-size: 14px;
	font-weight: 900;
	grid-area: icon;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.mto-tool-card strong,
.mto-category-tool-card strong {
	color: var(--mto-text);
	font-size: 15px;
	grid-area: title;
	line-height: 1.25;
	min-width: 0;
	overflow-wrap: anywhere;
}

.mto-tool-card small,
.mto-category-tool-card small {
	color: var(--mto-muted);
	font-size: 13px;
	grid-area: desc;
	line-height: 1.35;
	min-width: 0;
	overflow-wrap: anywhere;
}

.mto-tool-card em,
.mto-category-tool-card em {
	color: var(--mto-blue);
	font-size: 22px;
	font-style: normal;
	grid-area: arrow;
}

.mto-section-heading {
	align-items: center;
	border-bottom: 2px solid var(--mto-blue);
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 14px;
}

.mto-section-heading h2 {
	border-bottom: 0;
	margin: 0;
	padding-bottom: 8px;
}

.mto-section-heading a {
	color: var(--mto-blue);
	font-weight: 800;
}

.mto-field-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mto-field-grid label {
	display: grid;
	gap: 7px;
}

.mto-tool-widget {
	border-top: 3px solid var(--mto-blue);
	display: grid;
	gap: 14px;
}

.mto-tool-widget-head {
	align-items: start;
	display: flex;
	gap: 14px;
	justify-content: space-between;
}

.mto-tool-widget-head h2 {
	color: var(--mto-blue);
	font-size: 22px;
	margin: 0 0 4px;
}

.mto-tool-widget-head p {
	margin: 0;
}

.mto-tool-input-row {
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.mto-tool-tabs {
	border: 1px solid var(--mto-line);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mto-tool-result strong {
	font-size: 32px;
}

.mto-table-wrap {
	overflow-x: auto;
}

.mto-data-table {
	border-collapse: collapse;
	width: 100%;
}

.mto-data-table th,
.mto-data-table td {
	border: 1px solid var(--mto-line);
	padding: 10px 12px;
	text-align: left;
}

.mto-data-table th {
	background: var(--mto-blue);
	color: #fff;
}

.mto-history-card {
	padding: 0;
}

.mto-card-heading {
	align-items: center;
	border-bottom: 1px solid var(--mto-line);
	display: flex;
	justify-content: space-between;
	padding: 12px 14px;
}

.mto-card-heading h2 {
	border: 0;
	font-size: 17px;
	margin: 0;
	padding: 0;
}

.mto-card-heading button,
#mto-history-clear {
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
	color: var(--mto-blue);
	height: 32px;
	width: 32px;
}

.mto-history-list {
	display: grid;
}

.mto-history-item {
	align-items: center;
	background: var(--mto-white);
	border: 0;
	border-bottom: 1px solid var(--mto-line-soft);
	color: var(--mto-text);
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) auto;
	min-height: 44px;
	padding: 9px 14px;
	text-align: left;
}

.mto-history-item strong {
	color: var(--mto-blue);
	font-weight: 900;
}

.mto-history-empty {
	color: var(--mto-muted);
	font-size: 14px;
	margin: 0;
	padding: 12px 14px;
}

.mto-tool-list {
	display: grid;
}

.mto-tool-list a {
	align-items: center;
	border-bottom: 1px solid var(--mto-line-soft);
	display: grid;
	gap: 10px;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	min-height: 46px;
	padding: 8px 0;
}

.mto-tool-list a:last-child {
	border-bottom: 0;
}

.mto-tool-list span {
	align-items: center;
	background: var(--mto-blue-soft);
	color: var(--mto-blue);
	display: inline-flex;
	font-size: 13px;
	font-weight: 900;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.mto-tool-list em {
	color: var(--mto-blue);
	font-style: normal;
}

.mto-tip-list,
.mto-category-steps,
.mto-category-example-list {
	color: var(--mto-muted);
	margin: 0;
	padding-left: 20px;
}

.mto-tip-list li,
.mto-category-steps li,
.mto-category-example-list li {
	margin-bottom: 8px;
}

.mto-cta-card {
	background: #f7fbff;
	display: grid;
	gap: 10px;
}

.mto-cta-card h2 {
	color: var(--mto-blue);
	font-size: 19px;
	margin: 0 0 6px;
}

.mto-cta-card p {
	color: var(--mto-muted);
	margin: 0 0 12px;
}

.mto-cta-visual {
	display: none;
}

.mto-blog-grid,
.mto-category-post-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mto-blog-card,
.mto-category-post-card,
.mto-list-post,
.mto-example-card,
.mto-empty-state {
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
}

.mto-blog-card,
.mto-example-card,
.mto-empty-state {
	padding: 14px;
}

.mto-blog-thumb,
.mto-category-post-thumb,
.mto-list-thumb,
.mto-sidebar-post-thumb,
.mto-thumb-placeholder {
	background: #e9f3ff;
	display: block;
}

.mto-blog-thumb,
.mto-category-post-thumb,
.mto-list-thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.mto-blog-card h3,
.mto-category-post-card h3,
.mto-list-post h2 {
	font-size: 18px;
	line-height: 1.35;
	margin: 12px 0 6px;
}

.mto-blog-card p,
.mto-category-post-card p,
.mto-list-post p {
	color: var(--mto-muted);
	margin: 0 0 10px;
}

.mto-post-meta,
.mto-blog-meta {
	color: var(--mto-muted);
	font-size: 13px;
}

.mto-category-post-card,
.mto-list-post {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	overflow: hidden;
}

.mto-category-post-card > div,
.mto-list-post > div {
	padding: 12px;
}

.mto-sidebar-posts {
	display: grid;
	gap: 10px;
}

.mto-sidebar-post {
	align-items: center;
	display: grid;
	gap: 10px;
	grid-template-columns: 58px minmax(0, 1fr);
}

.mto-sidebar-post img,
.mto-sidebar-post-thumb {
	aspect-ratio: 1;
	object-fit: cover;
	width: 58px;
}

.mto-sidebar-post strong {
	display: block;
	font-size: 14px;
	line-height: 1.35;
}

.mto-sidebar-post small {
	color: var(--mto-muted);
	font-size: 12px;
}

.mto-example-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mto-example-card {
	display: grid;
	gap: 4px;
}

.mto-example-card strong {
	color: var(--mto-blue);
}

.mto-example-card span {
	color: var(--mto-muted);
}

.mto-related-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mto-related-grid a {
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
	color: var(--mto-blue);
	font-weight: 800;
	padding: 12px;
}

.mto-faq-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mto-faq-grid details {
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
}

.mto-faq-grid summary {
	color: var(--mto-text);
	cursor: pointer;
	font-weight: 800;
	padding: 12px 14px;
}

.mto-faq-grid p {
	border-top: 1px solid var(--mto-line-soft);
	margin: 0;
	padding: 12px 14px;
}

.mto-filter-bar {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mto-filter-bar label {
	display: grid;
	font-weight: 800;
	gap: 7px;
}

.mto-filter-bar select {
	min-height: 46px;
	padding: 0 12px;
}

.mto-pagination,
.navigation.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mto-pagination a,
.mto-pagination span,
.navigation.pagination a,
.navigation.pagination span {
	background: var(--mto-white);
	border: 1px solid var(--mto-line);
	color: var(--mto-blue);
	font-weight: 800;
	min-width: 36px;
	padding: 8px 11px;
	text-align: center;
}

.mto-pagination .current,
.navigation.pagination .current {
	background: var(--mto-blue);
	color: #fff;
}

.mto-sitemap-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mto-sitemap-card {
	display: grid;
	gap: 8px;
	padding: 16px;
}

.mto-sitemap-card h2 {
	border-bottom: 2px solid var(--mto-blue);
	color: var(--mto-blue);
	font-size: 20px;
	margin: 0 0 6px;
	padding-bottom: 8px;
}

.mto-sitemap-card a {
	border-bottom: 1px solid var(--mto-line-soft);
	color: var(--mto-text);
	font-weight: 800;
	padding: 7px 0;
}

.mto-sitemap-card a:last-child {
	border-bottom: 0;
}

.mto-entry-content h2,
.mto-entry-content h3,
.mto-seo-article h2,
.mto-seo-article h3 {
	color: var(--mto-blue);
	line-height: 1.25;
	margin: 20px 0 8px;
}

.mto-entry-content a,
.mto-seo-article a {
	color: var(--mto-blue);
	font-weight: 800;
}

.mto-entry-content p,
.mto-seo-article p {
	margin-bottom: 12px;
}

.mto-site-footer {
	background: var(--mto-white);
	border-top: 3px solid var(--mto-blue);
	margin-top: 30px;
	padding: 24px 0 16px;
}

.mto-footer-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(190px, 0.85fr) minmax(420px, 2fr) minmax(150px, 0.75fr) minmax(230px, 1fr);
}

.mto-footer-brand p,
.mto-footer-newsletter p {
	color: var(--mto-muted);
	font-size: 14px;
	margin: 12px 0 0;
}

.mto-footer-col,
.mto-footer-tool-map,
.mto-footer-newsletter {
	align-content: start;
	display: grid;
	gap: 8px;
}

.mto-footer-col h2,
.mto-footer-tool-map h2,
.mto-footer-newsletter h2 {
	border-bottom: 2px solid var(--mto-blue);
	color: var(--mto-blue);
	font-size: 16px;
	margin: 0 0 4px;
	padding-bottom: 7px;
}

.mto-footer-tool-groups {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mto-footer-tool-groups div {
	display: grid;
	gap: 6px;
}

.mto-footer-tool-groups h3 {
	font-size: 14px;
	margin: 0;
}

.mto-footer-col a,
.mto-footer-tool-map a {
	color: var(--mto-muted);
	font-size: 14px;
	line-height: 1.35;
}

.mto-newsletter-form {
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.mto-newsletter-form input {
	min-height: 44px;
	padding: 0 12px;
}

.mto-footer-bottom {
	align-items: center;
	border-top: 1px solid var(--mto-line);
	color: var(--mto-muted);
	display: flex;
	font-size: 13px;
	gap: 16px;
	justify-content: space-between;
	margin-top: 20px;
	padding-top: 14px;
}

.mto-footer-bottom p {
	margin: 0;
}

.mto-footer-bottom nav {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.mto-back-calculator {
	align-items: center;
	background: var(--mto-blue);
	bottom: 16px;
	color: #fff;
	display: none;
	font-weight: 800;
	left: 16px;
	min-height: 42px;
	padding: 0 14px;
	position: fixed;
	z-index: 60;
}

.mto-back-calculator:hover {
	background: var(--mto-blue-dark);
	color: #fff;
}

@media (max-width: 1180px) {
	.mto-container {
		max-width: 100%;
	}

	.mto-primary-menu a {
		font-size: 13px;
		padding-left: 7px;
		padding-right: 7px;
	}

	.mto-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mto-footer-tool-map {
		grid-column: 1 / -1;
	}
}

@media (max-width: 1024px) {
	.mto-menu-toggle {
		display: inline-flex;
		order: 3;
	}

	.mto-header-tools {
		margin-left: auto;
		order: 2;
	}

	.mto-primary-nav {
		background: var(--mto-white);
		border: 1px solid var(--mto-line);
		display: none;
		left: 24px;
		padding: 8px;
		position: absolute;
		right: 24px;
		top: calc(100% + 8px);
	}

	.mto-primary-nav.is-open {
		display: block;
	}

	.mto-primary-menu {
		align-items: stretch;
		display: grid;
		justify-content: stretch;
	}

	.mto-primary-menu a {
		border-bottom: 1px solid var(--mto-line-soft);
		display: block;
		padding: 10px 12px;
	}

	.mto-primary-menu .sub-menu {
		background: #f7fbff;
		border: 0;
		display: block;
		min-width: 0;
		padding-left: 12px;
		position: static;
	}

	.mto-main-layout {
		grid-template-columns: 1fr;
	}

	.mto-sidebar {
		position: static;
	}

	.mto-benefit-grid,
	.mto-tool-grid,
	.mto-category-tool-grid,
	.mto-blog-grid,
	.mto-category-post-grid,
	.mto-field-grid,
	.mto-related-grid,
	.mto-sitemap-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .mto-site-header {
		top: 46px;
	}
}

@media (max-width: 720px) {
	:root {
		--mto-header-height: 62px;
	}

	.mto-container {
		padding-left: 14px;
		padding-right: 14px;
	}

	.mto-header-inner {
		gap: 10px;
	}

	.mto-brand-name {
		font-size: 16px;
	}

	.mto-brand-tagline {
		display: none;
	}

	.mto-logo-mark {
		height: 34px;
		width: 34px;
	}

	.mto-header-tools {
		gap: 5px;
	}

	.mto-main {
		padding-top: 18px;
	}

	.mto-page-heading h1,
	.mto-category-hero h1,
	.mto-tool-hero h1,
	.mto-entry h1,
	.mto-hero h1 {
		font-size: 29px;
	}

	.mto-card,
	.mto-section,
	.mto-entry,
	.mto-page-heading,
	.mto-category-hero,
	.mto-tool-hero,
	.mto-tool-widget {
		padding: 14px;
	}

	.mto-quick-form,
	.mto-result-panel,
	.mto-calc-display,
	.mto-tool-widget-head,
	.mto-tool-input-row,
	.mto-newsletter-form {
		grid-template-columns: 1fr;
	}

	.mto-button-primary,
	.mto-newsletter-form button {
		width: 100%;
	}

	.mto-calc-display,
	.mto-tab-panel,
	.mto-key-grid {
		margin-left: 10px;
		margin-right: 10px;
	}

	.mto-calc-tabs {
		overflow-x: auto;
	}

	.mto-calc-tabs button {
		min-width: 118px;
	}

	.mto-tab-panel,
	.mto-key-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.mto-mini-key-grid,
	.mto-tool-tabs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mto-key-grid button,
	.mto-tab-panel button {
		font-size: 17px;
		min-height: 54px;
	}

	.mto-result-actions strong,
	.mto-calc-result,
	.mto-tool-result strong {
		font-size: 30px;
	}

	.mto-benefit-grid,
	.mto-steps,
	.mto-tool-grid,
	.mto-category-tool-grid,
	.mto-blog-grid,
	.mto-category-post-grid,
	.mto-field-grid,
	.mto-related-grid,
	.mto-sitemap-grid,
	.mto-faq-grid,
	.mto-example-grid,
	.mto-filter-bar,
	.mto-footer-grid,
	.mto-footer-tool-groups {
		grid-template-columns: 1fr;
	}

	.mto-footer-tool-map {
		grid-column: auto;
	}

	.mto-steps {
		border-bottom: 0;
	}

	.mto-steps div {
		border-bottom: 1px solid var(--mto-line);
		border-right: 0;
	}

	.mto-category-post-card,
	.mto-list-post {
		grid-template-columns: 1fr;
	}

	.mto-section-heading {
		align-items: start;
		display: grid;
	}

	.mto-back-calculator {
		display: none;
	}

	body.mto-show-back-calculator .mto-back-calculator {
		display: inline-flex;
	}

	.mto-footer-bottom {
		align-items: flex-start;
		display: grid;
	}
}

@media (max-width: 430px) {
	.mto-header-tools .mto-icon-button {
		display: none;
	}

	.mto-language-button {
		padding: 0 8px;
	}

	.mto-brand {
		min-width: 0;
	}

	.mto-key-grid,
	.mto-tab-panel {
		gap: 6px;
	}

	.mto-key-grid button,
	.mto-tab-panel button {
		min-height: 50px;
	}
}
