/* Format templates in a real-world context. Brand colours come in as --b1/--b2/--b3 (+ -ink for text on them). */

.piece-stage { font-family: var(--font-display); }
.piece-stage p { margin: 0; overflow-wrap: anywhere; }
.mk-head { font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.mk-body { line-height: 1.35; }
.mk-name { font-weight: 600; }
.mk-meta { font-size: 0.66rem; opacity: 0.7; }
.mk-cta { display: inline-block; align-self: flex-start; font: 600 0.7rem var(--font-display); padding: 0.35rem 0.75rem; border-radius: 6px; background: var(--b1); color: var(--b1-ink); }

/* ---------- Phone frame ---------- */
.ph {
  position: relative; width: min(100%, 13.5rem); margin: 0.4rem auto; padding: 0.45rem; border-radius: 2rem;
  background: #1c1c1f; box-shadow: inset 0 0 0 1.5px #3a3a40, 0 20px 40px rgba(0, 0, 0, 0.55);
}
.ph-notch { position: absolute; top: 0.85rem; left: 50%; z-index: 3; width: 3.6rem; height: 0.95rem; border-radius: 999px; background: #000; transform: translateX(-50%); }
.ph-screen { position: relative; aspect-ratio: 9 / 19; border-radius: 1.6rem; overflow: hidden; display: flex; flex-direction: column; }

/* Instagram Story */
.scr-story { background: linear-gradient(170deg, var(--b1), color-mix(in srgb, var(--b1) 55%, #000) 70%, #000); color: var(--b1-ink); padding: 2.1rem 0.8rem 0.9rem; gap: 0.5rem; }
.story-bars { display: flex; gap: 3px; }
.story-bars .bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.story-bars .bar.is-on { background: #fff; }
.story-top { display: flex; align-items: center; gap: 0.4rem; font-size: 0.66rem; }
.story-body { margin-top: auto; display: flex; flex-direction: column; gap: 0.45rem; }
.story-body .mk-head { font-size: 1.15rem; }
.story-body .mk-body { font-size: 0.72rem; opacity: 0.92; }
.story-link { align-self: center; margin-top: 0.6rem; padding: 0.4rem 0.8rem; border-radius: 10px; background: #fff; color: #111; font: 600 0.7rem var(--font-display); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }

/* TikTok */
.scr-tiktok { background: radial-gradient(120% 60% at 50% 40%, color-mix(in srgb, var(--b1) 45%, #000), #050505 75%); color: #fff; padding: 2rem 0.75rem 0.9rem; }
.tt-hook { margin: auto 2.2rem auto 0; }
.tt-hook .mk-head { font-size: 1.1rem; text-shadow: 2px 2px 0 #fe2c55, -2px -2px 0 rgba(37, 244, 238, 0.75); }
.tt-rail { position: absolute; right: 0.55rem; bottom: 3.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.tt-ico { width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.tt-caption { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.7rem; padding-right: 2.3rem; }
.tt-caption .mk-body { font-size: 0.68rem; opacity: 0.88; }

/* Lock screen + push */
.scr-lock { background: linear-gradient(180deg, color-mix(in srgb, var(--b1) 60%, #101018), #07070b 80%); color: #fff; padding: 2.3rem 0.6rem 0.8rem; align-items: center; }
.lock-time { font: 600 2.4rem/1 var(--font-display); letter-spacing: -0.04em; }
.lock-date { font-size: 0.7rem; opacity: 0.85; margin-top: 0.25rem !important; }
.notif {
  margin-top: 1.4rem; width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; padding: 0.6rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.notif .logo-tile { border-radius: 7px; }
.notif-top { display: flex; justify-content: space-between; gap: 0.4rem; font-size: 0.64rem; }
.notif .mk-head { font-size: 0.74rem; margin-top: 0.1rem !important; }
.notif .mk-body { font-size: 0.68rem; opacity: 0.88; }

/* ---------- Instagram feed post ---------- */
.ig { background: #fff; color: #111; border-radius: 12px; overflow: hidden; font-size: 0.74rem; }
.ig-top { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.65rem; }
.ig-top > div { display: flex; flex-direction: column; line-height: 1.2; }
.ig-img { position: relative; aspect-ratio: 1; display: flex; align-items: center; padding: 1.1rem; background: var(--b1); color: var(--b1-ink); }
.ig-img .mk-head { font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.45rem); }
.ig-img .logo-tile { position: absolute; right: 0.7rem; bottom: 0.7rem; }
.ig-cta { display: flex; justify-content: space-between; padding: 0.55rem 0.7rem; font-weight: 600; background: color-mix(in srgb, var(--b2) 35%, #fff); color: #111; }
.ig-actions { display: flex; gap: 0.7rem; padding: 0.55rem 0.7rem 0.2rem; }
.ico { width: 1rem; height: 1rem; border: 1.6px solid #111; border-radius: 50%; }
.ico.heart { border-radius: 50% 50% 4px 50%; transform: rotate(45deg) scale(0.85); }
.ico.send { border-radius: 2px; transform: rotate(20deg) scale(0.85); }
.ig-caption { padding: 0.2rem 0.7rem 0.7rem; line-height: 1.4; }

/* ---------- LinkedIn sponsored post ---------- */
.li { background: #fff; color: #191919; border-radius: 12px; overflow: hidden; font-size: 0.76rem; }
.li-top { display: flex; align-items: center; gap: 0.55rem; padding: 0.7rem 0.75rem 0.4rem; }
.li-top > div { display: flex; flex-direction: column; line-height: 1.25; }
.li-text { padding: 0 0.75rem 0.6rem; color: #333; }
.li-img { position: relative; display: flex; align-items: flex-end; min-height: 9.5rem; padding: 1.1rem; background: linear-gradient(135deg, var(--b1), color-mix(in srgb, var(--b1) 60%, var(--b2))); color: var(--b1-ink); }
.li-img .mk-head { font-size: 1.2rem; max-width: 80%; }
.li-img .logo-tile { position: absolute; top: 0.8rem; right: 0.8rem; }
.li-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.6rem 0.75rem; background: #f3f2ef; }
.li-cta { background: transparent; color: #0a66c2; box-shadow: inset 0 0 0 1.5px #0a66c2; border-radius: 999px; }

/* ---------- Browser + news site (display banners) ---------- */
.site { background: #f6f6f4; color: #111; border-radius: 12px; overflow: hidden; padding-bottom: 0.7rem; }
.site-bar { display: flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.6rem; background: #e4e4e2; }
.dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #c4c4c2; }
.site-url { margin-left: 0.5rem; flex: 1; padding: 0.15rem 0.6rem; border-radius: 999px; background: #fff; font: 500 0.6rem var(--font-display); color: #777; }
.ad-label { display: block; font: 600 0.52rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: #999; text-align: center; margin: 0.5rem 0 0.2rem; }
.news { display: grid; grid-template-columns: 1fr minmax(8.5rem, 45%); gap: 0.8rem; padding: 0.6rem 0.7rem 0; }
.news-main { display: flex; flex-direction: column; gap: 0.35rem; }
.news-main.wide { padding: 0 0.7rem; }
.news-kicker { width: 30%; height: 0.4rem; background: #c9332b; border-radius: 2px; }
.news-title { height: 0.75rem; background: #2a2a2a; border-radius: 2px; }
.news-title.short { width: 70%; }
.news-photo { height: 3.4rem; background: linear-gradient(135deg, #d8d8d4, #bdbdb8); border-radius: 4px; margin: 0.2rem 0; }
.ln { height: 0.35rem; background: #d4d4d0; border-radius: 2px; }
.ln-2 { width: 92%; } .ln-3 { width: 85%; } .ln-4 { width: 60%; }
.news-nav { display: flex; gap: 0.6rem; padding: 0.5rem 0.7rem; margin-bottom: 0.5rem; border-bottom: 1px solid #ddd; }
.nav { flex: 1; height: 0.35rem; background: #bbb; border-radius: 2px; }

/* 300×250 medium rectangle (keeps its real 6:5 ratio) */
.ad-300 {
  aspect-ratio: 300 / 250; display: flex; flex-direction: column; justify-content: space-between; gap: 0.25rem; padding: 0.6rem;
  background: var(--b1); color: var(--b1-ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.ad-300 .mk-head { font-size: 0.95rem; }
.ad-300 .mk-body { font-size: 0.6rem; opacity: 0.9; }
.ad-300 .mk-cta { background: var(--b2); color: var(--b2-ink); font-size: 0.6rem; padding: 0.25rem 0.55rem; }

/* 728×90 leaderboard (real 8:1 ratio) */
.ad-728 {
  margin: 0 0.7rem 0.6rem; aspect-ratio: 728 / 90; display: flex; align-items: center; gap: 0.7rem; padding: 0 0.8rem;
  background: var(--b1); color: var(--b1-ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.ad-728-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.ad-728 .mk-head { font-size: clamp(0.75rem, 0.6rem + 0.5vw, 1rem); }
.ad-728 .mk-body { font-size: 0.58rem; opacity: 0.9; }
.ad-728 .mk-cta { flex: none; background: var(--b2); color: var(--b2-ink); font-size: 0.6rem; padding: 0.25rem 0.55rem; }

/* ---------- Street with billboard (OOH) ---------- */
.street { position: relative; min-height: 15rem; border-radius: 12px; overflow: hidden; background: #0d1220; }
.street-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #1b2a4a 0%, #e9a27a 72%, #f3c79a 100%); }
.street-city {
  position: absolute; left: 0; right: 0; bottom: 2rem; height: 60%;
  background:
    linear-gradient(#262a35, #262a35) 0% 100% / 14% 70% no-repeat,
    linear-gradient(#1f222c, #1f222c) 12% 100% / 12% 95% no-repeat,
    linear-gradient(#2b2f3b, #2b2f3b) 82% 100% / 15% 80% no-repeat,
    linear-gradient(#22252f, #22252f) 100% 100% / 12% 100% no-repeat,
    linear-gradient(#30343f, #30343f) 70% 100% / 10% 55% no-repeat;
}
.bb { position: absolute; left: 50%; bottom: 2rem; width: 60%; transform: translateX(-50%); }
.bb-face {
  position: relative; aspect-ratio: 3 / 1.15; display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; padding: 0.8rem 1rem;
  background: var(--b1); color: var(--b1-ink); border: 5px solid #1a1a1a; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.bb-face .mk-head { font-size: clamp(1rem, 0.7rem + 1.2vw, 1.6rem); letter-spacing: -0.035em; max-width: 85%; }
.bb-face .mk-body { font-size: 0.66rem; opacity: 0.9; max-width: 80%; }
.bb-face .logo-tile { position: absolute; right: 0.6rem; bottom: 0.6rem; }
.bb-legs { display: block; height: 2.2rem; margin: 0 22%; background: linear-gradient(90deg, #1a1a1a 0 6%, transparent 6% 94%, #1a1a1a 94%); }
.street-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 2rem; background: linear-gradient(#3a3a40, #26262b); }

/* ---------- Inbox (email) ---------- */
.inbox { background: #fff; color: #111; border-radius: 12px; overflow: hidden; font-size: 0.74rem; }
.inbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.75rem; font: 700 0.9rem var(--font-display); }
.inbox-search { width: 40%; height: 1.3rem; border-radius: 999px; background: #f1f1f3; }
.mail { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; align-items: start; padding: 0.6rem 0.75rem; border-top: 1px solid #eee; }
.mail.is-fake { opacity: 0.6; grid-template-columns: auto 1fr; }
.mail.is-fake .ln { background: #e2e2e5; margin: 0.25rem 0; }
.mail-av { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #e2e2e5; }
.mail.is-ours { background: color-mix(in srgb, var(--b1) 7%, #fff); }
.mail-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.mail-from { font-weight: 700; }
.mail.is-ours .mk-head { font-size: 0.78rem; font-weight: 600; }
.mail.is-ours .mk-body { color: #6b6b72; font-size: 0.72rem; }
.mail-time { font-size: 0.64rem; color: #2563eb; font-weight: 600; }

/* ---------- WhatsApp Business chat ---------- */
.wa { border-radius: 12px; overflow: hidden; background: #0b141a; color: #e9edef; font-size: 0.76rem; }
.wa-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem; background: #202c33; }
.wa-check { display: inline-grid; place-items: center; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: #25d366; color: #0b141a; font-size: 0.55rem; font-weight: 700; }
.wa-chat { padding: 0.8rem 0.7rem 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03) 1px, transparent 1.5px) 0 0 / 14px 14px, #0b141a; }
.wa-bubble { position: relative; max-width: 90%; display: flex; flex-direction: column; gap: 0.35rem; padding: 0.55rem 0.65rem 1.1rem; border-radius: 2px 10px 10px 10px; background: #202c33; }
.wa-bubble .mk-head { font-size: 0.8rem; }
.wa-bubble .mk-body { font-size: 0.76rem; color: #d1d7db; }
.wa-time { position: absolute; right: 0.5rem; bottom: 0.25rem; font-size: 0.58rem; color: #8696a0; }
.wa-btn { max-width: 90%; padding: 0.5rem; border-radius: 8px; background: #202c33; color: #53bdeb; text-align: center; font-weight: 600; }

@media (prefers-reduced-transparency: reduce) { .notif { backdrop-filter: none; -webkit-backdrop-filter: none; background: #2a2a33; } }

/* Phones: the leaderboard keeps one line and drops the secondary text instead of forcing the page wider. */
.site, .news, .ad-728-text { min-width: 0; }
@media (max-width: 760px) {
  .ad-728 { aspect-ratio: auto; min-height: 3.2rem; padding: 0.5rem 0.7rem; gap: 0.5rem; }
  .ad-728 .mk-body { display: none; }
  .ad-728 .mk-cta { white-space: nowrap; }
}

/* ---------- Google search results (RSA) ---------- */
.serp { background: #fff; color: #202124; border-radius: 12px; overflow: hidden; padding-bottom: 0.8rem; font-family: Arial, var(--font-body), sans-serif; }
.serp-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.8rem; border-bottom: 1px solid #ebebeb; }
.serp-logo { font: 700 1.05rem/1 var(--font-display); color: #4285f4; }
.serp-q { flex: 1; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.78rem; color: #202124; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); }
.serp-ad { padding: 0.8rem 0.9rem 0.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.serp-tag { font-weight: 700; font-size: 0.72rem; }
.serp-site { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; line-height: 1.25; }
.serp-site > div { display: flex; flex-direction: column; }
.serp-url { color: #4d5156; font-size: 0.68rem; }
.serp-title { font-size: 1rem; line-height: 1.3; color: #1a0dab; }
.serp-desc { font-size: 0.78rem; line-height: 1.45; color: #4d5156; }
.serp-org { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.6rem 0.9rem 0; }
.serp-l.t { width: 55%; height: 0.6rem; border-radius: 2px; background: #c5cae9; margin-top: 0.4rem; }
.serp .ln { background: #e8e8e8; }

/* ---------- Custom format: a neutral brand card ---------- */
.mk-custom { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; border-radius: 12px; background: linear-gradient(150deg, var(--b1), color-mix(in srgb, var(--b1) 60%, #000)); color: var(--b1-ink); min-height: 12rem; }
.mk-custom-top { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; }
.mk-custom .mk-head { font-size: 1.15rem; }
.mk-custom .mk-body { font-size: 0.8rem; opacity: 0.92; white-space: pre-line; }
.mk-custom .mk-cta { background: var(--b2); color: var(--b2-ink); }

/* ---------- Outdoor, transit, radio and print supports (custom formats) ---------- */
.ooh-face { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; padding: 0.7rem; background: var(--b1); color: var(--b1-ink); box-shadow: 0 0 0 4px #1a1a1a, 0 10px 26px rgba(0, 0, 0, 0.5); }
.ooh-face .mk-head { font-size: clamp(0.85rem, 0.7rem + 0.6vw, 1.15rem); letter-spacing: -0.03em; }
.ooh-face .mk-body { font-size: 0.6rem; opacity: 0.9; }
.ooh-face .logo-tile { position: absolute; right: 0.45rem; bottom: 0.45rem; width: 1.6rem; height: 1.6rem; }
.street.is-tall { min-height: 19rem; }
/* Mupi: 120x176 lightbox on a post */
.mupi { position: absolute; left: 50%; bottom: 2rem; width: 34%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.mupi-face { width: 100%; aspect-ratio: 120 / 176; justify-content: flex-start; padding-top: 1rem; box-shadow: 0 0 0 5px #2a2a2e, 0 0 30px color-mix(in srgb, var(--b1) 45%, transparent); }
.mupi-post { width: 14%; height: 1.4rem; background: #2a2a2e; }
/* Bus shelter */
.shelter { position: absolute; left: 50%; bottom: 2rem; width: 70%; height: 72%; transform: translateX(-50%); }
.shelter-roof { position: absolute; top: 0; left: -4%; right: -4%; height: 0.6rem; background: #3a3a40; border-radius: 3px; }
.shelter-glass { position: absolute; top: 0.6rem; bottom: 0; left: 0; right: 34%; background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)); border: 2px solid #4a4a52; border-top: 0; }
.shelter-face { position: absolute; top: 0.6rem; bottom: 0; right: 0; width: 34%; justify-content: flex-start; padding-top: 0.8rem; box-shadow: 0 0 0 3px #4a4a52; }
.shelter-face .mk-head { font-size: 0.78rem; }
.shelter-bench { position: absolute; left: 8%; right: 42%; bottom: 0.9rem; height: 0.35rem; background: #55555e; border-radius: 2px; }
/* Metro platform */
.metro { position: relative; min-height: 15rem; border-radius: 12px; overflow: hidden; background: #d8d4c8; }
.metro-tiles { position: absolute; inset: 0; background: linear-gradient(#cfcabd 1px, transparent 1px) 0 0 / 100% 18px, linear-gradient(90deg, #cfcabd 1px, transparent 1px) 0 0 / 36px 100%, #ebe7dc; }
.metro-frame { position: absolute; left: 12%; right: 12%; top: 16%; padding: 6px; background: #2b2b30; border-radius: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.metro-face { aspect-ratio: 4 / 3; box-shadow: none; }
.metro-sign { position: absolute; top: 4%; left: 50%; width: 30%; height: 0.9rem; transform: translateX(-50%); background: #c8102e; border-radius: 3px; }
.metro-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 1.6rem; background: linear-gradient(#f2c200 0 0.4rem, #3a3a40 0.4rem); }
/* Bus side */
.bus-scene { position: relative; min-height: 13rem; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #1b2a4a, #e9a27a 80%); }
.bus { position: absolute; left: 4%; right: 4%; bottom: 2.4rem; height: 64%; border-radius: 14px 18px 6px 6px; background: #f3f3f0; box-shadow: inset 0 -6px 0 #d0d0cc, 0 10px 24px rgba(0, 0, 0, 0.35); }
.bus-windows { position: absolute; top: 8%; left: 3%; right: 3%; height: 28%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.bus-window { background: linear-gradient(160deg, #2b3a55, #11161f); border-radius: 3px; }
.bus-face { position: absolute; left: 8%; right: 8%; top: 42%; bottom: 18%; box-shadow: none; padding: 0.4rem 0.6rem; }
.bus-face .mk-head { font-size: 0.85rem; }
.bus-face .mk-body { display: none; }
.bus-wheel { position: absolute; bottom: -0.9rem; width: 2rem; height: 2rem; border-radius: 50%; background: radial-gradient(circle, #777 0 30%, #111 32%); }
.bus-wheel.w1 { left: 14%; } .bus-wheel.w2 { right: 14%; }
/* Digital screen (DOOH) */
.dooh { position: absolute; left: 50%; bottom: 3.4rem; width: 62%; transform: translateX(-50%); padding: 5px; background: #111; border-radius: 4px; box-shadow: 0 0 40px color-mix(in srgb, var(--b1) 55%, transparent); overflow: hidden; }
.dooh-face { aspect-ratio: 16 / 9; box-shadow: none; }
.dooh-scan { position: absolute; inset: 5px; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px); }
.dooh-pole { position: absolute; left: 50%; bottom: 2rem; width: 0.6rem; height: 1.4rem; transform: translateX(-50%); background: #2a2a2e; }
/* Building facade banner */
.facade { position: relative; min-height: 19rem; border-radius: 12px; overflow: hidden; background: #8d8478; }
.facade-windows { position: absolute; inset: 6% 6%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 14px; }
.fw { background: linear-gradient(160deg, #3a4253, #1d222b); border-radius: 2px; }
.facade-face { position: absolute; left: 30%; right: 30%; top: 4%; bottom: 4%; justify-content: flex-start; padding-top: 1.2rem; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
/* Radio spot */
.radio { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem; border-radius: 12px; background: linear-gradient(160deg, #141418, #0b0b0d); color: #f2f2f4; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.radio-top { display: flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; }
.radio-time { margin-left: auto; font: 600 0.72rem var(--font-display); color: var(--b1-ink, #fff); background: var(--b1); padding: 0.1rem 0.45rem; border-radius: 999px; }
.radio-wave { display: flex; align-items: center; gap: 2px; height: 3rem; }
.wave-bar { flex: 1; height: var(--h, 40%); border-radius: 2px; background: linear-gradient(180deg, var(--b1), color-mix(in srgb, var(--b1) 40%, #fff)); }
.radio .mk-head { font-size: 0.95rem; }
.radio .mk-body { font-size: 0.76rem; opacity: 0.85; white-space: pre-line; }
/* Print */
.print { position: relative; display: flex; justify-content: center; padding: 0.8rem 0.8rem 0.8rem 2.2rem; border-radius: 12px; background: #3b3733; }
.print-facing { position: absolute; left: 0.5rem; top: 1rem; bottom: 1rem; width: 1.6rem; background: linear-gradient(90deg, #e8e4dc, #cfcac0); }
.print-page { position: relative; width: 70%; aspect-ratio: 210 / 297; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.35rem; padding: 0.9rem; background: linear-gradient(180deg, var(--b1) 0 62%, #f7f5f0 62%); color: #111; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5); }
.print-page .logo-tile { position: absolute; top: 0.7rem; left: 0.7rem; }
.print-page .mk-head { font-size: 0.95rem; }
.print-page .mk-body { font-size: 0.66rem; color: #444; }

/* Words break between words, never mid-word, on the outdoor faces. */
.ooh-face .mk-head, .bb-face .mk-head, .print .mk-head, .radio .mk-head { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.mupi-face .mk-head, .shelter-face .mk-head, .facade-face .mk-head { font-size: 0.78rem; line-height: 1.12; }
.mupi-face .mk-body, .shelter-face .mk-body, .facade-face .mk-body { font-size: 0.55rem; }
.bb-face .mk-head { font-size: clamp(0.85rem, 0.6rem + 0.9vw, 1.3rem); }
/* Print: picture on top, copy on white paper below. */
.print-page { justify-content: flex-start; padding: 0; background: #f7f5f0; overflow: hidden; }
.print-img { position: relative; flex: 0 0 52%; background: linear-gradient(160deg, var(--b1), color-mix(in srgb, var(--b1) 55%, #fff)); }
.print-img .logo-tile { position: absolute; top: 0.6rem; left: 0.6rem; }
.print-copy { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.7rem 0.8rem; color: #111; }
.print-copy .mk-head { font-size: 0.85rem; }
.print-copy .mk-cta { align-self: flex-start; }
@media (min-width: 900px) {
  .mupi-face .mk-head, .facade-face .mk-head { font-size: 1.1rem; }
  .shelter-face .mk-head { font-size: 0.95rem; }
  .mupi-face .mk-body, .shelter-face .mk-body, .facade-face .mk-body { font-size: 0.68rem; }
}
.print-page { width: 42%; }

/* ---- Reference photo of the brand behind the copy (Openverse, openly licensed) ---- */
.has-photo { position: relative; isolation: isolate; }
.mk-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
/* A dark wash keeps the copy readable over any photo (the copy carries the message, the photo the product). */
.has-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.62) 70%, rgba(0, 0, 0, 0.78)); }
.has-photo, .has-photo .mk-head, .has-photo .mk-body { color: #fff; }
.ig-img.has-photo, .li-img.has-photo { align-items: flex-end; }
.ad-300.has-photo { padding-top: 5.5rem; }
.ad-300.has-photo .mk-photo { height: 55%; inset: 0 0 auto 0; }
.ad-300.has-photo::before { background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7)); }
.print-img.has-photo .mk-photo { z-index: 0; }

/* Outdoor faces: photo on top, copy below on the brand colour, nothing clipped */
.ooh-face { overflow: hidden; }
.ooh-face.has-photo { justify-content: flex-end; padding: 0; background: var(--b1); }
.ooh-face.has-photo .mk-photo { position: relative; inset: auto; height: 52%; flex: none; z-index: 0; }
.ooh-face.has-photo::before { display: none; }
.ooh-face.has-photo .face-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; padding: 0.5rem 0.6rem 1.9rem; color: var(--b1-ink); }
.ooh-face.has-photo .mk-head, .ooh-face.has-photo .mk-body { color: var(--b1-ink); }
.face-copy { display: flex; flex-direction: column; gap: 0.3rem; min-height: 0; }
.face-copy .mk-head { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
/* The mupi is sized by the street's height, so it always fits (it used to overflow and lose its first line). */
.mupi { height: calc(100% - 3rem); width: auto; top: 1rem; bottom: auto; }
.mupi-face { height: calc(100% - 1.4rem); width: auto; aspect-ratio: 120 / 176; padding-top: 0.7rem; }
.mupi-face.has-photo { padding-top: 0; }
/* Photo stacking: photo at the bottom, dark wash over it, copy on top. Phones keep it inside the screen. */
.mk-photo { z-index: -2; }
.ph.has-photo::before { display: none; }
.ph.has-photo .ph-screen { isolation: isolate; }
.ph.has-photo .ph-screen::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.85)); }
.ph.has-photo .ph-screen, .ph.has-photo .mk-head, .ph.has-photo .mk-body { color: #fff; }
.ooh-face.has-photo .mk-photo, .print-img.has-photo .mk-photo { z-index: 0; }

/* Photo box: a real element (photo + wash) so the Word snapshots keep both. Replaces the ::before washes. */
.has-photo::before, .ph.has-photo .ph-screen::before { display: none; }
.mk-photo-box { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.mk-photo-box .mk-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: auto; }
.mk-wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.82)); }
.ad-300.has-photo .mk-photo-box { inset: 0 0 auto 0; height: 55%; }
.ad-300.has-photo .mk-wash { background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7)); }
.ad-300.has-photo .mk-head, .ad-300.has-photo .mk-body { color: var(--b1-ink); }
.ooh-face.has-photo .mk-photo-box { position: relative; inset: auto; height: 52%; flex: none; z-index: 0; border-radius: 0; }
.ooh-face.has-photo .mk-wash, .print-img.has-photo .mk-wash { display: none; }
.print-img.has-photo .mk-photo-box { z-index: 0; }
