/*
 * Base layer — global typography, layout wrappers, shared components.
 * Loads after style.css and tokens.css. Blocks reuse these classes,
 * never redefine them (see CLAUDE.md §4).
 */

/* ---------- Global ---------- */

html {
	/* In-page anchors (TOC, #cta links) glide instead of jumping.
	   NOTE: overflow-x:clip must NOT sit on html — Chromium then refuses to
	   run smooth/programmatic scrolls entirely. The sideways-scroll guard
	   lives on #page below instead. */
	scroll-behavior: smooth;
}

#page {
	/* The page never scrolls sideways — wide content must live inside its
	   own scroller (.xc0df500b). clip (not hidden) keeps position:sticky
	   working for the header. */
	overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* Anchor targets land BELOW the sticky header instead of underneath it
   (header is ~92px: topbar + purple bar), with a little breathing room. */
[id] {
	scroll-margin-top: 116px;
}

body {
	background: var(--sn-bg);
	color: var(--sn-text);
	font-family: var(--sn-font);
	font-size: var(--sn-fs-md);
	line-height: var(--sn-lh-body);
}

/* letter-spacing is 0 and STAYS 0 — see the Thai typography rules in
   tokens.css. Negative tracking crashes Thai tone marks into their
   consonants just as badly as positive tracking detaches them. */
h1, h2, h3, h4, h5, h6 {
	color: var(--sn-heading);
	line-height: var(--sn-lh-heading);
	font-family: var(--sn-font-display);
	font-weight: 600;
	letter-spacing: 0;
	clear: both;
}

/* Kanit is a heavy geometric face — it carries weight, not size, so the
   display end runs a little smaller than the Latin skins and much bolder.
   800 is the hero weight; 600 does everything else. */
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 600; }
h3 { font-size: var(--sn-fs-lg); font-weight: 600; }

/* Section marker: a gold lozenge — a diamond is the base unit of the Thai
   "phum khao bin" motif, and it reads as ornament rather than as a bullet.
   It sits on a crimson stem so the mark carries both brand colours. */
.site-main h2 {
	position: relative;
	padding-left: var(--sn-sp-6);
}

.site-main h2::before {
	content: '';
	position: absolute;
	left: 1px;
	/* .62em, not .5em: Thai headings carry ascending vowel marks, so the
	   optical centre of the line sits lower than it does in Latin. */
	top: .62em;
	width: 11px;
	height: 11px;
	border-radius: 2px;
	transform: rotate(45deg);
	background: var(--sn-gold-grad);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--sn-accent) 55%, transparent);
}

/* Eyebrow label above section headings — Michael can drop it in a WYSIWYG as
   <p class="x9b6221b4">…</p> right before a heading.
   NO uppercase and NO letter-spacing (Thai rules 2 and 3): the Latin skins
   set both here, and on Thai the transform is a no-op while the tracking
   pulls tone marks off their consonants. Weight and colour do the work. */
.x9b6221b4 {
	margin: 0 0 var(--sn-sp-2);
	color: var(--sn-accent);
	font-family: var(--sn-font-display);
	font-size: var(--sn-fs-sm);
	font-weight: 600;
	letter-spacing: 0;
}

.x9b6221b4 + h2,
.x9b6221b4 + h3 {
	margin-top: 0;
}

/* Opening paragraph of a section — Michael can set it in a WYSIWYG as
   <p class="xe44b2929">…</p>. Body face, not the display face: Kanit at
   paragraph length is exhausting to read in Thai. */
.xe44b2929 {
	font-size: 1.25rem;
	line-height: 1.8;
	color: var(--sn-heading);
	font-weight: 400;
}

a {
	color: var(--sn-accent);
	text-decoration: none;
}

/* Hover goes to INK, not to the brand gold. The gold is a light colour on
   this skin (#F0B800 reads 2.8:1 on the paper), so the Latin skins' "hover to
   primary" rule turned every content link invisible the moment it was hovered.
   Anything that hovers on a LIGHT surface must darken, never brighten. */
a:hover,
a:focus {
	color: var(--sn-heading);
	text-decoration: underline;
}

