.scptfim-home-image img {
  height: auto;
  max-width: 100%;
  object-fit: cover;
  width: auto;
}

.scptfim-last-update {
  font-size: 15px;
  line-height: 1.825;
  margin-top: 20px;
}
.scptfim-last-update span {
  font-size: 18px;
  font-weight: 600;
  color: #ff2a2a;
}

/** 
 * Race Single Page Styles
 */
.dynamic-content-template.type-race {
  background-color: #fff;
}

.scptfim-race__link-item:not(:last-child) {
  margin-bottom: 1rem;
}
.scptfim-race__link-label,
.scptfim-race--info .scptfim-race__link-label {
  font-weight: 500;
  color: #9f9f9f;
}

.scptfim-race--info__name {
  margin-bottom: 1rem;
}

.scptfim-race--info__meta {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1rem;
}

.scptfim-race--info__meta > div {
  flex: 1 1 50%;
}

.race-news__item {
  border: 2px solid #efefef;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 0.6rem 0;
  background: #fff;
}

.race-news__item[open] .race-news__summary,
.race-news__summary:hover {
  background-color: var(--sidecar-partner-hellgrau);
}

/* summary row */
.race-news__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  user-select: none;
}

/* remove default marker (Chrome/Safari) */
.race-news__summary::-webkit-details-marker {
  display: none;
}

/* custom marker */
.race-news__summary::before {
  content: '▶';
  display: inline-block;
  width: 1.2em;
  opacity: 0.7;
  transform: translateY(1px);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.race-news__item[open] .race-news__summary::before {
  content: '▼';
  opacity: 0.9;
}

.race-news__date {
  font-weight: 600;
  opacity: 0.85;
  white-space: nowrap;
}

.race-news__title {
  font-weight: 600;
  flex: 1;
}

/* animated content wrapper */
.race-news__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.race-news__item[open] .race-news__content {
  grid-template-rows: 1fr;
}

.race-news__content-inner {
  overflow: hidden;
  padding: 1.25rem 1rem 2rem;
}

.race-news__content-inner p {
  margin: 0.6rem 0 0 0;
}

.race-news__download a {
  text-decoration: none;
  font-weight: 600;
}

.race-news__download a:hover {
  text-decoration: underline;
}

/* optional: nicer focus */
.race-news__summary:focus {
  outline: none;
}

.race-news__summary:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 2px;
}

.race-news__content .scptfim-pdf-wrapper {
  margin-top: 2.25rem;
}

.no-race-content {
  font-size: 1rem;
  color: #9f9f9f;
}

.scptfim-race.scptfim-race--news .race-news__content,
.scptfim-race.scptfim-race--paddock .scptfim-race__item {
  font-size: 1rem;
}

.scptfim-race__title {
  margin-bottom: 15px;
}

.scptfim-race__title a {
  text-decoration: none;
}

.scptfim-race__meta {
  font-size: 1.25rem;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scptfim-race__sep {
  border: none;
  height: 2px;
  background-color: #e0e0e0;
  margin: 2.25rem 0;
}

.scptfim-race.scptfim-race--header {
  color: #fff;
}

.scptfim-race--header .scptfim-race__title {
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
  letter-spacing: 0.04em;
}

.post-type-archive-race .scptfim-race {
  padding: 40px;
}

.post-type-archive-race .scptfim-race__title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

.post-type-archive-race .scptfim-race__title a:hover {
  text-decoration: underline;
}

.scptfim-race.scptfim-race--links a {
  font-size: 1.25rem;
}

.post-type-archive-race .scptfim-race.scptfim-race--header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--sidecar-partner-textblau);
}

.post-type-archive-race .scptfim-race__info {
  display: flex;
  flex-direction: column;
}

.post-type-archive-race article.race {
  border-radius: 6px;
}

.post-type-archive-race article.race::after {
  content: '';
  display: block;
  border: none;
  height: 2px;
  background-color: #e0e0e0;
}

.post-type-archive-race article.race:last-child::after {
  display: none;
}

.post-type-archive-race .scptfim-race__cta a {
  background-color: var(--sidecar-partner-midblau);
  color: #fff;
  text-decoration: none;
  padding: 10px 30px;
  border-radius: 6px;
}
.post-type-archive-race .scptfim-race__cta a:hover {
  background-color: var(--sidecar-partner-textblau);
}

/* ---------------------- 
 * Partner
  ----------------------- */
.scptfim-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 35rem;
  min-height: 6.25rem;
}

.scptfim-partner-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px;
  margin-bottom: 2rem;
  border-left: 8px solid #e9ecef;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  transition: border-color 0.3s ease;
}

.scptfim-partner-item.scptfim-partner-tier1 {
  border-left-color: #d4af37;
  /*border-left-color: #e0b84c; */
}

.scptfim-partner-item.scptfim-partner-tier2 {
  border-left-color: #4a6fa5;
}

.scptfim-partner-item.scptfim-partner-tier3 {
  border-left-color: #e0e0e0;
}

.scptfim-logo-container img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.scptfim-partner-text {
  font-family: var(--gp-font--oswald);
  font-weight: 500;
  text-transform: uppercase;
  font-style: oblique;
  font-size: 32px;
}

/**
 * PDF List Styles
 */
.scptfim-pdf-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.scptfim-pdf-item {
  /* flex: 0 1 calc(50% - 10px); */
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  background-color: var(--sidecar-partner-hellgrau);
  padding: 20px;
  border-radius: 6px;
  font-size: 15px;
}

.scptfim-pdf-item a > .scptfim-pdf-icon {
  max-width: 64px;
}

.scptfim-pdf-item a {
  font-size: 18px;
  font-weight: 500;
}
.scptfim-pdf-item a:hover,
.scptfim-pdf-item a:focus,
.scptfim-pdf-item a:active {
  color: #f13e43;
}
.scptfim-pdf-item span {
  font-weight: 500;
}

.scptfim-pdf-icon {
  width: 75px;
}

.scptfim-pdf-meta {
  margin-top: 15px;
  line-height: 1.5;
}
.scptfim-pdfs-list .no-pdf {
  color: #ff2a2a;
  font-weight: 600;
}

/**
 * Media Queries
 */
@media (max-width: 768px) {
  .post-type-archive-race .scptfim-race {
    padding: 40px 20px;
  }
  .scptfim-race__meta {
    font-size: 1rem;
  }
  .scptfim-pdf-item a > .scptfim-pdf-icon {
    max-width: 48px;
  }
  .scptfim-pdf-item a {
    font-size: 1rem;
  }
}
@media (max-width: 987px) {
  .post-type-archive-race .scptfim-race__info {
    flex: 0 1 100%;
  }
  .scptfim-race__meta {
    margin-bottom: 10px;
  }
}
