/* ============================================================
   CCC.css - shared stylesheet for AAA.html and BBB.html

   HOW TO EDIT
   1. Shared site appearance: edit the "shared" layer (AAA source).
   2. Live-text features: edit the "live-text" layer below it.
   3. The shared layer wins conflicts, even when a live-text selector
      is more specific. No !important declarations are required.
   4. BBB's body carries class="live-text" to limit its extra rules.

   Keep CCC.css beside both templates for this local test. If a page
   lives in a subfolder, adjust that page's stylesheet href to point
   to this same file; do not maintain separate copies.
============================================================ */

@layer live-text, shared;

/* ============================================================
   SHARED SITE STYLES - FROM AAA.css (priority)
   Original AAA rules and their order are preserved below.
============================================================ */
@layer shared {
/* --------------------------------------------------
   MASTER CONTROLLER 
-------------------------------------------------- */  

:root {
  --accent: #b30000;
  --dark: #222;
  --light: #ddd;
  --max-width: 900px;
  --radius: 8px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 0;
  padding-bottom: 0;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, li {
  line-height: inherit;
}

/* --------------------------------------------------
   HEADER 
-------------------------------------------------- */
.page-header {
  max-width: var(--max-width); /* my existing 900px setting */
  width: calc(100% - 2rem);
  margin: 1.2rem auto;
  box-sizing: border-box;
}

.site-header {
  background: #ddd;
  border-bottom: 0px solid #ddd;
  margin-bottom: 0;
  padding-bottom: 0;

}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .5rem 1rem;
}

.site-logo {
  height: 140px;
  flex-shrink: 0;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: left;
  line-height: 1.2;
}

/* --- MOBILE (≤600px) --- */

@media (max-width: 600px) {
  .header-inner {
    display: block;
    text-align: center;
    padding: .75rem .5rem;
    max-width: 100%;
  }

  .site-logo {
    display: block;
    margin: 0 auto .5rem auto;
    height: 55px;
  }

  .site-title {
    font-size: 1.3rem;
    text-align: center;
    white-space: normal;
    margin: 0;
  }
}

/* --- DESKTOP (≥601px) --- */

@media (min-width: 601px) {
  .header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .5rem 2rem;
    gap: 1rem;
  }

  .site-title {
    white-space: nowrap;
  }
}


/* --------------------------------------------------
   POPUPS
-------------------------------------------------- */

/*shows green drone image of pitch*/
.pitch-block {
  width: 100%;
  box-sizing: border-box;

  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 80 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><rect width='80' height='120' fill='%23d9f5d9'/><rect x='2' y='2' width='76' height='116' fill='none' stroke='white' stroke-width='1.5'/><line x1='2' y1='60' x2='78' y2='60' stroke='white' stroke-width='1.5'/><circle cx='40' cy='60' r='9' fill='none' stroke='white' stroke-width='1.5'/><rect x='20' y='2' width='40' height='18' fill='none' stroke='white' stroke-width='1.5'/><rect x='20' y='100' width='40' height='18' fill='none' stroke='white' stroke-width='1.5'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;

  border-radius: 6px;
  padding: 0.5rem;
  overflow-x: hidden;
}

.pitch-text {
  position: relative;
  font-size: 1.1rem;
  font-weight: 400;
  color: #033;
  z-index: 2;
}

.player-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.35);
    align-items: center;
    justify-content: center;
}

.player-popup.show {
    display: flex;
}

.player-popup-box {
    position: relative;
    width: min(340px, 82vw);
    max-height: 80vh;
}

.player-popup-box img {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.player-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 25px;
    line-height: 30px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.match-header {
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
}

.match-header h1 {
    margin: 0;
    text-align: center;
}

.match-logo {
    display: block;
    max-width: 100px;
    max-height: 100px;
    width: 100%;
    height: auto;
    margin: auto;
}


@media (max-width: 600px) {

    .match-header {
        grid-template-columns: 55px 1fr 55px;
        gap: 0.4rem;
        padding: 0.5rem;
    }

    .match-logo {
        max-width: 50px;
        max-height: 50px;
    }

}

/* --------------------------------------------------
   NAVIGATION
-------------------------------------------------- */

nav {
  background: #ddd;
  border-top: 5px solid #ddd;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  border: 2px solid #444;
  background: rgba(0,0,0,0.09);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

nav a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--dark);
}

