/* Tecno-Motori Next — magazine automotive (densità stile HD Motori) */
:root {
  --tm-anthracite: #111111;
  --tm-graphite: #1c1c1c;
  --tm-ink: #0e0e0e;
  --tm-muted: #6b6b6b;
  --tm-line: #e8e8e8;
  --tm-line-strong: #d0d0d0;
  --tm-surface: #f2f2f2;
  --tm-white: #ffffff;
  --tm-accent: #e10600;
  --tm-accent-dark: #b50500;
  --tm-accent-soft: #ffe8e6;
  --tm-container: 1280px;
  --tm-content: 860px;
  --tm-sidebar: 300px;
  --tm-gap: 1.25rem;
  --tm-radius: 2px;
  --tm-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  --tm-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --tm-font-display: "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  --tm-fs-body: 1rem;
  --tm-lh-body: 1.55;
  --tm-header-h: 4rem;
  --tm-transition: 160ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--tm-font);
  font-size: var(--tm-fs-body);
  line-height: var(--tm-lh-body);
  color: var(--tm-ink);
  background: var(--tm-surface);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--tm-accent); text-decoration: none; }
a:hover { color: var(--tm-accent-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: 2px;
}

.tm-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--tm-accent); color: #fff; padding: 0.75rem 1rem;
}
.tm-skip-link:focus { left: 1rem; top: 1rem; }

.tm-container {
  width: min(100% - 1.5rem, var(--tm-container));
  margin-inline: auto;
}

.tm-site { min-height: 100vh; display: flex; flex-direction: column; }
.tm-main { flex: 1; padding-block: 0 2.5rem; background: var(--tm-white); }

