@font-face {
  font-family: "Noto Sans Thai";
  src: url("./thai-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 100 599;
  font-display: swap;
  unicode-range: U+0E01-0E5B, U+200B, U+25CC;
}
@font-face {
  font-family: "Noto Sans Thai";
  src: url("./thai-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 600 1000;
  font-display: swap;
  unicode-range: U+0E01-0E5B, U+200B, U+25CC;
}
:root {
  --hb-plum: #56104f;
  --hb-lavender: #efe6ed;
  --hb-lime: #c5ff00;
  --hb-paper: #f9f5ee;
  --hb-ink: #24182a;
  --hb-line: #ded3dd;
  --hb-font: Inter, "Noto Sans Thai", Arial, sans-serif;
}
html body, html body.socialHome,
html body :is(.cm,.freeJoin,.hbRecovery,.hb-portal,.wa-page,.wc-page,.vt-page,.programSignup,.club-home,.act-page,.examDesk,.pop-page),
html body.hbEditorial, html body header.hbAdminHeader {
  font-family: var(--hb-font);
}
html body .hbSignature {
  display: block;
  width: 50px;
  height: auto;
  aspect-ratio: 125.9/105.7;
  color: #56104f;
  fill: currentColor;
  flex: none;
}
html .hbSignature use { fill: currentColor; }
html .socialHeader .socialBrand, html .hbNewsBrand, html .hbAdminHeader .healthBestieMark,
html .cm .cmBrand, html .freeHeader .freeBrand {
  display: inline-flex; align-items: center; padding: 0; background: transparent;
}
html body :is(.race-header,.wc-header,.vt-header,.examDesk header,.game-lobby .club-topbar) .hbSignature { color: white; }
html body .dashboardPreviewBar .hbSignature { width: 25px; }
html .socialHome, html body.hbEditorial, html body:has(.hbNewsBrand) {
  --blue: var(--hb-plum); --ink: var(--hb-ink); --muted: #6d586a; --border: var(--hb-line);
  color: var(--hb-ink); background: var(--hb-paper);
}
html .socialHome .socialHeader, html .hbNewsBrand, html .cm header {
  background-color: white; border-color: var(--hb-line);
}
html .socialHome .topJoin, html .socialHome .joinFoot i, html .cm .cmJoin {
  color: var(--hb-ink); background: var(--hb-lime); font-weight: 700;
}
html .socialHome :is(.homeMenu summary,.postBell summary,.sections .glyph,.storyArrows button) {
  color: var(--hb-plum); background: #f4edf1;
}
html .socialHome :is(.sections a[aria-current],.feedPostActions [aria-pressed=true]) {
  color: var(--hb-plum); background: var(--hb-lavender);
}
html .socialHome .sections a[aria-current] .glyph, html .socialHome .joinArt {
  color: white; background: var(--hb-plum);
}
html .socialHome :is(.storyAvatar,.by img) { border-color: var(--hb-lavender); }
html .socialHome :is(.feedHeading,.storyBar h2,.timeline article h2,.sections h2,.rail h2),
html .socialHome .timeline :is(h2 a,.tools a,.tools button),
html .hbStory :is(h2,h2 a,.tools a,.tools button) { color: var(--hb-plum); }
html .socialHome .joinFoot { background: #fff; }
html .socialHome .tools button, html .feedPostActions button { background: #f6f0f7; color: var(--hb-plum); }
html .socialHome .feedLayout[data-channel=trips] .timeline,
html .hbStory[data-channel=trips] { background: var(--hb-lavender); }
html .socialHome .feedLayout[data-channel=trips] .timeline { padding: clamp(12px,2vw,24px); }
html .socialHome .hbEmptyTrips { margin: .65rem 0; color: var(--hb-plum); }

html body :is(.freeJoin,.hbRecovery,.cm,.wa-page,.examDesk), html body main.hb-portal,
html body.hbEditorial {
  --ink: var(--hb-ink); --green: var(--hb-plum); --line: var(--hb-line); --tint: #f4edf1;
  --lime: var(--hb-lime); background-color: var(--hb-paper); color: var(--hb-ink);
}
html body :is(.freeJoin,.hbRecovery), html body main.hb-portal { background-image: none; }
html .hb-portal .hb-hero { background: var(--hb-lavender); }
html .hb-portal .hb-hero::before {
  background: linear-gradient(90deg,var(--hb-lavender) 8%,#efe6edf9 35%,#efe6edba 59%,transparent 85%);
}
html .hb-portal .hb-access .hb-hero::before {
  background: linear-gradient(0deg,var(--hb-lavender) 5%,#efe6edfa 28%,transparent 78%);
}
html .hb-portal :is(.hb-event,.hb-player,.hb-tagline), html .hb-portal .hb-hero h1,
html :is(.freeJoin,.hbRecovery,.cm) :is(h1,h2), html .wa-page .wa-wrap h1 { color: var(--hb-plum); }
html .freeJoin .freeSubmit, html .hbRecovery .recoverySubmit, html .hb-portal .hb-action,
html .club-home .race-primary, html .wa-page .wa-gate button, html .edLogin button {
  color: var(--hb-ink); background: var(--hb-lime);
}
html .hb-portal .hb-shortcuts a, html .hb-portal .hb-nav a[aria-current], html .hb-portal .hb-tile,
html .freeJoin .joinIcon, html .hbRecovery .recoveryIcon, html .wa-page .hbAdminHeader .hbFront {
  color: var(--hb-plum); background: var(--hb-lavender);
}
html .hbAdminHeader .hbMenu a[aria-current=page], html .examDesk header,
html .club-home .race-header, html .wc-page .wc-header, html .vt-page .vt-header {
  color: white; background: var(--hb-plum);
}
html body .joinArt .hbSignature { color: white; width: 50%; transform: none; }
html .socialHome :is(.allMemberLink,.composerFace,.composerPhoto) { color: var(--hb-plum); }
html .socialHome .composerFace { background: #f4edf1; }
html body main.hb-portal { --lime: var(--hb-plum); }
html .cm > header { background: var(--hb-plum); color: white; }
html body .cm .cmBrand .hbSignature { color: white; }
html .cm header nav > a { background: white; color: var(--hb-plum); }

.hbNotFound { max-width: 40rem; margin: 4rem auto; padding: 0 1.25rem; color: var(--hb-ink); }
.hbNotFound a { color: var(--hb-plum); }
.hbNotFound a:first-child { display: inline-flex; }

html body a.hbPigeon,html .cm .cmBar nav a.hbPigeon,html .hb-shortcuts a.hbPigeon {
 position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
 width:44px;min-width:44px;height:44px;min-height:44px;padding:5px;border-radius:50%;background:#f4edf5;
}
html .hbPigeon img{width:30px;height:30px;object-fit:contain}
.hbPigeonCount{position:absolute;top:-3px;right:-3px;border:2px solid white;border-radius:12px;padding:0 4px;background:#56104f;color:white;font:700 11px/16px Arial,sans-serif}
.hbPigeonCount[hidden]{display:none}
.hbSendPeer{display:inline-flex;align-items:center;gap:6px;min-height:40px;color:#56104f;font-weight:700}
html body .hbPigeon .hbPigeonHint{position:absolute;z-index:8;top:calc(100% + 5px);right:0;display:block;width:max-content;max-width:min(200px,60vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:white;background:#56104f;border-radius:9px;padding:5px 9px;font:600 13px/1.5 var(--hb-font,Arial,sans-serif);box-shadow:0 3px 10px #24182a26;pointer-events:none}
html body .hbPigeon .hbPigeonHint:empty{display:none}
html body .dmTop .hbPigeon .hbPigeonHint{left:50%;right:auto;transform:translateX(-50%)}
html body .composer .hbPigeon .hbPigeonHint{left:0;right:auto}
@media(prefers-reduced-motion:no-preference){.hbPigeon:has(.hbPigeonHint:not(:empty)) img{animation:hbPigeonNudge .42s ease-in-out 2}@keyframes hbPigeonNudge{50%{transform:translateY(-3px) rotate(-7deg)}}}

/* Brand typography also covers the independently rendered community screens. */
html body {
  background-color: var(--hb-paper);
  color: var(--hb-ink);
  font-weight: 400;
}
html body :is(h1,h2,h3,h4,h5,h6,p,label,legend,th,td,button,input,select,textarea,summary,small,time) {
  font-family: var(--hb-font);
}
html body :is(h1,h2,h3,h4,h5,h6) { font-weight: 700; }
html .socialHome :is(.feedHeading,.storyBar) { background-color: var(--hb-paper); }
html .socialHome .feedPostByline a { color: var(--hb-plum); }
html .socialHome .feedPostByline time { color: #685a67; }
html .socialHome :is(.publicMemberPost,.hbStory) > p { color: var(--hb-ink); }
html .socialHome .memberStory .followBadge {
  color: var(--hb-plum); background-color: white; border-color: var(--hb-plum);
}
html .socialHome .memberStory .followBadge[aria-pressed="true"] {
  color: white; background-color: var(--hb-plum); border-color: white;
}
html body main.hb-portal {
  --muted: #685a67;
  --violet: var(--hb-plum);
}
html .hb-portal :is(.hb-metric-bonus,.hb-metric-income,.hb-calc-direct,.hb-calc-team) {
  background-color: var(--hb-paper); color: var(--hb-plum);
}
html .wa-page .wa-kpis > div:first-child { background: var(--hb-lime); color: var(--hb-ink); }
html .wa-page .wa-kpis > div:nth-child(2) { background: var(--hb-paper); color: var(--hb-plum); }
html .wa-page :is(.wa-panel,.wa-wrap,.card) :is(h1,h2,h3),
html .examDesk :is(h2,.edStats strong),
html .hbVertical h3 { color: var(--hb-plum); }
html .wa-page .wa-tabs button[aria-pressed="true"],
html .examDesk .edCalendar button[aria-pressed="true"],
html .examDesk .edManage form button { background: var(--hb-plum); color: white; }
html .examDesk header span { color: var(--hb-paper); }
html .examDesk header { border-bottom-color: var(--hb-lime); }
html .examDesk :is(input,select,header a) { color: var(--hb-ink); border-color: var(--hb-line); }
html .examDesk .edEmpty { background: var(--hb-paper); }

html body :is(.gcShell,.dm,.wc-page,.vt-page,.act-page,.memberDirectory,.pop-page) {
  --purple: var(--hb-plum);
  background-color: var(--hb-paper); color: var(--hb-ink); font-family: var(--hb-font);
}
html .memberDirectory a, html .act-page nav a, html .programDetail a,
html .wc-wrap h1, html .vt-page h1, html .memberDirectory h1 { color: var(--hb-plum); }
html .hb-portal .programDetail { color: var(--hb-ink); }
html .programDetail .programIntro { background: var(--hb-paper); }
html .hb-wallet .hw-balance { background: var(--hb-plum); color: white; }
html .leaflet-container .leaflet-control { font-family: var(--hb-font); }

/* Home feed and member portal headings */
html body.socialHome :is(h1,h2,h3,h4,h5,h6),
html body.socialHome .feedHeading,
html body.socialHome :is(.storyBar,.sections,.rail,.timeline) :is(h1,h2,h3),
html body.socialHome .timeline article h2 a,
html body main.cm:has(.cmMemberNav) .cmWrap :is(h1,h2,h3,h4,h5,h6),
html body main.hb-portal :is(h1,h2,h3,h4,h5,h6),
html body main.hb-portal .hb-hero h1 {
  color: var(--hb-plum);
  text-shadow: none;
}
html body main.hb-portal :is(h1,h2,h3) :is(a,em),
html body main.cm:has(.cmMemberNav) .cmWrap :is(h1,h2,h3) :is(a,em),
html body.socialHome :is(h1,h2,h3) a { color: inherit; }
html body main.hb-portal :is(.offer-banner-copy,.hw-balance) :is(h1,h2,h3),
html body main.hb-portal .offer-banner-copy :is(h1,h2) span { color: var(--hb-lime); }

html body.socialHome .storyBar { background-color: transparent; }
html body.socialHome .storyBar h2::before,
html body.socialHome .feedHeading::before,
html body main.cm:has(.cmMemberNav) .profileBody h1::before,
html body main.hb-portal .hb-hero h1::before {
  content: "";
  display: inline-block;
  inline-size: .24em;
  block-size: .86em;
  margin-inline-end: .42em;
  vertical-align: -.03em;
  border-radius: .12em;
  background-color: var(--hb-lime);
}

.profileSheet .profileBackdrop > img.profileCover {
  width: 100%;
  object-fit: cover;
  object-position: center top;
}
