/*
Theme Name: AMGRSM Pro
Theme URI: https://amgrsm.com/
Author: AMGRSM
Author URI: https://amgrsm.com/
Description: Premium automotive magazine theme for German performance car content. Fast, AdSense-ready, with breaking news ticker, mega homepage blocks, dark/light mode, auto table of contents, share bars, related posts, sticky sidebar, schema markup and a one-click importer for Jannah settings, ad codes and widgets.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: amgrsm
Tags: news, blog, magazine, dark-mode, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--accent: #e10600;
	--accent-2: #0066b1;
	--accent-3: #6cc4ff;
	--bg: #0a0a0c;
	--surface: #131317;
	--surface-2: #1b1b21;
	--border: #26262e;
	--text: #ececf1;
	--text-strong: #ffffff;
	--muted: #9b9ba8;
	--overlay: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.88) 100%);
	--shadow: 0 10px 30px rgba(0,0,0,.45);
	--radius: 10px;
	--radius-sm: 6px;
	--container: 1240px;
	--gap: 24px;
	--font-head: "Barlow Condensed", "Arial Narrow", Impact, system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--header-h: 68px;
	color-scheme: dark;
}
html[data-theme="light"] {
	--bg: #f3f3f5;
	--surface: #ffffff;
	--surface-2: #f0f0f3;
	--border: #e3e3e8;
	--text: #26262c;
	--text-strong: #0b0b0e;
	--muted: #6a6a76;
	--shadow: 0 10px 30px rgba(15,15,25,.08);
	color-scheme: light;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--text-strong);
	line-height: 1.15;
	margin: 0 0 .6em;
	font-weight: 700;
	letter-spacing: .2px;
}
p { margin: 0 0 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.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 !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	left: 10px; top: 10px; padding: 12px 18px; background: var(--accent); color: #fff;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.svg-icon { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -.125em; flex-shrink: 0; }

/* ==========================================================================
   3. Top bar + header
   ========================================================================== */
.topbar {
	background: #000;
	color: #b9b9c4;
	font-size: 13px;
	border-bottom: 1px solid #1a1a1f;
}
html[data-theme="light"] .topbar { background: #0b0b0e; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar-left { display: flex; align-items: center; gap: 18px; }
.topbar-date { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .6px; font-size: 12px; }
.topbar-menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.topbar-menu a:hover { color: #fff; }
.social-icons { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.social-icons a {
	display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
	border-radius: 50%; color: inherit; font-size: 14px;
}
.social-icons a:hover { background: var(--accent); color: #fff; }

.site-header {
	position: sticky; top: 0; z-index: 900;
	background: rgba(10,10,12,.92);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .site-header { background: rgba(255,255,255,.94); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 0; } }
.no-sticky .site-header { position: relative; }
.site-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
	background: linear-gradient(90deg, var(--accent-3) 0 33.3%, var(--accent-2) 33.3% 66.6%, var(--accent) 66.6% 100%);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.site-branding img { max-height: 46px; width: auto; }
.site-title {
	font-family: var(--font-head); font-weight: 800; font-size: 32px; letter-spacing: 1px;
	text-transform: uppercase; margin: 0; line-height: 1; color: var(--text-strong);
	display: inline-flex; align-items: baseline;
}
.site-title .logo-mark { color: var(--accent); }
.site-title a:hover { color: var(--text-strong); }

.main-nav { flex: 1; min-width: 0; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
	display: flex; align-items: center; gap: 4px; height: var(--header-h); padding: 0 14px;
	font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .8px;
	text-transform: uppercase; color: var(--text-strong); position: relative;
}
.main-nav > ul > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 14px; height: 2px;
	background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li.current-menu-item > a::after,
.main-nav > ul > li.current-menu-ancestor > a::after,
.main-nav > ul > li.current-category-ancestor > a::after { transform: scaleX(1); }
.main-nav .menu-item-has-children > a .svg-icon { font-size: 11px; opacity: .7; }
.main-nav ul ul {
	position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px 0;
	background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 50;
}
.main-nav ul ul ul { top: -11px; left: 100%; border-top-width: 1px; border-radius: var(--radius-sm); }
.main-nav li:hover > ul, .main-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.main-nav ul ul a { display: block; padding: 9px 18px; font-size: 14.5px; font-weight: 500; color: var(--text); }
.main-nav ul ul a:hover { background: var(--surface-2); color: var(--accent); padding-left: 22px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border-radius: 50%; border: 0; background: transparent; color: var(--text-strong); font-size: 18px;
}
.icon-btn:hover { background: var(--surface-2); color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: inline-block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }

.header-ad { padding: 18px 0; text-align: center; background: var(--bg); }

/* Mobile drawer */
.mobile-drawer {
	position: fixed; inset: 0; z-index: 9999; visibility: hidden; pointer-events: none;
}
.mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; }
.mobile-drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
	position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 360px); background: var(--surface);
	transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; padding: 18px 20px 30px;
	border-right: 3px solid var(--accent);
}
.mobile-drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-search { margin-bottom: 18px; }
.mobile-menu, .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu ul { padding-left: 14px; display: none; }
.mobile-menu li.is-open > ul { display: block; }
.mobile-menu li { position: relative; border-bottom: 1px solid var(--border); }
.mobile-menu ul li { border: 0; }
.mobile-menu a { display: block; padding: 12px 40px 12px 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-strong); }
.mobile-menu ul a { font-family: var(--font-body); font-weight: 500; font-size: 15px; text-transform: none; padding: 8px 0; color: var(--text); }
.submenu-toggle { position: absolute; right: 0; top: 6px; width: 36px; height: 36px; border: 0; background: var(--surface-2); border-radius: 50%; color: var(--text); }
.mobile-menu li.is-open > .submenu-toggle .svg-icon { transform: rotate(180deg); }
.drawer-social { margin-top: 22px; }

