/* Shared readability and navigation refinements for public, Community, and admin pages. */
:root,
body,
button,
input,
select,
textarea {
  font-family: "Roboto", "Noto Sans Thai", "Leelawadee UI", Tahoma, "Segoe UI", sans-serif;
}

body {
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.site-header .wrap {
  min-height: 70px;
}

.site-nav a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0;
}

.site-nav a.is-active {
  color: #fff;
}

.site-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
}

.brand.is-live {
  gap: 8px;
  border: 1px solid rgba(255, 126, 138, .82);
  box-shadow: 0 0 0 3px rgba(255, 126, 138, .13);
  padding: 4px 7px;
}

.brand.is-live .brand-mark {
  border-color: #ff7e8a;
  color: #ffb3ba;
}

.brand-live {
  border: 1px solid rgba(255, 126, 138, .72);
  background: rgba(255, 126, 138, .14);
  color: #ffd5d9;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 5px;
}

.community-member-nav a[aria-current="page"] {
  position: relative;
}

.community-member-nav a[aria-current="page"]::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: var(--community-orange);
  border-radius: 50%;
  content: "";
}

.community-shell,
.community-shell button,
.community-shell input,
.community-shell select,
.community-shell textarea,
.overlay-stage {
  font-family: "Roboto", "Noto Sans Thai", "Leelawadee UI", Tahoma, "Segoe UI", sans-serif;
}

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

  .site-nav a.is-active::after {
    bottom: -9px;
  }

  .brand.is-live {
    padding: 3px 5px;
  }

  .brand-live {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand.is-live {
    box-shadow: none;
  }
}

.pubta-page-loader[hidden] {
  display: none;
}

.pubta-page-loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 11, 18, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.pubta-page-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.pubta-page-loader img {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
  object-fit: cover;
  will-change: transform;
  animation: pubta-loader-character-spin 1.45s linear infinite;
}

.pubta-page-loader::before {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  border: 2px solid rgba(255, 255, 255, .26);
  border-right-color: #9e7aff;
  border-bottom-color: #ff9f59;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(158, 122, 255, .26);
  animation: pubta-loader-ring-spin .88s linear infinite;
}

@keyframes pubta-loader-character-spin {
  to { transform: rotate(360deg); }
}

@keyframes pubta-loader-ring-spin {
  to { transform: rotate(-360deg); }
}

@media (max-width: 680px) {
  .pubta-page-loader img {
    width: 58px;
    height: 58px;
  }

  .pubta-page-loader::before {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pubta-page-loader {
    transition: none;
  }

  .pubta-page-loader img,
  .pubta-page-loader::before {
    animation: none;
  }
}
