/* =========================================================================
   Single ground page - poster hero + proportional-time timeline
   ========================================================================= */

.g-back {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px 0;
}
.g-back a {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--claret); text-decoration: none;
}
.g-back a:hover { color: var(--sky); }

/* ---- poster hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--claret);
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(15,30,22,.90) 0%, rgba(15,30,22,.55) 38%, rgba(15,30,22,.15) 70%, rgba(15,30,22,.30) 100%);
}
.hero--noimg::after { background: linear-gradient(135deg, rgba(31,77,58,.4), rgba(15,30,22,.55)); }
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: 40px 20px 34px;
  color: #f4f1e8;
}
.hero__club {
  font-family: var(--font-sans);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700;
  color: var(--sky-2);
  margin-bottom: 8px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.04;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center;
  margin-top: 16px;
  font-family: var(--font-sans); font-size: .92rem; color: #e6e1d2;
}
.hero__meta .dot-sep { opacity: .5; }
.hero__meta .level-dot { vertical-align: middle; }
.hero__note {
  margin-top: 14px;
  display: inline-block;
  background: rgba(200,147,42,.18);
  border: 1px solid rgba(224,175,82,.5);
  color: #f4e9d2;
  font-size: .82rem;
  padding: 6px 12px; border-radius: 999px;
}

/* ---- content column ----------------------------------------------------- */
.g-main { max-width: var(--maxw); margin: 0 auto; padding: 8px 20px 20px; }

/* timeline scrubber */
.timeline { margin: 34px 0 10px; }
.timeline h2 {
  font-family: var(--font-sans); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); margin: 0 0 22px;
}
.tl-track {
  position: relative;
  height: 56px;
  margin: 0 14px 8px;
}
.tl-line {
  position: absolute; left: 0; right: 0; top: 12px; height: 2px;
  background: var(--border);
}
.tl-dot {
  position: absolute; top: 0;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.tl-dot__mark {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--parchment);
  border: 3px solid var(--claret-2);
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.tl-dot__year {
  font-family: var(--font-sans); font-size: .74rem; font-weight: 700;
  color: var(--muted); white-space: nowrap;
}
.tl-dot:hover .tl-dot__mark,
.tl-dot:focus-visible .tl-dot__mark { transform: scale(1.25); border-color: var(--sky); }
.tl-dot[aria-selected="true"] .tl-dot__mark {
  background: var(--sky); border-color: var(--claret); transform: scale(1.2);
}
.tl-dot[aria-selected="true"] .tl-dot__year { color: var(--ink); }

/* ---- visit detail panel ------------------------------------------------- */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  padding: 26px 0 8px;
  border-top: 1px solid var(--border);
}
.visit__media { min-width: 0; }
.visit__figure { margin: 0; }
.visit__photo {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--parchment-2);
}
.visit__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.visit__thumb {
  width: 68px; height: 52px; padding: 0; border-radius: 6px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: var(--parchment-2);
}
.visit__thumb img { width: 100%; height: 100%; object-fit: cover; }
.visit__thumb[aria-current="true"] { border-color: var(--sky); }
.visit__caption { font-size: .82rem; color: var(--muted); margin-top: 8px; }

.visit__body { min-width: 0; }
.visit__badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.visit__date {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; color: var(--ink);
  margin: 0 0 4px;
}
.visit__fixture { color: var(--muted); font-size: .96rem; margin: 0 0 18px; }
.visit__fixture .score {
  font-weight: 700; color: var(--ink);
  background: var(--parchment-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 8px; margin-left: 4px;
}
.visit__narrative {
  font-family: var(--font-serif);
  font-size: 1.14rem; line-height: 1.75; color: var(--ink);
}
.visit__narrative p { margin: 0 0 1em; }
.visit__source { margin-top: 18px; font-family: var(--font-sans); font-size: .82rem; color: var(--muted); }

.g-notfound { max-width: 640px; margin: 80px auto; padding: 0 20px; text-align: center; }
.g-notfound h1 { font-weight: 500; }

@media (max-width: 800px) {
  .visit { grid-template-columns: 1fr; gap: 24px; }
  /* Account before photographs on a narrow screen. Stacked, the image plus its
     thumbnail strip fills most of the viewport, pushing the date, fixture and
     Bob's writing below the fold - so the page reads as a photo with the story
     hidden under it. Desktop keeps the photo on the left, where the two columns
     sit side by side and neither buries the other. */
  .visit__body  { order: 1; }
  .visit__media { order: 2; }
  .hero { min-height: 48vh; }
}
