/* =============================================
   HITS Theme (based on Default v1)
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:         #e8192c;
  --red-dark:    #bf0f1f;
  --black:       #111111;
  --charcoal:    #1a1a1a;
  --ink:         #2d2d2d;
  --mid:         #555555;
  --muted:       #888888;
  --subtle:      #bbbbbb;
  --border:      #e8e8e8;
  --border-mid:  #d4d4d4;
  --bg:          #8a8a8a;
  --bg-card:     #ffffff;
  --white:       #ffffff;
  --max-w:       1400px;
  --font-head:   'Barlow Condensed', sans-serif;
  --font-ui:     'Space Grotesk', sans-serif;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 8px 28px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --transition:  .2s cubic-bezier(.4,0,.2,1);
  --transition-bounce: .25s cubic-bezier(.34,1.56,.64,1);
}

html { scroll-behavior: smooth; }

/* ---------- Reading Progress Bar ---------- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--red);
  z-index: 9999;
  transition: width .08s linear;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(232,25,44,.6), 0 0 4px rgba(232,25,44,.4);
  pointer-events: none;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

/* Prevent hover color bleeding on structural/wrapper anchors */
.post-row-image,
.post-row-image:hover,
.related-card a,
.related-card a:hover { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--black);
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #EEE;
  letter-spacing: .05em;
  max-width: var(--max-w);
  margin: 0 auto;
  box-sizing: border-box;
}
.top-bar .top-bar-right {
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 10.5px;
}
.top-bar a { transition: color var(--transition); }
.top-bar a:hover { color: var(--white); }
.top-bar .top-bar-right a:hover { color: #ff4d5e; }

/* ---------- Site Header ----------
   The `nav_sticky` site setting toggles `body.has-sticky-header`, which
   opts the header into sticky behavior. Defaults to non-sticky so the
   header scrolls with the page. */
.site-header {
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  position: relative;
  top: 0;
  z-index: 100;
  max-width: var(--max-w);
  margin: 0 auto;
  box-sizing: border-box;
}
body.has-sticky-header .site-header {
  position: sticky;
  top: 0;
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

/* Logo — image version */
.site-logo { display: flex; align-items: center; height: 48px; }
.site-logo img {
  height: 48px;
  width: auto;
  display: block;
}
/* Fallback text logo if no image */
.site-logo .logo-text {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}
.site-logo .logo-text span { color: var(--red); }

/* ---------- Primary Nav ---------- */
.primary-nav { display: flex; align-items: center; gap: 2px; }

.primary-nav a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--white);
  padding: 8px 13px;
  border-radius: 4px;
  position: relative;
  transition: color var(--transition), background var(--transition);
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 13px; right: 13px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.primary-nav a:hover { color: var(--red); }
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a.active {
  background: var(--red);
  color: var(--white);
}
.primary-nav a.active::after { display: none; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s;
}

/* ---------- Search Toggle Button ---------- */
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  margin-left: 6px;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
  flex-shrink: 0;
}
.search-toggle:hover,
.search-toggle.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ---------- Search Dropdown ---------- */
.search-dropdown {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 98;
  background: var(--white);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.search-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-dropdown-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.search-dropdown-input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--black);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.search-dropdown-input:focus { border-color: var(--red); background: var(--white); }
.search-dropdown-input::placeholder { color: var(--subtle); }

.search-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 20px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-dropdown-btn:hover { background: var(--red-dark); }

/* Pass 9.0 — search dropdown mobile support */
@media (max-width: 768px) {
  .search-dropdown {
    width: 100%;
    right: auto;
    left: 0;
  }
  .search-dropdown-form {
    padding: 12px 16px;
  }
  .search-dropdown-btn {
    padding: 0 14px;
  }
}


/* ---------- Search Results Page ---------- */
.search-page-form {
  display: flex;
  gap: 10px;
  padding: 24px 0 8px;
}
.search-page-input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.search-page-input:focus { border-color: var(--red); }
.search-page-input::placeholder { color: var(--subtle); }
.search-page-btn {
  height: 48px;
  padding: 0 28px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-page-btn:hover { background: var(--red-dark); }

/* ---------- Wrapper ---------- */
.wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Homepage Hero Banner ---------- */
.site-hero {
  position: relative;
  display: block;
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  height: 500px;
  background-color: var(--charcoal);
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
}

.site-hero--color { background: linear-gradient(135deg, #1a1a1a 0%, #2d1a1e 100%); }

/* Video hero */
.site-hero--video { background: var(--charcoal); }
.site-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Bottom-to-transparent gradient overlay */
.site-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
  transition: background .25s;
}

/* Text sits at the bottom, left-aligned, within max-w */
.site-hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  z-index: 2;
  padding-bottom: 36px;
}
.site-hero-text-box {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
}

/* Custom promo / post-title text */
.site-hero-custom-text {
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  word-break: break-word;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.site-hero-rule {
  width: 40px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin: 10px 0 0;
}

/* Clickable hero */
a.site-hero {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.site-hero.site-hero--linked:hover .site-hero-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.25) 55%, transparent 100%);
}
a.site-hero.site-hero--linked {
  cursor: pointer;
}

