/* 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;
}

/* The lead story's headline a step under the section headings (Wes, 27 Nov): at 30px it ran to three lines
   beside its picture. */
.cms-gb3-news__lead h2 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

.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;
  }
  .gb3-calendar-feature__copy h3 {
    font-size: 24px;
  }
  .cms-gb3-news__lead h2 {
    font-size: 21px;
  }
}
/* 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 venue and dates, so for a while they
   went - but then nothing said the cards scroll (Wes, 27 Nov). So they are back, at each edge of the rail level
   with the cards' pictures, where they cover only the picture's edge: the rail's 26px top padding, the card's
   24px, its round label and gap, then half the 100px picture, less half the arrow. gb3-2026.js still hides both
   when the cards fit and dims each at its end. */
@media screen and (max-width: 39.9375em) {
  .gb3-calendar-rail__nav {
    top: 120px;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: none;
  }
  .gb3-calendar-rail__nav--prev {
    left: 0;
  }
  .gb3-calendar-rail__nav--next {
    right: 0;
  }
  .gb3-calendar-rail li > span,
  .gb3-calendar-rail time {
    letter-spacing: 0.02em;
  }
}
/* No team biography on the teams list, by the series' request (24 Nov): the list is logos, cars and
   line-ups, and the biography is one click away on each team's own page. GB3 keeps it. */
.gb3-team-profiles__bio {
  display: none;
}

/* News headlines a step lighter and smaller, by the series' review (27 Nov): at GB3's 700-weight sizes they
   outweighed everything around them. The homepage's list of stories and /news's Latest list and archive read
   as lists at 16px/500; /news's lead story keeps its size over them. GB3 keeps its own. */
.cms-gb3-news__list strong,
.gb3-news-list__briefing h3,
.gb3-news-list__article h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.gb3-news-list__lead h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

@media screen and (max-width: 63.998em) {
  .gb3-news-list__lead h2 {
    font-size: 28px;
  }
}
@media screen and (max-width: 39.9375em) {
  .gb3-news-list__lead h2 {
    font-size: 24px;
  }
  .gb3-news-list__briefing h3,
  .gb3-news-list__article h3 {
    font-size: 15px;
  }
}
/* A story's headline on white rather than GB3's black band, by the series' request (27 Nov), so the page runs
   on from the yellow bar into the story without a dark block between them. */
.gb3-article__hero {
  background: var(--gb3-light);
  color: var(--gb3-ink-light);
}

.gb3-article h1 {
  color: var(--gb3-ink-light);
}

/* On a phone the story's headline at 30px rather than the theme's 42px (Wes, 27 Nov), which ran a typical
   headline to six lines and filled the screen before the picture. */
@media screen and (max-width: 39.9375em) {
  .gb3-article h1 {
    font-size: 30px;
    line-height: 1.1;
  }
}
.gb3-article__eyebrow time {
  color: var(--gb3-ink-light-meta);
}

.gb3-article__standfirst {
  color: var(--gb3-ink-light-body);
}

/* On a desktop the photograph beside the story rather than full width between the headline and the copy,
   where it took a whole screen before the first line could be read. The headline runs across the top; the
   story takes a reading column on the left and the photograph the right, held in view while the story
   scrolls. A story with no photograph keeps its column centred. Below 64em they stack as GB3 has them. */
@media screen and (min-width: 64em) {
  .gb3-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: start;
    -moz-column-gap: 56px;
         column-gap: 56px;
    /* Full width, so the article's white runs to the edges over the page's dark; the padding keeps its
       content to the shell, centred. */
    padding: 0 max(var(--gb3-gutter), (100% - var(--gb3-shell)) / 2 + var(--gb3-gutter));
  }
  .gb3-article__hero {
    grid-column: 1/-1;
  }
  .gb3-article__hero-content {
    width: auto;
    margin: 0;
    padding: 64px 0 40px;
  }
  .gb3-article__media {
    position: sticky;
    top: 120px;
    grid-row: 2;
    grid-column: 2;
    width: auto;
  }
  .gb3-article__media img {
    aspect-ratio: 4/3;
  }
  .gb3-article__content {
    grid-row: 2;
    grid-column: 1;
    width: auto;
    margin: 0;
    padding: 0 0 72px;
  }
  .gb3-article:not(:has(.gb3-article__media)) .gb3-article__content {
    grid-column: 1/-1;
    width: min(100%, 820px);
    margin: 0 auto;
  }
}
/* The sign-in page's introduction (the login widget's .intro-text, on the entries site, front 37, which shares
   this sheet) in the body text's colour. GB3's theme gives it the pale grey meant for its dark bands, which on
   Copa's white page read as faded next to every other paragraph on the site. */
.intro-text {
  color: var(--gb3-ink-light-body);
}

/* The homepage calendar, by Wes's review (27 Nov).

   The dates in the venues' type rather than the mono labels', and larger - a date is what a visitor scans the
   calendar for. More room between the panel's parts and the cards'. */
.gb3-calendar-feature__copy {
  padding: 44px;
}

.gb3-calendar-feature__copy > span {
  margin-bottom: 12px;
}

.gb3-calendar-feature__copy h3 {
  margin-bottom: 12px;
}

.gb3-calendar-feature__copy > strong {
  margin-bottom: 4px;
  font-family: var(--gb3-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.gb3-calendar-feature .gb3-round-championships {
  margin-top: 18px;
}

.gb3-calendar-feature .gb3-round-testing {
  margin-top: 14px;
}

.gb3-calendar-feature__countdown {
  margin-top: 26px;
}

.gb3-calendar-feature__links {
  padding-top: 28px;
}

.gb3-calendar-rail li {
  gap: 14px;
  padding: 24px;
}

.gb3-calendar-rail strong {
  font-size: 19px;
}

/* The card's round number - "ROUND 01" - up from the 13px label size, so the three cards read as the calendar's
   order at a glance. */
.gb3-calendar-rail li > span {
  font-size: 16px;
  letter-spacing: 0.08em;
}

.gb3-calendar-rail time {
  font-family: var(--gb3-font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* Each championship's label filled with its own colour - GB3's red, GB4's blue, from RaceAdmin - in white type,
   where it was a faint tint behind an accent bar that all but vanished on the yellow. The same on the calendar
   page and the event page, so the series read the same everywhere. */
.gb3-round-championships .gb3-round-championships__item {
  padding: 6px 10px;
  border-left: 0;
  background: var(--gb3-round-championship-accent, var(--gb3-ink-light));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.gb3-round-championships .gb3-round-championships__round,
.gb3-round-championships .gb3-round-championships__round + .gb3-round-championships__races::before {
  opacity: 0.85;
}

/* The round cards under the panel: the round, its picture, venue and dates only. Which races and testing it
   holds is in the panel, which a card fills when it is clicked. */
.gb3-calendar-rail .gb3-round-championships,
.gb3-calendar-rail .gb3-round-testing {
  display: none;
}
