/**
 * Legacy WordPress posts (pre .riak-article migration): Know How, Cycle Seminar, old articles.
 */

body.riak-native-shell.riak-legacy-post .entry-header,
body.riak-native-shell.riak-legacy-post .page-header,
body.riak-native-shell.riak-legacy-post header.page-header,
body.riak-native-shell.riak-legacy-post .post-header {
  display: none !important;
}

body.riak-native-shell.riak-legacy-post .section-top-single,
body.riak-native-shell.riak-legacy-post .section-coaches-single .img-wrap,
body.riak-native-shell.riak-legacy-post .section-coaches-single ._header {
  display: none !important;
}

body.riak-native-shell.riak-legacy-post .site-main,
body.riak-native-shell.riak-legacy-post .site-main.riak-full-width,
body.riak-native-shell.riak-legacy-post article.post,
body.riak-native-shell.riak-legacy-post .entry-content {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--riak-font);
}

body.riak-native-shell.riak-legacy-post .entry-content > main.main,
body.riak-native-shell.riak-legacy-post .section-coaches-single,
body.riak-native-shell.riak-legacy-post .item-description,
body.riak-native-shell.riak-legacy-post .item-description ._body {
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: transparent !important;
}

body.riak-native-shell.riak-legacy-post .entry-content {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 28px 20px 60px;
  box-sizing: border-box;
}

body.riak-native-shell.riak-legacy-post .riak-legacy-post__kicker {
  margin: 0 0 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

body.riak-native-shell.riak-legacy-post .riak-legacy-post__title {
  max-width: 16em;
  margin: 0 auto 24px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.15;
  text-align: center;
  color: #ffffff;
  overflow-wrap: break-word;
}

body.riak-native-shell.riak-legacy-post .entry-content > :not(.riak-legacy-post__kicker):not(.riak-legacy-post__title) {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

body.riak-native-shell.riak-legacy-post .entry-content h1,
body.riak-native-shell.riak-legacy-post .entry-content h2,
body.riak-native-shell.riak-legacy-post .entry-content h3 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
}

body.riak-native-shell.riak-legacy-post .entry-content h2 {
  margin: 32px 0 16px;
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

body.riak-native-shell.riak-legacy-post .entry-content h3 {
  margin: 24px 0 12px;
  font-size: 20px;
}

body.riak-native-shell.riak-legacy-post .entry-content p,
body.riak-native-shell.riak-legacy-post .entry-content li {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

body.riak-native-shell.riak-legacy-post .entry-content p {
  margin: 0 0 16px;
}

body.riak-native-shell.riak-legacy-post .entry-content ul,
body.riak-native-shell.riak-legacy-post .entry-content ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

body.riak-native-shell.riak-legacy-post .entry-content a {
  color: #ffffff;
  font-weight: 700;
}

body.riak-native-shell.riak-legacy-post .entry-content a:hover,
body.riak-native-shell.riak-legacy-post .entry-content a:focus {
  text-decoration: underline;
}

body.riak-native-shell.riak-legacy-post .entry-content strong {
  color: #ffffff;
}

body.riak-native-shell.riak-legacy-post .entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Responsive YouTube / oEmbed (Know How + Cycle Seminar video posts) */
body.riak-native-shell.riak-legacy-post .riak-legacy-post__video,
body.riak-native-shell.riak-legacy-post .entry-content .wp-block-embed,
body.riak-native-shell.riak-legacy-post .entry-content .wp-block-embed__wrapper,
body.riak-native-shell.riak-legacy-post .entry-content p:has(iframe) {
  position: relative;
  width: 100%;
  max-width: 840px;
  margin: 0 auto 24px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

body.riak-native-shell.riak-legacy-post .entry-content iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
}

body.riak-native-shell.riak-legacy-post .entry-content .wp-block-embed iframe {
  position: absolute;
  inset: 0;
}

body.riak-native-shell.riak-legacy-post .entry-content p:has(iframe) {
  padding: 0;
}

body.riak-native-shell.riak-legacy-post .entry-content p:has(iframe):empty {
  display: none;
}

body.riak-native-shell.riak-legacy-post .riak-legacy-post__back {
  display: block;
  max-width: 840px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 15px;
}

body.riak-native-shell.riak-legacy-post .riak-legacy-post__back a {
  color: #ffffff;
  font-weight: 700;
}
