/*
Theme Name: Technologie Max
Theme URI: https://technologie-max.pl/
Author: Technologie Max
Description: Autorski motyw bloga technologicznego Technologie Max – wykonany 1:1 według projektu graficznego. Strona główna z wyróżnionymi artykułami, siatką najnowszych wpisów, kategoriami, rankingiem najczęściej czytanych, tagami, newsletterem i sekcją kontaktową. Tryb jasny i ciemny.
Version: 1.6.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: technologie-max
*/

/* ==========================================================================
   1. Fonty i zmienne
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--tm-blue: #0055ff;
	--tm-blue-hover: #0047d6;
	--tm-blue-text: #0047d6;
	--tm-blue-soft: #eaf1ff;
	--tm-blue-light: #8db6ff;
	--tm-text: #111827;
	--tm-text-2: #4a5565;
	--tm-muted: #5f6b7a;
	--tm-border: #e2e7ee;
	--tm-border-strong: #8892a3;
	--tm-bg: #ffffff;
	--tm-bg-soft: #f4f6fa;
	--tm-surface: #ffffff;
	--tm-dark: #0f1623;
	--tm-dark-border: #263043;
	--tm-dark-text: #a9b4c3;
	--tm-shadow-color: rgba(15, 23, 42, 0.1);
	--tm-header-bg: #ffffff;
	--tm-toggle-bg: #f4f6fa;
	--tm-toggle-active: #ffffff;
	--tm-panel: #0f1623;
	--tm-panel-border: transparent;
	--tm-footer: #0f1623;
	--tm-gutter: 80px;
	--tm-max: 1440px;
	--tm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--tm-blue: #2f74ff;
	--tm-blue-hover: #5a90ff;
	--tm-blue-text: #8db6ff;
	--tm-blue-soft: #16264a;
	--tm-text: #f3f5f9;
	--tm-text-2: #b4bdca;
	--tm-muted: #94a0b1;
	--tm-border: #263043;
	--tm-border-strong: #56627a;
	--tm-bg: #0b111b;
	--tm-bg-soft: #0f1623;
	--tm-surface: #141c2b;
	--tm-shadow-color: rgba(0, 0, 0, 0.45);
	--tm-header-bg: #0f1623;
	--tm-toggle-bg: #0b111b;
	--tm-toggle-active: #263043;
	--tm-panel: #141c2b;
	--tm-panel-border: #263043;
	--tm-footer: #080c14;
	color-scheme: dark;
}

/* ==========================================================================
   2. Reset i baza
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background-color: var(--tm-bg);
	color: var(--tm-text);
	font-family: var(--tm-font);
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
ul,
ol {
	margin: 0;
	padding: 0;
}

ul,
ol {
	list-style: none;
}

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

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

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

button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

svg.tm-icon {
	display: block;
	flex-shrink: 0;
	overflow: visible;
}

:focus-visible {
	outline: 2px solid var(--tm-blue);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tm-skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip: auto;
	border-radius: 10px;
	background: var(--tm-blue);
	color: #fff;
	font-weight: 600;
}

.tm-container {
	width: 100%;
	max-width: var(--tm-max);
	margin-inline: auto;
	padding-inline: var(--tm-gutter);
}

/* ==========================================================================
   3. Elementy wspólne
   ========================================================================== */