a:visited {
	color: var(--sn-accent);
}

/* Links in RUNNING TEXT are underlined, not merely tinted. Measured: the link
   indigo #262678 and the body ink #333333 sit at a 1.02:1 luminance ratio, so
   colour alone leaves a link in a paragraph effectively invisible (WCAG 1.4.1).
   Component links opt out below — chips, cards, menus and the ToC carry their
   own affordance. */
/* :where() zeroes this rule's specificity on purpose, so ANY component rule
   (.xa2b3be35, .xf276fceb a, …) outranks it without a specificity arms race — the
   first version underlined the buttons. */
:where(.site-main p, .site-main li, .site-main td, .site-main th) a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: color-mix(in srgb, var(--sn-accent) 35%, transparent);
	transition: color .15s ease, text-decoration-color .15s ease;
}

:where(.site-main p, .site-main li) a:hover,
:where(.site-main p, .site-main li) a:focus {
	text-decoration-color: currentColor;
}

.xf276fceb a,
.xabe0eda7 a,
.xdb73a730 a,
.x9d6fca17 a,
.x95da63cc a,
.x16ec5079 a,
.x818657cb a,
.xa2b3be35 {
	text-decoration: none;
}

/* Keyboard focus: one visible ring everywhere instead of the browser default
   (which several components had suppressed). */
:focus-visible {
	outline: 2px solid var(--sn-primary);
	outline-offset: 3px;
}

/* Native controls inherit the brand. */
input,
select,
textarea {
	accent-color: var(--sn-primary);
	caret-color: var(--sn-primary);
}

img {
	max-width: 100%;
	height: auto;
}

/* Content lists: ONE compact hanging indent. Underscores ships
   `margin: 0 0 1.5em 3em` on top of the browser's ~40px padding-left —
   a double indent that wrecks lists inside callouts and flex layouts.
   Blocks that restyle their own lists (toc, faq, chips, sources…) set
   explicit margins/paddings with class selectors and are unaffected. */
ul,
ol {
	margin: 0 0 1.5em;
	padding-left: var(--sn-sp-6);
}

li > ul,
li > ol {
	margin: var(--sn-sp-1) 0 0;
}

::selection {
	background: var(--sn-accent);
	color: var(--sn-on-chrome);
}

/* ---------- Layout wrappers ---------- */

.xf2fc726b {
	width: 100%;
	max-width: var(--sn-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--sn-sp-4);
	padding-right: var(--sn-sp-4);
}

.xbffb8c3b {
	width: 100%;
	max-width: var(--sn-content);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--sn-sp-4);
	padding-right: var(--sn-sp-4);
}

@media (min-width: 768px) {
	.xf2fc726b,
	.xbffb8c3b {
		padding-left: var(--sn-sp-6);
		padding-right: var(--sn-sp-6);
	}
}

/* ---------- Buttons ---------- */

/* A glossy gold pill: gradient fill, a lighter inset top edge for the bevel,
   a gold glow, and a sheen that sweeps across on hover. This is the one place
   the skin is deliberately loud — a flat button reads as broken in this
   market, where every competing site ships a bevelled gradient CTA.
   NO letter-spacing (Thai rule 3). */
.xa2b3be35 {
	position: relative;
	overflow: hidden;
	display: inline-block;
	padding: var(--sn-sp-3) var(--sn-sp-8);
	border: 0;
	border-radius: var(--sn-radius-pill);
	background: var(--sn-gold-grad);
	/* Ink goes through a custom property so EVERY state reads one value.
	   A context that recolours the button (the gold band's paper pill) sets
	   --sn-btn-ink, never `color` — otherwise :visited below repaints it and
	   the label vanishes once the visitor comes back. */
	color: var(--sn-btn-ink, var(--sn-primary-dark));
	font-family: var(--sn-font-display);
	font-size: var(--sn-fs-sm);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .75),
		inset 0 -2px 0 rgba(0, 0, 0, .12),
		var(--sn-glow);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.xa2b3be35:hover,
