/* Email phone (widgets/email/email.js). The phone's screen is an email client, so its content stays white with
   email typography (Helvetica/Arial) in both themes. The phone is the prototype viewer's phone (widgets/proto):
   a 9:19.5 bezel with a 1px white line on the screen's inner edge, lighter in dark mode. */
.em { container-type: size; font-size: 12.5px; line-height: 1.4; color: var(--ink); text-align: left; }
.em__wrap { display: grid; grid-template-columns: minmax(0, 210px) auto; justify-content: center; grid-template-rows: minmax(0, 1fr); gap: 20px; height: 100%; padding: 16px 22px; }
.em button { font: inherit; color: inherit; }
.em__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.em__eyebrow { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.em__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.em__tab { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink-2) !important; }
.em__tab-name { font-size: 15px; font-weight: 500; }
.em__tab-year { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.em__tab[aria-selected=true] { color: var(--ink) !important; box-shadow: inset 3px 0 0 var(--mark); padding-left: 12px; }
.em__tab { transition: padding-left .25s ease, box-shadow .25s ease; }
.em__about { margin: 0; color: var(--ink-2); }

/* Phone */
.em__phone {
  --h: calc(100cqh - 32px);
  --pad: calc(var(--h) * .03);
  position: relative; box-sizing: border-box; display: flex; align-self: center; height: var(--h); width: calc(var(--h) * 9 / 19.5); padding: var(--pad);
  border-radius: calc(var(--h) * .06); background: #1c1c1e; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px -22px rgba(0,0,0,.5);
}
html[data-theme=dark] .em__phone { background: #4a4a4f; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.em__phone::after { content: ''; position: absolute; inset: var(--pad); z-index: 1; border-radius: calc(var(--h) * .03); box-shadow: inset 0 0 0 1px #fff; pointer-events: none; }
.em__screen { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; border-radius: calc(var(--h) * .03); background: #fff; scrollbar-width: none; }
.em__screen::-webkit-scrollbar { display: none; }
.em__screen:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.em__body.is-in { animation: em-in .35s ease both; }
@keyframes em-in { from { opacity: 0; transform: translateY(8px); } }

/* Email content */
.em__body { padding-bottom: 28px; color: #2b2b2b; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1.45; }
.em__body img { display: block; max-width: 100%; }
.em__body .em__whole { width: 100%; height: auto; }
.em__bar { padding: 32px 18px 12px; background: #232323; }
.em__vt { width: 62%; margin: 0 auto; }
.em__stripe { height: 5px; background: linear-gradient(#861f41 0 45%, #e5751f 45%); }
.em__mast { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 18px 14px; }
.em__mast--dark { padding: 14px 0 2px; }
.em__lockup { width: 82%; }
.em__news { padding: 3px 8px; background: linear-gradient(90deg, #861f41, #d75a1c); color: #fff; font: italic 800 22px/1 Helvetica, Arial, sans-serif; letter-spacing: .02em; }
.em__ed { font: italic 800 22px/1 Helvetica, Arial, sans-serif; color: #fff; }
.em__ed--grad { background: linear-gradient(90deg, #a2283a, #d75a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.em__ed--stack { display: flex; flex-direction: column; font-size: 12px; line-height: 1.05; color: #d75a1c; font-weight: 300; }
.em__ed--stack b { font-weight: 800; }
.em__rule { height: 1px; margin: 0 0; background: #8a8a8a; }
.em__rule--inset { margin: 0 14px 12px; background: #9a9a9a; }
.em__date { margin: 10px 0 8px; text-align: center; font-size: 14px; font-style: italic; }
.em__wx { margin: 0 14px 12px; text-align: center; font-size: 10px; line-height: 1.5; }
.em__thick { height: 4px; margin: 0 14px; background: #444; }
.em__banner { margin: 10px 8px; text-align: center; font: 700 13px/1.2 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif; letter-spacing: -.01em; color: #3c8a96; }
.em__banner .o { color: #d4531f; }
.em__h { margin: 14px 14px 10px; font-size: 18px; line-height: 1.2; font-weight: 700; }
.em__h--cond { font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif; font-weight: 600; letter-spacing: -.01em; }
.em__photo { width: calc(100% - 28px); margin: 0 14px; }
.em__p { margin: 8px 14px 0; font-size: 12px; }
.em__ready { margin: 18px 14px 6px; padding: 12px 14px; border-radius: 4px; background: linear-gradient(135deg, #1c6c7c, #0c4a60); color: #fff; }
.em__ready p { margin: 0; }
.em__ready-h { padding-bottom: 6px; margin-bottom: 6px !important; border-bottom: 2px solid #fff; font-size: 15px; }
.em__sec { margin: 16px 14px 8px; padding-bottom: 6px; border-bottom: 3px solid #111; font: 600 17px/1.2 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif; color: #111; }
.em__item { display: grid; grid-template-columns: 74px 1fr; gap: 10px; margin: 0 14px; padding: 8px 0 10px; border-bottom: 1px solid #222; }
.em__item--text { grid-template-columns: 1fr; }
.em__thumb { width: 74px; height: 74px; object-fit: cover; }
.em__item h4 { margin: 0 0 4px; font-size: 13px; line-height: 1.25; }
.em__item p { margin: 0; font-size: 11.5px; }
.em__box { margin: 14px 14px 0; padding: 10px 14px 4px; border-radius: 3px; background: linear-gradient(135deg, #3a3a3a, #262626); color: #fff; }
.em__box h3 { margin: 0 0 4px; padding-bottom: 6px; border-bottom: 2px solid #fff; font: 400 16px/1.2 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif; }
.em__box ul { margin: 0; padding: 0; list-style: none; }
.em__box li { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.5); font-size: 11.5px; }
.em__box li:last-child { border-bottom: 0; }

@container (max-width: 440px) {
  .em__wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: 12px; }
  .em__list { flex-direction: row; flex-wrap: wrap; border: 0; gap: 4px; }
  .em__tab { flex: none; padding: 3px 10px; border: 0; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line); }
  .em__tab[aria-selected=true] { padding-left: 10px; background: var(--ink); color: var(--bg) !important; box-shadow: none; }
  .em__tab-name { font-size: 12.5px; }
  .em__tab-year, .em__about, .em__eyebrow { display: none; }
  .em__phone { --h: calc(100cqh - 74px); justify-self: center; }
}
/* The phone and, on stacked pages, its buttons. */
.em__view { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 0; align-self: center; }
.em__pad { display: none; gap: 8px; }
.em__pad button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg) !important; font-size: 17px !important; }
/* Stacked page: a phone narrower than the screen, no finger scrolling inside it, buttons under it. */
.is-vertical .pic--email .em__wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; height: auto; }
.is-vertical .pic--email .em__phone { --h: min(560px, calc((100vw - 120px) * 19.5 / 9)); }
.is-vertical .pic--email .em__screen { overflow: hidden; touch-action: pan-y; }
.is-vertical .pic--email .em__pad { display: flex; }
@media (prefers-reduced-motion: reduce) { .em__body.is-in { animation: none; } .em__tab { transition: none; } }
