/* ══════════════════════════════════════════════════════════════════
   RunAbroad — style.css
   ══════════════════════════════════════════════════════════════════ */

:root {
  --bg:         #0a0e14;
  --bg2:        #111820;
  --bg3:        #1a2230;
  --accent:     #00e676;
  --accent2:    #00bcd4;
  --red:        #ff3d3d;
  --text:       #e8edf3;
  --muted:      #7a8fa6;
  --border:     #1e2d3d;
  --card:       #131c28;
  --nav-h:      52px;
  --max-w:      1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── TICKER ──────────────────────────────────────────────────────── */
.ticker {
  background: var(--accent);
  color: #000;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  height: 28px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker__label {
  background: #000;
  color: var(--accent);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: .08em;
}
.ticker__viewport { overflow: hidden; flex: 1; }
.ticker__track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 120s linear infinite;
  padding-left: 40px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── TOP NAV ─────────────────────────────────────────────────────── */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar__logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
  flex-shrink: 0;
  color: #fff;
}
.topbar__logo span { color: var(--accent); }

.topbar__nav {
  display: flex;
  flex: 1;
  height: var(--nav-h);
}
.topbar__nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 14px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.topbar__nav a:first-child { border-left: 1px solid var(--border); }
.topbar__nav a:hover,
.topbar__nav a.active {
  color: var(--accent);
  background: rgba(0,230,118,.06);
}

.topbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 12px;
  height: 32px;
  flex-shrink: 0;
  transition: border-color .15s;
}
.topbar__search:focus-within { border-color: var(--accent); }
.topbar__search input {
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  outline: none;
  width: 180px;
}
.topbar__search input::placeholder { color: var(--muted); }
.topbar__search svg { color: var(--muted); flex-shrink: 0; }

/* ── CATEGORY STRIP ──────────────────────────────────────────────── */
.cat-strip {
  background: var(--bg2);
  border-bottom: 2px solid var(--accent);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 18px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  transition: color .15s, background .15s;
}
.cat-strip a:hover { color: var(--accent); background: rgba(0,230,118,.06); }

/* ── PAGE WRAP ───────────────────────────────────────────────────── */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── SECTION HEADER ──────────────────────────────────────────────── */
.sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.sec-head__bar {
  width: 28px;
  height: 3px;
  background: var(--accent);
  flex-shrink: 0;
}
.sec-head__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
}
.sec-head__more {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--accent);
  text-transform: uppercase;
}
.sec-head__more:hover { text-decoration: underline; }

/* ── HERO BLOCK ──────────────────────────────────────────────────── */
.hero {
  display: block;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero__main {
  position: relative;
  overflow: hidden;
  background: var(--card);
  height: 320px;
}
.hero__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
  display: block;
}
.hero__main:hover .hero__main-img { transform: scale(1.02); }
.hero__main-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px 22px;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 60%, transparent 100%);
}
.hero__cat {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero__cat::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
}
.hero__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 8px;
}
.hero__title a:hover { color: var(--accent); }
.hero__meta { font-size: 12px; color: rgba(255,255,255,.55); }

.hero__sidebar {
  display: none;
}
.hero__side-item {
  display: flex;
  flex: 1;
  overflow: hidden;
  background: var(--card);
  border-bottom: none;
  transition: background .12s;
  min-height: 0;
}
.hero__side-item:last-child { border-bottom: none; }
.hero__side-item:hover { background: var(--bg3); }
.hero__side-img {
  width: 90px;
  flex-shrink: 0;
  object-fit: cover;
  align-self: stretch;
}
.hero__side-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.hero__side-cat {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__side-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.hero__side-title a:hover { color: var(--accent); }
.hero__side-date { font-size: 11px; color: var(--muted); margin-top: auto; }

/* ── CONTENT GRID ────────────────────────────────────────────────── */
.content-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  margin-bottom: 40px;
}

