/* ============ Grand Slam Tour (grand-slam-tour.html) ============
   Uses the site tokens from style.css. Each stop sets --surface and --runoff for its court. */
.gst { --surface: #2f6fd0; --runoff: #24529e; background: var(--navy); color: var(--white); }
.gst[data-surface="ao"] { --surface: #2f6fd0; --runoff: #24529e; }
.gst[data-surface="rg"] { --surface: #c4632f; --runoff: #9b4b23; }
.gst[data-surface="wb"] { --surface: #4f8b3f; --runoff: #3b6c2f; }
.gst[data-surface="us"] { --surface: #3c64b9; --runoff: #4d8a5a; }

.gst-inner { max-width: 1120px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.gst h1, .gst h2, .gst h3 { font-family: var(--font-display); letter-spacing: .02em; text-wrap: balance; }
.gst .kicker a { color: inherit; }

/* hero */
.gst-hero { padding: 8.5rem 0 2.5rem; background:
  radial-gradient(ellipse 60% 70% at 85% 0%, rgba(202, 219, 42, .16), transparent 70%),
  linear-gradient(180deg, #071029, var(--navy)); }
.gst-hero h1 { margin: .4rem 0 1rem; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.02; text-transform: uppercase; }
.gst-hero h1 em { font-style: italic; font-weight: 400; color: var(--ball); }
.gst-lede { max-width: 64ch; font-size: 1.1rem; opacity: .9; }

/* route: four stops in season order, with a ball that travels between them */
.gst-tour { padding: 1rem 0 3rem; }
.gst-route { position: relative; list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.gst-route::before { content: ""; position: absolute; left: 12%; right: 12%; top: 22px; border-top: 3px dashed rgba(202, 219, 42, .45); }
.gst-route li { position: relative; }
.gst-route__ball {
  position: absolute !important; left: 0; top: 10px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%;
  background: var(--ball); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .18), 0 0 18px rgba(202, 219, 42, .6);
  transition: transform .9s cubic-bezier(.45, 0, .2, 1); pointer-events: none;
}
.gst-pin {
  display: grid; justify-items: center; gap: .15rem; width: 100%; padding: 2.7rem .5rem .9rem; cursor: pointer;
  background: rgba(255, 255, 255, .04); color: var(--white); font: inherit; text-align: center;
  border: 1px solid rgba(207, 232, 255, .18); border-radius: 16px; transition: border-color .2s ease, background .2s ease;
}
.gst-pin:hover { border-color: var(--ball); }
.gst-pin[aria-pressed="true"] { background: rgba(202, 219, 42, .12); border-color: var(--ball); }
.gst-pin:focus-visible { outline: 3px solid var(--ball); outline-offset: 2px; }
.gst-pin__month { font: 600 .75rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--ball); }
.gst-pin__name { font: 600 1.15rem var(--font-display); letter-spacing: .03em; line-height: 1.15; }
.gst-pin__city { font-size: .85rem; opacity: .75; }

/* a stop */
.gst-stop__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1rem; }
.gst-stop__head h2 { margin: .2rem 0 0; font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; }
.gst-stop__head h2 span { font-size: .55em; font-weight: 400; color: var(--ball); letter-spacing: .08em; margin-left: .4rem; }
.gst-stop__body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.gst-noscript { opacity: .8; }

/* stadium plan with tappable spots */
.gst-plan { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(207, 232, 255, .18); }
.gst-plan__art { display: block; width: 100%; height: auto; }
.gst-plan__ground { fill: #0b1736; }
.gst-plan__stands { fill: #1b2b5e; }
.gst-plan__stands-inner { fill: #14214a; }
.gst-plan__rows { fill: none; stroke: rgba(207, 232, 255, .22); stroke-width: 3; stroke-dasharray: 2 6; }
.gst-plan__runoff { fill: var(--runoff); }
.gst-plan__court { fill: var(--surface); }
.gst-plan__lines { fill: none; stroke: #fff; stroke-width: 2.5; }
.gst-plan__net { stroke: #050818; stroke-width: 5; }
.gst-plan__roof { fill: none; stroke: rgba(207, 232, 255, .4); stroke-width: 3; stroke-dasharray: 10 8; }
.gst-plan__gate { fill: none; stroke: var(--ball); stroke-width: 5; stroke-linecap: round; }
.gst-plan__building { fill: #1b2b5e; stroke: rgba(207, 232, 255, .35); stroke-width: 2; }
.gst-plan__cup { fill: none; stroke: #e3bd45; stroke-width: 3; stroke-linejoin: round; }
.gst-plan__wall { stroke: rgba(207, 232, 255, .6); stroke-width: 3; stroke-linecap: round; }
.gst-plan__caption { fill: rgba(245, 247, 255, .7); font: 600 15px var(--font-display); letter-spacing: .14em; text-anchor: middle; text-transform: uppercase; }

.gst-spot {
  position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem .35rem .45rem; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 600 .85rem var(--font-display); letter-spacing: .05em; color: var(--white);
  background: rgba(5, 8, 24, .82); border: 2px solid rgba(207, 232, 255, .35);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.gst-spot:hover { border-color: var(--ball); transform: translate(-50%, -50%) scale(1.05); }
.gst-spot:focus-visible { outline: 3px solid var(--ball); outline-offset: 2px; }
.gst-spot[aria-pressed="true"] { background: var(--ball); border-color: var(--ball); color: #141b05; }
.gst-spot__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 0 rgba(202, 219, 42, .7); animation: gst-pulse 2.2s ease-out infinite; }
.gst-spot[aria-pressed="true"] .gst-spot__dot { background: #141b05; animation: none; }
@keyframes gst-pulse { 0% { box-shadow: 0 0 0 0 rgba(202, 219, 42, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(202, 219, 42, 0); } }

/* info panel */
.gst-panel {
  display: grid; gap: .7rem; min-width: 0; padding: 1.4rem; border-radius: 22px;
  background: linear-gradient(160deg, rgba(39, 67, 160, .35), rgba(13, 21, 51, .9));
  border: 1px solid rgba(207, 232, 255, .18); border-top: 4px solid var(--surface);
}
.gst-panel:focus { outline: none; }
.gst-panel h3 { margin: 0; font-size: 1.6rem; }
.gst-panel__kicker { margin: 0; font: 600 .78rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--ball); }
.gst-panel__meta { margin: 0; opacity: .75; }
.gst-panel__sub { margin: .4rem 0 0; font: 600 .95rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.gst-panel__note { margin: 0; font-size: .92rem; opacity: .8; }
.gst-facts { margin: 0; padding-left: 1.15rem; display: grid; gap: .45rem; }
.gst-out { color: var(--ball); font-weight: 700; }
.gst-tip { display: grid; gap: .7rem; justify-items: start; margin-top: .3rem; padding: 1rem; border-radius: 14px; background: rgba(202, 219, 42, .1); border: 1px dashed rgba(202, 219, 42, .55); }
.gst-tip p { margin: 0; }

.gst-champs { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.gst-champs th, .gst-champs td { text-align: left; padding: .45rem .55rem; border-bottom: 1px solid rgba(207, 232, 255, .14); vertical-align: top; }
.gst-champs thead th { font: 500 .78rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.gst-champs tbody th { font-family: var(--font-display); font-weight: 500; color: var(--ball); white-space: nowrap; }
.gst-more summary { cursor: pointer; font-weight: 700; color: var(--ball); }
.gst-more .gst-champs { margin-top: .5rem; }
.gst-more .gst-champs tbody th { color: var(--white); white-space: normal; }

.gst-timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; display: grid; gap: .7rem; border-left: 2px solid var(--surface); }
.gst-timeline li { position: relative; }
.gst-timeline li::before { content: ""; position: absolute; left: calc(-1.1rem - 7px); top: .4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--ball); }
.gst-timeline span { display: block; font: 600 1rem var(--font-display); letter-spacing: .06em; color: var(--ball); }

/* did you know */
.gst-fact { padding: 2.2rem 0; background: linear-gradient(90deg, rgba(202, 219, 42, .1), transparent 60%), #0a1330; border-block: 1px solid rgba(207, 232, 255, .12); }
.gst-fact__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.gst-fact__inner > div { flex: 1 1 420px; min-width: 0; }
.gst-fact__text { margin: .3rem 0 0; font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.35; }

/* at a glance */
.gst-glance { padding: 3.5rem 0; }
.gst-glance h2 { margin: .2rem 0 1.2rem; font-size: clamp(1.8rem, 4vw, 2.4rem); text-transform: uppercase; }
.gst-table-wrap { overflow-x: auto; }
.gst-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .95rem; }
.gst-table th, .gst-table td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid rgba(207, 232, 255, .14); }
.gst-table thead th { font: 500 .78rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.gst-table tbody th { font-family: var(--font-display); font-weight: 600; }
.gst-table a { color: var(--ball); }
.gst-note { margin-top: 1rem; font-size: .85rem; opacity: .7; max-width: 80ch; }

@media (max-width: 860px) {
  .gst-stop__body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gst-hero { padding-top: 7rem; }
  .gst-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gst-route::before, .gst-route__ball { display: none; }
  .gst-pin { padding-top: .9rem; }
  .gst-spot { padding: .3rem .55rem .3rem .4rem; font-size: .72rem; }
  .gst-spot__dot { width: 9px; height: 9px; }
  .gst-fact__text { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gst-route__ball, .gst-pin, .gst-spot { transition: none; }
  .gst-spot__dot { animation: none; }
}