.xa2b3be35:focus {
	transform: translateY(-2px);
	filter: saturate(1.08);
	color: var(--sn-btn-ink, var(--sn-primary-dark));
	text-decoration: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .75),
		inset 0 -2px 0 rgba(0, 0, 0, .12),
		0 10px 26px rgba(255, 203, 17, .55);
}

.xa2b3be35:visited {
	color: var(--sn-btn-ink, var(--sn-primary-dark));
}

/* The sheen sweep. ::before is the ONE pseudo-element on buttons — the
   casino CTA arrow uses ::after, so do not add a second ::before anywhere. */
.xa2b3be35::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 -60%;
	width: 55%;
	background: var(--sn-sheen);
	transform: skewX(-18deg);
	opacity: 0;
	pointer-events: none;
}

.xa2b3be35:hover::before,
.xa2b3be35:focus::before {
	animation: xa65a1c0a .65s ease-out;
}

@keyframes xa65a1c0a {
	from { left: -60%; opacity: 0; }
	20%  { opacity: 1; }
	to   { left: 130%; opacity: 0; }
}

/* Secondary action: outlined in ink, NOT in gold. Only conversion buttons
   are gold, so an in-content link-out never competes with the money CTA. */
.xe47e9cb9 {
	--sn-btn-ink: var(--sn-heading);
	background: transparent;
	box-shadow: inset 0 0 0 2px var(--sn-heading);
}

.xe47e9cb9:hover,
.xe47e9cb9:focus {
	--sn-btn-ink: var(--sn-primary-dark);
	filter: none;
	background: var(--sn-primary-tint);
	box-shadow: inset 0 0 0 2px var(--sn-heading);
}

.xe47e9cb9::before {
	display: none; /* no sheen on the quiet button */
}

/* LINE is the contact channel in Thailand the way email is in Europe — every
   reference site puts it first. Its brand green is fixed by LINE, so it is
   the one hardcoded colour in the theme; white on #06C755 reads 2.4:1, so the
   label is ink, not white. */
.x73c93f54 {
	--sn-btn-ink: #05320F;
	background: linear-gradient(170deg, #4BE08A 0%, #06C755 55%, #04A445 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .6),
		inset 0 -2px 0 rgba(0, 0, 0, .14),
		0 6px 18px rgba(6, 199, 85, .38);
}

.x73c93f54:hover,
.x73c93f54:focus {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .6),
		inset 0 -2px 0 rgba(0, 0, 0, .14),
		0 10px 24px rgba(6, 199, 85, .5);
}

/* ---------- Images (rendered by blocks) ---------- */

.x64ff3191 {
	display: block;
	border-radius: var(--sn-radius);
	height: auto;
	max-width: 100%;
}

/* ---------- Shared table base ---------- */
/* Table blocks wrap their <table class="xb5d99a4f"> in .xc0df500b — mandatory. */

/* A white card with a lacquer header band — the arrangement every Thai
   comparison table on the reference sites uses. The wrapper owns the frame
   and the radius so the header band can bleed to the card's edges. */
.xc0df500b {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--sn-surface);
	border: 1px solid var(--sn-border);
	border-radius: var(--sn-radius);
	box-shadow: var(--sn-shadow);
}

.xb5d99a4f {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: var(--sn-fs-sm);
}

.xb5d99a4f th,
.xb5d99a4f td {
	padding: var(--sn-sp-3) var(--sn-sp-4);
	border: 0;
	text-align: left;
	vertical-align: top;
}

/* Header band: lacquer with a gold underline. NO uppercase and NO
   letter-spacing (Thai rules 2 and 3) — the Latin skins set both here. */
.xb5d99a4f thead th {
	background: var(--sn-lacquer-grad);
	color: var(--sn-on-chrome);
	font-family: var(--sn-font-display);
	font-size: var(--sn-fs-xs);
	font-weight: 600;
	letter-spacing: 0;
	white-space: nowrap;
	border-bottom: 3px solid var(--sn-primary);
}

/* Zebra rows: Thai tables run long and dense, and a striped body is far
   easier to track across than hairlines alone. */
.xb5d99a4f tbody tr {
	background: transparent;
	transition: background .15s ease;
}

