/*
Theme Name: FuldaGap Fresh
Theme URI: https://fuldagap.net/
Author: FuldaGap Team
Description: Fresh custom WordPress theme for The Fulda Gap — bold editorial design, no frameworks.
Version: 2.0
Text Domain: fuldagap-fresh
*/

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --red:       #c0392b;
  --red-dark:  #96241f;
  --black:     #0d0d0d;
  --off-black: #1a1a1a;
  --white:     #ffffff;
  --grey-100:  #f5f5f5;
  --grey-200:  #e8e8e8;
  --grey-400:  #9a9a9a;
  --max-width: 1140px;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  background-color: #636363;
    background-image:
    linear-gradient(160deg, #242424 0%, #707070 55%, #919191 100%),
    url("/assets/random-noise-128.png");
  background-repeat: no-repeat, repeat;
  background-size: cover, 128px 128px;
  background-attachment: fixed, scroll;
  background-blend-mode: normal, soft-light; /* or try overlay/multiply */
  color: var(--off-black);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.4rem; }

/* ─── Layout helpers ────────────────────────────────────────── */
.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.site-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  padding-block: 2rem;
}

/* ─── Top bar ───────────────────────────────────────────────── */
.top-bar {
  background: var(--black);
  color: var(--grey-400);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0;
}
.top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: var(--grey-400); }
.top-bar a:hover { color: var(--white); }

/* ─── Site header ───────────────────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, #252525 0%, var(--black) 100%);
  padding: 1rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-branding a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.site-title span { color: var(--red); }
.site-description {
  font-size: 0.75rem;
  color: var(--grey-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Site action buttons */
.site-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.search-toggle,
.nav-toggle {
  background: none;
  border: none;
  color: var(--grey-200);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.search-toggle:hover,
.nav-toggle:hover { color: var(--white); }
.nav-toggle {
  flex-direction: column;
  gap: 5px;
  width: 2.2rem;
  height: 2.2rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Expanding search panel */
.header-search-panel {
  background: var(--off-black);
  border-bottom: 2px solid var(--red);
  padding: 0.6rem 0;
}
.header-search-panel .wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-search-panel form {
  display: flex;
  flex: 1;
  gap: 0;
}
.header-search-panel input[type="search"] {
  flex: 1;
  background: #2a2a2a;
  border: 1px solid #444;
  border-right: none;
  color: var(--white);
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}
.header-search-panel input[type="search"]:focus { outline: 1px solid var(--red); }
.header-search-panel button[type="submit"] {
  background: var(--red);
  border: none;
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.header-search-panel button[type="submit"]:hover { background: var(--red-dark); }
.search-close {
  background: none;
  border: none;
  color: var(--grey-400);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.search-close:hover { color: var(--white); }

/* ─── Navigation strip ──────────────────────────────────────── */
.nav-strip {
  background: linear-gradient(180deg, #202020 0%, #161616 100%);
  border-bottom: 3px solid var(--red);
  position: relative; /* anchor for mega-menu absolute panel */
}
.nav-strip .wrap {
  overflow: visible; /* must stay visible so sub-menus can escape the wrap */
}
.nav-strip .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  white-space: nowrap;
}
.nav-strip .nav-list a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-400);
  transition: color 0.15s, background 0.15s;
}
.nav-strip .nav-list a:hover,
.nav-strip .nav-list .current-menu-item > a,
.nav-strip .nav-list .current-menu-ancestor > a {
  color: var(--white);
  background: var(--red);
}
@media (max-width: 760px) {
  .nav-strip { display: none; }
  .nav-strip.nav-open { display: block; }
  .nav-strip .nav-list { flex-direction: column; white-space: normal; }
  .nav-strip .nav-list a { border-bottom: 1px solid #333; padding: 0.75rem 1rem; }

  /* Mobile: sub-menus hidden by default, revealed by .sub-open */
  .nav-strip .nav-list .sub-menu {
    display: none;
    position: static;
    background: #111;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--red);
    min-width: 0;
    width: 100%;
  }
  .nav-strip .nav-list .sub-menu .sub-menu {
    border-left: 3px solid #444;
    margin-left: 0.75rem;
  }
  .nav-strip .nav-list li.sub-open > .sub-menu { display: block; }
  /* Toggle arrow for items with children */
  .nav-strip .nav-list .menu-item-has-children > a::after {
    content: ' \25BE';
    font-size: 0.7em;
    margin-left: 0.3em;
    opacity: 0.7;
  }
  .nav-strip .nav-list .menu-item-has-children.sub-open > a::after {
    content: ' \25B4';
  }
}
@media (min-width: 761px) {
  .nav-toggle { display: none; }
}

/* ─── Nav sub-menus (dropdown) ─────────────────────────────── */

/* All levels: base sub-menu panel */
.nav-strip .nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #191919;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid #333;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  list-style: none;
  padding: 0.35rem 0;
  margin: 0;
  z-index: 200;
  white-space: normal;
}

/* Third-level: position to the right of the parent panel */
.nav-strip .nav-list .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-top: none;
  border-left: 3px solid var(--red);
}

/* Parent items need relative positioning */
.nav-strip .nav-list li {
  position: relative;
}

/* Show on hover (desktop) or when .sub-open toggled (JS) */
.nav-strip .nav-list li:hover > .sub-menu,
.nav-strip .nav-list li.sub-open > .sub-menu {
  display: block;
}

/* Sub-menu links */
.nav-strip .nav-list .sub-menu a {
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--grey-400);
  border-bottom: 1px solid #252525;
  white-space: nowrap;
}
.nav-strip .nav-list .sub-menu li:last-child > a { border-bottom: none; }
.nav-strip .nav-list .sub-menu a:hover,
.nav-strip .nav-list .sub-menu .current-menu-item > a {
  color: var(--white);
  background: var(--red);
}

