@font-face {
  font-family: 'Yeongdo';brand-text {
    font-size: 1.14rem;
  }
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2410-1@1.2/Yeongdo-Rg.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Yeongdo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2410-1@1.2/Yeongdo-Bd.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Yeongdo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2410-1@1.2/Yeongdo-Hv.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: #162f52;
  border-bottom: 0;
  display: block;
  --desktop-header-left-shift: max(0px, calc((min(100vw - 40px, 1280px) - min(100vw - 40px, 960px)) / 2));
}

.header-shell {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

.header-nav-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
  padding-left: var(--desktop-header-left-shift);
}

.brand {
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  margin-left: calc(-1 * var(--desktop-header-left-shift));
}

.brand a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Yeongdo', sans-serif;
  color: #d7e2f2;
  letter-spacing: -0.01em;
}

.main-nav {
  justify-self: start;
  min-width: 0;
}

.main-nav.main-nav-desktop {
  display: block;
  border-top: 0;
}

.main-nav.main-nav-desktop .gnb {
  display: flex;
  justify-content: flex-start;
  gap: 28px;
}

.auth-links-desktop {
  width: 308px;
  justify-content: flex-end;
  justify-self: end;
  transform: translateX(calc(-1 * (var(--desktop-header-left-shift) - 21px)));
}

.main-nav.main-nav-mobile,
.auth-links.auth-links-mobile,
.header-subnav-wrap.header-subnav-wrap-mobile {
  display: none;
}

.mobile-depth-wrap {
  display: none;
}

.mobile-panel-section,
.mobile-panel-heading,
.mobile-panel-list,
.mobile-panel-item {
  display: none;
}

.gnb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

.gnb-item {
  position: relative;
}

.gnb-item > a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
}

.gnb-primary .gnb-item.is-active > a {
  color: #ffffff;
}

.gnb-item > a:hover,
.gnb-item > a:focus-visible {
  color: #ffffff;
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  min-width: 188px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.submenu a {
  display: block;
  font-size: 0.93rem;
  padding: 8px 10px;
  border-radius: 8px;
  color: #1f3251;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: #eef3fb;
}

.has-submenu:hover .submenu,
.has-submenu.is-open .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.auth-links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-links-desktop .text-link,
.auth-links-desktop .text-link-button {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}

.auth-links-desktop .text-link:hover,
.auth-links-desktop .text-link:focus-visible,
.auth-links-desktop .text-link-button:hover,
.auth-links-desktop .text-link-button:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.auth-links.is-loading {
  gap: 10px;
}

.auth-skeleton {
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(90deg, #e6edf8 0%, #f1f5fb 50%, #e6edf8 100%);
  background-size: 220% 100%;
  animation: authSkeletonShimmer 1.2s ease-in-out infinite;
}

.auth-skeleton-link {
  width: 64px;
  height: 14px;
}

.auth-user-email {
  max-width: 210px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-mypage-link {
  color: #ffffff;
}

.auth-logout-link {
  color: rgba(255, 255, 255, 0.7);
}

.auth-logout-link:hover,
.auth-logout-link:focus-visible {
  color: #ffffff;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-menu-panel {
  display: none;
}

.mobile-menu-backdrop {
  display: none;
}

.header-subnav-wrap {
  position: relative;
  border-top: 0;
  background: #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid #e6ebf3;
  display: none;
}

.header-subnav-wrap.is-visible {
  display: block;
}

@media (min-width: 901px) {
  .site-header + #main-content {
    padding-top: 0;
  }

  body.page-primary-facility-info #main-content {
    padding-top: 0;
  }
}

.depth-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--depth-offset, 0px);
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
}

.depth-nav-list[hidden] {
  display: none;
}

.depth-item {
  position: relative;
  flex: 0 0 auto;
}

.depth-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-size: 0.94rem;
  font-weight: 500;
  color: #111111;
  white-space: nowrap;
}

.depth-item.is-active > a {
  color: #111111;
  font-weight: 700;
}

.depth-item.is-active > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #c7923e;
}

@keyframes authSkeletonShimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* Footer */
.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  background: #fbfcff;
}

.footer-inner {
  padding: 24px 0 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-content: center;
}