.xb5d99a4f tbody tr:nth-child(even) {
	background: color-mix(in srgb, var(--sn-surface-2) 45%, transparent);
}

.xb5d99a4f tbody td,
.xb5d99a4f tbody th {
	border-bottom: 1px solid color-mix(in srgb, var(--sn-border) 70%, transparent);
}

.xb5d99a4f tbody tr:last-child td,
.xb5d99a4f tbody tr:last-child th {
	border-bottom: 0;
}

.xb5d99a4f tbody tr:hover {
	background: var(--sn-primary-tint);
}

/* WYSIWYG tables (auto-wrapped by sterrennacht_wrap_naked_tables) usually
   keep their header cells in the first body row — style them like a thead. */
.xf99c066d tr:first-child th {
	background: var(--sn-lacquer-grad);
	color: var(--sn-on-chrome);
	font-family: var(--sn-font-display);
	font-size: var(--sn-fs-xs);
	font-weight: 600;
	letter-spacing: 0;
	white-space: nowrap;
	border-bottom: 3px solid var(--sn-primary);
}

.xf99c066d td {
	min-width: 120px; /* keeps pasted tables readable before the wrap scrolls */
}

/* ---------- Panels ---------- */

.x4df4e4ca {
	background: var(--sn-surface);
	border: 1px solid var(--sn-border);
	border-radius: var(--sn-radius);
	box-shadow: var(--sn-shadow);
	padding: var(--sn-sp-6);
}

@media (min-width: 768px) {
	.x4df4e4ca {
		padding: var(--sn-sp-8);
	}
}

/* ---------- Site header (T1) ---------- */

/* Lacquer chrome with a gold edge — the arrangement every Thai reference
   site uses, and the thing that makes the page read as in-market before a
   single word is understood. The whole header is dark, so the topbar
   compliance strip only has to go one shade deeper to separate. */
.xe429c336 {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--sn-lacquer-grad);
	border-bottom: 2px solid var(--sn-primary);
	box-shadow: 0 6px 24px rgba(11, 13, 20, .22);
}

.admin-bar .xe429c336 {
	top: 32px;
}

/* Reading progress — sits ON the header's bottom edge, so it covers nothing
   (assets/js/ui.js drives the scale; no JS = a 0-width, invisible bar). */
.xa5e0a533 {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	overflow: hidden;
	pointer-events: none;
}

.x1bb6a09a {
	display: block;
	width: 100%;
	height: 100%;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: var(--sn-primary);
	transition: transform .12s linear;
}

.xc910bf23 {
	background: var(--sn-purple-deep);
	border-bottom: 1px solid color-mix(in srgb, var(--sn-primary) 22%, transparent);
	font-size: var(--sn-fs-xs);
	color: color-mix(in srgb, var(--sn-on-chrome) 80%, transparent);
}

.xc61f8706 {
	display: flex;
	align-items: center;
	gap: var(--sn-sp-2);
	padding-top: var(--sn-sp-1);
	padding-bottom: var(--sn-sp-1);
}

/* The age badge lives on dark chrome here, so it takes the BRIGHT brand gold
   (11.9:1) rather than --sn-gold, which is the darkened amber meant for light
   surfaces and would read 2.2:1 against the lacquer. */
.x9dcf54a3 {
	display: inline-flex;
	align-items: center;
	padding: 0 var(--sn-sp-2);
	border: 1px solid var(--sn-primary);
	border-radius: var(--sn-radius-sm);
	color: var(--sn-primary);
	font-weight: 700;
}

.xdb99c1e3 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sn-sp-4);
	padding-top: var(--sn-sp-3);
	padding-bottom: var(--sn-sp-3);
}

.xfff33f19 {
	flex: 0 0 auto;
}

.x27ff49d0 {
	margin: 0;
	font-family: var(--sn-font-display);
	font-size: 1.5rem;
	font-weight: 800;
	white-space: nowrap;
}

/* Gold-foil wordmark: the gradient is painted through the glyphs. The
   `color` declaration is the fallback and must stay — background-clip:text
   leaves the text invisible anywhere the clip is unsupported. */
