/*
Theme Name: Manual do Inversor
Description: Tema próprio do projeto Manual do Inversor.
Author: Manual do Inversor
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.2
Text Domain: manual-do-inversor
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--mdi-navy: #003057;
	--mdi-blue: #0061ab;
	--mdi-blue-soft: #f0f7fc;
	--mdi-page: #f6fafc;
	--mdi-border: #d1dee5;
	--mdi-text: #121c26;
	--mdi-muted: #5c6b78;
	--mdi-success: #0d7a47;
	--mdi-success-bg: #e8f7f0;
	--mdi-white: #ffffff;
}

/* Home */
body.mdi-home {
	margin: 0;
	background: var(--mdi-blue-soft);
	color: var(--mdi-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
}

.mdi-home *,
.mdi-home *::before,
.mdi-home *::after {
	box-sizing: border-box;
}

.mdi-home a {
	color: inherit;
}

.mdi-home .mdi-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.mdi-home-nav {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 30px);
	margin-left: auto;
	font-size: 0.82rem;
	font-weight: 600;
}

.mdi-home-nav a {
	text-decoration: none;
}

.mdi-home-nav a:hover,
.mdi-home-nav a:focus-visible {
	color: var(--mdi-blue);
}

.mdi-home .mdi-button--header {
	margin-left: 28px;
}

.mdi-home-main {
	padding: 35px 0 48px;
}

.mdi-home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.9fr);
	gap: clamp(28px, 5vw, 78px);
	padding: clamp(34px, 4vw, 54px);
	border: 1px solid var(--mdi-border);
	border-radius: 18px;
	background: var(--mdi-white);
}

.mdi-home-hero__content {
	align-self: center;
}

.mdi-home-hero h1 {
	max-width: 760px;
	margin: 0;
	color: var(--mdi-navy);
	font-size: clamp(2.15rem, 4vw, 3.3rem);
	line-height: 1.08;
}

.mdi-home-hero__content > p:not(.mdi-section-eyebrow) {
	max-width: 680px;
	margin: 19px 0 0;
	color: var(--mdi-muted);
	font-size: 1rem;
}

.mdi-home-search {
	display: flex;
	gap: 8px;
	max-width: 760px;
	margin-top: 29px;
	padding: 7px;
	border: 1px solid var(--mdi-border);
	border-radius: 10px;
	background: var(--mdi-blue-soft);
}

.mdi-home-search input[type="search"] {
	min-width: 0;
	flex: 1;
	padding: 0 12px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--mdi-text);
	font: inherit;
}

.mdi-home-search button {
	min-width: 132px;
	min-height: 48px;
	border: 0;
	border-radius: 8px;
	background: var(--mdi-blue);
	color: var(--mdi-white);
	font-weight: 800;
	text-transform: uppercase;
}

.mdi-home-popular {
	padding: 27px;
	border-radius: 14px;
	background: var(--mdi-navy);
	color: var(--mdi-white);
}

.mdi-home-popular h2 {
	margin: 0 0 19px;
	font-size: 0.88rem;
}

.mdi-home-popular ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mdi-home-popular li a,
.mdi-home-popular li span {
	display: block;
	padding: 11px 14px;
	border-radius: 7px;
	background: #262b30;
	font-size: 0.8rem;
	text-decoration: none;
}

.mdi-home-trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 24px;
	padding: 20px 28px;
	border-radius: 14px;
	background: var(--mdi-navy);
	color: var(--mdi-white);
}

.mdi-home-trust div {
	display: grid;
	gap: 3px;
	padding: 0 18px;
	border-right: 1px solid rgb(255 255 255 / 14%);
}

.mdi-home-trust div:last-child {
	border: 0;
}

.mdi-home-trust strong {
	font-size: 0.83rem;
}

.mdi-home-trust span {
	color: #b8ccdb;
	font-size: 0.7rem;
}

.mdi-home-section,
.mdi-home-downloads,
.mdi-home-quote {
	margin-top: 28px;
	padding: clamp(28px, 3.3vw, 42px);
	border-radius: 18px;
}

.mdi-home-section {
	border: 1px solid var(--mdi-border);
	background: var(--mdi-white);
}

.mdi-home-section__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 26px;
}

