/* Copa del Sol Series (copadelsolseries.com, site 3628) - the GB3 2026 theme in Spanish-flag yellow.

   An override, loaded AFTER gb3-2026.css by front 36's resource rows - not a copy of it. Copa's pages are
   GB3's widgets and layout, marked up with GB3's class names, so they need GB3's stylesheet; all this does
   is recolour it through the theme's tokens. A full copy (which this file first was) misses every fix made
   to the GB3 theme after the day it was taken, and had to rename nothing to work.

   A light accent needs dark text on it, which GB3's red never did. The theme reads that from
   --gb3-on-red-ink wherever it puts text on the accent, and from --gb3-on-red-light-ink on the -light
   variant. If something on this site shows white text on yellow, gb3-2026.scss has a rule that sets it
   directly - give it the token there.

   Contrast: dark ink on #ffbb00 is 11.6:1. --gb3-red-light is the accent where it sits on white (links,
   table headings) and behind white text on light sections, so it is a deep gold: 5.4:1 on white, and
   white on it 5.4:1. Jack's #edbf42 was 1.7:1 on white. */
:root {
  --gb3-red: #ffbb00;
  --gb3-red-light: #8a6400;
  --gb3-on-red-ink: #0a0a0b;
  --gb3-on-red: rgba(10, 10, 11, 0.78);
  --gb3-red-text: var(--gb3-red-light);
  --gb3-countdown-tint: rgba(10, 10, 11, 0.08);
  /* The hero's next-round panel stays dark glass: white over the photo reads, and yellow glass under white
     text did not. */
  --gb3-red-glass: rgba(10, 10, 11, 0.78);
  --gb3-portrait: radial-gradient(circle at 50% 38%, #6b4e00, #261c00 72%);
}

/* The footer's logo. The front's logo is black artwork, drawn on the yellow bar at the top, and the footer is
   dark - so there it is turned white, rather than the site carrying a second file. */
.gb3-footer__mark img {
  filter: brightness(0) invert(1);
}

/* No "at a glance" counts in the hero, by the series' request. They were what pushed the next-round panel
   to the right on a desktop, so it now has to say so itself; below that the footer stacks. */
.gb3-home-hero__stats {
  display: none;
}

@media screen and (min-width: 64em) {
  .gb3-home-hero__event {
    margin-left: auto;
  }
}
/* Each series' news in its own colour, by Jack's request (12 Nov): GB3's stories red and GB4's blue, where
   every tag was the site's yellow. The classes come from the story's category (Gb3NewsSeries), and the
   colours set the tag and the headline's hover alike.

   GB3's is its deep red, #c2141b (--gb3-red-light in gb3-2026), not the bar red #ed1b23: the tag is 11px
   type, and white on #ed1b23 is only 4.0:1 where #c2141b is 5.6:1. GB4's is its own brand blue, #0e76bb
   (gb4-2024.scss), white on it 4.9:1 and it on white the same. */
.gb3-news--gb3 {
  --gb3-news-tag: #c2141b;
  --gb3-news-tag-ink: #fff;
  --gb3-news-hover: #c2141b;
}

.gb3-news--gb4 {
  --gb3-news-tag: #0e76bb;
  --gb3-news-tag-ink: #fff;
  --gb3-news-hover: #0e76bb;
}

/* No "From the paddock" over the news, on the homepage (a ::before in gb3-2026) or beside /news's Latest. */
.cms-gb3-snapshot--news .cms-gb3-snapshot__heading::before {
  content: none;
}

.gb3-news-list__briefing > header span {
  display: none;
}

/* No "All news" / "Race in GB3" links under a story, by the series' request: the second one is GB3's own
   sign-up page, which Copa has no counterpart for. */
.gb3-article__footer {
  display: none;
}

/* Type, by the series' review (Tristan, 20 Nov): one size per kind of heading across the homepage, and nothing
   anyone needs to read - navigation, dates, labels, links - below 13px on a desktop or a phone. The GB3 theme's
   9-11px monospace labels stay as they are on GB3's own site; this lifts them on Copa only.

   Section headings: News was 38px/800, the calendar 34px/700 and the teams 26px/700, with the calendar's
   next-round venue (44px) bigger than the section it sits in. All section headings are now 36px/800, and the
   headings inside a section sit below that. */
.cms-gb3-snapshot__heading h2,
.cms-tagged-news__heading h2,
.cms-gb3-item-list > h2,
.gb3-championship__header h2,
.gb3-championship--teams .gb3-championship__header h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.05;
}

