/* Shared YahaLinks portal header. Keep the Info and Radar copies byte-identical. */
.portal-header {
  flex: none;
  width: 100%;
  position: relative;
  z-index: 30;
  background: #f6f5ef;
  color: #182b28;
  border-bottom: 1px solid #d9ded7;
  font-family: Inter, "Noto Sans Thai", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.portal-header * { box-sizing: border-box; }
.portal-header-inner {
  width: min(100%, 1248px);
  min-height: 84px;
  padding: 16px 24px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.portal-header .portal-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 8px;
  min-height: 44px;
  color: #182b28;
  text-decoration: none;
}
.portal-brand-mark { flex: none; color: #165a48; }
.portal-brand-word {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.2;
  white-space: nowrap;
}
.portal-brand-word > span { color: #165a48; }
.portal-navigation {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0 24px;
  min-width: 0;
  max-width: 100%;
}
.portal-header .portal-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #182b28;
  text-decoration: none;
  white-space: nowrap;
  overflow-wrap: normal;
}
.portal-header .portal-navigation a[aria-current="page"] {
  color: #165a48;
  border-bottom-color: #165a48;
}
.portal-header .portal-navigation a:hover {
  color: #165a48;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.portal-header a:focus-visible {
  outline: 3px solid #165a48;
  outline-offset: 3px;
}
.portal-link-arrow { flex: none; }
@media (max-width: 760px) {
  .portal-header-inner {
    padding: 10px 20px 0;
    gap: 4px;
    align-items: flex-start;
    flex-direction: column;
  }
  .portal-navigation { width: 100%; gap: 0 16px; }
  .portal-header .portal-navigation a { font-size: 12px; gap: 4px; }
  .portal-link-arrow { display: none; }
}
@media (forced-colors: active) {
  .portal-header .portal-navigation a[aria-current="page"] { color: LinkText; border-bottom-color: LinkText; }
  .portal-header a:focus-visible { outline-color: Highlight; }
}