/* --------------------------------------------------
   LINKS in BLUE
-------------------------------------------------- */

a.blue,
a.blue:visited,
a.blue:active,
a.blue:focus {
  color: blue;
  text-decoration: none;
}

a.blue:hover {
  color: #b30000; /* red */
  text-decoration: underline;
}


/* --------------------------------------------------
   UL in the Body of the page = NOT NAV
-------------------------------------------------- */

.page-ul {
  list-style: none;
  margin: 1rem 0 1.5rem 1.2rem;   /* reduced from 2rem */
  padding: 0;
}

.page-ul li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.1rem;          /* reduced from 1.4rem */
}

.page-ul li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}



/* --------------------------------------------------
   SPACING TAGS
-------------------------------------------------- */

space-xs { height: .1rem; display: block; }
space-s  { height: 10px; display: block; }
space-m  { height: 15px; display: block; }
space-l  { height: 20px; display: block; }
space-xl { height: 30px; display: block; }

/* --------------------------------------------------
   MAIN CONTENT
-------------------------------------------------- */

main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
 }

section {
  background: #fff;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
  border-radius: 6px;
  box-shadow:
    0 3px 6px rgba(0,0,0,0.22),
    -3px 0 6px rgba(0,0,0,0.12);
}

.preview-box {
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.70),
      rgba(255, 255, 255, 0.70)
    ),
    url("pic5260_169.jpg") center / cover no-repeat;
border: 5px solid #ff8888;
  box-sizing: border-box;
}


/* Mobile override */
@media (max-width: 600px) {
  section {
    padding: 0.7rem 1rem; /* narrower padding = wider white box */
  }
}


/* colour the background behind text from programme*/
.prog {
  background: #fdd;
  padding: 0.2rem 0.4rem;
  margin: 0.2rem 0;
  border-radius: 6px;
  box-shadow:
  0 3px 6px rgba(0,0,0,0.22),
  -3px 0 6px rgba(0,0,0,0.12);
}

/* --------------------------------------------------
   TYPOGRAPHY
-------------------------------------------------- */
blockquote {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.30;
    margin: 0.2rem 0.2rem;
    padding: .5rem .5rem;
    /*border-left: 4px solid #999;*/
}

h1.site-title {
  margin: 0;
  font-size: 2.0rem;
  font-weight: 800;
  line-height: 1.2;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
  text-decoration: underline;
  position: relative;
  text-decoration-color: #666;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}


h2 {
  margin: 0 0 0.5em 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--accent);
  text-align: left;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
}

p {
  margin: 0 0 0.8em 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--dark);
}




figcaption {
  font-size: 0.9rem;
  font-weight: 400;
  font-family: "Inter", "Roboto", Arial, sans-serif;
  color: #000;
  line-height: 1.4;
  margin-top: 0.35rem;

  text-align: left;     /* caption reads left‑to‑right */
  max-width: max-content;
  margin-left: auto;    /* keeps caption centered under the image */
  margin-right: auto;
}



p a {
  color: blue;
  font-weight: 600;
  text-decoration: underline;
}

p a:hover {
  color: red;
}

.footnote {
  text-align: left;
  font-size: 0.75rem;
  margin: 0px;
  padding: 0px;
  color: #555;
  font-style: italic
}

.credit {
  text-align: center;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: #555;
}

a.credit {
  color: blue;
  text-decoration: underline;
  font-weight: normal;
}

/* --------------------------------------------------
   MISC ELEMENTS
-------------------------------------------------- */

.highlight-box {
  background: #fdd;
  padding: 1rem;
  border-radius: var(--radius);
}

.center-img p {
  margin: 0;
  line-height: 1.1;
}

.center-img {
  text-align: center;
  margin: 0 auto;
  max-width: 450px;
  width: 100%; /* ensures the figure shrinks with the page */
}

.center-img img {
  max-width: 100%; /* image scales with container */
  height: auto;
  width: 100%; /* ensures the figure shrinks with the page */
  border: 1px solid black;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #666;
  font-size: 0.9rem;
}

hr.red {
  border: 2px solid #f00;
  border-radius: 2px;
  margin: 20px auto;
  width: 98%;
}

