/*
 * 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 {
	/* Tells the browser this is a dark UI: native selects, number spinners,
	   scrollbars and form controls render dark instead of painting a white
	   slab into the page. Without it the payout calculator's inputs are the
	   only light rectangles on the site. */
	color-scheme: dark;

	/* 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 (.x547cc97e). 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);
	/* Same Thai wrapping rule as the headings — long unbroken Thai runs in
	   paragraphs, table cells and chips overflow their box otherwise. */
	overflow-wrap: break-word;
}

/* 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;
	/* THAI WRAPPING, as a safety net. Thai writes without spaces between words,
	   so any run an author does not break is ONE unbreakable "word" to the
	   layout engine — in a narrow box (a phone headline, a table cell, a chip)
	   it overflows instead of wrapping. Browsers break between grapheme
	   clusters, so tone marks stay attached to their consonants.
	   NOTE: prevention, not a fix for an observed break — the current copy
	   wraps at its spaces. Do not delete it on the grounds that nothing is
	   visibly broken. */
	overflow-wrap: break-word;
}

/* Bai Jamjuree is a squared, technical face — it carries weight, not size.
   700 is the hero weight and the CEILING: the face ships no 800, so asking
   for one gets a synthesised fake-bold. 600 does everything else. */
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; }
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 neon dot inside a soft cyan halo — a lit point, which is
   this skin's ornament the way the gold lozenge was the other Thai site's.
   Deliberately a CIRCLE, not the "phum khao bin" diamond: the two sites must
   not share a mark. */
.site-main h2 {
	position: relative;
	padding-left: var(--sn-sp-6);
}

.site-main h2::before {
	content: '';
	position: absolute;
	left: 2px;
	/* .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: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sn-primary);
	box-shadow:
		0 0 0 4px color-mix(in srgb, var(--sn-primary) 18%, transparent),
		0 0 14px color-mix(in srgb, var(--sn-primary) 70%, transparent);
}

/* Eyebrow label above section headings — Michael can drop it in a WYSIWYG as
   <p class="x7c104d73">…</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. */
.x7c104d73 {
	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;
}

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

/* Opening paragraph of a section — Michael can set it in a WYSIWYG as
   <p class="x77780aa4">…</p>. Body face, not the display face: a squared display
   face at paragraph length is exhausting to read in Thai. */
.x77780aa4 {
	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 --sn-heading, which on THIS skin is white — i.e. the hover
   BRIGHTENS. That is the opposite of the rule the light skins carried, and the
   declaration is identical only because both resolve to "the highest-contrast
   ink on this page". Anything that hovers on a DARK surface must brighten;
   darkening a link here would repeat the invisible-hover bug in mirror image. */
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
   (.x470aa652, .xbae006a4 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;
}

.xbae006a4 a,
.x382d0511 a,
.x701ea869 a,
.x1f95ab7c a,
.x20361d7b a,
.xca49f9dd a,
.x73e5e7d7 a,
.x470aa652 {
	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 takes the CYAN, not the magenta: near-white on the accent reads
   2.5:1, which is unreadable exactly while the visitor is dragging over it. */
::selection {
	background: var(--sn-primary);
	color: var(--sn-primary-dark);
}

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

.xe47df07c {
	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);
}

.xdced0977 {
	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) {
	.xe47df07c,
	.xdced0977 {
		padding-left: var(--sn-sp-6);
		padding-right: var(--sn-sp-6);
	}
}

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

/* A glossy cyan pill: gradient fill, a lighter inset top edge for the bevel,
   a neon 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). */
.x470aa652 {
	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;
	/* The halo ring is what makes a button read as THE action on a dark page:
	   a glow alone dissipates, a ring holds an edge. Contexts that repaint the
	   button (the cyan CTA band, the outlined casino buttons, --ghost) replace
	   this whole box-shadow, so the ring never lands on a surface it would
	   fight. */
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .75),
		inset 0 -2px 0 rgba(0, 0, 0, .12),
		0 0 0 4px color-mix(in srgb, var(--sn-primary) 15%, transparent),
		var(--sn-glow);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.x470aa652:hover,
.x470aa652: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 0 0 7px color-mix(in srgb, var(--sn-primary) 18%, transparent),
		0 10px 30px rgba(43, 217, 230, .55),
		0 0 40px rgba(43, 217, 230, .35);
}

.x470aa652: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. */
.x470aa652::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 -60%;
	width: 55%;
	background: var(--sn-sheen);
	transform: skewX(-18deg);
	opacity: 0;
	pointer-events: none;
}