/* Caret indicator on parent items (desktop) */
@media (min-width: 761px) {
  .nav-strip .nav-list .menu-item-has-children > a::after {
    content: ' \25BE';
    font-size: 0.65em;
    margin-left: 0.25em;
    opacity: 0.65;
    display: inline-block;
  }
  .nav-strip .nav-list .sub-menu .menu-item-has-children > a::after {
    content: ' \25B8'; /* right-pointing for side-flyouts */
  }
}

/* ─── Mega-menu (add CSS class "mega-menu" to the WP menu item) ─── */
/*
 * In WP Admin → Appearance → Menus, expand the "By Topic" item
 * and paste  mega-menu  into the "CSS Classes" field, then Save.
 * The panel then opens full-width below the nav strip.
 */
@media (min-width: 761px) {
  /* The mega item itself must be static so the panel escapes to .nav-strip */
  .nav-strip .nav-list li.mega-menu {
    position: static;
  }

  /* Level-1 mega panel: full strip width */
  .nav-strip .nav-list li.mega-menu > .sub-menu {
    display: none; /* still toggled by hover/sub-open */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 3px solid var(--red);
    background: #191919;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    white-space: normal;
  }
  .nav-strip .nav-list li.mega-menu:hover > .sub-menu,
  .nav-strip .nav-list li.mega-menu.sub-open > .sub-menu {
    display: flex;
  }

  /* Level-2 items become columns */
  .nav-strip .nav-list li.mega-menu > .sub-menu > li {
    flex: 1 1 200px;
    max-width: 280px;
    padding: 0 1rem 0.5rem;
    border-bottom: none;
    position: static;
  }
  /* Column header link (level 2) */
  .nav-strip .nav-list li.mega-menu > .sub-menu > li > a {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 2px solid var(--red);
    padding: 0 0 0.35rem;
    margin-bottom: 0.5rem;
    background: none;
    white-space: normal;
  }
  .nav-strip .nav-list li.mega-menu > .sub-menu > li > a:hover {
    color: var(--red);
    background: none;
  }

  /* Level-3 items: plain list under the column header */
  .nav-strip .nav-list li.mega-menu > .sub-menu > li > .sub-menu {
    display: block; /* always visible inside the mega panel */
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    width: 100%;
  }
  .nav-strip .nav-list li.mega-menu > .sub-menu > li > .sub-menu > li > a {
    display: block;
    padding: 0.3rem 0;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--grey-400);
    border-bottom: 1px solid #2a2a2a;
    background: none;
    white-space: normal;
    line-height: 1.4;
  }
  .nav-strip .nav-list li.mega-menu > .sub-menu > li > .sub-menu > li:last-child > a {
    border-bottom: none;
  }
  .nav-strip .nav-list li.mega-menu > .sub-menu > li > .sub-menu > li > a:hover {
    color: var(--white);
    background: none;
    padding-left: 0.4rem;
  }
}