.footer-links a {
  font-size: 0.9rem;
  color: #2c4772;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.copyright {
  margin: 0;
  border-top: 1px solid #e5ebf5;
  padding: 10px 20px 16px;
  color: #73839f;
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    backdrop-filter: blur(10px);
    background: #162f52;
    --mobile-brand-mark-size: 18px;
    --mobile-brand-text-size: 1.46rem;
    --mobile-toggle-size: 34px;
    --mobile-toggle-icon-width: 18px;
    --mobile-toggle-icon-height: 12px;
    --mobile-toggle-bar-height: 1.5px;
    --mobile-nav-link-height: 44px;
    --mobile-nav-link-padding-x: 4px;
    --mobile-nav-link-font-size: 0.98rem;
    --mobile-nav-indicator-inset: 10px;
    --mobile-nav-indicator-height: 2px;
    --mobile-depth-link-min-height: 40px;
    --mobile-depth-link-padding-x: 12px;
    --mobile-depth-link-font-size: 0.88rem;
  }

  .header-shell {
    width: 100%;
    margin-inline: 0;
  }

  .header-nav-row {
    display: none;
  }

  .header-inner {
    min-height: 50px !important;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
    align-items: center;
    row-gap: 0;
    column-gap: 10px;
    padding: 4px 16px;
    background: #162f52;
    border-bottom: 1px solid #0f223d;
    overflow: hidden;
    transform-origin: top;
    will-change: max-height, padding, opacity;
    transition:
      min-height 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
      max-height 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
      padding 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
      border-width 0.24s ease,
      opacity 0.24s ease;
    max-height: 58px;
  }

  .brand,
  .mobile-menu-toggle {
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform: translateY(0);
  }

  .site-header.is-mobile-brand-collapsed .header-inner {
    min-height: 0 !important;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-width: 0;
    opacity: 0;
  }

  .site-header.is-mobile-brand-collapsed .brand,
  .site-header.is-mobile-brand-collapsed .mobile-menu-toggle {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .main-nav.main-nav-desktop,
  .auth-links-desktop,
  .header-subnav-wrap-desktop {
    display: none;
  }

  .header-subnav-wrap.header-subnav-wrap-desktop,
  .header-subnav-wrap.header-subnav-wrap-desktop.is-visible {
    display: none !important;
  }

  .main-nav.main-nav-mobile,
  .auth-links.auth-links-mobile,
  .header-subnav-wrap.header-subnav-wrap-mobile {
    display: block;
  }

  .main-nav.main-nav-mobile {
    width: 100%;
  }

  .main-nav.main-nav-mobile > .container,
  .mobile-depth-wrap > .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mobile-depth-wrap {
    display: block;
    background: #eceff2;
    border-bottom: 1px solid #d6dae0;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
  }

  .mobile-depth-wrap[hidden] {
    display: none !important;
  }

  .mobile-depth-wrap > .container {
    padding: 0 14px !important;
  }

  .mobile-depth-wrap.is-open {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-depth-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 40px;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-depth-list::-webkit-scrollbar {
    display: none;
  }

  .mobile-depth-list.is-active {
    display: flex;
  }

  .mobile-depth-item {
    flex: 0 0 auto;
  }

  .mobile-depth-item a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 2px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #6f7782;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-depth-item a[aria-current="page"] {
    border-bottom-color: #4b5563;
    color: #374151;
  }

  .main-nav.main-nav-mobile {
    border-top: 1px solid #e3e8ef;
    border-bottom: 1px solid #d6dae0;
    background: #ffffff;
    min-height: 0;
  }

  .mobile-primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 0;
  }

  .mobile-primary-item {
    min-width: 0;
  }

  .mobile-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    padding: 0 4px;
    border-radius: 0;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #7c8591;
    font-size: var(--mobile-nav-link-font-size);
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-primary-link[aria-current="page"] {
    border-bottom-color: #4b5563;
    color: #374151;
  }

  .mobile-panel-section,
  .mobile-panel-heading,
  .mobile-panel-list,
  .mobile-panel-item {
    display: block;
  }

  .brand {
    min-width: 0;
    align-self: center;
  }

  .brand a {
    gap: 8px;
  }

  .brand-mark {
    width: var(--mobile-brand-mark-size);
    height: var(--mobile-brand-mark-size);
    border-radius: 8px;
  }

  .brand-text {
    font-size: var(--mobile-brand-text-size);
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    align-self: center;
    width: var(--mobile-toggle-size);
    min-width: var(--mobile-toggle-size);
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #dbe7ff;
    height: var(--mobile-toggle-size);
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 141;
  }

  .mobile-menu-toggle-lines {
    width: var(--mobile-toggle-icon-width);
    height: var(--mobile-toggle-icon-height);
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu-toggle-lines span {
    display: block;
    width: 100%;
    height: var(--mobile-toggle-bar-height);
    border-radius: 999px;
    background: #dbe7ff;
    transform-origin: center;
    transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
  }

  .site-header.is-mobile-menu-open .mobile-menu-toggle-lines span:nth-child(1) {
    transform: translateY(5.25px) rotate(45deg);
  }

  .site-header.is-mobile-menu-open .mobile-menu-toggle-lines span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-mobile-menu-open .mobile-menu-toggle-lines span:nth-child(3) {
    transform: translateY(-5.25px) rotate(-45deg);
  }

  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 130;
  }

  body.mobile-nav-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 360px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-content: start;
    gap: 0;
    padding: 76px 18px 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    border-left: 1px solid #dbe5f0;
    box-shadow: -18px 0 44px rgba(15, 23, 42, 0.16);
    transform: translateX(104%);
    transition: transform 0.24s ease;
    z-index: 140;
    overflow-y: auto;
  }

  body.mobile-nav-open .mobile-menu-panel {
    transform: translateX(0);
  }

  .auth-links.auth-links-mobile {
    justify-content: stretch;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 0;
    border-top: 0;
  }

  .auth-links-mobile .text-link,
  .auth-links-mobile .text-link-button,
  .auth-links-mobile .auth-user-email {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 14px;
    border: 1px solid #d7e0ec;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #39547a;
    font-weight: 700;
  }

  .auth-links-mobile .auth-user-email {
    max-width: none;
    font-size: 0.82rem;
  }

  .mobile-panel-section + .mobile-panel-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #dbe5f1;
  }

  .mobile-panel-heading {
    margin: 0 0 12px;
    color: #203b63;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .mobile-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
  }

  .mobile-panel-item {
    min-width: 0;
  }

  .mobile-panel-item a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #d7e1ee;
    color: #385271;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(22, 43, 80, 0.04);
  }

  .mobile-panel-item a::before {
    content: ">";
    margin-right: 10px;
    color: #6e85a5;
    font-size: 0.85rem;
    font-weight: 800;
  }

  .mobile-panel-item a[aria-current="page"] {
    border-color: #b7cae8;
    background: #eef4ff;
    color: #154a8d;
  }
}

