@font-face {
  font-family: "ICHOR Serif KR";
  src: url("media/noto-serif-kr.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ICHOR Sans KR";
  src: url("media/noto-sans-kr.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root:lang(ko) {
  --ko: "ICHOR Serif KR", "AppleMyungjo", Batang, serif;
  --serif: var(--ko);
  --ui: "ICHOR Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
:root:lang(ko) .program-name { font-family: var(--ui); }
.rate-row dd, .group td data { font-variant-numeric: tabular-nums; white-space: nowrap; }
:root:lang(ko) .opening-caption h1 { word-break: keep-all; text-wrap: balance; }
:root:lang(ko) .contents nav #privacy-link { font-family: var(--ui); }
:root:lang(ko) .colophon .top-link { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }

/* Center the copy in its reading column, including prices within their own column. */
body { text-align: center; }
body :is(h1,h2,h3,h4,p,small,figcaption,li,summary,dt,dd,th,td,address,nav,button,label) {
  text-align: center;
}
#programs .leaf-register, #programs .leaf-terms, .group :is(thead,tbody) tr :is(th,td),
.contour-reviews .review-title, .consult-seal__sheet .consult-seal__title,
.ev-visit .ev-info, .ec-care .ec-care-guides a, .chapter .booking, .detail-intro-copy,
.leaf-menu .rate-row :is(dt,dd), .leaf-menu .leaf-ledger-head > span { text-align: center; }
.group td, .group th, .group thead th:last-child, .group tbody th { padding-inline: 4px; }
#programs :is(.rate-row,.leaf-ledger-head) {
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(80px,1fr);
  column-gap: clamp(8px,1.5vw,20px);
}
#programs .leaf-ledger-head > *, #programs .rate-row > * { margin-inline: 0; justify-self: stretch; }
#programs .leaf-register .leaf-ledger-head, #programs .leaf-register .rate-row dd { padding-inline: 0; }
#programs .leaf-terms { margin-inline: auto; }
#programs .leaf-register .leaf-next, .chapter :is(.source-link,.rate-source,.visit-link) {
  display: flex; width: fit-content; justify-content: center; margin-inline: auto;
}
.ec-care .ec-care-guides a { display: flex; flex-direction: column; align-items: center; position: relative; }
.ec-care .ec-care-guides small { width: 100%; text-wrap: balance; }
.ec-care .ec-care-guides .ec-forward { position: absolute; inset: auto 6px 4px auto; }
.ec-care .ec-care-guides .ec-guide-name { padding-inline: 12px; }
.directory-image-note, .ec-care .ec-care-film, .ec-care .ec-care-more { text-align: center; }
.ec-care-inner > a:last-child { margin-inline: auto; justify-content: center; width: fit-content; }
#contact .leaf-book-links :is(.booking-reviews,.leaf-phone) { justify-self: center; }
.booking .book-links .naver-action, #contact .leaf-book-links .naver-action {
  display: grid; grid-template-columns: 24px minmax(0,1fr) 24px;
  align-items: center; justify-items: center;
}
.booking .book-links .naver-action .book-arrow, #contact .book-arrow { margin-inline: 0; }
.ev-hours dl > div,.ev-parking dl > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.ev-visit .ev-information dd { margin-inline: 0; text-align: center; }
.booking .book-links .naver-action, #contact .leaf-book-links .naver-action { text-align: center; }
.ev-visit :is(.ev-info,.ev-arrival-copy) > :is(address,p), .detail-intro-copy .lead,
.gallery-copy p, .chapter :is(.lead,.group-note), .ev-visit .ev-note { margin-inline: auto; }
.booking-room figcaption,.ec-care-work figcaption,.ev-room figcaption {
  left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: 92%;
}
.consult-seal__sheet .consult-seal__channel {
  display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center;
}
.consult-seal__sheet .consult-seal__langs { text-align: center; }
.consult-seal__sheet .consult-seal__out { justify-self: center; margin: 0; }
.contour-reviews li a { justify-content: center; }
.colophon { justify-content: center; gap: clamp(20px,4vw,60px); }

/* The same concern shortcuts are within reach at every screen width. */
:root:has(#mast) { --v2-header-offset: 113px; }
#mast {
  grid-template-rows: 66px minmax(46px,auto);
  height: auto;
}
#mast > .concern-nav {
  grid-column: 1 / -1;
  display: flex;
  align-self: stretch;
  justify-content: center;
  margin-inline: calc(-1 * var(--edge));
  padding-inline: max(8px,var(--edge));
  color: #fff7e9;
  background: #322629ef;
  border-block: 1px solid #c6aa8e54;
}
.concern-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 13rem;
  min-width: 0;
  min-height: 44px;
  padding: 4px 6px;
  color: inherit;
  font: 550 clamp(14px,1vw,16px)/1.3 var(--ui);
  text-decoration: none;
  text-wrap: balance;
  word-break: keep-all;
}
.concern-nav a:hover, .concern-nav a:focus-visible { background: #51353d; text-decoration: underline; text-underline-offset: .32em; }
#contents[open] nav {
  left: 50%; right: auto; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  width: min(100vw, 550px);
  padding: 16px clamp(15px,2vw,24px) 18px;
  max-height: calc(100dvh - var(--v2-header-offset) - 8px);
  border-radius: 0 0 22px 22px;
}
#contents nav a { min-height: 44px; display: grid; align-content: center; font-size: clamp(16px,1.3vw,20px); padding: 8px 4px; }
#contents nav > a:nth-child(n+3) { border-top: 1px solid #9c8d7c35; }
@media(max-width:760px) {
  :root:has(#mast) { --v2-header-offset: 99px; }
  #mast { grid-template-rows: 52px minmax(46px,auto); }
  #mast > .concern-nav { padding-inline: 4px; }
  .concern-nav a { flex: 1 1 0; padding-inline: 2px; }
  .ec-care .ec-care-guides .ec-forward { display: none; }
}
@media(max-width:520px) {
  #programs .leaf-index h2 { max-width: calc(100vw - 128px); margin-inline: auto; text-wrap: balance; }
  :root:lang(ko) #mast > .concern-nav { display: grid; grid-template-columns: 1.03fr .78fr 1.05fr 1.24fr; }
}