/* Etykieta kategorii */
.tm-tag {
	display: inline-flex;
	align-items: flex-start;
	width: fit-content;
	max-width: 100%;
	padding: 6px 10px;
	border-radius: 6px;
	background-color: var(--tm-blue-soft);
	color: var(--tm-blue-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

a.tm-tag:hover {
	background-color: var(--tm-blue);
	color: #fff;
}

/* Przyciski */
.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	padding: 0 24px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tm-btn--primary {
	background-color: var(--tm-blue);
	color: #fff;
}

.tm-btn--primary:hover {
	background-color: var(--tm-blue-hover);
}

:root[data-theme="dark"] .tm-btn--primary:hover {
	background-color: #1f62ea;
}

.tm-btn--outline {
	background-color: var(--tm-surface);
	color: var(--tm-text);
	box-shadow: inset 0 0 0 1.5px var(--tm-border-strong);
}

.tm-btn--outline:hover {
	color: var(--tm-blue);
	box-shadow: inset 0 0 0 1.5px var(--tm-blue);
}

.tm-btn[disabled],
.tm-btn.is-loading {
	opacity: 0.6;
	cursor: default;
	pointer-events: none;
}

/* Pigułki (kategorie powiązane, tagi) */
.tm-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border-radius: 22px;
	background-color: var(--tm-surface);
	box-shadow: inset 0 0 0 1px var(--tm-border);
	color: var(--tm-text);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.tm-pill .tm-icon {
	color: var(--tm-blue);
}

.tm-pill:hover,
.tm-pill.is-active {
	background-color: var(--tm-blue-soft);
	box-shadow: inset 0 0 0 1px var(--tm-blue);
	color: var(--tm-blue-text);
}

/* Nagłówki sekcji */
.tm-section-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tm-h2 {
	color: var(--tm-text);
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -0.8px;
	line-height: normal;
}

.tm-sub {
	color: var(--tm-text-2);
	font-size: 18px;
	font-weight: 400;
}

.tm-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.tm-dot {
	color: var(--tm-muted);
}

/* ==========================================================================
   4. Nagłówek
   ========================================================================== */

.tm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--tm-header-bg);
	border-bottom: 1px solid var(--tm-border);
	box-shadow: 0 2px 12px var(--tm-shadow-color);
}

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

.tm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 75px;
}

.tm-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.tm-logo__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background-color: #0055ff;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.tm-logo__word {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--tm-text);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.4px;
	white-space: nowrap;
}

.tm-logo__word span {
	color: var(--tm-blue);
}

.tm-logo img {
	width: auto;
	max-height: 44px;
}

/* Nawigacja */
.tm-nav > ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

.tm-nav li {
	position: relative;
}

.tm-nav > ul > li > a {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 44px;
	padding: 0 14px;
	border-bottom: 2px solid transparent;
	color: var(--tm-text);
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.tm-nav > ul > li > a:hover {
	color: var(--tm-blue);
}

.tm-nav > ul > li.current-menu-item > a,
.tm-nav > ul > li.current_page_item > a,
.tm-nav > ul > li.current-menu-ancestor > a {
	border-bottom-color: var(--tm-blue);
	color: var(--tm-blue);
	/* 600 zamiast 500 – szerokość rezerwowana przez ::after, by menu nie „skakało”. */
	font-weight: 600;
}

.tm-nav > ul > li.menu-item-has-children > a::after {
	content: "";
	width: 16px;
	height: 16px;
	background-color: var(--tm-text-2);
	-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%3Cpath d='m6 9 6 6 6-6'/%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%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.tm-nav > ul > li.menu-item-has-children:hover > a::after,
.tm-nav > ul > li.menu-item-has-children.is-open > a::after {
	transform: rotate(180deg);
}

.tm-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 110;
	min-width: 280px;
	margin-top: 12px;
	padding: 8px;
	border-radius: 16px;
	background-color: var(--tm-surface);
	box-shadow: inset 0 0 0 1px var(--tm-border), 0 16px 40px var(--tm-shadow-color);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.tm-nav .sub-menu::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: 16px;
}

.tm-nav li:hover > .sub-menu,
.tm-nav li:focus-within > .sub-menu,
.tm-nav li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tm-nav .sub-menu a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 14px;
	border-radius: 10px;
	color: var(--tm-text);
	font-size: 15px;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.tm-nav .sub-menu a:hover,
.tm-nav .sub-menu .current-menu-item > a {
	background-color: var(--tm-blue-soft);
	color: var(--tm-blue-text);
}

/* Akcje */
.tm-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.tm-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	color: var(--tm-text);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tm-icon-btn:hover {
	background-color: var(--tm-bg-soft);
	color: var(--tm-blue);
}

.tm-theme-toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 44px;
	padding: 4px;
	border-radius: 22px;
	background-color: var(--tm-toggle-bg);
	box-shadow: inset 0 0 0 1px var(--tm-border);
}

