/**
 * MUTIC / MAHANAKORN Design System
 * colors_and_type.css — Color tokens + Typography system
 * Version 1.0 — 2026 Edition
 *
 * FONTS:
 *   Century Gothic   ✅ Local TTF files (fonts/centurygothic.ttf, fonts/centurygothic_bold.ttf)
 *   Sarabun          ✅ Local TTF files (fonts/Sarabun-*.ttf — full weight family)
 *   Norwester        ✅ Local OTF file (fonts/norwester.otf — 2+2 display identifier)
 */

/* ─── Century Gothic — Local @font-face ───────────────────────── */
@font-face {
  font-family: "Century Gothic";
  src: url("fonts/centurygothic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Century Gothic";
  src: url("fonts/centurygothic_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Sarabun — Local @font-face (Thai primary, full family) ───── */
@font-face {
  font-family: "Sarabun";
  src: url("fonts/Sarabun-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sarabun";
  src: url("fonts/Sarabun-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sarabun";
  src: url("fonts/Sarabun-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sarabun";
  src: url("fonts/Sarabun-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sarabun";
  src: url("fonts/Sarabun-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sarabun";
  src: url("fonts/Sarabun-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sarabun";
  src: url("fonts/Sarabun-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sarabun";
  src: url("fonts/Sarabun-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ─── Norwester — Local @font-face (2+2 display identifier) ────── */
@font-face {
  font-family: "Norwester";
  src: url("fonts/norwester.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Base Color Tokens ────────────────────────────────────────── */
:root {
  /* Primary Palette */
  --mutic-red: #c10230;
  --mutic-maroon: #8a2433;
  --mutic-white: #f4f4f4;
  --mutic-black: #231f20;

  /* Secondary / Accent Palette */
  --mutic-turquoise: #09614f;
  --mutic-azure: #68c6de;
  --mutic-gray: #939598;
  --mutic-yellow: #eda81f;

  /* Grayscale System */
  --mutic-white-pure: #ffffff;
  --mutic-black-pure: #000000;

  /* ─── Semantic Color Variables ────────────────────────────────── */

  /* Backgrounds */
  --bg-primary: #ffffff; /* default page / card bg */
  --bg-surface: var(--mutic-white); /* subtle surface (F4F4F4) */
  --bg-brand: var(--mutic-red); /* brand-colored CTA section */
  --bg-brand-deep: var(--mutic-maroon); /* maroon emphasis section */
  --bg-subtle: #edecec; /* hover / input / secondary */

  /* Foreground / Text */
  --fg-primary: var(--mutic-black); /* body text on light bg */
  --fg-on-dark: var(--mutic-white); /* body text on dark bg */
  --fg-identity: var(--mutic-red); /* MAHANAKORN identity signature */
  --fg-muted: var(--mutic-gray); /* captions, meta, secondary */

  /* Borders */
  --border-default: var(--mutic-gray); /* standard dividers */
  --border-strong: var(--mutic-black); /* strong emphasis */
  --border-brand: var(--mutic-red); /* brand accent rules */

  /* Interactive */
  --interactive-primary: var(--mutic-red);
  --interactive-primary-hover: #a10228; /* darkened red */
  --interactive-secondary: var(--mutic-black);
  --interactive-secondary-hover: #3a3536;

  /* Accent */
  --accent-teal: var(--mutic-turquoise);
  --accent-sky: var(--mutic-azure);
  --accent-yellow: var(--mutic-yellow);
  --accent-gray: var(--mutic-gray);
}

/* ─── Typography Tokens ────────────────────────────────────────── */
:root {
  /* Font Families */
  --font-english: "Century Gothic", "Futura", "Trebuchet MS", sans-serif;
  --font-thai: "Sarabun", sans-serif;
  --font-display: "Norwester", "Impact", "Arial Narrow", sans-serif;
  --font-fallback: Arial, Helvetica, sans-serif;

  /* Font Weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* Type Scale (desktop) */
  --text-xs: 0.75rem; /*  12px */
  --text-sm: 0.875rem; /*  14px */
  --text-base: 1rem; /*  16px */
  --text-md: 1.125rem; /*  18px */
  --text-lg: 1.25rem; /*  20px */
  --text-xl: 1.5rem; /*  24px */
  --text-2xl: 2rem; /*  32px */
  --text-3xl: 2.5rem; /*  40px */
  --text-4xl: 3.5rem; /*  56px */
  --text-5xl: 4.5rem; /*  72px */

  /* Line Heights */
  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.6;
  --lh-relaxed: 1.75;

  /* Letter Spacing */
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.1em;
  --ls-widest: 0.15em;
}

/* ─── Semantic Type Styles ─────────────────────────────────────── */
:root {
  /* Headings (Century Gothic) */
  --h1-font: var(--font-english);
  --h1-size: var(--text-4xl);
  --h1-weight: var(--fw-bold);
  --h1-lh: var(--lh-tight);
  --h1-ls: var(--ls-tight);

  --h2-font: var(--font-english);
  --h2-size: var(--text-3xl);
  --h2-weight: var(--fw-bold);
  --h2-lh: var(--lh-heading);
  --h2-ls: var(--ls-tight);

  --h3-font: var(--font-english);
  --h3-size: var(--text-2xl);
  --h3-weight: var(--fw-bold);
  --h3-lh: var(--lh-heading);
  --h3-ls: 0;

  --h4-font: var(--font-english);
  --h4-size: var(--text-xl);
  --h4-weight: var(--fw-bold);
  --h4-lh: var(--lh-heading);
  --h4-ls: 0;

  /* Body copy */
  --body-font: var(--font-english);
  --body-size: var(--text-base);
  --body-weight: var(--fw-regular);
  --body-lh: var(--lh-body);
  --body-ls: 0;

  --body-sm-size: var(--text-sm);
  --body-lg-size: var(--text-md);

  /* Caption / meta */
  --caption-font: var(--font-english);
  --caption-size: var(--text-xs);
  --caption-weight: var(--fw-regular);
  --caption-ls: var(--ls-wide);
  --caption-color: var(--fg-muted);

  /* Label / overline */
  --label-font: var(--font-english);
  --label-size: var(--text-xs);
  --label-weight: var(--fw-bold);
  --label-ls: var(--ls-widest);

  /* Display / Campaign (Norwester — self-hosted) */
  --display-font: var(--font-display);
  --display-size: var(--text-5xl);
  --display-weight: var(--fw-black);
  --display-ls: var(--ls-wide);
  --display-lh: 0.9;

  /* Thai body */
  --thai-body-font: var(--font-thai);
  --thai-body-size: var(--text-base);
  --thai-body-weight: var(--fw-regular);
  --thai-body-lh: 1.7;

  /* Thai heading */
  --thai-heading-font: var(--font-thai);
  --thai-heading-weight: var(--fw-bold);
  --thai-heading-lh: 1.3;
}

/* ─── Utility Classes ──────────────────────────────────────────── */

/* Colors */
.text-red {
  color: var(--mutic-red);
}
.text-maroon {
  color: var(--mutic-maroon);
}
.text-black {
  color: var(--mutic-black);
}
.text-white {
  color: var(--mutic-white);
}
.text-gray {
  color: var(--mutic-gray);
}
.text-identity {
  color: var(--mutic-red);
  font-weight: var(--fw-bold);
}

.bg-red {
  background-color: var(--mutic-red);
}
.bg-maroon {
  background-color: var(--mutic-maroon);
}
.bg-black {
  background-color: var(--mutic-black);
}
.bg-white {
  background-color: var(--mutic-white);
}
.bg-subtle {
  background-color: var(--bg-subtle);
}

/* Typography utilities */
.heading-en {
  font-family: var(--font-english);
  font-weight: var(--fw-bold);
}
.body-en {
  font-family: var(--font-english);
  font-weight: var(--fw-regular);
}
.heading-th {
  font-family: var(--font-thai);
  font-weight: var(--fw-bold);
}
.body-th {
  font-family: var(--font-thai);
  font-weight: var(--fw-regular);
}
.display {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* Reset text effects (zero-effect policy) */
* {
  text-shadow: none !important;
  filter: none;
}

/* ─── Spacing & Radius ─────────────────────────────────────────── */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Corner Radii (friendly / squircle) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --radius-none: 0;

  /* Elevation / Shadow (minimal) */
  --shadow-sm: 0 1px 3px rgba(35, 31, 32, 0.1);
  --shadow-md: 0 2px 8px rgba(35, 31, 32, 0.12);
  --shadow-lg: 0 4px 20px rgba(35, 31, 32, 0.14);

  /* Borders */
  --border-width: 1px;
  --border-width-thick: 2px;
}

/* =====================================================================
 * MUTIC / MAHANAKORN — Campus Life — Page styles
 * Scoped to #mutic-campus-life-root so it won't fight your WP theme.
 * @font-face + :root tokens above are global (harmless).
 * Font files resolve relative to THIS css file -> keep /fonts beside it.
 * ===================================================================== */

#mutic-campus-life-root *,
#mutic-campus-life-root *::before,
#mutic-campus-life-root *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#mutic-campus-life-root {
  background: #ffffff;
  font-family: "Century Gothic", "Futura", "Trebuchet MS", sans-serif;
  color: #231f20;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: 1.4;
}

#mutic-campus-life-root img,
#mutic-campus-life-root image-slot {
  display: block;
}
#mutic-campus-life-root button {
  font-family: inherit;
}
#mutic-campus-life-root a {
  color: inherit;
}
#mutic-campus-life-root * {
  -webkit-tap-highlight-color: transparent;
}
#mutic-campus-life-root ::selection {
  background: #c10230;
  color: #fff;
}

/* Hide horizontal scrollbar on the timeline tab row */
#mutic-campus-life-root .tl-tabs::-webkit-scrollbar {
  display: none;
}
#mutic-campus-life-root .tl-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Strip away default browser focus indicators globally */
#mutic-campus-life-root *:focus,
#mutic-campus-life-root *:focus-visible,
#mutic-campus-life-root *:active {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}