hr.grey {
  border: 1px solid #666;
  margin: 20px 0;
}

hr {
  width: 50%;
  margin: 2rem auto;
  border: none;
  border-top: 1px solid #ccc;
}

/* --------------------------------------------------
   TABLES
-------------------------------------------------- */

.lc-table {
  border-collapse: collapse;
  font-size: 0.8rem;
  width: 100%;
  table-layout: fixed;   /* predictable column widths */
  }

.lc-table td {
  padding: 3px 6px;
  border: 1px solid #888;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* First column: dates */
.lc-table td:first-child {
  width: auto;           /* adjust to taste */
  white-space: nowrap;   /* keeps 2013/14 on one line */
  font-weight: 600;
}

/* Second column: text */
.lc-table td + td {
  text-align: left;
}

 .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

.table-scroll table {
  width: max-content; /* keeps columns natural width */
  font-size: 0.9rem;  /* optional: slightly smaller text */
  background: #cff;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
}


/* --------------------------------------------------
   FEEDBACK FORM
-------------------------------------------------- */

.feedback-form {
  display: block;                 /* Prevent grid inheritance */
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid #000;
  border-radius: 10px;
  background-color: #fcc;
  box-sizing: border-box;
}

.feedback-form h2 {
  text-align: center;
}

.feedback-form label {
  display: block;
  margin-top: 1rem;
}

.feedback-form input,
.feedback-form textarea {
  width: 96%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border: 1px solid #000;
  border-radius: 7px;
}

.feedback-form button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  border: none;
  border-radius: 3px;
  background-color: #252;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

/* --------------------------------------------------
   I USED GRID INSTEAD OF A TABLE ON FAWNL.HTML
-------------------------------------------------- */

.grid-containertitle {
 display: grid;
 grid-gap: 0px 0px;
 grid-template-columns:100%;
 background-color: #eee;
 padding: 0px;
   font-size:  clamp(0.8rem, 1.0vw, 1.9rem);
}

.grid-container {
 display: grid;
 grid-gap: 0px 0px;
 grid-template-columns:12% 44% 44%;
 background-color: #eee;
 padding: 0px;
}


.grid-item1 {
  background-color: #fff;
  border: 1px solid black;
  padding: 0px;
  font-size: 9px;
  text-align: center;
}

.grid-item2 {
  background-color: #ffff88;
  border: 1px solid black;
  padding: 0px;
  font-size: 9px;
  text-align: center;
}


.grid-two-columns 
{display: grid; gap: 1rem; padding: 0rem;}

/* --------------------------------------------------
   I USE 'BIG MENU' ON MENU.HTML
-------------------------------------------------- */


.big-menu a 
{
display: block;
margin-bottom: 1rem;   /* vertical spacing between buttons */
padding: 0.45rem 0.9rem;
color: var(--dark);
text-decoration: none;
text-align:center;
border-radius: 8px;
border: 2px solid black;
background: #fff;
transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
box-sizing: border-box;
}

.big-menu a:last-child 
{margin-bottom: 0;}

.big-menu a:hover,
.big-menu a:focus 
{
background: var(--accent);
color: #fff;                 /* white text */
border-color: #000;
}

.card {
  background: #ddd;
  padding: 1rem;
  overflow: hidden; /* forces margins to stay inside */
}


/* --------------------------------------------------
   SPECIAL FOR PLAYER GALLERY
-------------------------------------------------- */

.wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: .8rem;
  padding: .5rem;
  background: #fff;
}

