/* Paid Media illustration: campaign manager with ad previews (.pm). Built on the shared .vz system. */
.pm__tabs {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--vz-line);
}
.pm__tab {
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  padding: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 600;
  color: #5b6b7d;
}
.pm__tab--on {
  border-bottom-color: var(--secondary);
  color: var(--primary);
}
.pm__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.pm__kpis > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border: 1px solid #e9eef3;
  border-radius: 0.85rem;
  background-color: #f7f9fb;
  padding: 0.6rem 0.75rem;
}
.pm__kpis strong {
  font-family: var(--headerFont);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.1em;
  font-weight: 700;
  color: var(--headerColor);
}
.pm__list {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.pm__list li {
  display: grid;
  grid-template-columns: 0.55rem minmax(0, 1fr) auto 4.5rem;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}
.pm__dot {
  display: block;
  border-radius: 50%;
  background-color: var(--secondary);
  height: 0.55rem;
  width: 0.55rem;
  box-shadow: 0 0 0 3px rgba(67, 183, 255, 0.22);
}
.pm__dot--learn {
  background-color: #9aa8b8;
  box-shadow: 0 0 0 3px rgba(154, 168, 184, 0.25);
}
.pm__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 600;
  color: var(--headerColor);
}
.pm__meter {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--vz-bar);
  height: 0.4rem;
}
.pm__fill {
  display: block;
  border-radius: 1rem;
  background-color: var(--primary);
  height: 100%;
}
.pm__w82 {
  width: 82%;
}
.pm__w58 {
  width: 58%;
}
.pm__w34 {
  width: 34%;
}

/* Performance bars (sample, relative) */
.pm__chart {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  border-bottom: 1px solid var(--vz-line);
  height: 5.25rem;
}
.pm__col {
  display: block;
  flex: 1;
  border-radius: 0.35rem 0.35rem 0 0;
  background: linear-gradient(180deg, rgba(67, 183, 255, 0.55), rgba(67, 183, 255, 0.2));
}
.pm__col--hi {
  background: linear-gradient(180deg, var(--secondary), rgba(67, 183, 255, 0.5));
}
.pm__h34 {
  height: 34%;
}
.pm__h40 {
  height: 40%;
}
.pm__h46 {
  height: 46%;
}
.pm__h52 {
  height: 52%;
}
.pm__h58 {
  height: 58%;
}
.pm__h64 {
  height: 64%;
}
.pm__h70 {
  height: 70%;
}
.pm__h88 {
  height: 88%;
}

/* Ad previews (generic, no platform logos) */
.pm__search {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 1rem 1rem;
}
.pm__adtag {
  font-size: 0.6875rem;
  line-height: 1.2em;
  color: #5b6b7d;
}
.pm__adtag b {
  margin-right: 0.3rem;
  border: 1px solid #5b6b7d;
  border-radius: 0.25rem;
  padding: 0 0.25rem;
  font-weight: 700;
}
.pm__adtitle {
  font-size: 0.9375rem;
  line-height: 1.25em;
  font-weight: 600;
  color: #0d5da8;
}
.pm__search .vz__bar {
  height: 0.38rem;
}
.pm__social {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
}
.pm__who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pm__who i {
  display: block;
  flex: none;
  border-radius: 50%;
  background-color: var(--primary);
  height: 1.3rem;
  width: 1.3rem;
}
.pm__who .vz__bar {
  width: 3rem;
  height: 0.38rem;
}
.pm__who small {
  margin-left: auto;
  font-size: 0.625rem;
  line-height: 1.2em;
  color: #6b7889;
}
.pm__creative {
  position: relative;
  overflow: hidden;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, #001f3f, #14406e);
  aspect-ratio: 16 / 11;
}
.pm__creative:before {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7fd0ff, #43b7ff 60%, rgba(67, 183, 255, 0.2));
  height: 75%;
  aspect-ratio: 1;
}
.pm__creative:after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -35%;
  left: -8%;
  border-radius: 50% 50% 0 0;
  background-color: rgba(255, 255, 255, 0.92);
  height: 55%;
}
.pm__social .vz__bar {
  height: 0.38rem;
}
.pm__learn {
  border-radius: 0.5rem;
  background-color: #e9eef3;
  padding: 0.35rem 0.5rem;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.2em;
  font-weight: 700;
  color: var(--primary);
}
@media only screen and (min-width: 64rem) {
  .pm .vz__stage {
    padding-bottom: 9rem;
  }
  .pm__social {
    bottom: 0;
    left: -1.5rem;
    width: 11.5rem;
  }
  .pm__search {
    right: -1.5rem;
    bottom: 1.5rem;
    width: 15rem;
  }
}
@media only screen and (max-width: 30rem) {
  .pm__list li {
    grid-template-columns: 0.55rem minmax(0, 1fr) auto 3rem;
    gap: 0.5rem;
  }
}

/* Dark mode */
html.dark-mode .pm__tab--on {
  color: #fff;
}
html.dark-mode .pm__kpis > div {
  border-color: rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.04);
}
html.dark-mode .pm__kpis strong,
html.dark-mode .pm__name {
  color: #fff;
}
html.dark-mode .pm__tab,
html.dark-mode .pm__adtag,
html.dark-mode .pm__who small {
  color: rgba(255, 255, 255, 0.68);
}
html.dark-mode .pm__adtag b {
  border-color: rgba(255, 255, 255, 0.5);
}
html.dark-mode .pm__fill {
  background-color: var(--secondary);
}
html.dark-mode .pm__adtitle {
  color: #7fc4f5;
}
html.dark-mode .pm__who i {
  background-color: #fff;
}
html.dark-mode .pm__learn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* When the floating ads stack under the dashboard, keep them a sensible size. */
@media only screen and (max-width: 63.999rem) {
  .pm__social {
    max-width: 15rem;
  }
  .pm__search {
    max-width: 22rem;
  }
}

/* Phones: a more compact composition. The two ad previews sit side by side, overlapping the dashboard's
   lower edge (as on desktop), instead of stacking as two large cards. */
@media only screen and (max-width: 30rem) {
  .pm .vz__stage {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: 0 0.65rem;
    padding: 0 0.25rem;
  }
  .pm .vz__card {
    grid-column: 1 / -1;
  }
  .pm .vz__body {
    padding: 0.75rem 0.8rem 1.5rem;
  }
  .pm__tabs {
    margin-bottom: 0.65rem;
  }
  .pm__tab {
    padding-bottom: 0.4rem;
  }
  .pm__kpis {
    gap: 0.45rem;
    margin-bottom: 0.7rem;
  }
  .pm__kpis > div {
    padding: 0.45rem 0.6rem;
  }
  .pm__list {
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }
  .pm__chart {
    gap: 0.35rem;
    height: 3.6rem;
  }
  .pm__social,
  .pm__search {
    position: relative;
    z-index: 2;
    max-width: none;
  }
  .pm__social {
    grid-column: 1;
    gap: 0.4rem;
    margin: -0.75rem 0 0 0.4rem;
    padding: 0.6rem;
  }
  .pm__creative {
    aspect-ratio: 16 / 9;
  }
  .pm__search {
    grid-column: 2;
    align-self: center;
    gap: 0.35rem;
    margin: 0.35rem 0.4rem 0 0;
    padding: 0.7rem 0.8rem 0.8rem;
  }
  .pm__adtitle {
    font-size: 0.875rem;
  }
}
