/*
Theme Name: Raiders Boxseat Child
Theme URI: https://romfordraiders.co.uk/
Description: Boxseat child theme for an ice hockey club homepage using SportsPress and Max Mega Menu.
Author: Graham Ford
Version: 1.0.4
Template: boxseat
License: GPL-2.0-or-later
Text Domain: raiders-companion-homepage
*/

body.raiders-boxseat-child #page,
body.theme-raiders-boxseat-child #page,
body.custom-background #page,
body.raiders-boxseat-child .site,
body.theme-raiders-boxseat-child .site,
body.custom-background .site,
body.raiders-boxseat-child .site-content,
body.theme-raiders-boxseat-child .site-content,
body.custom-background .site-content,
body.raiders-boxseat-child .content-area,
body.theme-raiders-boxseat-child .content-area,
body.custom-background .content-area,
body.raiders-boxseat-child .site-main,
body.theme-raiders-boxseat-child .site-main,
body.custom-background .site-main,
body.raiders-boxseat-child .raiders-child-front-page,
body.theme-raiders-boxseat-child .raiders-child-front-page,
body.custom-background .raiders-child-front-page {
  background: transparent !important;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .content-wrapper,
body.wp-child-theme-raiders-boxseat-child:not(.home) .content-area,
body.wp-child-theme-raiders-boxseat-child:not(.home) .site-main {
  background: transparent !important;
}

body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .content-wrapper,
body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .content-area,
body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .site-main {
  background: transparent !important;
}

body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .content-wrapper {
  padding-bottom: 2rem;
  padding-top: 2rem;
}

body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .entry-header,
body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .page-header {
  background: #002f6c !important;
  border: 2px solid #002f6c !important;
  border-bottom: 0 !important;
  margin: 0 1rem !important;
  padding: 0.85rem 1.25rem !important;
}

body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .entry-title,
body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .page-title {
  color: #ffffff !important;
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  text-transform: uppercase;
}

body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .entry-title a,
body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .page-title a {
  color: inherit !important;
  text-decoration: none;
}

body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .entry-content,
body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .entry-summary,
body:is(.wp-theme-raiders-boxseat-child, .wp-child-theme-raiders-boxseat-child, .raiders-boxseat-child, .theme-raiders-boxseat-child):not(.home) .page-content {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid #002f6c !important;
  border-top: 0 !important;
  color: #111827;
  margin: 0 1rem 2rem !important;
  padding: 1.25rem !important;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .content-wrapper {
  padding-bottom: 2rem;
  padding-top: 2rem;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-header,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-header {
  background: #002f6c !important;
  border: 2px solid #002f6c !important;
  border-bottom: 0 !important;
  margin: 0 1rem !important;
  padding: 0.85rem 1.25rem !important;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-title,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-title {
  color: #ffffff !important;
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  text-transform: uppercase;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-title a,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-title a {
  color: inherit !important;
  text-decoration: none;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-summary,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid #002f6c !important;
  border-top: 0 !important;
  color: #111827;
  margin: 0 1rem 2rem !important;
  padding: 1.25rem !important;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content a,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-summary a,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content a {
  color: #002f6c;
  font-weight: 700;
  text-decoration: none;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content a:hover,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content a:focus,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-summary a:hover,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-summary a:focus,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content a:hover,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content a:focus {
  color: #002f6c;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #002f6c;
  box-sizing: border-box;
  padding: 1rem;
  width: 100%;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery h2,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery h3,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery h4,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery h5,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery h6,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .sp-table-caption,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .sp-template-title,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery h2,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery h3,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery h4,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery h5,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery h6,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .sp-table-caption,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .sp-template-title {
  background: #002f6c !important;
  color: #ffffff !important;
  flex: 0 0 100% !important;
  font-size: clamp(1.25rem, 2vw, 1.6rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 1.25rem 0 1rem !important;
  padding: 0.7rem 1rem !important;
  text-transform: uppercase;
  width: 100% !important;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery > :first-child,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery > :first-child {
  margin-top: 0 !important;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .gallery,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .sp-player-gallery,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .sp-gallery-wrapper,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .gallery,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .sp-player-gallery,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .sp-gallery-wrapper {
  align-items: flex-start !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .gallery br,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .gallery br {
  display: none !important;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .gallery-item,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .sp-player-gallery-item,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .gallery-item,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .sp-player-gallery-item {
  float: none !important;
  flex: 0 0 170px !important;
  margin: 0 !important;
  max-width: 170px !important;
  text-align: center;
  width: 170px !important;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .gallery-icon,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .sp-player-gallery-thumbnail,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .gallery-icon,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .sp-player-gallery-thumbnail {
  align-items: center;
  background: #f3f6fb;
  display: flex;
  height: 180px;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery img,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery img {
  display: block;
  height: 170px !important;
  margin: 0 auto;
  max-height: 170px !important;
  max-width: 150px !important;
  object-fit: contain;
  width: auto !important;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .gallery-caption,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .wp-caption-text,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .sp-player-name,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .sp-player-gallery-name,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .gallery-caption,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .wp-caption-text,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .sp-player-name,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .sp-player-gallery-name {
  background: #002f6c !important;
  color: #ffffff !important;
  display: block !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0.55rem 0.5rem !important;
  text-align: center !important;
  width: 100% !important;
}

body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .gallery-caption a,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .wp-caption-text a,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .sp-player-name a,
body.wp-child-theme-raiders-boxseat-child:not(.home) .entry-content .sp-template-player-gallery .sp-player-gallery-name a,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .gallery-caption a,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .wp-caption-text a,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .sp-player-name a,
body.wp-child-theme-raiders-boxseat-child:not(.home) .page-content .sp-template-player-gallery .sp-player-gallery-name a {
  color: #ffffff !important;
  text-decoration: none;
}

body.wp-child-theme-raiders-boxseat-child.single-sp_player .entry-content .sp-player-number,
body.wp-child-theme-raiders-boxseat-child.single-sp_player .entry-content .sp-number,
body.wp-child-theme-raiders-boxseat-child.single-sp_player .entry-content .sp-template-player-details .number,
body.wp-child-theme-raiders-boxseat-child.single-sp_player .entry-content .sp-template-player-details .data-number,
body.wp-child-theme-raiders-boxseat-child.single-sp_player .page-content .sp-player-number,
body.wp-child-theme-raiders-boxseat-child.single-sp_player .page-content .sp-number,
body.wp-child-theme-raiders-boxseat-child.single-sp_player .page-content .sp-template-player-details .number,
body.wp-child-theme-raiders-boxseat-child.single-sp_player .page-content .sp-template-player-details .data-number,
body.single-sp_player .sp-player-number,
body.single-sp_player .sp-number,
body.single-sp_player .sp-template-player-details .number,
body.single-sp_player .sp-template-player-details .data-number,
body.single-sp_player .sp-template-player-details [class*="number"] {
  background: #002f6c !important;
  border: 2px solid #002f6c !important;
  color: #ffffff !important;
  display: inline-block;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  min-width: 3rem;
  padding: 0.45rem 0.85rem;
  text-align: center;
}

.raiders-news-listing {
  margin: 2rem auto;
  max-width: 1180px;
  padding: 0 1rem 2rem;
}

.raiders-news-listing__header {
  background: #002f6c;
  border: 2px solid #002f6c;
  border-bottom: 0;
  padding: 0.85rem 1.25rem;
}

.raiders-news-listing__title {
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.raiders-news-listing__content {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #002f6c;
  padding: 1.25rem;
}

.raiders-news-listing__description {
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.raiders-news-listing__description > *:first-child {
  margin-top: 0;
}

.raiders-news-listing__description > *:last-child {
  margin-bottom: 0;
}

.raiders-news-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.raiders-news-card {
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 47, 108, 0.22);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.raiders-news-card:hover,
.raiders-news-card:focus-within {
  box-shadow: 0 16px 34px rgba(0, 47, 108, 0.3);
  transform: translateY(-2px);
}

.raiders-news-card__link {
  color: #002f6c;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.raiders-news-card__link:hover,
.raiders-news-card__link:focus {
  color: #002f6c;
  text-decoration: none;
}

.raiders-news-card__link:focus-visible {
  outline: 3px solid #f6c343;
  outline-offset: 3px;
}

.raiders-news-card__image {
  aspect-ratio: 3 / 4;
  background: #f3f6fb;
  display: block;
  overflow: hidden;
  width: 100%;
}

.raiders-news-card__thumbnail {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.raiders-news-card__placeholder {
  align-items: center;
  color: #002f6c;
  display: flex;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  text-transform: uppercase;
}

.raiders-news-card__body {
  display: block;
  padding: 1rem;
}

.raiders-news-card__title {
  display: block;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 800;
  line-height: 1.25;
}

.raiders-news-listing .navigation.pagination {
  margin-top: 2rem;
}

.raiders-news-listing .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.raiders-news-listing .page-numbers {
  background: #ffffff;
  border: 2px solid #002f6c;
  color: #002f6c;
  font-weight: 800;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.raiders-news-listing .page-numbers.current,
.raiders-news-listing .page-numbers:hover,
.raiders-news-listing .page-numbers:focus {
  background: #002f6c;
  color: #ffffff;
}

.raiders-single-post {
  margin: 2rem auto;
  max-width: 980px;
  padding: 0 1rem 2rem;
}

.raiders-single-post__article {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #002f6c;
  box-shadow: 0 12px 28px rgba(0, 47, 108, 0.22);
  padding: clamp(1rem, 3vw, 2rem);
}

.raiders-single-post__image {
  align-items: center;
  background: #f3f6fb;
  display: flex;
  justify-content: center;
  margin: 0 auto 1.5rem;
  max-width: 760px;
  width: 100%;
}

.raiders-single-post__thumbnail {
  display: block;
  height: auto;
  max-height: 620px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.raiders-single-post__header {
  margin: 0 auto 1.25rem;
  max-width: 760px;
  text-align: center;
}

.raiders-single-post__title {
  color: #002f6c;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0;
}

.raiders-single-post__content {
  color: #111827;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 760px;
}

.raiders-single-post__content > *:first-child {
  margin-top: 0;
}

.raiders-single-post__content > *:last-child {
  margin-bottom: 0;
}

.raiders-single-post__content a {
  color: #002f6c;
  font-weight: 700;
  text-decoration: none;
}

.raiders-single-post__content a:hover,
.raiders-single-post__content a:focus {
  color: #002f6c;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.raiders-single-post__page-links {
  color: #002f6c;
  font-weight: 800;
  margin-top: 1.5rem;
}

.raiders-site-header {
  position: relative;
  z-index: 20;
  width: 100%;
}

.raiders-top-menu {
  background: #002f6c;
  border-bottom: 4px solid #f6c343;
  color: #ffffff;
  width: 100%;
}

.raiders-top-menu__inner {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 72px;
  padding: 0 1rem;
}

.raiders-top-menu__brand {
  flex: 0 0 auto;
}

.raiders-top-menu__brand a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.raiders-top-menu__brand img {
  display: block;
  max-height: 56px;
  width: auto;
}

.raiders-top-menu__items,
.raiders-top-menu .mega-menu {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.raiders-top-menu__items a,
.raiders-top-menu .mega-menu a {
  color: #ffffff;
  display: block;
  font-weight: 700;
  padding: 1.5rem 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
}

.raiders-top-menu__items a:hover,
.raiders-top-menu__items a:focus,
.raiders-top-menu .mega-menu a:hover,
.raiders-top-menu .mega-menu a:focus {
  background: #f6c343;
  color: #002f6c;
}

@media (max-width: 782px) {
  .raiders-top-menu__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem;
  }

  .raiders-top-menu__items,
  .raiders-top-menu .mega-menu {
    justify-content: flex-start;
  }

  .raiders-top-menu__items a,
  .raiders-top-menu .mega-menu a {
    padding: 0.75rem 0.5rem;
  }

  .raiders-news-grid {
    grid-template-columns: 1fr;
  }
}