.x27ff49d0 a {
	color: var(--sn-primary);
	background: var(--sn-gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-decoration: none;
}

/* A gold lozenge instead of a full stop — a period reads as punctuation
   mid-sentence when the site name is Thai. */
.x27ff49d0::after {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 6px;
	border-radius: 2px;
	transform: rotate(45deg) translateY(-2px);
	background: var(--sn-accent);
}

.xe429c336 .custom-logo {
	max-height: 70px;
	width: auto;
}

.x2f3be9ae {
	position: relative;
	/* Underscores sets .main-navigation to width:100%; flex keeps the
	   hamburger pinned to the far right on mobile. */
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.xccb5e131 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--sn-sp-2);
	background: var(--sn-purple-tint);
	border: 1px solid color-mix(in srgb, var(--sn-primary) 45%, transparent);
	border-radius: var(--sn-radius-sm);
	color: var(--sn-primary);
	cursor: pointer;
}

.x2f3be9ae ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Mobile: dropdown panel (covers both wp_nav_menu ul and wp_page_menu div>ul).
   Lacquer, not white — the panel drops out of a dark header, and a white card
   there reads as a different site. */
.x2f3be9ae > ul,
.x2f3be9ae > div > ul {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + var(--sn-sp-2));
	min-width: 240px;
	padding: var(--sn-sp-2);
	background: var(--sn-purple-deep);
	border: 1px solid color-mix(in srgb, var(--sn-primary) 30%, transparent);
	border-radius: var(--sn-radius);
	box-shadow: 0 18px 40px rgba(11, 13, 20, .45);
}

.x2f3be9ae.toggled > ul,
.x2f3be9ae.toggled > div > ul {
	display: block;
}

/* Links are light on dark at EVERY breakpoint on this skin — the Latin
   skins flipped them at 768px because only their desktop bar was dark. */
.x2f3be9ae li a {
	display: block;
	padding: var(--sn-sp-2) var(--sn-sp-3);
	border-radius: var(--sn-radius-sm);
	color: color-mix(in srgb, var(--sn-on-chrome) 88%, transparent);
	font-family: var(--sn-font-display);
	font-size: var(--sn-fs-sm);
	font-weight: 600;
	text-decoration: none;
}

.x2f3be9ae li a:hover,
.x2f3be9ae li a:focus {
	background: var(--sn-purple-tint);
	color: var(--sn-primary);
	text-decoration: none;
}

.x2f3be9ae li.current-menu-item > a,
.x2f3be9ae li.current_page_item > a {
	color: var(--sn-primary);
}

/* Chevron on parent items (rotates up when open via .focus — navigation.js). */
.x2f3be9ae li.menu-item-has-children > a::after,
.x2f3be9ae li.page_item_has_children > a::after {
	content: '';
	display: inline-block;
	margin-left: var(--sn-sp-2);
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	padding: 2.5px;
	transform: translateY(-3px) rotate(45deg);
	transition: transform .15s ease;
}

.x2f3be9ae li.menu-item-has-children.focus > a::after,
.x2f3be9ae li.page_item_has_children.focus > a::after {
	transform: translateY(1px) rotate(225deg);
}

/* Mobile submenu: nested inline inside the white panel, indented, collapsed
   until the parent gets .focus (tap — handled by navigation.js/nav.js).
   Overrides underscores' absolute/-999em positioning. */
.x2f3be9ae ul ul {
	display: none;
	position: static;
	float: none;
	margin: var(--sn-sp-1) 0 var(--sn-sp-1) var(--sn-sp-3);
	padding: 0 0 0 var(--sn-sp-2);
	border-left: 2px solid color-mix(in srgb, var(--sn-primary) 35%, transparent);
	box-shadow: none;
}

.x2f3be9ae li.focus > ul {
	display: block;
	left: auto;
}

/* Underscores force-opens all nested uls when .toggled — collapse them back
   so the mobile submenu is a tap-to-expand accordion (chevron on parent). */
.x2f3be9ae.toggled ul ul {
	display: none;
}

.x2f3be9ae.toggled li.focus > ul {
	display: block;
}

.x2f3be9ae ul ul a {
	width: auto; /* underscores forces 200px */
	font-weight: 500;
}

