/* Scope: single race only */
.single-race .race-article { 
  max-width: none; /* use theme's content width */ 
}
.single-race .race-inner { 
  max-width: 920px; 
  margin: 0; /* left-align with brand */ 
}

/* Title + subtitle under it */
.single-race .race-title { 
  font-size: 2.2rem; 
  margin: 0 0 6px; 
  color: #2d4ddb; 
}
.single-race .race-subtitle {
  margin: 0 0 14px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333; /* make this #2d4ddb if you want it blue as well */
}

/* Stacked meta panel */
.single-race .race-meta-vertical {
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  max-width: 700px;
}
.single-race .race-meta-vertical .meta-row { 
  display: flex; 
  gap: 8px; 
}
.single-race .race-meta-vertical .meta-row strong { 
  min-width: 110px; 
}

/* Optional extra content (only shows when it's longer than subtitle) */
.single-race .race-content { 
  margin: 12px 0 18px; 
  max-width: 700px; 
}

/* Route map */
.single-race .race-route h2 { 
  margin: 12px 0; 
}
.single-race .route-wrap { 
  margin-bottom: 14px; 
}
.single-race .route-image { 
  max-width: 100%; 
  height: auto; 
  border-radius: 10px; 
  display: block; 
}

/* Register button – slightly bigger */
.single-race .race-register { 
  margin-top: 8px; 
}
.single-race .race-register-btn {
  display: inline-block;
  background: #246b3f;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 16px;
  border-radius: 10px;
}
.single-race .race-register-btn:hover { 
  filter: brightness(1.05); 
}

/* ==== IrishRunning single-race polish ==== */
:root{
  --ir-bg: #ffffff;        /* page background (try #f6f7f9 if you want light grey) */
  --ir-text: #0f172a;      /* near-black body/title */
  --ir-sub: #475569;       /* muted subtitle */
  --ir-accent: #1769ff;    /* links/accents (or use your green) */
  --ir-card: #ffffff;      /* card background */
  --ir-border: #e5e7eb;    /* card border */
  --ir-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  --ir-radius: 14px;
  --ir-maxw: 860px;        /* readable line length */
}

/* Page canvas + container */
body.single-race { 
  background: var(--ir-bg); 
}
.single-race .race-inner { 
  max-width: var(--ir-maxw); 
  margin: 0 auto; 
  padding: 24px 16px; 
}

/* Title + subtitle */
.single-race .race-title { 
  color: var(--ir-text) !important; 
  margin: 0 0 .25rem; 
  letter-spacing: -0.01em; 
}
.single-race .race-subtitle { 
  color: var(--ir-sub); 
  margin: .25rem 0 0; 
}

/* Meta card */
.race-meta-vertical{
  background: var(--ir-card);
  border: 1px solid var(--ir-border);
  border-radius: var(--ir-radius);
  box-shadow: var(--ir-shadow);
  padding: 16px 18px;
  margin: 12px 0 22px;
}
.race-meta-vertical .meta-row{ 
  display:flex; 
  gap:12px; 
  padding:.45rem 0; 
  align-items:flex-start;
}
.race-meta-vertical .meta-row strong{
  width: 120px; 
  min-width:120px; 
  color: var(--ir-text); 
  font-weight:700;
}
.race-meta-vertical .meta-row span a{ 
  text-decoration:none; 
  border-bottom: 1px dotted #cbd5e1;
}
.race-meta-vertical .meta-row span a:hover{ 
  border-bottom-style: solid; 
}

/* Section headings */
.race-parking h2, 
.race-course h2, 
.race-route h2{
  font-weight:800; 
  color: var(--ir-text); 
  margin: 28px 0 12px;
}

/* Route map presentation */
.race-route .route-image, 
.race-route iframe{
  width: 100%; 
  border:1px solid var(--ir-border);
  border-radius: var(--ir-radius); 
  box-shadow: var(--ir-shadow);
}

/* Register button refresh (kept at bottom) */
.race-register { 
  margin: 18px 0 32px; 
}
.race-register-btn{
  display:inline-block; 
  background:#16803d; 
  color:#fff; 
  padding:.7rem 1.05rem; 
  border-radius:12px; 
  font-weight:700; 
  text-decoration:none;
}
.race-register-btn:hover{ 
  filter:brightness(.95); 
}

/* Optional: harmonize link color site-wide on this page */
.single-race a{ 
  color: var(--ir-accent); 
}

/* ultra-subtle page watermark (optional) */
body.single-race::before{
  content:""; 
  position:fixed; 
  inset:0; 
  pointer-events:none; 
  background: url(/wp-content/uploads/irishrunning-bg.svg) center 120px / 900px no-repeat;
  opacity:.035;
}
