.site-main {
  margin-block-start: 0;
}

.site-main > *,
.site-main > .wide-page > * {
  margin-block-start: 0;
}

.home-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px);
}

.home-section--last {
  padding-bottom: clamp(56px, 8vw, 112px);
}

.page-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 80px);
}

.page-section--last {
  padding-bottom: clamp(56px, 8vw, 112px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--wp--preset--color--text-soft);
}

.breadcrumb a:hover {
  color: var(--wp--preset--color--white);
}

.breadcrumb__sep,
.breadcrumb [aria-current] {
  color: var(--wp--preset--color--cyan);
}

.photo-hero {
  position: relative;
  min-height: clamp(300px, 32vw, 440px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--wp--preset--color--panel);
}

.photo-hero:has(.photo-hero__lead) {
  min-height: clamp(260px, 30vw, 400px);
}

.photo-hero__image.wp-block-post-featured-image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.photo-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: contrast(1.15) brightness(0.8);
}

.photo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg in srgb, color-mix(in srgb, var(--wp--preset--color--navy) 96%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--navy) 78%, transparent) 45%, color-mix(in srgb, var(--wp--preset--color--navy) 20%, transparent) 100%);
}

.photo-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.photo-hero__content > * {
  margin: 0;
}

.photo-hero__title {
  margin-top: clamp(10px, 1.4vw, 22px) !important;
  font-size: min(clamp(4rem, 10vw, 9.375rem), 16.5vw);
  line-height: 1;
  letter-spacing: -0.01em;
}

.photo-hero__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 18px;
  background: var(--cm-sport, var(--wp--preset--color--cyan));
}

.photo-hero__text {
  max-width: 66ch;
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.photo-hero__text.wp-block-cm-seurakauppa-sport-panel {
  max-width: 60ch;
  font-size: inherit;
}

.photo-hero__content:has(.cm-sport-panel) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 18px;
}

.photo-hero__content:has(.cm-sport-panel) > .cm-sport-panel {
  grid-area: 3 / 1;
}

.photo-hero__content:has(.cm-sport-panel) > .cm-sport-panel[hidden] {
  display: block !important;
  visibility: hidden;
}

.photo-hero__content:has(.cm-sport-panel) > .cm-sport-selector {
  grid-row: 4;
}

.photo-hero__text p {
  margin: 0;
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
}

.photo-hero--event {
  min-height: clamp(420px, 42vw, 560px);
  align-items: stretch;
}

.photo-hero--event::before {
  background: linear-gradient(0deg in srgb, color-mix(in srgb, var(--wp--preset--color--navy) 97%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--navy) 75%, transparent) 45%, color-mix(in srgb, var(--wp--preset--color--navy) 25%, transparent) 100%);
}

.photo-hero--event .photo-hero__content {
  gap: 24px;
}

.photo-hero--event .cm-event-hero {
  margin-top: auto;
}

@media (min-width: 45em) {
  .photo-hero--event .breadcrumb {
    align-items: center;
    min-height: 41px;
  }
}

.event-page .tc_the_content_pre {
  display: none;
}

.event-page__content:empty {
  display: none;
}

.section-title {
  display: inline-flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 24px;
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.section-title::after {
  content: "";
  height: 4px;
  background: var(--cm-sport, var(--wp--preset--color--cyan));
}

.page-section > .section-title {
  display: flex;
  width: fit-content;
}

.fact-cards {
  counter-reset: fact;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  border: 1px solid var(--wp--preset--color--panel);
  background: color-mix(in srgb, var(--wp--preset--color--navy) 90%, transparent);
}

.fact-card {
  counter-increment: fact;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 22px clamp(16px, 2vw, 24px);
  border-right: 1px solid var(--wp--preset--color--panel);
  border-bottom: 1px solid var(--wp--preset--color--panel);
}

.fact-card > * {
  margin: 0;
}

.fact-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.fact-card h3::before {
  content: counter(fact, decimal-leading-zero);
  flex-basis: 100%;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--cm-sport, var(--wp--preset--color--cyan));
}

.fact-card p {
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  line-height: 1.55;
  color: var(--wp--preset--color--text-body);
  text-wrap: pretty;
}

.fact-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.fact-card li {
  position: relative;
  padding-left: 16px;
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  line-height: 1.55;
  color: var(--wp--preset--color--text-body);
  text-wrap: pretty;
}

.fact-card li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--cm-sport, var(--wp--preset--color--cyan));
}