@media (min-width: 768px) {
	.xccb5e131 {
		display: none;
	}

	.x2f3be9ae {
		justify-content: flex-start; /* Desktop: menu sits next to the logo. */
	}

	.x2f3be9ae > ul,
	.x2f3be9ae > div > ul {
		display: flex !important; /* Beat underscores' .main-navigation rules. */
		position: static;
		gap: var(--sn-sp-1);
		min-width: 0;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	/* Desktop: light links on the lacquer bar, gold underline on hover and
	   active. nowrap because Thai menu items are long and were breaking
	   across two lines. NO letter-spacing (Thai rule 3) — the Latin skins
	   set .02em here. */
	.x2f3be9ae li a {
		color: color-mix(in srgb, var(--sn-on-chrome) 88%, transparent);
		border-bottom: 2px solid transparent;
		border-radius: 0;
		white-space: nowrap;
		padding-left: 0;
		padding-right: 0;
		font-size: var(--sn-fs-sm);
		letter-spacing: 0;
	}

	.x2f3be9ae > ul,
	.x2f3be9ae > div > ul {
		gap: var(--sn-sp-6);
	}

	.x2f3be9ae li a:hover,
	.x2f3be9ae li a:focus {
		background: transparent;
		color: var(--sn-primary);
		border-bottom-color: var(--sn-primary);
	}

	.x2f3be9ae li.current-menu-item > a,
	.x2f3be9ae li.current_page_item > a {
		color: var(--sn-primary);
		border-bottom-color: var(--sn-primary);
	}

	/* Desktop dropdown: lacquer card under the parent item. Opens on hover,
	   keyboard focus, or click (.focus via nav.js). */
	.x2f3be9ae ul ul {
		display: none;
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		min-width: 240px;
		margin: 0;
		padding: var(--sn-sp-2);
		background: var(--sn-purple-deep);
		border: 1px solid color-mix(in srgb, var(--sn-primary) 30%, transparent);
		border-radius: var(--sn-radius);
		box-shadow: 0 18px 40px rgba(11, 13, 20, .45);
	}

	/* Invisible bridge so the pointer can cross the gap without closing. */
	.x2f3be9ae ul ul::before {
		content: '';
		position: absolute;
		top: -12px;
		left: 0;
		right: 0;
		height: 12px;
	}

	.x2f3be9ae li:hover > ul,
	.x2f3be9ae li:focus-within > ul,
	.x2f3be9ae li.focus > ul {
		display: block;
		left: 0;
	}

	/* Dropdown links sit on a lacquer card — the border-bottom underline the
	   top-level bar uses would look like a rule inside a list, so reset it
	   and let the tinted row carry the hover instead. */
	.x2f3be9ae ul ul li a {
		border-bottom-color: transparent;
		white-space: normal;
	}

	.x2f3be9ae ul ul li a:hover,
	.x2f3be9ae ul ul li a:focus {
		background: var(--sn-purple-tint);
		border-bottom-color: transparent;
		color: var(--sn-primary);
	}

	.x2f3be9ae ul ul li.current-menu-item > a,
	.x2f3be9ae ul ul li.current_page_item > a {
		border-bottom-color: transparent;
		color: var(--sn-primary);
	}

	/* Chevron opens on hover too. */
	.x2f3be9ae li.menu-item-has-children:hover > a::after,
	.x2f3be9ae li.page_item_has_children:hover > a::after {
		transform: translateY(1px) rotate(225deg);
	}
}

/* ---------- Site footer (T2) — "Blue Ribbon" ---------- */
/* Deep indigo deck under a curved top edge (mirrors the hero's bottom arc):
   brand | two menus | the responsible-gambling CARD, then a slim bottom bar. */

.x4925731e {
	position: relative;
	margin-top: var(--sn-sp-16);
	background: var(--sn-purple-deep);
	color: color-mix(in srgb, var(--sn-on-chrome) 62%, transparent);
	font-size: var(--sn-fs-sm);
	border-top: 4px solid transparent;
	/* A gold FOIL edge rather than a flat gold rule: two backgrounds, the
	   gradient painted into the border box only. */
	border-image: var(--sn-gold-grad) 1;
}


/* Row 1: the four-column deck. */
.x3e775b7a {
	display: grid;
	gap: var(--sn-sp-8);
	padding: var(--sn-sp-12) 0 var(--sn-sp-8);
}

.xcf4699a4 {
	margin: 0 0 var(--sn-sp-3);
	color: var(--sn-on-chrome);
	font-family: var(--sn-font-display);
	font-size: var(--sn-fs-lg);
	font-weight: 800;
	letter-spacing: 0;
}

/* Gold lozenge, matching the header wordmark — not a full stop, which reads
   as punctuation when the site name is Thai. */
.xcf4699a4::after {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 6px;
	border-radius: 2px;
	transform: rotate(45deg) translateY(-3px);
	background: var(--sn-gold-grad);
}

.x89045f84 {
	margin: 0;
	max-width: 42ch;
}

.x3e775b7a > * {
	min-width: 0; /* grid children must be allowed to shrink below content */
}

/* Both menus live in one grid cell (see the 1024px rule). */
.x4996bd42 {
	display: flex;
	flex-direction: column;
	gap: var(--sn-sp-8);
}

.xc7936cee {
	min-width: 0;
	flex: 1 1 auto;
}

/* NO uppercase and NO letter-spacing (Thai rules 2 and 3). Size and weight
   separate the column heading from its list instead. */
.x2340fc66 {
	margin: 0 0 var(--sn-sp-4);
	color: var(--sn-primary);
	font-family: var(--sn-font-display);
	font-weight: 600;
	letter-spacing: 0;
	font-size: var(--sn-fs-sm);
}

.xabd92bd6 {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--sn-sp-3);
}

