/* One text coordinate system for Atelier and the original letter papers. */
.lc-letter-view .lc-paper.lc-text-layout {
  container-type:inline-size;
  aspect-ratio:570 / 810;
  width:min(570px,100%);
  margin-inline:auto;
  height:auto;
  min-height:0!important;
  padding:0!important;
  isolation:isolate;
}
.lc-paper.lc-text-layout>:is(.lc-letter-date,.lc-letter-recipient,.lc-letter-title,.lc-letter-body,.lc-letter-signature,.lc-letter-end) { display:none!important; }
.lc-letter-view .lc-paper.lc-text-layout>.gv-text-layer { position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none; }
.lc-paper.lc-text-layout .gv-text-block { position:absolute;margin:0;padding:0;transform-origin:center;pointer-events:auto;min-width:0;min-height:0; }
.lc-paper.lc-text-layout .gv-block-text {
  display:block;width:100%;height:100%;padding:0;margin:0;border:0;background:none;
  white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#75837170 transparent;
  font-size:calc(var(--gv-font-size,25) * var(--gv-card-scale,1) * 1px);
  font-family:var(--lc-dancing);line-height:1.8;color:#4c483e;
}
.lc-paper.lc-text-layout>.lc-paper-decoration { position:absolute;top:5%;left:12%;width:76%;margin:0;pointer-events:none; }
.lc-letter-view[data-decoration=stamp] .lc-paper.lc-text-layout>.lc-paper-decoration { top:3%;left:auto;right:5%;width:47px; }
.lc-paper.lc-text-layout .gv-block-text:focus-visible,.lc-paper.lc-text-layout:focus-visible { outline:2px solid #397d66;outline-offset:3px; }
@supports(font-size:1cqw) { .lc-paper.lc-text-layout .gv-block-text { font-size:calc(var(--gv-font-size,25) * 100cqw / 570); } }
/* Leave space for the tall Vietnamese accents and trailing script strokes. */
.lc-letter-view .gv-card-surface .gv-block-text { box-sizing:border-box;padding:.12em .35em .08em; }
@media print {
  .lc-letter-view .lc-paper.lc-text-layout { break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact; }
  .lc-paper.lc-text-layout .gv-block-text { scrollbar-width:none; }
}