.tm-theme-toggle__opt {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 18px;
	color: var(--tm-muted);
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tm-theme-toggle__opt:hover {
	color: var(--tm-text);
}

:root:not([data-theme="dark"]) .tm-theme-toggle__opt[data-theme-value="light"],
:root[data-theme="dark"] .tm-theme-toggle__opt[data-theme-value="dark"] {
	background-color: var(--tm-toggle-active);
	box-shadow: 0 1px 3px var(--tm-shadow-color);
	color: var(--tm-text);
}

.tm-header .tm-btn--newsletter {
	height: 44px;
	padding: 0 20px;
}

.tm-burger {
	display: none;
}

.tm-burger .tm-burger__close,
.tm-burger[aria-expanded="true"] .tm-burger__open {
	display: none;
}

.tm-burger[aria-expanded="true"] .tm-burger__close {
	display: block;
}

/* Wyszukiwarka */
.tm-search-panel {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 90;
	padding: 20px 0;
	border-bottom: 1px solid var(--tm-border);
	background-color: var(--tm-header-bg);
	box-shadow: 0 12px 24px var(--tm-shadow-color);
}

.tm-search-panel[hidden] {
	display: none;
}

.tm-search-form {
	display: flex;
	gap: 12px;
	max-width: 760px;
	margin-inline: auto;
}

.tm-field {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	gap: 12px;
	min-width: 0;
	height: 52px;
	padding: 0 16px;
	border-radius: 10px;
	background-color: #fff;
	box-shadow: inset 0 0 0 1.5px var(--tm-border-strong);
	color: #5f6b7a;
	transition: box-shadow 0.2s ease;
}

.tm-field:focus-within {
	box-shadow: inset 0 0 0 2px var(--tm-blue);
}

.tm-field input {
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #111827;
	font-size: 16px;
}

.tm-field input::placeholder {
	color: #5f6b7a;
	opacity: 1;
}

.tm-search-form .tm-btn {
	height: 52px;
}

:root[data-theme="dark"] .tm-search-panel .tm-field {
	background-color: var(--tm-surface);
	color: var(--tm-muted);
}

:root[data-theme="dark"] .tm-search-panel .tm-field input {
	color: var(--tm-text);
}

/* ==========================================================================
   5. Sekcja „Wyróżnione”
   ========================================================================== */

.tm-featured {
	padding-block: 48px 72px;
}

.tm-featured__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.tm-featured__date {
	color: var(--tm-text-2);
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
}

.tm-featured__row {
	display: grid;
	grid-template-columns: minmax(0, 760fr) minmax(0, 472fr);
	gap: 48px;
	align-items: start;
}

.tm-hero {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.tm-hero__image {
	display: block;
	height: 428px;
	overflow: hidden;
	border-radius: 16px;
	background-color: var(--tm-bg-soft);
}

.tm-hero__image img,
.tm-side__thumb img,
.tm-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.tm-hero:hover .tm-hero__image img,
.tm-side:hover .tm-side__thumb img,
.tm-card:hover .tm-card__thumb img {
	transform: scale(1.03);
}

.tm-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.tm-hero__tags {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tm-badge-day {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tm-text);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.tm-badge-day .tm-icon {
	color: var(--tm-blue);
}

.tm-hero__title {
	width: 100%;
	color: var(--tm-text);
	font-size: 44px;
	font-weight: 800;
	letter-spacing: -1.2px;
	line-height: 51px;
}

.tm-hero__title a,
.tm-side__title a,
.tm-card__title a,
.tm-mostread__title a {
	transition: color 0.2s ease;
}

.tm-hero__title a:hover,
.tm-side__title a:hover,
.tm-mostread__title a:hover {
	color: var(--tm-blue);
}

.tm-hero__excerpt {
	width: 100%;
	color: var(--tm-text-2);
	font-size: 18px;
	line-height: 29px;
}

.tm-hero__author {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 8px;
}

.tm-avatar {
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 50%;
	background-color: var(--tm-bg-soft);
	flex-shrink: 0;
}

.tm-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tm-avatar__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: var(--tm-blue-soft);
	color: var(--tm-blue-text);
	font-size: 0.36em;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.tm-avatar {
	font-size: 44px;
}

.tm-article__author .tm-avatar {
	font-size: 48px;
}

.tm-authorbox .tm-avatar {
	font-size: 80px;
}

.tm-member .tm-avatar {
	font-size: 64px;
}

.tm-hero__author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tm-hero__author-name {
	color: var(--tm-text);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.tm-hero__author-role {
	color: var(--tm-muted);
	font-size: 14px;
	white-space: nowrap;
}

.tm-hero__divider {
	width: 1px;
	height: 32px;
	background-color: var(--tm-border);
}

.tm-hero__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tm-muted);
	font-size: 14px;
	white-space: nowrap;
}

/* Kolumna boczna */
.tm-featured__side {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tm-featured__side-title {
	color: var(--tm-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: normal;
	text-transform: uppercase;
}

.tm-side {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 24px 0;
	border-bottom: 1px solid var(--tm-border);
}

.tm-side:last-child {
	border-bottom: 0;
}

.tm-side__thumb {
	display: block;
	width: 176px;
	height: 99px;
	overflow: hidden;
	border-radius: 12px;
	background-color: var(--tm-bg-soft);
	flex-shrink: 0;
}

.tm-side__text {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.tm-side__title {
	width: 100%;
	color: var(--tm-text);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.2px;
	line-height: 24px;
}

.tm-side__meta {
	color: var(--tm-muted);
	font-size: 14px;
}

/* ==========================================================================
   6. Sekcja „Najnowsze wpisy”
   ========================================================================== */

.tm-latest {
	border-top: 1px solid var(--tm-border);
	padding-block: 72px;
}

.tm-latest__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.tm-latest__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.tm-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	color: var(--tm-blue);
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}

.tm-link-arrow .tm-icon {
	transition: transform 0.2s ease;
}

.tm-link-arrow:hover .tm-icon {
	transform: translateX(4px);
}

.tm-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.tm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 16px;
	background-color: var(--tm-surface);
	box-shadow: 0 0 0 rgba(15, 23, 42, 0);
	transition: box-shadow 0.25s ease;
}

.tm-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid var(--tm-border);
	border-radius: inherit;
	pointer-events: none;
	transition: border-color 0.25s ease;
}

.tm-card:hover {
	box-shadow: 0 16px 40px var(--tm-shadow-color);
}

.tm-card:hover::after {
	border-color: var(--tm-border-strong);
}

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

.tm-card__thumb {
	display: block;
	height: 228px;
	overflow: hidden;
	background-color: var(--tm-bg-soft);
	flex-shrink: 0;
}

.tm-card__thumb--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tm-border-strong);
}

