.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --blue: #1a73e8;
  --blue-hover: #174ea6;
  --gulf-navy: #0b2a4a;
  --ink: #000;
  --muted: #000;
  --soft: #5f6368;
  --line: #dadce0;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --down: #b06000;
  /* --display / --text / --nav come from fonts.css (EN Google Sans, TH Prompt) */
  --max: 1376px;
  --header-top: 0px;
  --header-bar: 64px;
  --header: calc(var(--header-top) + var(--header-bar));
}

/* Stock bar shown (server-rendered quote or a widget revealed by js/stock-widget.js). */
html:has(.header-top:not([hidden])) {
  --header-top: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--text);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(calc(-100% - 8px));
  z-index: 80;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #eee;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

/* Fixed while menu open: overflow:hidden on html/body breaks position:sticky */
html.nav-open .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  transform: none;
  pointer-events: auto;
}

.header-top {
  min-height: 26px;
  /* The row inside has no height of its own (height: 100% of a min-height is auto); center it here. */
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border-bottom: 0px solid #eee;
}

/* display: flex above would otherwise override [hidden] when there is no quote. */
.header-top[hidden] {
  display: none;
}

.stock-widget-frame {
  display: block;
  width: 100%;
  border: 0;
}

/* display: block above would otherwise override [hidden] while the quote shows. */
.stock-widget-frame[hidden] {
  display: none;
}

.header-top-inner {
  width: min(1376px, calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-stock {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  column-gap: 10px;
  margin: 0;
  font-family: var(--text);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--gulf-navy);
  white-space: nowrap;
}

.header-stock-symbol {
  font-weight: 700;
}

.header-stock-price,
.header-stock-change {
  font-weight: 500;
}

.bar {
  width: min(1376px, calc(100% - 40px));
  margin-inline: auto;
  height: var(--header-bar);
  display: grid;
  grid-template-columns: 1fr auto 0.7fr;
  align-items: center;
  column-gap: 16px;
}

.logo {
  grid-column: 1;
  justify-self: start;
}

.logo img {
  height: 28px;
  width: auto;
}

.bar-end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang {
  position: relative;
  flex: none;
  z-index: 2;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f4;
  color: #202124;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.28s ease;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  background: #e8eaed;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 80px;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31, 31, 31, 0.08);
  list-style: none;
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  font-family: var(--nav);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1px;
  text-align: left;
  color: #3c4043;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button[aria-current="true"] {
  background: var(--bg-soft);
  color: #202124;
}

.nav-stack,
.nav-panel-root {
  display: contents;
}

.nav-panel-sub,
.nav-back,
.nav-panel-title {
  display: none;
}

.nav-panel-root>a,
.nav-item>a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--nav);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1px;
  line-height: 1.4286;
  color: var(--ink);
  margin: 0 -8px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.nav-panel-root>a::after,
.nav-item>a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 1.5px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-panel-root>a:hover,
.nav-item>a:hover,
.nav-panel-root>a.on,
.nav-item>a.on {
  color: #202124;
}

.nav-panel-root>a:hover,
.nav-item>a:hover {
  background: #f8f9fa;
}

.nav-panel-root>a:hover::after,
.nav-item>a:hover::after,
.nav-panel-root>a.on::after,
.nav-item>a.on::after {
  transform: scaleX(1);
}

.caret {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  font-size: 12px;
  line-height: 1;
  vertical-align: 1px;
  font-weight: 800;
  -webkit-text-stroke-width: 0.6px;
}

.caret i {
  display: block;
  transition: transform 0.25s ease;
}

@media (min-width: 961px) {

  .nav-item:hover>a .caret i,
  .nav-item.is-open>a .caret i,
  .nav-item:focus-within>a .caret i {
    transform: rotate(180deg);
  }
}

.nav-item {
  position: relative;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 14px;
}

.nav-item>.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  z-index: 60;
  min-width: 256px;
  margin: 0;
  padding: 10px 0;
  background: #fff;
  border: 1px solid #dadce061;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31, 31, 31, 0.08);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.nav-item:hover>.nav-dropdown,
.nav-item.is-open>.nav-dropdown,
.nav-item:focus-within>.nav-dropdown {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-family: var(--nav);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0px;
  color: #3c4043;
}

.nav-dropdown a:hover,
.nav-dropdown a.on {
  background: var(--bg-soft);
  color: #202124;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(420px, 75vh, 879px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050914;
  color: #fff;
  text-align: center;
  padding: 48px 0;
}

.hero-media,
.hero-media video,
.hero-glow {
  position: absolute;
  inset: 0;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-glow {
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(26, 115, 232, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(5, 9, 20, 0.15), rgba(5, 9, 20, 0.72));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 40px));
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.hero p {
  margin: 18px auto 28px;
  max-width: 820px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
}

@media (min-width: 900px) {
  .hero p {
    white-space: nowrap;
  }
}