/* ---------- Listing header REMOVED — replaced by top padding on post-listing ---------- */

/* ---------- Index Section Bar (category / paginated pages) ---------- */
.index-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  overflow: hidden; /* contain the accent bar */
}
.index-hero .wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.index-hero-accent {
  width: 5px;
  height: 36px;
  background: var(--red);
  border-radius: 3px;
  flex-shrink: 0;
  display: block; /* explicit block, not inheriting anything */
}
.index-hero-text { flex: 1; }
.index-hero-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--black);
  line-height: 1;
}
.index-hero-sub {
  font-size: 11px;
  color: var(--subtle);
  margin-top: 3px;
  font-weight: 500;
}
.index-hero-line { flex: 1; height: 1px; background: var(--border); }
.index-hero-back {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  transition: color var(--transition);
  white-space: nowrap;
}
.index-hero-back:hover { color: var(--red); }

/* ---------- Post Listing ---------- */
.post-listing {
  padding: 20px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
  will-change: transform;
}
.post-row:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,.13), 0 4px 10px rgba(0,0,0,.07);
  transform: translateY(-4px);
  border-color: var(--border-mid);
}

/* Thumbnail */
.post-row-image {
  display: block;
  position: relative;
  overflow: hidden;
  height: 185px;
  background: #ddd;
  flex-shrink: 0;
}
.post-row-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  display: block;
}
.post-row:hover .post-row-image img { transform: scale(1.05); }

/* Category strip at bottom of image */
.post-row-cat-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--red);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  pointer-events: none; /* strip itself doesn't need to be clickable — whole card is */
}
.post-row-cat-strip span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}

.post-row-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e0e0;
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Content */
.post-row-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  border-left: 4px solid var(--bg);
}

.post-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--subtle);
}
.post-row-meta strong { color: var(--mid); font-weight: 600; }
.post-row-meta .meta-sep {
  width: 1px; height: 10px;
  background: var(--border-mid);
  flex-shrink: 0;
}

.post-row-title {
  font-family: var(--font-head);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--black);
  line-height: 1.15;
}
.post-row-title a { transition: color var(--transition); }
.post-row-title a:hover,
.post-row:hover .post-row-title a { color: var(--red); }

.post-row-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-row-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 7px 14px;
  border-radius: 4px;
  align-self: flex-start;
  margin-top: 2px;
  transition: background var(--transition), transform var(--transition-bounce),
              gap var(--transition);
  will-change: transform;
}
.post-row-readmore:hover,
.post-row:hover .post-row-readmore {
  background: var(--red);
  color: var(--white);
  transform: scale(1.04);
  gap: 10px;
}

.no-posts {
  font-size: 14px;
  color: var(--muted);
  padding: 80px 0;
  text-align: center;
}

/* ---------- Post Listing — Band wrappers (full-width within 1400px column) ---------- */
.post-band {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}
.post-band > .post-listing {
  padding: 0;
}
/* Featured band: black-to-gray vertical gradient */
.post-band--featured {
  background: linear-gradient(to bottom, #111111 0%, #6e6e6e 100%);
  padding: 32px 24px;
}
/* Featured: lift card titles/meta against the dark band */
.post-band--featured .post-row-title,
.post-band--featured .post-row-title a {
  color: var(--white);
}
.post-band--featured .post-row-title a:hover,
.post-band--featured .post-row:hover .post-row-title a {
  color: var(--red);
}
.post-band--featured .post-row-meta,
.post-band--featured .post-row-meta strong,
.post-band--featured .post-row-excerpt {
  color: rgba(255,255,255,.78);
}
.post-band--featured .post-row {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 6px;
  overflow: hidden;
}
.post-band--featured .post-row-content {
  background: transparent;
  border-top: none;
  padding: 14px 4px 0;
}
.post-band--featured .post-row-readmore {
  display: none;
}
/* Latest band: white sheet behind the 2-col grid */
.post-band--latest {
  background: var(--white);
  padding: 32px 24px;
}

/* ---------- Post Listing — 2-column grid variant ---------- */
.post-listing--grid_2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px 0 16px;
}
.post-listing--grid_2col .post-row {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}
.post-listing--grid_2col .post-row-image {
  height: 275px;
}
.post-listing--grid_2col .post-row-content {
  border-left: none;
  border-top: 4px solid var(--bg);
  background: rgba(255, 255, 255, 0.1); 
  justify-content: flex-start;
  padding: 18px 22px 22px;
  min-height: 0;
}
.post-listing--grid_2col .post-row-readmore {
  margin-top: auto;
}
.post-listing--grid_2col .post-row-title {
  font-size: clamp(17px, 1.8vw, 21px);
}
.post-listing--grid_2col .post-row-excerpt {
  -webkit-line-clamp: 3;
}

