/* Shared Entro chrome. Scoped under .entro-chrome so it does not restyle article bodies. */

.entro-chrome {
  --background: #f5f4ee;
  --surface: #ffffff;
  --text: #151515;
  --text-soft: #66665f;
  --border: #1b1b1b;
  --brand: #d7ff3f;
  --brand-hover: #c6f22b;
  --blue: #574bff;
  --container: 1200px;
  --header-height: 82px;
  --shadow: 8px 8px 0 #151515;
  --radius-large: 28px;
  font-family: "IBM Plex Sans Thai", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

body.entro-theme-chrome #masthead,
body.entro-theme-chrome .ast-desktop-header-wrap,
body.entro-theme-chrome .ast-mobile-header-wrap,
body.entro-theme-chrome .main-header-bar-wrap,
body.entro-theme-chrome .ast-above-header-wrap,
body.entro-theme-chrome .ast-below-header-wrap,
body.entro-theme-chrome footer#colophon,
body.entro-theme-chrome .site-footer:not(.entro-site-footer),
body.entro-theme-chrome .ast-footer-wrap,
body.entro-theme-chrome .ast-footer-overlay,
body.entro-theme-chrome .site-below-footer-wrap {
  display: none !important;
}

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

.entro-chrome .skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--text);
  color: white;
  transform: translateY(-150%);
}

.entro-chrome .skip-link:focus {
  transform: translateY(0);
}

.entro-chrome .site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: rgba(245, 244, 238, 0.92);
  border-bottom: 2px solid var(--border);
  backdrop-filter: blur(16px);
}

.entro-chrome .header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.entro-chrome .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.entro-chrome .logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--text);
  background: var(--brand);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  transform: rotate(-4deg);
}

.entro-chrome .logo-dot {
  color: var(--blue);
}

.entro-chrome .desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.entro-chrome .desktop-nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
}

.entro-chrome .desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 3px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.entro-chrome .desktop-nav a:hover::after,
.entro-chrome .desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.entro-chrome .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entro-chrome .search-toggle,
.entro-chrome .menu-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}

.entro-chrome .menu-toggle {
  display: none;
}

.entro-chrome .button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.entro-chrome .button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--text);
}

.entro-chrome .button--brand {
  background: var(--brand);
}

.entro-chrome .button--brand:hover {
  background: var(--brand-hover);
}

.entro-chrome .button--small {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 0.92rem;
}

.entro-chrome .mobile-menu {
  position: fixed;
  z-index: 90;
  inset: var(--header-height) 0 0;
  padding: 35px 20px;
  background: var(--brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.entro-chrome .mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.entro-chrome .mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.entro-chrome .mobile-menu nav a {
  padding: 15px 0;
  border-bottom: 2px solid rgba(21, 21, 21, 0.25);
  color: inherit;
  text-decoration: none;
  font-family: "Manrope", "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(1.8rem, 8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.entro-chrome .search-overlay {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 130px 20px 40px;
  background: rgba(21, 21, 21, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.entro-chrome .search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.entro-chrome .search-panel {
  position: relative;
  width: min(100%, 850px);
  padding: 35px;
  color: var(--text);
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: 10px 10px 0 var(--brand);
}

.entro-chrome .search-panel h2 {
  margin: 0 0 22px;
  font-family: "Manrope", "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.entro-chrome .search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: #fff;
  background: var(--text);
  border: 0;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.entro-chrome .search-overlay .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 13px;
  color: var(--text);
  background: var(--brand);
  border: 2px solid var(--border);
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.entro-chrome .search-overlay .eyebrow::before {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.entro-chrome .overlay-search {
  display: flex;
  max-width: 720px;
  padding: 7px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.entro-chrome .overlay-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 17px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.entro-chrome .overlay-search input::placeholder {
  color: #8a8a82;
}

.entro-chrome .overlay-search button {
  min-width: 125px;
  padding: 12px 20px;
  color: #fff;
  background: var(--text);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.entro-chrome .overlay-search button:hover {
  color: var(--text);
  background: var(--brand);
}

.entro-chrome footer.entro-site-footer {
  padding: 70px 0 35px;
  color: #fff;
  background: #151515;
}

.entro-chrome footer.entro-site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.6fr);
  gap: 50px;
  margin-bottom: 65px;
}

.entro-chrome footer.entro-site-footer .footer-brand p {
  max-width: 390px;
  margin: 20px 0 0;
  color: #a8a8a2;
}

.entro-chrome footer.entro-site-footer .footer-heading {
  margin-bottom: 15px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entro-chrome footer.entro-site-footer .footer-links {
  display: grid;
  gap: 10px;
}

.entro-chrome footer.entro-site-footer .footer-links a {
  color: #deded8;
  text-decoration: none;
}

.entro-chrome footer.entro-site-footer .footer-links a:hover {
  color: var(--brand);
}

.entro-chrome footer.entro-site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 25px;
  color: #8f8f89;
  border-top: 1px solid #414141;
  font-size: 0.88rem;
}

@media (max-width: 1050px) {
  .entro-chrome .desktop-nav,
  .entro-chrome .header-newsletter {
    display: none;
  }

  .entro-chrome .menu-toggle {
    display: grid;
  }

  .entro-chrome footer.entro-site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .entro-chrome {
    --header-height: 72px;
  }

  .entro-chrome .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .entro-chrome .header-actions .search-toggle {
    display: none;
  }

  .entro-chrome .overlay-search {
    display: grid;
    padding: 8px;
    border-radius: 20px;
  }

  .entro-chrome .overlay-search input {
    min-height: 53px;
  }

  .entro-chrome .overlay-search button {
    min-height: 48px;
    width: 100%;
  }

  .entro-chrome footer.entro-site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .entro-chrome footer.entro-site-footer .footer-bottom {
    flex-direction: column;
  }

  .entro-chrome .search-panel {
    padding: 28px 20px;
  }
}
