/* BYUNSHIJI-MULTILINGUAL-CONTENT-V115 */
:root {
  --atlas-v115-ink: #26231f;
  --atlas-v115-muted: #6d675e;
  --atlas-v115-paper: #f7f3ea;
  --atlas-v115-paper-deep: #eee7d9;
  --atlas-v115-line: rgba(67, 58, 46, 0.2);
  --atlas-v115-accent: #8b5a32;
  --atlas-v115-white: #fffdf8;
}

.atlas-global-header-v115,
.atlas-family-nav-v115 {
  box-sizing: border-box;
  color: var(--atlas-v115-ink);
  direction: ltr;
  font-family: "Noto Sans KR", "Noto Sans", system-ui, -apple-system, sans-serif;
  text-align: left;
}

.atlas-global-header-v115 *,
.atlas-family-nav-v115 * {
  box-sizing: border-box;
}

.atlas-global-header-v115 {
  position: relative;
  z-index: 10000;
  width: 100%;
  border-bottom: 1px solid var(--atlas-v115-line);
  background: rgba(255, 253, 248, 0.98);
}

.atlas-global-inner-v115 {
  display: flex;
  width: min(100%, 1440px);
  min-height: 70px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
  gap: 24px;
}

.atlas-brand-v115 {
  display: flex;
  min-width: 176px;
  color: var(--atlas-v115-ink);
  text-decoration: none;
  flex-direction: column;
  line-height: 1.1;
}