/* ---------- Post Listing — 3-column grid variant ---------- */
.post-listing--grid_3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0 16px;
}
.post-listing--grid_3col .post-row {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}
.post-listing--grid_3col .post-row-image {
  height: 250px;
}
.post-listing--grid_3col .post-row-content {
  border-left: none;
  border-top: 4px solid var(--bg);
  background: rgba(255, 255, 255, 0.1);
  justify-content: flex-start;
  padding: 16px 18px 20px;
}
.post-listing--grid_3col .post-row-readmore {
  margin-top: auto;
}
.post-listing--grid_3col .post-row-title {
  font-size: clamp(15px, 1.5vw, 18px);
}
.post-listing--grid_3col .post-row-excerpt {
  -webkit-line-clamp: 3;
}

/* ---------- Post Listing — split variant (50/50 image-left) ---------- */
.post-listing--card_grid .post-row {
  grid-template-columns: 2fr 3fr;
}
.post-listing--card_grid .post-row-image {
  height: auto;
  min-height: 275px;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 32px 0 52px;
  flex-wrap: wrap;
}

.page-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 6px;
  min-width: 38px;
  text-align: center;
  transition: all var(--transition), transform var(--transition-bounce);
  will-change: transform;
}
.page-btn:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232,25,44,.15);
}
.page-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(232,25,44,.3);
  pointer-events: none;
}
.page-dots { color: var(--subtle); padding: 0 4px; font-size: 14px; }

/* ---------- Article Hero Image ---------- */
.hero-wrap {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.hero-wrap img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  opacity: .92;
}
.hero-caption {
  position: absolute;
  bottom: 12px; right: 16px;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  font-style: italic;
  letter-spacing: .04em;
}

/* ---------- Article Page Layout ---------- */
.page-layout { padding: 40px; background: var(--bg-card);}