/* Search overlay */
.search-overlay {
	position: fixed; inset: 0; z-index: 9998; background: rgba(5,5,7,.96);
	display: flex; align-items: flex-start; justify-content: center; padding-top: 18vh;
	opacity: 0; visibility: hidden; transition: .25s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay .search-form { width: min(92vw, 760px); }
.search-overlay .search-field { font-size: 26px; padding: 20px 64px 20px 22px; background: #111116; border-color: #2c2c35; color: #fff; }
.search-overlay .close-search { position: absolute; top: 24px; right: 24px; color: #fff; font-size: 24px; }
.search-overlay-hint { color: #8a8a96; font-size: 13px; margin-top: 10px; text-align: center; }

.search-form { position: relative; display: flex; }
.search-field {
	width: 100%; padding: 12px 52px 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
	background: var(--surface-2); color: var(--text); outline: none;
}
.search-field:focus { border-color: var(--accent); }
.search-submit {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
	border: 0; border-radius: var(--radius-sm); background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   4. Breaking news ticker
   ========================================================================== */
.breaking-news { background: var(--surface); border-bottom: 1px solid var(--border); }
.breaking-news .container { display: flex; align-items: center; height: 44px; gap: 14px; overflow: hidden; }
.breaking-label {
	flex-shrink: 0; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700;
	text-transform: uppercase; letter-spacing: 1px; font-size: 14px; padding: 4px 12px; border-radius: 3px;
	display: inline-flex; align-items: center; gap: 6px;
}
.breaking-label .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%{opacity:1} 50%{opacity:.25} 100%{opacity:1} }
.ticker-wrap { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker var(--ticker-speed, 40s) linear infinite; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { white-space: nowrap; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.ticker-track a::before { content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ==========================================================================
   5. Layout
   ========================================================================== */
.site-main { padding: 32px 0 56px; }
.content-area { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 40px; align-items: start; }
.layout-left-sidebar .content-area { grid-template-columns: 340px minmax(0,1fr); }
.layout-left-sidebar .content-area .primary { order: 2; }
.layout-no-sidebar .content-area, .full-width .content-area { grid-template-columns: minmax(0,1fr); }
.layout-no-sidebar .single-article { max-width: 860px; margin: 0 auto; }
.sidebar { position: relative; }
.sticky-sidebar .sidebar-inner { position: sticky; top: calc(var(--header-h) + 24px); }
body.admin-bar.sticky-sidebar .sidebar-inner { top: calc(var(--header-h) + 56px); }

/* Section heading */
.section-head {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	margin: 0 0 22px; border-bottom: 2px solid var(--border); position: relative;
}
.section-title {
	font-size: 24px; text-transform: uppercase; letter-spacing: 1px; margin: 0; padding: 0 0 10px;
	position: relative; display: inline-flex; align-items: center; gap: 10px;
}
.section-title::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--section-color, var(--accent)); }
.section-title::before { content: ""; width: 4px; height: 20px; background: var(--section-color, var(--accent)); transform: skewX(-15deg); }
.section-more { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding-bottom: 10px; }
.section-more:hover { color: var(--section-color, var(--accent)); }
.home-section { margin-bottom: 52px; }

/* ==========================================================================
   6. Cards
   ========================================================================== */
.cat-badge {
	display: inline-block; background: var(--cat-color, var(--accent)); color: #fff !important;
	font-family: var(--font-head); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px;
	padding: 3px 10px; border-radius: 3px; line-height: 1.5;
}
.cat-badge:hover { filter: brightness(1.15); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta a:hover { color: var(--accent); }

.thumb { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.thumb-placeholder {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 30% 20%, #2a2a33, #0c0c10 70%); color: #3a3a46; font-family: var(--font-head); font-size: 32px; font-weight: 800; letter-spacing: 3px;
}
a:hover .thumb img, .card:hover .thumb img { transform: scale(1.06); }
.thumb .cat-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }

.card { position: relative; }
.card-title { font-size: 21px; margin: 12px 0 8px; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* Overlay card (text on image) */
.card-overlay { border-radius: var(--radius); overflow: hidden; position: relative; display: block; height: 100%; min-height: 220px; background: #000; }
.card-overlay .thumb { border-radius: 0; height: 100%; aspect-ratio: auto; position: absolute; inset: 0; }
.card-overlay .thumb::after { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.card-overlay .overlay-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 3; color: #fff; }
.card-overlay .card-title { color: #fff; margin: 10px 0 8px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.card-overlay .card-title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.card-overlay .post-meta { color: rgba(255,255,255,.8); }
.card-overlay .cat-badge { position: static; }

/* List card */
.card-list { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 14px; align-items: center; }
.card-list .thumb { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.card-list .card-title { font-size: 17px; margin: 0 0 6px; }
.card-list + .card-list { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }

/* Horizontal (archive list) */
.card-horizontal { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 26px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.card-horizontal .card-title { font-size: 26px; margin-top: 10px; }
.card-horizontal .read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); margin-top: 4px; }
.card-horizontal .read-more:hover { gap: 10px; }

/* Hero */
.hero { padding-top: 6px; margin-bottom: 52px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 8px; }
.hero-grid > :first-child { grid-row: 1 / 3; }
.hero-grid > :first-child .card-title { font-size: clamp(26px, 3vw, 40px); }
.hero-grid > :not(:first-child) .card-title { font-size: 19px; }
.hero-grid .card-overlay { min-height: 0; }

.grid-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Block style: big + list */
.block-big-list { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; }
.block-big-list .card-title.big { font-size: 28px; }

/* Popular / numbered */
.numbered-list { counter-reset: num; list-style: none; padding: 0; margin: 0; }
.numbered-item { counter-increment: num; display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: start; }
.numbered-item::before { content: counter(num, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.numbered-item h3 { font-size: 18px; margin: 0 0 4px; }

/* Dark band section */
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 44px 0; margin: 0 0 52px; }

/* ==========================================================================
   7. Pagination
   ========================================================================== */
.pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); font-weight: 600;
}
.page-numbers.current, .page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-numbers.dots { background: transparent; border: 0; }

/* ==========================================================================
   8. Archive header, breadcrumbs
   ========================================================================== */
.archive-header {
	position: relative; padding: 38px 0 34px; background: var(--surface); border-bottom: 1px solid var(--border); overflow: hidden;
}
.archive-header::before {
	content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--cat-color, var(--accent)) 35%, transparent), transparent 70%);
	pointer-events: none;
}
.archive-header .archive-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--cat-color, var(--accent)); font-weight: 700; }
.archive-title { font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; margin: 6px 0 8px; }
.archive-description { color: var(--muted); max-width: 720px; }
.archive-description p:last-child { margin: 0; }
.archive-count { font-size: 13px; color: var(--muted); }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .5; font-size: 10px; }
.breadcrumbs .current { color: var(--text); }

/* ==========================================================================
   9. Single post
   ========================================================================== */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 10000; transition: width .08s linear; }
body.admin-bar .reading-progress { top: 32px; }
.entry-header { margin-bottom: 24px; }
.entry-header .cat-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.entry-title { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; margin-bottom: 16px; }
.entry-subtitle { font-size: 19px; color: var(--muted); margin: -4px 0 18px; }
.entry-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.entry-meta .author-mini { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.entry-meta .author-mini img { width: 38px; height: 38px; border-radius: 50%; }
.entry-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.entry-meta .share-inline { margin-left: auto; }

.featured-media { margin: 0 0 28px; }
.featured-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; }
.featured-media figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

.entry-content { font-size: 18px; line-height: 1.8; color: var(--text); overflow-wrap: break-word; }
.entry-content > * { margin-bottom: 1.35em; }
.entry-content h2 { font-size: 32px; margin: 1.8em 0 .7em; scroll-margin-top: calc(var(--header-h) + 20px); padding-left: 16px; border-left: 4px solid var(--accent); }
.entry-content h3 { font-size: 25px; margin: 1.6em 0 .6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content h4 { font-size: 21px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content img { border-radius: var(--radius-sm); height: auto; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption, .wp-caption-text { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--accent); }
.entry-content blockquote {
	margin: 2em 0; padding: 22px 26px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 20px; font-style: italic; color: var(--text-strong);
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table th { background: var(--accent); color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .6px; text-align: left; }
.entry-content th, .entry-content td { padding: 11px 14px; border: 1px solid var(--border); }
.entry-content tr:nth-child(even) td { background: var(--surface); }
.entry-content pre { background: var(--surface); padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 14px; }
.entry-content hr { border: 0; height: 1px; background: var(--border); margin: 2.4em 0; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: none; }
.wp-block-image img { border-radius: var(--radius-sm); }
.has-drop-cap:not(:focus)::first-letter { font-family: var(--font-head); font-size: 4.4em; float: left; line-height: .85; margin: .05em .12em 0 0; color: var(--accent); font-weight: 800; }

/* Table of contents */
.amg-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 2em; overflow: hidden; }
.amg-toc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-strong); }
.amg-toc summary::-webkit-details-marker { display: none; }
.amg-toc summary .svg-icon { transition: transform .2s; }
.amg-toc[open] summary .svg-icon { transform: rotate(180deg); }
.amg-toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 4px 20px 18px; font-size: 15.5px; line-height: 1.5; }
.amg-toc li { counter-increment: toc; margin: 0; padding: 6px 0; border-top: 1px dashed var(--border); }
.amg-toc li::before { content: counter(toc) ". "; color: var(--accent); font-weight: 700; }
.amg-toc li.toc-h3 { padding-left: 22px; font-size: 14.5px; }
.amg-toc li.toc-h3::before { content: "– "; }
.amg-toc a { color: var(--text) !important; text-decoration: none !important; }
.amg-toc a:hover { color: var(--accent) !important; }

/* Share */
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 14px;
	border-radius: var(--radius-sm); color: #fff !important; font-size: 13.5px; font-weight: 600; border: 0; text-decoration: none !important;
	transition: transform .15s, filter .15s;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000; border: 1px solid #333; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #229ed9; }
.share-btn.pinterest { background: #e60023; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.reddit { background: #ff4500; }
.share-btn.email { background: #5f6368; }
.share-btn.copy { background: var(--surface-2); color: var(--text) !important; border: 1px solid var(--border); }
.share-btn.copy.copied { background: #1f9d55; color: #fff !important; }
.share-btn .label { display: inline; }
.share-compact .share-btn { padding: 0; width: 36px; height: 36px; }
.share-compact .share-btn .label { display: none; }
.share-block { margin: 32px 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.share-block-title { font-family: var(--font-head); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; font-size: 16px; color: var(--text-strong); }
.mobile-share-bar { display: none; }

/* Tags */
.tag-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0; }
.tag-links .tags-label { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-right: 4px; }
.tag-links a { padding: 5px 12px; border: 1px solid var(--border); border-radius: 30px; font-size: 13px; background: var(--surface); }
.tag-links a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* Author box */
.author-box { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 22px; padding: 26px; margin: 32px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: hidden; }
.author-box::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent-3), var(--accent-2), var(--accent)); }
.author-box img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--border); }
.author-box .author-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent); font-weight: 700; }
.author-box h3 { font-size: 24px; margin: 2px 0 6px; }
.author-box p { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.author-box .author-posts-link { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }

/* Post navigation */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.post-navigation a { display: block; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); height: 100%; }
.post-navigation a:hover { border-color: var(--accent); }
.post-navigation .nav-label { display: flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 6px; }
.post-navigation .nav-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--text-strong); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-next .nav-label { justify-content: flex-end; }

