/*
Theme Name:   Magazine Child
Theme URI:    https://adhubmedia.com
Description:  Tema agnostico per magazine editoriali della rete AdHub. Child di GeneratePress, brand-configurabile via inc/brand-config.php + preset per host. Layout: article-first, magazine grid, monetizzazione AdHub-ready.
Author:       AdHub Media
Author URI:   https://adhubmedia.com
Template:     generatepress
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  magazine-child
Tags:         magazine, news, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   1. DESIGN TOKENS — defaults; overridden inline by brand config
   ============================================================ */
:root {
	--color-bg:        #FAF7F2;
	--color-bg-skin:   #E8E0D0;
	--color-card:      #FFFFFF;
	--color-ink:       #1A1614;
	--color-ink-2:     #3A3530;
	--color-muted:     #6E6358;
	--color-rule:      #E5DDD0;
	--color-accent:    #D6336C;
	--color-accent-h:  #B82A5B;
	--color-highlight: #FFE066;
	--color-warning:   #A05A00;
	--color-native-bg: #FFF7EC;
	--color-ad-bg:     #F2EEE8;
	--color-ad-border: #D9D2C7;
	--color-ad-ink:    #6B655D;

	--font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
	--font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	--font-mono:  ui-monospace, "JetBrains Mono", Menlo, monospace;

	--container:  1140px;
	--gutter:     48px;
	--pad-x:      24px;
	--pad-x-mob:  16px;
	--pad-y:      32px;

	--radius-sm: 2px;
	--radius:    4px;
	--radius-md: 6px;
	--radius-pill: 20px;

	--anchor-h: 60px;
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; }

/* Global focus ring — keyboard users only (no ring on click).
   Specifici override possono usare outline: 0 + outline:2px on :focus-visible. */
:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: 0; }

body.mag-body {
	margin: 0;
	background: var(--color-bg-skin);
	color: var(--color-ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-h); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

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

mark { background: var(--color-highlight); padding: 0 2px; color: inherit; }

/* Mobile search bar — open via .mag-mobile-header__search toggle.
   Hidden by default (max-height:0). Becomes a full-width inline bar
   under the mobile-header when JS adds .is-open.  */
.mag-mobile-search {
	display: none;          /* desktop: hidden completely */
}
@media (max-width: 768px) {
	.mag-mobile-search {
		display: block;
		max-height: 0;
		overflow: hidden;
		transition: max-height .22s ease;
		background: #fff;
		border-bottom: 1px solid var(--color-rule);
	}
	.mag-mobile-search.is-open { max-height: 56px; }
	.mag-mobile-search__form {
		display: flex;
		align-items: center;
		padding: 8px 14px;
		gap: 6px;
	}
	.mag-mobile-search__form input[type="search"] {
		flex: 1;
		min-width: 0;
		padding: 8px 10px;
		border: 1px solid var(--color-rule);
		border-radius: var(--radius);
		font: inherit;
		font-size: 14px;
		color: var(--color-ink-2);
		background: #fff;
	}
	.mag-mobile-search__form input[type="search"]:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
	.mag-mobile-search__submit,
	.mag-mobile-search__close {
		background: transparent;
		border: 0;
		font-size: 22px;
		line-height: 1;
		color: var(--color-ink);
		padding: 6px 10px;
		cursor: pointer;
	}
	.mag-mobile-search__close { font-size: 26px; color: var(--color-muted); }
}
@media (prefers-reduced-motion: reduce) {
	.mag-mobile-search { transition: none; }
}

/* Mobile menu drawer — JS toggles body.is-mobile-menu-open + drawer aria-hidden.
   Drawer is OFF-DOM-FLOW when hidden (visibility hidden + transform), so it
   never causes layout/CLS until the user actually taps the hamburger. */
body.is-mobile-menu-open { overflow: hidden; }

.mag-drawer {
	position: fixed;
	inset: 0;
	z-index: 90;
	visibility: hidden;
	pointer-events: none;
}
.mag-drawer[aria-hidden="false"] { visibility: visible; pointer-events: auto; }
.mag-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.4);
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s ease;
}
.mag-drawer[aria-hidden="false"] .mag-drawer__backdrop { opacity: 1; }
.mag-drawer__panel {
	position: absolute;
	top: 0; bottom: 0; left: 0;
	width: min(320px, 86vw);
	background: var(--color-bg);
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 18px 20px 32px;
	transform: translateX(-100%);
	transition: transform .25s ease;
	overflow-y: auto;
	box-shadow: 2px 0 24px rgba(0,0,0,.18);
}
.mag-drawer[aria-hidden="false"] .mag-drawer__panel { transform: translateX(0); }
.mag-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--color-rule);
}
.mag-drawer__brand {
	font-family: var(--font-serif);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.3px;
	color: var(--color-ink);
}
.mag-drawer__close {
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: var(--color-ink);
	padding: 4px 8px;
	cursor: pointer;
}
.mag-drawer__search {
	display: flex;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius);
	background: #fff;
	padding: 10px 12px;
}
.mag-drawer__search input {
	border: 0;
	background: transparent;
	font: inherit;
	width: 100%;
	color: var(--color-ink-2);
}
.mag-drawer__search input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.mag-drawer__nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.mag-drawer__nav a {
	display: block;
	padding: 12px 4px;
	font-size: 15px;
	font-weight: 600;
	color: var(--color-ink);
	border-bottom: 1px solid var(--color-rule);
}
.mag-drawer__nav .current-menu-item > a,
.mag-drawer__nav .current-cat > a,
.mag-drawer__nav a[aria-current="page"] { color: var(--color-accent); }
@media (min-width: 769px) {
	.mag-drawer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.mag-drawer__panel,
	.mag-drawer__backdrop { transition: none; }
}

