/*
Theme Name: XboxNews
Theme URI: https://alexwilliam.fr
Author: Alexis
Author URI: https://alexwilliam.fr
Description: Thème éditorial Xbox — design sobre, typographie premium (DM Serif + Inter), accent vert Xbox #107c10. Layout magazine inspiré des grands médias gaming.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xboxnews
Tags: gaming, blog, news, magazine, one-column, two-columns, custom-menu, featured-images, translation-ready
*/

/* ── DESIGN TOKENS ─────────────────────── */
:root {
  --bg:         #fafafa;
  --bg-alt:     #f2f2f2;
  --surface:    #ffffff;
  --border:     #e8e8e8;
  --border-sub: #f0f0f0;
  --text:       #111111;
  --text-2:     #444444;
  --text-3:     #888888;
  --accent:     #107c10;
  --accent-bg:  #eaf4ea;
  --font:       'Inter', system-ui, sans-serif;
  --font-d:     'DM Serif Display', Georgia, serif;
  --max:        1280px;
  --px:         32px;
  --r-sm:       4px;
  --r-md:       6px;
  --r-lg:       8px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141414; --bg-alt: #1e1e1e; --surface: #1a1a1a;
    --border: #2c2c2c; --border-sub: #222222;
    --text: #f0f0f0; --text-2: #aaaaaa; --text-3: #666666;
    --accent: #2da82d; --accent-bg: #0d2b0d;
  }
}
:root[data-theme="dark"] {
  --bg: #141414; --bg-alt: #1e1e1e; --surface: #1a1a1a;
  --border: #2c2c2c; --border-sub: #222222;
  --text: #f0f0f0; --text-2: #aaaaaa; --text-3: #666666;
  --accent: #2da82d; --accent-bg: #0d2b0d;
}

/* ── RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── LAYOUT ─────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--px); }
.site-main { min-height: 60vh; }

/* ── PROGRESS BAR ────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent); z-index: 200;
  transition: width .08s linear;
  pointer-events: none;
}

/* ── TICKER ──────────────────────────────── */
.ticker {
  background: var(--accent); color: #fff;
  height: 30px; overflow: hidden;
  display: flex; align-items: center;
}
.ticker-label {
  flex-shrink: 0; padding: 0 14px 0 16px;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.25);
  height: 100%; display: flex; align-items: center;
}
.ticker-scroll { flex: 1; overflow: hidden; }
.ticker-track {
  display: inline-flex; align-items: center;
  white-space: nowrap; font-size: 12px; font-weight: 500;
  animation: xn-marquee 40s linear infinite;
}
.ticker-track span { padding: 0 24px; opacity: .9; }
.ticker-track span::after { content: '·'; margin-left: 24px; opacity: .4; }
@keyframes xn-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ── HEADER ──────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hdr-in { display: flex; align-items: center; height: 54px; gap: 32px; }

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 800; letter-spacing: -0.03em;
  flex-shrink: 0; color: var(--text);
}
.logo-mark {
  width: 26px; height: 26px; background: var(--accent);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Nav */
.site-nav { flex: 1; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav ul li { list-style: none; }
.site-nav ul li a {
  display: block; padding: 6px 10px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.site-nav ul li a:hover,
.site-nav ul li.current-menu-item > a { color: var(--text); background: var(--bg-alt); }
.site-nav ul li.current-menu-item > a { color: var(--accent); font-weight: 600; background: none; }

/* Nav dropdown */
.site-nav ul li { position: relative; }
.site-nav ul li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); min-width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  padding: 4px; z-index: 10;
}
.site-nav ul li:hover > ul { display: flex; flex-direction: column; }
.site-nav ul li ul li a {
  padding: 8px 12px; border-radius: 4px;
  font-size: 13px; color: var(--text-2);
}
.site-nav ul li ul li a:hover { color: var(--accent); background: var(--bg-alt); }

/* Header tools */
.hdr-tools { display: flex; gap: 4px; flex-shrink: 0; }
.icn {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--text-2);
  transition: background .15s, color .15s;
}
.icn:hover { background: var(--bg-alt); color: var(--text); }
.icn svg { width: 17px; height: 17px; display: block; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--surface);
  z-index: 999; flex-direction: column; padding: 24px var(--px);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
  align-self: flex-end; margin-bottom: 24px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; color: var(--text-2); font-size: 20px;
}
.mobile-menu-close:hover { background: var(--bg-alt); }
.mobile-menu ul li a {
  display: block; padding: 12px 0;
  font-size: 18px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border-sub);
}
.mobile-menu ul li a:hover { color: var(--accent); }