.box {
  background: #ccc;
  border: 1px solid gray;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box img {
  width: 100%;
  height: auto;
  border: 1px solid gray;
  border-radius: 4%;
  margin-bottom: 0.5rem;
}

.box h4 {
  margin: 0;
  line-height: 1.3;
}



.box:hover {border-color:#ff0000;}

/* --------------------------------------------------
   STYLES MOVED FROM new_updates.html
   Kept after existing rules to preserve their original precedence.
-------------------------------------------------- */

.btn-frame {
  display: inline-block;
  /* Optional: control corner style */
  border-radius: 4px;

  /* Base border */
  border: 1px solid #ccc;

  /* Subtle bevel using dual shadows */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,  /* top highlight */
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,      /* bottom shade */
    0 0 4px rgba(0, 0, 0, 0.25);             /* outer soft shadow */

  /* Optional: keep images crisp */
  background-color: #f8f8f8;
  padding: 4px; /* “frame” thickness */
}



/*======================================================*/
/* Slideshow layout and controls (moved from new_updates.html)*/
/*======================================================*/
.slideshow {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  touch-action: pan-y;      /* allow page scroll, allow horizontal swipes */
}

/*
.slideshow .slides {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
  touch-action: pan-y;
}


.slideshow img {
  width: 100%;
  flex-shrink: 0;

  box-sizing: border-box;
  border: 1px solid #000;
}*/


.slideshow .slides {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 9;
  transition: transform 0.4s ease;
  touch-action: pan-y;
}

.slideshow img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
  border: 0px solid #000;
  user-select: none;
  pointer-events: none;
}


/* Each slide */
.slideshow img {
  width: 100%;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
}

/* Navigation arrows */
.slideshow .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: #fff;
  border: 1px solid white;
  padding: 0.3rem 0.5rem;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.6;            /* faint by default */
  transition: opacity 0.3s;
}

.slideshow .nav:active {
  opacity: 0.9;             /* bright when tapped */
}

.slideshow .prev { left: 10px; }
.slideshow .next { right: 10px; }

/* Mobile: slightly smaller arrows */
@media (max-width: 600px) {
  .slideshow .nav {
    padding: 0.2rem 0.4rem;
    font-size: 1.6rem;
    opacity: 0.8;
  }
}

/* Dots: single scrollable row */
.dots {
  text-align: center;
  margin-top: 0.8rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 0.4rem;
}

.dots button {
  width: 10px;
  height: 10px;
  margin: 0 1px;
  border-radius: 50%;
  border: none;
  background: var(--light);
  cursor: pointer;
  transition: background 0.3s;
}

.dots button.active {
  background: var(--accent);
}


.dots::-webkit-scrollbar {
  display: none;  
}

.dots::-webkit-scrollbar-thumb {
  background: var(--light);
  border-radius: 3px;
}

.dots {
  pointer-events: none;
}

.dots button {
  pointer-events: auto;
}

/*--------------------------------------
   PORTRAIT SLIDESHOW — DESKTOP ONLY
   for portrait-only slideshows.
--------------------------------------

@media (min-width: 1000px) {
    .slideshow {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/*--------------------------------------
   LANDSCAPE SLIDESHOW — DESKTOP ONLY
   Comment out lines 160 to 166
--------------------------------------*/



/* Former inline styles: image widths and team sheet spacing. */
.center-img.center-img-wide {
  max-width: 600px;
}

.center-img.center-img-podcast {
  max-width: 400px;
}

.teamsheet.teamsheet-padded {
  padding: 1rem;
}
}

/* ============================================================
   LIVE-TEXT FEATURES - FROM BBB.css (lower priority)
   Identical pitch, popup, logo and team-sheet padding rules were
   removed here: they already exist once in the shared layer.
   Generic BBB body, paragraph and h2 rules yield to AAA's styles.
============================================================ */
@layer live-text {
/* ===== PAGE CONTAINER ===== */

:where(.live-text) .container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  background: #fff;
  padding: 1rem 2rem 3rem 2rem;
  box-sizing: border-box;
}

/* ===== MEDlA QUERY ===== */

@media (max-width: 480px) {
:where(.live-text) .container {
  padding: 1rem;
}
}

/* ===== HEADER ===== */

:where(.live-text) header {
  text-align: center;
  padding: 0; /* ← try this first */
  background: #f5f5f5;
  border-bottom: none;
}

:where(.live-text) header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: bold;
  color: #c00;
}

:where(.live-text) header .sub {
  color: #666;
  font-size: 1rem;
  margin-top: 0.3rem;
}

/* ===== UPDATE CARDS ===== */

:where(.live-text) .update {
  box-sizing: border-box;
  border-left: 4px solid #dddd00;
  padding-left: 1rem;
  margin-left: 0;
  border-bottom: 2px solid #444;
  padding-bottom: 1rem;
  max-width: 100%;
  overflow-wrap: break-word;
}

:where(.live-text) .update:last-child {
  border-bottom: none;
}

