body.live-results {
    background: #404040;
    color: white;
}

body.live-results #MeetDetails,
body.live-results #bottom_nav,
body.live-results #MSOFooter {
    display: none !important;
}

div.in-rotation-wrapper {
    max-width: 977px;
}


.event-content .dates .thru {
    padding-left: 3px;
    padding-right: 3px
}

.event-content .dates li {
    display: table-cell
}

/* GROK Bot Edit (2026-10-17): Results pre-score view (Karl). Folded in from the removed Results.e.prescore.css; Results.c.layout loads before Results.d.responsive, which has no overlapping selectors.
   1) .mso-live-area (Results.xml, above the breadcrumb nav): the All Access banner (<LiveDisclaimer/>, close X hidden here only) beside the LIVE STATUS ticker (<LiveProgress/>, untouched).
   2) faint results-grid behind the "Waiting for scores" block (#EmptyResults .mso-wait-plain), theme-aware. */
/* 1) live area */
body.results .mso-live-area { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .5rem; margin-bottom: .5rem; }
body.results .mso-live-area:empty,
body.results .mso-live-area:not(:has(*)) { display: none; }
body.results .mso-live-area > .card.mso-allaccess-offer { flex: 1 1 22rem; min-width: 0; width: auto; margin: 0 !important; }
body.results .mso-live-area > #live_status_container { flex: 0 0 auto; margin-left: auto; }
body.results .mso-live-area > #live_status_container > .float-end { float: none !important; margin-top: 0 !important; }
/* GROK Bot Edit (2026-10-17): no close X on the banner inside the live area (Karl). Results-page only; the X and its Bootstrap data-bs-dismiss stay in the LiveDisclaimer template.
   Hiding the button also drops the space .card-body reserved for it (pe-5). */
body.results .mso-live-area > .card.mso-allaccess-offer > .mso-live-disclaimer-close { display: none !important; }
body.results .mso-live-area > .card.mso-allaccess-offer > .card-body { padding-right: 1rem !important; }
@media (max-width: 575.98px) {
  body.results .mso-live-area > #live_status_container { flex: 1 1 100%; display: flex; justify-content: flex-end; }
}

/* 2) faint grid behind the waiting message: header band + row lines + a few column lines, masked to fade toward the edges */
body.results #EmptyResults .mso-wait-plain { position: relative; isolation: isolate; overflow: hidden; border-radius: .75rem; --mso-grid-line: rgba(23, 52, 79, .085); --mso-grid-head: rgba(23, 52, 79, .045); }
body.mso-theme-dark.results #EmptyResults .mso-wait-plain { --mso-grid-line: rgba(143, 163, 187, .10); --mso-grid-head: rgba(143, 163, 187, .05); }
body.results #EmptyResults .mso-wait-plain::before {
  content: "";
  position: absolute;
  inset: .25rem 0 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, var(--mso-grid-head) 0, var(--mso-grid-head) 2.1rem, transparent 2.1rem),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.1rem - 1px), var(--mso-grid-line) calc(2.1rem - 1px), var(--mso-grid-line) 2.1rem),
    repeating-linear-gradient(to right, transparent 0, transparent calc(16.666% - 1px), var(--mso-grid-line) calc(16.666% - 1px), var(--mso-grid-line) 16.666%);
  -webkit-mask-image: radial-gradient(ellipse 70% 85% at 50% 40%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 85% at 50% 40%, #000 30%, transparent 100%);
}
body.results #EmptyResults .mso-wait-plain > * { position: relative; }

/* Reload pill: spin state set by _399_results.015.js (2s, then reload) */
body.results #EmptyResults .mso-wait-reload.is-reloading { pointer-events: none; cursor: progress; filter: none; }

/* GROK Bot Edit (2026-10-18): Nearby sort on /Results (Karl). Markup from Documents.Xsl/MeetDriven.xsl, rendered only when the Active rows carry distance_miles
   (no location = no new markup, so nothing here applies). Pill sits in the empty bottom-left corner of the card (city/dates are bottom-right).
   Within 50 mi = MSO green (theme var), beyond = neutral. "Nearby Meets" (< 5 mi) is one full-width card with a VIEW SCORES button. */
