/*
Theme Name: Pajero 4x4 Lifestyle
Theme URI: https://mitsubishipajero4x4life.com
Author: Maple Leaf Agency
Author URI: https://mitsubishipajero4x4life.com
Description: A bold, industrial-editorial WordPress BLOCK theme (Full Site Editing) for the Mitsubishi Pajero 4x4 Lifestyle platform — covering all Pajero generations (Gen 1-4, SWB & LWB) plus the Pajero Sport. Header, footer and menus are fully editable in the Site Editor. Self-hosted fonts, 1320px layout / 820px reading column, Core Web Vitals optimised, RankMath / schema friendly.
Version: 3.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pajero4x4
Tags: automotive, blog, full-site-editing, block-patterns, custom-colors, custom-menu, custom-logo, featured-images, block-styles, wide-blocks, editor-style, threaded-comments, translation-ready
*/

/* ==========================================================================
   DESIGN TOKENS  (mirrors theme.json; available to component CSS + patterns)
   ========================================================================== */
:root {
  --red:      #C0392B;
  --red-dk:   #962d22;
  --red-lt:   #e74c3c;
  --dark:     #0f0f0f;
  --dark2:    #1a1a1a;
  --dark3:    #242424;
  --dark4:    #2e2e2e;
  --offwht:   #f5f2ed;
  --sand:     #e8e0d0;
  --amber:    #d4821a;
  --green:    #27AE60;
  --blue:     #2980b9;
  --purple:   #8e44ad;
  --white:    #ffffff;
  --muted:    #8a8a8a;
  --border:   rgba(255,255,255,0.08);

  --gen1: #27AE60;
  --gen2: #2980b9;
  --gen3: #d4821a;
  --gen4: #8e44ad;
  --gens: #C0392B;

  --fh: 'Oswald', sans-serif;
  --fb: 'Lora', serif;
  --fm: 'IBM Plex Mono', monospace;

  /* Layout: ≥1280px requirement → 1320 wide containers, 820 reading column */
  --wrap: 1320px;
  --wrap-wide: 1320px;
  --content: 820px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--offwht);
  font-family: var(--fb);
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-lt); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--fh); font-weight: 600; letter-spacing: .04em;
  line-height: 1.15; color: var(--white); margin: 0 0 .5em;
}
p { margin: 0 0 1.2em; }
strong { color: rgba(255,255,255,.95); }

/* Layout helpers reused by patterns/templates */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
.wrap-wide { max-width: var(--wrap-wide); margin-inline: auto; padding-inline: 32px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 8px; top: 8px; z-index: 100000; background: var(--red); color: #fff;
  padding: 12px 20px; font-family: var(--fh); letter-spacing: .1em; text-transform: uppercase;
}