.mdi-home-section__heading h2 {
	margin: 0;
	color: var(--mdi-navy);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.mdi-home-section__heading > a {
	color: var(--mdi-blue);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}

.mdi-home-manufacturers {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mdi-home-manufacturers a,
.mdi-home-manufacturers span {
	padding: 12px 18px;
	border: 1px solid var(--mdi-border);
	border-radius: 999px;
	background: var(--mdi-blue-soft);
	color: var(--mdi-navy);
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
}

.mdi-home-family-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mdi-home-family-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 5px 17px;
	padding: 18px;
	border: 1px solid var(--mdi-border);
	border-radius: 12px;
	background: var(--mdi-blue-soft);
}

.mdi-home-family-card strong {
	grid-row: 1 / 3;
	align-self: start;
	padding: 8px 12px;
	border-radius: 7px;
	background: var(--mdi-blue);
	color: var(--mdi-white);
	font-size: 0.8rem;
}

.mdi-home-family-card span {
	color: var(--mdi-muted);
	font-size: 0.72rem;
}

.mdi-home-family-card a {
	color: var(--mdi-blue);
	font-size: 0.72rem;
	font-weight: 700;
	text-decoration: none;
}

.mdi-home-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mdi-home-product-card {
	min-width: 0;
	border: 1px solid var(--mdi-border);
	border-radius: 14px;
	overflow: hidden;
}

.mdi-home-product-card__media {
	display: grid;
	height: 210px;
	place-items: center;
	background: var(--mdi-blue-soft);
	color: var(--mdi-navy);
	font-size: 2rem;
	font-weight: 800;
	text-decoration: none;
}

.mdi-home-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mdi-home-product-card__body {
	padding: 21px;
}

.mdi-home-product-card__body > p {
	margin: 0 0 8px;
	color: var(--mdi-blue);
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
}

.mdi-home-product-card h3 {
	margin: 0 0 17px;
	font-size: 1.05rem;
	line-height: 1.35;
}

.mdi-home-product-card h3 a,
.mdi-home-text-link {
	text-decoration: none;
}

.mdi-home-product-card dl {
	display: grid;
	gap: 7px;
	margin: 0 0 17px;
}

.mdi-home-product-card dl div {
	display: grid;
	grid-template-columns: 75px minmax(0, 1fr);
	gap: 10px;
	font-size: 0.73rem;
}

.mdi-home-product-card dt {
	color: var(--mdi-muted);
}

.mdi-home-product-card dd {
	margin: 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.mdi-home-text-link {
	color: var(--mdi-blue);
	font-size: 0.76rem;
	font-weight: 700;
}

.mdi-home-downloads {
	background: var(--mdi-navy);
	color: var(--mdi-white);
}

.mdi-home-section__heading--dark h2,
.mdi-home-section__heading--dark > a {
	color: var(--mdi-white);
}

.mdi-home-section__heading--dark .mdi-section-eyebrow {
	color: #ff7b84;
}

.mdi-home-document-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.mdi-home-document-card {
	display: flex;
	min-height: 148px;
	flex-direction: column;
	padding: 17px;
	border-radius: 11px;
	background: #262b30;
}

.mdi-home-document-card > span {
	color: #6ebff0;
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
}

.mdi-home-document-card h3 {
	margin: 12px 0;
	font-size: 0.83rem;
	line-height: 1.4;
}

.mdi-home-document-card a {
	margin-top: auto;
	color: var(--mdi-white);
	font-size: 0.7rem;
	font-weight: 700;
	text-decoration: none;
}

.mdi-home-content-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mdi-home-content-grid a {
	display: grid;
	gap: 9px;
	min-height: 115px;
	padding: 19px;
	border: 1px solid var(--mdi-border);
	border-radius: 10px;
	background: var(--mdi-blue-soft);
	text-decoration: none;
}

.mdi-home-content-grid strong {
	color: var(--mdi-navy);
	font-size: 0.9rem;
}

.mdi-home-content-grid span {
	color: var(--mdi-muted);
	font-size: 0.75rem;
}

.mdi-home-quote {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	background: var(--mdi-navy);
	color: var(--mdi-white);
}

.mdi-home-quote h2 {
	margin: 0;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.mdi-home-quote p:not(.mdi-section-eyebrow) {
	margin: 8px 0 0;
	color: #b8ccdb;
	font-size: 0.8rem;
}

.mdi-home-quote .mdi-button {
	flex: 0 0 auto;
}

.mdi-home-footer {
	padding: 20px 0;
	background: var(--mdi-navy);
	color: #b8ccdb;
	font-size: 0.7rem;
}

.mdi-home-footer .mdi-container {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

@media (max-width: 1080px) {
	.mdi-home-nav {
		display: none;
	}

	.mdi-home-hero {
		grid-template-columns: 1fr;
	}

	.mdi-home-popular ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mdi-home-family-grid,
	.mdi-home-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mdi-home-document-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mdi-home-main {
		padding-top: 18px;
	}

	.mdi-home-hero,
	.mdi-home-section,
	.mdi-home-downloads,
	.mdi-home-quote {
		padding: 22px 18px;
		border-radius: 14px;
	}

	.mdi-home-hero h1 {
		font-size: 2rem;
	}

	.mdi-home-search {
		align-items: stretch;
		flex-direction: column;
	}

	.mdi-home-popular ul,
	.mdi-home-family-grid,
	.mdi-home-product-grid,
	.mdi-home-document-grid,
	.mdi-home-content-grid {
		grid-template-columns: 1fr;
	}

	.mdi-home-trust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 0;
	}

	.mdi-home-trust div:nth-child(2) {
		border: 0;
	}

	.mdi-home-section__heading,
	.mdi-home-quote,
	.mdi-home-footer .mdi-container {
		align-items: flex-start;
		flex-direction: column;
	}

	.mdi-home-section__heading > a {
		align-self: flex-start;
	}

	.mdi-home-quote .mdi-button {
		width: 100%;
	}
}

/* Default pages and quote form */
body.mdi-standard-page {
	margin: 0;
	background: var(--mdi-page);
	color: var(--mdi-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
}

.mdi-standard-page *,
.mdi-standard-page *::before,
.mdi-standard-page *::after {
	box-sizing: border-box;
}

.mdi-standard-page a {
	color: inherit;
}

.mdi-standard-page .mdi-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.mdi-page-main {
	min-height: 65vh;
	padding: 24px 0 64px;
}

.mdi-page-card {
	max-width: 980px;
	margin: 0 auto;
	border: 1px solid var(--mdi-border);
	border-radius: 16px;
	overflow: hidden;
	background: var(--mdi-white);
	box-shadow: 0 14px 40px rgba(0, 48, 87, 0.07);
}

.mdi-page-card__header {
	padding: clamp(28px, 5vw, 48px) clamp(22px, 5vw, 54px) 26px;
	border-bottom: 1px solid var(--mdi-border);
	background: linear-gradient(135deg, var(--mdi-white) 0%, var(--mdi-blue-soft) 100%);
}

.mdi-page-card__header h1 {
	margin: 5px 0 0;
	color: var(--mdi-navy);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
}

.mdi-page-content {
	padding: clamp(26px, 5vw, 54px);
}

.mdi-page-content > :first-child {
	margin-top: 0;
}

.mdi-page-content > :last-child {
	margin-bottom: 0;
}

.mdi-page-content a:not(.mdi-button) {
	color: var(--mdi-blue);
}

.mdi-page-content img {
	max-width: 100%;
	height: auto;
}

.mdi-page-links {
	margin-top: 28px;
}

.mdi-page-content .mdi-quote-form-wrap {
	max-width: 820px;
	margin: 0 auto;
}

.mdi-quote-form__notice {
	margin-bottom: 24px;
	padding: 15px 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-weight: 700;
}

.mdi-quote-form__notice--success {
	border-color: #8bcdb0;
	background: var(--mdi-success-bg);
	color: #075c34;
}

.mdi-quote-form__notice--error {
	border-color: #e5aaaa;
	background: #fff2f2;
	color: #8b1e1e;
}

.mdi-quote-form__product {
	display: grid;
	gap: 5px;
	margin-bottom: 26px;
	padding: 19px 22px;
	border-left: 4px solid var(--mdi-blue);
	border-radius: 7px;
	background: var(--mdi-blue-soft);
	color: var(--mdi-muted);
	font-size: 0.9rem;
}

.mdi-quote-form__product strong {
	color: var(--mdi-navy);
	font-size: 1.05rem;
}

.mdi-page-content .mdi-quote-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 22px;
}

.mdi-quote-form__field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 7px;
	margin: 0;
}

.mdi-quote-form__field:nth-of-type(5),
.mdi-quote-form__field:nth-of-type(6),
.mdi-quote-form__consent,
.mdi-page-content .mdi-quote-form > p:last-child {
	grid-column: 1 / -1;
}

.mdi-quote-form__field label {
	color: var(--mdi-navy);
	font-size: 0.86rem;
	font-weight: 750;
}

.mdi-quote-form__field input,
.mdi-quote-form__field textarea {
	width: 100%;
	border: 1px solid #aebfca;
	border-radius: 7px;
	background: var(--mdi-white);
	color: var(--mdi-text);
	font: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mdi-quote-form__field input {
	min-height: 48px;
	padding: 10px 13px;
}

.mdi-quote-form__field textarea {
	min-height: 150px;
	padding: 12px 13px;
	line-height: 1.55;
	resize: vertical;
}

.mdi-quote-form__field input:focus,
.mdi-quote-form__field textarea:focus {
	border-color: var(--mdi-blue);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(0, 97, 171, 0.14);
}

.mdi-quote-form__consent {
	margin: 2px 0 0;
	padding: 15px 17px;
	border: 1px solid var(--mdi-border);
	border-radius: 7px;
	background: #f8fbfd;
	color: var(--mdi-muted);
	font-size: 0.84rem;
	line-height: 1.55;
}

.mdi-quote-form__consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.mdi-quote-form__consent input {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	margin-top: 2px;
	accent-color: var(--mdi-blue);
}

.mdi-page-content .mdi-quote-form > p:last-child {
	margin: 2px 0 0;
}

.mdi-page-content .mdi-quote-form button[type="submit"] {
	min-height: 50px;
	padding: 12px 28px;
	border: 0;
	border-radius: 7px;
	background: var(--mdi-blue);
	color: var(--mdi-white);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.mdi-page-content .mdi-quote-form button[type="submit"]:hover,
.mdi-page-content .mdi-quote-form button[type="submit"]:focus-visible {
	background: var(--mdi-navy);
}

.mdi-page-content .mdi-quote-form button[type="submit"]:active {
	transform: translateY(1px);
}

@media (max-width: 760px) {
	.mdi-page-main {
		padding: 18px 0 42px;
	}

	.mdi-page-content .mdi-quote-form {
		grid-template-columns: 1fr;
		gap: 17px;
	}

	.mdi-quote-form__field,
	.mdi-quote-form__field:nth-of-type(5),
	.mdi-quote-form__field:nth-of-type(6),
	.mdi-quote-form__consent,
	.mdi-page-content .mdi-quote-form > p:last-child {
		grid-column: 1;
	}

	.mdi-page-content .mdi-quote-form button[type="submit"] {
		width: 100%;
	}
}

/* Search results */
body.mdi-search-page {
	margin: 0;
	background: var(--mdi-page);
	color: var(--mdi-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
}

.mdi-search-page *,
.mdi-search-page *::before,
.mdi-search-page *::after {
	box-sizing: border-box;
}

.mdi-search-page a {
	color: inherit;
}

.mdi-search-page .mdi-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.mdi-search-main {
	min-height: 65vh;
	padding: 38px 0 64px;
}

.mdi-search-heading {
	margin-bottom: 30px;
	padding: clamp(26px, 4vw, 44px);
	border: 1px solid var(--mdi-border);
	border-radius: 18px;
	background: var(--mdi-white);
}

.mdi-search-heading h1 {
	margin: 4px 0 8px;
	color: var(--mdi-navy);
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.08;
}

.mdi-search-heading > p:not(.mdi-section-eyebrow) {
	margin: 0 0 22px;
	color: var(--mdi-muted);
}

.mdi-search-form {
	display: flex;
	max-width: 780px;
	border: 1px solid #aac1d0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--mdi-white);
}

.mdi-search-form input[type="search"] {
	min-width: 0;
	flex: 1;
	padding: 15px 18px;
	border: 0;
	outline: 0;
	font: inherit;
}

.mdi-search-form:focus-within {
	border-color: var(--mdi-blue);
	box-shadow: 0 0 0 3px rgba(0, 97, 171, 0.13);
}

.mdi-search-form button {
	padding: 0 28px;
	border: 0;
	background: var(--mdi-blue);
	color: var(--mdi-white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.mdi-search-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.mdi-search-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	border: 1px solid var(--mdi-border);
	border-radius: 14px;
	overflow: hidden;
	background: var(--mdi-white);
	box-shadow: 0 12px 30px rgba(0, 48, 87, 0.06);
}

.mdi-search-card__media {
	display: flex;
	height: 240px;
	align-items: center;
	justify-content: center;
	padding: 22px;
	background: var(--mdi-blue-soft);
	text-decoration: none;
}

.mdi-search-card__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mdi-search-card__placeholder {
	display: grid;
	width: 92px;
	height: 92px;
	place-items: center;
	border-radius: 50%;
	background: var(--mdi-navy);
	color: var(--mdi-white);
	font-size: 1.5rem;
	font-weight: 800;
}

.mdi-search-card__content {
	display: flex;
	height: 100%;
	flex-direction: column;
	padding: 24px;
}

.mdi-search-card__taxonomy {
	min-height: 1.3em;
	margin: 0 0 8px;
	color: var(--mdi-blue);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mdi-search-card h2 {
	margin: 0 0 18px;
	color: var(--mdi-navy);
	font-size: 1.2rem;
	line-height: 1.3;
}

.mdi-search-card h2 a {
	text-decoration: none;
}

.mdi-search-card__specs {
	display: grid;
	grid-template-columns: minmax(110px, 0.85fr) minmax(0, 1.15fr);
	margin: 0 0 22px;
	font-size: 0.82rem;
}

.mdi-search-card__specs dt,
.mdi-search-card__specs dd {
	margin: 0;
	padding: 7px 0;
	border-bottom: 1px solid #e5edf2;
}

.mdi-search-card__specs dt {
	color: var(--mdi-muted);
}

.mdi-search-card__specs dd {
	overflow-wrap: anywhere;
	font-weight: 700;
}

.mdi-search-card__link {
	margin-top: auto;
	color: var(--mdi-blue) !important;
	font-weight: 800;
	text-decoration: none;
}

.mdi-search-empty {
	padding: clamp(28px, 5vw, 54px);
	border: 1px solid var(--mdi-border);
	border-radius: 14px;
	background: var(--mdi-white);
	text-align: center;
}

.mdi-search-empty h2 {
	margin-top: 0;
	color: var(--mdi-navy);
}

.mdi-search-empty .mdi-search-form {
	margin: 24px auto 0;
	text-align: left;
}

.mdi-search-main .navigation.pagination {
	margin-top: 34px;
}

.mdi-search-main .nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.mdi-search-main .page-numbers {
	display: grid;
	min-width: 40px;
	height: 40px;
	place-items: center;
	padding: 0 12px;
	border: 1px solid var(--mdi-border);
	border-radius: 6px;
	background: var(--mdi-white);
	text-decoration: none;
}

.mdi-search-main .page-numbers.current {
	border-color: var(--mdi-blue);
	background: var(--mdi-blue);
	color: var(--mdi-white);
}

@media (max-width: 960px) {
	.mdi-search-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mdi-search-main {
		padding: 24px 0 44px;
	}

	.mdi-search-grid {
		grid-template-columns: 1fr;
	}

	.mdi-search-form {
		flex-direction: column;
		border: 0;
		overflow: visible;
		background: transparent;
	}

	.mdi-search-form input[type="search"] {
		border: 1px solid #aac1d0;
		border-radius: 7px;
	}

	.mdi-search-form button {
		min-height: 48px;
		border-radius: 7px;
	}

	.mdi-search-card__media {
		height: 220px;
	}
}

body.mdi-product-page {
	margin: 0;
	background: var(--mdi-page);
	color: var(--mdi-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.mdi-product-page *,
.mdi-product-page *::before,
.mdi-product-page *::after {
	box-sizing: border-box;
}

.mdi-product-page a {
	color: inherit;
}

.mdi-container {
	width: min(1296px, calc(100% - 48px));
	margin-inline: auto;
}

.mdi-site-topbar {
	padding: 9px 0;
	background: var(--mdi-navy);
	color: var(--mdi-white);
	font-size: 0.72rem;
}

.mdi-site-topbar .mdi-container {
	display: flex;
	justify-content: space-between;
	gap: 24px;
}

.mdi-site-topbar span:last-child {
	color: #b8ccdb;
}

.mdi-site-header {
	background: var(--mdi-white);
	border-bottom: 1px solid var(--mdi-border);
}

.mdi-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 84px;
	gap: 24px;
}

.mdi-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--mdi-text);
	text-decoration: none;
}

.mdi-brand strong,
.mdi-brand small {
	display: block;
}

.mdi-brand strong {
	font-size: 1.2rem;
	line-height: 1.2;
}

.mdi-brand small {
	margin-top: 5px;
	color: var(--mdi-muted);
	font-size: 0.68rem;
}

.mdi-button {
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: var(--mdi-blue);
	color: var(--mdi-white);
	cursor: default;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.mdi-button--header {
	min-width: 190px;
}

.mdi-product-main {
	padding: 27px 0 54px;
}

.mdi-breadcrumb {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 23px;
	color: var(--mdi-muted);
	font-size: 0.75rem;
	overflow-wrap: anywhere;
}

.mdi-breadcrumb a {
	text-decoration: none;
}

.mdi-breadcrumb a:hover {
	color: var(--mdi-blue);
}

.mdi-product-hero,
.mdi-technical-card,
.mdi-documentation,
.mdi-quote-banner {
	border: 1px solid var(--mdi-border);
	border-radius: 18px;
}

.mdi-product-hero {
	display: grid;
	grid-template-columns: minmax(320px, 470px) minmax(0, 1fr);
	gap: clamp(36px, 5vw, 76px);
	padding: clamp(32px, 4vw, 50px);
	background: var(--mdi-white);
}

.mdi-product-media {
	display: flex;
	min-height: 456px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 32px;
	border-radius: 14px;
	background: var(--mdi-blue-soft);
}

.mdi-product-media__image {
	display: block;
	width: 100%;
	max-width: 390px;
	max-height: 370px;
	object-fit: contain;
}

.mdi-product-media__placeholder {
	display: grid;
	width: 190px;
	height: 310px;
	place-items: center;
	border-radius: 8px;
	background: #c7cfd6;
	color: var(--mdi-navy);
	font-size: 2rem;
	font-weight: 800;
}

.mdi-product-media p {
	margin: 20px 0 0;
	color: var(--mdi-muted);
	font-size: 0.72rem;
}

.mdi-product-summary {
	align-self: center;
}

.mdi-product-eyebrow,
.mdi-section-eyebrow {
	margin: 0 0 12px;
	color: var(--mdi-blue);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mdi-product-summary h1 {
	margin: 0;
	font-size: clamp(2rem, 3.1vw, 2.8rem);
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.mdi-product-summary__intro {
	margin: 14px 0 0;
	color: var(--mdi-text);
	font-size: 1.1rem;
	font-weight: 600;
}

.mdi-product-identifiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: 28px;
	border: 1px solid var(--mdi-border);
	border-radius: 10px;
	background: var(--mdi-border);
	overflow: hidden;
}

.mdi-product-identifiers > div {
	padding: 14px;
	background: var(--mdi-white);
}

.mdi-product-identifiers span,
.mdi-product-identifiers strong {
	display: block;
}

.mdi-product-identifiers span {
	margin-bottom: 5px;
	color: var(--mdi-muted);
	font-size: 0.7rem;
}

.mdi-product-identifiers strong {
	font-size: 0.82rem;
	overflow-wrap: anywhere;
}

.mdi-product-status {
	display: inline-flex;
	margin-top: 24px;
	padding: 9px 13px;
	border-radius: 7px;
	background: var(--mdi-success-bg);
	color: var(--mdi-success);
	font-size: 0.75rem;
	font-weight: 700;
}

.mdi-product-summary .mdi-button {
	display: block;
	margin-top: 26px;
}

.mdi-product-summary__note {
	margin: 12px 0 0;
	color: var(--mdi-muted);
	font-size: 0.7rem;
}

.mdi-technical-card {
	margin-top: 28px;
	padding: clamp(26px, 3vw, 34px);
	background: var(--mdi-white);
}

.mdi-technical-card h2 {
	margin: 0 0 25px;
	font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.mdi-technical-list {
	margin: 0;
}

.mdi-technical-list__row {
	display: grid;
	grid-template-columns: minmax(180px, 40%) minmax(0, 1fr);
	gap: 24px;
	padding: 11px 15px;
	border-radius: 4px;
}

.mdi-technical-list__row:nth-child(odd) {
	background: var(--mdi-blue-soft);
}

.mdi-technical-list dt {
	color: var(--mdi-muted);
	font-size: 0.78rem;
}

.mdi-technical-list dd {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.mdi-documentation {
	margin-top: 28px;
	padding: clamp(26px, 3vw, 34px);
	background: var(--mdi-white);
}

.mdi-documentation h2 {
	margin: 0 0 25px;
	font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.mdi-document-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mdi-document-card {
	display: flex;
	min-height: 220px;
	flex-direction: column;
	padding: 20px;
	border: 1px solid var(--mdi-border);
	border-radius: 11px;
	background: var(--mdi-blue-soft);
}

.mdi-document-card--restricted {
	border-style: dashed;
	background: #f7f9fc;
}

.mdi-document-card__type {
	align-self: flex-start;
	padding: 6px 9px;
	border-radius: 6px;
	background: var(--mdi-blue);
	color: var(--mdi-white);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mdi-document-card h3 {
	margin: 17px 0 8px;
	font-size: 0.95rem;
	line-height: 1.4;
}

.mdi-document-card__file {
	margin: 0 0 20px;
	color: var(--mdi-muted);
	font-size: 0.75rem;
	overflow-wrap: anywhere;
}

.mdi-document-card__access {
	margin: 0 0 20px;
	color: var(--mdi-muted);
	font-size: 0.78rem;
	line-height: 1.55;
}

.mdi-document-card__access--pending {
	padding: 10px 12px;
	border-left: 3px solid var(--mdi-blue);
	background: var(--mdi-white);
	color: var(--mdi-navy);
}

.mdi-document-card__actions {
	display: flex;
	gap: 10px;
	margin-top: auto;
}

.mdi-document-link {
	display: inline-flex;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	border: 1px solid var(--mdi-blue);
	border-radius: 7px;
	font-size: 0.72rem;
	font-weight: 700;
	text-decoration: none;
}

.mdi-document-link--view {
	background: var(--mdi-white);
	color: var(--mdi-blue);
}

.mdi-document-link--download {
	background: var(--mdi-blue);
	color: var(--mdi-white);
}

.mdi-document-link--login {
	width: 100%;
	background: var(--mdi-blue);
	color: var(--mdi-white);
}

.mdi-quote-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-top: 28px;
	padding: 30px 36px;
	background: var(--mdi-navy);
	color: var(--mdi-white);
}

.mdi-quote-banner h2 {
	margin: 0;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.mdi-quote-banner p {
	margin: 8px 0 0;
	color: #c2d1db;
	font-size: 0.82rem;
}

.mdi-quote-banner .mdi-button {
	flex: 0 0 auto;
}

@media (max-width: 900px) {
	.mdi-product-hero {
		grid-template-columns: 1fr;
	}

	.mdi-product-media {
		min-height: 360px;
	}

	.mdi-product-identifiers {
		grid-template-columns: 1fr;
	}

	.mdi-document-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mdi-container {
		width: min(100% - 28px, 1296px);
	}

	.mdi-site-topbar .mdi-container {
		display: block;
	}

	.mdi-site-topbar span:last-child,
	.mdi-button--header,
	.mdi-brand small {
		display: none;
	}

	.mdi-site-header__inner {
		min-height: 72px;
	}

	.mdi-breadcrumb {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.mdi-product-hero {
		padding: 18px;
	}

	.mdi-product-media {
		min-height: 300px;
		padding: 20px;
	}

	.mdi-product-media__placeholder {
		width: 140px;
		height: 230px;
	}

	.mdi-product-summary h1 {
		font-size: 1.85rem;
	}

	.mdi-technical-card {
		padding: 22px 18px;
	}

	.mdi-documentation {
		padding: 22px 18px;
	}

	.mdi-document-grid {
		grid-template-columns: 1fr;
	}

	.mdi-document-card__actions {
		flex-direction: column;
	}

	.mdi-technical-list__row {
		grid-template-columns: 1fr;
		gap: 3px;
		padding: 12px;
	}

	.mdi-quote-banner {
		align-items: stretch;
		flex-direction: column;
		padding: 25px 22px;
	}

	.mdi-quote-banner .mdi-button {
		width: 100%;
	}
}

/* Central de Downloads */
body.mdi-downloads-page {
	margin: 0;
	background: var(--mdi-page);
	color: var(--mdi-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
}

.mdi-downloads-page *,
.mdi-downloads-page *::before,
.mdi-downloads-page *::after {
	box-sizing: border-box;
}

.mdi-downloads-page a {
	color: inherit;
}

.mdi-downloads-page .mdi-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.mdi-downloads-main {
	padding: 28px 0 56px;
}

.mdi-downloads-hero {
	margin-top: 22px;
	padding: clamp(32px, 5vw, 58px);
	border-radius: 18px;
	background: linear-gradient(135deg, var(--mdi-navy), var(--mdi-blue));
	color: var(--mdi-white);
}

.mdi-downloads-hero .mdi-section-eyebrow {
	color: #bce2ff;
}

.mdi-downloads-hero h1 {
	margin: 6px 0 14px;
	font-size: clamp(2.15rem, 4vw, 3.4rem);
	line-height: 1.05;
}

.mdi-downloads-hero > p:last-child {
	max-width: 780px;
	margin: 0;
	color: #e5f4ff;
	font-size: 1rem;
}

.mdi-downloads-filter-panel {
	margin-top: 24px;
	padding: clamp(24px, 3vw, 34px);
	border: 1px solid var(--mdi-border);
	border-radius: 14px;
	background: var(--mdi-white);
	box-shadow: 0 14px 36px rgba(0, 48, 87, 0.07);
}

.mdi-downloads-filter-heading,
.mdi-downloads-results-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.mdi-downloads-filter-heading h2,
.mdi-downloads-results-heading h2 {
	margin: 4px 0 0;
	color: var(--mdi-navy);
	font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.mdi-downloads-clear {
	color: var(--mdi-blue);
	font-size: 0.82rem;
	font-weight: 750;
	text-decoration: none;
}

.mdi-downloads-clear:hover,
.mdi-downloads-clear:focus-visible {
	text-decoration: underline;
}

.mdi-downloads-filter-form {
	display: grid;
	grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(145px, 1fr)) auto;
	align-items: end;
	gap: 14px;
	margin-top: 24px;
}

.mdi-downloads-field {
	display: grid;
	gap: 7px;
}

.mdi-downloads-field label {
	color: var(--mdi-navy);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.mdi-downloads-field input,
.mdi-downloads-field select {
	width: 100%;
	min-height: 46px;
	padding: 0 13px;
	border: 1px solid var(--mdi-border);
	border-radius: 8px;
	background: var(--mdi-white);
	color: var(--mdi-text);
	font: inherit;
	font-size: 0.84rem;
}

.mdi-downloads-field input:focus,
.mdi-downloads-field select:focus {
	border-color: var(--mdi-blue);
	box-shadow: 0 0 0 3px rgba(0, 97, 171, 0.14);
	outline: none;
}

.mdi-downloads-submit {
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid var(--mdi-blue);
	border-radius: 8px;
	background: var(--mdi-blue);
	color: var(--mdi-white);
	cursor: pointer;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 800;
	white-space: nowrap;
}

.mdi-downloads-submit:hover,
.mdi-downloads-submit:focus-visible {
	background: var(--mdi-navy);
	border-color: var(--mdi-navy);
}

.mdi-downloads-results {
	margin-top: 34px;
}

.mdi-downloads-results-heading {
	margin-bottom: 18px;
}

.mdi-downloads-results-heading > p {
	margin: 0;
	color: var(--mdi-muted);
	font-size: 0.82rem;
}

.mdi-downloads-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mdi-download-card {
	display: flex;
	min-height: 310px;
	flex-direction: column;
	padding: 22px;
	border: 1px solid var(--mdi-border);
	border-radius: 12px;
	background: var(--mdi-white);
	box-shadow: 0 10px 28px rgba(0, 48, 87, 0.06);
}

.mdi-download-card--restricted {
	border-style: dashed;
	background: #f8fafc;
}

.mdi-download-card__topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.mdi-download-card__type {
	display: inline-flex;
	padding: 6px 9px;
	border-radius: 6px;
	background: var(--mdi-blue-soft);
	color: var(--mdi-blue);
	font-size: 0.65rem;
	font-weight: 850;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mdi-download-card__lock {
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e8eef3;
	font-size: 0.9rem;
}

.mdi-download-card h3 {
	margin: 19px 0 18px;
	color: var(--mdi-navy);
	font-size: 1.08rem;
	line-height: 1.35;
}

.mdi-download-card__taxonomy {
	display: grid;
	gap: 10px;
	margin: 0 0 22px;
}

.mdi-download-card__taxonomy > div {
	display: grid;
	grid-template-columns: minmax(82px, 0.42fr) 1fr;
	gap: 10px;
	padding-top: 9px;
	border-top: 1px solid var(--mdi-border);
}

.mdi-download-card__taxonomy dt,
.mdi-download-card__taxonomy dd {
	margin: 0;
	font-size: 0.75rem;
}

.mdi-download-card__taxonomy dt {
	color: var(--mdi-muted);
}

.mdi-download-card__taxonomy dd {
	font-weight: 750;
	overflow-wrap: anywhere;
}

.mdi-download-card__actions {
	display: flex;
	gap: 10px;
	margin-top: auto;
}

.mdi-download-action {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0 15px;
	border: 1px solid var(--mdi-blue);
	border-radius: 7px;
	font-size: 0.74rem;
	font-weight: 800;
	text-decoration: none;
}

.mdi-download-action--view {
	flex: 1;
	background: var(--mdi-white);
	color: var(--mdi-blue);
}

.mdi-download-action--download,
.mdi-download-action--login {
	flex: 1;
	background: var(--mdi-blue);
	color: var(--mdi-white);
}

.mdi-download-action:hover,
.mdi-download-action:focus-visible {
	border-color: var(--mdi-navy);
	background: var(--mdi-navy);
	color: var(--mdi-white);
}

.mdi-download-card__status {
	margin: auto 0 0;
	color: var(--mdi-muted);
	font-size: 0.78rem;
	line-height: 1.55;
}

.mdi-download-card__status--pending {
	padding: 11px 12px;
	border-left: 3px solid var(--mdi-blue);
	background: var(--mdi-white);
	color: var(--mdi-navy);
}

.mdi-download-card > .mdi-download-action--login {
	width: 100%;
	margin-top: 14px;
}

.mdi-downloads-pagination {
	margin-top: 30px;
}

.mdi-downloads-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mdi-downloads-pagination a,
.mdi-downloads-pagination span {
	display: inline-flex;
	min-width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--mdi-border);
	border-radius: 7px;
	background: var(--mdi-white);
	color: var(--mdi-navy);
	font-size: 0.78rem;
	font-weight: 750;
	text-decoration: none;
}

.mdi-downloads-pagination .current {
	border-color: var(--mdi-blue);
	background: var(--mdi-blue);
	color: var(--mdi-white);
}

.mdi-downloads-empty {
	margin-top: 32px;
	padding: clamp(36px, 6vw, 70px) 24px;
	border: 1px solid var(--mdi-border);
	border-radius: 14px;
	background: var(--mdi-white);
	text-align: center;
}

.mdi-downloads-empty__mark {
	display: inline-flex;
	width: 58px;
	height: 58px;
	align-items: center;
	justify-content: center;
	border-radius: 13px;
	background: var(--mdi-blue-soft);
	color: var(--mdi-blue);
	font-weight: 900;
}

.mdi-downloads-empty h2 {
	margin: 20px 0 8px;
	color: var(--mdi-navy);
}

.mdi-downloads-empty p {
	max-width: 580px;
	margin: 0 auto;
	color: var(--mdi-muted);
}

.mdi-downloads-clear--button {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	margin-top: 22px;
	padding: 0 18px;
	border-radius: 7px;
	background: var(--mdi-blue);
	color: var(--mdi-white);
}

@media (max-width: 1100px) {
	.mdi-downloads-filter-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mdi-downloads-field--search,
	.mdi-downloads-submit {
		grid-column: 1 / -1;
	}

	.mdi-downloads-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mdi-downloads-main {
		padding-top: 18px;
	}

	.mdi-downloads-hero {
		margin-top: 16px;
		padding: 30px 22px;
	}

	.mdi-downloads-filter-heading,
	.mdi-downloads-results-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.mdi-downloads-filter-form,
	.mdi-downloads-grid {
		grid-template-columns: 1fr;
	}

	.mdi-downloads-field--search,
	.mdi-downloads-submit {
		grid-column: auto;
	}

	.mdi-download-card {
		min-height: 0;
	}

	.mdi-download-card__actions {
		flex-direction: column;
	}

	.mdi-downloads-pagination .page-numbers {
		flex-wrap: wrap;
	}
}

/* Definitive MDI brand identity. */
.mdi-site-header__inner {
	min-height: 108px;
	gap: 20px;
}

.mdi-brand {
	flex: 0 0 auto;
	gap: 0;
	line-height: 0;
}

.mdi-brand__picture {
	display: block;
}

.mdi-brand__image {
	display: block;
	width: clamp(154px, 13vw, 184px);
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.mdi-brand:focus-visible {
	border-radius: 10px;
	outline: 3px solid rgba(0, 97, 171, 0.22);
	outline-offset: 4px;
}

.mdi-home-nav {
	min-width: 0;
}

.mdi-home-footer {
	padding: 18px 0;
}

.mdi-home-footer .mdi-container {
	align-items: center;
}

.mdi-home-footer__identity {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}

.mdi-brand--footer {
	flex: 0 0 auto;
	padding: 5px 9px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.97);
}

.mdi-brand--footer .mdi-brand__image {
	width: 126px;
}

@media (max-width: 1080px) {
	.mdi-site-header__inner {
		flex-wrap: wrap;
		padding: 10px 0 12px;
	}

	.mdi-brand__image {
		width: 160px;
	}

	.mdi-home-nav {
		display: flex;
		order: 3;
		width: 100%;
		margin: 0;
		padding: 10px 0 0;
		justify-content: center;
		overflow-x: auto;
		border-top: 1px solid var(--mdi-border);
		white-space: nowrap;
	}
}

@media (max-width: 640px) {
	.mdi-site-header__inner {
		min-height: 0;
		gap: 10px 14px;
	}

	.mdi-brand__image {
		width: 140px;
	}

	body .mdi-site-header .mdi-quote-cta--header {
		display: inline-flex !important;
		min-width: 0;
		min-height: 38px;
		padding: 0 12px;
		font-size: 0.68rem;
		white-space: nowrap;
	}

	.mdi-home-nav {
		gap: 22px;
		justify-content: flex-start;
		padding-bottom: 2px;
		font-size: 0.78rem;
		scrollbar-width: thin;
	}

	.mdi-home-footer .mdi-container,
	.mdi-home-footer__identity {
		align-items: flex-start;
		flex-direction: column;
	}

	.mdi-home-footer__identity {
		gap: 12px;
	}

	.mdi-brand--footer .mdi-brand__image {
		width: 118px;
	}
}
