/* ═══════════════════════════════════════════
   MIDNIGHT GARAGE — Main Stylesheet v2.0
   Dark/Light Mode + Optimized Readability
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── DARK MODE (Default) ─────────────── */
:root, [data-theme="dark"] {
  --bg:#0C0C0C; --surface:#161616; --surface2:#202020; --surface3:#2A2A2A;
  --accent:#E8560A; --accent-lt:#FF7B34; --accent-dk:#B83F06;
  --text:#F0ECE4; --text-2:#C8C3BA; --text-3:#807A72;
  --border:rgba(255,255,255,0.07); --border2:rgba(255,255,255,0.14);
  --post-text:#E0DCD4; --post-heading:#F5F2ED; --post-link:#FF8F50; --post-link-h:#FFB080;
  --post-meta:#A09A90; --post-code-bg:#1A1A1A; --post-quote-bg:#141414; --post-quote-border:#E8560A;
  --font-head:'Barlow Condensed','Arial Black',sans-serif;
  --font-body:'Barlow',system-ui,sans-serif;
  --font-serif:'Lora',Georgia,serif;
  --font-post:'Lora',Georgia,serif;
  --radius:10px; --radius-lg:16px;
  --fs-post-body:18px; --fs-post-h2:28px; --fs-post-h3:22px; --fs-post-lh:1.85;
}

