:root {
  --bw-pink: #ff0b68;
  --bw-blue: #2aaeff;
  --bw-text: #dceaff;
  --bw-muted: #aac9e0;
}

.bitwaves-partnership-main {
  min-width: 0;
  overflow-x: hidden;
  color: var(--bw-text);
  background: linear-gradient(180deg, #07182b, #04111f);
}

.bitwaves-partnership-article {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 56px 0 78px;
}

.bitwaves-hero {
  padding: 42px;
  border: 1px solid rgba(118, 209, 255, 0.22);
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 38px;
  align-items: center;
  background: linear-gradient(
    125deg,
    rgba(4, 19, 34, 0.98),
    rgba(10, 43, 71, 0.94)
  );
}

.bitwaves-back-link {
  display: inline-flex;
  gap: 7px;
  margin-bottom: 26px;
  color: #8fcfff;
  font-weight: 750;
  text-decoration: none;
}

.bitwaves-kicker {
  display: block;
  margin-bottom: 11px;
  color: var(--bw-pink);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.bitwaves-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.75rem, 5.5vw, 5.2rem);
  line-height: 0.99;
  letter-spacing: -0.04em;
}

.bitwaves-lead {
  margin: 26px 0 0;
  color: #c7e2f6;
  font-size: 1.06rem;
  line-height: 1.7;
}

.bitwaves-actions {
  margin-top: 27px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bitwaves-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(118, 209, 255, 0.38);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(118, 209, 255, 0.07);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.bitwaves-button--primary {
  border-color: var(--bw-pink);
  background: var(--bw-pink);
}

.bitwaves-button:hover,
.bitwaves-button:focus-visible,
.bitwaves-related-card:hover,
.bitwaves-related-card:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
}

.bitwaves-button:focus-visible,
.bitwaves-inline-link:focus-visible,
.bitwaves-related-card:focus-visible {
  outline: 2px solid #76d1ff;
  outline-offset: 4px;
}

.bitwaves-hero-visual {
  margin: 0;
}

.bitwaves-hero-visual img {
  width: 100%;
  height: min(430px, 44vw);
  min-height: 320px;
  border-radius: 19px;
  display: block;
  object-fit: cover;
}

.bitwaves-hero-visual figcaption {
  margin-top: 11px;
  color: #8fb5d2;
  font-size: 0.82rem;
  line-height: 1.5;
}

.bitwaves-section {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid rgba(118, 209, 255, 0.18);
  border-radius: 21px;
  background: rgba(5, 29, 51, 0.84);
}

.bitwaves-section-heading {
  max-width: 820px;
  margin-bottom: 25px;
}

.bitwaves-section-heading h2,
.bitwaves-app-copy h2,
.bitwaves-project-cta h2,
.bitwaves-related h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.14;
}

.bitwaves-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  gap: 28px;
}

.bitwaves-copy p,
.bitwaves-app-copy p,
.bitwaves-project-cta p {
  margin: 0 0 17px;
  color: #c4dced;
  line-height: 1.7;
}

.bitwaves-facts {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(42, 174, 255, 0.22);
  border-radius: 15px;
  background: rgba(4, 20, 36, 0.74);
}

.bitwaves-facts div {
  padding: 12px 0;
  border-bottom: 1px solid rgba(118, 209, 255, 0.11);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.bitwaves-facts div:last-child {
  border-bottom: 0;
}

.bitwaves-facts dt {
  color: #8fcfff;
}

.bitwaves-facts dd {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  text-align: right;
}

.bitwaves-app-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  background:
    linear-gradient(
      125deg,
      rgba(255, 11, 104, 0.12),
      rgba(42, 174, 255, 0.09)
    ),
    rgba(5, 29, 51, 0.92);
}

.bitwaves-note {
  margin-top: 17px !important;
  color: #8fb5d2 !important;
  font-size: 0.85rem;
}