.xabd92bd6 a {
	color: color-mix(in srgb, var(--sn-on-chrome) 62%, transparent);
	text-decoration: none;
	transition: color .15s ease, padding-left .15s ease;
}

.xabd92bd6 a:hover,
.xabd92bd6 a:focus {
	color: var(--sn-on-chrome);
	padding-left: var(--sn-sp-2);
	text-decoration: none;
}

/* The compliance card — sits in the deck, not in a strip below it. */
.x6db409eb {
	display: flex;
	flex-direction: column;
	gap: var(--sn-sp-4);
	padding: var(--sn-sp-6);
	background: color-mix(in srgb, var(--sn-on-chrome) 6%, transparent);
	border: 1px solid color-mix(in srgb, var(--sn-on-chrome) 12%, transparent);
	border-left: 3px solid var(--sn-primary);
	border-radius: var(--sn-radius);
}

.x2d00c332 {
	display: flex;
	align-items: flex-start;
	gap: var(--sn-sp-3);
}

.x2d00c332 p {
	margin: 0;
	color: color-mix(in srgb, var(--sn-on-chrome) 86%, transparent);
}

.x1b3031c3 {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--sn-sp-2);
	margin: 0;
	padding: 0;
}

/* Outlined chips — deliberately NOT the action colour (compliance links
   are informational, CLAUDE.md §7). */
.x1b3031c3 a {
	display: inline-block;
	padding: var(--sn-sp-1) var(--sn-sp-3);
	border: 1px solid color-mix(in srgb, var(--sn-on-chrome) 28%, transparent);
	border-radius: var(--sn-radius-pill);
	color: color-mix(in srgb, var(--sn-on-chrome) 80%, transparent);
	font-size: var(--sn-fs-xs);
	font-weight: 600;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.x1b3031c3 a:hover,
.x1b3031c3 a:focus {
	background: color-mix(in srgb, var(--sn-on-chrome) 8%, transparent);
	border-color: color-mix(in srgb, var(--sn-on-chrome) 65%, transparent);
	color: var(--sn-on-chrome);
	text-decoration: none;
}

/* Row 2: copyright + disclosure. */
.xa5ed6151 {
	display: flex;
	flex-direction: column;
	gap: var(--sn-sp-2);
	padding: var(--sn-sp-6) 0;
	border-top: 1px solid color-mix(in srgb, var(--sn-on-chrome) 10%, transparent);
	font-size: var(--sn-fs-xs);
	/* 45% read 3.93:1 on the ink footer — below AA for 13px copyright and
	   affiliate-disclosure text, which is exactly the text that must be
	   readable. 58% reads 5.54. */
	color: color-mix(in srgb, var(--sn-on-chrome) 58%, transparent);
}

.xe992b11a,
.x0668c953 {
	margin: 0;
}

@media (min-width: 768px) {
	.x3e775b7a {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--sn-sp-8) var(--sn-sp-12);
	}

	.x4996bd42 {
		flex-direction: row;
		gap: var(--sn-sp-12);
	}

	.xa5ed6151 {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: var(--sn-sp-8);
	}

	.x0668c953 {
		text-align: right;
		max-width: 62ch;
	}
}

