/*
Theme Name: Station IA
Theme URI: https://example.com/station-ia
Author: Station IA
Description: Thème magazine éditorial pour Station IA. Style Back Market × Men's Journal — header avec barre de recherche, hero banner lime, grilles d'articles, sections catégories et footer sombre.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: station-ia
Tags: magazine, news, custom-header, custom-menu, featured-images, two-columns, right-sidebar, full-width-template
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --lime:        #E7F78E;
  --lime-dark:   #c4d840;
  --lime-deeper: #d4ec6a;
  --green-dark:  #1a2200;
  --green-mid:   #3a4e00;
  --green-text:  #4a6000;
  --green-muted: #5a7000;
  --green-accent:#6a8000;
  --green-light: #8ab800;
  --green-pale:  #f0f5c0;
  --white:       #ffffff;
  --off-white:   #fafafa;
  --gray-bg:     #f4f4f4;
  --gray-border: #e0e0e0;
  --gray-light:  #aaaaaa;
  --gray-mid:    #666666;
  --black:       #111111;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-cond:  'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;

  --max-w: 1240px;
  --gap:   20px;
  --radius: 8px;
}

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

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600&display=swap');

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.site-topbar {
  background: var(--green-dark);
  color: var(--green-light);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 5px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.topbar-inner a { color: var(--lime); text-decoration: underline; }
.topbar-inner a:hover { color: var(--white); }
.topbar-right { display: flex; gap: 16px; align-items: center; }

/* ============================================================
   HEADER — Back Market style
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: -.3px;
  white-space: nowrap;
}
.site-logo em { font-style: italic; color: var(--green-muted); }
.site-logo a { color: inherit; }
.site-logo a:hover { color: var(--green-dark); }

/* Search */
.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--gray-bg);
  border: 1.5px solid var(--gray-border);
  border-radius: 6px;
  padding: 0 14px;
  height: 42px;
  gap: 10px;
  transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--green-light); }
.header-search input[type="search"] {
  border: none;
  background: none;
  font-size: 14px;
  color: var(--black);
  flex: 1;
  outline: none;
  font-family: var(--font-sans);
}
.header-search input::placeholder { color: var(--gray-light); }
.search-icon { color: var(--gray-mid); font-size: 16px; flex-shrink: 0; display: flex; align-items: center; }
.search-btn {
  background: var(--lime);
  color: var(--green-dark);
  border: none;
  border-radius: 4px;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px;
  transition: background .2s;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--lime-dark); }

/* Header actions */
.header-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border: none;
  background: none;
  border-radius: 6px;
  transition: background .15s;
  font-family: var(--font-cond);
}
.action-btn:hover { background: var(--gray-bg); }
.action-btn svg, .action-btn .icon { font-size: 18px; line-height: 1; }
.action-label { font-size: 10px; color: var(--gray-mid); letter-spacing: .03em; }

.btn-subscribe {
  background: var(--green-dark);
  color: var(--lime);
  border: none;
  border-radius: 4px;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 18px;
  transition: background .2s;
}
.btn-subscribe:hover { background: var(--green-mid); }
.hamburger {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--gray-mid);
  padding: 6px;
  display: none;
}

/* ============================================================
   MAIN NAV
   ============================================================ */
.main-nav {
  border-top: 1px solid #f0f0f0;
  background: var(--white);
}
.main-nav ul {
  display: flex;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav ul li a {
  display: block;
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #333;
  padding: 11px 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  background: var(--lime);
  padding: 40px 20px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--green-dark);
  color: var(--lime);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-title em { font-style: italic; color: var(--green-muted); }
.hero-excerpt {
  font-size: 16px;
  color: var(--green-mid);
  line-height: 1.6;
  margin-bottom: 24px;
}
.hero-meta {
  font-family: var(--font-cond);
  font-size: 11px;
  color: var(--green-accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
}
.btn-hero {
  display: inline-block;
  background: var(--green-dark);
  color: var(--lime);
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  transition: background .2s;
}
.btn-hero:hover { background: var(--green-mid); color: var(--lime); }

.hero-image-wrap {
  background: var(--lime-dark);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-accent);
  opacity: .6;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 12px 20px;
}
.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 0;
  justify-content: space-around;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #444;
  font-weight: 500;
}
.trust-icon { font-size: 16px; }