/* ─── LIGHT MODE (Darker, Eye-Friendly) ── */
[data-theme="light"] {
  --bg:#F8F6F2; --surface:#FFFFFF; --surface2:#F0EDE7; --surface3:#E4E0D9;
  --accent:#C24500; --accent-lt:#DC5200; --accent-dk:#8E3000;
  --text:#0A0A0A; --text-2:#26221E; --text-3:#6D655A;
  --border:rgba(0,0,0,0.1); --border2:rgba(0,0,0,0.16);
  --post-text:#0F0D0B; --post-heading:#000000; --post-link:#B83F00; --post-link-h:#8E3000;
  --post-meta:#524A40; --post-code-bg:#F0EDE7; --post-quote-bg:#FFF5EC; --post-quote-border:#C24500;
}
[data-theme="light"] .topbar { background:#0F0D0B; }
[data-theme="light"] .site-header { box-shadow:0 1px 8px rgba(0,0,0,0.08); }
[data-theme="light"] .hero { background:linear-gradient(180deg,#FFFFFF 0%,#F8F6F2 100%); }
[data-theme="light"] .badge-toyota { background:rgba(194,69,0,0.12); color:#A03800; }
[data-theme="light"] .badge-tire { background:rgba(37,99,235,0.12); color:#1E4DB8; }
[data-theme="light"] .badge-hyundai { background:rgba(79,70,229,0.12); color:#3730A3; }
[data-theme="light"] .badge-review { background:rgba(22,163,74,0.12); color:#15803D; }
[data-theme="light"] .badge-guide { background:rgba(180,83,9,0.12); color:#92400E; }
[data-theme="light"] .card { box-shadow:0 1px 4px rgba(0,0,0,0.05); }
[data-theme="light"] .card:hover { box-shadow:0 6px 20px rgba(0,0,0,0.1); }
[data-theme="light"] .trust-icon { background:rgba(194,69,0,0.08); border-color:rgba(194,69,0,0.15); }
[data-theme="light"] .widget { box-shadow:0 1px 4px rgba(0,0,0,0.05); }
[data-theme="light"] .footer-affiliate { background:#FFF5EC; border-color:rgba(194,69,0,0.15); }
[data-theme="light"] .post-content-wrap ul li::marker { color:var(--post-link); }
[data-theme="light"] .single-post-header h1 { color:#000000; }
[data-theme="light"] .post-content-wrap strong { color:#000000; font-weight:700; }
[data-theme="light"] .recent-post-title { color:#0A0A0A; }

/* ═══════════════════════════════════════════
   PAGE TEMPLATE (Privacy, Terms, About, etc.)
   ═══════════════════════════════════════════ */
.page-header { padding:56px 24px 40px; }
.page-featured-image {
  max-width:960px;
  margin:32px auto 0;
  padding:0 24px;
}
.page-featured-image img {
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  width:100%;
  max-height:400px;
  object-fit:cover;
}
.page-wrap {
  max-width:820px;
  margin:0 auto;
  padding:0 24px;
}
.page-content.post-content-wrap {
  max-width:100%;
  margin:0;
  padding:48px 0 64px;
}

/* ─── FONT SIZE PRESETS ──────────────── */
[data-fontsize="small"] { --fs-post-body:16px; --fs-post-h2:24px; --fs-post-h3:19px; --fs-post-lh:1.75; }
[data-fontsize="medium"] { --fs-post-body:18px; --fs-post-h2:28px; --fs-post-h3:22px; --fs-post-lh:1.85; }
[data-fontsize="large"] { --fs-post-body:20px; --fs-post-h2:32px; --fs-post-h3:25px; --fs-post-lh:1.9; }
[data-fontsize="xlarge"] { --fs-post-body:22px; --fs-post-h2:36px; --fs-post-h3:28px; --fs-post-lh:1.95; }

/* Smooth theme transition */
body, body * { transition: background-color 0.3s ease, color 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease; }

/* ─── BASE ────────────────────────────── */
html { scroll-behavior:smooth; }
body { background:var(--bg); color:var(--text); font-family:var(--font-body); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; height:auto; }

/* ─── TOP BAR ─────────────────────────── */
.topbar { background:var(--accent); text-align:center; padding:8px 20px; font-size:12px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:#fff; }

/* ─── HEADER ──────────────────────────── */
.site-header { position:sticky; top:0; z-index:100; background:var(--surface); border-bottom:1px solid var(--border); }
.header-inner { max-width:1280px; margin:0 auto; padding:0 24px; display:flex; align-items:center; gap:24px; height:68px; }

/* Logo */
.site-logo { flex-shrink:0; display:flex; align-items:center; gap:10px; }
.site-logo img { height:42px; width:auto; object-fit:contain; }
.site-logo .logo-text { font-family:var(--font-head); font-size:22px; font-weight:700; letter-spacing:0.02em; text-transform:uppercase; color:var(--text); white-space:nowrap; }
.site-logo .logo-text span { color:var(--accent); }
.logo { font-family:var(--font-head); font-size:26px; font-weight:700; letter-spacing:0.02em; text-transform:uppercase; color:var(--text); flex-shrink:0; }
.logo span { color:var(--accent); }

/* Navigation */
.main-navigation { flex:1; }
.main-navigation ul { list-style:none; display:flex; gap:4px; margin:0; padding:0; }
.main-navigation li { position:relative; }
.main-navigation a { font-size:13px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; color:var(--text-2); padding:6px 12px; border-radius:6px; transition:color 0.15s,background 0.15s; display:block; }
.main-navigation a:hover, .main-navigation .current-menu-item>a { color:var(--text); background:var(--surface2); }
.main-navigation .current-menu-item>a { color:var(--accent); }
.main-navigation ul ul { display:none; position:absolute; top:100%; left:0; background:var(--surface2); border:1px solid var(--border2); border-radius:var(--radius); min-width:200px; padding:8px 0; flex-direction:column; z-index:10; }
.main-navigation li:hover>ul { display:flex; }
.main-navigation ul ul a { padding:8px 16px; font-size:12px; }

/* Header Search */
.header-search { display:flex; align-items:center; gap:8px; background:var(--surface2); border:1px solid var(--border2); border-radius:8px; padding:6px 12px; min-width:180px; }
.header-search svg { color:var(--text-3); flex-shrink:0; }
.header-search input { background:none; border:none; outline:none; color:var(--text); font-family:var(--font-body); font-size:13px; width:100%; }
.header-search input::placeholder { color:var(--text-3); }

/* Reader controls removed - theme mode and font size are admin-controlled via Customizer */

.menu-toggle { display:none; background:none; border:1px solid var(--border2); border-radius:6px; color:var(--text); padding:6px 10px; cursor:pointer; font-size:20px; }

/* ─── HERO ────────────────────────────── */
.hero { background:var(--surface); border-bottom:1px solid var(--border); padding:80px 24px 72px; text-align:center; position:relative; overflow:hidden; }
.hero::before { content:''; position:absolute; inset:0; background:repeating-linear-gradient(90deg,transparent,transparent 60px,rgba(128,128,128,0.03) 60px,rgba(128,128,128,0.03) 61px),repeating-linear-gradient(0deg,transparent,transparent 60px,rgba(128,128,128,0.03) 60px,rgba(128,128,128,0.03) 61px); pointer-events:none; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:8px; background:rgba(232,86,10,0.12); border:1px solid rgba(232,86,10,0.25); color:var(--accent-lt); font-size:11px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; padding:5px 14px; border-radius:100px; margin-bottom:24px; }
.hero-eyebrow::before { content:''; width:6px; height:6px; background:var(--accent); border-radius:50%; }
.hero h1 { font-family:var(--font-head); font-size:clamp(48px,7vw,88px); font-weight:700; line-height:0.92; letter-spacing:-0.01em; text-transform:uppercase; color:var(--text); margin-bottom:20px; }
.hero h1 em { font-style:normal; color:var(--accent); }
.hero-sub { font-size:17px; color:var(--text-2); max-width:520px; margin:0 auto 40px; line-height:1.7; }
.hero-search { display:flex; align-items:center; max-width:560px; margin:0 auto; background:var(--surface2); border:1px solid var(--border2); border-radius:12px; overflow:hidden; transition:border-color 0.2s; }
.hero-search:focus-within { border-color:var(--accent); }
.hero-search svg { margin-left:18px; color:var(--text-3); flex-shrink:0; }
.hero-search input { flex:1; background:none; border:none; outline:none; padding:16px; font-family:var(--font-body); font-size:15px; color:var(--text); }
.hero-search input::placeholder { color:var(--text-3); }
.hero-search button { background:var(--accent); border:none; color:#fff; font-family:var(--font-body); font-size:13px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; padding:0 24px; height:52px; cursor:pointer; transition:background 0.15s; flex-shrink:0; }
.hero-search button:hover { background:var(--accent-lt); }
.hero-stats { display:flex; justify-content:center; gap:40px; margin-top:48px; padding-top:40px; border-top:1px solid var(--border); }
.hero-stat-num { font-family:var(--font-head); font-size:32px; font-weight:700; color:var(--text); letter-spacing:-0.02em; }
.hero-stat-num span { color:var(--accent); }
.hero-stat-label { font-size:12px; color:var(--text-3); text-transform:uppercase; letter-spacing:0.08em; margin-top:2px; }

/* ─── TRUST BAR ──────────────────────── */
.trust-bar { background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.trust-inner { max-width:1280px; margin:0 auto; padding:28px 24px; display:flex; justify-content:center; gap:60px; flex-wrap:wrap; }
.trust-item { display:flex; align-items:center; gap:12px; color:var(--text-2); font-size:13px; }
.trust-icon { width:38px; height:38px; background:rgba(232,86,10,0.1); border:1px solid rgba(232,86,10,0.2); border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--accent); font-size:18px; flex-shrink:0; }
.trust-label { font-weight:600; color:var(--text); font-size:14px; display:block; }

/* ─── SECTION ─────────────────────────── */
.section { max-width:1280px; margin:0 auto; padding:64px 24px; }
.section-header { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:36px; border-bottom:1px solid var(--border); padding-bottom:20px; }
.section-title { font-family:var(--font-head); font-size:30px; font-weight:700; letter-spacing:0.01em; text-transform:uppercase; color:var(--text); }
.section-title span { color:var(--accent); }
.section-link { font-size:13px; font-weight:600; letter-spacing:0.05em; text-transform:uppercase; color:var(--accent); display:flex; align-items:center; gap:6px; transition:gap 0.15s; }
.section-link:hover { gap:10px; }

.main-with-sidebar { display:grid; grid-template-columns:1fr 320px; gap:40px; align-items:start; }

/* ─── CARDS ───────────────────────────── */
.articles-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:24px; }
.articles-grid .card-featured { grid-column:1/3; grid-row:1; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; transition:border-color 0.2s,transform 0.2s,box-shadow 0.2s; }
.card:hover { border-color:var(--border2); transform:translateY(-2px); }
.card-img { aspect-ratio:16/9; background:var(--surface2); overflow:hidden; position:relative; }
.card-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.card:hover .card-img img { transform:scale(1.04); }
.card-body { padding:20px; flex:1; display:flex; flex-direction:column; gap:10px; }
.card-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.badge { font-size:10px; font-weight:700; letter-spacing:0.07em; text-transform:uppercase; padding:3px 9px; border-radius:4px; }
.badge-toyota { background:rgba(224,68,10,0.15); color:#FF7B34; }
.badge-tire { background:rgba(59,130,246,0.15); color:#60A5FA; }
.badge-hyundai { background:rgba(99,102,241,0.15); color:#A5B4FC; }
.badge-review { background:rgba(34,197,94,0.15); color:#4ADE80; }
.badge-guide { background:rgba(245,158,11,0.15); color:#FCD34D; }
.read-time { font-size:11px; color:var(--text-3); font-weight:500; letter-spacing:0.03em; }
.card-title { font-family:var(--font-serif); font-size:17px; font-weight:600; color:var(--text); line-height:1.35; flex:1; transition:color 0.15s; }
.card:hover .card-title { color:var(--accent-lt); }
.card-excerpt { font-size:13px; color:var(--text-2); line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-footer { padding:14px 20px; border-top:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; font-size:12px; color:var(--text-3); }
.card-date { font-weight:500; }
.card-read-more { font-size:12px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:var(--accent); }
.card-featured { flex-direction:row; }
.card-featured .card-img { aspect-ratio:unset; width:45%; flex-shrink:0; }
.card-featured .card-title { font-size:22px; line-height:1.25; }
.card-featured .card-excerpt { -webkit-line-clamp:3; }

/* ─── SIDEBAR ────────────────────────── */
.sidebar { display:flex; flex-direction:column; gap:28px; }
.widget { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.widget-title { font-family:var(--font-head); font-size:14px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--text); padding:14px 18px; border-bottom:1px solid var(--border); background:var(--surface2); }
.widget-title span { color:var(--accent); }
.widget-body { padding:16px 18px; }
.popular-list { list-style:none; display:flex; flex-direction:column; gap:14px; }
.popular-item { display:flex; gap:14px; align-items:flex-start; }
.popular-num { font-family:var(--font-head); font-size:22px; font-weight:700; color:var(--text-3); line-height:1; min-width:24px; flex-shrink:0; }
.popular-title { font-family:var(--font-serif); font-size:13px; line-height:1.5; color:var(--text); font-weight:400; transition:color 0.15s; }
.popular-item:hover .popular-title { color:var(--accent-lt); }
.tag-cloud { display:flex; flex-wrap:wrap; gap:8px; }
.tag-cloud a,.tag { font-size:11px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; padding:5px 12px; border-radius:6px; background:var(--surface2); border:1px solid var(--border2); color:var(--text-2); cursor:pointer; transition:border-color 0.15s,color 0.15s; }
.tag-cloud a:hover,.tag:hover { border-color:var(--accent); color:var(--accent-lt); }
.newsletter { background:var(--surface2); border:1px solid var(--border2); border-radius:var(--radius); padding:20px; margin-top:4px; }
.newsletter h4 { font-family:var(--font-head); font-size:15px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color:var(--text); margin-bottom:6px; }
.newsletter p { font-size:12px; color:var(--text-3); margin-bottom:12px; }
.newsletter-form { display:flex; flex-direction:column; gap:8px; }
.newsletter input { background:var(--surface); border:1px solid var(--border2); border-radius:6px; padding:10px 12px; font-family:var(--font-body); font-size:13px; color:var(--text); outline:none; transition:border-color 0.15s; }
.newsletter input::placeholder { color:var(--text-3); }
.newsletter input:focus { border-color:var(--accent); }
.newsletter button { background:var(--accent); border:none; border-radius:6px; padding:10px; font-family:var(--font-body); font-size:12px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:#fff; cursor:pointer; transition:background 0.15s; }
.newsletter button:hover { background:var(--accent-lt); }

/* ─── CATEGORIES ──────────────────────── */
.categories-bg { background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.cat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; }
.cat-card { background:var(--surface2); border:1px solid var(--border); border-radius:var(--radius); padding:20px; display:flex; flex-direction:column; gap:8px; transition:border-color 0.2s,background 0.2s; cursor:pointer; text-decoration:none; }
.cat-card:hover { border-color:var(--accent); background:var(--surface3); }
.cat-icon { font-size:28px; line-height:1; margin-bottom:4px; }
.cat-name { font-family:var(--font-head); font-size:16px; font-weight:700; letter-spacing:0.02em; text-transform:uppercase; color:var(--text); }
.cat-count { font-size:12px; color:var(--text-3); font-weight:500; }
.cat-arrow { margin-top:auto; font-size:18px; color:var(--accent); font-weight:700; transition:transform 0.15s; }
.cat-card:hover .cat-arrow { transform:translateX(4px); }

/* ─── PAGINATION ──────────────────────── */
.pagination { display:flex; justify-content:center; gap:8px; margin-top:48px; }
.pagination .page-numbers,.page-btn { width:40px; height:40px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:600; border-radius:8px; border:1px solid var(--border2); background:var(--surface); color:var(--text-2); cursor:pointer; transition:all 0.15s; }
.pagination .page-numbers:hover,.page-btn:hover { border-color:var(--accent); color:var(--accent); }
.pagination .page-numbers.current,.page-btn.active { background:var(--accent); border-color:var(--accent); color:#fff; }

/* ─── FOOTER ──────────────────────────── */
.site-footer { background:var(--surface); border-top:1px solid var(--border); padding:56px 24px 32px; }
.footer-inner { max-width:1280px; margin:0 auto; }
.footer-affiliate { font-size:11px; color:var(--text-3); background:var(--surface2); border:1px solid var(--border); border-radius:6px; padding:10px 14px; margin-bottom:24px; line-height:1.6; }
.footer-affiliate strong { color:var(--text-2); }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px; }
.footer-brand .logo { font-size:22px; margin-bottom:14px; }
.footer-brand .site-logo { margin-bottom:14px; }
.footer-brand .site-logo img { height:36px; }
.footer-desc { font-size:13px; color:var(--text-3); line-height:1.7; max-width:300px; margin-bottom:20px; }
.footer-col-title { font-family:var(--font-head); font-size:14px; font-weight:700; letter-spacing:0.07em; text-transform:uppercase; color:var(--text); margin-bottom:16px; }
.footer-links { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links a { font-size:13px; color:var(--text-3); transition:color 0.15s; }
.footer-links a:hover { color:var(--accent-lt); }
.footer-bottom { border-top:1px solid var(--border); padding-top:24px; display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--text-3); flex-wrap:wrap; gap:12px; }

/* ═══════════════════════════════════════════
   SINGLE POST — With Sidebar (v2.2)
   ═══════════════════════════════════════════ */
.single-post-header { background:var(--surface); border-bottom:1px solid var(--border); padding:48px 24px 36px; text-align:center; }
.single-post-header .badge { margin-bottom:14px; display:inline-block; }
.single-post-header h1 { font-family:var(--font-serif); font-size:clamp(26px,3.5vw,38px); font-weight:600; line-height:1.25; color:var(--post-heading); max-width:720px; margin:0 auto 16px; }
.post-meta-bar { display:flex; justify-content:center; gap:20px; font-size:13px; color:var(--post-meta); flex-wrap:wrap; }
.post-meta-bar span { display:flex; align-items:center; gap:6px; }

/* Main wrap for single post with sidebar */
.single-wrap { max-width:1240px; margin:0 auto; padding:0 24px; }
.single-grid { display:grid; grid-template-columns:minmax(0, 1fr) 320px; gap:48px; align-items:start; padding:40px 0 64px; }
.single-main { min-width:0; }

/* Featured image — now smaller and inside content area */
.post-featured-image { margin:0 0 32px; }
.post-featured-image img { border-radius:var(--radius-lg); border:1px solid var(--border); width:100%; max-height:420px; object-fit:cover; display:block; }

/* Post Content */
/* Default: standalone container (for page.php) */
.post-content-wrap { max-width:820px; margin:0 auto; padding:48px 24px 64px; }
/* Override: inside single post with sidebar, fill column */
.single-main .post-content-wrap { max-width:100%; margin:0; padding:0; }

.post-content-wrap p { font-family:var(--font-post); font-size:var(--fs-post-body); line-height:var(--fs-post-lh); color:var(--post-text); margin-bottom:24px; letter-spacing:0.01em; }
.post-content-wrap h2 { font-family:var(--font-head); font-size:var(--fs-post-h2); font-weight:700; text-transform:uppercase; letter-spacing:0.01em; color:var(--post-heading); margin:48px 0 20px; padding-bottom:12px; border-bottom:2px solid var(--accent); }
.post-content-wrap h3 { font-family:var(--font-serif); font-size:var(--fs-post-h3); font-weight:600; color:var(--post-heading); margin:36px 0 14px; }
.post-content-wrap h4 { font-family:var(--font-body); font-size:calc(var(--fs-post-body) + 1px); font-weight:700; color:var(--post-heading); margin:28px 0 10px; text-transform:uppercase; letter-spacing:0.03em; }
.post-content-wrap ul,.post-content-wrap ol { padding-left:28px; margin-bottom:24px; color:var(--post-text); font-family:var(--font-post); font-size:var(--fs-post-body); line-height:var(--fs-post-lh); }
.post-content-wrap li { margin-bottom:12px; padding-left:4px; }
.post-content-wrap ul li::marker { color:var(--accent); }
.post-content-wrap a { color:var(--post-link); text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:3px; transition:color 0.15s; }
.post-content-wrap a:hover { color:var(--post-link-h); }
.post-content-wrap blockquote { border-left:4px solid var(--post-quote-border); padding:20px 28px; margin:32px 0; background:var(--post-quote-bg); border-radius:0 var(--radius) var(--radius) 0; font-family:var(--font-serif); font-style:italic; font-size:var(--fs-post-body); color:var(--post-text); line-height:1.7; }
.post-content-wrap code { background:var(--post-code-bg); padding:2px 8px; border-radius:4px; font-size:0.88em; color:var(--accent-lt); }
.post-content-wrap pre { background:var(--post-code-bg); border:1px solid var(--border); border-radius:var(--radius); padding:20px; overflow-x:auto; margin:24px 0; }
.post-content-wrap pre code { background:none; padding:0; font-size:14px; color:var(--post-text); }

/* In-post images — CONSISTENT SIZE matching featured image */
.post-content-wrap img,
.post-content-wrap figure img,
.post-content-wrap .wp-block-image img {
  width:100%;
  max-width:100%;
  height:auto;
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  margin:32px 0;
  display:block;
  max-height:420px;
  object-fit:cover;
}
.post-content-wrap figure { margin:32px 0; }
.post-content-wrap figure img { margin:0; }
.post-content-wrap figcaption { font-size:13px; color:var(--text-3); text-align:center; margin-top:10px; font-style:italic; }

/* Tables */
.post-content-wrap table { width:100%; border-collapse:collapse; margin:24px 0; font-size:calc(var(--fs-post-body) - 2px); }
.post-content-wrap th,.post-content-wrap td { padding:12px 16px; border:1px solid var(--border2); text-align:left; color:var(--post-text); }
.post-content-wrap th { background:var(--surface2); font-weight:700; color:var(--post-heading); font-family:var(--font-body); text-transform:uppercase; font-size:12px; letter-spacing:0.04em; }

/* ═══════════════════════════════════════════
   SINGLE POST SIDEBAR (v2.2)
   ═══════════════════════════════════════════ */
.single-sidebar { display:flex; flex-direction:column; gap:24px; position:sticky; top:88px; }

/* Category List in sidebar */
.cat-list { list-style:none; display:flex; flex-direction:column; gap:2px; padding:0; margin:0; }
.cat-list-item a {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:8px;
  color:var(--text-2);
  text-decoration:none;
  transition:all 0.15s;
  border:1px solid transparent;
}
.cat-list-item a:hover { background:var(--surface2); color:var(--text); border-color:var(--border2); }
.cat-list-item.active a { background:var(--surface2); color:var(--accent); border-color:rgba(232,86,10,0.3); }
.cat-list-icon { font-size:18px; flex-shrink:0; width:24px; text-align:center; }
.cat-list-name {
  flex:1;
  font-size:13px;
  font-weight:600;
  letter-spacing:0.02em;
  text-transform:uppercase;
  font-family:var(--font-body);
}
.cat-list-count {
  font-size:11px;
  color:var(--text-3);
  background:var(--surface2);
  padding:2px 8px;
  border-radius:100px;
  font-weight:600;
  min-width:28px;
  text-align:center;
}
.cat-list-item.active .cat-list-count { background:rgba(232,86,10,0.15); color:var(--accent-lt); }
.cat-list-item a:hover .cat-list-count { background:var(--surface3); }

/* Recent Posts with thumbnail */
.recent-post-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:14px; }
.recent-post-item {}
.recent-post-link { display:flex; gap:12px; align-items:flex-start; text-decoration:none; transition:all 0.15s; }
.recent-post-thumb {
  width:72px;
  height:72px;
  border-radius:8px;
  overflow:hidden;
  flex-shrink:0;
  background:var(--surface2);
  border:1px solid var(--border);
}
.recent-post-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.3s; }
.recent-post-link:hover .recent-post-thumb img { transform:scale(1.08); }
.recent-post-thumb-placeholder {
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  color:var(--text-3);
}
.recent-post-info { flex:1; min-width:0; }
.recent-post-title {
  font-family:var(--font-serif);
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  color:var(--text);
  margin:0 0 4px;
  transition:color 0.15s;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.recent-post-link:hover .recent-post-title { color:var(--accent-lt); }
.recent-post-date { font-size:11px; color:var(--text-3); font-weight:500; }

/* Table of Contents (optional) */
.toc-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.toc-list li a {
  display:block;
  padding:8px 12px;
  color:var(--text-2);
  font-size:13px;
  line-height:1.5;
  border-left:2px solid var(--border);
  transition:all 0.15s;
  font-family:var(--font-body);
}
.toc-list li a:hover { color:var(--accent-lt); border-left-color:var(--accent); background:var(--surface2); }
.toc-list li.toc-active a { color:var(--accent); border-left-color:var(--accent); background:var(--surface2); }

/* Post Tags */
.post-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:40px; padding-top:24px; border-top:1px solid var(--border); }
.post-tags a { font-size:11px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; padding:5px 12px; border-radius:6px; background:var(--surface); border:1px solid var(--border2); color:var(--text-2); text-decoration:none; transition:all 0.15s; }
.post-tags a:hover { border-color:var(--accent); color:var(--accent-lt); }

/* Author Box */
.author-box { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px; margin-top:40px; display:flex; gap:18px; align-items:flex-start; }
.author-avatar { width:60px; height:60px; border-radius:50%; background:var(--surface2); flex-shrink:0; overflow:hidden; }
.author-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.author-name { font-family:var(--font-head); font-size:16px; font-weight:700; text-transform:uppercase; color:var(--text); margin-bottom:4px; }
.author-bio { font-size:13px; color:var(--text-3); line-height:1.6; }

/* Related Posts */
.related-posts { margin-top:56px; padding-top:40px; border-top:1px solid var(--border); }
.related-posts h3 { font-family:var(--font-head); font-size:22px; font-weight:700; text-transform:uppercase; color:var(--text); margin-bottom:24px; }
.related-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }

/* ─── ARCHIVE / SEARCH ────────────────── */
.archive-header { background:var(--surface); border-bottom:1px solid var(--border); padding:48px 24px; text-align:center; }
.archive-header h1 { font-family:var(--font-head); font-size:36px; font-weight:700; text-transform:uppercase; color:var(--text); margin-bottom:8px; }
.archive-header p { color:var(--text-3); font-size:15px; }

/* ─── COMMENTS ────────────────────────── */
.comments-area { margin-top:48px; padding-top:40px; border-top:1px solid var(--border); }
.comments-title { font-family:var(--font-head); font-size:22px; font-weight:700; text-transform:uppercase; color:var(--text); margin-bottom:24px; }
.comment-list { list-style:none; padding:0; }
.comment-body { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; margin-bottom:16px; }
.comment-author { font-weight:600; color:var(--text); margin-bottom:4px; }
.comment-meta { font-size:12px; color:var(--text-3); margin-bottom:12px; }
.comment-content { font-size:14px; color:var(--text-2); line-height:1.7; }
.comment-content p { margin-bottom:8px; }
.comment-reply-link { font-size:12px; font-weight:600; color:var(--accent); text-transform:uppercase; letter-spacing:0.04em; }
.comment-form label { display:block; font-size:13px; font-weight:600; color:var(--text); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.04em; }
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form input[type="url"],.comment-form textarea { width:100%; background:var(--surface); border:1px solid var(--border2); border-radius:8px; padding:12px 14px; font-family:var(--font-body); font-size:14px; color:var(--text); outline:none; margin-bottom:16px; transition:border-color 0.15s; }
.comment-form input:focus,.comment-form textarea:focus { border-color:var(--accent); }
.comment-form .submit { background:var(--accent); border:none; border-radius:8px; padding:12px 28px; font-family:var(--font-body); font-size:13px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:#fff; cursor:pointer; transition:background 0.15s; }
.comment-form .submit:hover { background:var(--accent-lt); }

/* ─── 404 ─────────────────────────────── */
.error-404 { text-align:center; padding:120px 24px; }
.error-404 h1 { font-family:var(--font-head); font-size:120px; font-weight:700; color:var(--accent); line-height:1; margin-bottom:16px; }
.error-404 p { color:var(--text-2); font-size:17px; margin-bottom:32px; }

/* ─── SEARCH FORM ─────────────────────── */
.search-form { display:flex; background:var(--surface2); border:1px solid var(--border2); border-radius:12px; overflow:hidden; }
.search-form .search-field { flex:1; background:none; border:none; outline:none; padding:14px 16px; font-family:var(--font-body); font-size:15px; color:var(--text); }
.search-form .search-field::placeholder { color:var(--text-3); }
.search-form .search-submit { background:var(--accent); border:none; color:#fff; font-family:var(--font-body); font-size:13px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; padding:0 24px; cursor:pointer; transition:background 0.15s; }
.search-form .search-submit:hover { background:var(--accent-lt); }

/* ─── WP DEFAULTS ─────────────────────── */
.alignleft { float:left; margin:0 20px 20px 0; }
.alignright { float:right; margin:0 0 20px 20px; }
.aligncenter { display:block; margin:0 auto 20px; }
.wp-caption { max-width:100%; }
.wp-caption-text { font-size:12px; color:var(--text-3); text-align:center; margin-top:8px; }
.screen-reader-text { clip:rect(1px,1px,1px,1px); position:absolute !important; height:1px; width:1px; overflow:hidden; word-wrap:normal !important; }
.sticky .card { border-color:var(--accent); }

/* ─── RESPONSIVE ──────────────────────── */
@media (max-width:1024px) {
  .articles-grid { grid-template-columns:1fr 1fr; }
  .articles-grid .card-featured { grid-column:1/3; }
  .card-featured { flex-direction:column; }
  .card-featured .card-img { width:100%; aspect-ratio:16/9; }
  .main-with-sidebar { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .related-grid { grid-template-columns:1fr 1fr; }
  .single-grid { grid-template-columns:1fr; gap:32px; }
  .single-sidebar { position:static; }
  .post-featured-image img { max-height:380px; }
}
@media (max-width:768px) {
  .header-inner { gap:12px; }
  .main-navigation ul { display:none; }
  .main-navigation.toggled ul { display:flex; flex-direction:column; position:absolute; top:68px; left:0; right:0; background:var(--surface); border-bottom:1px solid var(--border); padding:16px 24px; z-index:99; }
  .menu-toggle { display:block; }
  .hero h1 { font-size:48px; }
  .hero-stats { gap:24px; flex-wrap:wrap; }
  .articles-grid { grid-template-columns:1fr; }
  .articles-grid .card-featured { grid-column:1; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .trust-inner { gap:32px; }
  .related-grid { grid-template-columns:1fr; }
  .author-box { flex-direction:column; align-items:center; text-align:center; }
  .site-logo .logo-text { font-size:18px; }
  .header-search { min-width:120px; }
  .single-post-header { padding:36px 20px 28px; }
  .single-post-header h1 { font-size:24px; }
  .post-featured-image img { max-height:280px; }
  .post-content-wrap img { max-height:280px; }
  .recent-post-thumb { width:60px; height:60px; }
  .recent-post-title { font-size:13px; -webkit-line-clamp:2; }
}
@media (max-width:480px) {
  .header-search { display:none; }
  .site-logo .logo-text { display:none; }
}