/* ── ARTICLE GRID ────────────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.article-card {
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background .15s;
}
.article-card:hover { background: var(--bg3); }
.article-card__img { width: 100%; height: 140px; object-fit: cover; display: block; }
.article-card__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-card__cat {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.article-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.article-card__title a:hover { color: var(--accent); }
.article-card__excerpt { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1; }
.article-card__meta {
  font-size: 11px;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ── SIDEBAR ─────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
}
.sidebar-widget__head {
  padding: 10px 14px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget__head::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent);
  display: block;
}

/* Race Finder */
.race-finder { padding: 14px; }
.race-finder label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.race-finder select,
.race-finder input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  padding: 7px 10px;
  margin-bottom: 10px;
  outline: none;
  appearance: none;
  border-radius: 2px;
  transition: border-color .15s;
}
.race-finder select:focus,
.race-finder input:focus { border-color: var(--accent); }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  transition: background .15s;
  text-align: center;
}
.btn-primary:hover { background: #00c853; }
.btn-primary--full { width: 100%; }

/* Destination widget */
.dest-list { padding: 4px 0; }
.dest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
  cursor: pointer;
}
.dest-item:last-child { border-bottom: none; }
.dest-item:hover { background: var(--bg3); }
.dest-item__flag { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.dest-item__name { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; flex: 1; }
.dest-item__count {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  background: rgba(0,230,118,.1);
  border: 1px solid rgba(0,230,118,.2);
  padding: 1px 6px;
  border-radius: 2px;
}

/* Recent posts */
.recent-list { padding: 4px 0; }
.recent-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { background: var(--bg3); }
.recent-item__img { width: 60px; height: 45px; object-fit: cover; flex-shrink: 0; }
.recent-item__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.recent-item__title a:hover { color: var(--accent); }
.recent-item__date { font-size: 10px; color: var(--muted); margin-top: 3px; }

/* ── GEAR STRIP ──────────────────────────────────────────────────── */
.gear-strip {
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 30px;
}
.gear-strip__head {
  padding: 10px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gear-strip__head::before { content: ''; width: 3px; height: 14px; background: var(--accent2); display: block; }
.gear-items {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
}
.gear-item {
  background: var(--card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  transition: background .12s;
  cursor: pointer;
}
.gear-item:hover { background: var(--bg3); }
.gear-item__img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--border); }
.gear-item__title { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; line-height: 1.2; color: var(--text); }
.gear-item__price { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--accent); }

/* ── REGION GRID ─────────────────────────────────────────────────── */
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.region-card {
  background: var(--card);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .15s;
  cursor: pointer;
  text-decoration: none;
}
.region-card:hover { background: var(--bg3); }
.region-card__icon { font-size: 26px; }
.region-card__name { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 800; color: var(--text); }
.region-card__count { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--muted); }
.region-card__bar { height: 2px; background: var(--border); margin-top: 4px; }
.region-card__bar-fill { height: 100%; background: var(--accent); transition: background .15s; }
.region-card:hover .region-card__bar-fill { background: var(--accent2); }

/* ── RACE CALENDAR PAGE ──────────────────────────────────────────── */
.calendar-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin: 20px 0 40px;
}
.calendar-filters {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 10px);
}
.calendar-filters h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 14px; }
.filter-group label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.filter-group select,
.filter-group input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  padding: 7px 10px;
  outline: none;
  appearance: none;
  border-radius: 2px;
  transition: border-color .15s;
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--accent); }

.race-month-group { margin-bottom: 30px; }
.race-month-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1px;
}
.race-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: var(--card);
}
.race-table th {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: var(--bg3);
}
.race-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
.race-table tr:last-child td { border-bottom: none; }
.race-table tr:hover td { background: var(--bg3); }
.race-table .race-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.race-table .race-name a:hover { color: var(--accent); }
.race-table .race-date {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.race-table .race-location { font-size: 12px; color: var(--muted); }
.race-table .race-region {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent2);
}
.race-table .race-dist {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}
.race-table .race-link a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
}
.race-table .race-link a:hover { text-decoration: underline; }
.badge-major {
  display: inline-block;
  background: gold;
  color: #000;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: .06em;
}