/* ============================================================
   SECTION BASE
   ============================================================ */
.site-section { padding: 32px 0; }
.site-section.bg-offwhite { background: var(--off-white); }
.site-section.bg-lime { background: var(--lime); }
.site-section.bg-dark { background: var(--green-dark); }
.site-section + .site-section { border-top: 6px solid #f0f0f0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--black);
}
.bg-dark .section-title { color: var(--lime); }
.bg-lime .section-title { color: var(--green-dark); }
.section-more {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-accent);
  border-bottom: 1px solid var(--green-accent);
  transition: color .15s, border-color .15s;
}
.section-more:hover { color: var(--green-dark); border-color: var(--green-dark); }
.bg-dark .section-more { color: var(--green-light); border-color: var(--green-light); }
.bg-lime .section-more { color: var(--green-dark); border-color: var(--green-dark); }

/* ============================================================
   CATEGORY TILES
   ============================================================ */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.cat-tile {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
  display: block;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.cat-tile-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.cat-tile-icon.c1 { background: var(--lime); }
.cat-tile-icon.c2 { background: #d4f0e0; }
.cat-tile-icon.c3 { background: #f0e4d4; }
.cat-tile-icon.c4 { background: #e4d4f0; }
.cat-tile-icon.c5 { background: #d4e8f0; }
.cat-tile-name {
  background: var(--white);
  padding: 8px;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #222;
  text-align: center;
}

/* ============================================================
   ARTICLE CARD
   ============================================================ */
.articles-grid { display: grid; gap: var(--gap); }
.articles-grid.col-4 { grid-template-columns: repeat(4, 1fr); }
.articles-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
.articles-grid.col-2 { grid-template-columns: repeat(2, 1fr); }

.article-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.article-card.on-lime { background: var(--lime-deeper); border-color: var(--lime-dark); }

.card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.article-card:hover .card-img img { transform: scale(1.04); }
.card-img.lime-bg { background: var(--lime); color: var(--green-accent); }
.card-img.dark-bg { background: #2e3e00; color: var(--green-light); }

.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 6px;
}
.on-lime .card-cat { color: var(--green-mid); }
.card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  flex: 1;
}
.on-lime .card-title { color: var(--green-dark); }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--green-accent); }
.card-meta {
  font-family: var(--font-cond);
  font-size: 11px;
  color: var(--gray-light);
  margin-top: 10px;
  letter-spacing: .04em;
  display: flex;
  gap: 10px;
}
.on-lime .card-meta { color: var(--green-muted); }

/* ============================================================
   FEATURED / DOSSIERS LAYOUT
   ============================================================ */
.featured-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.feat-main {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s;
}
.feat-main:hover { box-shadow: 0 4px 20px rgba(0,0,0,.09); }
.feat-main-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-accent);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.feat-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feat-main:hover .feat-main-img img { transform: scale(1.03); }
.feat-main-body { padding: 20px; flex: 1; }
.feat-main-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 10px;
}
.feat-main-title a:hover { color: var(--green-accent); }
.feat-main-exc { font-size: 14px; color: var(--gray-mid); line-height: 1.6; }

.feat-side { display: flex; flex-direction: column; gap: 12px; }
.feat-sm {
  display: flex;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s;
}
.feat-sm:hover { box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.feat-sm-img {
  width: 90px;
  flex-shrink: 0;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
  font-family: var(--font-cond);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.feat-sm-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-sm-body { padding: 12px; display: flex; flex-direction: column; justify-content: center; }
.feat-sm-cat {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 4px;
}
.feat-sm-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
}
.feat-sm-title a:hover { color: var(--green-accent); }

/* ============================================================
   PROMO BAND
   ============================================================ */
.promo-band {
  background: var(--green-dark);
  color: var(--lime);
  padding: 32px 0;
}
.promo-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.promo-band h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 6px;
}
.promo-band p { font-size: 14px; color: var(--green-light); }
.btn-promo {
  background: var(--lime);
  color: var(--green-dark);
  border: none;
  border-radius: 4px;
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 28px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
  display: inline-block;
}
.btn-promo:hover { background: var(--lime-dark); color: var(--green-dark); }

/* ============================================================
   NEWSLETTER WIDGET (sidebar)
   ============================================================ */
.newsletter-widget { background: var(--green-dark); padding: 20px; }
.newsletter-widget h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--lime);
  margin-bottom: 8px;
}
.newsletter-widget p { font-size: 12px; color: #4a5e00; margin-bottom: 14px; line-height: 1.5; }
.newsletter-widget input[type="email"] {
  width: 100%;
  padding: 9px 12px;
  background: #0e1600;
  border: 1px solid #2a3800;
  color: var(--lime);
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
  transition: border .2s;
}
.newsletter-widget input:focus { border-color: var(--green-light); }
.newsletter-widget input::placeholder { color: #3a4e00; }
.newsletter-widget button {
  width: 100%;
  background: var(--lime);
  color: var(--green-dark);
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px;
  border: none;
  transition: background .2s;
}
.newsletter-widget button:hover { background: var(--lime-dark); }

/* ============================================================
   PAGE LAYOUT — CONTENT + SIDEBAR
   ============================================================ */
.page-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.main-content { min-width: 0; }
.sidebar-area { position: sticky; top: 80px; }
.sidebar-widget { margin-bottom: 28px; }
.sidebar-widget-title {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--green-dark);
  color: var(--lime);
  padding: 8px 14px;
  margin-bottom: 0;
}
.sidebar-articles { border: 1px solid var(--gray-border); }
.sidebar-article-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-border);
  transition: background .15s;
}
.sidebar-article-item:last-child { border-bottom: none; }
.sidebar-article-item:hover { background: var(--off-white); }
.sidebar-article-item .thumb {
  width: 70px;
  height: 60px;
  flex-shrink: 0;
  background: var(--lime);
  overflow: hidden;
}
.sidebar-article-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-article-item .info .cat-label {
  font-family: var(--font-cond);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 3px;
}
.sidebar-article-item .info .title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
}
.sidebar-article-item .info .title a:hover { color: var(--green-accent); }

/* Ad placeholder */
.ad-slot {
  background: var(--off-white);
  border: 1px dashed var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  min-height: 250px;
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.single-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 28px;
}
.single-cat {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 14px;
}
.single-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 18px;
}
.single-excerpt {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--gray-mid);
  line-height: 1.5;
  margin-bottom: 20px;
}
.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  font-family: var(--font-cond);
  font-size: 11px;
  color: var(--gray-mid);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.single-meta .author a { color: var(--green-accent); font-weight: 600; }
.single-meta .author a:hover { color: var(--green-dark); }

.single-featured-img { margin: 36px auto; max-width: 100%; }
.single-featured-img img { width: 100%; max-height: 560px; object-fit: cover; }
.single-featured-img figcaption {
  font-size: 12px;
  color: var(--gray-light);
  font-style: italic;
  padding: 8px 20px;
}

.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-size: 17px;
  line-height: 1.8;
  color: #222;
}
.entry-content h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 700; margin: 36px 0 16px; }
.entry-content h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; margin: 28px 0 12px; }
.entry-content p { margin-bottom: 22px; }
.entry-content a { color: var(--green-accent); text-decoration: underline; }
.entry-content a:hover { color: var(--green-dark); }
.entry-content ul { list-style: disc; margin: 0 0 22px 26px; }
.entry-content ol { list-style: decimal; margin: 0 0 22px 26px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  border-left: 4px solid var(--lime-dark);
  background: var(--green-pale);
  padding: 18px 24px;
  margin: 28px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--green-mid);
}
.entry-content img { margin: 28px auto; border-radius: 4px; }
.entry-content figure { margin: 28px 0; }
.entry-content figcaption { font-size: 13px; color: var(--gray-light); text-align: center; margin-top: 8px; font-style: italic; }