.bitwaves-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.bitwaves-feature-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(118, 209, 255, 0.17);
  border-radius: 15px;
  background: rgba(4, 22, 39, 0.74);
}

.bitwaves-feature-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.08rem;
}

.bitwaves-feature-card p {
  margin: 0;
  color: #aecce2;
  line-height: 1.58;
}

.bitwaves-third-party-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--bw-blue);
  border-radius: 10px;
  color: #b5d2e7;
  background: rgba(42, 174, 255, 0.08);
  line-height: 1.62;
}

.bitwaves-inline-link {
  display: inline-flex;
  margin-top: 20px;
  color: #73d4ff;
  font-weight: 800;
  text-decoration: none;
}

.bitwaves-project-cta {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid rgba(255, 11, 104, 0.28);
  border-radius: 21px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: rgba(5, 29, 51, 0.9);
}

.bitwaves-project-cta .bitwaves-actions {
  margin: 0;
  justify-content: flex-end;
}

.bitwaves-related {
  margin-top: 28px;
}

.bitwaves-related-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bitwaves-related-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid rgba(118, 209, 255, 0.17);
  border-radius: 14px;
  display: grid;
  gap: 7px;
  color: #ffffff;
  background: rgba(5, 29, 51, 0.72);
  text-decoration: none;
}

.bitwaves-related-card span {
  color: #9fbed6;
  font-size: 0.87rem;
  line-height: 1.5;
}

@media (max-width: 1060px) {
  .bitwaves-hero,
  .bitwaves-overview-grid,
  .bitwaves-app-section,
  .bitwaves-project-cta {
    grid-template-columns: 1fr;
  }

  .bitwaves-project-cta .bitwaves-actions {
    justify-content: flex-start;
  }

  .bitwaves-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .bitwaves-partnership-article {
    width: calc(100% - 28px);
    padding: 30px 0 54px;
  }

  .bitwaves-hero,
  .bitwaves-section,
  .bitwaves-project-cta {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .bitwaves-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.65rem);
  }

  .bitwaves-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bitwaves-button {
    width: 100%;
  }

  .bitwaves-hero-visual img {
    height: 62vw;
    min-height: 225px;
    border-radius: 14px;
  }

  .bitwaves-feature-grid,
  .bitwaves-related-grid {
    grid-template-columns: 1fr;
  }

  .bitwaves-facts div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .bitwaves-facts dd {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .bitwaves-partnership-article {
    width: calc(100% - 20px);
  }

  .bitwaves-hero,
  .bitwaves-section,
  .bitwaves-project-cta {
    padding-right: 15px;
    padding-left: 15px;
  }

  .bitwaves-hero h1 {
    overflow-wrap: anywhere;
  }
}

/* KERN-BITWAVES-HERO-BALANCE-START */
.bitwaves-partnership-main {
  min-width: 0;
}