/* ============================================================
   3. SHELL
   ============================================================ */
.mag-shell {
	max-width: var(--container);
	margin: 0 auto;
	background: var(--color-bg);
	min-height: 100vh;
}

/* ============================================================
   4. SITE CHROME
   ============================================================ */
.mag-topbar {
	background: var(--color-ink);
	color: #fff;
	font-size: 11px;
	letter-spacing: 1px;
	padding: 7px 0;
}
.mag-topbar__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--pad-x);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.mag-topbar a { color: #fff; opacity: .85; }
.mag-topbar a:hover { opacity: 1; text-decoration: none; }
.mag-topbar__right { display: flex; gap: 14px; align-items: center; }
.mag-topbar__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	min-height: 32px;
	padding: 5px;
}
.mag-topbar__social svg { display: block; width: 14px; height: 14px; }

.mag-leaderboard {
	background: #fff;
	padding: 12px 0;
	border-bottom: 1px solid var(--color-rule);
}
.mag-leaderboard__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--pad-x);
}

.mag-masthead {
	background: #fff;
	border-bottom: 1px solid var(--color-rule);
	padding: 18px 0;
}
.mag-masthead__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--pad-x);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
/* Logo: height fissa via inline style (brand-config) — width sempre auto.
   Funziona con qualsiasi PNG/SVG mantiene aspect-ratio nativo. */
.mag-masthead__logo { display: inline-flex; align-items: center; }
.mag-masthead__logo img { display: block; max-width: 100%; }
.mag-masthead__logo-text {
	font-family: var(--font-serif);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.5px;
	color: var(--color-ink);
	line-height: 1;
}
.mag-footer__brand-text {
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.3px;
	color: #fff;
	display: block;
}
.mag-masthead__tools { display: flex; align-items: center; gap: 16px; }

.mag-search-pill {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius);
	font-size: 13px;
	color: var(--color-muted);
	background: #fff;
	min-width: 220px;
}
.mag-search-pill input {
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--color-ink-2);
	width: 100%;
}
.mag-search-pill input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.mag-cta {
	background: var(--color-accent);
	color: #fff;
	border: 0;
	padding: 9px 14px;
	border-radius: var(--radius);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	display: inline-block;
}
.mag-cta:hover { background: var(--color-accent-h); color: #fff; text-decoration: none; }
.mag-cta--ghost { background: transparent; color: var(--color-ink); border: 1px solid var(--color-ink); }
.mag-cta--dark  { background: var(--color-ink); color: #fff; }

.mag-nav { background: #fff; border-bottom: 1px solid var(--color-rule); }
.mag-nav__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--pad-x);
	display: flex;
	gap: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.mag-nav__inner::-webkit-scrollbar { display: none; }
.mag-nav a {
	padding: 14px 18px;
	font-size: 13px;
	font-weight: 600;
	color: var(--color-ink-2);
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	font-family: var(--font-sans);
}
.mag-nav a:hover { color: var(--color-accent); text-decoration: none; }
.mag-nav .current-menu-item > a,
.mag-nav .current-cat > a,
.mag-nav a[aria-current="page"] {
	color: var(--color-accent);
	border-bottom-color: var(--color-accent);
}
.mag-nav ul { list-style: none; padding: 0; margin: 0; display: flex; }

.mag-mobile-header,
.mag-mobile-topbar { display: none; }

/* ============================================================
   5. LAYOUT GRID
   ============================================================ */
.mag-content { padding: var(--pad-y) var(--pad-x); }
.mag-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: var(--gutter);
}
.mag-grid > main  { min-width: 0; max-width: 720px; }
.mag-grid > aside { min-width: 0; }
.mag-sticky-col {
	position: sticky;
	top: 16px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* ============================================================
   6. ARTICLE
   ============================================================ */
.mag-breadcrumb {
	font-size: 12px;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 14px;
}
.mag-breadcrumb a { color: var(--color-muted); }
.mag-breadcrumb a:hover { color: var(--color-accent); text-decoration: none; }

.mag-article__title {
	font-family: var(--font-serif);
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.5px;
	margin: 0 0 16px;
	color: var(--color-ink);
}
.mag-article__lead {
	font-family: var(--font-serif);
	font-size: 19px;
	line-height: 1.5;
	color: var(--color-ink-2);
	font-style: italic;
	margin: 0 0 20px;
}
.mag-article__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--color-muted);
	margin: 0 0 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--color-rule);
}
.mag-article__meta strong { color: var(--color-ink-2); font-weight: 600; }
.mag-article__meta a { color: var(--color-ink-2); }
.mag-article__meta-avatar {
	width: 32px; height: 32px;
	border-radius: 50%;
	background: var(--color-rule);
	overflow: hidden;
	flex-shrink: 0;
}
.mag-article__meta-avatar img { width: 100%; height: 100%; object-fit: cover; }

