
/*
  WHISTLEBLOWERX3 · 31 OCT 2026
  Final presentation layer.
  Loaded AFTER previous stylesheet and post-build rewrites.
*/

:root {
  --wbx31-red: #e71d47;
  --wbx31-line: #303742;
  --wbx31-ink: #f7f8fb;
  --wbx31-muted: #adb8c8;
  --wbx31-surface: #12161d;
  --wbx31-surface2: #1a202a;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
}

main, article, section, nav, figure {
  min-width: 0;
}

img, video, iframe, audio {
  max-width: 100%;
}

img {
  height: auto;
}

a, button, summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #ff5274 !important;
  outline-offset: 4px;
}

/* --- Homepage: clearer cards, larger previews --- */

html body #main.wbx-unified .wbx-card-grid,
html body .wbx-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(14px, 1.7vw, 23px) !important;
}

html body #main.wbx-unified article.wbx-card,
html body article.wbx-card {
  min-width: 0 !important;
  overflow: hidden !important;
  border: 1px solid #343b48 !important;
  border-radius: 15px !important;
  background: linear-gradient(
    165deg,
    #1c212b 0%,
    #101319 100%
  ) !important;
  box-shadow: 0 12px 35px rgba(0,0,0,.18) !important;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease !important;
}

@media (hover:hover) {
  html body article.wbx-card:hover {
    transform: translateY(-4px) !important;
    border-color: #697386 !important;
    box-shadow: 0 22px 48px rgba(0,0,0,.4) !important;
  }
}

html body #main.wbx-unified .wbx-card-image,
html body #main.wbx-unified .wbx-cover-link,
html body #main.wbx-unified .wbx-card-image img,
html body article.wbx-card .wbx-card-image,
html body article.wbx-card .wbx-cover-link,
html body article.wbx-card .wbx-card-image img {
  width: 100% !important;
  height: clamp(235px, 25vw, 330px) !important;
  min-height: 235px !important;
  max-height: 330px !important;
}

html body article.wbx-card .wbx-card-image {
  display: block !important;
  overflow: hidden !important;
  background: #090c12 !important;
  border-radius: 14px 14px 0 0 !important;
}

html body article.wbx-card .wbx-cover-link {
  display: block !important;
  overflow: hidden !important;
}

html body article.wbx-card .wbx-card-image img {
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  transition: transform .22s ease !important;
}

@media (hover:hover) {
  html body article.wbx-card:hover .wbx-card-image img {
    transform: scale(1.025) !important;
  }
}

html body article.wbx-card .wbx-card-content {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 11px !important;
  padding: clamp(15px, 1.8vw, 22px) !important;
}

html body article.wbx-card h2 {
  margin: 0 !important;
  font-size: clamp(1.02rem, 1.45vw, 1.24rem) !important;
  line-height: 1.32 !important;
  letter-spacing: -.025em !important;
  overflow-wrap: anywhere !important;
}

html body article.wbx-card h2 a {
  color: var(--wbx31-ink) !important;
  line-height: inherit !important;
  text-decoration: none !important;
}

html body article.wbx-card .wbx-card-meta {
  margin: 0 !important;
  color: var(--wbx31-muted) !important;
  font-size: .76rem !important;
  line-height: 1.4 !important;
  letter-spacing: .055em !important;
}

