/* Front page display ads: photo units that look like what an ad network serves. */
body.loud .wrap { max-width: 1000px; }

.adu {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #202124;
  text-decoration: none;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}
.adu img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  background: #e8eaed;
}
.adu .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 14px 12px;
}
.adu .hl {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #202124;
}
.adu:hover .hl { text-decoration: underline; }
.adu .desc {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.4;
  color: #5f6368;
}
.adu .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.adu .who {
  min-width: 0;
  font-size: 12px;
  color: #5f6368;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adu .who b {
  margin-right: 5px;
  padding: 0 4px;
  border-radius: 3px;
  background: #fbbc04;
  color: #202124;
  font-size: 11px;
}
.adu .cta {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 4px;
  background: #1a73e8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.adu:hover .cta { background: #1558b0; }

/* The little corner mark every network ad carries */
.adu .mark {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 5px;
  padding: 1px 5px 2px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom-left-radius: 4px;
  color: #00aecd;
  font-size: 11px;
  line-height: 14px;
}

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

/* Leaderboard: photo left, copy right */
.adu-wide { flex-direction: row; }
.adu-wide img {
  width: 44%;
  aspect-ratio: 16 / 9;
}
.adu-wide .body { justify-content: center; padding: 18px 24px; }
.adu-wide .hl { font-size: 26px; }
.adu-wide .desc { font-size: 15px; }
.adu-wide .row { margin-top: 16px; padding-top: 0; }
.adu-wide .cta { padding: 10px 22px; font-size: 15px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adu-wide { flex-direction: column; }
  .adu-wide img { width: 100%; aspect-ratio: 1.91 / 1; }
  .adu-wide .body { padding: 14px; }
  .adu-wide .hl { font-size: 21px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}