.tm-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
}

.tm-card__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.tm-card__title {
	width: 100%;
	color: var(--tm-text);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.3px;
	line-height: 26px;
}

/* Cała karta klikalna – link tytułu rozciągnięty na kartę. */
.tm-card__title a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.tm-card .tm-tag {
	position: relative;
	z-index: 2;
}

.tm-card__excerpt {
	width: 100%;
	color: var(--tm-text-2);
	font-size: 16px;
	line-height: 24px;
}

.tm-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	color: var(--tm-muted);
	font-size: 14px;
	white-space: nowrap;
}

.tm-card__author {
	color: var(--tm-text);
	font-weight: 600;
}

.tm-more {
	display: flex;
	justify-content: center;
}

.tm-more[hidden] {
	display: none;
}

/* Powiązane kategorie */
.tm-related {
	display: flex;
	align-items: center;
	gap: 48px;
	padding: 32px;
	border-radius: 16px;
	background-color: var(--tm-bg-soft);
}

.tm-related__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 260px;
	flex-shrink: 0;
}

.tm-related__title {
	color: var(--tm-text);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.4px;
	line-height: normal;
	white-space: nowrap;
}

.tm-related__desc {
	color: var(--tm-text-2);
	font-size: 16px;
}

.tm-related__pills {
	display: flex;
	flex: 1 1 0;
	flex-wrap: wrap;
	gap: 12px;
	max-width: 800px;
}

/* ==========================================================================
   7. Sekcja „Kategorie”
   ========================================================================== */

.tm-cats {
	padding-block: 80px;
	background-color: var(--tm-bg-soft);
}

.tm-cats__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.tm-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 24px;
}

.tm-tile {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border-radius: 16px;
	background-color: var(--tm-surface);
	box-shadow: inset 0 0 0 1px var(--tm-border);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tm-tile:hover {
	box-shadow: inset 0 0 0 1px var(--tm-border-strong), 0 16px 40px var(--tm-shadow-color);
}

.tm-tile__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tm-tile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background-color: var(--tm-blue-soft);
	color: var(--tm-blue);
}

.tm-tile__arrow {
	color: var(--tm-muted);
	transition: color 0.2s ease, transform 0.2s ease;
}

.tm-tile:hover .tm-tile__arrow {
	color: var(--tm-blue);
	transform: translate(2px, -2px);
}