.page-section > .cm-sport-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.season-notice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px clamp(16px, 2.4vw, 24px) 18px calc(clamp(16px, 2.4vw, 24px) + 38px);
  background: var(--wp--preset--color--blue-deep);
}

.season-notice::before {
  content: "!" / "";
  position: absolute;
  top: 19px;
  left: clamp(16px, 2.4vw, 24px);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--wp--preset--color--white);
  border-radius: 50%;
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
}

.season-notice p {
  margin: 0;
  font-size: clamp(0.8125rem, 1.25vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}

.season-notice strong {
  font-weight: 700;
}

.season-notice a {
  color: inherit;
  text-decoration: underline;
}

.fact-terms {
  margin: 24px 0 0;
}

@media (max-width: 44.9375em) {
  .fact-card h3::before {
    flex-basis: auto;
  }
}

.photo-hero__lead {
  max-width: 46ch;
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 700;
  font-size: clamp(0.875rem, 1.4vw, 1.125rem);
  line-height: 1.4;
  text-transform: uppercase;
  text-wrap: pretty;
}

.photo-hero__title.wp-block-post-title {
  font-size: clamp(4.5rem, 11vw, 10rem);
}

.photo-hero__title.wp-block-post-title ~ .photo-hero__lead {
  max-width: 40ch;
  font-size: clamp(0.9375rem, 1.5vw, 1.1875rem);
}

.faq {
  display: flex;
  flex-direction: column;
}

.faq > * {
  margin: 0;
}

.faq__tag {
  align-self: flex-start;
  padding: 8px 14px;
  background: var(--wp--preset--color--cyan);
  color: var(--wp--preset--color--navy);
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq {
  --faq-number-width: calc(2 * 0.6 * 14px);
}

.faq__list {
  counter-reset: faq;
  border: 1.5px solid var(--wp--preset--color--cyan);
  background: color-mix(in srgb, var(--wp--preset--color--navy) 90%, transparent);
}

.faq__list > * {
  margin: 0;
}

.faq .wp-block-details {
  counter-increment: faq;
  border-bottom: 1px solid var(--wp--preset--color--panel);
}

.faq .wp-block-details summary {
  display: grid;
  grid-template-columns: var(--faq-number-width) minmax(0, 1fr) 40px;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
  padding: clamp(18px, 2.4vw, 28px) clamp(18px, 3vw, 36px);
  cursor: pointer;
  list-style: none;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: clamp(1.125rem, 2.4vw, 1.875rem);
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: pretty;
}

.faq .wp-block-details summary::-webkit-details-marker {
  display: none;
}

.faq .wp-block-details summary:hover {
  background: var(--wp--preset--color--panel);
}

.faq .wp-block-details summary::before {
  content: counter(faq, decimal-leading-zero);
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--wp--preset--color--cyan);
}

.faq .wp-block-details summary::after {
  content: "+";
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--wp--preset--color--cyan);
  color: var(--wp--preset--color--cyan);
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 700;
  font-size: 1.25rem;
}

.faq .wp-block-details[open] summary::after {
  content: "–";
}

.faq .wp-block-details > :not(summary) {
  max-width: 72ch;
  margin: 0 clamp(18px, 3vw, 36px) 14px calc(clamp(18px, 3vw, 36px) + var(--faq-number-width) + clamp(14px, 2.5vw, 32px));
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.65;
  color: var(--wp--preset--color--text-body);
  text-wrap: pretty;
}

.faq .wp-block-details > :last-child {
  margin-bottom: clamp(22px, 3vw, 32px);
}

.faq__code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 14px 16px;
  border: 1px solid var(--wp--preset--color--line);
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 500;
  font-size: 0.8125rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-soft) !important;
}