/* ─── Section labels ────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-label span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 0.2rem 0.65rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--grey-200);
}

/* ─── Featured hero ─────────────────────────────────────────── */
.hero-section {
  margin-bottom: 0;
}
.featured-post {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--black);
}
.featured-post__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.featured-post__image picture {
  display: block;
  width: 100%;
  height: 100%;
}
.featured-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}
.featured-post:hover .featured-post__image img { transform: scale(1.04); }

/* ─── Hero carousel ─────────────────────────────────────────── */
.hero-carousel {
  position: relative;
}
/* Slides stack; opacity crossfade */
.hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-slide.is-active {
  display: block;
  opacity: 1;
  position: relative; /* stacking context for absolute children */
}
/* Controls bar: prev · dots · next */
.hero-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.55rem 0 0.2rem;
  background: var(--black);
}
.hero-carousel__prev,
.hero-carousel__next {
  background: none;
  border: 1px solid #444;
  color: var(--grey-400);
  font-size: 1.3rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
  padding: 0;
}
.hero-carousel__prev:hover,
.hero-carousel__next:hover { color: var(--white); border-color: var(--red); }
.hero-carousel__dots {
  display: flex;
  gap: 0.4rem;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: #555;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.is-active {
  background: var(--red);
  transform: scale(1.3);
}
.featured-post__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 4rem 2rem 1.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--white);
}
/* ─── Posts toolbar (sort + section label row) ───────────────────── */
/* ─── Archive header ────────────────────────────────────────── */
.archive-header {
  background: var(--black);
  border-bottom: 3px solid var(--red);
  padding: 1.5rem 0;
}
.archive-header .section-label span {
  font-size: 0.85rem;
}
.archive-desc {
  font-size: 0.88rem;
  color: var(--grey-400);
  margin: 0.4rem 0 0;
  max-width: 600px;
}
/* ────────────────────────────────────────────────────────────── */
.posts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.posts-toolbar .section-label { margin-bottom: 0; flex: 1; }
.sort-controls { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.sort-controls label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey-400); }
.sort-controls select {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--grey-200);
  border-radius: 3px;
  background: #fff;
  font-size: 0.82rem;
  color: var(--off-black);
  cursor: pointer;
}
.sort-controls select:focus { outline: 1px solid var(--red); }