@media (max-width: 680px) {
  .site-header {
    --mobile-brand-mark-size: 17px;
    --mobile-brand-text-size: 1.38rem;
    --mobile-toggle-size: 32px;
    --mobile-toggle-icon-width: 18px;
    --mobile-toggle-icon-height: 12px;
    --mobile-nav-link-height: 40px;
    --mobile-nav-link-padding-x: 3px;
    --mobile-nav-link-font-size: 0.9rem;
    --mobile-depth-link-min-height: 42px;
    --mobile-depth-link-padding-x: 10px;
    --mobile-depth-link-font-size: 0.82rem;
  }

  .brand-mark {
    width: var(--mobile-brand-mark-size);
    height: var(--mobile-brand-mark-size);
  }

  .header-inner {
    min-height: 46px !important;
    padding: 3px 0;
  }

  .mobile-primary-link {
    min-height: 40px;
    font-size: 0.9rem;
  }

  .mobile-depth-list {
    min-height: 36px;
    gap: 14px;
  }

  .mobile-depth-item a {
    min-height: 36px;
    padding: 0 1px;
    font-size: 0.78rem;
  }

  .brand a {
    gap: 6px;
  }

  .mobile-menu-toggle {
    border-radius: 10px;
  }

  .mobile-menu-panel {
    width: min(92vw, 340px);
    padding: 72px 14px 16px;
  }

  .brand-text {
    font-size: var(--mobile-brand-text-size);
  }

  .auth-links-mobile .text-link,
  .auth-links-mobile .text-link-button,
  .auth-links-mobile .auth-user-email {
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .mobile-panel-heading {
    font-size: 0.95rem;
  }

  .mobile-panel-item a {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