.tm-tile__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tm-tile__name {
	color: var(--tm-text);
	font-size: 17px;
	font-weight: 700;
	line-height: normal;
	transition: color 0.2s ease;
}

.tm-tile:hover .tm-tile__name {
	color: var(--tm-blue);
}

.tm-tile__count {
	color: var(--tm-text-2);
	font-size: 14px;
}

/* ==========================================================================
   8. Sekcja „Najczęściej czytane” + „Popularne tagi”
   ========================================================================== */

.tm-popular {
	padding-block: 80px;
}

.tm-popular__inner {
	display: flex;
	align-items: flex-start;
	gap: 80px;
}

.tm-mostread {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.tm-mostread__item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--tm-border);
}

.tm-mostread__item:last-child {
	border-bottom: 0;
}

.tm-mostread__rank {
	width: 52px;
	color: var(--tm-blue);
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 32px;
	flex-shrink: 0;
}

.tm-mostread__text {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.tm-mostread__title {
	color: var(--tm-text);
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

.tm-mostread__meta {
	color: var(--tm-muted);
	font-size: 14px;
}

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

.tm-tags {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 480px;
	flex-shrink: 0;
}

.tm-tags__cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ==========================================================================
   9. Newsletter
   ========================================================================== */

.tm-newsletter {
	padding-bottom: 80px;
}

.tm-newsletter__panel {
	display: flex;
	align-items: center;
	gap: 80px;
	padding: 64px;
	border-radius: 24px;
	background-color: var(--tm-panel);
	box-shadow: inset 0 0 0 1px var(--tm-panel-border);
}

.tm-newsletter__copy {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.tm-newsletter__copy .tm-eyebrow {
	color: #8db6ff;
}

.tm-newsletter__title {
	color: #fff;
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -0.8px;
	line-height: 43px;
}

.tm-newsletter__text {
	color: #a9b4c3;
	font-size: 18px;
	line-height: 29px;
}

.tm-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 540px;
	flex-shrink: 0;
}

.tm-newsletter__row {
	display: flex;
	align-items: flex-end;
	gap: 12px;
}

.tm-newsletter__email {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.tm-newsletter__email label {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.tm-newsletter__email .tm-field {
	flex: none;
}

.tm-newsletter__row .tm-btn {
	height: 52px;
}

.tm-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
}

.tm-consent__target {
	position: relative;
	display: flex;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding-top: 2px;
	flex-shrink: 0;
}

.tm-consent__target input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.tm-consent__box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	box-shadow: inset 0 0 0 1.5px #a9b4c3;
	color: transparent;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.tm-consent__target input:checked + .tm-consent__box {
	background-color: #0055ff;
	box-shadow: inset 0 0 0 1.5px #0055ff;
	color: #fff;
}

.tm-consent__target input:focus-visible + .tm-consent__box {
	outline: 2px solid #8db6ff;
	outline-offset: 2px;
}

.tm-consent__text {
	flex: 1 1 0;
	color: #a9b4c3;
	font-size: 14px;
	line-height: 21px;
}

.tm-consent__text a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tm-form-msg {
	margin: 0;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 21px;
}

.tm-form-msg[hidden] {
	display: none;
}

.tm-form-msg.is-success {
	background-color: rgba(34, 197, 94, 0.15);
	color: #86efac;
}

.tm-form-msg.is-error {
	background-color: rgba(239, 68, 68, 0.15);
	color: #fca5a5;
}

.tm-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ==========================================================================
   10. Kontakt
   ========================================================================== */

.tm-contact {
	border-top: 1px solid var(--tm-border);
	padding-block: 80px;
}

.tm-contact__inner {
	display: flex;
	align-items: center;
	gap: 80px;
}

.tm-contact__copy {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.tm-contact__copy .tm-eyebrow {
	color: var(--tm-blue-text);
}

.tm-contact__title {
	color: var(--tm-text);
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 46px;
}

.tm-contact__text {
	color: var(--tm-text-2);
	font-size: 18px;
	line-height: 29px;
}

.tm-contact__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding-top: 8px;
}

.tm-contact__topics li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tm-text);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
}

.tm-contact__topics .tm-icon {
	color: var(--tm-blue);
}

.tm-contact__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	width: 600px;
	padding: 40px;
	border-radius: 20px;
	background-color: var(--tm-surface);
	box-shadow: inset 0 0 0 1px var(--tm-border), 0 12px 40px var(--tm-shadow-color);
	flex-shrink: 0;
}