@media (min-width: 1024px) {
	/* Exactly three columns — brand, the menu cell, the compliance card. The
	   menus share ONE cell so an unassigned menu location cannot change the
	   column count and squash the brand text. */
	.x3e775b7a {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.6fr) minmax(250px, 1.3fr);
		gap: var(--sn-sp-12);
		padding-top: var(--sn-sp-16);
	}
}

/* ---------- Scroll reveal ---------- */
/* COMPLIANCE BY CONSTRUCTION: the hidden state exists ONLY under .x61766684,
   which assets/js/reveal.js adds after its prefers-reduced-motion check, and
   only for blocks still below the fold. No JS = nothing is ever hidden. */

.x61766684 .xdf8cf431 {
	opacity: 0;
	transform: translateY(14px);
}

.x61766684 .xdf8cf431.is-inview {
	opacity: 1;
	transform: none;
	transition: opacity .5s ease, transform .5s ease;
}

@media (prefers-reduced-motion: reduce) {
	.x61766684 .xdf8cf431,
	.x61766684 .xdf8cf431.is-inview {
		opacity: 1;
		transform: none;
		transition: none;
	}

	/* Decorative motion off: the progress bar and the button sheen carry no
	   information, so they simply disappear. */
	.xa5e0a533 {
		display: none;
	}

	.xa2b3be35::before {
		display: none;
	}
}

/* ---------- Atmosphere ---------- */

/* A flat page fill reads dead under a glossy header. Two soft washes — gold
   from the top, a faint crimson from the right — give the paper depth without
   putting anything behind the text. Fixed attachment so it does not scroll
   with the content and turn into a visible band.
   It hangs off BODY, not #page: #page carries overflow-x:clip, and a clip
   container can clip a fixed-position descendant. */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(70rem 34rem at 50% -8rem, rgba(255, 203, 17, .16), transparent 70%),
		radial-gradient(48rem 48rem at 108% 22%, rgba(193, 18, 31, .06), transparent 70%);
}

/* ---------- Utilities ---------- */

/* Soft arc on the bottom edge of a full-bleed band — used by the hero and
   the CTA band to close a lacquer section against the paper. */
.xfe1135f4 {
	border-bottom-left-radius: 50% 40px;
	border-bottom-right-radius: 50% 40px;
}

/* Thai ornament divider — a row of gold lozenges on a fading rule, echoing
   the "phum khao bin" diamond that marks every h2. Drop <hr class="x6ec68bb9">
   or <div class="x6ec68bb9"></div> between sections. Decorative only, so it is
   hidden from assistive tech by being empty and unlabelled. */
.x6ec68bb9 {
	position: relative;
	height: 1px;
	margin: var(--sn-sp-12) auto;
	border: 0;
	background: linear-gradient(90deg, transparent, var(--sn-border) 25%, var(--sn-border) 75%, transparent);
}

.x6ec68bb9::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 9px;
	height: 9px;
	border-radius: 2px;
	transform: translate(-50%, -50%) rotate(45deg);
	background: var(--sn-gold-grad);
	box-shadow:
		-18px 0 0 -2px var(--sn-accent),
		 18px 0 0 -2px var(--sn-accent);
}

.x96bf1300 {
	color: var(--sn-text-muted);
	font-size: var(--sn-fs-sm);
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
