/* Locale-aware shell and layout adapters for the existing Korean library art.
   Assessment and printable report documents do not load this stylesheet. */
body.global-library.library-content {
  --serif: Georgia, "Noto Serif KR", "Batang", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: anywhere; word-break: normal;
}
html[lang="ja"] .global-library { --serif: "Yu Mincho", "Hiragino Mincho ProN", serif; --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif; }
html[lang="ko"] .global-library { --serif: "Batang", "Noto Serif KR", serif; --sans: "Malgun Gothic", system-ui, sans-serif; word-break: keep-all; }
.global-library .translation-header { position: static; background: var(--night); color: var(--on-dark); border-color: var(--line-dark); padding: 18px max(24px,calc((100% - 1280px)/2)); gap: 20px; box-shadow: none; backdrop-filter: none; }
.global-library .translation-header .brand { color: var(--gold); font: 700 22px/1.4 var(--serif); }
.global-library .translation-header nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--on-dark); font-size: 14px; }
.global-library .translation-languages { margin-left: auto; }
.global-library .translation-languages a[aria-current="page"] { color: var(--gold); }
.global-library .translation-sections { padding: 8px max(24px,calc((100% - 1280px)/2)); background: var(--paper-2); border-color: var(--line); }
.global-library .translation-sections a { color: var(--muted); min-height: 36px; display: inline-flex; align-items: center; }
.global-library .translation-sections a[aria-current="page"] { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 5px; }
.global-library > footer { background: var(--night); color: var(--on-dark-muted); padding: 48px max(24px,calc((100% - 1280px)/2)); }
.global-library > footer a, .global-library > footer .footer-brand { color: var(--on-dark); }
.global-library > footer .footer-brand { font-family: var(--serif); color: var(--gold); }
.global-library :is(header,footer) a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.global-library :is(.integrated-reference,.home-service-notice) { background: var(--paper-2); color: var(--muted); border-color: var(--gold-deep); }
.global-library .integrated-reading-links { padding: 24px max(24px,calc((100% - 1280px)/2)); }
.global-library .integrated-reading-links a { color: var(--gold-deep); }
.global-library-art img { display: block; width: 100%; height: auto; border-radius: 20px; object-fit: cover; }
.global-library .product-page > .global-library-art { margin: 32px 0; }
.global-library.library-home .hero { align-items: center; }
.global-library.library-home .hero .home-service-notice { background: transparent; border-color: var(--gold); color: var(--on-dark-muted); }
.global-library.library-home .hero .trust { color: var(--on-dark-muted)!important; }
.global-library.library-home .hero .button-secondary { color: var(--on-dark); background: transparent; border-color: var(--on-dark-muted); }
.global-library.library-home .hero h1 { overflow-wrap: normal; }
.global-library.library-home .library-hero-visual { min-width: 0; width: 100%; }
.global-library.library-home .library-hero-visual img { height: 560px; object-position: 80% center; }
.global-library.library-home .guides { display: block; }
.global-library.library-home .guides .section-head { display: block; }
.global-library.library-home .premium-band > .global-library-art img { min-height: 340px; object-fit: cover; object-position: 80% center; }
.global-library.library-home .premium-band .global-premium-copy p { color: var(--on-dark-muted); }
.global-library.library-home .closing h2 { color: var(--on-dark); }
.global-library.library-home .closing > .button { margin-top: 28px; }
.global-library.library-home .reason-grid article { border-radius: 0; background: transparent; box-shadow: none; }
.global-library .button:disabled { opacity: 1; cursor: not-allowed; }
@media (max-width: 1000px) {
  .global-library .translation-header { gap: 8px 20px; }
  .global-library .translation-header > nav:first-of-type { width: 100%; order: 3; }
  .global-library.library-home .library-hero-visual img { height: 430px; }
}
@media (max-width: 760px) {
  .global-library .translation-header .brand { font-size: 20px; }
  .global-library .translation-languages { gap: 12px; }
  .global-library .translation-header nav a { font-size: 13px; }
  .global-library .translation-sections { display: none; }
  .global-library.library-home .library-hero-visual img { height: 300px; }
  .global-library.library-home .premium-band > .global-library-art img { min-height: 0; }
  .global-library.library-home .hero h1 { font-size: clamp(32px,8vw,44px); }
}
