/*
 * 頁首與頁尾的樣式。
 *
 * 元件、JS 與 ViewModel 在 2026-09-07 就搬進套件了（commit 訊息寫的是
 * self-contained site header），但樣式沒跟著搬——當時的抽取盤點把 CSS 這欄
 * 記成 resources/css/app.css（14 行的 Tailwind 進入點），沒看到
 * public/assets/css/ 底下的 12,442 行。主站一直好好的，海外那個乾淨的新 repo
 * 拿到骨架卻沒有樣式，才把缺口露出來。
 *
 * 不包含 body.has-fixed-sidebar 那一組：那是頁型版面規則，只是碰巧提到
 * #site-header，它由 PageTypeDescriptor 的共用標記決定，留在使用端。
 *
 * 全部包 :where()：套件 CSS 最後載入，特異性歸零才不會蓋掉使用端刻意的覆寫。
 */


:where(body > .page-footer-full) {
  flex-shrink: 0;
}

:where(#nav-bar) {
  height: 4rem;
}

:where(#nav-logo) {
  height: 3rem;
}

@media (min-width: 64rem) {
  :where(#nav-bar) {
    height: 5rem;
  }

  :where(#nav-logo) {
    height: 3.5rem;
  }
}

:where(#pnav-container) {
  flex: 1;
  display: none;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 64rem) {
  :where(#pnav-container) {
    display: flex;
  }
}

:where(.pnav-item) {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  position: relative;
}

:where(.pnav-link) {
  display: flex;
  align-items: center;
  gap: 0.1875rem;
  padding: 0 0.6875rem;
  min-height: 2.75rem;
  font-size: var(--ht-text-sm);
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s;
  font-family: inherit;
}

:where(.dm-group > button) {
  min-height: 2.75rem;
}

:where(.header-member-trigger) {
  font-size: var(--ht-text-sm) !important;
  border-radius: 0.5rem;
  line-height: 1.5;
}

:where(.header-member-trigger) {
  font-weight: 500;
  cursor: pointer;
}

:where(.pnav-link:hover),
:where(.pnav-item:hover>.pnav-link) {
  color: var(--brand-600, #ff5722);
}

:where(#hamburger-btn),
:where(#member-btn) {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

:where(.pnav-chevron) {
  display: inline-block;
  font-size: 0.6875rem;
  line-height: 1;
  flex-shrink: 0;
  color: #6b7280;
  transition: transform .2s;
}

:where(.pnav-item:hover .pnav-chevron) {
  transform: rotate(180deg);
  color: var(--brand-600, #ff5722);
}

:where(.pnav-chevron.rotated) {
  transform: rotate(180deg);
}

:where(.pnav-dd) {
  display: none;
  position: fixed;
  top: var(--dd-top, 5rem);
  left: var(--dd-left, 0rem);
  background: #fff;
  border: 0.0625rem solid #e5e7eb;
  border-radius: 0.625rem;
  box-shadow: 0 0.75rem 2.25rem rgba(0, 0, 0, .13);
  min-width: 9.375rem;
  padding: 0.375rem 0;
  z-index: 9999;
}

:where(.pnav-item:hover .pnav-dd) {
  display: block;
}

:where(.pnav-dd a) {
  display: block;
  padding: 0.5625rem 1.125rem;
  font-size: var(--ht-text-sm);
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  transition: background .1s, color .1s;
}

:where(.pnav-dd a:hover) {
  background: var(--brand-50, #fef3ee);
  color: var(--brand-600, #ff5722);
}

:where(#pnav-more .pnav-dd) {
  right: var(--dd-right-px, 0rem) !important;
  left: auto !important;
  padding: 0.75rem 0.375rem;
}

:where(#pnav-more) {
  margin-left: 0;
}

:where(.dm-group) {
  position: relative;
}

:where(.dm-group .dm-dd) {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 0.0625rem solid #e5e7eb;
  border-radius: 0.625rem;
  box-shadow: 0 0.75rem 2.25rem rgba(0, 0, 0, .13);
  min-width: 10rem;
  padding: 0.375rem 0;
  z-index: 9999;
}

:where(.dm-group:hover .dm-dd) {
  display: block;
}

:where(.dm-header) {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.125rem 0.375rem;
  font-size: var(--ht-text-sm);
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: .04em;
  border-bottom: 0.0625rem solid #f3f4f6;
  margin-bottom: 0.25rem;
}

:where(.dm-header-icon) {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1;
  flex-shrink: 0;
}

:where(.footer-links) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.625rem;
}

:where(.footer-links a) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  font-size: var(--ht-text-sm);
  color: #6b7280;
  text-decoration: none;
}

:where(.footer-company) {
  margin: 0;
  font-size: var(--ht-text-2xs-plus);
  color: #9ca3af;
  line-height: 1.8;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
}

:where(.footer-company span) {
  white-space: nowrap;
}

:where(.footer-company a) {
  color: inherit;
  text-decoration: none;
}

@media (max-width:63.9375rem) {
  :where(.page-footer-full .footer-links) {
    display: none !important;
  }

  :where(.page-footer-full .footer-inner) {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  :where(.page-footer-full .footer-company) {
    font-size: var(--ht-text-2xs-plus);
    line-height: 1.7;
    text-align: left;
    gap: 0rem 0.75rem;
  }

  :where(.page-footer-full .footer-company span) {
    display: inline-block;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  :where(.page-footer-full .footer-company span:nth-child(2)) {
    white-space: normal;
  }
}

:where(.site-header) {
  z-index: 500;
}

:where(.pnav-more) {
  display: none;
}

:where(.pnav-more-trigger) {
  color: var(--brand-600, #ff5722);
  font-weight: 600;
}

:where(.pnav-more-dd) {
  padding: 0.75rem 0.375rem;
  min-width: 12.5rem;
}

:where(.panel-head) {
  height: 4rem;
  border-bottom: 0.0625rem solid rgba(0, 0, 0, .06);
}

:where(.mob-footer-links) {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

:where(.mob-footer-copy) {
  margin-top: 1.125rem;
}

:where(.member-menu-link .pnav-chevron) {
  width: 0.75rem;
  height: 0.75rem;
  transform: rotate(-90deg);
}

@media (max-width: 79.9375rem) {

  :where(#site-header) {
    transition: transform .25s ease;
    will-change: transform;
  }

  :where(#site-header.mob-header-hidden) {
    transform: translateY(-100%);
  }
}

@media (max-width: 39.9375rem) {
  :where(html.ht-modal-open body.ht-modal-open #site-header) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
}

:where(.bs-footer-clear) {
  flex: 1;
  padding: 11px 0;
  font-size: var(--ht-text-base);
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s,color .12s;
}

:where(.bs-footer-clear:hover) {
  background: #e5e7eb;
}

:where(.bs-footer-apply) {
  flex: 2;
  padding: 11px 0;
  font-size: var(--ht-text-base);
  font-weight: 600;
  color: #fff;
  background: var(--page-brand-color, var(--brand-600, #ff5722));
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .12s;
}

:where(.bs-footer-apply:hover) {
  opacity: .88;
}