.mag-article__hero { margin: 0 0 24px; }
.mag-article__hero img,
.mag-article__hero .mag-img-ph {
	width: 100%;
	border-radius: var(--radius-sm);
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.mag-article__hero figcaption {
	font-family: var(--font-sans);
	font-size: 12px;
	color: var(--color-muted);
	margin-top: 6px;
	font-style: italic;
}

.mag-article__body { font-family: var(--font-serif); color: var(--color-ink); }
.mag-article__body p {
	font-size: 18px;
	line-height: 1.7;
	color: var(--color-ink);
	margin: 0 0 22px;
}
.mag-article__body h2 {
	font-family: var(--font-serif);
	font-size: 26px;
	font-weight: 700;
	margin: 32px 0 16px;
	line-height: 1.25;
	letter-spacing: -.3px;
}
.mag-article__body h3 {
	font-family: var(--font-serif);
	font-size: 21px;
	font-weight: 700;
	margin: 26px 0 14px;
	line-height: 1.3;
}
.mag-article__body img { margin: 24px auto; border-radius: var(--radius-sm); }
.mag-article__body figure { margin: 24px 0; }
.mag-article__body figcaption {
	font-family: var(--font-sans);
	font-size: 12px;
	color: var(--color-muted);
	font-style: italic;
	margin-top: 6px;
}
.mag-article__body blockquote {
	border-left: 3px solid var(--color-accent);
	margin: 28px 0;
	padding: 4px 0 4px 20px;
	font-style: italic;
	color: var(--color-ink-2);
}
.mag-article__body a {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mag-authorbox {
	margin: 40px 0 0;
	padding: 20px 22px;
	border: 1px solid var(--color-rule);
	border-radius: 8px;
	background: #fff;
	display: flex;
	gap: 16px;
}
.mag-authorbox__avatar {
	width: 64px; height: 64px;
	border-radius: 50%;
	background: var(--color-rule);
	flex-shrink: 0;
	overflow: hidden;
}
.mag-authorbox__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mag-authorbox__kicker {
	font-size: 11px;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}
.mag-authorbox__name {
	font-family: var(--font-serif);
	font-size: 20px;
	font-weight: 700;
	margin: 2px 0 0;
}
.mag-authorbox__name a { color: var(--color-ink); }
.mag-authorbox__bio {
	font-size: 14px;
	color: var(--color-ink-2);
	line-height: 1.55;
	margin-top: 6px;
}

.mag-related {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 2px solid var(--color-ink);
}
.mag-related__title {
	font-family: var(--font-serif);
	font-size: 24px;
	margin: 0 0 16px;
	font-weight: 700;
}
.mag-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

/* ============================================================
   7. CARDS
   ============================================================ */
.mag-card { display: flex; flex-direction: column; }
.mag-card a { color: inherit; }
.mag-card a:hover { text-decoration: none; }
.mag-card a:hover .mag-card__title { color: var(--color-accent); }

.mag-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: repeating-linear-gradient(45deg, #d8cdb8 0 12px, #cfc3ad 12px 24px);
	border-radius: var(--radius-sm);
	overflow: hidden;
}
.mag-card__media--lg { aspect-ratio: 16 / 9; }
.mag-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mag-card__cat {
	position: absolute;
	top: 10px; left: 10px;
	background: var(--color-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.mag-card__cat a { color: #fff; }
.mag-card__title {
	font-family: var(--font-serif);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	margin: 12px 0 6px;
	color: var(--color-ink);
	transition: color .15s ease;
}
.mag-card__lead {
	font-family: var(--font-serif);
	font-size: 14px;
	color: var(--color-ink-2);
	line-height: 1.5;
	margin: 0 0 8px;
}
.mag-card__meta {
	font-family: var(--font-sans);
	font-size: 11px;
	color: var(--color-muted);
	margin-top: auto;
}
.mag-card--lg .mag-card__title       { font-size: 28px; line-height: 1.2; }
.mag-card--sm .mag-card__title       { font-size: 15px; line-height: 1.3; }
.mag-card--sm .mag-card__lead        { display: none; }
.mag-card--featured .mag-card__title { font-size: 30px; line-height: 1.2; }
.mag-card--featured .mag-card__media { aspect-ratio: 16/7; }

.mag-mini { display: flex; gap: 10px; align-items: flex-start; }
.mag-mini__media {
	width: 90px; height: 70px;
	background: repeating-linear-gradient(45deg, #d8cdb8 0 10px, #cfc3ad 10px 20px);
	flex-shrink: 0;
	overflow: hidden;
}
.mag-mini__media img { width: 100%; height: 100%; object-fit: cover; }
.mag-mini__kicker {
	font-size: 10px;
	color: var(--color-accent);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.mag-mini__title {
	font-family: var(--font-serif);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	margin: 3px 0 0;
	color: var(--color-ink);
}
.mag-mini__title a { color: inherit; }

.mag-row-card {
	display: flex;
	gap: 12px;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--color-rule);
}
.mag-row-card__media {
	width: 110px; height: 90px;
	flex-shrink: 0;
	background: repeating-linear-gradient(45deg, #d8cdb8 0 10px, #cfc3ad 10px 20px);
	overflow: hidden;
}
.mag-row-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mag-row-card__kicker {
	font-size: 10px;
	color: var(--color-accent);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.mag-row-card__title {
	font-family: var(--font-serif);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	margin: 4px 0;
	color: var(--color-ink);
}
.mag-row-card__title a { color: inherit; }
.mag-row-card__meta { font-size: 10px; color: var(--color-muted); }

/* ============================================================
   8. ROWS
   ============================================================ */
.mag-row { margin: 40px 0; }
.mag-row__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--color-ink);
}
.mag-row__title {
	font-family: var(--font-serif);
	font-size: 26px;
	font-weight: 800;
	margin: 0;
	letter-spacing: -.3px;
}
.mag-row__title a { color: inherit; }
.mag-row__more {
	font-size: 12px;
	font-weight: 600;
	color: var(--color-accent);
	text-transform: uppercase;
	letter-spacing: 1px;
}
.mag-row__more:hover { color: var(--color-accent-h); text-decoration: none; }

.mag-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mag-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mag-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.mag-row__split-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.mag-mini-stack { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }

/* Hero grid — 3 primi-piani: 1 main (sx grande) + 2 tile (dx impilati 50/50).
   ALTEZZA FISSA del grid → tutti e 3 i tile riempiono esattamente lo spazio,
   niente buchi bianchi né tile disallineati. object-fit:cover crop le immagini. */
.mag-hero-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	grid-template-rows: 420px;     /* altezza fissa hero desktop */
	gap: 12px;
	margin-bottom: 32px;
}
.mag-hero-grid__right {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	min-width: 0;
	min-height: 0;
	height: 100%;
}
.mag-hero-grid__right > .mag-hero-tile { min-height: 0; height: 100%; }

/* Singolo tile con overlay caption */
.mag-hero-tile {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--color-rule);
}
.mag-hero-tile__link {
	display: block;
	position: relative;
	height: 100%;
	width: 100%;
	color: #fff;
	text-decoration: none;
}
.mag-hero-tile__link:hover { text-decoration: none; color: #fff; }
.mag-hero-tile__media {
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.mag-hero-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.mag-hero-tile__link:hover .mag-hero-tile__media img { transform: scale(1.04); }

/* Tile riempiono esattamente lo slot grid (parent ha altezza fissa). */
.mag-hero-tile--main,
.mag-hero-tile--tile {
	height: 100%;
	min-height: 0;
	aspect-ratio: auto;
}
.mag-hero-tile__link { display: block; height: 100%; }

/* Gradient overlay scuro dal basso */
.mag-hero-tile__link::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 70%;
	background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,0) 100%);
	pointer-events: none;
}

/* Category kicker */
.mag-hero-tile__cat {
	position: absolute;
	top: 12px; left: 12px;
	z-index: 2;
	background: var(--color-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Caption */
.mag-hero-tile__caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	padding: 18px 18px 16px;
}
.mag-hero-tile__title {
	font-family: var(--font-serif);
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.mag-hero-tile--main .mag-hero-tile__title { font-size: 24px; }
.mag-hero-tile--tile .mag-hero-tile__title { font-size: 16px; line-height: 1.3; }
.mag-hero-tile__lead {
	font-family: var(--font-serif);
	font-size: 14px;
	color: rgba(255,255,255,.88);
	margin: 8px 0 0;
	line-height: 1.45;
	text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.mag-hero-tile--tile .mag-hero-tile__caption { padding: 14px 16px; }

/* ============================================================
   9. SIDEBAR
   ============================================================ */
.mag-side-box {
	background: #fff;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-md);
	padding: 18px;
}
.mag-side-box__title {
	font-size: 11px;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-ink);
	font-weight: 700;
}
.mag-popular { list-style: none; padding: 0; margin: 0; }
.mag-popular li {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-top: 1px solid var(--color-rule);
}
.mag-popular li:first-child { border-top: 0; }
.mag-popular__num {
	font-family: var(--font-serif);
	font-size: 26px;
	color: var(--color-accent);
	font-weight: 700;
	min-width: 22px;
	line-height: 1;
}
.mag-popular__title {
	font-family: var(--font-serif);
	font-size: 13px;
	line-height: 1.4;
	color: var(--color-ink-2);
	font-weight: 600;
}
.mag-popular__title a { color: inherit; }

/* ============================================================
   10. AD SLOTS
   ============================================================
   Production: `.mag-ad-host` is an empty <div id="adhub-...">
   The AdHub bundle auto-detects the id and fills it. We only need
   the min-height (set inline by mag_ad_slot()) for CLS-safety.

   Debug (?adsdebug=1): the helper emits `.mag-ad` placeholder with
   visible kicker/label/size. Same legacy class names kept so the
   styling carries over.
*/
.mag-ad-host {
	display: block;
	margin: 0;
	/* Placeholder via background nativo: il bg-color e bg-image stanno
	   SEMPRE dietro qualsiasi figlio iframe/div che il bundle inietta
	   (CSS painting order: background del box → contenuto figli). Se il
	   bid arriva con creative full-frame, l iframe la copre. Se fallisce
	   (no demand → iframe 0x0 o bianco) il placeholder resta visibile. */
	background-color: #f1eee8;
	/* Multi-background: overlay semi-trasparente SOPRA il logo, per sbiadirlo
	   senza filter (background-image non supporta filter/opacity nativi).
	   I background CSS sono sempre dipinti dietro ai figli. */
	background-image:
		linear-gradient(rgba(241,238,232,0.85), rgba(241,238,232,0.85)),
		var(--mag-ad-logo, none);
	background-repeat: no-repeat, no-repeat;
	background-position: center, center;
	background-size: 100% 100%, min(40%, 220px) auto;
}
/* Sticky-bottom: niente placeholder (slot piccolo, distrazione). */
.mag-ad-host--sticky {
	background: transparent;
}
/* Fallback min-height per slot type — riserva l altezza MAX possibile
   per la max creative size del slot. Match con le inline `min-height`
   emesse da mag_ad_slot(). Cosi anche se Varnish/CSP strippa lo style
   inline NON c e CLS quando la creative arriva.
   Mobile (≤768px) ridotto perche le sizes mobile sono piu piccole. */
.mag-ad-host[id="adhub-top-banner"]      { min-height: 250px; }   /* 970x250 max */
.mag-ad-host[id="adhub-leaderboard"]     { min-height: 250px; }   /* 970x250 max */
.mag-ad-host[id="adhub-in-article"],
.mag-ad-host[id="adhub-in-article-1"],
.mag-ad-host[id="adhub-in-article-2"]    { min-height: 280px; }   /* 336x280 max */
.mag-ad-host[id="adhub-sidebar"]         { min-height: 600px; }   /* 300x600 max */
.mag-ad-host[id="adhub-sticky-bottom"]   { min-height: 100px; }   /* 320x100 max */
.mag-ad-host--sticky                     { /* refresh-aware, no visual */ }

/* Wrapper centrato per ad in-content: width-clamp = 336 desktop. */
.mag-ad-wrap-center .mag-ad-host         { max-width: 336px; margin: 0 auto; }

@media (max-width: 768px) {
	.mag-ad-host[id="adhub-top-banner"]      { min-height: 100px; } /* 320x100 max */
	.mag-ad-host[id="adhub-leaderboard"]     { min-height: 250px; } /* responsive 250 */
	/* in-article e sidebar restano uguali: stessi sizes sono validi mobile */
}

/* Wrapper used for in-content / centered ads */
.mag-ad-wrap-center { display: flex; justify-content: center; margin: 32px 0; }

/* Debug-mode placeholders (visible in ?adsdebug=1) */
.mag-ad {
	background: repeating-linear-gradient(135deg, var(--color-ad-bg) 0 8px, #ECE6DC 8px 16px);
	border: 1px dashed var(--color-ad-border);
	border-radius: var(--radius);
	color: var(--color-ad-ink);
	font-family: var(--font-mono);
	font-size: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8px;
	text-align: center;
	min-height: 90px;
	margin: 0;
}
.mag-ad__kicker { font-weight: 700; letter-spacing: .5px; text-transform: uppercase; font-size: 9px; }
.mag-ad__label  { font-weight: 600; font-size: 11px; margin-top: 2px; }
.mag-ad__size   { opacity: .7; font-size: 10px; }
.mag-ad--native {
	background: repeating-linear-gradient(135deg, var(--color-native-bg) 0 8px, #FFEFD8 8px 16px);
	border-color: #E8D4B0;
	color: var(--color-warning);
}
.mag-ad--missing {
	background: repeating-linear-gradient(135deg, #FFEAEA 0 8px, #FFD6D6 8px 16px);
	border-color: #E89090;
	color: #B23030;
}

.mag-anchor-sticky {
	display: none;
	position: fixed;
	left: 0; right: 0; bottom: 0;
	background: #fff;
	border-top: 1px solid var(--color-rule);
	padding: 5px;
	z-index: 80;
}
.mag-anchor-sticky .mag-ad { min-height: 50px; }

/* ============================================================
   11. PLAYERS
   ============================================================ */
/* Hosts per player audio/video AdHub — riservano spazio prima del JS init.
   Il bundle AdHub (video) o SpeakUp (audio) li popolano a runtime.
   IMPORTANTE per CLS: l altezza è FISSA, non dipende dal contenuto. */

/* Audio host (SpeakUp) — reserved height MUST match the populated player to
   avoid CLS in both directions. Keep `min-height` on the populated state so
   the box never shrinks when SpeakUp injects a shorter widget; the player's
   own intrinsic height takes over only when it exceeds the floor. */
.mag-audion-host {
	display: block;
	min-height: 120px;
	background: var(--color-ink);
	border-radius: 8px;
	margin: 20px 0;
	position: relative;
}
/* Populated state: drop the placeholder chrome but keep the height floor. */
.mag-audion-host:not(:empty) {
	background: transparent;
	padding: 0;
	border-radius: 0;
}

/* Video host (AdHub video-playlist) — aspect-ratio 16:9 fisso.
   max-width 720px = main column width → height = 405px desktop / variabile mobile.
   aspect-ratio garantisce no-CLS anche su window resize. */
.mag-video-host {
	display: block;
	margin: 24px 0;
	border: 1px solid var(--color-rule);
	border-radius: 6px;
	overflow: hidden;
	background: #000;
	aspect-ratio: 16 / 9;
	position: relative;
	width: 100%;
	max-width: 720px;
	/* Fallback se browser non supporta aspect-ratio (vecchi Safari) */
	min-height: 200px;
}
@supports (aspect-ratio: 16 / 9) {
	.mag-video-host { min-height: 0; }
}

.mag-audion {
	background: var(--color-ink);
	color: var(--color-bg);
	border-radius: 8px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-sans);
	font-size: 13px;
	margin: 20px 0;
}
.mag-audion__btn {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--color-accent);
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
	color: #fff;
	border: 0;
}
.mag-audion__body { flex: 1; min-width: 0; }
.mag-audion__kicker {
	font-weight: 600;
	font-size: 12px;
	opacity: .7;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.mag-audion__meta { font-size: 13px; margin-top: 2px; opacity: .9; }
.mag-audion__bar {
	height: 3px;
	background: rgba(255,255,255,0.15);
	border-radius: 2px;
	margin-top: 8px;
	overflow: hidden;
}
.mag-audion__bar > span {
	display: block;
	width: 28%;
	height: 100%;
	background: var(--color-accent);
}
.mag-audion__badge {
	font-family: var(--font-mono);
	font-size: 9px;
	opacity: .5;
	padding: 2px 6px;
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 3px;
}

.mag-video {
	margin: 24px 0;
	border: 1px solid var(--color-rule);
	border-radius: 6px;
	overflow: hidden;
	background: #000;
	aspect-ratio: 16 / 9;
	position: relative;
}
.mag-video__poster {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, #2a2520 0%, #1A1614 100%);
}
.mag-video__badge--adv {
	position: absolute; top: 10px; left: 10px;
	background: var(--color-accent);
	color: #fff;
	font-size: 10px;
	font-family: var(--font-mono);
	padding: 3px 7px;
	border-radius: 3px;
	font-weight: 700;
	letter-spacing: 1px;
	opacity: .9;
}
.mag-video__btn {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: transparent;
	border: 0;
}
.mag-video__btn span {
	width: 56px; height: 56px;
	border-radius: 50%;
	background: rgba(255,255,255,0.15);
	border: 2px solid rgba(255,255,255,0.6);
	display: flex; align-items: center; justify-content: center;
	color: #fff;
}

/* ============================================================
   12. ARCHIVE / CATEGORY HEADER
   ============================================================ */
.mag-archive-head {
	padding: var(--pad-y) var(--pad-x) 24px;
	border-bottom: 1px solid var(--color-rule);
}
.mag-archive-head__kicker {
	font-size: 12px;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin: 0 0 8px;
}
.mag-archive-head__title {
	font-family: var(--font-serif);
	font-size: 48px;
	font-weight: 800;
	margin: 0;
	letter-spacing: -1px;
	line-height: 1.05;
}
.mag-archive-head__desc {
	font-family: var(--font-serif);
	font-size: 17px;
	color: var(--color-ink-2);
	font-style: italic;
	margin: 10px 0 14px;
	max-width: 720px;
}
.mag-chips { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.mag-chips li { list-style: none; }
.mag-chip {
	font-size: 12px;
	padding: 5px 12px;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--color-ink-2);
	white-space: nowrap;
	font-family: var(--font-sans);
}
.mag-chip:hover { color: var(--color-accent); border-color: var(--color-accent); text-decoration: none; }
.mag-chip--active { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }

.mag-pagination { display: flex; justify-content: center; gap: 6px; padding: 24px 0; }
.mag-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.mag-pagination li { list-style: none; }
.mag-pagination a.page-numbers,
.mag-pagination span.page-numbers {
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid var(--color-rule);
	background: #fff;
	color: var(--color-ink-2);
	border-radius: var(--radius);
	font-family: var(--font-sans);
}
.mag-pagination span.page-numbers.current {
	background: var(--color-ink); color: #fff; border-color: var(--color-ink);
}
.mag-pagination a.page-numbers:hover { color: var(--color-accent); border-color: var(--color-accent); text-decoration: none; }
.mag-pagination .page-numbers.dots { background: transparent; border-color: transparent; }

/* ============================================================
   13. SEARCH
   ============================================================ */
.mag-search-result {
	display: flex;
	gap: 18px;
	padding: 20px 0;
	border-bottom: 1px solid var(--color-rule);
}
.mag-search-result__media {
	width: 200px; height: 130px;
	flex-shrink: 0;
	background: repeating-linear-gradient(45deg, #d8cdb8 0 10px, #cfc3ad 10px 20px);
	overflow: hidden;
}
.mag-search-result__media img { width: 100%; height: 100%; object-fit: cover; }
.mag-search-result__kicker {
	font-size: 10px;
	color: var(--color-accent);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.mag-search-result__title {
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 700;
	margin: 4px 0 8px;
	line-height: 1.3;
}
.mag-search-result__title a { color: var(--color-ink); }
.mag-search-result__snippet {
	font-family: var(--font-serif);
	font-size: 14px;
	color: var(--color-ink-2);
	line-height: 1.5;
	margin: 0;
}
.mag-search-result__meta { font-size: 11px; color: var(--color-muted); margin-top: 8px; }

/* ============================================================
   14. AUTHOR
   ============================================================ */
.mag-author-head {
	padding: var(--pad-y) var(--pad-x) 24px;
	border-bottom: 1px solid var(--color-rule);
	display: flex;
	gap: 24px;
	align-items: center;
}
.mag-author-head__avatar {
	width: 110px; height: 110px;
	border-radius: 50%;
	background: var(--color-rule);
	overflow: hidden;
	flex-shrink: 0;
}
.mag-author-head__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mag-author-head__body { flex: 1; min-width: 0; }
.mag-author-head__kicker {
	font-size: 11px;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 1.5px;
}
.mag-author-head__name {
	font-family: var(--font-serif);
	font-size: 38px;
	font-weight: 800;
	margin: 4px 0 8px;
	line-height: 1.1;
}
.mag-author-head__bio {
	font-family: var(--font-serif);
	font-size: 15px;
	color: var(--color-ink-2);
	line-height: 1.5;
	margin: 0 0 12px;
	max-width: 680px;
}
.mag-author-head__actions { display: flex; gap: 10px; align-items: center; }
.mag-author-head__counter { font-size: 12px; color: var(--color-muted); }

/* ============================================================
   15. 404
   ============================================================ */
.mag-404 { padding: 60px 24px; text-align: center; }
.mag-404__num {
	font-family: var(--font-serif);
	font-size: 140px;
	font-weight: 800;
	color: var(--color-accent);
	line-height: 1;
	letter-spacing: -4px;
	margin: 0;
}
.mag-404__title { font-family: var(--font-serif); font-size: 32px; font-weight: 700; margin: 14px 0 8px; }
.mag-404__lead {
	font-family: var(--font-serif);
	font-size: 16px;
	color: var(--color-ink-2);
	max-width: 480px;
	margin: 0 auto 24px;
	line-height: 1.5;
}
.mag-404__actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 32px; }
.mag-404__suggest { max-width: 800px; margin: 40px auto 0; text-align: left; }
.mag-404__suggest h2 {
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-ink);
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.mag-footer {
	background: var(--color-ink);
	color: #fff;
	padding: 40px 0 20px;
	margin-top: 40px;
}
.mag-footer__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }

/* Layout 4 colonne: brand + sezioni + magazine + legale */
.mag-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.mag-footer__brand img { height: 30px; display: block; }
.mag-footer__brand--invert img { filter: brightness(0) invert(1); }
.mag-footer__brand p { font-size: 13px; opacity: .7; margin-top: 14px; line-height: 1.6; max-width: 360px; }
.mag-footer__col-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	opacity: .5;
	margin: 0 0 12px;
	font-weight: 700;
}
.mag-footer__list { list-style: none; margin: 0; padding: 0; }
.mag-footer__list li { font-size: 13px; margin-bottom: 8px; opacity: .85; }
.mag-footer__list a { color: #fff; }
.mag-footer__list a:hover { opacity: 1; text-decoration: underline; }

/* Riga 1: testata legale */
.mag-footer__legal-line {
	border-top: 1px solid rgba(255,255,255,0.1);
	margin-top: 28px;
	padding-top: 18px;
	font-size: 12px;
	line-height: 1.6;
	opacity: .8;
}

/* Riga 2: copyright + P.IVA + REA */
.mag-footer__legal {
	margin-top: 8px;
	font-size: 11px;
	opacity: .55;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.mag-footer__legal a { color: #fff; }
.mag-footer__legal a:hover { text-decoration: underline; }

/* Riga 3: disclosure redazionale (AI / contenuti curati) */
.mag-footer__disclosure {
	margin-top: 12px;
	font-size: 11px;
	line-height: 1.5;
	opacity: .55;
	font-style: italic;
	max-width: 720px;
}

/* Area widget Network footer (network-footer-client si attacca qui) */
.mag-footer__network {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 24px;
	margin-top: 24px;
}
.mag-footer__network .widget { margin-bottom: 16px; }
.mag-footer-widget__title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	opacity: .5;
	margin: 0 0 12px;
	font-weight: 700;
}
/* Compatibilità con markup network-footer-client v1.3.0 */
.mag-footer__network .network-footer-wrap { color: inherit; }
.mag-footer__network .network-footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mag-footer__network .footer-column { min-width: 0; }
.mag-footer__network .group-block + .group-block { margin-top: 18px; }
.mag-footer__network h5 {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: .55;
	margin: 0 0 8px;
	font-weight: 700;
}
.mag-footer__network ul.sites-list { list-style: none; margin: 0; padding: 0; }
.mag-footer__network ul.sites-list li { font-size: 12px; margin-bottom: 5px; opacity: .8; }
.mag-footer__network ul.sites-list a { color: #fff; }
.mag-footer__network ul.sites-list a:hover { opacity: 1; text-decoration: underline; }
.mag-footer__network .contents-com { font-size: 11px; opacity: .5; font-style: italic; }

/* ============================================================
   17. NATIVE WIDGET WRAPPER (MGID recommendation, popolato dal bundle) */
.mag-native { margin: 32px 0; }
.mag-native .adhub-mgid-widget { min-height: 280px; } /* CLS-safe (~280 = 4 thumb 4x3 grid 2 col) */

/* ============================================================
   18. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.mag-grid { grid-template-columns: 1fr; }
	.mag-grid > main { max-width: 720px; margin: 0 auto; }
	.mag-grid > aside { max-width: 720px; margin: 0 auto; width: 100%; }
	.mag-sticky-col { position: static; }
	.mag-search-pill { min-width: 0; }
}

@media (max-width: 768px) {
	body.mag-body { padding-bottom: var(--anchor-h); }
	.mag-content { padding: 20px var(--pad-x-mob); }
	.mag-pad-mob { padding: 0 var(--pad-x-mob); }

	.mag-topbar__inner { padding: 0 var(--pad-x-mob); }
	.mag-leaderboard,
	.mag-masthead,
	.mag-nav { display: none; }
	.mag-mobile-topbar {
		display: block;
		background: var(--color-ink);
		color: #fff;
		font-size: 10px;
		padding: 5px 14px;
		text-align: center;
		letter-spacing: 1px;
	}
	.mag-mobile-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		background: #fff;
		border-bottom: 1px solid var(--color-rule);
		padding: 12px 14px;
	}
	.mag-mobile-header__hamburger,
	.mag-mobile-header__search {
		background: transparent;
		border: 0;
		color: var(--color-ink);
		min-width: 44px;
		min-height: 44px;
		padding: 10px;
	}
	.mag-mobile-header__hamburger {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}
	.mag-mobile-header__hamburger span { display: block; height: 2px; background: var(--color-ink); width: 24px; }
	.mag-mobile-header__hamburger span + span { margin-top: 5px; }
	.mag-mobile-header__logo { display: inline-flex; align-items: center; }
	.mag-mobile-header__logo img { display: block; max-width: 100%; }

	.mag-article__title { font-size: 26px; line-height: 1.2; }
	.mag-article__lead  { font-size: 16px; }
	.mag-article__meta  { font-size: 12px; padding-bottom: 14px; }
	.mag-article__body p { font-size: 17px; line-height: 1.65; margin: 0 0 18px; }
	.mag-article__body h2 { font-size: 22px; margin: 26px 0 12px; }
	.mag-article__body h3 { font-size: 19px; margin: 22px 0 10px; }
	.mag-article__hero img,
	.mag-article__hero .mag-img-ph { aspect-ratio: 16/10; }

	.mag-article__body .mag-ad-wrap-center { margin: 24px calc(var(--pad-x-mob) * -1); }

	.mag-archive-head { padding: 20px var(--pad-x-mob) 14px; }
	.mag-archive-head__title { font-size: 32px; letter-spacing: -.5px; }
	.mag-archive-head__desc  { font-size: 14px; }

	/* hero grid mobile — 1 main full + 2 tile in row sotto.
	   Niente altezza fissa: ogni tile aspect-ratio individuale per stack 1col. */
	.mag-hero-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		gap: 10px;
		margin-bottom: 22px;
	}
	.mag-hero-grid__right {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
		gap: 8px;
		height: auto;
	}
	.mag-hero-tile--main,
	.mag-hero-tile--tile { height: auto; }
	.mag-hero-tile--main { aspect-ratio: 16 / 11; }
	.mag-hero-tile--tile { aspect-ratio: 4 / 5; }
	.mag-hero-tile--main .mag-hero-tile__title { font-size: 22px; }
	.mag-hero-tile--tile .mag-hero-tile__title { font-size: 14px; }

	.mag-row { margin: 28px 0; }
	.mag-row__title { font-size: 20px; }
	.mag-grid-3, .mag-grid-4, .mag-grid-2,
	.mag-row__split-2-1 { grid-template-columns: 1fr; gap: 16px; }
	.mag-mini-stack { grid-template-rows: auto; }

	.mag-related__grid { grid-template-columns: 1fr; gap: 16px; }

	.mag-author-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 20px var(--pad-x-mob);
	}
	.mag-author-head__avatar { width: 80px; height: 80px; }
	.mag-author-head__name   { font-size: 28px; }

	.mag-search-result { flex-direction: column; gap: 10px; }
	.mag-search-result__media { width: 100%; height: 200px; }

	.mag-404 { padding: 40px var(--pad-x-mob); }
	.mag-404__num { font-size: 96px; }
	.mag-404__title { font-size: 24px; }

	.mag-footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
	.mag-footer__brand { grid-column: 1 / -1; }
	.mag-footer__legal { flex-direction: column; gap: 6px; text-align: left; }
	.mag-footer__network .network-footer { grid-template-columns: 1fr; gap: 16px; }

	.mag-anchor-sticky { display: block; }
}

@media (max-width: 480px) {
	.mag-footer__cols { grid-template-columns: 1fr; }
}

@media print {
	.mag-topbar, .mag-leaderboard, .mag-nav, .mag-masthead__tools,
	.mag-anchor-sticky, .mag-side, aside, .mag-ad, .mag-taboola,
	.mag-mobile-header, .mag-mobile-topbar,
	.mag-footer { display: none !important; }
	.mag-shell { max-width: 100%; }
	.mag-grid { grid-template-columns: 1fr; }
	body.mag-body { background: #fff; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
