.mobile-example-open{display:none}
.mobile-example-dialog{padding:0;border:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;background:var(--paper);color:var(--ink)}
.mobile-example-dialog[open]{display:flex;flex-direction:column}
.mobile-example-dialog::backdrop{background:rgba(27,38,44,.65)}
.mobile-example-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));background:var(--ink);color:#fff}
.mobile-example-toolbar h2{font:600 19px/1.3 var(--sans);margin:0;color:#fff}
.mobile-example-close{font:600 15px var(--sans);background:#fff;color:var(--ink);border:0;min-height:44px;padding:10px 18px;cursor:pointer}
.mobile-example-content{overflow:auto;overscroll-behavior:contain;min-height:0;padding:16px 12px max(24px,env(safe-area-inset-bottom));flex:1}
.mobile-example-content>.exemplar,.mobile-example-content>.exemplar-profile,.mobile-example-content>.exemplar-rehearsal{margin:0;width:100%;max-width:none;box-sizing:border-box}
.mobile-example-content .exemplar .row p,.mobile-example-content .exemplar-tasks .ref,.mobile-example-content .ra-note,.mobile-example-content .intent{font-size:16px;line-height:1.65}
.mobile-example-content .exemplar .ref{font-size:14px}
.mobile-example-content .exemplar .foot{font-size:13px;line-height:1.6}
.mobile-example-content .doc-open{white-space:normal;line-height:1.6}
@media(max-width:620px){
  .mobile-example-source{display:none!important}
  .mobile-example-open{display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%;margin:22px 0;background:#fff;border:0;border-top:3px solid var(--slate);border-bottom:1px solid var(--rule);padding:22px;text-align:left;color:var(--ink);font:400 16px/1.5 var(--sans);cursor:pointer}
  .mobile-example-open strong{font:600 24px/1.2 var(--sans)}
  .mobile-example-label{font:500 11px/1.5 var(--mono);color:var(--slate)}
  .mobile-example-action{font-weight:600;border-bottom:2px solid var(--marigold);padding-bottom:3px;margin-top:4px}
}

/* A pointer return keeps the reading position without a keyboard focus ring. */
.mobile-example-open.mobile-example-pointer-return:focus-visible{outline:none}

/* Frame the open examples without changing the phone preview buttons. */
@media(min-width:621px){
  .exemplar,.band-ink .exemplar,.exemplar-profile,.exemplar-rehearsal{border:1px solid var(--slate);border-top-width:2px}
}
@media(max-width:620px){
  .mobile-example-content>.exemplar,.mobile-example-content>.exemplar-profile,.mobile-example-content>.exemplar-rehearsal{border:2px solid var(--slate);border-top-width:4px}
}

/* Separate the Action register frame from its slate masthead. */
.exemplar.exemplar-tasks,.mobile-example-content>.exemplar.exemplar-tasks{border:2px solid var(--slate);border-top-width:4px;padding:5px;background:var(--paper)}
.exemplar-tasks>.exemplar-title,.exemplar-tasks>.body{background:#fff}