/* Sidebar widget card */
.sidebar .widget {
  padding: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sidebar .widget-title {
  display: block;
  margin: 0;
  padding: 0.6rem 1rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(90deg, #1a1a1a, #2e2e2e);
  border-bottom: 2px solid var(--red);
}
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget ul li {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;             /* count MUST stay on the same row */
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.72rem;           /* inherited by the bare "(3)" text node */
  color: #aaa;                  /* muted colour for the count */
  padding-right: 0.75rem;
  line-height: 1.3;
}
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar .widget ul li a {
  flex: 1 1 0%;                 /* grow to fill; pushes count right */
  min-width: 0;                 /* allow long names to truncate */
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--off-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
}
.sidebar .widget ul li:hover {
  background: rgba(192,57,43,0.05); /* cover entire row including count */
}
.sidebar .widget ul li:hover a {
  color: var(--red);
  padding-left: 1.1rem;
}
/* Highlight current category */
.sidebar .widget ul .current-cat > a {
  color: var(--red);
  font-weight: 700;
  border-left: 3px solid var(--red);
}
.filter-list { list-style: none; margin: 0; padding: 0; display: block; }
.filter-item { padding: 6px 8px; cursor: pointer; border-radius: 6px; margin-bottom: 6px; transition: background 0.15s; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
.filter-item:hover { background: #f6f6f6; }
.filter-thumb { width: 46px; height: 46px; border-radius: 4px; overflow: hidden; flex: 0 0 46px; margin-right: 0.5rem; }
.filter-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.filter-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.filter-title { font-size: 0.95rem; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-sub { font-size: 0.8rem; color: var(--muted); }
.filter-count { background: var(--accent-2); color: #fff; padding: 4px 8px; border-radius: 999px; font-size: 0.8rem; margin-left: 0.5rem; flex: 0 0 auto; }

@media (max-width: 600px) { .filter-thumb { width: 40px; height: 40px; } .filter-title { font-size: 0.92rem; } }
.featured-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}
.featured-post__body h2 {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  color: var(--white);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-post__body h2 a { color: var(--white); }
.featured-post__body h2 a:hover { color: var(--red); }
.featured-meta {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.featured-meta a { color: rgba(255,255,255,0.5); }
.featured-post__body .excerpt {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-read-more {
  display: inline-block;
  background: linear-gradient(135deg, #d44 0%, var(--red) 50%, var(--red-dark) 100%);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  align-self: flex-start;
  transition: opacity 0.15s;
}
.btn-read-more:hover { opacity: 0.88; }

/* ─── Posts grid ────────────────────────────────────────────── */
.posts-section { margin-top: 2rem; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.07);
  border-top: 3px solid var(--grey-200);
  border-radius: 10px;
  overflow: hidden;
  padding: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  transition: border-color 0.15s, box-shadow 0.2s;
}
.post-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}
.post-card__thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--grey-100);
  margin-bottom: 0;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
  padding: 0.75rem 0.85rem 0;
}
.post-card h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  padding-inline: 0.85rem;
}
.post-card h2 a:hover { color: var(--red); }
.post-card .meta {
  font-size: 0.76rem;
  color: var(--grey-400);
  margin-bottom: 0.4rem;
  padding-inline: 0.85rem;
}
.post-card .excerpt {
  font-size: 0.87rem;
  color: #444;
  line-height: 1.5;
  flex: 1;
  padding: 0 0.85rem 0.85rem;
}

/* ─── Pagination ────────────────────────────────────────────── */
.pagination {
  margin-top: 2rem;
  display: flex;
  gap: 0.4rem;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--off-black);
  background: var(--white);
  transition: background 0.15s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  border-radius: 6px;
}

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  padding-top: 0;
}
.widget {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--grey-200);
}
.widget:last-child { border-bottom: none; }
.widget-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(90deg, #1a1a1a 0%, #2e2e2e 100%);
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.85rem;
  display: inline-block;
}
.widget ul { list-style: none; padding: 0; }
.widget ul li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.72rem;  /* count text node inherits this */
  color: #aaa;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
  flex: 1;
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.88rem;
  color: var(--off-black);
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
  border-radius: 3px;
}
.widget ul li a:hover {
  color: var(--red);
  background: rgba(192,57,43,0.06);
  padding-left: 0.85rem;
}
.widget_search .wp-block-search__input,
.widget_search input[type="search"] {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--grey-200);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.widget_search .wp-block-search__button,
.widget_search input[type="submit"] {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 600;
}
.widget_search .wp-block-search__button:hover,
.widget_search input[type="submit"]:hover { background: var(--red-dark); }

/* ─── Single post ───────────────────────────────────────────── */
.single-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 2rem 1.25rem;
  align-items: start;
}
.post-header { margin-bottom: 1.5rem; }
.post-header .post-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 0.2rem 0.6rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.post-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.post-header .meta {
  font-size: 0.82rem;
  color: var(--grey-400);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--grey-200);
}
.post-header .meta a { color: var(--grey-400); }
.post-header .meta a:hover { color: var(--red); }
.post-thumbnail {
  margin-bottom: 1.5rem;
  max-height: 480px;
  overflow: hidden;
}
.post-thumbnail img { width: 100%; object-fit: cover; }
.entry-content { font-size: 1.05rem; line-height: 1.75; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--serif);
  line-height: 1.2;
  margin: 1.75rem 0 0.75rem;
}
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content img { margin-block: 1.5rem; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--red-dark); }
.entry-content blockquote {
  border-left: 4px solid var(--red);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--grey-100);
  font-style: italic;
  color: #444;
}
.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: 0.3rem; }
.entry-tags {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--grey-200);
  font-size: 0.85rem;
}
.entry-tags a {
  display: inline-block;
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  padding: 0.2rem 0.6rem;
  margin: 0.2rem;
  color: var(--off-black);
}
.entry-tags a:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--grey-200);
}
.post-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--off-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-nav a:hover { color: var(--red); }
.post-nav .nav-next { text-align: right; }

