:root {
  --primary: #24523e;
  --primary-dark: #173d2d;
  --primary-soft: #eaf3ee;
  --cta: #f5b800;
  --cta-dark: #c88f00;
  --background: #ffffff;
  --foreground: #18181b;
  --page-bg: #f6f8f7;
  --border: #dfe6e2;
  --muted: #66736c;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--foreground);
  font-family: "IBM Plex Sans Thai", "Sarabun", system-ui, sans-serif;
}

img,
svg,
video {
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cta) 65%, white);
  outline-offset: 2px;
}

.brand-logo-link {
  width: min(180px, 32vw);
  height: 50px;
}

.brand-logo,
.footer-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-topic-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--border);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 650;
}

.desktop-topic-nav a {
  color: var(--primary-dark);
  text-decoration: none;
}

.desktop-topic-nav a:hover {
  color: var(--cta-dark);
}

.mobile-topic-menu {
  padding: 0.5rem 1rem 0.9rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.mobile-topic-menu a {
  display: block;
  padding: 0.75rem;
  border-radius: 0.65rem;
  color: var(--primary-dark);
  font-weight: 650;
  text-decoration: none;
}

.mobile-topic-menu a:hover {
  background: var(--primary-soft);
}

.search-suggestions {
  position: absolute;
  z-index: 100;
  top: calc(100% + 0.45rem);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 18px 45px rgb(15 23 42 / 14%);
}

.search-suggestions button {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  border-bottom: 1px solid #edf1ef;
  background: #fff;
  color: #202623;
  text-align: left;
  cursor: pointer;
}

.search-suggestions button:hover,
.search-suggestions button:focus-visible {
  background: var(--primary-soft);
}

.info-panel[hidden],
.mobile-topic-menu[hidden],
.search-suggestions[hidden],
.faq-answer[hidden] {
  display: none !important;
}

.seo-article p,
.seo-article li {
  color: #3f4a44;
}

.seo-article a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
}

.spec-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 29%;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-question span {
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 1.6rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  transition: transform 180ms ease;
}

.faq-question[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 2.5rem 1rem 0;
  color: #4b5650;
  line-height: 1.75;
}

.related-section {
  padding: 1.3rem 0 2.2rem;
}

.related-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.related-heading > span {
  width: 0.28rem;
  height: 1.35rem;
  border-radius: 0.2rem;
  background: var(--primary);
}

.related-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: #aac0b4;
  box-shadow: 0 14px 30px rgb(15 23 42 / 8%);
}

.related-card img {
  width: 100%;
  height: 108px;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  object-fit: contain;
}

.related-card div {
  padding: 1rem;
}

.related-card h3 {
  margin: 0 0 0.45rem;
  color: var(--primary-dark);
  font-size: 1rem;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

[data-cta="true"] {
  text-decoration: none;
}

@media (max-width: 1023px) {
  .desktop-topic-nav {
    display: none;
  }

  .brand-logo-link {
    width: min(150px, 42vw);
    height: 42px;
  }
}

@media (max-width: 767px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-card {
    flex-direction: row;
  }

  .related-card img {
    width: 112px;
    height: auto;
  }

  .info-panel {
    padding: 1.15rem !important;
  }

  .spec-table {
    min-width: 480px;
  }
}

@media (max-width: 389px) {
  .brand-logo-link {
    width: 135px;
    height: 38px;
  }

  .related-card img {
    width: 92px;
    padding: 0.75rem;
  }
}

