/* Shared site chrome: AppHeader.vue + SiteFooter.vue + public/knowhowdetail.html */

.app-header a:focus-visible {
  outline: none;
}

.pclogo {
  margin-right: 40px;
  margin-left: 0;
}

.app-header {
  z-index: 1000;
  height: 62px;
  position: static !important;
  top: auto !important;
}

.topbar {
  height: 38px;
}

.brand-title {
  width: 65%;
  border: 0;
  vertical-align: middle;
}

.brand-badge {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 2px;
  background: #de1a45;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-desktop {
  background: #fff;
  padding: 0 0;
  border-radius: 0;
  color: #121212;
  flex: 0 0 17%;
}

.desktop-nav .brand-desktop .brand-title,
.desktop-nav .brand-desktop .brand-badge {
  color: #121212;
}

.menu-btn {
  color: #222;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.desktop-nav {
  background: #313131;
  height: 40px;
  margin-top: 22px;
}

.desktop-nav-menu {
  flex: 0 0 76%;
}

.nav-main .nav-link {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 40px;
  padding: 0 16px;
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-main .nav-link:hover,
.nav-sub a:hover {
  background-color: #e02146;
}

.nav-main .nav-item.active .nav-link {
  box-shadow: inset 0 -3px 0 #e02146;
  background-color: rgba(0, 0, 0, 0.2);
}

.nav-sub a {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 40px;
  padding: 0 15px;
  transition: color 0.2s ease;
}

@media screen and (min-width: 992px) {
  .app-header .container-fluid,
  .desktop-nav {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
  }

  .nav-item {
    padding: 0 8px;
  }

  .desktop-nav {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .nav-sub {
    padding-right: 3rem;
  }

  .nav-main .nav-item:first-child {
    position: relative;
    overflow: visible;
    padding-left: 0;
  }

  .nav-main .nav-item:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40px;
    width: calc(100% + 40px);
    height: 40px;
    background: #313131;
    clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    pointer-events: none;
  }

  .nav-main .nav-item:first-child .nav-link,
  .nav-main .nav-item.active:first-child .nav-link {
    position: relative;
    z-index: 1;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .nav-main .nav-item:first-child:hover::before,
  .nav-main .nav-item:first-child:has(.nav-link:hover)::before {
    background-color: #e02146;
  }

  .nav-main .nav-item:first-child .nav-link::before {
    display: none;
  }

  .nav-main .nav-item.active:first-child::before {
    background-color: #2a2a2a;
    box-shadow: inset 0 -3px 0 #e02146;
  }

  .nav-main .nav-item.active:first-child:hover::before,
  .nav-main .nav-item.active:first-child:has(.nav-link:hover)::before {
    background-color: #e02146;
    box-shadow: inset 0 -3px 0 #e02146;
  }

  .nav-main .nav-item.active:first-child .nav-link::after {
    display: none;
  }
}

@media screen and (min-width: 992px) and (max-width: 1199.98px) {
  .brand-title {
    margin-left: 20px;
  }

  .nav-main .nav-link,
  .nav-sub a {
    font-size: 13px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

.mobile-menu {
  display: none;
  background: #000;
}

.mobile-menu.show {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
}

@media screen and (max-width: 991.98px) {
  :root {
    --mobile-header-height: 45px;
  }

  .topbar {
    height: 45px;
  }

  .brand-title {
    width: 40%;
  }

  .app-header {
    height: var(--mobile-header-height) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1051;
  }

  .mobile-menu.show {
    top: var(--mobile-header-height);
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
  }

  .nav-main .nav-link,
  .nav-sub a,
  .mobile-link {
    font-size: 14px;
  }
}

@media screen and (min-width: 768px) and (max-width: 991.98px) {
  .brand-title {
    width: 25%;
  }
}

.mobile-menu-panel {
  background: #ececee;
  border-top: 1px solid #d4d4d4;
  padding: 8px 0 10px;
}

.mobile-link {
  display: block;
  color: #0e1b36;
  font-size: 16px;
  text-decoration: none;
  padding: 8px 14px;
  border-bottom: 1px solid #cfcfd3;
}

.mobile-link:hover {
  background: #d8d8dd;
  color: #0e1b36;
}

.mobile-link.active {
  border-left: 3px solid #e02146;
  padding-left: 11px;
  background: #e4e4e8;
  font-weight: 700;
}

.divider {
  height: 10px;
  background: #d6d6db;
  margin-bottom: 2px;
}

.mobile-bottom {
  padding: 0 10px;
}

.mobile-bottom-btn {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  background: #f8f8f9;
  border: 1px solid #c8c8cc;
  color: #0f1e3a;
  font-size: 14px;
}

.mobile-bottom-btn--active {
  box-shadow: inset 0 -3px 0 #e02146;
  background-color: rgba(0, 0, 0, 0.2);
}

.navbar-toggler-icon {
  width: 2rem;
  height: 2rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-close-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  color: #000;
}

.justcen {
  justify-content: center;
}

.activesub {
  box-shadow: inset 0 -3px 0 #e02146;
  background-color: rgba(0, 0, 0, 0.2);
}

.ft22 {
  font-size: 1em;
}

.site-footer {
  color: #3a3a3e;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@media (min-width: 992px) {
  .footer-grid {
    flex-direction: row;
    align-items: flex-start;
    padding-left: 3rem;
    padding-right: 3rem;
    max-width: none;
  }
}

.footer-logo {
  width: 150px;
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.footer-col-title {
  color: #0b0b0b;
  letter-spacing: 0.04em;
}

.footer-cols {
  --bs-gutter-x: 1.2rem;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.footer-cols > [class*='col-'] {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 992px) {
  .mg10 {
    margin-left: 3rem;
  }

  .footer-cols {
    --bs-gutter-x: calc(0.25rem + 15px);
  }

  .footer-cols > [class*='col-'] {
    flex: 0 0 auto;
    width: auto;
    min-width: 150px;
  }

  .footer-col-theme {
    padding-right: 1.25rem;
    margin-right: 0.75rem;
  }

  .footer-col-theme .footer-link {
    display: block;
    white-space: nowrap;
  }

  .footer-col-shop {
    padding-left: 0.25rem;
  }
}

@media screen and (max-width: 768px) {
  .footer-brand {
    display: none;
  }
}

.footer-link {
  color: #5c5c62;
  text-decoration: none;
  display: inline-block;
  padding: 0.15rem 0;
  transition: color 0.25s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: #e02146;
}

.social-ig,
.social-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.social-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-row {
  gap: 14px;
}

.social-ig:hover,
.social-x:hover {
  opacity: 0.8;
}

.footer-legal-link {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-legal-link:hover {
  color: #e02146;
}