.cms-gb3-news__lead h2 {
  font-size: 30px;
}

.gb3-calendar-feature__copy h3 {
  font-size: 32px;
}

@media screen and (max-width: 40em) {
  .cms-gb3-snapshot__heading h2,
  .cms-tagged-news__heading h2,
  .cms-gb3-item-list > h2,
  .gb3-championship__header h2,
  .gb3-championship--teams .gb3-championship__header h2 {
    font-size: 28px;
  }
  .cms-gb3-news__lead h2,
  .gb3-calendar-feature__copy h3 {
    font-size: 24px;
  }
}
/* Navigation. */
.gb3-primary-item > a,
.gb3-submenu-toggle,
.gb3-utility-links a {
  font-size: 14px;
}

/* Dates, labels and small links: 13px at least, the mono labels with a little less tracking to keep their
   width. */
.gb3-calendar-rail li > span,
.gb3-calendar-rail time,
.gb3-round-championships__item,
.gb3-calendar-feature__copy > span,
.gb3-calendar-feature__copy > strong,
.gb3-calendar-feature__countdown small,
.gb3-home-hero__event > span,
.gb3-home-hero__event small,
.gb3-home-hero__event a,
.gb3-news-tag,
.gb3-news-tag b,
.gb3-news-tag span,
.gb3-championship__header .gb3-kicker,
.gb3-calendar-page__rounds time,
.gb3-calendar-page__tests time,
.gb3-news-list__meta time,
.gb3-news-list__meta span,
.gb3-news-list__read,
.cms-gb3-news__lead time,
.gb3-news--gb3 time,
.gb3-news--gb4 time,
.gb3-article__eyebrow time,
.gb3-team-card__content > span,
.gb3-team-profiles__body header > span,
.gb3-directory-tools,
.gb3-profile-tools,
.gb3-directory-tools button,
.gb3-footer-label,
.gb3-footer__column h2,
.gb3-footer__contact h2,
.gb3-copyright {
  font-size: 13px;
  letter-spacing: 0.06em;
}

.cms-gb3-news__all,
.gb3-championship__all-link,
.gb3-calendar-feature__copy > a,
.gb3-home-hero__actions a,
.gb3-team-profiles__enquire,
.gb3-team-profiles__more,
.gb3-footer__contact-link,
.gb3-footer__column a,
.gb3-profile-facts dt,
.gb3-profile-facts dd,
.gb3-team-page__identity p,
.gb3-team-profiles > header span,
.gb3-team-profiles > header a,
.gb3-directory-team-grid > header span,
.gb3-directory-team-grid > header a,
.gb3-team-page__others > header a,
table th {
  font-size: 14px;
}

/* The round cards share the row between them. On a three-round series three 200px cards left most of the
   row empty beside them; they still scroll sideways where there are more than fit. */
.gb3-calendar-rail li {
  flex-grow: 1;
}

