/* Load after style.css. */
html {
  scroll-padding-top: calc(var(--pu-header-height, 100px) + 16px);
}
header.pu-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: auto;
  min-height: 88px;
  padding-top: 14px;
  padding-bottom: 14px;
  background: #fffaef;
  box-shadow: 0 4px 18px rgb(16 31 53 / 7%);
  overflow: visible;
  border-radius: 15px;
  margin-top: 10px;
}
.pu-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.pu-header-actions .nav-cta {
  margin-right: 6px;
}
.pu-header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d8e7fb;
  background: #edf5ff;
  color: #196fe5;
}
.pu-header-contact svg,
.pu-header-contact img {
  display: block;
  width: 25px;
  height: 25px;
}
.pu-header-contact--line {
  background: #ecfbf1;
  border-color: #c5ebd2;
}
.pu-header-contact:hover {
  background: #dcecff;
  transform: translateY(-2px);
}
.pu-header-contact--line:hover {
  background: #d8f6e3;
}
.pu-header-contact:focus-visible {
  outline: 3px solid #196fe5;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  header.pu-sticky-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
  }
  .pu-sticky-header > .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .pu-sticky-header > .pu-header-actions {
    grid-column: 2;
    grid-row: 1;
  }
  header.pu-sticky-header > nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
  }
  header.pu-sticky-header > nav a {
    font-size: 14px;
    padding: 4px 0;
  }
}
@media (max-width: 650px) {
  header.pu-sticky-header {
    padding: 12px 4%;
    gap: 8px;
  }
  .pu-header-actions {
    gap: 7px;
  }
  .pu-header-actions .nav-cta {
    max-width: 100px;
    font-size: 12px;
    line-height: 1.5;
    margin-right: 0;
  }
  .pu-header-actions .nav-cta span {
    display: none;
  }
  header.pu-sticky-header > nav {
    gap: 6px 16px;
  }
}
@media (max-width: 380px) {
  .pu-sticky-header .brand { font-size: 22px; }
  .pu-header-actions { gap: 5px; }
  .pu-header-actions .nav-cta { max-width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .pu-header-contact { transition: none; }
  .pu-header-contact:hover { transform: none; }
}
/* รูปแบบปุ่มเมนู */
header.pu-sticky-header nav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background-color 0.2s, border-color 0.2s;
}

/* เมื่อเมาส์ชี้ หรือเลือกด้วยคีย์บอร์ด */
header.pu-sticky-header nav a:hover,
header.pu-sticky-header nav a:focus-visible {
  background-color: #eaf4ff;
  border-color: #1875ee;
}

/* ขณะกด */
header.pu-sticky-header nav a:active {
  background-color: #cfe5ff;
  border-color: #105fc5;
}