.bitwaves-partnership-article {
  width: min(1160px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
  padding-top: 42px;
}

.bitwaves-hero {
  min-height: 0;
  padding: 38px;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(300px, 0.92fr);
  gap: 36px;
  align-items: center;
  overflow: hidden;
}

.bitwaves-hero-copy {
  min-width: 0;
  max-width: 680px;
}

.bitwaves-hero h1 {
  max-width: 660px;
  font-size: clamp(2.65rem, 4.4vw, 4.5rem);
  line-height: 1.01;
  letter-spacing: -0.038em;
  overflow-wrap: normal;
}

.bitwaves-lead {
  max-width: 650px;
  margin-top: 22px;
  font-size: 1.02rem;
  line-height: 1.68;
}

.bitwaves-back-link {
  margin-bottom: 22px;
}

.bitwaves-hero .bitwaves-kicker {
  margin-bottom: 10px;
}

.bitwaves-hero .bitwaves-actions {
  margin-top: 24px;
}

.bitwaves-hero-visual {
  min-width: 0;
}

.bitwaves-hero-visual img {
  width: 100%;
  height: 360px;
  min-height: 0;
  border-radius: 18px;
  object-fit: cover;
}

.bitwaves-hero-visual figcaption {
  margin-top: 10px;
}

@media (min-width: 1061px) {
  .site-shell > .bitwaves-partnership-main {
    width: calc(100% - 230px);
    margin-left: 230px;
  }
}

@media (min-width: 1061px) and (max-width: 1399px) {
  .bitwaves-partnership-article {
    width: min(1080px, calc(100% - 40px));
  }

  .bitwaves-hero {
    padding: 32px;
    grid-template-columns:
      minmax(0, 1.05fr)
      minmax(280px, 0.95fr);
    gap: 28px;
  }

  .bitwaves-hero h1 {
    font-size: clamp(2.45rem, 4vw, 3.75rem);
  }

  .bitwaves-hero-visual img {
    height: 330px;
  }
}

@media (max-width: 1060px) {
  .site-shell > .bitwaves-partnership-main {
    width: 100%;
    margin-left: 0;
  }

  .bitwaves-partnership-article {
    width: min(900px, calc(100% - 36px));
    padding-top: 32px;
  }

  .bitwaves-hero {
    padding: 30px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bitwaves-hero-copy {
    max-width: none;
  }

  .bitwaves-hero h1 {
    max-width: 780px;
    font-size: clamp(2.55rem, 7vw, 4rem);
  }

  .bitwaves-lead {
    max-width: 760px;
  }

  .bitwaves-hero-visual img {
    height: min(480px, 56vw);
  }
}

@media (max-width: 700px) {
  .bitwaves-partnership-article {
    width: calc(100% - 28px);
    padding-top: 24px;
  }

  .bitwaves-hero {
    padding: 24px 18px;
    gap: 24px;
    border-radius: 16px;
  }

  .bitwaves-back-link {
    margin-bottom: 18px;
  }

  .bitwaves-hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.3rem);
    line-height: 1.02;
    overflow-wrap: normal;
  }

  .bitwaves-lead {
    margin-top: 18px;
    font-size: 0.98rem;
  }

  .bitwaves-hero .bitwaves-actions {
    margin-top: 20px;
  }

  .bitwaves-hero-visual img {
    height: 58vw;
    min-height: 220px;
    max-height: 360px;
    border-radius: 14px;
  }
}

@media (max-width: 390px) {
  .bitwaves-partnership-article {
    width: calc(100% - 20px);
  }

  .bitwaves-hero {
    padding-right: 15px;
    padding-left: 15px;
  }

  .bitwaves-hero h1 {
    font-size: clamp(2.15rem, 11.8vw, 2.85rem);
    overflow-wrap: anywhere;
  }

  .bitwaves-hero-visual img {
    min-height: 205px;
  }
}
/* KERN-BITWAVES-HERO-BALANCE-END */

/* BITWAVES-HERO-CONTENT-FINAL-START */
.bitwaves-hero-copy {
  max-width: 700px;
}