/* The menu's labels on one line each: "About the Series" broke over two lines and made the bar uneven. */
.gb3-primary-item > a,
.gb3-submenu-toggle {
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.gb3-primary-item > a,
.gb3-primary-item > .gb3-submenu-toggle:not(.gb3-submenu-icon) {
  padding: 0 11px;
}

/* Copa's menu - six sections and the Enter the Series button - needs about 850px, which the bar has from 80em.
   Below that, down to where every GB3 site switches anyway (64em), it would run off the end of the bar, so the
   menu button takes over from 80em here rather than from 64em. */
@media screen and (min-width: 64em) and (max-width: 79.9375em) {
  .gb3-primary-links {
    display: none;
  }
  .gb3-primary-nav .grid-x > .gb3-live-timing {
    margin-left: auto;
  }
  .gb3-menu-toggle {
    display: inline-flex;
    width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    margin: 12px 0 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: var(--gb3-on-red-ink, #fff);
    cursor: pointer;
  }
  .gb3-menu-toggle > span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }
  /* The panel opens inside the sticky header, so it scrolls itself: taller than the screen, its lower links
     could only be reached once the page behind it had scrolled to the end. 96px is the header above it. */
  .gb3-mobile-nav {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--gb3-line-dark);
    background: var(--gb3-dark-band);
  }
  .gb3-mobile-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--gb3-line-dark-soft);
    color: var(--gb3-ink-dark);
    font-family: var(--gb3-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  /* A menu item with children and no link of its own: a label over its children, not a link to nowhere. */
  .gb3-mobile-nav .gb3-mobile-nav__heading {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--gb3-line-dark-soft);
    color: var(--gb3-ink-dark);
    font-family: var(--gb3-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  /* A section that opens on a tap: the heading is the <summary>, with a chevron that turns when open. */
  .gb3-mobile-nav__group > summary {
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
  }
  .gb3-mobile-nav__group > summary::-webkit-details-marker {
    display: none;
  }
  .gb3-mobile-nav__group > summary::after {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transition: transform 150ms ease;
  }
  .gb3-mobile-nav__group[open] > summary::after {
    transform: rotate(-135deg);
  }
  /* A section with no children is a plain link in the panel, and should line up with the headings above it.
     With #header, because the pre-2026 `#header nav a` (a 68px-tall bar link, 13px in, grey) outranks
     `.gb3-mobile-nav a` and left News and Contact taller, smaller and indented differently. */
  #header .gb3-mobile-nav > a {
    height: auto;
    min-height: 48px;
    margin: 0;
    padding: 0 16px;
    border-bottom: 1px solid var(--gb3-line-dark-soft);
    color: var(--gb3-ink-dark);
    font-size: 14px;
    letter-spacing: 0.08em;
  }
  #header .gb3-mobile-nav .gb3-mobile-subitem {
    height: auto;
    min-height: 44px;
  }
  /* The bar's call-to-action item keeps its fill in the menu panel. */
  #header .gb3-mobile-nav a.gb3-primary-item--cta {
    background: var(--gb3-red);
    color: var(--gb3-on-red-ink, #fff);
  }
  /* With #header: the pre-2026 `#header nav a` is an ID selector and otherwise wins, putting the children
     back in the parents' uppercase at the parents' indent. */
  #header .gb3-mobile-nav .gb3-mobile-subitem {
    padding-left: 32px;
    color: var(--gb3-ink-dark-secondary);
    font-family: var(--gb3-font);
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
  }
  /* #header, to outrank `#header nav a` - the menu is a nav inside the header, and that rule's grey won,
     leaving grey text on the accent fill (unreadable on Copa's yellow, weak on GB3's red). */
  #header .gb3-mobile-nav .gb3-live-timing {
    display: flex;
    min-height: 48px;
    margin: 0;
    border: 0;
    background: var(--gb3-red);
    color: var(--gb3-on-red-ink, #fff);
  }
}
/* On a phone the rail's arrows sat in the middle of the cards, over the dates. A phone scrolls the rail by
   swiping, so they go; and the dates keep to one line. */
@media screen and (max-width: 39.9375em) {
  .gb3-calendar-rail__nav {
    display: none !important;
  }
  .gb3-calendar-rail li > span,
  .gb3-calendar-rail time {
    letter-spacing: 0.02em;
  }
}
