/* English copy must fit the original components at every supported width. */
.english-edition .english-receipt > summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.english-edition .english-reading-loading .reading-wait-expectation { flex-shrink: 0; }
.english-edition .english-reading-loading .brand-loading-copy h2 { color: var(--reading-ivory, #fff8e9); font: 700 25px/1.55 "Gowun Batang", serif; }
.english-edition .english-reading-loading .brand-loading-copy p { color: var(--reading-text, #d8dfe7); font-size: 16px; line-height: 1.8; }
.english-edition .english-reading-loading progress:indeterminate::-webkit-progress-bar { background: transparent; }
.english-edition .english-reading-loading .brand-loading-track progress:indeterminate { background: linear-gradient(90deg, #34404c 20%, var(--gold), #34404c 80%); background-size: 200% 100%; animation: brand-sweep 1.6s linear infinite; }
html:has(body.english-edition) { scrollbar-gutter: stable; }
.english-edition .discovery-categories button > span:last-child {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.english-edition .guest-recovery-page form > button {
  height: auto;
  min-height: 52px;
  padding: 12px 16px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.english-edition .product-preview-result,
.english-edition .product-result-chapter { min-width: 0; }
.english-edition .english-chapter-heading > small {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: var(--s2);
  color: var(--reading-gold, var(--gold));
  font: 600 14px/1.5 var(--sans);
  letter-spacing: .14em;
}
.english-edition :is(button.product-primary, button.product-secondary, a.product-secondary) {
  box-sizing: border-box;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.english-edition .chapter-navigator > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: start;
}
.english-edition .chapter-navigator > header :is(small, strong) {
  grid-column: 1;
  white-space: normal;
  overflow-wrap: anywhere;
}
.english-edition .chapter-navigator > header button {
  position: static;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 44px;
  min-height: 44px;
}
.english-edition .reading-prose-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 28px 0;
  border: 1px solid #baa16b50;
  border-radius: 6px;
}
.english-edition .reading-prose-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font: 400 15px/1.7 var(--ui-font, sans-serif);
  text-align: left;
}
.english-edition .reading-prose-table :is(th, td) {
  padding: 12px;
  border-bottom: 1px solid #baa16b40;
  vertical-align: top;
  overflow-wrap: break-word;
}
.english-edition .reading-prose-table th { color: #e6c98d; background: #ffffff06; }
.english-edition .reading-prose-table tbody tr:last-child td { border-bottom: 0; }
.english-edition #english-refund,
.english-edition .product-preview-result > a.product-secondary {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-top: 12px;
  text-align: center;
}
@media (max-width: 1279px) {
  .english-edition .celestial-detail .product-reading-side-rail .chapter-navigator { visibility: hidden; }
  .english-edition .celestial-detail .product-reading-side-rail .chapter-navigator.is-open { visibility: visible; }
}
@media (max-width: 820px) {
  .english-edition .discovery-categories button > [data-mobile-label] { font-size: 0; }
  .english-edition .discovery-categories button > [data-mobile-label]::after {
    display: block;
    content: attr(data-mobile-label);
    font-size: 12px;
    line-height: 1.5;
  }
  .english-edition .celestial-detail .product-reading-side-rail .chapter-nav-toggle {
    left: 16px;
    right: auto;
    bottom: calc(90px + env(safe-area-inset-bottom));
    width: 104px;
  }
  .english-edition .celestial-detail .product-reading-side-rail .reading-quick-tools {
    inset: auto 16px calc(90px + env(safe-area-inset-bottom)) auto;
    width: min(220px, calc(100% - 152px));
    min-width: 0;
    max-width: none;
    gap: 8px;
  }
  .english-edition .celestial-detail .product-reading-side-rail .reading-quick-tools button {
    width: 100%;
    min-width: 0;
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
  }
  .english-edition .celestial-detail .product-reading-side-rail .chapter-navigator {
    --chapter-panel-bottom: calc(210px + env(safe-area-inset-bottom));
  }
  .english-edition .celestial-detail .product-preview-result { padding-bottom: 170px; }
}
@media (max-width: 640px) {
  .english-edition #english-refund,
  .english-edition .product-preview-result > a.product-secondary { width: 100%; }
}
@media (max-width: 820px) and (max-height: 560px) {
  .english-edition .celestial-detail .product-reading-side-rail .chapter-navigator {
    --chapter-panel-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

/* A reading to keep: title, complete prose and tables, without account controls. */
@page { size: A4; margin: 16mm 15mm 18mm; }
@media print {
  html:has(body.english-edition) { scrollbar-gutter: auto; color-scheme: light !important; overflow: visible !important; background: white !important; color: #111 !important; }
  .english-edition { color-scheme: light !important; background: white !important; color: #111 !important; overflow: visible !important; height: auto !important; }
  .english-edition *, .english-edition *::before, .english-edition *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .english-edition :is(.app-skip-link, .product-app-header, .product-bottom-nav,
    .english-notice, .english-operational-actions, .reading-side-rail,
    .result-reading-tools, .english-art-panels, .english-receipt,
    .reading-review-form, .reading-delivery-note, .locked-toc,
    .reading-purchase-offer, .product-service-policy, #english-checkout,
    #english-coupon, #english-refund, .reading-qa-layer, .wizard-overlay, .english-reading-loading, .ask-selection-chip),
  .english-edition .product-preview-result > a.product-secondary,
  .english-edition .product-preview-result > header :is(picture, small, p),
  .english-edition::before, .english-edition::after {
    display: none !important;
  }
  .english-edition :is(#main-content, main, .reading-detail-shell,
    #english-service-content, .product-reading-layout, .product-preview-result) {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: white !important;
    overflow: visible !important;
    transform: none !important;
  }
  .english-edition .product-preview-result > header {
    display: block !important;
    min-height: 0 !important;
    margin: 0 0 16pt !important;
    padding: 0 !important;
    border: 0 !important;
    background: white !important;
  }
  .english-edition .product-preview-result > header h2 {
    margin: 0 !important;
    color: #111 !important;
    font-size: 20pt !important;
    line-height: 1.3 !important;
  }
  .english-edition .product-result-chapter {
    display: block !important;
    margin: 0 0 20pt !important;
    padding: 0 !important;
    border: 0 !important;
    break-inside: auto;
  }
  .english-edition .product-result-chapter :is(p, li, h3, h4, small, strong),
  .english-edition .reading-chart-summary * {
    color: #111 !important;
    background: transparent !important;
  }
  .english-edition .english-chapter-heading { break-inside: avoid; break-after: avoid; }
  .english-edition .english-chapter-heading > small {
    display: block !important;
    min-height: 0 !important;
    margin: 0 0 4pt !important;
    font-size: 9pt !important;
    line-height: 1.3 !important;
    break-after: avoid;
  }
  .english-edition .product-result-chapter :is(h3, h4) {
    margin: 8pt 0 !important;
    font-size: 15pt !important;
    line-height: 1.4 !important;
    break-after: avoid;
  }
  .english-edition .product-result-chapter :is(p, li) {
    margin: 0 0 7pt !important;
    font-size: 11pt !important;
    line-height: 1.6 !important;
    orphans: 3;
    widows: 3;
  }
  .english-edition .reading-prose-table-wrap {
    overflow: visible !important;
    margin: 12pt 0 !important;
    border: 0 !important;
  }
  .english-edition .reading-prose-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    color: #111 !important;
    font-size: 9.5pt !important;
    line-height: 1.5 !important;
  }
  .english-edition .reading-prose-table :is(th, td) {
    padding: 6pt !important;
    border: 1px solid #999 !important;
    color: #111 !important;
    background: white !important;
    overflow-wrap: anywhere;
  }
  .english-edition .reading-prose-table thead { display: table-header-group; }
  .english-edition .reading-prose-table tr { break-inside: avoid; }
  .english-edition .reading-chart-summary {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 18pt !important;
    padding: 12pt !important;
    border: 1px solid #aaa !important;
    background: white !important;
    break-inside: avoid;
  }
  .english-edition .reading-chart-summary .reading-pillar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8pt !important;
  }
  .english-edition .reading-chart-summary .reading-pillar-grid article {
    padding: 8pt !important;
    border: 1px solid #aaa !important;
    background: white !important;
  }
  .english-edition .reading-chart-summary p { font-size: 10pt !important; line-height: 1.5 !important; }
}
