/* Google Ads illustration: search results, Shopping row, campaign structure and tracking (.ga). Built on the shared .vz system. */
.ga__query {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  border: 1px solid var(--vz-line);
  border-radius: 3.75rem;
  background-color: #fff;
  max-width: 17rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.8125rem;
  line-height: 1.3em;
  color: #34465a;
}
.ga__query svg {
  flex: none;
  color: var(--vz-text-blue);
}
.ga__query span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Text advert */
.ga__ad {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.ga__adtag {
  font-size: 0.6875rem;
  line-height: 1.2em;
  color: #5b6b7d;
}
.ga__adtag b {
  margin-right: 0.3rem;
  border: 1px solid #5b6b7d;
  border-radius: 0.25rem;
  padding: 0 0.25rem;
  font-weight: 700;
}
.ga__adtitle {
  font-size: 1.0625rem;
  line-height: 1.25em;
  font-weight: 600;
  color: #0d5da8;
}
.ga__ad .vz__bar {
  height: 0.4rem;
}
.ga__links {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.15rem;
}
.ga__links i {
  display: block;
  border-radius: 0.35rem;
  background-color: #e4eefa;
  height: 1.1rem;
  width: 3.4rem;
}

/* Shopping row */
.ga__shoplabel {
  margin-bottom: 0.55rem;
}
.ga__shop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.ga__tile {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--vz-line);
  border-radius: 0.85rem;
  background-color: #fff;
  padding: 0.5rem;
}
.ga__tile .vz__bar {
  height: 0.35rem;
}
.ga__tile b {
  font-family: var(--headerFont);
  font-size: 0.9375rem;
  line-height: 1em;
  font-weight: 700;
  color: var(--headerColor);
}
.ga__img {
  position: relative;
  overflow: hidden;
  border-radius: 0.6rem;
  aspect-ratio: 5 / 4;
}
.ga__img:before {
  content: "";
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
}
.ga__img--1 {
  background: linear-gradient(145deg, #12406e, #001f3f);
}
.ga__img--1:before {
  inset: 30% 20% 24%;
  border-radius: 0.4rem 0.4rem 0.15rem 0.15rem;
}
.ga__img--2 {
  background: linear-gradient(145deg, #bfe5fb, #43b7ff);
}
.ga__img--2:before {
  inset: 26% 32%;
  border-radius: 50%;
  background-color: #001f3f;
}
.ga__img--3 {
  background: linear-gradient(145deg, #eef2f6, #d3dce6);
}
.ga__img--3:before {
  inset: 38% 18% 26%;
  border-radius: 0.3rem;
  background-color: #43b7ff;
}

/* Floating cards */
.ga__tree,
.ga__track {
  padding: 0.85rem 0.95rem 0.95rem;
}
.ga__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.ga__tree ul,
.ga__track ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}
.ga__tree li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  border-left: 2px solid var(--secondary);
  padding-left: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 600;
  color: var(--headerColor);
}
.ga__tree .vz__pill {
  font-style: normal;
}
.ga__track li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 600;
  color: var(--headerColor);
}
.ga__track li svg {
  flex: none;
  border-radius: 50%;
  background-color: rgba(67, 183, 255, 0.2);
  padding: 3px;
  height: 1.2rem;
  width: 1.2rem;
  color: var(--vz-text-blue);
}
.ga__track .ga__opt svg {
  background-color: var(--primary);
  color: #fff;
}
@media only screen and (min-width: 64rem) {
  .ga .vz__stage {
    padding-bottom: 7.5rem;
  }
  .ga__tree {
    bottom: 0;
    left: -1.5rem;
    width: 14.5rem;
  }
  .ga__track {
    right: -1.5rem;
    bottom: 1.25rem;
    width: 14.5rem;
  }
}

/* Phones and tablets: the two cards sit side by side over the lower edge of the search results. */
@media only screen and (max-width: 63.999rem) {
  .ga .vz__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 0 0.65rem;
    padding: 0 0.25rem;
  }
  .ga .vz__card {
    grid-column: 1 / -1;
  }
  .ga .vz__body {
    padding: 0.8rem 0.8rem 1.6rem;
  }
  .ga__ad {
    margin-bottom: 0.8rem;
  }
  .ga__tree,
  .ga__track {
    position: relative;
    z-index: 2;
    margin-top: -0.9rem;
    padding: 0.7rem 0.7rem 0.8rem;
  }
  .ga__tree {
    margin-left: 0.4rem;
  }
  .ga__track {
    margin-right: 0.4rem;
  }
  .ga__track .vz__badge {
    display: none;
  }
  .ga__tree li,
  .ga__track li {
    font-size: 0.75rem;
  }
  .ga__tree li {
    padding-left: 0.5rem;
  }
  .ga__tree .vz__pill {
    padding: 0.15rem 0.4rem;
    font-size: 0.5625rem;
    letter-spacing: 0.03em;
  }
  .ga__query {
    margin: 0;
  }
}

/* Dark mode */
html.dark-mode .ga__query {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}
html.dark-mode .ga__adtag {
  color: rgba(255, 255, 255, 0.68);
}
html.dark-mode .ga__adtag b {
  border-color: rgba(255, 255, 255, 0.5);
}
html.dark-mode .ga__adtitle {
  color: #7fc4f5;
}
html.dark-mode .ga__links i {
  background-color: rgba(67, 183, 255, 0.18);
}
html.dark-mode .ga__tile {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.04);
}
html.dark-mode .ga__tile b,
html.dark-mode .ga__tree li,
html.dark-mode .ga__track li {
  color: #fff;
}
html.dark-mode .ga__track .ga__opt svg {
  background-color: #fff;
  color: var(--primary);
}