/* ---------- Article ---------- */
.article-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.byline {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.byline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.byline a { color: var(--red); font-weight: 600; transition: color var(--transition); }
.byline a:hover { color: var(--red-dark); }
.byline .meta-sep {
  width: 1px; height: 10px;
  background: var(--border-mid);
  flex-shrink: 0;
}

/* ---------- Share Buttons ---------- */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.share-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-right: 2px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--mid);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition-bounce),
              box-shadow var(--transition);
  flex-shrink: 0;
  will-change: transform;
}
.share-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.share-btn:hover {
  transform: translateY(-2px);
}
.share-facebook:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-twitter:hover   { background: #000;    border-color: #000;    color: #fff; }
.share-linkedin:hover  { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.share-copy:hover      { background: var(--red); border-color: var(--red); color: #fff; }

/* Copied state */
.share-copy.copied { background: #16a34a; border-color: #16a34a; color: #fff; }

@media (max-width: 540px) {
  .byline { flex-direction: column; align-items: flex-start; gap: 10px; }
  .share-buttons { align-self: flex-start; }
}

.article-body p {
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 1.5em;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.85;
}
.article-body h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 1.8em 0 .7em;
  color: var(--black);
}
.article-body h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 1.5em 0 .5em;
  color: var(--black);
}
.article-body strong { color: var(--black); font-weight: 700; }
.article-body a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(232,25,44,.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}
.article-body a:hover { text-decoration-color: var(--red); }
.article-body ul, .article-body ol {
  font-family: Georgia, 'Times New Roman', serif;
  margin: 0 0 1.5em 1.6em;
  font-size: 17px;
  color: var(--ink);
}
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
  border-left: 4px solid var(--red);
  margin: 1.8em 0;
  padding: 16px 24px;
  background: #fef1f2;
  font-style: italic;
  color: var(--mid);
  border-radius: 0 6px 6px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
}

/* ---------- Prev/Next Nav ---------- */
.post-nav {
  margin-top: 36px;
  background: var(--charcoal);
  padding: 18px 24px;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.post-nav .arrow {
  color: var(--red);
  font-size: 20px;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 2px;
}
.post-nav .label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 5px;
}
.post-nav strong {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.post-nav a { color: #888; transition: color var(--transition); }
.post-nav a:hover { color: var(--white); }
.post-nav .arrow {
  color: var(--red);
  font-size: 20px;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-block;
  transition: transform var(--transition);
}
.post-nav:hover .arrow { transform: translateX(-4px); }

/* ---------- Author Bio Card ---------- */
.author-card {
  margin: 40px 0 0;
  padding: 24px 28px;
  background: var(--bg-alt, #f8f8f8);
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
}
.author-card-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.author-card-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-light, #555);
  margin: 0 0 14px;
}
.author-card-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.author-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: opacity .15s;
}
.author-social-link:hover { opacity: .75; }
.author-social-li  { background: #0a66c2; color: #fff; }
.author-social-x   { background: #000;    color: #fff; }
.author-social-ig  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }

/* ---------- Related Posts ---------- */
.related-posts { margin-top: 52px; }
.section-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: '';
  display: block;
  width: 5px; height: 24px;
  background: var(--red);
  border-radius: 3px;
  flex-shrink: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  will-change: transform;
}
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.14), 0 6px 14px rgba(0,0,0,.07);
  border-color: var(--border-mid);
}
.related-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #ddd;
}
.related-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.related-card:hover .related-card-img-wrap img { transform: scale(1.05); }
.related-card-cat {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--red);
  padding: 5px 12px;
}
.related-card-cat span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}
.related-card-body { padding: 14px 16px; }
.related-card h4 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .01em;
  transition: color var(--transition);
}
.related-card:hover h4 { color: var(--red); }
.related-card .date {
  font-size: 11px;
  color: var(--subtle);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  padding: 52px 24px 28px;
  margin-top: 16px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Footer logo */
.footer-logo {
  margin-bottom: 14px;
}
.footer-logo img {
  height: 38px;
  width: auto;
  display: block;
  opacity: 1;
  filter: none;
}
/* Fallback text if no image */
.footer-logo .logo-text {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--white);
  line-height: 1;
}
.footer-logo .logo-text span { color: var(--red); }

.footer-about p {
  font-size: 12.5px;
  line-height: 1.75;
  color: #EEE;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #EEE;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a {
  font-size: 13px;
  color: #EEE;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }

/* Social chips */
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.social-chip {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #EEE;
  transition: all var(--transition), transform var(--transition-bounce);
  cursor: pointer;
  will-change: transform;
}
.social-chip:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232,25,44,.2);
}