/* ─── Page ──────────────────────────────────────────────────── */
.page-content { max-width: 860px; }
.page-content h1 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--red);
}

/* ─── Comments ──────────────────────────────────────────────── */
.comments-area { margin-top: 2.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment .comment-body {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--grey-200);
}
.comment .comment-meta { font-size: 0.82rem; color: var(--grey-400); margin-bottom: 0.4rem; }
.comment .comment-content { font-size: 0.9rem; }
.comment-respond input, .comment-respond textarea {
  width: 100%; border: 1px solid var(--grey-200); padding: 0.5rem 0.75rem; font-size: 0.9rem; margin-bottom: 0.75rem;
}
.comment-respond h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 1rem; }
.comment-respond .submit {
  background: var(--red); color: var(--white); border: none;
  padding: 0.55rem 1.25rem; font-size: 0.88rem; font-weight: 700; cursor: pointer;
}
.comment-respond .submit:hover { background: var(--red-dark); }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #141414 0%, var(--black) 100%);
  color: var(--grey-400);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  border-top: 3px solid var(--red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .site-title { font-size: 1.4rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; max-width: 320px; }
.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.4rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 0.3rem 0; font-size: 0.85rem; }
.footer-col ul li a { color: var(--grey-400); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}
.footer-bottom a { color: var(--grey-400); }
.footer-bottom a:hover { color: var(--white); }

/* ─── Search form ───────────────────────────────────────────── */
.search-form {
  display: flex;
  gap: 0;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--grey-200);
  border-right: none;
  font-size: 0.88rem;
}
.search-form input[type="search"]:focus { outline: 1px solid var(--red); }
.search-form button, .search-form input[type="submit"] {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.search-form button:hover { background: var(--red-dark); }

/* ─── No-posts / 404 ────────────────────────────────────────── */
.no-results { padding: 3rem 0; text-align: center; }
.no-results h2 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 1rem; }

/* ─── Recent Comments Strip ─────────────────────────────────── */
.recent-comments-strip {
  background: var(--grey-100);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  padding: 0.9rem 0;
}
.recent-comments-strip .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow: hidden;
}

