/* The shared header and footer use one restrained brand system. */
.site-header {
  height: 88px;
  border-bottom: 1px solid #e9eeee;
}

.brand img {
  width: 230px;
}

.desktop-nav > .nav-level {
  height: 88px;
  gap: 14px;
}

.desktop-nav .nav-level-0 > .nav-item {
  width: auto;
}

.desktop-nav .nav-level-0 > .nav-item > a {
  height: 88px;
  min-width: 100px;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  color: #26323c;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
}

.desktop-nav .nav-level-0 > .nav-item.is-current > a {
  border-bottom-color: var(--teal);
  color: #087f7d;
}

.desktop-nav .nav-level-0 > .nav-item:hover > a,
.desktop-nav .nav-level-0 > .nav-item:focus-within > a {
  border-bottom-color: var(--teal);
}

.mobile-nav .nav-level-0 > .nav-item.is-current > a {
  color: #087f7d;
  font-weight: 500;
}

.site-footer {
  min-height: 0;
  margin-top: 30px;
  padding: 48px 0 22px;
  border-top: 1px solid #dde6e4;
  background: #f4f7f6;
  color: #4d5d66;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr .7fr .9fr 1.35fr;
  gap: 42px;
  padding-bottom: 38px;
}

.footer-brand a {
  display: inline-block;
}

.footer-brand img {
  width: 230px;
  max-width: 100%;
  margin: 0;
}

.footer-main .footer-brand p {
  max-width: 310px;
  margin: 15px 0 0;
  color: #67757d;
  font-size: 14px;
  line-height: 1.75;
}

.footer-column h2 {
  margin: 0 0 20px;
  color: #173449;
  font-size: 15px;
  font-weight: 500;
}

.footer-nav {
  display: grid;
  gap: 9px;
}

.footer-nav a {
  color: #43555e;
  font-size: 13px;
}

.footer-column dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-column dl > div {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
}

.footer-column dt {
  color: #73818a;
  font-size: 13px;
}

.footer-column dd {
  min-width: 0;
  margin: 0;
  color: #344853;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: #087f7d;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid #dce5e7;
}

.footer-main .footer-bottom p {
  margin: 0;
  color: #74828a;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
  padding: 0;
  color: #74828a;
  font-size: 12px;
}

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

@media (min-width: 991px) {
  .desktop-nav .nav-level-0 > .nav-item:nth-child(3) > .nav-level-1 {
    left: 0;
    right: auto;
    transform: none;
  }

  /* Confirmed compact one-column product menu: top-level categories only. */
  .desktop-nav .nav-level-0 > .nav-item:nth-child(3) > .nav-level-1 {
    left: 50%;
    right: auto;
    width: 340px;
    transform: translateX(-50%);
    padding: 4px 0;
    display: none;
    grid-template-columns: 1fr;
  }

  .desktop-nav .nav-level-0 > .nav-item:nth-child(3):hover > .nav-level-1,
  .desktop-nav .nav-level-0 > .nav-item:nth-child(3):focus-within > .nav-level-1 {
    display: block;
  }

  .desktop-nav .nav-level-0 > .nav-item:nth-child(3) > .nav-level-1 > .nav-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #edf1f1;
  }

  .desktop-nav .nav-level-0 > .nav-item:nth-child(3) > .nav-level-1 > .nav-item:last-child {
    border-bottom: 0;
  }

  .desktop-nav .nav-level-0 > .nav-item:nth-child(3) > .nav-level-1 > .nav-item > a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 20px;
    line-height: 1.4;
  }

  .desktop-nav .nav-level-0 > .nav-item:nth-child(3) > .nav-level-1 > .nav-item {
    position: relative;
  }

  .desktop-nav .nav-level-0 > .nav-item:nth-child(3) > .nav-level-1 > .nav-item.has-children > a::after {
    content: "›";
    display: block;
    margin-left: auto;
    padding-left: 12px;
    color: #778585;
    font-size: 19px;
    line-height: 1;
  }

  .desktop-nav .nav-level-0 > .nav-item:nth-child(3) .nav-level-2 {
    display: none !important;
    position: absolute;
    top: -2px;
    left: 100%;
    width: 280px;
    padding: 4px 0;
    border-top: 2px solid var(--teal);
    border-left: 1px solid #e2e9e9;
    background: #fff;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, .1);
  }

  .desktop-nav .nav-level-0 > .nav-item:nth-child(3) .nav-level-1 > .nav-item:hover > .nav-level-2,
  .desktop-nav .nav-level-0 > .nav-item:nth-child(3) .nav-level-1 > .nav-item:focus-within > .nav-level-2 {
    display: block !important;
  }
}

@media (max-width: 990px) {
  .site-header {
    height: 64px;
  }

  .brand img {
    width: 196px;
  }

  .menu-button {
    top: 19px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contact-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 43px 0 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 35px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand img {
    width: 210px;
  }

  .footer-column h2 {
    margin-bottom: 13px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