.tm-contact__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background-color: var(--tm-blue-soft);
	color: var(--tm-blue);
}

.tm-contact__label {
	color: var(--tm-text-2);
	font-size: 16px;
	font-weight: 500;
}

.tm-contact__email {
	max-width: 100%;
	color: var(--tm-blue);
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.6px;
	overflow-wrap: anywhere;
}

.tm-contact__email:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.tm-contact__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 8px;
}

/* ==========================================================================
   11. Stopka
   ========================================================================== */

.tm-footer {
	padding-block: 72px 32px;
	background-color: var(--tm-footer);
	color: #a9b4c3;
}

.tm-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.tm-footer__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 64px;
}

.tm-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	width: 360px;
	flex-shrink: 0;
}

.tm-footer .tm-logo__word {
	color: #fff;
}

.tm-footer .tm-logo__word span {
	color: #8db6ff;
}

.tm-footer__desc {
	color: #a9b4c3;
	font-size: 16px;
	line-height: 26px;
}

.tm-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tm-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	box-shadow: inset 0 0 0 1px #263043;
	color: #fff;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tm-social a:hover {
	background-color: #0055ff;
	box-shadow: inset 0 0 0 1px #0055ff;
}

.tm-footer__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.tm-footer__col-title {
	margin-bottom: 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.6px;
	line-height: normal;
	text-transform: uppercase;
	white-space: nowrap;
}

.tm-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tm-footer__col a {
	display: flex;
	align-items: center;
	min-height: 36px;
	color: #a9b4c3;
	font-size: 15px;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.tm-footer__col a:hover {
	color: #fff;
}

.tm-footer__col a.tm-footer__mail {
	color: #8db6ff;
	font-weight: 600;
}

.tm-footer__col a.tm-footer__mail:hover {
	color: #fff;
}

.tm-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 23px;
	border-top: 1px solid #263043;
}

.tm-footer__copy {
	color: #a9b4c3;
	font-size: 14px;
}

.tm-totop {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.tm-totop .tm-icon {
	transition: transform 0.2s ease;
}

.tm-totop:hover .tm-icon {
	transform: translateY(-3px);
}

/* ==========================================================================
   12. Podstrony (archiwa, wpis, strona) – wersja bazowa do czasu projektów
   ========================================================================== */

.tm-page-head {
	padding-block: 48px 40px;
}

.tm-page-head .tm-eyebrow {
	display: block;
	margin-bottom: 12px;
	color: var(--tm-blue-text);
}

.tm-page-title {
	color: var(--tm-text);
	font-size: 44px;
	font-weight: 800;
	letter-spacing: -1.2px;
	line-height: 51px;
}

.tm-page-desc {
	max-width: 760px;
	margin-top: 12px;
	color: var(--tm-text-2);
	font-size: 18px;
	line-height: 29px;
}

.tm-archive {
	padding-bottom: 80px;
}

.tm-empty {
	padding: 48px 32px;
	border-radius: 16px;
	background-color: var(--tm-bg-soft);
	color: var(--tm-text-2);
	font-size: 18px;
	line-height: 29px;
	text-align: center;
}

.tm-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 48px;
}

.tm-pagination .page-numbers,
.tm-pagination__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 10px;
	background-color: var(--tm-surface);
	box-shadow: inset 0 0 0 1px var(--tm-border);
	color: var(--tm-text);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.tm-pagination__nav {
	padding: 0 16px;
	font-weight: 600;
}

.tm-pagination a.page-numbers:hover,
.tm-pagination a.tm-pagination__nav:hover {
	box-shadow: inset 0 0 0 1px var(--tm-blue);
	color: var(--tm-blue);
}

.tm-pagination .page-numbers.current {
	background-color: var(--tm-blue);
	box-shadow: none;
	color: #fff;
	font-weight: 700;
}

.tm-pagination .page-numbers.dots {
	min-width: 36px;
	padding: 0;
	background: none;
	box-shadow: none;
	color: var(--tm-text-2);
}

.tm-pagination__nav.is-disabled {
	color: var(--tm-muted);
	font-weight: 500;
	cursor: default;
}

.tm-single {
	padding-block: 48px 80px;
}

.tm-single__inner {
	max-width: 840px;
	margin-inline: auto;
}