/* Related */
.related-posts { margin: 40px 0; }
.related-posts .card-title { font-size: 18px; }

/* Check also slide-in */
.check-also {
	position: fixed; right: 20px; bottom: 20px; width: 330px; z-index: 950; background: var(--surface);
	border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 16px; transform: translateX(calc(100% + 40px)); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.check-also.is-visible { transform: none; }
.check-also-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.check-also-head span { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.check-also .icon-btn { width: 30px; height: 30px; font-size: 14px; }
.check-also .thumb { aspect-ratio: 16/9; margin-bottom: 10px; }
.check-also h4 { font-size: 18px; margin: 0; }

/* Comments */
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12.5px; color: var(--muted); margin: 4px 0 8px; }
.comment-content p:last-child { margin: 0; }
.reply a { font-size: 13px; font-weight: 600; color: var(--accent); }
.comment-respond { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.comment-reply-title { font-size: 24px; text-transform: uppercase; }
.comment-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text);
}
.comment-form textarea { min-height: 150px; }
.comment-form p { margin-bottom: 14px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.btn, .comment-form .submit, .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff !important; border: 0; border-radius: var(--radius-sm);
	padding: 12px 24px; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 16px; text-decoration: none !important;
}
.btn:hover, .comment-form .submit:hover { filter: brightness(1.12); }