.x470aa652:hover::before,
.x470aa652:focus::before {
	animation: x153d480b .65s ease-out;
}

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

/* Secondary action: outlined in ink, NOT in cyan. Only conversion buttons are
   cyan, so an in-content link-out never competes with the money CTA.
   HOVER INK IS THE POINT OF FAILURE HERE. The light skins swapped it to
   --sn-primary-dark, which on this skin is near-black ink — printed on a
   14%-cyan tint over a night page that is roughly 1.3:1, i.e. an invisible
   label. The outline and the ink both go cyan instead. */
.xcd46a013 {
	--sn-btn-ink: var(--sn-heading);
	background: transparent;
	box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sn-heading) 55%, transparent);
}

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

.xcd46a013::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. */
.x6884daba {
	--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);
}

.x6884daba:hover,
.x6884daba: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) ---------- */

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

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

/* A glass card with a LIGHTER header band. On the light skins the band was
   the lacquer gradient — a dark bar on a white card. Inverted here that bar
   would be darker than the card and read as a gap, so the band uses
   --sn-band-grad (see tokens.css) and the cyan underline carries the accent.
   The wrapper owns the frame and the radius so the band can bleed to the
   card's edges; the inset top highlight is the glass edge. */
.x547cc97e {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--sn-surface);
	border: 1px solid var(--sn-border);
	border-radius: var(--sn-radius);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--sn-shadow);
}

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

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

/* Header band: a lifted slate band with a cyan underline. NO uppercase and NO
   letter-spacing (Thai rules 2 and 3) — the Latin skins set both here. */
.x8e9dce1e thead th {
	background: var(--sn-band-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. */
.x8e9dce1e tbody tr {
	background: transparent;
	transition: background .15s ease;
}

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

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

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

.x8e9dce1e 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. */
.xd637619a tr:first-child th {
	background: var(--sn-band-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);
}

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

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

/* Glass card: the 1px inset highlight along the top edge is what makes a
   panel read as a lit surface rather than a flat grey rectangle on a dark
   page. Every card-like surface in the theme carries it. */
.x999ae728 {
	background: var(--sn-surface);
	border: 1px solid var(--sn-border);
	border-radius: var(--sn-radius);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--sn-shadow);
	padding: var(--sn-sp-6);
}

@media (min-width: 768px) {
	.x999ae728 {
		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. */
.x5f46a6cb {
	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 .x5f46a6cb {
	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). */
.xa5e1ac6b {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	overflow: hidden;
	pointer-events: none;
}

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

.x957b8e2b {
	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);
}

.x47be934c {
	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. */
.x662008e4 {
	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;
}

.x48bdf4b1 {
	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);
}

.xcd3e9c9f {
	/* SHRINKABLE. A wide custom logo (this site ships a 980x210 wordmark) used
	   to hold the row at its natural width and push the mobile hamburger off
	   the screen entirely — there was no way to open the menu on a phone. */
	flex: 0 1 auto;
	min-width: 0;
}

.xb75f35fa {
	margin: 0;
	font-family: var(--sn-font-display);
	font-size: 1.5rem;
	font-weight: 700;
	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. */
.xb75f35fa 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 lit magenta dot instead of a full stop — a period reads as punctuation
   mid-sentence when the site name is Thai. Same mark as the h2 marker, in the
   accent colour. */
.xb75f35fa::after {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 7px;
	border-radius: 50%;
	transform: translateY(-2px);
	background: var(--sn-accent);
	box-shadow: 0 0 10px color-mix(in srgb, var(--sn-accent) 80%, transparent);
}

.x5f46a6cb .custom-logo {
	max-height: 70px;
	max-width: 100%;
	width: auto;
	height: auto;
}

/* Phones: cap the wordmark so the row always has room for the hamburger. */
@media (max-width: 767px) {
	.x5f46a6cb .custom-logo {
		max-height: 44px;
	}
}

.x2285c98d {
	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;
}

.x5e1cfb44 {
	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;
}

.x2285c98d 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. */
.x2285c98d > ul,
.x2285c98d > 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);
}

.x2285c98d.toggled > ul,
.x2285c98d.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. */
.x2285c98d 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;
}

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

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

/* Chevron on parent items (rotates up when open via .focus — navigation.js). */
.x2285c98d li.menu-item-has-children > a::after,
.x2285c98d 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;
}

