/* The homepage Features grid's two drawn iOS Messages tiles: "Your name and photo" (the New Contact banner under the thread header) and
   "Photos and voice memos" (a photo bubble over a voice-memo bubble). They replace the old screenshots so the tiles follow the light and
   dark themes. Index.html only; loaded after css/features-grid.css, whose panel colour (--feat-panel) they sit on.
   Every length is a pixel of the original 1206px-wide screenshot times --p (100cqw / 1206), so the art scales with the tile and
   nothing shifts. The header is the shared css/thread-head.css (.th-head) at --th-u = 3 --p (one iOS point is 3 screenshot pixels);
   the voice bubble's tail is css/bubble-tail.css (.bt-in). Static: no animation, no backdrop-filter over moving content. */
.imsg #features .feature-media.is-drawn {background: var(--feat-panel); container-type: inline-size;}
#features .dr-scene {--p: calc(100cqw / 1206); position: relative; width: 100%; color: #000; text-align: left; -webkit-font-smoothing: antialiased;
  font-family: var(--zs-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif);
  --dr-blue: #0a91ff; --dr-gray: #e8e8ea; --dr-sub: #6a6a6e; --dr-card: #fcfcfc;}
[data-theme="dark"] #features .dr-scene {color: #fff; --dr-blue: #0a84ff; --dr-gray: #2c2e33; --dr-sub: #98989f; --dr-card: #26282d;}

/* Your name and photo */
#features .dr-name {aspect-ratio: 1206 / 574; --th-u: calc(3 * var(--p)); --th-ink: #000;}
[data-theme="dark"] #features .dr-name {--th-ink: #fff;}
#features .dr-name .th-head {position: absolute; inset: 0 0 auto 0; --th-glass: rgba(255,255,255,.96); --th-glass-edge: transparent; --th-glass-hi: transparent; --th-glass-shadow: 0 calc(4 * var(--p)) calc(40 * var(--p)) rgba(0,0,0,.1);}   /* the screenshot's glass is plain white with only a soft shadow */
[data-theme="dark"] #features .dr-name .th-head {--th-glass: rgba(44,46,51,.96); --th-glass-edge: transparent; --th-glass-hi: rgba(255,255,255,.06); --th-glass-shadow: 0 calc(4 * var(--p)) calc(40 * var(--p)) rgba(0,0,0,.45);}
#features .dr-blur {position: absolute; left: calc(-60 * var(--p)); top: calc(70 * var(--p)); width: calc(430 * var(--p)); height: calc(230 * var(--p));
  background: radial-gradient(closest-side, rgba(0,0,0,.075), transparent); pointer-events: none;}
[data-theme="dark"] #features .dr-blur {background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent);}
#features .dr-banner {position: absolute; left: calc(48 * var(--p)); right: calc(48 * var(--p)); top: calc(330 * var(--p)); height: calc(215 * var(--p));
  display: flex; align-items: center; gap: calc(24 * var(--p)); padding: 0 calc(48 * var(--p)) 0 calc(80 * var(--p)); box-sizing: border-box;
  border-radius: calc(108 * var(--p)); background: var(--dr-card);
  box-shadow: 0 0 0 calc(1 * var(--p)) rgba(0,0,0,.05), 0 calc(8 * var(--p)) calc(40 * var(--p)) rgba(0,0,0,.12);}
[data-theme="dark"] #features .dr-banner {box-shadow: inset 0 0 0 calc(1 * var(--p)) rgba(255,255,255,.1), 0 calc(8 * var(--p)) calc(40 * var(--p)) rgba(0,0,0,.45);}
#features .dr-who {flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: calc(46.5 * var(--p)); line-height: calc(55 * var(--p)); letter-spacing: -.02em; white-space: nowrap;}
#features .dr-who b {font-weight: 600; color: inherit;}
#features .dr-who span {color: var(--dr-sub);}
#features .dr-update {display: grid; place-items: center; height: calc(125 * var(--p)); padding: 0 calc(49 * var(--p)); border-radius: calc(63 * var(--p));
  background: #d2e4f8; color: #3c7fe8; font-size: calc(51 * var(--p)); font-weight: 700; letter-spacing: -.01em; line-height: 1;}
[data-theme="dark"] #features .dr-update {background: rgba(10,132,255,.22); color: #0a84ff;}
#features .dr-x {display: grid; place-items: center; width: calc(120 * var(--p)); height: calc(120 * var(--p)); border-radius: 50%; background: #ebebeb; color: #636366;}
[data-theme="dark"] #features .dr-x {background: #3a3a3c; color: #aeaeb2;}
#features .dr-x svg {width: calc(42 * var(--p)); height: calc(42 * var(--p));}

/* Photos and voice memos */
#features .dr-voice {position: absolute; inset: 0; width: auto; --bt-u: calc(2.3 * var(--p));}
#features .dr-photo {position: absolute; left: calc(202 * var(--p)); top: calc(75 * var(--p)); width: calc(475 * var(--p)); height: calc(317 * var(--p));
  border-radius: calc(40 * var(--p)); overflow: hidden;}
#features .dr-photo img {display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;}
[data-theme="dark"] #features .dr-photo img {filter: brightness(.9);}
#features .dr-vbub {position: absolute; left: calc(202 * var(--p)); top: calc(400 * var(--p)); width: calc(800 * var(--p)); height: calc(213 * var(--p));
  border-radius: calc(64 * var(--p)); background: var(--dr-gray);}
#features .dr-play {position: absolute; left: calc(47 * var(--p)); top: calc(66 * var(--p)); width: calc(80 * var(--p)); height: calc(80 * var(--p));
  border-radius: 50%; background: var(--dr-blue); color: #fff; display: grid; place-items: center;}
#features .dr-play svg {width: calc(42 * var(--p)); height: calc(42 * var(--p)); margin-left: calc(3 * var(--p));}
#features .dr-wave {position: absolute; left: calc(162 * var(--p)); top: calc(56 * var(--p)); width: calc(450 * var(--p)); height: calc(100 * var(--p)); color: var(--dr-blue);}
#features .dr-time {position: absolute; right: calc(41 * var(--p)); top: 50%; transform: translateY(-50%); font-size: calc(36 * var(--p)); line-height: 1; color: var(--dr-sub);
  font-variant-numeric: tabular-nums;}