html body article.wbx-card .wbx-card-read {
  margin-top: auto !important;
  min-height: 43px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 9px !important;
  border: 1px solid #666e7e !important;
  background: #202632 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

html body article.wbx-card .wbx-card-read:hover {
  background: #30394b !important;
  border-color: #f0f3fa !important;
}

/* --- Audio: functional, compact, contemporary --- */

html body .wbx31-audio-card {
  position: relative !important;
  min-width: 0 !important;
  padding: 13px !important;
  margin: 0 0 9px !important;
  border: 1px solid #35404f !important;
  border-radius: 12px !important;
  background: linear-gradient(
    155deg,
    #202734,
    #111722
  ) !important;
}

html body .wbx31-audio-card > span,
html body .wbx31-audio-card > .wbx-clean-part,
html body .wbx31-audio-card > p {
  display: block !important;
  margin: 0 0 8px !important;
  font-size: .8rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: #d6deec !important;
  letter-spacing: .02em !important;
}

html body .wbx31-audio-card audio,
html body .wbx-card audio,
html body .wbx-clean-audio audio {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 43px !important;
  min-height: 43px !important;
  margin: 0 !important;
  border-radius: 22px !important;
  color-scheme: dark !important;
}

html body .wbx31-speed {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  margin: 9px 0 0 !important;
  padding: 3px 11px !important;
  border: 1px solid #4b5768 !important;
  border-radius: 20px !important;
  background: #242d3c !important;
  color: #f3f5fa !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

html body .wbx31-more-audio {
  margin: 6px 0 10px !important;
  border: 1px solid var(--wbx31-line) !important;
  border-radius: 10px !important;
  background: #151b25 !important;
  overflow: hidden !important;
}

html body .wbx31-more-audio > summary {
  cursor: pointer !important;
  padding: 12px 14px !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
}

html body .wbx31-more-audio[open] > summary {
  border-bottom: 1px solid var(--wbx31-line) !important;
}

html body .wbx31-more-audio > .wbx31-audio-card {
  margin: 10px !important;
}

/* --- Story pages: evidence directly below the title --- */

html body.wbx-story-document main.wbx-clean-article {
  width: min(100% - 32px, 1100px) !important;
  max-width: 1100px !important;
  margin-inline: auto !important;
}

html body.wbx-story-document main.wbx-clean-article > article {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

html body.wbx-story-document
main.wbx-clean-article h1[data-wbx-page-title] {
  max-width: 880px !important;
  margin: 12px 0 17px !important;
  font-size: clamp(1.75rem, 4vw, 2.8rem) !important;
  line-height: 1.13 !important;
  letter-spacing: -.045em !important;
  overflow-wrap: anywhere !important;
}

html body .wbx31-quicknav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
}

html body .wbx31-quicknav a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  border: 1px solid #414d5c !important;
  border-radius: 22px !important;
  background: #1a2230 !important;
  color: #e5eaf3 !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

html body .wbx31-quicknav a:hover {
  background: #29374a !important;
}

html body.wbx-story-document .wbx31-lead {
  display: grid !important;
  grid-template-columns:
    minmax(0, .9fr) minmax(0, 1.1fr) !important;
  align-items: start !important;
  gap: clamp(14px, 2vw, 25px) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 25px !important;
}

html body.wbx-story-document .wbx31-lead > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

html body.wbx-story-document .wbx31-lead > figure {
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid #35404f !important;
  border-radius: 13px !important;
  background: #0b1018 !important;
}

html body.wbx-story-document .wbx31-lead > figure img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 385px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 7px !important;
}

html body.wbx-story-document .wbx31-lead
.wbx-clean-audio {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

html body.wbx-story-document .wbx31-lead
.wbx-doc-group {
  grid-column: 1 / -1 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 13px !important;
  border: 1px solid #536078 !important;
  border-radius: 12px !important;
  background: #19212d !important;
}

html body.wbx-story-document .wbx31-lead
.wbx-doc-group-links {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

html body.wbx-story-document .wbx31-lead
.wbx-doc-group-links a {
  min-width: 0 !important;
  padding: 13px !important;
  overflow-wrap: anywhere !important;
  border: 1px solid #4b5b72 !important;
  border-radius: 9px !important;
  background: #242e3c !important;
  color: #f0f3fa !important;
  text-decoration: none !important;
  font-size: .8rem !important;
  font-weight: 750 !important;
}

html body.wbx-story-document
.wbx-story-evidence-collection {
  margin-top: 26px !important;
}

html body.wbx-story-document
.wbx-clean-images img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

html body.wbx-story-document
.wbx-story-narrative {
  max-width: 800px !important;
  line-height: 1.7 !important;
}

/* --- Dedication: one film and consistently sized photos --- */

html body #wbx-dedication-content.wbx-dedication-page {
  min-height: 0 !important;
  display: block !important;
  padding: clamp(16px,3vw,34px) 16px !important;
  margin: 0 auto !important;
  background: #080a0e !important;
}

html body #wbx-dedication-content
.wbx-dedication-content {
  width: min(100%, 850px) !important;
  margin: 0 auto !important;
  padding: clamp(22px,4vw,45px) !important;
  border-radius: 15px !important;
}

html body #wbx-dedication-content
.wbx-dedication-content h1 {
  margin-bottom: 12px !important;
}

html body #wbx-dedication-media {
  width: min(100% - 30px, 1080px) !important;
  margin: 16px auto 55px !important;
}

html body #wbx-dedication-media
.wbx-dedication-films {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  gap: 12px !important;
  margin: 0 auto 25px !important;
}

html body #wbx-dedication-media
.wbx-dedication-films > div {
  width: min(100%, 850px) !important;
  min-width: 0 !important;
}

html body #wbx-dedication-media video {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: min(65vh,570px) !important;
  object-fit: contain !important;
  border: 1px solid #39404e !important;
  border-radius: 12px !important;
  background: #000 !important;
}