/* ── COMMON ELEMENTS ─────────────────────── */
.cat-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); background: var(--accent-bg);
  padding: 3px 8px; border-radius: 100px;
}
.post-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.post-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-3);
}
.post-meta .author {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-2); font-weight: 500;
}
.post-meta .author img {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
}
.post-meta .sep { color: var(--border); }
.rt-pill {
  display: inline-flex; align-items: center;
  background: var(--bg-alt); color: var(--text-2);
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 100px; letter-spacing: .01em;
}

/* ── SECTION HEADER ──────────────────────── */
.sec-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}
.sec-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text);
}
.sec-more {
  font-size: 12px; font-weight: 500; color: var(--text-3);
  transition: color .15s;
}
.sec-more:hover { color: var(--accent); }

/* ── HERO ────────────────────────────────── */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 300px;
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.hero-main { display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.hero-main-img {
  width: 100%; aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0;
}
.hero-main-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms ease;
}
.hero-main:hover .hero-main-img img { transform: scale(1.02); }
.hero-body {
  padding: 24px 28px 28px; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-top: 1px solid var(--border);
}
.hero-post-title {
  font-family: var(--font-d);
  font-size: 28px; font-weight: 400; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--text);
  margin: 10px 0 12px; text-wrap: balance;
  transition: color .15s;
}
.hero-post-title:hover { color: var(--accent); }
.hero-excerpt {
  font-size: 14px; color: var(--text-2); line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Hero secondary */
.hero-side { display: flex; flex-direction: column; }
.hero-sec {
  flex: 1; display: flex; flex-direction: column;
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.hero-sec:last-child { border-bottom: none; }
.hero-sec-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0; }
.hero-sec-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero-sec:hover .hero-sec-img img { transform: scale(1.03); }
.hero-sec-body {
  padding: 14px 18px 18px; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-sec-title {
  font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--text);
  margin-top: 8px; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s;
}
.hero-sec:hover .hero-sec-title { color: var(--accent); }

/* ── SECTIONS ────────────────────────────── */
.sec { padding: 56px 0; }
.sec-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── ARTICLE CARD ────────────────────────── */
.card { display: flex; flex-direction: column; }
.card-img {
  aspect-ratio: 16/10; overflow: hidden;
  background: var(--bg-alt); border-radius: var(--r-sm); margin-bottom: 12px;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.card:hover .card-img img { transform: scale(1.02); }
.no-thumb {
  aspect-ratio: 16/10; background: var(--bg-alt);
  border-radius: var(--r-sm); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
}
.no-thumb svg { width: 32px; height: 32px; opacity: .15; }
.card-title {
  font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--text);
  letter-spacing: -.015em; margin: 8px 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s;
}
.card-title a { transition: color .15s; }
.card:hover .card-title a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.card-excerpt {
  font-size: 13px; color: var(--text-3); line-height: 1.6; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── GRIDS ───────────────────────────────── */
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px 24px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px 20px; }
.card-sm .card-img { aspect-ratio: 4/3; }
.card-sm .card-title { font-size: 14px; -webkit-line-clamp: 2; }

/* ── ARTICLE SINGLE ──────────────────────── */
.article-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start;
}
.article-main {}
.breadcrumb {
  font-size: 12px; color: var(--text-3);
  margin-bottom: 20px; display: flex; gap: 6px; align-items: center;
}
.breadcrumb a { color: var(--text-3); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .4; }
.article-tags { margin-bottom: 14px; }
.article-title {
  font-family: var(--font-d);
  font-size: 36px; font-weight: 400; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 18px; text-wrap: balance;
}
.article-intro {
  font-size: 18px; color: var(--text-2); line-height: 1.7;
  margin-bottom: 20px; font-weight: 400;
}
.article-meta { margin-bottom: 28px; }
.article-hero-img {
  aspect-ratio: 16/9; overflow: hidden; border-radius: var(--r-md);
  margin-bottom: 36px;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Article content */
.entry-content { font-size: 17px; line-height: 1.8; color: var(--text-2); }
.entry-content h2 {
  font-family: var(--font-d); font-size: 26px; font-weight: 400;
  color: var(--text); margin: 40px 0 16px; letter-spacing: -.01em;
}
.entry-content h3 {
  font-size: 19px; font-weight: 700; color: var(--text);
  margin: 32px 0 12px; letter-spacing: -.01em;
}
.entry-content p { margin-bottom: 20px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol {
  margin: 0 0 20px 24px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote {
  border-left: 3px solid var(--accent); margin: 28px 0;
  padding: 4px 24px; color: var(--text-2); font-style: italic;
  font-size: 18px; line-height: 1.7;
}
.entry-content img {
  border-radius: var(--r-md); margin: 8px 0 24px;
  max-width: 100%; height: auto;
}
.entry-content figure { margin-bottom: 28px; }
.entry-content figcaption {
  font-size: 12px; color: var(--text-3); margin-top: 8px; text-align: center;
}
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.entry-content th, .entry-content td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.entry-content th { font-weight: 700; color: var(--text); background: var(--bg-alt); }
.entry-content code {
  font-family: monospace; font-size: .9em;
  background: var(--bg-alt); padding: 2px 6px; border-radius: 3px;
}
.entry-content pre {
  background: var(--bg-alt); padding: 20px; border-radius: var(--r-md);
  overflow-x: auto; font-size: 14px; margin-bottom: 24px;
}

/* ── SIDEBAR ─────────────────────────────── */
.sidebar { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 32px; }
.widget {}
.widget-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text);
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 2px solid var(--text);
}
.widget ul li { list-style: none; }
.widget ul li a {
  display: block; padding: 10px 0; font-size: 14px;
  color: var(--text-2); border-bottom: 1px solid var(--border-sub);
  transition: color .15s;
}
.widget ul li a:hover { color: var(--accent); }

/* Sidebar compact card */
.sidebar-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border-sub);
}
.sidebar-card:last-child { border-bottom: none; }
.sidebar-thumb {
  flex-shrink: 0; width: 80px; aspect-ratio: 4/3;
  overflow: hidden; border-radius: 4px; background: var(--bg-alt);
}
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-card-title {
  font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s; margin-bottom: 4px;
}
.sidebar-card:hover .sidebar-card-title { color: var(--accent); }

