/**
 * Technologie Max – style treści artykułu (front).
 * Plik editor-content.css jest generowany z tego pliku dla edytora bloków.
 */

.tm-content {
	color: var(--tm-text);
	font-size: 18px;
	line-height: 32px;
}

.tm-content > * {
	margin-top: 0;
	margin-bottom: 0;
}

.tm-content > * + * {
	margin-top: 24px;
}

.tm-content h2 {
	margin-top: 48px;
	color: var(--tm-text);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.7px;
	line-height: 36px;
	scroll-margin-top: 12px;
}

.tm-content h3 {
	margin-top: 40px;
	color: var(--tm-text);
	font-size: 23px;
	font-weight: 700;
	letter-spacing: -0.4px;
	line-height: 30px;
}

.tm-content h4 {
	margin-top: 32px;
	color: var(--tm-text);
	font-size: 19px;
	font-weight: 700;
	line-height: 28px;
}

.tm-content p {
	margin-bottom: 0;
}

.tm-content a {
	color: var(--tm-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.tm-content a:hover {
	color: var(--tm-blue-hover);
}

/* Listy */
.tm-content ul,
.tm-content ol {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
	line-height: 30px;
}

.tm-content li {
	position: relative;
	padding-left: 26px;
}

.tm-content li + li,
.tm-content li > ul,
.tm-content li > ol {
	margin-top: 24px;
}

.tm-content ul > li::before {
	content: "";
	position: absolute;
	top: 11px;
	left: 4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--tm-blue);
}

.tm-content ol {
	counter-reset: tm-ol;
}

.tm-content ol > li {
	padding-left: 34px;
	counter-increment: tm-ol;
}

.tm-content ol > li::before {
	content: counter(tm-ol) ".";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--tm-blue);
	font-weight: 700;
}

/* Obrazy */
.tm-content figure {
	margin-right: 0;
	margin-left: 0;
}

.tm-content img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

.tm-content .wp-block-image img {
	display: block;
	width: 100%;
}

.tm-content figcaption {
	margin-top: 12px;
	margin-bottom: 0;
	color: var(--tm-muted);
	font-size: 14px;
	line-height: 20px;
	text-align: left;
}

.tm-content .wp-block-embed iframe,
.tm-content video {
	max-width: 100%;
	border-radius: 16px;
}

/* Cytat */
.tm-content blockquote {
	margin-right: 0;
	margin-left: 0;
	padding: 8px 0 8px 28px;
	border-left: 4px solid var(--tm-blue);
}

.tm-content blockquote p {
	margin: 0;
	color: var(--tm-text);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.4px;
	line-height: 35px;
}

.tm-content blockquote p + p {
	margin-top: 12px;
}

.tm-content blockquote cite {
	display: block;
	margin-top: 11px;
	color: var(--tm-muted);
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px;
}

/* Czytaj także */
.tm-content .tm-readalso {
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--tm-blue);
}

.tm-content .wp-block-group__inner-container {
	display: contents;
}

.tm-content .tm-readalso p {
	margin: 0;
}

.tm-content .tm-readalso__label {
	color: var(--tm-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 16px;
	text-transform: uppercase;
}

.tm-content .tm-readalso .tm-readalso__link {
	margin-top: 4px;
	font-size: 18px;
	font-weight: 700;
	line-height: 26px;
}

.tm-content .tm-readalso__link a {
	color: var(--tm-blue);
	text-decoration: none;
}

.tm-content .tm-readalso__link a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

/* Liczby */
.tm-content .tm-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.tm-content .tm-stat {
	margin: 0;
	padding: 24px;
	border: 1px solid var(--tm-border);
	border-radius: 16px;
	background-color: var(--tm-surface);
}

.tm-content .tm-stat p {
	margin: 0;
}

.tm-content .tm-stat__value {
	color: var(--tm-blue);
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -1.2px;
	line-height: 44px;
}

.tm-content .tm-stat .tm-stat__label {
	margin-top: 4px;
	color: var(--tm-text-2);
	font-size: 15px;
	line-height: 20px;
}

/* Ramka „Ważne” */
.tm-content .tm-note {
	position: relative;
	padding: 20px 16px 20px 55px;
	border: 1px solid var(--tm-border);
	border-radius: 12px;
	background-color: var(--tm-bg-soft);
	color: var(--tm-text-2);
	font-size: 16px;
	line-height: 25px;
}

.tm-content .tm-note::before {
	content: "";
	position: absolute;
	top: 20px;
	left: 20px;
	width: 20px;
	height: 20px;
	background-color: var(--tm-blue);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tm-content .tm-note p {
	margin: 0;
}

.tm-content .tm-note__title {
	color: var(--tm-text);
	font-weight: 700;
	line-height: 20px;
}

/* Kod, tabele */
.tm-content pre,
.tm-content code {
	border-radius: 8px;
	background-color: var(--tm-bg-soft);
	font-size: 15px;
}

.tm-content code {
	padding: 2px 6px;
}

.tm-content pre {
	padding: 20px;
	overflow-x: auto;
	line-height: 24px;
}

.tm-content pre code {
	padding: 0;
}

.tm-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 24px;
}

.tm-content th,
.tm-content td {
	padding: 12px 16px;
	border: 1px solid var(--tm-border);
	text-align: left;
}

.tm-content th {
	background-color: var(--tm-bg-soft);
	font-weight: 700;
}

.tm-content hr {
	height: 1px;
	border: 0;
	background-color: var(--tm-border);
}

@media (max-width: 720px) {
	.tm-content {
		font-size: 17px;
		line-height: 29px;
	}

	.tm-content h2 {
		margin-top: 40px;
		font-size: 25px;
		line-height: 31px;
	}

	.tm-content blockquote {
		padding-left: 20px;
	}

	.tm-content blockquote p {
		font-size: 20px;
		line-height: 30px;
	}

	.tm-content .tm-stats {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.tm-content .tm-stat {
		padding: 20px;
	}
}