html body #wbx-dedication-media
.wbx-dedication-photos {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  align-items: stretch !important;
  gap: clamp(9px,1.4vw,15px) !important;
}

html body #wbx-dedication-media
.wbx-dedication-photos > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  width: 100% !important;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden !important;
  padding: 7px !important;
  border: 1px solid #303a49 !important;
  border-radius: 12px !important;
  background: #111720 !important;
}

html body #wbx-dedication-media
.wbx-dedication-photos img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 7px !important;
}

/* --- General interior polish --- */

html body main h1 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

html body main p {
  overflow-wrap: break-word;
}

html body main iframe {
  max-width: 100% !important;
}

html body .wbx-footer-links,
html body .footer-links {
  row-gap: 12px !important;
}

html body .wbx31-timeline-context {
  max-width: 940px !important;
  padding: 13px 16px !important;
  margin: 0 0 22px !important;
  background: #192230 !important;
  border-left: 4px solid var(--wbx31-red) !important;
  border-radius: 8px !important;
  color: #e9edf5 !important;
  line-height: 1.55 !important;
}

html body .wbx31-timeline-context p {
  margin: 0 0 7px !important;
}

html body .wbx31-timeline-context p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 1000px) {
  html body #main.wbx-unified .wbx-card-grid,
  html body .wbx-card-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width: 680px) {
  html body #main.wbx-unified .wbx-card-grid,
  html body .wbx-card-grid {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 15px !important;
  }

  html body #main.wbx-unified .wbx-card-image,
  html body #main.wbx-unified .wbx-cover-link,
  html body #main.wbx-unified .wbx-card-image img,
  html body article.wbx-card .wbx-card-image,
  html body article.wbx-card .wbx-cover-link,
  html body article.wbx-card .wbx-card-image img {
    height: 245px !important;
    min-height: 245px !important;
    max-height: 245px !important;
  }

  html body article.wbx-card .wbx-card-content {
    padding: 16px !important;
  }

  html body article.wbx-card h2 {
    font-size: 1.13rem !important;
  }

  html body.wbx-story-document
  main.wbx-clean-article {
    width: calc(100% - 24px) !important;
  }

  html body.wbx-story-document .wbx31-lead {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 12px !important;
  }

  html body.wbx-story-document .wbx31-lead
  .wbx-doc-group-links {
    grid-template-columns: minmax(0,1fr) !important;
  }

  html body #wbx-dedication-content.wbx-dedication-page {
    padding: 12px 12px 8px !important;
  }

  html body #wbx-dedication-content
  .wbx-dedication-content {
    padding: 20px 17px !important;
  }

  html body #wbx-dedication-content
  .wbx-dedication-content p {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
  }

  html body #wbx-dedication-media {
    width: calc(100% - 20px) !important;
    margin-top: 12px !important;
  }

  html body #wbx-dedication-media video {
    max-height: 45vh !important;
  }

  html body #wbx-dedication-media
  .wbx-dedication-photos {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 8px !important;
  }

  html body #wbx-dedication-media
  .wbx-dedication-photos > a {
    padding: 4px !important;
    border-radius: 9px !important;
  }

  html body #wbx-dedication-media
  .wbx-dedication-photos img {
    border-radius: 5px !important;
  }

  html body .wbx31-quicknav a {
    min-height: 36px !important;
    font-size: .73rem !important;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  html body article.wbx-card,
  html body article.wbx-card .wbx-card-image img {
    transition: none !important;
    transform: none !important;
  }
}
