/* Shared with the 문서 tab header. Published pages link this file and do not restyle the bar. */
.site-chrome-slot { display: contents; }
.site-bar {
  position: relative;
  z-index: 20;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border-bottom: 1px solid oklch(0.88 0.016 80);
  background: #faf8f3;
  color: oklch(0.27 0.02 55);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.site-bar-row {
  position: relative;
  display: flex;
  box-sizing: border-box;
  min-height: 4.75rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 1rem;
}
.site-home,
.site-home:visited,
.site-home:hover,
.site-home:active {
  position: relative;
  z-index: 10;
  color: #1f4d3a;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Batang", serif;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.site-home-logo {
  display: none;
  width: auto;
  height: 2.2rem;
}
.site-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: auto;
  height: 3.6rem;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.site-tools {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
}
.site-nav a,
.site-nav a:visited,
.site-nav a:active {
  color: #00a3c4;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a.request-button,
.site-nav a.request-button:hover,
.site-nav a.request-button:focus {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 1.75rem;
  padding: 0 0.625rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: oklch(0.4 0.06 160);
  color: oklch(0.98 0.01 90);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a.request-button:hover,
.site-nav a.request-button:focus {
  background: color-mix(in oklab, oklch(0.4 0.06 160) 80%, transparent);
}
.site-search,
.site-random {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}
.site-search input {
  box-sizing: border-box;
  width: 14.25rem;
  height: 2rem;
  min-width: 0;
  margin: 0;
  padding: 0.25rem 0.625rem;
  border: 1px solid oklch(0.86 0.016 80);
  border-radius: 0.625rem;
  background: #faf8f3;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  appearance: none;
}
.site-search input::placeholder { color: oklch(0.48 0.02 55); }
.site-search input:focus-visible {
  border-color: oklch(0.48 0.05 160);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, oklch(0.48 0.05 160) 50%, transparent);
}
.site-search button,
.site-random button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}
.site-search button svg,
.site-random button svg {
  width: 1.05rem;
  height: 1.05rem;
}
.site-search button,
.site-search button:hover,
.site-search button:focus {
  border: 1px solid transparent;
  background: oklch(0.4 0.06 160);
  color: oklch(0.98 0.01 90);
}
.site-search button:hover {
  background: color-mix(in oklab, oklch(0.4 0.06 160) 80%, transparent);
}
.site-random button,
.site-random button:focus {
  border: 1px solid oklch(0.88 0.016 80);
  background: #faf8f3;
  color: inherit;
}
.site-random button:hover {
  border: 1px solid oklch(0.88 0.016 80);
  background: oklch(0.94 0.012 85);
  color: oklch(0.27 0.02 55);
}
/* Floating back-to-top button. Built by script; visible only on narrow screens after scrolling. */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid oklch(0.88 0.016 80);
  border-radius: 50%;
  background: #faf8f3;
  color: oklch(0.27 0.02 55);
  box-shadow: 0 2px 8px oklch(0.2 0.02 55 / 12%);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  appearance: none;
}
.to-top svg { width: 1.25rem; height: 1.25rem; }
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.to-top:hover {
  border-color: oklch(0.48 0.05 160);
  color: oklch(0.4 0.06 160);
}
@media (width < 40rem) {
  .to-top { display: flex; }
}
@media (width >= 48rem) {
  .site-search input {
    font-size: 0.875rem;
    line-height: calc(1.25 / 0.875);
  }
}
@media (width < 40rem) {
  .site-wordmark { display: none; }
  /* The text brand becomes the logo image; the link to the main page is unchanged. */
  .site-home-text { display: none; }
  .site-home-logo { display: block; }
}
@media (width < 72rem) {
  .site-bar-row { flex-wrap: wrap; row-gap: 0.4rem; padding-bottom: 0.6rem; }
  .site-home { display: flex; align-items: center; height: 2.75rem; }
  .site-wordmark { top: 1.375rem; height: 2.4rem; }
  .site-tools { order: 3; flex: 1 0 100%; justify-content: flex-start; position: static; }
  /* The public request button moves up into the first row, in the space right of the logo.
     Line 1 starts after the row's 0.25rem top padding, so its center is 0.25 + 2.75/2 = 1.625rem. */
  .site-nav {
    position: absolute;
    top: 1.625rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    margin: 0;
    transform: translateY(-50%);
  }
  .site-nav a { display: none; }
  .site-nav a.request-button,
  .site-nav a.request-button:hover,
  .site-nav a.request-button:focus { display: inline-flex; }
  .site-search { flex: 1 1 auto; }
  .site-search input { flex: 1 1 auto; width: auto; }
}
