/*
Bio Page CSS additions
----------------------
Bio is a normal WordPress Page using the MSP Bio Page template.
It is NOT a CPT.

Main visual styles are loaded from assets/main.css.
Use this file only for Bio page additions/overrides.
*/

:root {
  --msp-bio-bg: var(--msp-bg, #070707);
  --msp-bio-text: var(--msp-text, #f7f1e8);
  --msp-bio-muted: var(--msp-muted, #b8aea0);
  --msp-bio-gold: var(--msp-gold, #c8a45d);
  --msp-bio-line: var(--msp-line, rgba(255,255,255,.13));
}

body.page-template-template-bio,
.msp-bio-page {
  background: var(--msp-bio-bg);
  color: var(--msp-bio-text);
}

.msp-bio-subnav {
  position: sticky;
  top: var(--msp-film-sticky-top, 0px);
  z-index: 2;
  background: rgba(7,7,7,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--msp-bio-line);
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
}

body.admin-bar .msp-bio-subnav {
  top: calc(var(--msp-film-sticky-top, 0px) + 32px);
}

.msp-bio-subnav-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 16px 0;
}

.msp-bio-subnav-inner::-webkit-scrollbar {
  height: 0;
}

.msp-bio-subnav a {
  color: rgba(255,255,255,.68);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .14em;
  white-space: nowrap;
  text-decoration: none;
}

.msp-bio-subnav a:hover {
  color: var(--msp-bio-gold);
}

.msp-bio-hero {
  padding: 150px 0 90px;
  border-bottom: 1px solid var(--msp-bio-line);
}

.msp-bio-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px;
  align-items: end;
}

.msp-bio-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.msp-bio-section {
  scroll-margin-top: calc(var(--msp-film-sticky-top, 0px) + 82px);
}

.msp-bio-content {
  max-width: 820px;
}

.msp-bio-content p {
  margin: 0 0 22px;
}

.msp-bio-content ul,
.msp-bio-content ol {
  margin: 0 0 24px 1.1em;
  padding: 0;
}

.msp-bio-content li {
  margin-bottom: 9px;
}

.msp-bio-content a {
  color: var(--msp-bio-gold);
  text-decoration: none;
}

.msp-bio-content a:hover {
  opacity: .75;
}

@media (min-width: 901px) {
  .msp-bio-section .msp-film-split > :first-child {
    position: sticky;
    top: calc(var(--msp-film-sticky-top, 0px) + 86px);
    align-self: start;
    height: fit-content;
    z-index: 2;
  }

  body.admin-bar .msp-bio-section .msp-film-split > :first-child {
    top: calc(var(--msp-film-sticky-top, 0px) + 118px);
  }
}

@media (max-width: 900px) {
  .msp-bio-hero-grid {
    grid-template-columns: 1fr;
  }

  .msp-bio-portrait {
    max-width: 320px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .msp-bio-subnav {
    top: calc(var(--msp-film-sticky-top, 0px) + 46px);
  }
}

@media (max-width: 640px) {
  .msp-bio-subnav-inner {
    width: calc(100% - 28px);
    gap: 20px;
    padding: 14px 0;
  }

  .msp-bio-subnav a {
    font-size: 11px;
  }

  .msp-bio-hero {
    padding: 110px 0 58px;
  }
}


/* v4.6 Bio section download buttons */
.msp-bio-downloads {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.msp-bio-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--msp-bio-gold);
  color: var(--msp-bio-gold);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .14em;
  line-height: 1.2;
  text-decoration: none;
  background: transparent;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}

.msp-bio-download:hover {
  background: var(--msp-bio-gold);
  color: #070707;
}


/* v4.7 Bio hero background fixed */
.msp-bio-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.msp-bio-hero--gradient {
  background: linear-gradient(
    135deg,
    var(--msp-bio-hero-color-1, #111111),
    var(--msp-bio-hero-color-2, #211812) 45%,
    #070707
  ) !important;
}

.msp-bio-hero--color {
  background: var(--msp-bio-hero-color-1, #111111) !important;
}

.msp-bio-hero--image {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.36)),
    var(--msp-bio-hero-image) !important;
}


/* v4.8 Bio image background with transparent gradient overlay */
.msp-bio-hero--image-gradient {
  background-image:
    linear-gradient(
      90deg,
      rgba(var(--msp-bio-overlay-rgb-1, 0,0,0), var(--msp-bio-overlay-alpha-1, .78)),
      rgba(var(--msp-bio-overlay-rgb-2, 0,0,0), var(--msp-bio-overlay-alpha-2, .36))
    ),
    var(--msp-bio-hero-image) !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.msp-bio-hero--gradient {
  background:
    linear-gradient(
      135deg,
      rgba(var(--msp-bio-overlay-rgb-1, 17,17,17), var(--msp-bio-overlay-alpha-1, 1)),
      rgba(var(--msp-bio-overlay-rgb-2, 33,24,18), var(--msp-bio-overlay-alpha-2, 1)) 55%,
      #070707
    ) !important;
}


/* v4.9 Structured Bio Awards */
.msp-bio-awards-structured {
  display: grid;
  gap: 46px;
}

.msp-bio-awards-group {
  border-top: 1px solid var(--msp-bio-line);
  padding-top: 28px;
}

.msp-bio-awards-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.msp-bio-awards-group h3 {
  margin: 0 0 24px;
  color: var(--msp-bio-gold);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: .02em;
}

.msp-bio-awards-film {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.09);
}

.msp-bio-awards-film:first-of-type {
  border-top: 0;
}

.msp-bio-awards-film h4 {
  margin: 0;
  color: var(--msp-bio-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
}

.msp-bio-awards-film ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.msp-bio-awards-film li {
  margin: 0;
  padding: 0 0 10px 18px;
  position: relative;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}

.msp-bio-awards-film li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 1px;
  background: var(--msp-bio-gold);
}

@media (max-width: 700px) {
  .msp-bio-awards-film {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* v5.1 Bio download buttons under section title */
.msp-bio-downloads--under-title {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.msp-bio-downloads--under-title .msp-bio-download {
  width: auto;
  max-width: 100%;
}

@media (max-width: 900px) {
  .msp-bio-downloads--under-title {
    margin-top: 16px;
    margin-bottom: 8px;
  }
}


/* v9.5 Bio text polish + custom list markers */
.msp-bio-content {
  max-width: 900px;
  color: rgba(247,241,232,.82);
  font-size: 18px;
  line-height: 1.78;
  letter-spacing: normal;
}

.msp-bio-content > *:first-child {
  margin-top: 0;
}

.msp-bio-content p {
  margin: 0 0 24px;
}

.msp-bio-content p:last-child {
  margin-bottom: 0;
}

.msp-bio-content strong,
.msp-bio-content b {
  color: var(--msp-bio-text);
  font-weight: 600;
}

.msp-bio-content em {
  color: rgba(247,241,232,.92);
}

.msp-bio-content h2,
.msp-bio-content h3,
.msp-bio-content h4 {
  margin: 34px 0 16px;
  color: var(--msp-bio-text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: normal;
}

.msp-bio-content h3 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.msp-bio-content h4 {
  font-size: clamp(20px, 2vw, 26px);
}

.msp-bio-content ul {
  margin: 4px 0 28px;
  padding: 0;
  list-style: none;
}

.msp-bio-content ul li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 30px;
  color: rgba(247,241,232,.84);
  line-height: 1.65;
}

.msp-bio-content ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: .12em;
  color: var(--msp-bio-gold);
  font-size: 12px;
  line-height: 1;
}

.msp-bio-content ol {
  margin: 4px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: msp-bio-counter;
}

.msp-bio-content ol li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 42px;
  color: rgba(247,241,232,.84);
  line-height: 1.65;
  counter-increment: msp-bio-counter;
}

.msp-bio-content ol li::before {
  content: counter(msp-bio-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .1em;
  color: var(--msp-bio-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.msp-bio-content blockquote {
  margin: 34px 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--msp-bio-gold);
  color: rgba(247,241,232,.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.45;
}

/* Make structured Awards list markers more visible and consistent with Bio text */
.msp-bio-awards-film li {
  padding-left: 24px;
}

.msp-bio-awards-film li::before {
  content: "◆";
  top: .2em;
  width: auto;
  height: auto;
  background: none;
  color: var(--msp-bio-gold);
  font-size: 10px;
  line-height: 1;
}

@media (max-width: 700px) {
  .msp-bio-content {
    font-size: 16px;
    line-height: 1.72;
  }

  .msp-bio-content ul li {
    padding-left: 26px;
  }

  .msp-bio-content ol li {
    padding-left: 38px;
  }
}


/* v15.9 Bio hero fixed background */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .msp-ab-hero.msp-ab-hero--image,
  .msp-ab-hero.msp-ab-hero--image::before,
  .msp-bio-hero,
  .msp-home-hero {
    background-attachment: fixed !important;
  }
}
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .msp-ab-hero.msp-ab-hero--image,
  .msp-ab-hero.msp-ab-hero--image::before,
  .msp-bio-hero,
  .msp-home-hero {
    background-attachment: scroll !important;
  }
}


/* v18.0 Section title size + gold text links */
.msp-section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 36px);
  line-height: .95;
  letter-spacing: normal;
  margin: 0;
}

.msp-film-section a:not(.msp-button),
.msp-ab-section a:not(.msp-button),
.msp-written-section a:not(.msp-button),
.msp-bio-section a:not(.msp-button),
.msp-content a:not(.msp-button),
.msp-rich-text a:not(.msp-button),
.msp-film-full-credits-text a:not(.msp-button),
.msp-film-credit-value a:not(.msp-button),
.msp-film-book-note a:not(.msp-button),
.msp-written-piece-note a:not(.msp-button),
.msp-written-content a:not(.msp-button) {
  color: var(--msp-gold, #c9a45c);
  text-decoration-color: currentColor;
  text-underline-offset: 0.18em;
}

.msp-film-section a:not(.msp-button):hover,
.msp-ab-section a:not(.msp-button):hover,
.msp-written-section a:not(.msp-button):hover,
.msp-bio-section a:not(.msp-button):hover,
.msp-content a:not(.msp-button):hover,
.msp-rich-text a:not(.msp-button):hover,
.msp-film-full-credits-text a:not(.msp-button):hover,
.msp-film-credit-value a:not(.msp-button):hover,
.msp-film-book-note a:not(.msp-button):hover,
.msp-written-piece-note a:not(.msp-button):hover,
.msp-written-content a:not(.msp-button):hover {
  color: var(--msp-gold, #c9a45c);
  opacity: .82;
}