/* ── ARCHIVE / CATEGORY ──────────────────── */
.cat-hero { padding: 48px 0 32px; background: var(--surface); border-bottom: 1px solid var(--border); }
.cat-hero .cat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 10px; }
.cat-hero h1 {
  font-family: var(--font-d); font-size: 40px; font-weight: 400;
  color: var(--text); margin-bottom: 10px; letter-spacing: -.02em;
}
.cat-hero .cat-desc { font-size: 15px; color: var(--text-3); max-width: 540px; }
.archive-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.archive-main {}

/* ── PAGINATION ──────────────────────────── */
.pagination {
  display: flex; gap: 4px; margin-top: 40px;
  justify-content: center;
}
.pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  color: var(--text-2); transition: all .15s;
}
.pagination .page-numbers:hover { border-color: var(--text); color: var(--text); }
.pagination .page-numbers.current {
  background: var(--text); color: var(--bg); border-color: var(--text);
}
.pagination .dots { border: none; }

/* ── LOAD MORE / BUTTONS ─────────────────── */
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; font-size: 13px; font-weight: 600;
  color: var(--text); border: 1px solid var(--border); border-radius: var(--r-sm);
  transition: border-color .15s, background .15s; background: transparent;
}
.btn-outline:hover { border-color: var(--text); background: var(--bg-alt); }

/* ── 404 / SEARCH ────────────────────────── */
.not-found, .search-page { padding: 80px 0; text-align: center; }
.not-found h1, .search-page h1 {
  font-family: var(--font-d); font-size: 48px; font-weight: 400;
  color: var(--text); margin-bottom: 16px;
}
.not-found p, .search-page p { color: var(--text-3); font-size: 16px; margin-bottom: 24px; }
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.search-form input {
  flex: 1; padding: 10px 16px; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); outline: none;
}
.search-form input:focus { border-color: var(--text); }
.search-form button {
  padding: 10px 20px; background: var(--accent); color: white;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
}