.footer-network {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}
.footer-network-label {
  color: rgba(255,255,255,.5);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
}
.footer-network a {
  color: #eee;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.footer-network a:hover { color: var(--red); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #EEE;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #EEE; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .post-row { grid-template-columns: 260px 1fr; }
  .post-listing--grid_3col { grid-template-columns: repeat(2, 1fr); }
  .post-listing--grid_3col .post-row { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-hero { height: 480px; }
  .site-header-inner { padding: 0 18px; height: 60px; }
  .primary-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 12px 18px 16px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .primary-nav.open { display: flex; }
  .hamburger { display: flex; }
  .top-bar { padding: 8px 18px; }
  .wrapper { padding: 0 16px; }
  .post-row { grid-template-columns: 1fr; }
  .post-listing--card_grid .post-row { grid-template-columns: 1fr; }
  .post-listing--card_grid .post-row-image { height: 200px; min-height: unset; }
  .post-row-image { height: 200px; }
  .post-row-content { padding: 18px 20px; }
  .post-listing--grid_3col { grid-template-columns: 1fr; }
  .post-listing--grid_2col { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-social { gap: 6px; }
}

/* =============================================
   Front-end audit pass additions
   ============================================= */

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

body.single-post-page .page-layout {
  max-width: 920px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-toggle {
  width: auto;
  padding: 0 12px;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.search-toggle-icon {
  font-size: 14px;
  line-height: 1;
}

.search-toggle-text {
  display: inline-block;
}

.site-hero img.site-hero-video {
  object-fit: cover;
}

.post-row {
  align-items: stretch;
}

.post-row-content {
  min-height: 185px;
}

.post-row-excerpt {
  min-height: 3.4em;
}

.byline-meta span,
.byline-meta strong {
  white-space: nowrap;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body img {
  width: 100%;
  border-radius: 10px;
  margin: 26px 0;
}

.article-body figure {
  margin: 26px 0;
}

.article-body figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

.post-nav-next {
  justify-content: flex-end;
}

.post-nav-next .arrow {
  order: 2;
  margin-left: auto;
}

.post-nav-next:hover .arrow {
  transform: translateX(4px);
}

.author-card-social {
  margin-top: 10px;
}

.footer-col ul li a,
.footer-bottom,
.footer-about p,
.footer-col h4 {
  color: #eee;
}

.no-posts {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.error-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: 36px;
}

.error-eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 10px;
}

.error-copy {
  font-size: 15px;
  color: var(--muted);
  max-width: 640px;
}

.error-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .header-actions {
    gap: 8px;
  }

  .search-toggle-text {
    display: none;
  }

  .search-toggle {
    width: 38px;
    padding: 0;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    gap: 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .search-toggle {
    width: 34px;
    height: 34px;
  }

  .article-title {
    font-size: 32px;
  }

  .post-nav,
  .post-nav-next {
    padding: 16px 18px;
  }

  .error-card {
    padding: 24px 20px;
  }
}

/* =============================================
   Pass 7.2 · Single Post Sidebar + Homepage Ads Block
   ============================================= */

/* ---------- Single Post: Two-column layout ---------- */

/* Override the narrow max-width when sidebar is active */
body.single-post-page .page-layout-sidebar {
  max-width: var(--max-w);
}

.single-post-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.single-post-main {
  min-width: 0; /* prevent grid blowout from wide content */
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 28px 36px 36px;
}

/* ---------- Single Post: Hero Figure ---------- */
.article-hero-figure {
  margin: 0 0 22px;
}
.article-hero-figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.article-hero-caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  padding: 8px 0 4px;
}

/* ---------- Single Post: Meta row (byline + taxonomy + share) ---------- */
.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.post-meta-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}
.post-meta-left .byline {
  border: none;
  padding: 0;
  margin: 0;
}
.post-meta-left .post-taxonomy {
  margin: 0;
  position: relative;
  padding-left: 14px;
}
.post-meta-left .post-taxonomy::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--border-mid);
}