body.results .mso-meetdriven .meet-container .mso-dist-pill {
  position: absolute; left: 1.05rem; bottom: .85rem; z-index: 1;
  display: inline-block; max-width: 28%; padding: .15rem .5rem; border-radius: 999px;
  font-size: .72rem; font-weight: 800; line-height: 1.3; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--mso-muted, #61738a); background: rgba(97, 115, 138, .10); border: 1px solid rgba(97, 115, 138, .28);
}
body.results .mso-meetdriven .meet-container .mso-dist-pill.is-near {
  color: var(--mso-green, #087f63); background: rgba(8, 127, 99, .10); border-color: rgba(8, 127, 99, .35);
}
body.mso-theme-dark.results .mso-meetdriven .meet-container .mso-dist-pill { background: rgba(143, 163, 187, .12); border-color: rgba(143, 163, 187, .30); }
body.mso-theme-dark.results .mso-meetdriven .meet-container .mso-dist-pill.is-near { background: rgba(88, 217, 160, .12); border-color: rgba(88, 217, 160, .40); }
body.results .mso-meetdriven .meet-container[data-distance] .meet-meta { max-width: 66%; }

body.results .mso-meetdriven .mso-nearby-top { margin-bottom: 1rem; }
body.results .mso-meetdriven .mso-nearby-top .mso-nearby-title { margin: 0 0 .5rem; font-size: .9rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mso-green, #087f63); }
body.results .mso-meetdriven .mso-nearby-top .mso-meetdriven-grid { grid-template-columns: 1fr; }
body.results .mso-meetdriven .mso-nearby-top .meet-container { border-color: var(--mso-green, #087f63) !important; border-width: 2px !important; min-height: 0; }
body.results .mso-meetdriven .mso-nearby-top .mso-nearby-cta { align-self: flex-start; margin: .1rem 0 .4rem; padding: .5rem 1.25rem; font-size: .95rem; letter-spacing: .05em; }
@media (max-width: 600px) {
  body.results .mso-meetdriven .mso-nearby-top .mso-nearby-cta { align-self: stretch; text-align: center; }
}
/* GROK Bot Edit (2026-10-18): selected athlete (/results/{meetid}/{gymnastid}#I...) row highlight. Results/Script/_399_results.016.js marks the row
   with the existing current_athlete classes; their old rules sit in the disabled Results.z.OLD.css, so nothing showed. Theme token, works in dark. */
body.results #results.results-wrapper table.table > tbody > tr[data-gymnastid].current_athlete.current_athlete > td { /* outranks the zebra rules in mso.Results_override.004.css (203/423) and mso.theme.system */
	--mso-current-athlete-bg: color-mix(in srgb, var(--lb-gold, var(--mso-gold, #c49214)) 22%, transparent);
	--bs-table-accent-bg: var(--mso-current-athlete-bg);
	--bs-table-bg-type: var(--mso-current-athlete-bg);
	--bs-table-bg-state: var(--mso-current-athlete-bg);
	background-color: var(--mso-current-athlete-bg) !important;
}

/* GROK Bot Edit (2026-10-19): favorite star on the selected-athlete card (#athlete .card-header h3, Results/incl-Athlete.xsl). Same .mso-fav-star
   markup, classes and theme tokens as the results-row star (Library.Style/mso.Results_override.004.css); always shown (rows hide the outline star until hover on desktop). */
body.results #athlete .card-header .mso-fav-star {
	cursor: pointer;
	margin-left: .3em;
	padding: .1em .15em;
	font-size: .85em;
	color: var(--mso-green, #087f63);
	-webkit-tap-highlight-color: transparent;
	transition: color .15s ease, opacity .15s ease;
}
body.results #athlete .card-header .mso-fav-star--off {
	color: var(--mso-muted, #61738a) !important;
	opacity: .75;
}
body.results #athlete .card-header .mso-fav-star[data-starred] {
	text-shadow: 0 0 .6em rgba(8, 127, 99, .25);
}
body.mso-theme-dark.results #athlete .card-header .mso-fav-star[data-starred] {
	text-shadow: 0 0 .7em rgba(43, 214, 160, .35);
}
body.results #athlete .card-header .mso-fav-star:focus {
	outline: none;
}
body.results #athlete .card-header .mso-fav-star:focus-visible {
	outline: 2px solid var(--mso-cyan, #0aa8bc);
	outline-offset: 2px;
	border-radius: 2px;
}
@media (hover: hover) {
	body.results #athlete .card-header .mso-fav-star:hover {
		color: var(--mso-cyan, #0aa8bc) !important;
		opacity: 1;
	}
}
@media (prefers-reduced-motion: reduce) {
	body.results #athlete .card-header .mso-fav-star { transition: none; }
}

/* GROK Bot Edit (2026-10-19): no-photo silhouette on the selected-athlete card (/no-photo-silhouette.svg, img.mso-ath-nophoto from incl-Athlete.xsl or the
   _399_results.016.js fallback swap). The SVG is transparent; the theme panel tokens give it a System/Dark background, fitted like the photo box (8:9). */
body.results #athlete img.mso-ath-nophoto { /* intrinsic 208x234 (8:9), capped by img-fluid like a profile photo */
	aspect-ratio: 8 / 9;
	object-fit: contain;
	background-color: var(--mso-panel-3, #eef4fa);
	background-image: linear-gradient(180deg, var(--mso-panel-3, #eef4fa), var(--mso-panel-2, #f7faff));
}
/* GROK Bot Edit (2026-10-19): Dark theme, quieter placeholder (Karl: borders too strong against dark). Thumbnail border drops to the dark line token
   and the outline is dimmed, so the silhouette reads as a placeholder, not a framed image. System theme unchanged. */
body.mso-theme-dark.results #athlete img.mso-ath-nophoto {
	border-color: var(--mso-line, #1f3043);
	opacity: .55;
}

/* GROK Bot Edit (2026-10-22): Live Status widget makeover (Karl P1). Same markup, ids and JS hooks (Results.xml <LiveProgress>: #live_status, #meet_status;
   GROK Bot Edit (2026-10-22): #progress_circle removed; mso.Live.js updateLiveStatus still adds text-success / text-warning / text-danger / border-* to #live_status). One rounded panel pill:
   a status dot + small uppercase "LIVE STATUS" label, then the state. Theme tokens only (--mso-panel-2 / --mso-line / --mso-muted / --mso-green / --mso-gold /
   --mso-danger, defined in both mso.theme.system and mso.theme.dark), and the existing mso-allaccess-live-pulse keyframes from those themes for the dot.
   Waiting = gold dot, Live = green pulsing dot, Died/Stopped error = red dot. Overrides the old 250px box (Results.b.components.css #live_status),
   the 48px line-height (Results.d.responsive.css) and the borderless phone variant (Results.d.responsive.css max-width 767px). */
body.results #live_status_container #live_status {
    --mso-ls-dot: var(--mso-gold, #c49214);
    display: inline-flex !important;
    align-items: center;
    gap: .55rem;
    width: auto;
    min-height: 0;
    margin: 0 !important;
    padding: .35rem .85rem !important;
    border: 1px solid var(--mso-line, #cbd8e6) !important;
    border-radius: 999px;
    background-color: var(--mso-panel-2, #f7faff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    font-size: .8rem !important;
    line-height: 1.2;
    font-weight: 400;
    color: var(--mso-muted, #61738a) !important;
    text-transform: none;
    white-space: nowrap;
}
body.results #live_status_container #live_status.text-success { --mso-ls-dot: var(--mso-green, #087f63); }
body.results #live_status_container #live_status.text-danger { --mso-ls-dot: var(--mso-danger, #d6454a); }
body.results #live_status_container #live_status > div {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}
/* label: dot + LIVE STATUS */
body.results #live_status_container #live_status > div:first-child {
    position: relative;
    padding-left: 1rem !important;
    color: var(--mso-muted, #61738a);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
body.results #live_status_container #live_status > div:first-child::before,
body.results #live_status_container #live_status > div:first-child::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: .55rem;
    height: .55rem;
    margin-top: -.275rem;
    border-radius: 50%;
    background: var(--mso-ls-dot);
}
body.results #live_status_container #live_status > div:first-child::after { opacity: 0; }
body.results #live_status_container #live_status.text-success > div:first-child::after { animation: mso-allaccess-live-pulse 1.8s ease-out infinite; }
/* state text */
body.results #live_status_container #live_status #meet_status {
    min-width: 5.5rem;
    color: var(--mso-muted-2, #52667e);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: left;
}
body.results #live_status_container #live_status.text-success #meet_status { color: var(--mso-green, #087f63); }
body.results #live_status_container #live_status.text-danger #meet_status { color: var(--mso-danger, #d6454a); }
@media (max-width: 767.98px) {
    body.results #live_status_container #live_status {
        padding: .25rem .7rem !important;
        font-size: .75rem !important;
    }
    body.results #live_status_container #live_status #meet_status { min-width: 4.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    body.results #live_status_container #live_status > div:first-child::after { animation: none; }
}