/* ==========================================================================
   HEADER / NAV  (FSE: rendered from parts/header.html via core blocks)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(15,15,15,.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wp-block-group { gap: 0; }
.brand-mark {
  width: 38px; height: 38px; background: var(--red);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-size: 15px; font-weight: 700; color: #fff;
  text-decoration: none; flex-shrink: 0;
}
.brand-title { font-family: var(--fh); font-size: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; line-height: 1.1; }
.brand-tagline { display: block; font-size: 9px; letter-spacing: .2em; color: var(--red); font-family: var(--fm); }
.custom-logo, .wp-block-site-logo img { max-height: 42px; width: auto; }

/* Navigation block styling */
.site-header .wp-block-navigation {
  font-family: var(--fh); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.site-header .wp-block-navigation a { color: rgba(255,255,255,.65); }
.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation .current-menu-item > a { color: #fff; }
.site-header .wp-block-navigation .wp-block-navigation-item.is-cta a,
.site-header .wp-block-navigation .menu-cta a {
  background: var(--red); color: #fff; padding: 9px 18px; font-weight: 600;
}
.site-header .wp-block-navigation .is-cta a:hover { background: var(--red-dk); }
.wp-block-navigation__submenu-container {
  background: var(--dark2) !important; border: 1px solid var(--border);
}

/* ==========================================================================
   BUTTONS (theme helpers + WP core button blocks)
   ========================================================================== */
.btn, .wp-block-button__link {
  display: inline-block; padding: 14px 28px; font-family: var(--fh); font-size: 13px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .15s, border-color .2s, color .2s; border-radius: 0;
}
.btn-primary, .wp-block-button__link { background: var(--red); color: #fff; }
.btn-primary:hover, .wp-block-button__link:hover { background: var(--red-dk); color: #fff; transform: translateY(-1px); }
.btn-ghost, .is-style-outline .wp-block-button__link {
  background: transparent; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.25);
}
.btn-ghost:hover, .is-style-outline .wp-block-button__link:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: #fff; }

/* ==========================================================================
   SECTIONS + HERO (pattern markup)
   ========================================================================== */
.section { padding: 72px 0; }
.section-alt { background: var(--dark2); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }
.section-eyebrow {
  font-family: var(--fm); font-size: 10px; letter-spacing: .25em; color: var(--red);
  text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--red); }
.section-title { font-family: var(--fh); font-size: 34px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.05; }
.view-all { font-family: var(--fm); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid rgba(192,57,43,.3); padding-bottom: 2px; white-space: nowrap; }
.view-all::after { content: ' →'; }

.page-hero { position: relative; overflow: hidden; min-height: 56vh; display: flex; align-items: center; padding: 80px 0; }
.page-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 40%, #3d2a14 0%, #1e1208 40%, #0f0f0f 80%); z-index: 0; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(15,15,15,.97) 0%, rgba(15,15,15,.82) 45%, rgba(15,15,15,.4) 100%); z-index: 1; }
.page-hero .wrap { position: relative; z-index: 2; }
.hero-eyebrow { font-family: var(--fm); font-size: 11px; letter-spacing: .25em; color: var(--red); text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ''; width: 30px; height: 2px; background: var(--red); }
.hero-title { font-family: var(--fh); font-size: clamp(44px, 5.5vw, 76px); font-weight: 700; line-height: .95; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 16px; color: #fff; }
.hero-title .accent { color: var(--red); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.68); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Generation band */
.gen-band { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gen-cell { padding: 26px 22px; border-right: 1px solid var(--border); display: block; position: relative; overflow: hidden; transition: background .2s; }
.gen-cell:last-child { border-right: none; }
.gen-cell:hover { background: rgba(192,57,43,.06); }
.gen-cell::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.gen-cell[data-gen="gen1"]::after { background: var(--gen1); }
.gen-cell[data-gen="gen2"]::after { background: var(--gen2); }
.gen-cell[data-gen="gen3"]::after { background: var(--gen3); }
.gen-cell[data-gen="gen4"]::after { background: var(--gen4); }
.gen-cell[data-gen="sport"]::after { background: var(--gens); }
.gen-cell:hover::after { transform: scaleX(1); }
.gen-cell-tag { font-family: var(--fm); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
.gen-cell[data-gen="gen1"] .gen-cell-tag { color: var(--gen1); }
.gen-cell[data-gen="gen2"] .gen-cell-tag { color: var(--gen2); }
.gen-cell[data-gen="gen3"] .gen-cell-tag { color: var(--gen3); }
.gen-cell[data-gen="gen4"] .gen-cell-tag { color: var(--gen4); }
.gen-cell[data-gen="sport"] .gen-cell-tag { color: var(--gens); }
.gen-cell-name { font-family: var(--fh); font-size: 19px; font-weight: 600; color: #fff; letter-spacing: .05em; margin-bottom: 2px; }
.gen-cell-years { font-family: var(--fm); font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.gen-cell-desc { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.5; }

/* ==========================================================================
   POST / ARTICLE CARDS (query loop + patterns)
   ========================================================================== */
.posts-grid, .wp-block-query .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px; }
.post-card { position: relative; overflow: hidden; display: block; background: var(--dark3); }
.post-card-img { height: 200px; overflow: hidden; background: var(--dark4); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 20px 22px; }
.post-card-tags { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.post-tag { font-family: var(--fm); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; padding: 3px 8px; background: var(--red); color: #fff; }
.post-tag[data-gen="gen1"] { background: var(--gen1); }
.post-tag[data-gen="gen2"] { background: var(--gen2); }
.post-tag[data-gen="gen3"] { background: var(--gen3); }
.post-tag[data-gen="gen4"] { background: var(--gen4); }
.post-tag[data-gen="sport"] { background: var(--gens); }
.post-card-title { font-family: var(--fh); font-size: 16px; font-weight: 600; letter-spacing: .03em; color: #fff; text-transform: uppercase; line-height: 1.2; margin-bottom: 8px; transition: color .2s; }
.post-card:hover .post-card-title { color: var(--red); }
.post-card-meta { display: flex; gap: 12px; }
.post-card-meta span { font-family: var(--fm); font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.post-card-excerpt { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; margin-top: 8px; }

/* ==========================================================================
   SINGLE POST / PAGE  — the editable content canvas
   ========================================================================== */
.single-hero { position: relative; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; padding: 60px 0; }
.single-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, #2a1a0a 0%, #120c04 50%, #0a0808 100%); z-index: 0; }
.single-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,8,8,.95) 0%, rgba(10,8,8,.7) 60%, rgba(10,8,8,.2) 100%); z-index: 1; }
.single-hero .wrap { position: relative; z-index: 2; }
.breadcrumb, .rank-math-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-family: var(--fm); font-size: 10px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; flex-wrap: wrap; }
.breadcrumb a, .rank-math-breadcrumb a { color: var(--red); }
.single-title { font-family: var(--fh); font-size: clamp(32px, 5vw, 54px); font-weight: 700; line-height: .98; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 16px; color: #fff; }
.single-meta { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.single-meta span { font-family: var(--fm); font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.single-meta strong { color: rgba(255,255,255,.7); }

/* The reading column — long-form text stays legible at ~820px even though
   layout/section containers run to 1320px (meets the ≥1280px width brief). */
.content-area { padding: 56px 0 80px; }

/* ==========================================================================
   ENTRY CONTENT TYPOGRAPHY — styles native Gutenberg blocks
   ========================================================================== */
.entry-content, .is-root-container.wp-block-post-content { font-size: 18px; line-height: 1.8; }
.entry-content p, .wp-block-post-content p { margin-bottom: 20px; color: rgba(255,255,255,.72); }

.entry-content h2, .wp-block-post-content h2 { font-size: 30px; margin: 48px 0 18px; padding-top: 36px; border-top: 1px solid var(--border); position: relative; }
.entry-content h2::before, .wp-block-post-content h2::before { content: ''; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--red); }
.entry-content h3, .wp-block-post-content h3 { font-size: 21px; margin: 32px 0 12px; color: rgba(255,255,255,.92); }
.entry-content h4, .wp-block-post-content h4 { font-size: 16px; margin: 24px 0 10px; color: var(--red); }
.entry-content a, .wp-block-post-content a { color: var(--red); border-bottom: 1px solid rgba(192,57,43,.35); }
.entry-content a:hover, .wp-block-post-content a:hover { border-color: var(--red); color: var(--red-lt); }
.entry-content ul, .entry-content ol, .wp-block-post-content ul, .wp-block-post-content ol { margin: 0 0 22px; padding-left: 26px; color: rgba(255,255,255,.72); }
.entry-content li, .wp-block-post-content li { margin-bottom: 9px; }
.entry-content li::marker, .wp-block-post-content li::marker { color: var(--red); }

.wp-block-quote, blockquote {
  border-left: 4px solid var(--red); padding: 18px 28px; margin: 28px 0;
  background: rgba(192,57,43,.06); font-style: italic; font-size: 20px; color: rgba(255,255,255,.8);
}
.wp-block-quote cite, cite { font-family: var(--fm); font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: .08em; }

figure, .wp-block-image { margin: 28px 0; }
figcaption, .wp-block-image figcaption { font-family: var(--fm); font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; letter-spacing: .05em; }

/* Tables — critical for all the spec/comparison content */
.wp-block-table table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14.5px; font-family: var(--fb); }
.wp-block-table { margin: 28px 0; overflow-x: auto; }
.wp-block-table thead tr, .wp-block-table tr:first-child { background: var(--red); }
.wp-block-table th { padding: 12px 16px; font-family: var(--fh); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #fff; text-align: left; font-weight: 600; }
.wp-block-table td { padding: 11px 16px; color: rgba(255,255,255,.7); border-bottom: 1px solid rgba(255,255,255,.07); }
.wp-block-table tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: rgba(255,255,255,.025); }

.wp-block-columns { margin: 28px 0; }
.wp-block-column.has-background, .wp-block-group.has-background { padding: 24px; }
.wp-block-separator { border: none; border-top: 1px solid var(--border); margin: 40px auto; }
.wp-block-pullquote { border-top: 3px solid var(--red); border-bottom: 3px solid var(--red); padding: 28px 0; }
.wp-block-pullquote blockquote { border: none; background: none; }

/* Verdict / callout helper (group class "verdict-box") */
.verdict-box { background: var(--dark3); border-left: 4px solid var(--red); padding: 28px 32px; margin: 32px 0; }
.verdict-box .verdict-score { font-family: var(--fh); font-size: 44px; font-weight: 700; color: var(--red); line-height: 1; }

/* FAQ accordion (FAQPage schema markup uses <details>) */
.faq-item { background: var(--dark3); margin-bottom: 2px; border-left: 3px solid var(--red); }
.faq-item summary { cursor: pointer; padding: 18px 24px; font-family: var(--fh); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: #fff; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--red); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-answer { padding: 0 24px 20px; color: rgba(255,255,255,.7); }

.wp-block-code { font-family: var(--fm); background: rgba(255,255,255,.05); padding: 2px 6px; font-size: 14px; }

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.sidebar-sticky { position: sticky; top: 88px; }
.widget { background: var(--dark3); margin-bottom: 2px; overflow: hidden; }
.widget-title { background: var(--red); padding: 12px 18px; font-family: var(--fh); font-size: 11px; font-weight: 600; letter-spacing: .15em; color: #fff; text-transform: uppercase; margin: 0; }
.widget ul { list-style: none; margin: 0; padding: 16px 18px; }
.widget li { border-bottom: 1px solid rgba(255,255,255,.05); }
.widget li:last-child { border-bottom: none; }
.widget li a { display: block; padding: 10px 0; font-family: var(--fb); font-size: 14px; color: rgba(255,255,255,.55); }
.widget li a:hover { color: #fff; }

/* ==========================================================================
   GENERATION BADGE BAR
   ========================================================================== */
.gen-badge-bar { padding: 11px 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; max-width: var(--wrap-wide); margin: 0 auto; }
.gen-badge-bar.gen1 { background: var(--gen1); }
.gen-badge-bar.gen2 { background: var(--gen2); }
.gen-badge-bar.gen3 { background: var(--gen3); }
.gen-badge-bar.gen4 { background: var(--gen4); }
.gen-badge-bar.sport { background: var(--gens); }
.gbb-item { font-family: var(--fh); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: rgba(255,255,255,.9); text-transform: uppercase; }
.gbb-sep { color: rgba(255,255,255,.35); }

/* ==========================================================================
   HERITAGE / CTA / NEWSLETTER
   ========================================================================== */
.heritage-strip { padding: 48px 0; background: rgba(192,57,43,.06); border-top: 3px solid var(--red); border-bottom: 1px solid var(--border); }
.heritage-strip .wrap { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.heritage-num { font-family: var(--fh); font-size: 100px; font-weight: 700; color: var(--red); line-height: 1; }
.heritage-label { font-family: var(--fm); font-size: 9px; letter-spacing: .28em; color: var(--red); text-transform: uppercase; margin-bottom: 8px; }
.heritage-text { font-size: 17px; color: rgba(255,255,255,.7); line-height: 1.65; }

.cta-band { padding: 80px 0; background: var(--red); position: relative; overflow: hidden; }
.cta-band::before { content: 'PAJERO'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%) rotate(90deg); font-family: var(--fh); font-size: 200px; font-weight: 700; letter-spacing: -5px; color: rgba(255,255,255,.05); pointer-events: none; white-space: nowrap; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-heading { font-family: var(--fh); font-size: 48px; font-weight: 700; color: #fff; text-transform: uppercase; line-height: .95; letter-spacing: .03em; margin-bottom: 16px; }
.cta-sub { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 28px; max-width: 600px; }

.newsletter-bar { background: var(--dark3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.newsletter-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.newsletter-text strong { font-family: var(--fh); font-size: 20px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; display: block; }
.newsletter-text span { font-size: 13px; color: var(--muted); }
.newsletter-form { display: flex; }
.newsletter-form input[type="email"] { background: var(--dark); border: 1px solid rgba(255,255,255,.12); border-right: none; padding: 12px 18px; font-family: var(--fb); font-size: 13px; color: #fff; width: 260px; outline: none; }
.newsletter-form button { background: var(--red); border: none; padding: 12px 20px; font-family: var(--fh); font-size: 11px; font-weight: 600; letter-spacing: .15em; color: #fff; text-transform: uppercase; cursor: pointer; }

/* ==========================================================================
   FOOTER (FSE: parts/footer.html — fully editable)
   ========================================================================== */
.site-footer { background: #080808; border-top: 1px solid var(--border); padding: 60px 0 32px; }
.footer-col-title { font-family: var(--fh); font-size: 12px; font-weight: 600; letter-spacing: .15em; color: rgba(255,255,255,.5); text-transform: uppercase; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.7; margin-top: 14px; }
.site-footer .wp-block-navigation { flex-direction: column; align-items: flex-start; gap: 8px; font-family: var(--fb); font-size: 13px; }
.site-footer .wp-block-navigation a { color: rgba(255,255,255,.4); }
.site-footer .wp-block-navigation a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.footer-copy { font-family: var(--fm); font-size: 10px; color: rgba(255,255,255,.2); letter-spacing: .08em; }

/* ==========================================================================
   PAGINATION + COMMENTS
   ========================================================================== */
.wp-block-query-pagination { justify-content: center; margin: 48px auto; gap: 8px; }
.wp-block-query-pagination .page-numbers, .wp-block-query-pagination a, .wp-block-query-pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
  background: var(--dark3); color: rgba(255,255,255,.6); font-family: var(--fh); font-size: 13px; border: 1px solid var(--border);
}
.wp-block-query-pagination .current { background: var(--red); color: #fff; border-color: var(--red); }
.comment-body { background: var(--dark3); padding: 20px 24px; margin-bottom: 16px; border-left: 3px solid var(--red); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; background: var(--dark); border: 1px solid var(--border); color: #fff; padding: 12px 16px; font-family: var(--fb); font-size: 14px; margin-bottom: 16px;
}

/* ==========================================================================
   UTILITIES + MOTION (respects reduced motion for accessibility/INP)
   ========================================================================== */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.06); z-index: 199; }
.scroll-progress-bar { height: 100%; background: var(--red); width: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE  —  1024 / 768 / 480 breakpoints (per spec)
   ========================================================================== */
@media (max-width: 1024px) {
  .gen-band { grid-template-columns: 1fr 1fr; }
  .gen-cell:nth-child(odd) { border-right: 1px solid var(--border); }
  .gen-cell { border-bottom: 1px solid var(--border); }
  .section-title { font-size: 30px; }
  .cta-heading { font-size: 40px; }
  .heritage-num { font-size: 80px; }
}
@media (max-width: 768px) {
  .wrap, .wrap-wide { padding-inline: 20px; }
  .section { padding: 56px 0; }
  .gen-band { grid-template-columns: 1fr; }
  .gen-cell { border-right: none !important; }
  .posts-grid, .wp-block-query .wp-block-post-template { grid-template-columns: 1fr; }
  .heritage-strip .wrap { grid-template-columns: 1fr; gap: 20px; }
  .heritage-num { font-size: 64px; }
  .cta-heading { font-size: 34px; }
  .newsletter-bar .wrap { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input[type="email"] { flex: 1; width: auto; }
  .entry-content h2, .wp-block-post-content h2 { font-size: 26px; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap, .wrap-wide { padding-inline: 16px; }
  .section { padding: 44px 0; }
  .hero-title { font-size: clamp(34px, 11vw, 46px); }
  .section-title { font-size: 25px; }
  .cta-heading { font-size: 28px; }
  .cta-band::before { display: none; }
  .heritage-num { font-size: 56px; }
  .single-title { font-size: clamp(28px, 9vw, 36px); }
  .wp-block-table { font-size: 13px; }
  .gen-badge-bar { padding: 10px 16px; gap: 10px; }
}