/* ---------- Single Post: Posted-in line ---------- */
.post-taxonomy {
  font-size: 13px;
  color: var(--mid);
  margin: 8px 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-taxonomy-label {
  color: var(--ink);
}
.post-taxonomy-term {
  color: var(--red);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
  transition: color var(--transition);
}
.post-taxonomy-term:hover {
  color: var(--red-dark);
}

/* ---------- Single Post: Round Share Buttons (HITS variant) ---------- */
.share-buttons--row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.share-buttons--row .share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-bounce), box-shadow var(--transition), opacity var(--transition);
  text-decoration: none;
}
.share-buttons--row .share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  opacity: .92;
}
.share-buttons--row .share-facebook  { background: #1877f2; }
.share-buttons--row .share-twitter   { background: #1da1f2; }
.share-buttons--row .share-linkedin  { background: #0a66c2; }
.share-buttons--row .share-pinterest { background: #e60023; }
.share-buttons--row .share-whatsapp  { background: #25d366; }
.share-buttons--row .share-email     { background: #d44638; }

/* Adjust byline now that share-buttons live below it */
.single-post-main .byline {
  border-top: none;
  padding-top: 0;
  margin-bottom: 0;
}

/* ---------- Sidebar Cards ---------- */
.single-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
  overflow: hidden;
}

/* Sidebar ad card centering */
.sidebar-ad-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ad card: sticky on desktop when setting is on */
@media (min-width: 1024px) {
  .sidebar-ad-sticky {
    position: sticky;
    top: 88px; /* accounts for sticky site header */
  }
}

/* Latest posts card */
.sidebar-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--black);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}

.sidebar-latest-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-latest-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-latest-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-latest-item a {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
  transition: color var(--transition);
}
.sidebar-latest-item a:hover { color: var(--red); }

.sidebar-latest-date {
  font-size: 11px;
  color: var(--subtle);
}

/* ---------- Responsive: sidebar collapses below article ---------- */
@media (max-width: 960px) {
  .single-post-with-sidebar {
    grid-template-columns: 1fr;
  }

  /* Disable sticky on narrow screens */
  .sidebar-ad-sticky {
    position: static;
  }

  .single-post-sidebar {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .single-post-main {
    padding: 18px 16px 24px;
    border-radius: 6px;
  }
  .share-buttons--row .share-btn {
    width: 34px;
    height: 34px;
  }
  .post-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .post-meta-left .post-taxonomy {
    padding-left: 0;
  }
  .post-meta-left .post-taxonomy::before {
    display: none;
  }
}

/* ---------- Homepage Ads Block ---------- */
.homepage-ads-block {
  width: 100%;
}

/* Hide on mobile when display_on_mobile is false */
.ads-block-hide-mobile {
  display: none;
}

@media (min-width: 600px) {
  .ads-block-hide-mobile {
    display: block;
  }
}

.ads-block-card {
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ads-block-title {
  margin-bottom: 1rem;
}

/* Fade transition for JS-driven rotation */
.ads-block-card.ads-rotating-out {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ads-block-card.ads-rotating-in {
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* ─── Pass 9.2 · Ads Manager slot wrapper ──────────────────────────────────── */
.ad-slot-wrap {
  width: 100%;
}

/* Sticky sidebar ads (applied by render_ad_slot when sticky_desktop=1) */
@media (min-width: 1024px) {
  .ad-slot-sticky {
    position: sticky;
    top: 88px; /* accounts for fixed site header */
  }
}
@media (max-width: 960px) {
  .ad-slot-sticky {
    position: static;
  }
}

/* =============================================
   Pass 8 · Block Registry shared layout
   ---------------------------------------------
   .block-shell  — full-width band that re-uses the centered .wrapper
                   so every homepage block aligns to the same content column.
   .block-inner  — centered content slot inside a block-shell; used when a
                   block wants its own visual card narrower than the shell
                   (e.g. newsletter CTA, ad card).
   ============================================= */
.block-shell {
  width: 100%;
  margin: 2rem auto;
  box-sizing: border-box;
}

.block-shell .section-heading {
  text-align: center;
  margin: 0 auto 1.25rem;
}

.block-shell .block-inner {
  margin-left: auto;
  margin-right: auto;
}

/* Shared centering for block content that needs to be visually balanced */
.block-shell .newsletter-block,
.block-shell .homepage-ads-block,
.block-shell .category-strip-items {
  margin-left: auto;
  margin-right: auto;
}

/* Sidebar related posts card reuses the latest-posts list styling */
.sidebar-related-card .sidebar-latest-list {
  /* Inherit layout from .sidebar-latest-list */
}

/* =============================================
   Pass 9.3 · Custom Layout Builder Blocks
   ---------------------------------------------
   .custom-block-section
     Full browser-width outer band. Background-color (set inline) spans
     edge-to-edge because this element is a direct child of the theme body
     and is not constrained by .wrapper. Vertical padding provides the
     band's visual height so adjacent coloured sections do not collide.

   .custom-block-inner
     Re-uses .wrapper to keep the content column aligned with the rest of
     the site (same max-width, same gutters). Declared as a modifier here
     so the wrapper's centring still applies even when admins add custom
     page CSS.

   .custom-block-grid
     Horizontal layout primitive inside the centred inner container.
     Variants: --1 (single centred column), --2 (two equal columns with
     a gap), --3 (three equal columns with a gap). All variants collapse
     responsively on smaller viewports so content stays readable.
   ============================================= */

.custom-block-section {
  width: 100%;
  box-sizing: border-box;
  padding: 3rem 0;
  /* background-color applied inline when configured; defaults to
     transparent so text inherits the page background. */
}

.custom-block-section .custom-block-inner {
  /* .wrapper handles max-width + horizontal gutters + auto margins */
  margin-left: auto;
  margin-right: auto;
}

.custom-block-section .custom-block-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.custom-block-section .custom-block-grid--1 {
  grid-template-columns: minmax(0, 1fr);
}

.custom-block-section .custom-block-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-block-section .custom-block-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-block-section .custom-block-col {
  min-width: 0;
  word-wrap: break-word;
}

.custom-block-section .custom-block-col > *:first-child {
  margin-top: 0;
}
.custom-block-section .custom-block-col > *:last-child {
  margin-bottom: 0;
}

/* Tablet — 3-col collapses to 2-col to keep columns readable */
@media (max-width: 900px) {
  .custom-block-section .custom-block-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile — all multi-col blocks collapse to a single column */
@media (max-width: 640px) {
  .custom-block-section {
    padding: 2rem 0;
  }
  .custom-block-section .custom-block-grid--2,
  .custom-block-section .custom-block-grid--3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