/* ── RACE DETAIL PAGE ────────────────────────────────────────────── */
.race-detail { max-width: 860px; margin: 30px auto 60px; }
.race-detail__header { margin-bottom: 24px; }
.race-detail__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 12px;
}
.race-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.race-detail__meta strong { color: var(--accent); }
.race-detail__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin: 20px 0;
}
.race-detail__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 24px;
  transition: background .15s;
}
.race-detail__cta:hover { background: #00c853; }

/* ── SINGLE POST PAGE ────────────────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  margin: 28px 0 60px;
}
.post-body { max-width: 700px; }
.post-body h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
}
.post-body .post-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.post-body .post-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 24px;
}
.post-body .post-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.post-body .post-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin: 28px 0 10px;
  color: var(--text);
}
.post-body .post-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 22px 0 8px;
}
.post-body .post-content p { margin-bottom: 16px; }
.post-body .post-content a { color: var(--accent); }
.post-body .post-content a:hover { text-decoration: underline; }
.post-body .post-content ul,
.post-body .post-content ol { padding-left: 22px; margin-bottom: 16px; }
.post-body .post-content li { margin-bottom: 6px; }
.post-body .post-content img { max-width: 100%; margin: 20px 0; }

/* ── Amazon product images — float right in article body ── */
.post-body .post-content img[width][height],
.post-body .post-content figure.wp-block-image,
.post-body .post-content .wp-caption,
.post-body .post-content p > a > img,
.post-body .post-content p > img {
  float: right;
  clear: right;
  max-width: 260px;
  width: auto;
  margin: 0 0 16px 24px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 8px;
}
/* Caption text under product images */
.post-body .post-content .wp-caption-text,
.post-body .post-content figcaption {
  float: right;
  clear: right;
  max-width: 260px;
  margin: -12px 0 16px 24px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
/* Full-width images like YouTube embeds and hero images — override float */
.post-body .post-content iframe,
.post-body .post-content .wp-block-embed,
.post-body .post-content .wp-block-image.alignfull,
.post-body .post-content img.aligncenter,
.post-body .post-content img.size-full {
  float: none !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 20px 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
/* Clearfix after floated content */
.post-body .post-content p:after {
  content: ;
  display: table;
  clear: both;
}
.post-body .post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 20px 0;
  padding: 10px 20px;
  color: var(--muted);
  font-style: italic;
}

/* ── PAGINATION ──────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 24px 0;
  width: fit-content;
}
.pagination a,
.pagination span {
  background: var(--card);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 8px 14px;
  color: var(--muted);
  transition: background .12s, color .12s;
}
.pagination a:hover { background: var(--bg3); color: var(--accent); }
.pagination .current { background: var(--accent); color: #000; font-weight: 700; }

/* ── TAGS ────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
}
.tag--live  { background: var(--red);    color: #fff; }
.tag--new   { background: var(--accent); color: #000; }
.tag--major { background: gold;          color: #000; }

/* ── NO RESULTS ──────────────────────────────────────────────────── */
.no-results {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  border: 1px solid var(--border);
  background: var(--card);
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 2px solid var(--accent);
  padding: 32px 0 0;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 28px;
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand__logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
  color: #fff;
}
.footer-brand__logo span { color: var(--accent); }
.footer-brand p  { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.footer-attribution { font-size: 11px; color: var(--muted); }
.footer-attribution a { color: var(--accent); }
.footer-col h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.footer-col a {
  display: block;
  font-size: 12px;
  color: var(--muted);
  padding: 3px 0;
  transition: color .12s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.footer-bottom a { color: var(--accent); }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .gear-items   { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .topbar__nav  { display: none; }
  .hero         { grid-template-columns: 1fr; }
  .hero__sidebar{ flex-direction: row; overflow-x: auto; }
  .hero__side-item { min-width: 220px; border-bottom: none; border-right: 1px solid var(--border); }
  .content-row  { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid  { grid-template-columns: repeat(2, 1fr); }
  .calendar-layout { grid-template-columns: 1fr; }
  .calendar-filters { position: static; }
  .post-layout  { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
  .gear-items   { grid-template-columns: repeat(2, 1fr); }
  .region-grid  { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Amazon product blocks — float right in article body ─────────────────
   WordPress content uses: <div style="margin:30px 0;text-align:center">
     <a><img style="width:200px"></a>
     <div>Product name | </div>
   </div>
   We target these divs by detecting the text-align:center inline style
   via the child img with a fixed width style.
────────────────────────────────────────────────────────────────────── */

/* Product wrapper div — float right */
.post-body .post-content div:has(> a > img[style*="width:200px"]),
.post-body .post-content div:has(> a > img[style*="width: 200px"]) {
  float: right !important;
  clear: none !important;
  width: 210px !important;
  max-width: 210px !important;
  margin: 0 0 16px 20px !important;
  text-align: center !important;
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  padding: 8px !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Product image inside wrapper */
.post-body .post-content div:has(> a > img[style*="width:200px"]) img,
.post-body .post-content div:has(> a > img[style*="width: 200px"]) img {
  width: 180px !important;
  height: auto !important;
  margin: 0 auto 8px !important;
  border: none !important;
  display: block;
  float: none !important;
}

/* Product title/price link below image */
.post-body .post-content div:has(> a > img[style*="width:200px"]) div,
.post-body .post-content div:has(> a > img[style*="width: 200px"]) div {
  font-size: 11px !important;
  line-height: 1.4;
  color: var(--muted);
}
.post-body .post-content div:has(> a > img[style*="width:200px"]) div a,
.post-body .post-content div:has(> a > img[style*="width: 200px"]) div a {
  color: var(--accent) !important;
  font-size: 11px;
  font-family: "DM Mono", monospace;
}

/* YouTube / iframe — always full width, no float */
.post-body .post-content iframe {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px 0 !important;
  display: block;
}

/* Only clear floats after the article ends, not after each paragraph */
.post-body .post-content:after {
  content: "";
  display: table;
  clear: both;
}

/* ── PRODUCT GRID (gear / nutrition / training categories) ──────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.product-card {
  background: var(--card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background .15s;
}
.product-card:hover { background: var(--bg3); }
.product-card__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 16px;
  min-height: 180px;
}
.product-card__img {
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.product-card__no-img { font-size: 48px; text-align: center; line-height: 180px; }
.product-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__title { font-family: "Barlow Condensed", sans-serif; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--text); }
.product-card__title a:hover { color: var(--accent); }
.product-card__price { font-family: "DM Mono", monospace; font-size: 16px; font-weight: 700; color: var(--accent); }
.product-card__excerpt { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__btn { display: inline-block; background: var(--accent); color: #000; font-family: "Barlow Condensed", sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; text-align: center; margin-top: auto; transition: background .15s; }
.product-card__btn:hover { background: #00c853; }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }
