/* Let the reading layout use the typefaces and line breaking of its edition. */
html:lang(ko) .atlas-edition {
  --sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --serif: "Noto Serif KR", "Batang", "AppleMyungjo", serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html:lang(ja) .atlas-edition {
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  line-break: strict;
}
.atlas-edition { font-family: var(--sans); }
.atlas-edition h1, .atlas-edition h2, .atlas-edition h3 { font-family: var(--serif); }
.atlas-edition .pk-brand { font-family: var(--serif); }
.atlas-edition .reading-cover h1 { max-width: 19em; letter-spacing: -.035em; line-height: 1.24; }
.atlas-edition .reading-area, .atlas-edition .reading-korean { letter-spacing: .015em; }
.atlas-edition .reading-section p, .atlas-edition .reading-tip p { max-width: 43em; }
.atlas-edition .reading-text .reading-word h2 { font: 600 1rem/1.5 var(--sans); margin: 0 0 .5em; }
.atlas-edition .reading-grid { grid-template-columns: minmax(150px,.65fr) minmax(0,2.1fr); }
.atlas-edition .reading-crumb, .atlas-edition .pk-header nav, .atlas-edition .pk-tools { font-family: var(--sans); }
.atlas-edition .findbar input[type=search] { border: 0; background: transparent; }
.atlas-edition .reading-aside, .atlas-edition .reading-cover-copy, .atlas-edition .atlas-cover-copy { min-width: 0; }
.atlas-edition dialog.photo-viewer { width: min(1100px,calc(100% - 24px)); padding: 14px; color: white; background: #101b19; max-height: 95dvh; }
.atlas-edition .pk-tools summary { white-space: nowrap; }
@media(max-width:840px) {
  .atlas-edition .reading-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:480px) {
  .atlas-edition .pk-top { flex-wrap: wrap; row-gap: 5px; }
  .atlas-edition .reading-crumb { flex-wrap: wrap; }
  .atlas-edition .atlas-cover h1 { font-size: clamp(2.2rem,9vw,3rem); }
}