/* ==========================================================================
   10. Widgets
   ========================================================================== */
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 28px; }
.widget-title { font-size: 19px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border); position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 46px; height: 2px; background: var(--accent); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget > ul > li, .widget .menu > li { padding: 9px 0; border-bottom: 1px solid var(--border); }
.widget > ul > li:last-child { border: 0; }
.widget_categories li, .widget_archive li { display: flex; justify-content: space-between; gap: 10px; }
.widget select { width: 100%; padding: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.widget .wp-block-heading { font-size: 19px; text-transform: uppercase; }
.widget-ad, .widget.amg-ad-widget { background: transparent; border: 0; padding: 0; }
.cat-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 8px; background: var(--surface-2); border-radius: var(--radius-sm); border-left: 3px solid var(--cat-color, var(--accent)); font-family: var(--font-head); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .6px; }
.cat-list a:hover { background: var(--cat-color, var(--accent)); color: #fff; }
.cat-list .count { font-family: var(--font-body); font-size: 12px; font-weight: 600; background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 20px; }
.social-follow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.social-follow a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius-sm); color: #fff; font-weight: 600; font-size: 14px; }
.social-follow a:hover { color: #fff; filter: brightness(1.12); }
.social-follow .svg-icon { font-size: 18px; }
.sf-facebook { background: #1877f2; } .sf-instagram { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af); }
.sf-youtube { background: #ff0000; } .sf-tiktok { background: #111; border: 1px solid #333; } .sf-twitter { background: #000; border: 1px solid #333; } .sf-pinterest { background: #e60023; }

/* Core block widgets (search, latest posts, etc.) */
.wp-block-search__label { font-family: var(--font-head); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-strong); display: block; margin-bottom: 12px; }
.wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.wp-block-search__input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); }
.wp-block-search__button { border: 0; border-radius: var(--radius-sm); background: var(--accent); color: #fff; padding: 0 16px; font-weight: 600; }
.wp-block-latest-posts li, .wp-block-latest-comments li, .wp-block-archives li, .wp-block-categories li { padding: 9px 0; border-bottom: 1px solid var(--border); margin: 0; }
.wp-block-latest-posts li:last-child, .wp-block-latest-comments li:last-child { border: 0; }
.wp-block-latest-posts a { font-weight: 600; color: var(--text-strong); }
.wp-block-group__inner-container > h2, .widget h2.wp-block-heading { font-size: 19px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 14px; }
.wp-block-latest-comments { padding: 0; margin: 0; }

/* ==========================================================================
   11. Ads
   ========================================================================== */
.amg-ad { margin: 28px auto; text-align: center; clear: both; overflow: hidden; max-width: 100%; }
.amg-ad.ad-header { margin: 0 auto; }
.amg-ad .ad-label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 6px; opacity: .8; }
.amg-ad ins { display: block; }
.amg-ad.ad-inline { min-height: 280px; }
.amg-ad.ad-archive { grid-column: 1 / -1; }
.ad-above-footer { padding: 10px 0 0; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { background: #050506; color: #a9a9b5; margin-top: 30px; position: relative; }
.site-footer::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--accent-3) 0 33.3%, var(--accent-2) 33.3% 66.6%, var(--accent) 66.6% 100%); }
.site-footer a:hover { color: #fff; }
.footer-top { padding: 54px 0 30px; }
.footer-brand { display: grid; grid-template-columns: 1.2fr 2fr; gap: 50px; }
.footer-brand .site-title { color: #fff; font-size: 38px; }
.footer-about { margin: 14px 0 18px; font-size: 14.5px; max-width: 380px; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; }
.site-footer .widget { background: transparent; border: 0; padding: 0; color: #a9a9b5; }
.site-footer .widget-title { color: #fff; border-color: #1f1f26; }
.site-footer .widget > ul > li { border-color: #1a1a20; }
.footer-cats a { display: block; padding: 6px 0; }
.footer-bottom { border-top: 1px solid #17171c; padding: 20px 0; font-size: 13.5px; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.back-to-top {
	position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; z-index: 940;
	background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
	box-shadow: 0 6px 18px rgba(225,6,0,.4); opacity: 0; visibility: hidden; transform: translateY(16px); transition: .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.check-also.is-visible ~ .back-to-top { bottom: 20px; right: 362px; }

/* ==========================================================================
   13. 404 / search / misc
   ========================================================================== */
.error-404 { text-align: center; padding: 60px 0 30px; }
.error-404 .big-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(110px, 22vw, 220px); line-height: .9; color: transparent; -webkit-text-stroke: 3px var(--accent); letter-spacing: 6px; }
.error-404 .search-form { max-width: 520px; margin: 24px auto 0; }
.no-results { padding: 40px; background: var(--surface); border-radius: var(--radius); text-align: center; }
.page-content-wrap { max-width: 860px; }
.sticky-badge { background: var(--accent-2); }

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.main-nav > ul > li > a { padding: 0 10px; font-size: 16px; }
	.content-area { grid-template-columns: minmax(0,1fr) 300px; gap: 30px; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 960px) {
	.main-nav, .topbar-menu { display: none; }
	.menu-toggle { display: inline-flex; }
	.header-inner { gap: 10px; }
	.site-branding { margin: 0 auto 0 4px; }
	.header-actions { margin-left: 0; }
	.content-area, .layout-left-sidebar .content-area { grid-template-columns: minmax(0,1fr); }
	.layout-left-sidebar .content-area .primary { order: 0; }
	.sticky-sidebar .sidebar-inner { position: static; }
	.hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 200px 200px; }
	.hero-grid > :first-child { grid-column: 1 / 3; grid-row: auto; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.block-big-list { grid-template-columns: 1fr; }
	.card-horizontal { grid-template-columns: 260px minmax(0,1fr); gap: 18px; }
	.footer-brand { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 680px) {
	:root { --header-h: 58px; --gap: 18px; }
	.topbar { display: none; }
	.site-title { font-size: 26px; }
	.site-main { padding: 22px 0 40px; }
	.hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 8px; }
	.hero-grid > * { height: 200px; }
	.hero-grid > :first-child { grid-column: 1 / -1; height: 340px; }
	.hero-grid > :not(:first-child) .overlay-content { padding: 12px; }
	.hero-grid > :not(:first-child) .card-title { font-size: 15.5px; margin: 6px 0 0; }
	.hero-grid > :not(:first-child) .post-meta { display: none; }
	.hero-grid > :not(:first-child) .cat-badge { font-size: 10.5px; padding: 2px 7px; }
	.grid-2, .grid-3, .grid-4, .footer-widgets { grid-template-columns: minmax(0,1fr); }
	.card-horizontal { grid-template-columns: minmax(0,1fr); }
	.card-horizontal .card-title { font-size: 23px; }
	.entry-content { font-size: 17px; }
	.entry-content h2 { font-size: 27px; }
	.entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
	.entry-meta .share-inline { display: none; }
	.post-navigation { grid-template-columns: 1fr; }
	.author-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.check-also { left: 12px; right: 12px; width: auto; bottom: 70px; }
	.back-to-top { bottom: 72px; right: 14px; width: 42px; height: 42px; }
	.check-also.is-visible ~ .back-to-top { right: 14px; bottom: 72px; opacity: 0; }
	.mobile-share-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 945; box-shadow: 0 -4px 18px rgba(0,0,0,.3); transform: translateY(100%); transition: transform .3s; }
	.mobile-share-bar.is-visible { transform: none; }
	.mobile-share-bar .share-btn { border-radius: 0; height: 50px; }
	.mobile-share-bar .share-btn .label { display: none; }
	body.single-post { padding-bottom: 0; }
	.section-title { font-size: 21px; }
	.breaking-label .text { display: none; }
	.amg-ad.ad-inline { min-height: 250px; }
}
@media print {
	.site-header, .topbar, .breaking-news, .sidebar, .site-footer, .share-block, .amg-ad, .related-posts, .comments-area, .check-also, .back-to-top, .mobile-share-bar, .reading-progress { display: none !important; }
	body { background: #fff; color: #000; }
}
