/* ============================================================
   TOKENS.CSS — GM Tour design tokens (from the Figma variables).
   Names follow Figma: "confident-red/600" → --gm-red-600.
   Widgets use only these variables, so a colour change here
   updates every widget.
   ============================================================ */

:root {
  /* Confident red */
  --gm-red-50: #fef2f2;      /* confident-red/50 */
  --gm-red-200: #fccfd0;
  --gm-red: #ec4751;          /* confident-red/default */
  --gm-red-600: #d72638;      /* confident-red/600 = Red/red-default */
  --gm-red-700: #b81f30;      /* hover of red buttons */
  --gm-red-900: #83182c;
  --gm-peach-500: #f94449;

  /* Greys */
  --gm-grey-50: #fafafa;      /* innovative-grey/50 */
  --gm-grey-200: #e6e6e6;
  --gm-grey: #727272;         /* innovative-grey/default */
  --gm-neutral-600: #686868;
  --gm-ink: #1e1e1e;
  --gm-grey-950: #0b0b0b;     /* innovative-grey/950 — headings */

  /* Success (check icons) */
  --gm-success-500: #12b76a;
  --gm-success-50: #ecfdf3;
  --gm-white: #ffffff;

  /* Type — v0.16.7: ONE font per language (client feedback).
     Thai pages: everything Kanit. English pages: everything Inter
     (see html[lang^="en"] below). Polylang sets <html lang> per page.
     A font chosen in a widget's Style → Typography still wins. */
  --gm-font-th: "Kanit", "Inter", sans-serif;
  --gm-font-en: "Kanit", "Inter", sans-serif;

  /* Scale (Figma "scale/…" and "fontsize/…") */
  --gm-scale-1100: 56px;
  --gm-scale-1000: 48px;
  --gm-scale-900: 40px;
  --gm-scale-700: 24px;
  --gm-body-xl: 20px;
  --gm-body-lg: 18px;
  --gm-body-md: 16px;

  /* Shape */
  --gm-radius-card: 24px;
  --gm-radius-media: 18px;
  --gm-radius-field: 16px;
  --gm-radius-pill: 999px;
  --gm-radius-btn: 40px;
  --gm-radius-chip: 12px;

  /* Layout */
  --gm-card-max: 1344px;      /* red cards / page content: 1440 − 2 × 48 */
  --gm-gutter: 48px;

  /* Motion */
  --gm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1024px) {
  :root {
    --gm-gutter: 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --gm-gutter: 16px;
  }
}

/* English pages → Inter everywhere (headings, texts, buttons, numbers). */
html[lang^="en"] {
  --gm-font-th: "Inter", "Kanit", sans-serif;
  --gm-font-en: "Inter", "Kanit", sans-serif;
}