.tm-single__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 32px;
}

.tm-single__image {
	margin-bottom: 40px;
	overflow: hidden;
	border-radius: 16px;
}

.tm-single__image img {
	width: 100%;
}

.tm-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--tm-border);
}

.tm-404 {
	padding-block: 96px 120px;
	text-align: center;
}

.tm-404__code {
	color: var(--tm-blue);
	font-size: 96px;
	font-weight: 800;
	letter-spacing: -3px;
	line-height: 1;
}

.tm-404 .tm-page-title {
	margin-top: 16px;
}

.tm-404 .tm-page-desc {
	margin-inline: auto;
}

.tm-404 .tm-btn {
	margin-top: 32px;
}

.tm-comments {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--tm-border);
}

.tm-comments__title,
.tm-comments .comment-reply-title {
	display: block;
	margin-bottom: 24px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.4px;
}

.tm-comments .comment-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 40px;
}

.tm-comments .comment-list .children {
	margin: 24px 0 0 32px;
}

.tm-comments .comment-body {
	padding: 20px 24px;
	border-radius: 16px;
	background-color: var(--tm-bg-soft);
	font-size: 16px;
	line-height: 26px;
}

.tm-comments .comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.tm-comments .comment-author img {
	border-radius: 50%;
}

.tm-comments .comment-metadata,
.tm-comments .reply,
.tm-comments .logged-in-as,
.tm-comments .comment-notes {
	margin: 6px 0 10px;
	color: var(--tm-muted);
	font-size: 14px;
}

.tm-comments .reply a,
.tm-comments .logged-in-as a {
	color: var(--tm-blue);
}

.tm-comments .comment-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tm-comments .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.tm-comments .comment-form input[type="text"],
.tm-comments .comment-form input[type="email"],
.tm-comments .comment-form input[type="url"],
.tm-comments .comment-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 0;
	border-radius: 10px;
	background-color: var(--tm-surface);
	box-shadow: inset 0 0 0 1.5px var(--tm-border-strong);
	color: var(--tm-text);
	font-size: 16px;
}

.tm-comments .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.tm-comments .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.tm-comments .form-submit input {
	height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 10px;
	background-color: var(--tm-blue);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

/* ==========================================================================
   13. Responsywność
   ========================================================================== */

@media (max-width: 1360px) {
	:root {
		--tm-gutter: 48px;
	}

	.tm-nav > ul > li > a {
		padding: 0 10px;
	}

	.tm-popular__inner,
	.tm-newsletter__panel,
	.tm-contact__inner {
		gap: 56px;
	}

	.tm-tags {
		width: 420px;
	}

	.tm-newsletter__form {
		width: 480px;
	}

	.tm-contact__card {
		width: 520px;
	}

	.tm-footer__top {
		gap: 40px;
	}

	.tm-footer__brand {
		width: 300px;
	}
}

@media (max-width: 1180px) {
	.tm-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		z-index: 95;
		display: none;
		max-height: calc(100vh - 76px);
		padding: 12px var(--tm-gutter) 24px;
		overflow-y: auto;
		border-bottom: 1px solid var(--tm-border);
		background-color: var(--tm-header-bg);
		box-shadow: 0 12px 24px var(--tm-shadow-color);
	}

	.tm-nav.is-open {
		display: block;
	}

	.tm-nav > ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.tm-nav > ul > li > a {
		justify-content: space-between;
		height: 52px;
		padding: 0;
		border-bottom: 1px solid var(--tm-border);
		font-size: 17px;
	}

	.tm-nav > ul > li.current-menu-item > a,
	.tm-nav > ul > li.current_page_item > a {
		border-bottom-color: var(--tm-border);
	}

	.tm-nav .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		margin: 0;
		padding: 8px 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.tm-nav li.is-open > .sub-menu {
		display: block;
	}

	.tm-burger {
		display: flex;
	}

	.tm-header__inner {
		position: static;
	}
}

@media (max-width: 1100px) {
	.tm-featured__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.tm-hero__image {
		height: auto;
		aspect-ratio: 760 / 428;
	}

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

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

	.tm-related {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.tm-related__text {
		width: 100%;
	}

	.tm-popular__inner,
	.tm-newsletter__panel,
	.tm-contact__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 48px;
	}

	.tm-tags,
	.tm-newsletter__form,
	.tm-contact__card {
		width: 100%;
	}

	.tm-footer__top {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 40px 64px;
	}

	.tm-footer__brand {
		width: 100%;
		max-width: 480px;
	}
}

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