/* ─── News ticker (above hero, below nav) ───────────────────── */
.news-ticker {
  background: linear-gradient(180deg, #1b1b1b 0%, #0f0f0f 100%);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 3px solid var(--red);
  color: var(--grey-400);
}
.news-ticker .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  padding-block: 0.55rem;
}
.ticker-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 0.2rem 0.6rem;
  flex-shrink: 0;
}
.ticker-window {
  overflow: hidden;
  flex: 1;
  /* fade edges so items don't hard-cut at the label boundary */
  mask-image: linear-gradient(to right, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
}
/* Track holds two copies of the list; CSS animates it left by 50% for seamless loop */
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll var(--ticker-duration, 40s) linear infinite;
  will-change: transform;
}
.ticker-track:hover {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-list {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
}
/* Dot separator rendered as its own flex item in the list */
.ticker-sep {
  color: var(--red);
  font-size: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  user-select: none;
  line-height: 1;
}
.ticker-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  padding: 0.2rem 0.75rem;
  background: rgba(255,255,255,0.95);
  color: var(--off-black);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.ticker-item a { color: inherit; }
.ticker-item:hover { background: #fff7f7; }
.ticker-source {
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--grey-400);
  margin-left: 0.3rem;
  opacity: 0.7;
}

@media (max-width: 760px){
  .ticker-label { display: none; }
  .ticker-item { font-size: 0.84rem; }
}
.rc-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 0.25rem 0.6rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.rc-scroller {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
}
.rc-scroller::-webkit-scrollbar { display: none; }
.rc-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  transition: border-color 0.15s;
  max-width: 220px;
  color: var(--off-black);
}
.rc-item:hover { border-color: var(--red); }
.rc-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.rc-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rc-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--off-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc-post {
  font-size: 0.72rem;
  color: var(--grey-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc-empty { font-size: 0.85rem; color: var(--grey-400); font-style: italic; }

/* ─── Footer archives panel ─────────────────────────────────── */
.footer-bottom { position: relative; }
.footer-archives-wrap { position: relative; }
.archives-toggle {
  background: none;
  border: 1px solid #444;
  color: var(--grey-400);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.archives-toggle:hover,
.archives-toggle[aria-expanded="true"] { color: var(--white); border-color: var(--red); }
.archives-caret { font-size: 0.6em; }
.archives-panel {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--off-black);
  border: 1px solid #333;
  border-bottom: 2px solid var(--red);
  padding: 0.75rem 1rem;
  min-width: 170px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 100;
}
.archives-panel ul { list-style: none; padding: 0; margin: 0; }
.archives-panel ul li { padding: 0.25rem 0; border-bottom: 1px solid #2a2a2a; }
.archives-panel ul li:last-child { border-bottom: none; }
.archives-panel ul li a { font-size: 0.82rem; color: var(--grey-400); transition: color 0.15s; display: block; }
.archives-panel ul li a:hover { color: var(--white); }

/* Hide archives & recent comments from sidebar — shown in footer area instead */
.widget_archive,
.widget_recent_comments { display: none !important; }

/* ─── Responsive ────────────────────────────────────────────── */

/* AJAX pagination fade */
#posts-region {
  transition: opacity 0.25s ease;
}
#posts-region.is-loading {
  opacity: 0;
  pointer-events: none;
}

/* ─── Single post card framing ───────────────────────────────── */
.single-main {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem 2.5rem 2.5rem;
  box-shadow: 0 6px 40px rgba(0,0,0,0.32);
}
.single-main .entry-content {
  font-size: 1.07rem;
  line-height: 1.8;
  color: #222;
}
.single-main .entry-content p { margin-bottom: 1.4rem; }
.single-main .comments-area {
  background: var(--grey-100);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}

/* ─── Footer categories dropdown ────────────────────────────── */
.footer-cats-wrap {
  position: relative;
}
.footer-cats-toggle {
  background: none;
  border: 1px solid #444;
  color: var(--grey-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.footer-cats-toggle:hover,
.footer-cats-toggle[aria-expanded="true"] { color: var(--white); border-color: var(--red); }
.footer-cats-caret { font-size: 0.6em; }
.footer-cats-toggle[aria-expanded="true"] .footer-cats-caret { transform: rotate(180deg); }
.footer-cats-panel {
  position: absolute;
  bottom: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  background: var(--off-black);
  border: 1px solid #333;
  border-bottom: 2px solid var(--red);
  padding: 0.6rem 0.8rem;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  list-style: none;
  margin: 0;
}
.footer-cats-panel li { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding: 0.28rem 0; border-bottom: 1px solid #2a2a2a; font-size: 0.68rem; color: #666; }
.footer-cats-panel li:last-child { border-bottom: none; }
.footer-cats-panel li a { font-size: 0.82rem; font-weight: 500; color: var(--grey-400); transition: color 0.15s; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-cats-panel li a:hover { color: var(--white); }
.footer-cats-panel .children { list-style: none; padding-left: 0.75rem; margin: 0; }

@media (max-width: 960px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-post { height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-layout { grid-template-columns: 1fr; }
  .single-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .nav-next { text-align: left; }
  .top-bar .wrap { flex-direction: column; gap: 0.25rem; }
}

/* ─── Ticker pause button ─────────────────────────────────────── */
.ticker-pause {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--grey-400);
  cursor: pointer;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
}
.ticker-pause:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.ticker-pause[aria-pressed="true"] { color: var(--red); border-color: var(--red); }

/* ─── Skeleton loaders ────────────────────────────────────────── */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton-card { pointer-events: none; }
.skeleton-block {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 3px;
}
.skeleton-body   { padding: 0.75rem 1rem; }
.skeleton-thumb  { aspect-ratio: 16/9; border-radius: 0; }
.skeleton-cat    { height: 10px; width: 60px;  margin-bottom: 0.75rem; }
.skeleton-title  { height: 18px; width: 88%;   margin-bottom: 0.4rem;  }
.skeleton-title2 { height: 18px; width: 65%;   margin-bottom: 0.75rem; }
.skeleton-meta   { height: 10px; width: 45%;   margin-bottom: 0.75rem; }
.skeleton-line   { height: 10px; width: 95%;   margin-bottom: 0.3rem;  }
.skeleton-line2  { height: 10px; width: 70%; }

/* ─── Scroll-to-top button ────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 998;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-top:hover { background: #a93226; }