.bitwaves-hero h1 {
  max-width: 690px;
  font-size: clamp(2.7rem, 4.3vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.bitwaves-hero .bitwaves-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.bitwaves-hero .bitwaves-button {
  min-width: 0;
  padding-right: 17px;
  padding-left: 17px;
  white-space: nowrap;
}

@media (min-width: 1061px) and (max-width: 1399px) {
  .bitwaves-hero h1 {
    font-size: clamp(2.45rem, 3.7vw, 3.55rem);
  }

  .bitwaves-hero .bitwaves-button {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 0.88rem;
  }
}

@media (max-width: 1060px) {
  .bitwaves-hero .bitwaves-actions {
    flex-wrap: wrap;
  }

  .bitwaves-hero .bitwaves-button {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 700px) {
  .bitwaves-hero h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.2rem);
  }

  .bitwaves-hero .bitwaves-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bitwaves-hero .bitwaves-button {
    width: 100%;
    white-space: normal;
  }
}
/* BITWAVES-HERO-CONTENT-FINAL-END */

/* BITWAVES-HEADER-PLAYER-FIX-START */

/*
 * Compact desktop player.
 * The normal 1280px player layout is wider than the content
 * area remaining beside the 230px desktop sidebar.
 */
@media (min-width: 1061px) and (max-width: 1499px) {
  .kw-bitwaves-player {
    right: 0;
    left: 230px;
    width: auto;
    min-width: 0;
    min-height: 72px;
    padding: 8px 14px;
    grid-template-columns:
      46px
      40px
      40px
      40px
      minmax(130px, 150px)
      48px
      minmax(130px, 1fr)
      40px
      minmax(60px, 72px)
      auto;
    column-gap: 7px;
    justify-content: stretch;
    overflow: hidden;
  }

  .kw-bitwaves-player__identity,
  .kw-bitwaves-player__external {
    display: none !important;
  }

  .kw-bitwaves-player__station-switch {
    width: auto;
    min-width: 130px;
    max-width: 150px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .kw-bitwaves-player__station-switch strong {
    max-width: 125px;
  }

  .kw-bitwaves-player__track {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .kw-bitwaves-player__track strong {
    max-width: 100%;
  }

  .kw-bitwaves-player__volume {
    min-width: 60px;
    width: 72px;
  }

  .kw-bitwaves-player__volume input {
    width: 62px;
  }

  .kw-bitwaves-player__status {
    justify-self: end;
  }
}

/*
 * At the shared mobile-navigation breakpoint, remove the
 * overlapping slogan and retain a compact KernWi-Fi logo row.
 */
@media (max-width: 1060px) {
  .kw-responsive-brand {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;
    transform: none !important;
    translate: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 14px 18px 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  .kw-responsive-brand__statement {
    display: none !important;
  }

  .kw-responsive-brand img,
  .kw-responsive-brand .kern-logo,
  .kw-responsive-brand__logo {
    width: auto !important;
    max-width: 190px !important;
    height: auto !important;
    max-height: 58px !important;
    margin: 0 !important;
    object-fit: contain !important;
  }

  .bitwaves-partnership-article {
    padding-top: 18px;
  }

  .bitwaves-hero {
    margin-top: 0;
  }

  .bitwaves-back-link {
    position: relative;
    z-index: 1;
  }

  .kw-bitwaves-player {
    right: 0;
    left: 0;
    width: auto;
    max-width: 100%;
    overflow: hidden;
  }

  body:has([data-bitwaves-player-mount]) {
    padding-bottom: 76px !important;
  }
}

/*
 * Tablet player. Keep the main controls and station switch,
 * but remove low-priority desktop controls.
 */
@media (min-width: 901px) and (max-width: 1060px) {
  .kw-bitwaves-player {
    min-height: 70px;
    padding: 8px 14px;
    grid-template-columns:
      46px
      40px
      40px
      40px
      minmax(130px, 155px)
      48px
      minmax(130px, 1fr)
      40px
      auto;
    column-gap: 7px;
  }

  .kw-bitwaves-player__identity,
  .kw-bitwaves-player__volume,
  .kw-bitwaves-player__external {
    display: none !important;
  }

  .kw-bitwaves-player__station-switch {
    display: flex !important;
    width: auto;
    min-width: 130px;
    max-width: 155px;
  }

  .kw-bitwaves-player__track {
    min-width: 0;
    max-width: none;
  }

  .kw-bitwaves-player__status {
    display: block !important;
  }
}

/*
 * Mobile player uses two rows. Station switching occupies its
 * own row, while essential playback information stays visible.
 */
@media (max-width: 900px) {
  .kw-bitwaves-player {
    min-height: 118px;
    padding: 9px 12px;
    grid-template-columns:
      42px
      38px
      48px
      minmax(0, 1fr)
      38px;
    grid-template-rows: auto auto;
    gap: 8px 9px;
    align-items: center;
  }

  .kw-bitwaves-player__identity,
  .kw-bitwaves-player__control[data-bitwaves-rev],
  .kw-bitwaves-player__control[data-bitwaves-fwd],
  .kw-bitwaves-player__volume,
  .kw-bitwaves-player__status,
  .kw-bitwaves-player__external {
    display: none !important;
  }

  .kw-bitwaves-player__play {
    grid-column: 1;
    grid-row: 1;
  }

  .kw-bitwaves-player__control:not(
    [data-bitwaves-rev]
  ):not(
    [data-bitwaves-fwd]
  ) {
    grid-column: 2;
    grid-row: 1;
  }

  .kw-bitwaves-player__artwork {
    grid-column: 3;
    grid-row: 1;
  }

  .kw-bitwaves-player__track {
    grid-column: 4;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
  }

  .kw-bitwaves-player__speaker {
    grid-column: 5;
    grid-row: 1;
  }

  .kw-bitwaves-player__station-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    padding: 6px 13px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .kw-bitwaves-player__station-switch strong {
    max-width: 100%;
  }

  body:has([data-bitwaves-player-mount]) {
    padding-bottom: 118px !important;
  }
}

@media (max-width: 680px) {
  .kw-responsive-brand {
    min-height: 68px !important;
    padding: 11px 14px 8px !important;
  }

  .kw-responsive-brand img,
  .kw-responsive-brand .kern-logo,
  .kw-responsive-brand__logo {
    max-width: 165px !important;
    max-height: 50px !important;
  }

  .bitwaves-partnership-article {
    padding-top: 14px;
  }

  .kw-bitwaves-player {
    min-height: 112px;
    grid-template-columns:
      40px
      38px
      44px
      minmax(0, 1fr)
      38px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .kw-bitwaves-player__artwork {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .kw-bitwaves-player__track-label {
    font-size: 0.48rem;
  }

  .kw-bitwaves-player__track strong {
    font-size: 0.63rem;
  }

  body:has([data-bitwaves-player-mount]) {
    padding-bottom: 112px !important;
  }
}

@media (max-width: 390px) {
  .kw-responsive-brand {
    min-height: 64px !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .kw-responsive-brand img,
  .kw-responsive-brand .kern-logo,
  .kw-responsive-brand__logo {
    max-width: 150px !important;
    max-height: 46px !important;
  }

  .kw-bitwaves-player {
    grid-template-columns:
      40px
      36px
      42px
      minmax(0, 1fr)
      36px;
    gap: 8px 7px;
  }

  .kw-bitwaves-player__artwork {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
}

/* BITWAVES-HEADER-PLAYER-FIX-END */

/* BITWAVES-PLAYER-SIDEBAR-FIT-START */
@media (min-width: 1061px) and (max-width: 1499px) {
  .kw-bitwaves-player {
    left: var(--sidebar-width, 248px) !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    padding-left: 15px !important;
    padding-right: 12px !important;
    overflow: hidden;
  }

  .kw-bitwaves-player__play {
    margin-left: 0 !important;
    transform: none !important;
  }
}

@media (min-width: 1061px) and (max-width: 1279px) {
  .kw-bitwaves-player {
    grid-template-columns:
      46px
      40px
      40px
      40px
      minmax(126px, 145px)
      46px
      minmax(120px, 1fr)
      40px
      minmax(56px, 66px)
      auto !important;
    column-gap: 6px !important;
  }

  .kw-bitwaves-player__station-switch {
    min-width: 126px !important;
    max-width: 145px !important;
  }

  .kw-bitwaves-player__artwork {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  .kw-bitwaves-player__volume {
    width: 66px !important;
    min-width: 56px !important;
  }

  .kw-bitwaves-player__volume input {
    width: 56px !important;
  }
}
/* BITWAVES-PLAYER-SIDEBAR-FIT-END */