:where(.live-text) .update time {
  display: block;
  font-size: 0.85rem;
  color: #666;
  font-weight: bold;
  margin-top: 10px;      /* pushes it down */
  margin-bottom: 0.3rem;
}

:where(.live-text) .update h3 {
  margin: 0.2rem 0;
  font-size: 1.2rem;
  font-weight: bold;
}

/* ===== KEY EVENT (optional BBC style) ===== */

:where(.live-text) .key {
  border-left: 4px solid #f00;
  padding-left: 1rem;
}

:where(.live-text) .update.info {
  border-left: 4px solid #005bbc;
}

/* ===== TEAM SHEET ===== */

:where(.live-text) .teamsheet a {
  display: inline-block;
  margin: 0.2rem 0.4rem 0.2rem 0;
  color: #005bbc;
  text-decoration: none;
}

:where(.live-text) .teamsheet a:hover {
  text-decoration: underline;
}

:where(.live-text) .lineup a {
  display: inline-block;
  margin: 0.2rem 0.4rem 0.2rem 0;
  color: #005bbc;
  text-decoration: none;
}

/* ===== IMAGE CARD ===== */

:where(.live-text) .image-card {
  margin-top: 0.8rem;
  border-top: 2px solid #444;
  padding-top: 1rem;
  margin-top: 1rem;
}

:where(.live-text) .image-card figure {
  margin: 0;
}

:where(.live-text) .image-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* 6x4 scaled */
  object-fit: cover;
  display: block;
}

:where(.live-text) .image-card figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.3rem;
}

:where(.live-text) .hidden {
  display: none;
}

/* ===== FIXED SCORE BAR ===== */

:where(.live-text) .scorebar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 1rem 1rem;
  box-sizing: border-box;
  text-align: center;
  z-index: 999;
  --dark: #fff; /* AAA paragraph colours remain readable on this dark bar. */
}

:where(.live-text) .scorebar .team {
  font-size: 1rem;
  margin: 0;
}

:where(.live-text) .scorebar .score {
  font-size: 1.4rem;   /* tweak to taste */
  font-weight: bold;
  color: #ff0;         /* bright yellow */
  margin: 0 0.3rem;
}

:where(.live-text) .scorebar .timestamp {
  font-size: 0.75rem;
  color: #ccc;
}

:where(.live-text) .header-status {
  float: right;
  margin-top: -1.2rem; /* adjust to taste */
}

:where(.live-text) .update-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 0 auto;
  padding: 0;
}

:where(.live-text) .update-image .caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.2rem;
  text-align: center;
  display: block;
  width: 100%;
}

:where(.live-text) .space-xs {
  height: 5px;
}

:where(.live-text) .space-s {
  height: 10px;
}

:where(.live-text) .space-m {
  height: 15px;
}

:where(.live-text) .space-l {
  height: 20px;
}

:where(.live-text) .space-xl {
  height: 30px;
}

:where(.live-text) .space-xs,
:where(.live-text) .space-s,
:where(.live-text) .space-m,
:where(.live-text) .space-l,
:where(.live-text) .space-xl {
  display: block;
  padding-top: 1px; /* prevents margin collapsing */
  margin: 0;
}

/* ===== LIVE-TEXT HEADER AND TIME LABELS ===== */

:where(.live-text) header.live-header {
  background: #ccc;
}

:where(.live-text) .container.match-summary {
  margin: 0 auto;
  background: #ddd;
  padding: 0.2rem 0 0 0;
  border: 0px solid black;
}

:where(.live-text) .match-header .match-versus {
  color: gray;
}

:where(.live-text) header h2.match-competition {
  color: #00b;
}

:where(.live-text) .scorebar .timestamp.timestamp-hidden {
  display: none;
}

:where(.live-text) .container.live-updates {
  text-align: left;
}

:where(.live-text) span.match-minute {
  background: yellow;
  padding: 3px 6px;
  border: 1px solid black;
}

:where(.live-text) span.minute-highlight {
  background: yellow;
}

:where(.live-text) img.image-bordered {
  border: 1px solid black;
}

/* Physical space after the content for the fixed bar.
   This avoids overriding AAA's body padding-bottom: 0. */
:where(.live-text) .scorebar-clearance {
  height: 140px;
}

}
