/* Shared demo utilities — both templates */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--type-body-font-family, var(--font-sans));
  font-size: 17px;
  line-height: var(--type-body-line-height, 1.4705882353);
  letter-spacing: var(--type-body-letter-spacing, -0.022em);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

:lang(th) body {
  letter-spacing: 0;
  line-height: var(--leading-thai, 1.7);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* Knight default English (Figtree) — after library tokens */
:root {
  --font-sans: 'Figtree', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  --type-font-display: Figtree, "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-font-text: Figtree, "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hp-example-banner {
  margin: 0;
  padding: 6px var(--layout-gutter) 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.3333733333;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.hp-th-line {
  display: block;
}

.hp-th-lines .hp-th-line {
  display: block;
}

.typography-hero-headline {
  font-family: var(--type-tile-headline-font-family);
  font-weight: var(--type-tile-headline-weight);
  font-size: var(--type-tile-headline-size);
  line-height: var(--type-tile-headline-line-height);
  letter-spacing: var(--type-tile-headline-letter-spacing);
  margin: 0;
  text-wrap: wrap;
}

:lang(th) .typography-hero-headline {
  letter-spacing: 0;
  line-height: var(--leading-thai-heading, 1.5);
}

.typography-section-headline {
  font-family: var(--type-section-font-family);
  font-weight: var(--type-section-weight);
  font-size: var(--type-section-size);
  line-height: var(--type-section-line-height);
  letter-spacing: var(--type-section-letter-spacing);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

:lang(th) .typography-section-headline {
  letter-spacing: 0;
  line-height: var(--leading-thai-heading, 1.5);
}

.typography-tile-subhead {
  font-family: var(--type-tile-subhead-font-family);
  font-weight: var(--type-tile-subhead-weight);
  font-size: var(--type-tile-subhead-size);
  line-height: var(--type-tile-subhead-line-height);
  letter-spacing: var(--type-tile-subhead-letter-spacing);
  margin: 0;
  color: var(--text-muted);
  text-wrap: pretty;
}

:lang(th) .typography-tile-subhead {
  letter-spacing: 0;
}

.section--surface {
  background: var(--surface);
}

.section-lede {
  max-width: 36rem;
  margin: 0 auto var(--space-8);
  text-align: center;
  color: var(--text-muted);
}

.hp-site-footer {
  background: var(--surface);
  padding: var(--space-8) var(--layout-gutter) var(--space-10);
  font-size: 12px;
  line-height: 1.3333733333;
  color: var(--text-muted);
}

.hp-site-footer__inner {
  max-width: var(--layout-content-max);
  margin-inline: auto;
}

.hp-site-footer nav {
  margin-bottom: var(--space-5);
}

.hp-site-footer a,
.gf-social-text-links__link {
  color: rgba(0, 0, 0, 0.72);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding-inline: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .hp-site-footer a:hover {
    text-decoration: underline;
  }
}

.hp-site-footer__legal {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