.faq__code code {
  padding: 6px 12px;
  background: var(--wp--preset--color--cyan);
  color: var(--wp--preset--color--navy);
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.faq__after {
  margin-top: 32px;
  color: var(--wp--preset--color--text-body);
}

.photo-hero .cm-sport-selector {
  margin-top: 6px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head > * {
  margin: 0;
}

.section-head h2 {
  font-size: min(clamp(2.75rem, 6vw, 5rem), 10.4vw);
}

.section-head__link a {
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slogan {
  position: relative;
  overflow: hidden;
  border-top: 1.5px solid var(--wp--preset--color--cyan);
  border-bottom: 1.5px solid var(--wp--preset--color--cyan);
  background: var(--wp--preset--color--navy);
}

.slogan::after {
  content: "";
  position: absolute;
  top: 50%;
  right: max(clamp(16px, 4vw, 48px), calc((100% - 1360px) / 2 + clamp(16px, 4vw, 48px)));
  width: clamp(26px, 6vw, 84px);
  height: clamp(22px, 5vw, 72px);
  margin-top: calc(clamp(22px, 5vw, 72px) / -2);
  background: var(--wp--preset--color--cyan);
  clip-path: polygon(0 0, 50% 40%, 100% 0, 50% 100%);
}

.slogan__text {
  position: relative;
  width: fit-content;
  max-width: calc(100% - clamp(16px, 4vw, 48px) * 2 - clamp(26px, 6vw, 84px) - clamp(10px, 3vw, 32px));
  margin: 0 max(clamp(16px, 4vw, 48px), calc((100% - 1360px) / 2 + clamp(16px, 4vw, 48px)));
  padding: calc(clamp(20px, 3vw, 36px) + 0.16em) 0 calc(clamp(20px, 3vw, 36px) + 0.06em);
  overflow: hidden;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 7.4vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  white-space: nowrap;
}

.slogan__text mark {
  background: none;
  color: var(--wp--preset--color--cyan);
}

.slogan.is-waiting .slogan__text,
.slogan.is-waiting::after {
  opacity: 0;
}

.slogan.is-in .slogan__text,
.slogan.is-in .slogan__text mark {
  animation: slogan-text 1.1s linear backwards;
}

.slogan.is-in .slogan__text::after {
  content: "";
  position: absolute;
  inset: clamp(20px, 3vw, 36px) 0;
  background: var(--wp--preset--color--cyan);
  animation: slogan-wipe 1.1s cubic-bezier(0.7, 0, 0.3, 1) both;
}

.slogan.is-in::after {
  animation: slogan-v 2.6s cubic-bezier(0.25, 0.8, 0.35, 1.15) both;
}

@keyframes slogan-wipe {
  0% {
    transform: translateX(-101%);
  }
  45%,
  55% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(101%);
  }
}

@keyframes slogan-text {
  0%,
  50% {
    -webkit-text-fill-color: transparent;
  }
  50.1%,
  100% {
    -webkit-text-fill-color: currentcolor;
  }
}

@keyframes slogan-v {
  0%,
  38% {
    opacity: 0;
    transform: translateY(-28px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.tag-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.tag-card {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.tag-card > * {
  margin: 0;
}

.tag-card__tag {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--cm-sport, var(--wp--preset--color--cyan));
  color: var(--wp--preset--color--navy);
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-card__tag::before {
  content: "";
  flex: none;
  width: 16px;
  height: 14px;
  background: var(--wp--preset--color--navy);
  clip-path: polygon(0 0, 50% 40%, 100% 0, 50% 100%);
}

.tag-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px;
  border: 1.5px solid var(--cm-sport, var(--wp--preset--color--cyan));
  background: color-mix(in srgb, var(--wp--preset--color--navy) 85%, transparent);
}

.tag-card__body > * {
  margin: 0;
}

.tag-card__body h3 {
  font-size: 2.75rem;
  font-weight: 800;
}

.tag-card__body .wp-block-buttons {
  margin-top: auto;
}

.tag-card__body .wp-block-button__link {
  padding: 14px 16px;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.wp-block-button.is-style-arrow,
.wp-block-button.is-style-outline-arrow {
  width: 100%;
}

.wp-block-button.is-style-arrow .wp-block-button__link,
.wp-block-button.is-style-outline-arrow .wp-block-button__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  width: 100%;
  text-align: left;
}

.wp-block-button.is-style-arrow .wp-block-button__link::after,
.wp-block-button.is-style-outline-arrow .wp-block-button__link::after {
  content: "→";
}

.wp-block-button.is-style-outline .wp-block-button__link {
  padding: 15px 20px;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--wp--preset--color--white);
  background: transparent;
  color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--navy);
}

.wp-block-button.is-style-outline-arrow .wp-block-button__link {
  border: 1px solid var(--wp--preset--color--white);
  background: transparent;
  color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-outline-arrow .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--cyan);
  background: var(--wp--preset--color--cyan);
  color: var(--wp--preset--color--navy);
}

@media (prefers-reduced-motion: reduce) {
  .slogan *,
  .slogan::after {
    animation: none !important;
  }
}