.video-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.video-toggle-icon {
  display: block;
  width: 10px;
  height: 12px;
  margin: 0 auto;
  background: linear-gradient(#fff 0 0) 0 0 / 3px 100% no-repeat,
    linear-gradient(#fff 0 0) 7px 0 / 3px 100% no-repeat;
}

.video-toggle.is-paused .video-toggle-icon {
  width: 0;
  height: 0;
  background: none;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover {
  background: var(--blue-hover);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.28);
}

.pill-ghost {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px #c2d7f5;
}

.pill-ghost:hover {
  background: #e8f0fe;
  box-shadow: inset 0 0 0 1px #c2d7f5;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero,
.explore,
.feature,
.conglomerate,
.sustain,
.invest,
.news,
.careers,
.footer {
  scroll-margin-top: 72px;
}

.explore,
.news {
  background: var(--bg);
}

.explore {
  padding: 72px 0 40px;
}

.explore-head {
  margin-bottom: 40px;
}

.explore-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.explore-head h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 12px;
}

.explore-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 42ch;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.explore-card {
  display: block;
  color: var(--ink);
}

.news-grid a {
  display: block;
  color: var(--ink);
}

.explore-card,
.news-grid a,
.feature-visual {
  overflow: hidden;
}

.explore-card img,
.news-grid img,
.feature-visual img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  background: #e8eaed;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.explore-card:hover img,
.news-grid a:hover img,
.feature-visual:hover img {
  transform: scale(1.03);
}

.explore-card h3 {
  margin: 16px 0 6px;
  font-family: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.explore-sub {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.explore-go {
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
}

.explore-go:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 50%;
}

.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.25s ease;
  pointer-events: none;
}

.explore-go:hover .arrow {
  background: var(--blue-hover);
  transform: translateX(2px);
}

.arrow::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
}

.feature,
.sustain {
  padding: 88px 0;
}

.careers {
  padding: 88px 0;
  background: var(--bg-soft);
}

.feature-intro {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-intro h2,
.feature-intro p {
  width: 100%;
  max-width: 48ch;
  text-align: center;
}

.feature-intro p {
  margin-top: 18px;
}

.feature-intro .pill {
  margin-top: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.feature-grid.reverse {
  grid-template-columns: 1.05fr 1fr;
}

.feature-copy h2,
.feature-intro h2,
.conglomerate h2,
.invest h2,
.news h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.feature-copy p,
.conglomerate p,
.invest-copy p {
  margin: 18px 0 28px;
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
}

.feature-intro p {
  margin: 18px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.feature-visual img {
  height: 425px;
}

.feature-visual figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--soft);
}

.conglomerate {
  padding: 96px 0;
  background: var(--bg-soft);
  text-align: center;
}

.conglomerate-inner {
  max-width: 760px;
}

.mark {
  height: 22px;
  width: auto;
  margin: 0 auto 20px;
}

.conglomerate p {
  margin-inline: auto;
}

.biz-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.biz-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.biz-list a:hover {
  color: var(--blue);
  border-color: #c2d7f5;
  transform: translateY(-2px);
}

.invest {
  padding: 96px 0;
  background: var(--bg-soft);
}

.invest-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.invest-inner:not(:has(> .stock-widget:not([hidden]))) {
  grid-template-columns: 1fr;
}

.stock {
  background: var(--bg);
  border-radius: 28px;
  padding: 28px 28px 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.stock-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stock-top strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}

.stock-top span {
  color: var(--soft);
  font-size: 13px;
}

.stock-price {
  margin: 10px 0 6px;
  font-family: var(--display);
  font-size: 48px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stock-price em {
  font-style: normal;
  font-size: 16px;
  color: var(--soft);
}

/* Same as the Optiwise widget: orange whichever way the price moved. */
.stock-change {
  font-size: 16px;
  font-weight: 600;
  color: var(--down);
}

.stock dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stock dt {
  font-size: 12px;
  color: var(--soft);
}

.stock dd {
  font-size: 15px;
  margin-top: 4px;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .stock dl {
    grid-template-columns: 1fr;
  }
}

.news {
  padding: 40px 0 88px;
}

.news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.news-grid img {
  height: 300px;
}

.news time {
  display: block;
  margin: 16px 0 8px;
  font-size: 13px;
  color: var(--soft);
}

.news h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.news-empty {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.text-link {
  color: var(--blue);
  font-weight: 500;
  font-size: 14px;
}

.text-link:hover {
  text-decoration: underline;
}

.footer {
  background: var(--gulf-navy);
  padding-top: 56px;
  border-top: none;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1px;
  line-height: 1.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(0, 1.65fr) 0.9fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 40px;
}
.footer-contact {
  min-width: 0;
}

.footer-brand .footer-logo {
  display: inline-block;
  line-height: 0;
  margin: 0;
}

.footer-logo img {
  display: block;
  height: 30px;
  width: auto;
  border: 0;
}

.footer h3 {
  font-family: var(--text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1px;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 14px;
}

.footer a:not(.footer-logo),
.footer p {
  display: block;
  margin: 10px 0;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.footer p a:not(.footer-logo) {
  display: inline;
  margin: 0;
}

.footer-social {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.footer-social-row {
  display: grid;
  grid-template-columns: 8.75rem auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
}

.footer-social-label {
  margin: 0;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer .footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 50%;
  background: #ffffff1c;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer .footer-social-icons a:hover {
  color: var(--gulf-navy);
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Keep Thai place names intact when the address wraps (no mid-word split) */
html[lang="th"] .ft-addr,
html[data-lang-folder="th"] .ft-addr {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}
.ft-addr-keep {
  white-space: nowrap;
}
/* Desktop: break before แขวง; smaller screens wrap continuously */
.ft-addr-br {
  display: none;
}
@media (min-width: 981px) {
  .ft-addr-br {
    display: inline;
  }
}

.footer a:hover {
  color: #fff;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-base-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 24px;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-base-inner p,
.footer-legal a {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover {
  color: #fff;
}

.hero-reveal,
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.hero-copy.is-in .hero-reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-copy.is-in .hero-reveal:nth-child(1) {
  transition-delay: 0.08s;
}

.hero-copy.is-in .hero-reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.hero-copy.is-in .hero-reveal:nth-child(3) {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {

  .hero-reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .header,
  .lang-btn {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bar {
    grid-template-columns: 1fr auto 0.5fr;
  }
}


@media (max-width: 1020px) {

  .nav-panel-root>a,
  .nav-item>a {
    font-size: 15px;

  }
}

@media (max-width: 991px) {
  .bar {
    grid-template-columns: 1fr auto 0.4fr;
  }

  html.nav-open,
  html.nav-open body {
    overflow: hidden;
  }

  .menu-btn {
    display: block;
    position: relative;
    z-index: 2;
    order: 1;
  }

  .bar-end .lang {
    order: 2;
  }

  .menu-btn span {
    transition: transform 0.3s ease, opacity 0.2s ease;
  }

  .menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-panel-root>a,
  .nav-item>a {
    font-size: 16px;

  }

  .nav,
  .nav.open {
    display: block;
    position: fixed;
    justify-self: stretch;
    width: auto;
    inset: var(--header) 0 0 0;
    z-index: 1;
    padding: 24px 20px 40px;
    border-bottom: 0;
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 0.36s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.42s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-stack {
    display: grid;
    width: 100%;
  }

  .nav-panel-root,
  .nav-panel-sub {
    display: grid;
    grid-area: 1 / 1;
    align-content: start;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.34s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.45s;
  }

  .nav-panel-sub {
    transform: translateX(28%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav.is-drilled .nav-panel-root {
    transform: translateX(-22%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav.is-drilled .nav-panel-sub {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item::after {
    display: none;
  }

  .nav-panel-root>a,
  .nav-item>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 16px 12px;
    border-radius: 0px;
    border-bottom: 1px dotted var(--line);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
  }

  .nav-panel-root>a::after,
  .nav-item>a::after {
    display: none;
  }

  .nav-item.has-dropdown>a .caret {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
  }

  .nav-item.has-dropdown>a .caret i {
    transform: rotate(-90deg);
  }

  .nav-panel-root .nav-dropdown,
  .nav-panel-root .nav-item:hover .nav-dropdown,
  .nav-panel-root .nav-item.is-open .nav-dropdown,
  .nav-panel-root .nav-item:focus-within .nav-dropdown {
    display: none;
  }

  .nav-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-family: var(--nav);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }

  .nav-back-icon {
    display: inline-flex;
    font-size: 12px;
    line-height: 1;
    -webkit-text-stroke-width: 0.7px;
  }

  .nav-panel-title {
    display: block;
    margin: 0 0 8px;
    font-family: var(--display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
  }

  .nav-panel-links {
    display: grid;
  }

  .nav-panel-links a {
    padding: 16px 12px;
    border-bottom: 1px dotted var(--line);
    border-radius: 0px;
    font-family: var(--nav);
    font-size: 17px;
    color: #3c4043;
    transition: background 0.2s ease;
  }

  .nav-panel-root>a:hover,
  .nav-item>a:hover,
  .nav-panel-links a:hover {
    background: #f8f9fa;
  }

  .nav-panel-links a.on {
    color: var(--blue);
  }

  .explore-grid,
  .news-grid,
  .feature-grid,
  .feature-grid.reverse,
  .invest-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-social-row {
    grid-template-columns: minmax(7.5rem, max-content) 1fr;
  }

  .feature-visual img {
    height: 240px;
  }

  .footer-base-inner {
    flex-direction: column;
  }
}

@media (max-width: 479px) {
  .explore-head h2,
  .feature-intro h2,
  .conglomerate h2,
  .invest h2,
  .news h2 {
    font-size: 36px;
  }
}

/* Thai: Prompt (keep after :root so it wins over any later EN stacks in this file) */
html[lang="th"],
html[data-lang-folder="th"] {
  --display: "Prompt", "Google Sans Display", Arial, sans-serif;
  --text: "Prompt", "Google Sans Text", Roboto, Arial, sans-serif;
  --nav: "Prompt", "Google Sans Text", Roboto, Arial, sans-serif;
  --font: "Prompt", "Google Sans Text", Roboto, Arial, sans-serif;
}