@media (max-width: 720px) {
	:root {
		--tm-gutter: 20px;
	}

	html {
		scroll-padding-top: 80px;
	}

	.tm-header__inner {
		height: 63px;
	}

	.tm-header__actions {
		gap: 4px;
	}

	.tm-header .tm-btn--newsletter {
		display: none;
	}

	.tm-theme-toggle {
		height: 40px;
		padding: 3px;
	}

	.tm-theme-toggle__opt {
		width: 34px;
		height: 34px;
	}

	.tm-logo__word {
		font-size: 18px;
	}

	.tm-h2 {
		font-size: 28px;
		letter-spacing: -0.6px;
	}

	.tm-sub {
		font-size: 16px;
	}

	.tm-featured {
		padding-block: 32px 48px;
	}

	.tm-featured__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		margin-bottom: 24px;
	}

	.tm-featured__date {
		font-size: 14px;
	}

	.tm-hero {
		gap: 20px;
	}

	.tm-hero__title,
	.tm-page-title {
		font-size: 30px;
		letter-spacing: -0.8px;
		line-height: 36px;
	}

	.tm-hero__excerpt {
		font-size: 16px;
		line-height: 26px;
	}

	.tm-hero__author {
		flex-wrap: wrap;
		gap: 12px 16px;
	}

	.tm-hero__divider {
		display: none;
	}

	.tm-hero__meta {
		width: 100%;
	}

	.tm-side {
		gap: 16px;
		padding: 20px 0;
	}

	.tm-side__thumb {
		width: 112px;
		height: 84px;
	}

	.tm-side__title {
		font-size: 16px;
		line-height: 22px;
	}

	.tm-latest,
	.tm-cats,
	.tm-popular,
	.tm-contact {
		padding-block: 48px;
	}

	.tm-latest__inner,
	.tm-cats__inner {
		gap: 28px;
	}

	.tm-latest__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

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

	.tm-card__thumb {
		height: auto;
		aspect-ratio: 16 / 9;
	}

	.tm-card__body {
		padding: 20px;
	}

	.tm-related {
		padding: 24px 20px;
	}

	.tm-related__title {
		white-space: normal;
	}

	.tm-tiles {
		gap: 12px;
	}

	.tm-tile {
		padding: 16px;
	}

	.tm-tile__name {
		font-size: 15px;
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	.tm-mostread__item {
		gap: 12px;
	}

	.tm-mostread__rank {
		width: 44px;
		font-size: 28px;
	}

	.tm-mostread__title {
		font-size: 16px;
		line-height: 22px;
	}

	.tm-newsletter {
		padding-bottom: 48px;
	}

	.tm-newsletter__panel {
		gap: 32px;
		padding: 32px 20px;
		border-radius: 20px;
	}

	.tm-newsletter__title {
		font-size: 28px;
		letter-spacing: -0.6px;
		line-height: 34px;
	}

	.tm-newsletter__text,
	.tm-contact__text {
		font-size: 16px;
		line-height: 26px;
	}

	.tm-newsletter__row {
		flex-direction: column;
		align-items: stretch;
	}

	.tm-newsletter__email {
		flex: none;
	}

	.tm-contact__title {
		font-size: 30px;
		letter-spacing: -0.8px;
		line-height: 36px;
	}

	.tm-contact__card {
		padding: 24px 20px;
	}

	.tm-contact__email {
		font-size: 21px;
		letter-spacing: -0.4px;
	}

	.tm-contact__buttons,
	.tm-contact__buttons .tm-btn {
		width: 100%;
	}

	.tm-footer {
		padding-block: 48px 24px;
	}

	.tm-footer__top {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 24px;
	}

	.tm-footer__brand {
		grid-column: 1 / -1;
	}

	.tm-footer__col a {
		white-space: normal;
	}

	.tm-footer__bottom {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 8px;
	}

	.tm-search-form {
		flex-direction: column;
	}

	.tm-search-form .tm-field {
		flex: none;
	}

	.tm-single {
		padding-block: 32px 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media print {
	.tm-header,
	.tm-footer,
	.tm-newsletter,
	.tm-contact {
		display: none;
	}
}
