/* รูปแบบร่วมกันของหน้าเว็บไซต์ Grow Together */
.site-header, .h {
  gap: 16px;
}

.brand {
  display: inline-block;
  white-space: normal;
  font-family: Arial, "Noto Sans Thai", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.82;
}

.brand span {
  display: block;
}

.back {
  white-space: nowrap;
  font-size: 0.88rem;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #e78461;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.home-link:hover,
.home-link:focus-visible {
  background: #6f7f56;
  color: #fff;
}

.resource-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.resource-header-actions .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  line-height: 1.2;
  text-align: center;
}

.footer-stack a,
.site-footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.footer-stack {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.footer-identity {
  display: grid;
  justify-items: center;
  gap: 2px;
  line-height: 1.5;
}

.footer-identity span {
  display: block;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
}

@media (max-width: 430px) {
  .site-header, .h {
    padding-inline: 14px;
    gap: 8px;
  }

  .site-header:has(.resource-header-actions),
  .h:has(.resource-header-actions) {
    flex-wrap: wrap;
  }

  .brand {
    font-size: 1.2rem;
  }

  .back {
    min-height: 44px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .home-link {
    min-height: 44px;
    padding: 7px 12px;
    font-size: 0.72rem;
  }

  .resource-header-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }
}