.x2285c98d li.menu-item-has-children.focus > a::after,
.x2285c98d 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. */
.x2285c98d 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;
}

.x2285c98d 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). */
.x2285c98d.toggled ul ul {
	display: none;
}

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

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

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

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

	.x2285c98d > ul,
	.x2285c98d > 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. */
	.x2285c98d 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;
	}

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

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

	.x2285c98d li.current-menu-item > a,
	.x2285c98d 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). */
	.x2285c98d 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. */
	.x2285c98d ul ul::before {
		content: '';
		position: absolute;
		top: -12px;
		left: 0;
		right: 0;
		height: 12px;
	}

	.x2285c98d li:hover > ul,
	.x2285c98d li:focus-within > ul,
	.x2285c98d 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. */
	.x2285c98d ul ul li a {
		border-bottom-color: transparent;
		white-space: normal;
	}

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

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

	/* Chevron opens on hover too. */
	.x2285c98d li.menu-item-has-children:hover > a::after,
	.x2285c98d 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. */

.x5b913bab {
	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. */
.x4a1cc4be {
	display: grid;
	gap: var(--sn-sp-8);
	padding: var(--sn-sp-12) 0 var(--sn-sp-8);
}

.xca7b63b9 {
	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: 700;
	letter-spacing: 0;
}

/* Lit dot, matching the header wordmark — not a full stop, which reads as
   punctuation when the site name is Thai. */
.xca7b63b9::after {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 7px;
	border-radius: 50%;
	transform: translateY(-3px);
	background: var(--sn-accent);
	box-shadow: 0 0 10px color-mix(in srgb, var(--sn-accent) 80%, transparent);
}

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

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

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

.x0f20b933 {
	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. */
.xed854c92 {
	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);
}

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

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

.xc6239e38 a:hover,
.xc6239e38 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. */
.xc0d6ae81 {
	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);
}

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

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

.x881eb815 {
	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). */
.x881eb815 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;
}

.x881eb815 a:hover,
.x881eb815 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. */
.x67e37ef5 {
	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);
}

.x7fae8b7f,
.x2c27ce31 {
	margin: 0;
}

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

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

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

	.x2c27ce31 {
		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. */
	.x4a1cc4be {
		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 .x2ad87861,
   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. */

.x2ad87861 .xa179a4e1 {
	opacity: 0;
	transform: translateY(14px);
}

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

@media (prefers-reduced-motion: reduce) {
	.x2ad87861 .xa179a4e1,
	.x2ad87861 .xa179a4e1.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. */
	.xa5e1ac6b {
		display: none;
	}

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

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

/* A flat night fill reads dead. Two soft blooms — cyan from the top, magenta
   low on the right — plus the neon grid give the page 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.
   The grid sits at 45% opacity here: at full strength it competes with the
   panels that use it as their own material. */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: .45;
	background:
		radial-gradient(70rem 36rem at 50% -10rem, rgba(43, 217, 230, .22), transparent 70%),
		radial-gradient(52rem 52rem at 106% 78%, rgba(255, 116, 176, .12), transparent 70%),
		var(--sn-grid);
}

/* ---------- 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. */
.xc4d39bae {
	border-bottom-left-radius: 50% 40px;
	border-bottom-right-radius: 50% 40px;
}

/* Ornament divider — three lit dots on a fading rule, echoing the neon dot
   that marks every h2. Drop <hr class="xc06cb209"> or <div class="xc06cb209"></div>
   between sections. Decorative only, so it is hidden from assistive tech by
   being empty and unlabelled. */
.xc06cb209 {
	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);
}

.xc06cb209::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: var(--sn-primary);
	box-shadow:
		0 0 12px color-mix(in srgb, var(--sn-primary) 75%, transparent),
		-20px 0 0 -2px var(--sn-accent),
		 20px 0 0 -2px var(--sn-accent);
}

.xce91754d {
	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;
}