/* ── FOOTER ──────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 80px; }
.ftr-top {
  display: grid; grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 40px; padding: 48px 0;
}
.ftr-brand .site-logo { margin-bottom: 12px; }
.ftr-tagline { font-size: 13px; color: var(--text-3); line-height: 1.6; max-width: 200px; }
.ftr-col h4 {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text); margin-bottom: 14px;
}
.ftr-col ul { display: flex; flex-direction: column; gap: 8px; }
.ftr-col ul li { list-style: none; }
.ftr-col ul li a { font-size: 13px; color: var(--text-3); transition: color .15s; }
.ftr-col ul li a:hover { color: var(--accent); }
.ftr-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-top: 1px solid var(--border-sub);
  font-size: 12px; color: var(--text-3);
}
.ftr-bottom nav { display: flex; gap: 16px; }
.ftr-bottom a { color: var(--text-3); transition: color .15s; }
.ftr-bottom a:hover { color: var(--text); }

/* ── WP CORE COMPATIBILITY ───────────────── */
.alignwide  { margin-left: calc(-1 * var(--px)); margin-right: calc(-1 * var(--px)); }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  position: absolute; white-space: nowrap;
}
/* Comments */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--border-sub); }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-metadata { font-size: 12px; color: var(--text-3); margin: 2px 0 8px; }
.comment-content { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 14px; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); margin-bottom: 12px;
  outline: none; transition: border-color .15s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); }
.comment-form .submit {
  padding: 10px 24px; background: var(--accent); color: white;
  border-radius: var(--r-sm); font-weight: 600; font-size: 14px; cursor: pointer;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  :root { --px: 24px; }
  .g3 { grid-template-columns: repeat(2,1fr); }
  .g4 { grid-template-columns: repeat(2,1fr); }
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-grid { grid-template-columns: 1fr 240px; }
  .article-layout { grid-template-columns: 1fr 260px; gap: 36px; }
  .archive-layout { grid-template-columns: 1fr 240px; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --px: 16px; }
  .site-nav, .hdr-tools .icn:not(#theme-toggle):not(.burger) { display: none; }
  .icn.burger { display: flex !important; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; border-top: 1px solid var(--border); }
  .hero-sec { border-right: 1px solid var(--border); border-bottom: none; }
  .hero-sec:last-child { border-right: none; }
  .g3, .g4 { grid-template-columns: 1fr; }
  .article-layout, .archive-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1/-1; }
  .sec { padding: 36px 0; }
  .hero-body { padding: 16px 0; border-left: none; }
  .hero-post-title { font-size: 22px; }
  .article-title { font-size: 26px; }
  .ticker { display: none; }
}

/* ── WORDPRESS TEMPLATE LAYOUTS ─────────── */

/* Article / Single */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 40px 0 64px;
}
.article-content { min-width: 0; }
.article-title {
  font-family: var(--font-d);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
  margin: 12px 0 16px;
  text-wrap: balance;
}
.article-meta { margin-bottom: 24px; }
.article-thumb { margin: 0 0 32px; }
.article-thumb img { width: 100%; border-radius: var(--r-md); display: block; }
.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
}
.article-body h2, .article-body h3 { color: var(--text); margin: 32px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body img { max-width: 100%; border-radius: var(--r-sm); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 12px 20px;
  background: var(--bg-alt);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.tag-chip {
  padding: 4px 12px; border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 12px; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing: .04em;
  transition: border-color .15s, color .15s;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }

/* Author box */
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: var(--bg-alt);
  border-radius: var(--r-md); margin: 40px 0;
}
.author-box-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.author-box-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.author-box-bio  { font-size: 13px; color: var(--text-3); }

/* Post navigation */
.post-navigation {
  display: flex; gap: 16px; margin: 32px 0;
  border-top: 1px solid var(--border); padding-top: 24px;
}
.post-nav-link {
  flex: 1; padding: 16px; border: 1px solid var(--border);
  border-radius: var(--r-md); display: flex; flex-direction: column;
  gap: 4px; transition: border-color .15s;
}
.post-nav-link:hover { border-color: var(--accent); }
.post-nav-link.post-nav-next { align-items: flex-end; text-align: right; }
.post-nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.post-nav-title { font-size: 14px; font-weight: 600; color: var(--text); }

/* Related posts */
.related-section { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 32px; }
.cards-grid--3 { grid-template-columns: repeat(3,1fr); }

/* Archive */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 40px 0 64px;
}
.cat-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
}
.cat-hero-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); display: block; margin-bottom: 8px;
}
.cat-hero-title { font-family: var(--font-d); font-size: 36px; font-weight: 400; }
.cat-hero-desc  { font-size: 15px; color: var(--text-2); margin-top: 8px; max-width: 60ch; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 12px; color: var(--text-3); margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }

/* Pagination */
.pagination { margin: 40px 0 8px; display: flex; justify-content: center; }
.pagination .page-numbers {
  display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0;
}
.pagination .page-numbers li a,
.pagination .page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  color: var(--text-2); transition: border-color .15s, color .15s;
}
.pagination .page-numbers li .current { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers li a:hover { border-color: var(--accent); color: var(--accent); }

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: 240px repeat(3,1fr);
  gap: 40px;
  padding: 48px 0 40px;
}
.footer-brand .site-logo { color: var(--text); font-weight: 700; margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: var(--text-3); line-height: 1.6; margin-top: 8px; }
.footer-col {}
.footer-widget-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text); margin-bottom: 12px;
}
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-nav a, .footer-nav li a { font-size: 13px; color: var(--text-3); }
.footer-nav a:hover, .footer-nav li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 16px 0;
  font-size: 12px; color: var(--text-3);
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; }
.widget { margin-bottom: 32px; }
.widget-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text); margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.sidebar-recent { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sidebar-item { display: flex; gap: 10px; align-items: flex-start; }
.sidebar-thumb { flex-shrink: 0; }
.sidebar-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); display: block; }
.sidebar-item-body { min-width: 0; }
.sidebar-item-title { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 2px; }
.sidebar-item-title a { color: var(--text); }
.sidebar-item-title a:hover { color: var(--accent); }
.sidebar-cats { list-style: none; padding: 0; margin: 0; }
.sidebar-cats li a { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--border-sub); }
.sidebar-cats li a:hover { color: var(--accent); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.6); display: flex; align-items: flex-start;
  justify-content: center; padding-top: 80px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.search-overlay.is-open { opacity: 1; pointer-events: auto; }
.search-overlay-inner {
  background: var(--surface); border-radius: var(--r-md);
  padding: 24px; width: 100%; max-width: 560px; position: relative;
}
.search-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-3);
}
.search-form { display: flex; gap: 8px; }
.search-field {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 15px; background: var(--bg-alt);
  color: var(--text); outline: none;
}
.search-field:focus { border-color: var(--accent); }
.search-submit {
  padding: 10px 18px; background: var(--accent); color: white;
  border-radius: var(--r-sm); font-weight: 600; font-size: 14px; cursor: pointer; border: none;
}

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--surface); z-index: 8000;
  transition: right .25s cubic-bezier(.4,0,.2,1);
  border-left: 1px solid var(--border); overflow-y: auto;
}
.mobile-menu.is-open { right: 0; }
.mobile-menu-inner { padding: 64px 24px 32px; }
.mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-list li a { display: block; padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border-sub); }
.mobile-nav-list li a:hover { color: var(--accent); }
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 7999;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }

/* Header sticky hide */
.site-header.is-sticky { box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.site-header.is-hidden { transform: translateY(-100%); }

/* Hero section */
.hero-section { padding: 32px 0 0; }
.hero-main { display: flex; flex-direction: column; }
.hero-main-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px 6px 0 0; display: block; }
.hero-main-img--placeholder { width: 100%; aspect-ratio: 16/9; background: var(--bg-alt); border-radius: 6px 6px 0 0; }
.hero-main-body { padding: 20px 20px 24px; }
.hero-side { display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.hero-side-item { display: flex; flex-direction: column; padding: 20px; flex: 1; }
.hero-side-item + .hero-side-item { border-top: 1px solid var(--border); }
.hero-side-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-sm); display: block; }
.hero-side-img--placeholder { width: 100%; aspect-ratio: 16/9; background: var(--bg-alt); border-radius: var(--r-sm); }
.hero-side-body { padding-top: 12px; }
.hero-side-title { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 6px 0 8px; }
.hero-side-title a { color: var(--text); }
.hero-side-title a:hover { color: var(--accent); }

/* Latest section */
.latest-section { padding: 40px 0 64px; }

/* 404 */
.error-404-block {
  text-align: center;
  padding: 80px 0 64px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.error-code { font-size: 120px; font-family: var(--font-d); color: var(--bg-alt); line-height: 1; }
.error-title { font-size: 28px; font-weight: 700; }
.error-desc { color: var(--text-3); }
.btn-primary {
  display: inline-flex; padding: 10px 24px;
  background: var(--accent); color: white;
  border-radius: var(--r-sm); font-weight: 600; font-size: 14px;
}
.error-search { margin-top: 16px; width: 100%; max-width: 400px; }

/* No results */
.no-results { padding: 48px 0; color: var(--text-3); text-align: center; }
.no-results-block { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 48px 0; }

/* ── RESPONSIVE ADDITIONS ─────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1/-1; }
  .cards-grid--3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .article-layout,
  .archive-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 4px; }
  .post-navigation { flex-direction: column; }
  .cards-grid--3 { grid-template-columns: 1fr; }
  .hero-side { border-left: none; border-top: 1px solid var(--border); }
}
