/* Ad variants (?ad=contacts|grid|trio|next-step), built by ads.js. Class names
   avoid ad and ad-* names (EasyList hides those for blocker users).
   Each creative keeps the fixed colors of its /ads sample (image ads don't
   follow the page theme) and scales with the feed width: sizes are in cqw
   (percent of the creative's width), so the layout matches the sample at any
   phone size. The default card's styles stay in styles.css. */

.ehs-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ehs-creative { display: block; position: relative; overflow: hidden; border-radius: 10px; text-decoration: none; container-type: inline-size;
  font-family: "Roboto Flex", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.15; -webkit-tap-highlight-color: transparent; }
.ehs-creative:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ehs-creative .v-inner { position: absolute; inset: 0; }
.ehs-creative svg { display: block; }
.ehs-creative b { font-weight: inherit; }

/* Shared: app icon, Google Play badge, contact silhouette */
.ehs-icon { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 7%; padding: 17%; aspect-ratio: 1; border-radius: 22%; background: #121212; box-sizing: border-box; }
.ehs-icon i { border-radius: 50%; background: #fff; }
.ehs-icon-img { display: block; width: 100%; padding: 0; object-fit: cover; }
.ehs-icon-muted { background: #1f1f1f; }
.ehs-icon-muted i { background: #8d8d8d; }
.gp-badge { display: inline-flex; align-items: center; gap: 0.4em; background: #000; color: #fff; border-radius: 0.4em; padding: 0.3em 0.65em 0.3em 0.45em; line-height: 1; white-space: nowrap; }
.gp-badge .gplay-logo { width: 1.35em; height: 1.5em; }
.gp-badge .gp-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.12em; font-weight: 500; }
.gp-badge small { font-size: 0.42em; letter-spacing: 0.04em; }
.gp-badge-outline { box-shadow: inset 0 0 0 1px #8a8a8a; }
.v-person { width: 100%; height: 100%; }

/* contacts: dark portrait, "Access to Contacts" (ads/image.png) */
.v-contacts { aspect-ratio: 4 / 5; background: #02040d; color: #fff; }
.v-contacts .v-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6.5cqw; padding-top: 6cqw; text-align: center; }
.v-contacts .v-corner { position: absolute; top: 4.5%; right: 7.5%; width: 13cqw; }
.v-contacts .v-title { font-size: 7.8cqw; font-weight: 700; letter-spacing: -0.01em; }
.v-contacts .v-title b, .v-contacts .v-with b { color: #1f8fff; }
.v-contacts .v-avatar { width: 38cqw; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 2.4cqw #1f8fff; color: #f6f6f6; overflow: hidden; padding: 4cqw 4cqw 0; box-sizing: border-box; }
.v-contacts .v-with { font-size: 4.7cqw; font-style: italic; font-weight: 500; }
.v-contacts .gp-badge { font-size: 3.9cqw; margin-top: 3cqw; }

/* grid: red banner + 3x2 app tiles (ads/image (1).png) */
.v-grid { aspect-ratio: 1.91 / 1; background: #000; }
.v-grid .v-inner { display: flex; flex-direction: column; }
.v-grid .v-banner { background: #e1262a; color: #fff; text-align: center; font-weight: 700; font-size: 2.6cqw; letter-spacing: 0.32em; padding: 0.45cqw 0 0.45cqw 0.32em; white-space: nowrap; }
.v-grid .v-tiles { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 0.6cqw; padding: 0.6cqw; }
.v-grid .v-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5cqw; border-radius: 2cqw; background: #6b6b6b; color: #fff; font-weight: 700; font-size: 3.4cqw; text-shadow: 0 0.2cqw 0.4cqw rgba(0, 0, 0, 0.35); }
.v-grid .v-tile svg { width: 12cqw; height: 12cqw; filter: drop-shadow(0 0.5cqw 0.6cqw rgba(0, 0, 0, 0.35)); }

/* trio: white, three blue circles (ads/image (2).png) */
.v-trio { aspect-ratio: 1.91 / 1; background: #fff; color: #000; box-shadow: inset 0 0 0 1px var(--line); }
.v-trio .v-top { position: absolute; top: 2.2cqw; right: 2.4cqw; display: flex; align-items: center; gap: 1.8cqw; }
.v-trio .v-top .gp-badge { font-size: 2.3cqw; }
.v-trio .v-top .v-icon { display: block; width: 6.4cqw; }
.v-trio .v-items { position: absolute; left: 0; right: 0; top: 13.5cqw; display: flex; justify-content: center; gap: 6.5cqw; }
.v-trio .v-item { display: flex; flex-direction: column; align-items: center; gap: 2.2cqw; font-weight: 700; font-size: 3.5cqw; }
.v-trio .v-circle { display: grid; place-items: center; width: 21.5cqw; aspect-ratio: 1; border-radius: 50%; background: #1e90ff; box-shadow: 0 0.5cqw 1cqw rgba(0, 0, 0, 0.3); }
.v-trio .v-circle svg { width: 60%; height: 60%; }
.v-trio .v-with { position: absolute; left: 0; right: 0; bottom: 2.6cqw; text-align: center; font-size: 2.2cqw; font-style: italic; font-weight: 500; }
.v-trio .v-with b { color: #1e90ff; }

/* next-step: black portrait, "Next Step" (ads/image (3).png) */
.v-next-step { aspect-ratio: 2 / 3; background: #000; color: #fff; }
.v-next-step .v-inner { display: flex; flex-direction: column; align-items: center; padding-top: 18cqw; text-align: center; }
.v-next-step .v-corner { position: absolute; top: 12.5cqw; left: 3.8cqw; width: 13cqw; }
.v-next-step .v-big { width: 53cqw; aspect-ratio: 1; border-radius: 50%; background: #1a73e8; color: #fff; padding: 11cqw; box-sizing: border-box; }
.v-next-step .v-big .v-person { filter: drop-shadow(0 1.2cqw 0.8cqw rgba(0, 0, 0, 0.3)); }
.v-next-step .v-title { margin-top: 2.5cqw; font-size: 11.5cqw; font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.9cqw; text-underline-offset: 1.6cqw; }
.v-next-step .v-sub { margin-top: 1.5cqw; color: #1a73e8; font-size: 7.4cqw; font-weight: 500; }
.v-next-step .gp-badge { font-size: 3.9cqw; margin-top: 5cqw; }
.v-next-step .v-adchoices { position: absolute; left: 3.5cqw; bottom: 1.6cqw; display: grid; place-items: center; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: #fff; color: #1a73e8; font: 700 3.2cqw/1 Georgia, serif; }