/* Tags */
.post-tags { max-width: 720px; margin: 0 auto 40px; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--green-pale);
  border: 1px solid var(--lime-dark);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-mid);
  transition: all .2s;
  border-radius: 3px;
}
.post-tag:hover { background: var(--green-dark); color: var(--lime); border-color: var(--green-dark); }

/* ============================================================
   ARCHIVE
   ============================================================ */
.archive-header {
  background: var(--green-dark);
  padding: 48px 20px;
}
.archive-header .container { display: flex; align-items: flex-end; gap: 18px; }
.archive-accent { width: 6px; height: 64px; background: var(--lime); flex-shrink: 0; }
.archive-name {
  font-family: var(--font-cond);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--lime);
  line-height: 1;
}
.archive-desc { font-size: 14px; color: var(--green-text); margin-top: 6px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0;
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-mid);
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  transition: all .2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--green-dark);
  color: var(--lime);
  border-color: var(--green-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-dark);
  color: var(--green-text);
  margin-top: 0;
}
.footer-top { padding: 50px 0 36px; border-bottom: 1px solid #2a3800; }
.footer-grid {
  display: grid;
  grid-template-columns: 200px repeat(4, 1fr);
  gap: 36px;
}
.footer-brand .f-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--lime);
}
.footer-brand .f-logo em { font-style: italic; color: var(--green-light); }
.footer-brand p { font-size: 13px; color: #3a4e00; margin-top: 12px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 32px;
  height: 32px;
  background: #2a3800;
  border: 1px solid #3a4e00;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-text);
  font-size: 14px;
  border-radius: 4px;
  transition: all .2s;
}
.footer-social a:hover { background: var(--lime); color: var(--green-dark); border-color: var(--lime); }

.footer-col h4 {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a3800;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: #3a4e00; transition: color .2s; }
.footer-col ul li a:hover { color: var(--lime); }

.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2a3800;
}
.footer-bottom a { color: #3a4e00; }
.footer-bottom a:hover { color: var(--lime); }
.footer-legal-links { display: flex; gap: 20px; }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9997;
  display: none;
}
.mobile-menu-overlay.open { display: block; }
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 300px; height: 100vh;
  background: var(--green-dark);
  z-index: 9998;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #2a3800;
}
.mobile-menu-header .m-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--lime);
}
.mobile-menu-header .m-logo em { font-style: italic; color: var(--green-light); }
.mobile-close {
  background: none;
  border: none;
  color: #4a6000;
  font-size: 26px;
  cursor: pointer;
}
.mobile-menu nav ul li a {
  display: block;
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8ab800;
  padding: 14px 20px;
  border-bottom: 1px solid #1e2e00;
  transition: color .15s, background .15s;
}
.mobile-menu nav ul li a:hover { color: var(--lime); background: #1e2e00; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--green-dark);
  border: 2px solid var(--lime);
  color: var(--lime);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 900;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--lime); color: var(--green-dark); }

/* ============================================================
   WP ALIGNMENT HELPERS
   ============================================================ */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 16px auto; display: block; }
.wp-caption-text { font-size: 12px; color: var(--gray-light); font-style: italic; margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .cat-tiles { grid-template-columns: repeat(4, 1fr); }
  .articles-grid.col-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-wrap { aspect-ratio: 16/7; }
  .featured-layout { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar-area { position: static; }
  .articles-grid.col-3 { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-search { display: none; }
  .trust-inner { flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .site-topbar { display: none; }
  .articles-grid.col-4,
  .articles-grid.col-3,
  .articles-grid.col-2 { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-inner { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .hero-title { font-size: 28px; }
}