/* ========== HEADER ========== */
.tm-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--tm-anthracite);
  border-bottom: 3px solid var(--tm-accent);
  transition: box-shadow var(--tm-transition);
}
.tm-header.is-compact { box-shadow: var(--tm-shadow); }
.tm-header__bar { min-height: var(--tm-header-h); }
.tm-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: min(100% - 1.5rem, var(--tm-container));
  margin-inline: auto; min-height: var(--tm-header-h);
}
.tm-header__brand a, .tm-header__site-title { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.tm-custom-logo, .custom-logo { max-height: 42px; width: auto; filter: brightness(1.05); }
.tm-header.is-compact .custom-logo { max-height: 34px; }

.tm-nav--primary { display: none; }
.tm-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; flex-wrap: wrap; }
.tm-nav--primary a {
  color: #eee; text-decoration: none; font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.55rem 0.7rem; display: block;
}
.tm-nav--primary a:hover,
.tm-nav--primary .current-menu-item > a { color: #fff; background: var(--tm-accent); }
.tm-header__secondary { background: #171717; border-top: 1px solid #2b2b2b; }
.tm-nav--secondary a {
  display: block; padding: 0.45rem 0.65rem; color: #fff;
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.tm-nav--secondary a:hover, .tm-nav--secondary a:focus-visible { color: #fff; background: #b50500; }

.tm-header__actions { display: flex; gap: 0.4rem; }
.tm-header__search-toggle, .tm-header__menu-toggle {
  appearance: none; border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: #fff; border-radius: var(--tm-radius);
  min-width: 42px; min-height: 42px; cursor: pointer;
}
.tm-header__burger { display: grid; gap: 4px; width: 18px; margin: auto; }
.tm-header__burger span { display: block; height: 2px; background: currentColor; }
.tm-header__search[hidden] { display: none !important; }
.tm-header__search {
  position: absolute; inset-inline: 0; top: 100%;
  background: #0a0a0a; border-bottom: 1px solid #333; padding: 1rem;
}
.tm-search-form { display: flex; gap: 0.5rem; width: min(100%, var(--tm-container)); margin-inline: auto; }
.tm-search-form input[type="search"] {
  flex: 1; border: 1px solid #444; background: #161616; color: #fff;
  border-radius: var(--tm-radius); padding: 0.7rem 0.9rem; font: inherit;
}
.tm-search-form button {
  border: 0; background: var(--tm-accent); color: #fff; border-radius: var(--tm-radius);
  padding: 0.7rem 1rem; font-weight: 700; cursor: pointer;
}

/* Mobile nav */
.tm-mobile-nav { position: fixed; inset: 0; z-index: 1100; pointer-events: none; }
.tm-mobile-nav[hidden] { display: none !important; }
.tm-mobile-nav.is-open { pointer-events: auto; }
.tm-mobile-nav__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55); opacity: 0;
  transition: opacity var(--tm-transition);
}
.tm-mobile-nav.is-open .tm-mobile-nav__backdrop { opacity: 1; }
.tm-mobile-nav__panel {
  position: absolute; top: 0; right: 0; width: min(100%, 22rem); height: 100%;
  background: var(--tm-anthracite); color: #fff; padding: 1.1rem;
  transform: translateX(100%); transition: transform var(--tm-transition); overflow: auto;
}
.tm-mobile-nav.is-open .tm-mobile-nav__panel { transform: translateX(0); }
.tm-mobile-nav__close {
  margin-left: auto; display: block; min-width: 42px; min-height: 42px;
  border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #fff; cursor: pointer;
}
.tm-mobile-nav ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.tm-mobile-nav a {
  display: block; padding: 0.85rem 0.2rem; color: #fff; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #333;
}
body.tm-nav-open { overflow: hidden; }

/* ========== TICKER ========== */
.tm-ticker {
  background: var(--tm-graphite);
  color: #fff;
  border-bottom: 1px solid #2a2a2a;
}
.tm-ticker__inner {
  display: flex; align-items: center; gap: 0.85rem;
  min-height: 2.5rem; overflow: hidden;
}
.tm-ticker__label {
  flex: 0 0 auto;
  background: var(--tm-accent); color: #fff;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.28rem 0.55rem;
}
.tm-ticker__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.25rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.tm-ticker__list::-webkit-scrollbar { display: none; }
.tm-ticker__item { flex: 0 0 auto; scroll-snap-align: start; max-width: 22rem; }
.tm-ticker__item a { color: #eee; display: flex; gap: 0.45rem; align-items: baseline; font-size: 0.84rem; }
.tm-ticker__item a:hover { color: #fff; }
.tm-ticker__cat { color: var(--tm-accent); font-weight: 800; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.04em; white-space: nowrap; }
.tm-ticker__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18rem; }

/* ========== MOSAIC HERO ========== */
.tm-mosaic { padding: 1rem 0 0.5rem; background: var(--tm-white); }
.tm-mosaic__grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
}
.tm-mosaic__feature {
  position: relative; overflow: hidden; background: #000; min-height: 18rem;
}
.tm-mosaic__feature-link { color: #fff; display: block; height: 100%; text-decoration: none; }
.tm-mosaic__media { margin: 0; aspect-ratio: 16/10; }
.tm-mosaic__img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: transform 280ms ease, opacity 280ms ease; }
.tm-mosaic__feature:hover .tm-mosaic__img { transform: scale(1.03); opacity: 1; }
.tm-mosaic__overlay {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 1.25rem 1.1rem 1.1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
}
.tm-mosaic__title {
  margin: 0.4rem 0 0.35rem;
  font-size: clamp(1.45rem, 3.8vw, 2.35rem);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 800;
}
.tm-mosaic__excerpt { margin: 0 0 0.55rem; color: #ddd; font-size: 0.95rem; max-width: 48ch; }
.tm-mosaic__meta { display: flex; gap: 0.75rem; font-size: 0.8rem; color: #bbb; }

.tm-mosaic__side { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
.tm-mosaic__card { background: var(--tm-white); border: 1px solid var(--tm-line); }
.tm-mosaic__card-link { color: inherit; display: grid; text-decoration: none; height: 100%; }
.tm-mosaic__card--lg .tm-mosaic__card-link { grid-template-rows: auto 1fr; }
.tm-mosaic__card-media { margin: 0; aspect-ratio: 16/10; overflow: hidden; background: #ddd; }
.tm-mosaic__card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.tm-mosaic__card:hover .tm-mosaic__card-img { transform: scale(1.04); }
.tm-mosaic__card-body { padding: 0.65rem 0.7rem 0.8rem; }
.tm-mosaic__card-title {
  margin: 0.3rem 0 0.35rem; font-size: 0.95rem; line-height: 1.25;
  letter-spacing: -0.015em; font-weight: 750;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tm-mosaic__card--lg .tm-mosaic__card-title { font-size: 1.05rem; -webkit-line-clamp: 3; }
.tm-mosaic__card time { font-size: 0.75rem; color: var(--tm-muted); }

.tm-pill {
  display: inline-block; background: var(--tm-accent); color: #fff;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 0.2rem 0.45rem;
}
.tm-pill--ghost { background: transparent; color: var(--tm-accent); border: 1px solid currentColor; padding: 0.12rem 0.4rem; }

/* ========== HOME LAYOUT ========== */
.tm-home__main {
  display: grid; gap: 1.5rem; padding-top: 1.25rem;
  grid-template-columns: 1fr;
}
.tm-home__primary { min-width: 0; }
.tm-home__rail { min-width: 0; }

.tm-section { margin-bottom: 1.75rem; }
.tm-section__header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.85rem;
}
.tm-section__header--bar {
  border-bottom: 3px solid var(--tm-anthracite);
  padding-bottom: 0.4rem;
}
.tm-section__title {
  margin: 0; font-size: 1.25rem; letter-spacing: -0.02em;
  text-transform: uppercase; font-weight: 800;
}
.tm-section__title-link { color: inherit; }
.tm-section__title-link:hover { color: var(--tm-accent); }
.tm-section__more {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--tm-accent); white-space: nowrap;
}

.tm-cat-layout {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1fr;
}

/* ========== CARDS ========== */
.tm-card-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1fr;
}
.tm-card-grid--3, .tm-card-grid--4 { grid-template-columns: 1fr 1fr; }
.tm-card-grid--dense { gap: 0.75rem; }

.tm-card { background: var(--tm-white); border: 1px solid var(--tm-line); transition: transform var(--tm-transition), box-shadow var(--tm-transition); }
.tm-card:hover { transform: translateY(-2px); box-shadow: var(--tm-shadow); }
.tm-card__link { color: inherit; text-decoration: none; display: grid; height: 100%; }
.tm-card__media { margin: 0; position: relative; aspect-ratio: 16/10; overflow: hidden; background: #ddd; }
.tm-card__media-img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.tm-card:hover .tm-card__media-img { transform: scale(1.04); }
.tm-card__badge {
  position: absolute; left: 0; bottom: 0;
  background: var(--tm-accent); color: #fff;
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.25rem 0.45rem;
}
.tm-card__body { padding: 0.65rem 0.7rem 0.8rem; }
.tm-card__title {
  margin: 0 0 0.35rem; font-size: 0.95rem; line-height: 1.28;
  letter-spacing: -0.015em; font-weight: 750;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tm-card__excerpt { margin: 0 0 0.45rem; color: var(--tm-muted); font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm-card__meta { font-size: 0.75rem; color: var(--tm-muted); display: flex; gap: 0.55rem; }

.tm-card--lead { border: 0; }
.tm-card--lead .tm-card__media { aspect-ratio: 16/9; }
.tm-card--lead .tm-card__title { font-size: 1.35rem; -webkit-line-clamp: 3; }
.tm-card--lead .tm-card__body { padding: 0.85rem 0 0; }
.tm-card--lead:hover { box-shadow: none; transform: none; }

/* ========== RAIL ========== */
.tm-rail-block {
  border: 1px solid var(--tm-line);
  margin-bottom: 1rem;
  background: #fafafa;
}
.tm-rail-block__title {
  margin: 0; padding: 0.65rem 0.8rem;
  background: var(--tm-anthracite); color: #fff;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800;
}
.tm-rail-list { list-style: none; margin: 0; padding: 0.25rem 0; }
.tm-rail-list__item {
  display: grid; grid-template-columns: 2rem 1fr; gap: 0.45rem;
  padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--tm-line);
  align-items: start;
}
.tm-rail-list__item:last-child { border-bottom: 0; }
.tm-rail-list__num {
  font-size: 1.15rem; font-weight: 800; color: var(--tm-accent);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.tm-rail-list__cat {
  display: block; font-size: 0.68rem; font-weight: 800; color: var(--tm-accent);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.15rem;
}
.tm-rail-list__link {
  color: var(--tm-ink); font-weight: 700; font-size: 0.9rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tm-rail-list__link:hover { color: var(--tm-accent); }

/* ========== BUTTONS / LOAD MORE ========== */
.tm-btn {
  appearance: none; border: 1px solid var(--tm-line); background: #fff;
  min-height: 42px; padding: 0.55rem 1.1rem; font: inherit; font-weight: 750;
  cursor: pointer; border-radius: var(--tm-radius); text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 0.78rem;
}
.tm-btn--accent { background: var(--tm-accent); border-color: var(--tm-accent); color: #fff; }
.tm-btn--accent:hover { background: var(--tm-accent-dark); }
.tm-load-more { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.tm-load-more__status { font-size: 0.85rem; color: var(--tm-muted); }

/* ========== LAYOUT SINGLE / ARCHIVE ========== */
.tm-layout {
  display: grid; gap: 1.5rem;
  width: min(100% - 1.5rem, var(--tm-container));
  margin-inline: auto; padding-top: 1.25rem;
}
.tm-layout--single, .tm-layout--archive, .tm-layout--home { grid-template-columns: 1fr; }
.tm-sidebar { border-top: 1px solid var(--tm-line); padding-top: 1rem; }
.tm-sidebar .widget { margin-bottom: 1.25rem; }
.tm-widget__title, .tm-sidebar .widget-title {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0 0 0.6rem; color: var(--tm-muted); font-weight: 800;
}

.tm-breadcrumb { font-size: 0.8rem; margin-bottom: 0.85rem; color: var(--tm-muted); }
.tm-breadcrumb__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; padding: 0; }
.tm-breadcrumb__item:not(:last-child)::after { content: "/"; margin-left: 0.3rem; color: #bbb; }
.tm-breadcrumb a { color: inherit; }
.tm-breadcrumb a:hover { color: var(--tm-accent); }

.tm-single__kicker { margin: 0 0 0.4rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.tm-single__kicker a { color: var(--tm-accent); }
.tm-single__title {
  margin: 0 0 0.65rem; font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 800;
}
.tm-single__subtitle { margin: 0 0 0.85rem; font-size: 1.15rem; color: var(--tm-muted); line-height: 1.4; }
.tm-meta { display: flex; flex-wrap: wrap; gap: 0.65rem 1.1rem; font-size: 0.88rem; color: var(--tm-muted); margin-bottom: 1rem; }
.tm-meta a { color: inherit; }
.tm-single__featured { margin: 0 0 1.25rem; }
.tm-single__featured-img { width: 100%; }
.tm-single__featured-caption { font-size: 0.8rem; color: var(--tm-muted); margin-top: 0.4rem; }

.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { letter-spacing: -0.02em; line-height: 1.25; }
.entry-content p, .entry-content li { max-width: 70ch; }
.entry-content blockquote {
  margin: 1.25rem 0; padding: 0.4rem 0 0.4rem 0.9rem;
  border-left: 3px solid var(--tm-accent); color: var(--tm-graphite);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.entry-content th, .entry-content td { border: 1px solid var(--tm-line); padding: 0.55rem 0.7rem; }

.tm-toc { margin: 0 0 1.25rem; border: 1px solid var(--tm-line); padding: 0.7rem 0.9rem; }
.tm-toc__summary { cursor: pointer; font-weight: 800; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em; }
.tm-share { margin: 1.5rem 0; }
.tm-share__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0; padding: 0; }
.tm-share__btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.35rem 0.8rem;
  border: 1px solid var(--tm-line); background: #fff; color: var(--tm-anthracite);
  font: inherit; cursor: pointer; text-decoration: none; font-size: 0.82rem; font-weight: 700;
}
.tm-author-box {
  display: grid; gap: 0.85rem; padding: 1rem 0;
  border-top: 1px solid var(--tm-line); border-bottom: 1px solid var(--tm-line); margin: 1.25rem 0;
}
.tm-related { margin-top: 1.5rem; }
.tm-related__grid { display: grid; gap: 0.75rem; }

.tm-archive-header { margin-bottom: 1.1rem; }
.tm-archive-header__title { margin: 0 0 0.4rem; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; font-weight: 800; text-transform: uppercase; }
.tm-archive-header__desc { color: var(--tm-muted); max-width: 65ch; }
.tm-author-archive { display: flex; gap: 0.85rem; align-items: flex-start; }
.tm-author-archive__avatar { border-radius: 50%; }

/* Footer */
.tm-footer { background: var(--tm-anthracite); color: #cfcfcf; padding: 2.5rem 0 1.75rem; margin-top: auto; }
.tm-footer a { color: #fff; }
.tm-footer a:hover { color: #ffb3ad; }
.tm-footer__inner, .tm-footer__grid {
  width: min(100% - 1.5rem, var(--tm-container)); margin-inline: auto;
}
.tm-footer__site-name, .tm-footer__brand-name {
  color: #fff; font-size: 1.25rem; font-weight: 800; margin: 0 0 0.4rem; text-transform: uppercase;
}
.tm-footer__legal-list, .tm-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; }
.tm-footer__copy, .tm-footer__publisher { font-size: 0.85rem; opacity: 0.85; margin: 0.85rem 0 0; }
.tm-footer__copy a { color: #fff; text-decoration: underline; text-underline-offset: 0.18em; }
.tm-footer__widgets { display: grid; gap: 1.25rem; margin: 1.25rem 0; }

.tm-ads {
  min-height: 90px; display: grid; place-items: center; margin: 0.85rem 0;
  background: var(--tm-surface); border: 1px dashed #ccc;
}
.tm-ads--sidebar { min-height: 250px; }

.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.5rem; }
.navigation.pagination a, .navigation.pagination span {
  min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--tm-line); text-decoration: none; color: var(--tm-anthracite); padding: 0 0.65rem; font-weight: 700;
}
.navigation.pagination .current { background: var(--tm-anthracite); color: #fff; border-color: var(--tm-anthracite); }

.tm-404 { max-width: 40rem; padding: 2rem 0; }
.tm-404 h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; font-weight: 800; text-transform: uppercase; }

.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;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 640px) {
  .tm-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .tm-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .tm-related__grid { grid-template-columns: repeat(2, 1fr); }
  .tm-mosaic__side { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .tm-nav--primary { display: block; }
  .tm-header__menu-toggle { display: none; }
  .tm-mosaic__grid { grid-template-columns: 1.45fr 1fr; align-items: stretch; }
  .tm-mosaic__feature { min-height: 100%; }
  .tm-mosaic__media { height: 100%; aspect-ratio: auto; min-height: 28rem; }
  .tm-mosaic__side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .tm-mosaic__card--lg { grid-column: span 1; }
  .tm-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .tm-cat-layout { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .tm-author-box { grid-template-columns: auto 1fr; }
  .tm-footer__widgets { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 899px) {
  .tm-header__secondary { display: none; }
}

@media (min-width: 1024px) {
  .tm-home__main {
    grid-template-columns: minmax(0, 1fr) var(--tm-sidebar);
    align-items: start; gap: 1.75rem;
  }
  .tm-home__rail {
    position: sticky; top: calc(var(--tm-header-h) + 0.75rem);
  }
  .tm-layout--single, .tm-layout--archive {
    grid-template-columns: minmax(0, 1fr) var(--tm-sidebar);
    align-items: start;
  }
  .tm-layout__content { max-width: var(--tm-content); }
  .tm-sidebar {
    border-top: 0; padding-top: 0;
    position: sticky; top: calc(var(--tm-header-h) + 0.75rem);
  }
}

@media print {
  .tm-header, .tm-footer, .tm-sidebar, .tm-share, .tm-mobile-nav, .tm-ads, .tm-ticker, .tm-home__rail { display: none !important; }
  .tm-main, .tm-layout, .tm-home__primary { width: 100%; max-width: none; display: block; }
  body { background: #fff; color: #000; }
}