.atlas-brand-v115 b {
  font-family: "Noto Serif KR", "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.atlas-brand-v115 small {
  margin-top: 5px;
  color: var(--atlas-v115-muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.17em;
}

.atlas-desktop-menu-v115 {
  display: flex;
  margin-left: auto;
  align-self: stretch;
  align-items: center;
  gap: 3px;
}

.atlas-desktop-menu-v115 a,
.atlas-main-menu-v115 nav a {
  display: flex;
  padding: 10px 10px;
  border-radius: 3px;
  color: var(--atlas-v115-muted);
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.atlas-desktop-menu-v115 a:hover,
.atlas-desktop-menu-v115 a:focus-visible,
.atlas-desktop-menu-v115 a.active,
.atlas-main-menu-v115 nav a:hover,
.atlas-main-menu-v115 nav a:focus-visible,
.atlas-main-menu-v115 nav a.active {
  color: var(--atlas-v115-ink);
  background: var(--atlas-v115-paper-deep);
}

.atlas-main-menu-v115,
.atlas-language-menu-v115 {
  position: relative;
}

.atlas-language-quick-v115 {
  display: inline-flex;
  min-width: 38px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid var(--atlas-v115-line);
  border-radius: 3px;
  background: var(--atlas-v115-white);
  color: var(--atlas-v115-accent);
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.atlas-language-quick-v115:hover,
.atlas-language-quick-v115:focus-visible {
  color: var(--atlas-v115-ink);
  background: var(--atlas-v115-paper-deep);
}

.atlas-main-menu-v115 {
  display: none;
}

.atlas-main-menu-v115 summary,
.atlas-language-menu-v115 summary {
  display: flex;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--atlas-v115-line);
  border-radius: 3px;
  background: var(--atlas-v115-white);
  color: var(--atlas-v115-ink);
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.atlas-main-menu-v115 summary::-webkit-details-marker,
.atlas-language-menu-v115 summary::-webkit-details-marker {
  display: none;
}

.atlas-language-menu-v115 summary b {
  display: inline-flex;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--atlas-v115-accent);
  color: white;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.atlas-main-menu-v115 nav,
.atlas-language-panel-v115 {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10010;
  border: 1px solid var(--atlas-v115-line);
  border-radius: 4px;
  background: var(--atlas-v115-white);
  box-shadow: 0 14px 40px rgba(38, 35, 31, 0.16);
}

.atlas-main-menu-v115 nav {
  display: grid;
  width: min(290px, calc(100vw - 32px));
  padding: 10px;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.atlas-language-panel-v115 {
  width: min(720px, calc(100vw - 32px));
  padding: 16px;
}

.atlas-language-grid-v115 {
  display: grid;
  max-height: min(58vh, 460px);
  overflow: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.atlas-language-grid-v115 a {
  display: block;
  min-height: 36px;
  padding: 9px 10px;
  border-radius: 3px;
  color: var(--atlas-v115-muted);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.atlas-language-grid-v115 a:hover,
.atlas-language-grid-v115 a:focus-visible,
.atlas-language-grid-v115 a[aria-current="page"] {
  color: var(--atlas-v115-ink);
  background: var(--atlas-v115-paper-deep);
}

.atlas-language-grid-v115 a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--atlas-v115-accent);
  font-weight: 700;
}

.atlas-language-index-v115 {
  display: block;
  margin-top: 10px;
  padding: 11px;
  border-top: 1px solid var(--atlas-v115-line);
  color: var(--atlas-v115-accent);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.atlas-family-nav-v115 {
  position: relative;
  z-index: 9990;
  width: 100%;
  border-bottom: 1px solid var(--atlas-v115-line);
  background: var(--atlas-v115-paper);
}

.atlas-family-inner-v115 {
  display: flex;
  width: min(100%, 1440px);
  min-height: 50px;
  margin: 0 auto;
  padding: 7px 24px;
  align-items: center;
  gap: 16px;
}

.atlas-family-kicker-v115 {
  color: var(--atlas-v115-muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.atlas-family-types-v115,
.atlas-monologue-voices-v115 {
  display: flex;
  align-items: center;
  gap: 5px;
}

.atlas-family-types-v115 a,
.atlas-monologue-voices-v115 a {
  display: inline-flex;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 3px;
  color: var(--atlas-v115-muted);
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.atlas-family-types-v115 a:hover,
.atlas-family-types-v115 a:focus-visible,
.atlas-family-types-v115 a[aria-current="page"],
.atlas-monologue-voices-v115 a:hover,
.atlas-monologue-voices-v115 a:focus-visible,
.atlas-monologue-voices-v115 a[aria-current="page"] {
  color: var(--atlas-v115-ink);
  background: var(--atlas-v115-white);
}

.atlas-family-types-v115 a[aria-current="page"],
.atlas-monologue-voices-v115 a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--atlas-v115-accent);
}

.atlas-family-types-v115 b {
  display: inline-flex;
  min-width: 24px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--atlas-v115-paper-deep);
  color: var(--atlas-v115-accent);
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.atlas-monologue-voices-v115 {
  margin-left: auto;
}

.atlas-monologue-voices-v115 a span {
  color: var(--atlas-v115-accent);
  font-family: Georgia, serif;
  font-size: 10px;
}

/* Retire the tiny legacy helpers after the full, accessible controls load. */
body.atlas-multilingual-v115 > .ga-language-switch,
body.atlas-multilingual-v115 .ga-language-index,
body.atlas-multilingual-v115 .mo > .mo-top {
  display: none !important;
}

@media (max-width: 980px) {
  .atlas-desktop-menu-v115 {
    display: none;
  }

  .atlas-main-menu-v115 {
    display: block;
    margin-left: auto;
  }

  .atlas-family-inner-v115 {
    flex-wrap: wrap;
  }

  .atlas-monologue-voices-v115 {
    width: 100%;
    margin-left: 0;
    order: 3;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .atlas-global-inner-v115 {
    min-height: 58px;
    padding: 0 12px;
    gap: 8px;
  }

  .atlas-brand-v115 {
    min-width: 0;
    margin-right: auto;
  }

  .atlas-brand-v115 b {
    font-size: 14px;
  }

  .atlas-brand-v115 small {
    display: none;
  }

  .atlas-main-menu-v115 {
    margin-left: 0;
  }

  .atlas-main-menu-v115 summary,
  .atlas-language-menu-v115 summary,
  .atlas-language-quick-v115 {
    min-height: 38px;
    padding: 7px 9px;
  }

  .atlas-language-menu-v115 summary span {
    display: none;
  }

  .atlas-language-panel-v115 {
    position: fixed;
    top: 62px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 72px);
    padding: 12px;
  }

  .atlas-language-grid-v115 {
    max-height: calc(100vh - 145px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-family-inner-v115 {
    min-height: 0;
    padding: 7px 12px;
    gap: 6px;
  }

  .atlas-family-kicker-v115 {
    width: 100%;
    font-size: 9px;
  }

  .atlas-family-types-v115 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .atlas-family-types-v115 a {
    justify-content: space-between;
  }

  .atlas-monologue-voices-v115 a {
    flex: 1 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-global-header-v115 *,
  .atlas-family-nav-v115 * {
    scroll-behavior: auto !important;
  }
}
