/* =========================================================================
   royale-giris-az.net — «Perqament & Gavalı» design layer  (LIGHT)
   =========================================================================

   Forked from the 64th build's stylesheet, which is the first in this network
   written as a SINGLE layer: an audit before the fork found zero hex literals
   below :root and eighteen rgba() literals in 2 068 lines. So this re-skin is
   arithmetic, not a search — the identity lives in the block below and nowhere
   else, and every selector still appears exactly once.

   Reading order:
     0. Tokens                     — the palette, mapped once from theme.json
     1. Base canvas + typography   — prose rhythm, figures, links
     2. The signature: QALXAN      — the plate device, defined once and reused
     3. Chrome                     — header, trust bar, footer, sticky, modals
     4. Sections                   — hero, TOC, steps, offer, tables, FAQ …
     5. State matrix               — hover / focus / active / disabled
     6. Accessibility + responsive — tap targets, 360/768/1024/1440, motion

   WHY LIGHT, AND WHY THIS LIGHT. The sheet asked for «Slate & Amber ·
   #F2F4F7 / #D98A0B», which is a two-site clone (royale-canli, royale-gold)
   sitting in the second most crowded accent lane in the network (h30–44, 23
   sites). A bucket scan of all 67 theme palettes returned exactly one empty
   pale-field lane — h75–89 — and an empty mid-accent lane at h270–284. This
   palette is those two gaps: a chartreuse-cast PARCHMENT field and a DAMSON
   plum accent, with a plum-cast graphite for the ink so text and accent share
   a cast instead of colliding.

   CONTRAST CONTRACT (measured, not assumed — every pair below is >= 4.5:1):
     on --ink / --ink-deep / --panel / --panel-raised / --damson-tint /
     --clay-tint : ink, prose, muted, dim, damson, damson-deep, moss, clay,
                   figure  (the whole ink set is safe on the whole ground set —
                   dim and clay were darkened until that was true, so no rule
                   here has to remember an exception)
     on --damson fill      : vellum, paper, panel  (8.7:1+)
     on --damson-deep fill : vellum, paper, panel  (12:1+)
     on --moss fill        : vellum, paper, panel  (6.0:1+)
     on --clay fill        : vellum, paper, panel  (4.6:1+)
   --edge, --edge-lit and --damson-line are DECOR borders and never carry text
   nor state. --edge-strong is the only border that meets 3:1 on paper, so it
   is the one every CONTROL outline uses.
   ========================================================================= */

/* ---- 0. Tokens ---------------------------------------------------------- */
:root {
	--paper: #f1f4eb;
	--paper-deep: #e5e9dd;
	--panel: #f8faf4;
	--panel-raised: #ffffff;
	--edge: #d3d8ca;
	--edge-lit: #b9c0ac;
	--edge-strong: #7a8665;
	--ink: #261e29;
	--prose: #453b4a;
	--muted: #5a4d60;
	--dim: #6e6374;
	--damson: #612a84;
	--damson-line: #bda2cd;
	--damson-deep: #451a61;
	--damson-tint: #efe5f5;
	--vellum: #f8f5fa;
	--figure: #3b2f45;
	--moss: #446534;
	--moss-line: #6f9159;
	--clay: #995629;
	--clay-tint: #f7e9dc;

	--panel-grad: linear-gradient(178deg, #ffffff 0%, #f5f8f0 100%);
	--panel-raised-grad: linear-gradient(178deg, #ffffff 0%, #fbfcf8 100%);
	--damson-grad: linear-gradient(158deg, #6d3193 0%, #612a84 52%, #451a61 100%);
	--damson-deep-grad: linear-gradient(150deg, #512071 0%, #38134f 100%);

	/* The radius ramp is a SOFT EDITORIAL 6/4: the three siblings around this row
	   run 0, 3/2 and 14/999, so the corner alone separates four builds. */
	--r-plate: 6px;
	--r-ctl: 4px;

	/* QALXAN geometry, stated once so the mark, the plate and the divider are
	   provably the same drawing at three scales. */
	--sig-chief: 5px;
	--sig-point: 9px;
	--sig-half: 13px;

	--tap: 44px;
	--ease: cubic-bezier(.2, .6, .3, 1);
}

/* ---- 1. Base canvas + typography --------------------------------------- */
html {
	scroll-behavior: smooth;
	/* Every in-page target on a one-pager sits under a 62px sticky header. */
	scroll-padding-top: 78px;
}

body {
	background: var(--paper);
	color: var(--prose);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* Alegreya ships OLD-STYLE figures by default; it has `lnum`, so «550 AZN»
	   and «2026» set at cap height instead of dancing across the baseline. */
	font-variant-numeric: lining-nums;
}

/* A quiet tobacco wash so the page is not a flat black rectangle. Two very low
   alpha radials — no image, no request, and both stops are on the field hue so
   nothing here can shift a measured contrast ratio. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(70rem 40rem at 78% -8%, rgba(97, 42, 132, .055), transparent 62%),
		radial-gradient(58rem 34rem at 8% 108%, rgba(68, 101, 52, .045), transparent 60%);
}

/* The template gives <main> an ID, not a class, so the class rule this replaces had
   never matched anything on any page. */
#rgz-main {
	display: block;
	min-height: 40vh;
}

/* Prose rhythm. Nothing below 15px anywhere on the site. */
p {
	margin: 0 0 1.05em;
	max-width: 74ch;
}

p:last-child {
	margin-bottom: 0;
}

/* The mono face carries FIGURES ONLY — never an uppercase Azerbaijani label.
   That is a structural rule, not a preference: the mono slot is where ə/Ə is
   most often missing or drawn as the wrong outline, and digits contain no
   schwa, so the risk disappears instead of needing an audit each build. */
.rgz-num,
.rgz-fact__val,
.rgz-offer__amount,
.rgz-meter__val,
.rgz-toc__num,
.rgz-steps__num {
	font-family: "Intel One Mono", ui-monospace, Consolas, "Courier New", monospace;
	font-variant-numeric: lining-nums tabular-nums;
	letter-spacing: -.01em;
	color: var(--figure);
}

/* Section rhythm on a long single document: generous, and identical for every
   anchor target so the scroll never feels uneven. */
.rgz-sec {
	padding-block: clamp(46px, 6vw, 84px);
	scroll-margin-top: 78px;
}

.rgz-sec + .rgz-sec {
	border-top: 1px solid rgba(211, 216, 202, .9);
}

/* Eyebrow: small caps label above a heading. Display face, never the mono. */
.rgz-eyebrow {
	display: inline-block;
	margin: 0 0 10px;
	font-family: "Encode Sans", system-ui, sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}

.rgz-eyebrow::after {
	content: "";
	display: inline-block;
	width: 24px;
	height: 1px;
	margin-left: 10px;
	vertical-align: .32em;
	background: var(--edge-lit);
}

/* The citable opening passage: definition -> offer -> CTA, in one paragraph an
   answer engine can lift whole. Slightly larger and lighter than body prose. */
.rgz-lede {
	font-size: clamp(18px, 2.1vw, 21px);
	line-height: 1.62;
	color: var(--ink);
	max-width: 68ch;
}

/* ---- 2. THE SIGNATURE: QALXAN ------------------------------------------ */
/*
   Heraldry has one idea a rectangle can borrow whole: a shield is a field with
   a CHIEF across the top and a POINT at the base. So every panel on this site
   carries a damson chief band on its top edge and a small chevron rising from
   the middle of its bottom edge — the two together read as a shield without
   the panel ever having to be shield-shaped.

   Why not cut the corners: the network already spends that axis. Chamfers,
   side bites, keyway notches, milled rims, petal radii and squircle notches
   are all taken, and the 64th build took «a rule laid on the top edge». This
   one keeps the rectangle and gives it a top AND a bottom, which is the only
   unused half of that idea.

   The chevron points INWARD (it sits on the bottom edge, inside the box) so
   the device can never add to the element's box and cannot be clipped by a
   grid gap — the failure mode a hanging pennant would have had.
*/
.rgz-plate {
	position: relative;
	background: var(--panel-grad);
	border: 1px solid var(--edge);
	border-radius: var(--r-plate);
	padding: 30px 24px 28px;
}

.rgz-plate::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--sig-chief);
	background: var(--damson-grad);
	border-radius: var(--r-plate) var(--r-plate) 0 0;
	pointer-events: none;
}

.rgz-plate::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: var(--sig-half) solid transparent;
	border-right: var(--sig-half) solid transparent;
	border-bottom: var(--sig-point) solid var(--damson-line);
	pointer-events: none;
}

.rgz-plate--raised {
	background: var(--panel-raised-grad);
	border-color: var(--edge-lit);
	box-shadow: 0 10px 26px rgba(38, 30, 41, .07);
}

/* A quiet variant for secondary panels: the chief drops to the pale accent so
   the device reads as one family at two volumes. */
.rgz-plate--quiet::before {
	background: var(--damson-line);
}

.rgz-plate--quiet::after {
	border-bottom-color: var(--edge-lit);
}

/* The same drawing as a standalone section divider: a chief with its point. */
.rgz-rule {
	position: relative;
	height: calc(var(--sig-chief) + var(--sig-point));
	margin: 6px 0 22px;
	max-width: 168px;
}

.rgz-rule::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: var(--sig-chief);
	background: var(--damson-grad);
	border-radius: 2px;
}

.rgz-rule::after {
	content: "";
	position: absolute;
	top: var(--sig-chief);
	left: 22px;
	width: 0;
	height: 0;
	border-left: var(--sig-half) solid transparent;
	border-right: var(--sig-half) solid transparent;
	border-top: var(--sig-point) solid var(--damson-line);
}

/* ---- 3. Chrome ---------------------------------------------------------- */
/* 3a. Skip link */
.rgz-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--ink);
	color: var(--vellum);
	font-weight: 700;
	border-radius: var(--r-ctl);
}

.rgz-skip-link:focus,
.rgz-skip-link:focus-visible {
	left: 12px;
	top: 12px;
	outline: 3px solid var(--damson);
	outline-offset: 2px;
}

/* 3b. Header */
.rgz-head {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(241, 244, 235, .93);
	backdrop-filter: blur(9px);
	border-bottom: 1px solid var(--edge);
}

.rgz-head__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 11px 20px;
	min-height: 62px;
}

.rgz-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	flex: 0 0 auto;
}

.rgz-brand:hover,
.rgz-brand:focus-visible {
	text-decoration: none;
}

.rgz-mark {
	display: block;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
}

.rgz-wordmark {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.rgz-wordmark__name {
	font-family: "Alegreya", Georgia, serif;
	font-size: 21px;
	letter-spacing: -.012em;
	color: var(--ink);
}

.rgz-wordmark__sub {
	margin-top: 3px;
	font-family: "Intel One Mono", ui-monospace, monospace;
	font-size: 10px;
	letter-spacing: .26em;
	color: var(--muted);
}

.rgz-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	flex-wrap: wrap;
}

.rgz-nav a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	padding: 8px 11px;
	font-size: 15px;
	color: var(--prose);
	text-decoration: none;
	border-radius: var(--r-ctl);
	border: 1px solid transparent;
}

.rgz-nav a:hover {
	color: var(--ink);
	border-color: var(--edge);
	background: rgba(255, 255, 255, .78);
}

.rgz-head__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--tap);
	padding: 10px 20px;
	background: var(--damson-grad);
	color: var(--vellum);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .02em;
	text-decoration: none;
	border-radius: var(--r-ctl);
	border: 1px solid var(--damson);
	flex: 0 0 auto;
}

.rgz-head__cta:hover {
	color: var(--vellum);
	background: var(--ink);
	text-decoration: none;
}

/* 3c. Trust bar — licence № / 18+ / RG. Figures in mono, labels in the sans. */
.rgz-trust {
	border-bottom: 1px solid var(--edge);
	background: rgba(248, 250, 244, .74);
}

.rgz-trust__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 9px 20px;
	font-size: 13px;
	color: var(--muted);
}

.rgz-trust__seg {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.rgz-trust__seg::before {
	content: "";
	width: 5px;
	height: 5px;
	background: var(--damson-line);
	transform: rotate(45deg);
	flex: 0 0 auto;
}

.rgz-trust__seg--age {
	color: var(--clay);
}

.rgz-trust__seg--age::before {
	background: var(--clay);
}

/* 3d. Footer */
.rgz-foot {
	margin-top: 0;
	background: var(--paper-deep);
	border-top: 1px solid var(--edge);
	padding: 46px 20px 34px;
	font-size: 15px;
	color: var(--muted);
}

.rgz-foot__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.rgz-foot h2,
.rgz-foot h3 {
	font-size: 14px;
	font-family: "Encode Sans", system-ui, sans-serif;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink);
	margin: 0 0 12px;
}

.rgz-foot a {
	color: var(--prose);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rgz-foot a:hover {
	color: var(--ink);
}

.rgz-foot ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rgz-foot li + li {
	margin-top: 9px;
}

.rgz-foot__legal {
	max-width: 1140px;
	margin: 30px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--edge);
	font-size: 12.5px;
	line-height: 1.72;
	color: var(--dim);
}

.rgz-pay {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rgz-pay li {
	margin: 0;
	padding: 7px 12px;
	border: 1px solid var(--edge);
	border-radius: var(--r-ctl);
	background: rgba(248, 250, 244, .86);
	font-size: 13px;
	color: var(--prose);
	letter-spacing: .02em;
}

.rgz-updated {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--dim);
}

.rgz-updated time {
	font-family: "Intel One Mono", ui-monospace, monospace;
	color: var(--muted);
}

/* 3e. Sticky mobile CTA.
   The anchor carries its OWN class. On two earlier builds chrome.php emitted a
   bare <a> inside the sticky wrapper, so every rule that painted it was a
   descendant selector — and a probe measuring `.<prefix>-sticky__link` reported
   a clean PASS on an element that did not exist. Both the markup and the gate
   name this class now. */
.rgz-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 70;
	display: none;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
	background: rgba(241, 244, 235, .96);
	border-top: 1px solid var(--edge);
	backdrop-filter: blur(8px);
}

.rgz-sticky__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: var(--tap);
	padding: 13px 18px;
	background: var(--damson-grad);
	color: var(--vellum);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .02em;
	text-decoration: none;
	border: 1px solid var(--damson);
	border-radius: var(--r-ctl);
}

.rgz-sticky__link:hover,
.rgz-sticky__link:active {
	color: var(--vellum);
	background: var(--ink);
	text-decoration: none;
}

.rgz-sticky__note {
	display: block;
	margin-top: 6px;
	text-align: center;
	font-size: 11.5px;
	color: var(--dim);
}

/* 3f. Age gate + cookie banner */
.rgz-gate {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
	background: rgba(38, 30, 41, .52);
}

.rgz-gate__box {
	max-width: 460px;
	width: 100%;
	background: var(--panel-raised-grad);
	border: 1px solid var(--edge-lit);
	border-radius: var(--r-plate);
	padding: 30px 26px 26px;
	position: relative;
	text-align: center;
}

.rgz-gate__box::before {
	content: "";
	position: absolute;
	top: -1px;
	left: var(--sig-inset);
	right: var(--sig-inset);
	height: var(--sig-weight);
	background: var(--damson);
}

.rgz-gate__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border: var(--sig-weight) solid var(--clay);
	/* Editorial square, like every other corner on this build. A round badge here
	   was the donor's geometry and would have been the one circle on the site. */
	border-radius: var(--r-ctl);
	font-family: "Intel One Mono", ui-monospace, monospace;
	font-size: 19px;
	font-weight: 700;
	color: var(--clay);
}

.rgz-gate__title {
	font-family: "Alegreya", Georgia, serif;
	font-size: 26px;
	color: var(--ink);
	margin: 0 0 10px;
}

.rgz-gate__text {
	font-size: 15px;
	color: var(--prose);
	margin: 0 0 20px;
}

.rgz-gate__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.rgz-cookie {
	position: fixed;
	left: 14px;
	right: 14px;
	bottom: 14px;
	z-index: 150;
	max-width: 640px;
	margin: 0 auto;
	padding: 18px 20px;
	background: var(--panel-raised-grad);
	border: 1px solid var(--edge-lit);
	border-radius: var(--r-plate);
	box-shadow: 0 16px 44px rgba(38, 30, 41, .10);
	font-size: 14px;
	color: var(--prose);
}

.rgz-cookie__row {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 14px;
}

/* ---- 4. Sections -------------------------------------------------------- */
/* 4a. Hero */
.rgz-hero {
	padding-block: clamp(38px, 6vw, 74px) clamp(30px, 4.4vw, 54px);
}

.rgz-hero h1 {
	margin: 0 0 16px;
	/* 18ch broke «Royale Casino Kazino AZ» so that «AZ» sat alone on line two at 1440 —
	   a two-word line with one word on it is a widow, and on the one heading the whole
	   EMD exists for. 22ch holds it as two balanced lines at every width above 900px. */
	max-width: 22ch;
	text-wrap: balance;
}

.rgz-hero__lede {
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.6;
	color: var(--ink);
	max-width: 60ch;
	margin: 0 0 24px;
}

.rgz-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 26px;
}

.rgz-hero__facts {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	background: var(--edge);
	border: 1px solid var(--edge);
	border-radius: var(--r-plate);
	overflow: hidden;
}

.rgz-fact {
	background: var(--panel);
	padding: 16px 18px;
}

.rgz-fact__val {
	display: block;
	font-size: clamp(20px, 2.6vw, 26px);
	line-height: 1.14;
	margin-bottom: 5px;
}

.rgz-fact__key {
	display: block;
	font-size: 13px;
	color: var(--muted);
	line-height: 1.45;
}

/* 4b. Numbered table of contents — the spine of a one-pager. */
.rgz-toc {
	margin: 0;
}

.rgz-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
	counter-reset: rcztoc;
}

.rgz-toc__list li {
	margin: 0;
}

.rgz-toc__list a {
	display: flex;
	align-items: baseline;
	gap: 12px;
	min-height: var(--tap);
	padding: 11px 14px;
	border: 1px solid var(--edge);
	border-radius: var(--r-ctl);
	background: rgba(248, 250, 244, .7);
	color: var(--prose);
	text-decoration: none;
	font-size: 15.5px;
	line-height: 1.4;
}

.rgz-toc__list a:hover {
	border-color: var(--damson);
	background: var(--panel-raised);
	color: var(--ink);
	text-decoration: none;
}

.rgz-toc__num {
	font-size: 13px;
	color: var(--damson);
	flex: 0 0 auto;
	min-width: 2ch;
}

/* 4c. Quick-nav cards */
.rgz-quick {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.rgz-quick__card {
	position: relative;
	display: block;
	padding: 26px 20px 20px;
	background: var(--panel-grad);
	border: 1px solid var(--edge);
	border-radius: var(--r-plate);
	color: var(--prose);
	text-decoration: none;
}

.rgz-quick__card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 20px;
	right: 20px;
	height: var(--sig-weight);
	background: var(--damson-line);
}

.rgz-quick__card:hover {
	border-color: var(--damson);
	background: var(--panel-raised-grad);
	text-decoration: none;
}

.rgz-quick__card:hover::before {
	background: var(--damson);
}

.rgz-quick__title {
	display: block;
	font-family: "Alegreya", Georgia, serif;
	font-size: 20px;
	color: var(--ink);
	margin-bottom: 7px;
}

.rgz-quick__text {
	display: block;
	font-size: 14.5px;
	color: var(--muted);
	line-height: 1.55;
}

/* 4d. Bonus offer */
.rgz-offer {
	display: grid;
	gap: 22px;
	align-items: start;
}

.rgz-offer__amount {
	display: block;
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.06;
	margin-bottom: 8px;
}

.rgz-offer__cap {
	display: block;
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 18px;
}

.rgz-offer__terms {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: grid;
	gap: 9px;
}

.rgz-offer__terms li {
	position: relative;
	padding-left: 20px;
	font-size: 15.5px;
	line-height: 1.6;
	margin: 0;
}

.rgz-offer__terms li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .62em;
	width: 7px;
	height: 1px;
	background: var(--damson-line);
}

/* 4e. Buttons (hand-rolled, for markup outside core/button) */
.rgz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: var(--tap);
	padding: 14px 28px;
	background: var(--damson-grad);
	color: var(--vellum);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .025em;
	text-decoration: none;
	border: 1px solid var(--damson);
	border-radius: var(--r-ctl);
	cursor: pointer;
}

.rgz-btn:hover {
	background: var(--ink);
	color: var(--vellum);
	text-decoration: none;
}

.rgz-btn--ghost {
	background: transparent;
	color: var(--damson);
	border-color: var(--edge-lit);
}

.rgz-btn--ghost:hover {
	background: rgba(255, 255, 255, .85);
	color: var(--ink);
	border-color: var(--damson);
}

.rgz-btn--small {
	min-height: var(--tap);
	padding: 10px 18px;
	font-size: 14.5px;
}

/* 4f. Chips */
.rgz-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: var(--r-ctl);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	border: 1px solid var(--edge);
	background: var(--panel-raised);
	color: var(--prose);
}

.rgz-chip--moss {
	background: var(--moss);
	border-color: var(--moss-line);
	color: var(--ink);
}

.rgz-chip--clay {
	background: var(--clay-tint);
	border-color: var(--clay);
	color: var(--ink);
}

.rgz-chip--damson {
	background: var(--damson-deep);
	border-color: var(--damson);
	color: var(--ink);
}

/* 4g. Steps ladder */
.rgz-steps {
	list-style: none;
	counter-reset: rczstep;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.rgz-steps li {
	position: relative;
	margin: 0;
	padding: 18px 20px 18px 62px;
	background: var(--panel-grad);
	border: 1px solid var(--edge);
	border-radius: var(--r-plate);
}

.rgz-steps li::before {
	counter-increment: rczstep;
	content: counter(rczstep, decimal-leading-zero);
	position: absolute;
	left: 20px;
	top: 17px;
	font-family: "Intel One Mono", ui-monospace, monospace;
	font-size: 15px;
	font-weight: 700;
	color: var(--damson);
}

.rgz-step__title {
	display: block;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 5px;
	font-size: 16.5px;
}

/* inc/schema.php reads .rgz-step__title + .rgz-step__text to build the HowTo nodes, so
   these two class names are a CONTRACT between the markup and the schema layer, not a
   styling choice. Renaming either silently empties the HowTo graph while every other
   node still ships and every block gate still passes. */
.rgz-step__text {
	display: block;
	color: var(--prose);
	font-size: 15.5px;
	line-height: 1.62;
}

/* 4h. Fact / feature grid */
.rgz-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}

.rgz-card {
	position: relative;
	padding: 26px 20px 20px;
	background: var(--panel-grad);
	border: 1px solid var(--edge);
	border-radius: var(--r-plate);
}

.rgz-card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 20px;
	right: 20px;
	height: var(--sig-weight);
	background: var(--damson-line);
}

.rgz-card h3 {
	margin: 0 0 8px;
	font-size: 18px;
	color: var(--ink);
}

.rgz-card p {
	font-size: 15px;
	color: var(--muted);
	margin: 0;
}

/* 4i. Game tiles */
.rgz-games {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.rgz-game {
	position: relative;
	padding: 22px 18px 16px;
	background: var(--panel-grad);
	border: 1px solid var(--edge);
	border-radius: var(--r-plate);
}

.rgz-game::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 18px;
	right: 18px;
	height: var(--sig-weight);
	background: var(--damson-line);
}

.rgz-game__name {
	display: block;
	font-family: "Alegreya", Georgia, serif;
	font-size: 18px;
	color: var(--ink);
	margin-bottom: 6px;
}

.rgz-game__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 13px;
	color: var(--muted);
}

.rgz-game__meta b {
	font-family: "Intel One Mono", ui-monospace, monospace;
	font-weight: 700;
	color: var(--figure);
}

/* RTP meter: a figure AND a bar, so the number is scannable at a glance. */
.rgz-meter {
	margin-top: 12px;
}

.rgz-meter__bar {
	height: 5px;
	background: var(--panel-raised);
	border: 1px solid var(--edge);
	border-radius: 1px;
	overflow: hidden;
}

.rgz-meter__fill {
	display: block;
	height: 100%;
	background: var(--damson-line);
}

.rgz-meter__val {
	font-size: 13px;
}

/* 4j. Notes / callouts */
.rgz-note {
	position: relative;
	padding: 18px 20px 18px 20px;
	border: 1px solid var(--edge);
	border-left: 3px solid var(--damson-line);
	border-radius: var(--r-ctl);
	background: rgba(248, 250, 244, .8);
	font-size: 15.5px;
	line-height: 1.62;
	color: var(--prose);
}

.rgz-note--warn {
	border-left-color: var(--clay);
	background: rgba(247, 233, 220, .8);
}

.rgz-note--rg {
	border-left-color: var(--clay);
	background: var(--clay-tint);
	color: var(--ink);
}

.rgz-note strong {
	color: var(--ink);
}

/* 4k. Tables — dark, scrollable, and never below 15px */
.rgz-tablewrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--edge);
	border-radius: var(--r-plate);
	background: var(--panel);
}

.rgz-tablewrap table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.rgz-tablewrap th,
.rgz-tablewrap td,
.wp-block-table th,
.wp-block-table td {
	padding: 12px 15px;
	text-align: start;
	border-bottom: 1px solid var(--edge);
	vertical-align: top;
	line-height: 1.55;
}

.rgz-tablewrap thead th,
.wp-block-table thead th {
	background: var(--panel-raised);
	color: var(--ink);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .04em;
	white-space: nowrap;
}

.rgz-tablewrap tbody tr:last-child td,
.wp-block-table tbody tr:last-child td {
	border-bottom: 0;
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table {
	background: var(--panel);
	border: 1px solid var(--edge);
	border-radius: var(--r-plate);
}

.rgz-tablewrap td b,
.wp-block-table td b {
	color: var(--ink);
}

/* 4l. FAQ — native <details>, so the answers are in the HTML for crawlers. */
.rgz-faq {
	display: grid;
	gap: 10px;
}

.rgz-faq details {
	background: var(--panel-grad);
	border: 1px solid var(--edge);
	border-radius: var(--r-plate);
	overflow: hidden;
}

.rgz-faq summary {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: var(--tap);
	padding: 15px 18px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: 16.5px;
	color: var(--ink);
	line-height: 1.45;
}

.rgz-faq summary::-webkit-details-marker {
	display: none;
}

.rgz-faq summary::after {
	content: "";
	margin-left: auto;
	width: 9px;
	height: 9px;
	flex: 0 0 auto;
	border-right: 2px solid var(--damson-line);
	border-bottom: 2px solid var(--damson-line);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .2s var(--ease);
}

.rgz-faq details[open] summary::after {
	transform: rotate(225deg) translate(-2px, -2px);
}

.rgz-faq summary:hover {
	background: rgba(255, 255, 255, .72);
}

.rgz-faq__answer {
	padding: 0 18px 17px;
	font-size: 15.5px;
	line-height: 1.68;
	color: var(--prose);
}

.rgz-faq__answer p {
	margin-bottom: .8em;
}

/* 4m. Payments rail in content */
.rgz-payrail {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.rgz-payrail li {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--edge);
	border-radius: var(--r-ctl);
	background: var(--panel);
}

.rgz-payrail__name {
	display: block;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 4px;
	font-size: 15.5px;
}

.rgz-payrail__meta {
	display: block;
	font-size: 13px;
	color: var(--muted);
}

/* 4n. App / download block */
.rgz-app {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rgz-app__spec {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--muted);
}

.rgz-app__spec b {
	font-family: "Intel One Mono", ui-monospace, monospace;
	color: var(--figure);
	font-weight: 700;
}

/* 4o. Compare strip */
.rgz-compare {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 4p. Breadcrumbs (interior pages only — the one-pager uses the anchor TOC) */
.rgz-crumbs {
	font-size: 13.5px;
	color: var(--dim);
	padding: 16px 0 0;
}

.rgz-crumbs a {
	color: var(--muted);
	text-decoration: none;
}

.rgz-crumbs a:hover {
	color: var(--ink);
	text-decoration: underline;
}

.rgz-crumbs span[aria-current] {
	color: var(--prose);
}

/* 4q. Back-to-contents link, repeated down a long document */
.rgz-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: var(--tap);
	margin-top: 18px;
	font-size: 13.5px;
	color: var(--muted);
	text-decoration: none;
}

.rgz-back:hover {
	color: var(--ink);
	text-decoration: underline;
}

/* 4r. Per-page last-updated line, appended by inc/chrome.php */
.rgz-lastmod {
	margin-top: 34px;
	padding-top: 16px;
	border-top: 1px solid var(--edge);
	font-size: 13px;
	color: var(--dim);
}

.rgz-lastmod time {
	font-family: "Intel One Mono", ui-monospace, monospace;
	color: var(--muted);
}

/* 4s. Skeleton loading for the heaviest blocks */
.rgz-skeleton {
	position: relative;
	overflow: hidden;
	background: var(--panel-raised);
	border-radius: var(--r-plate);
	min-height: 90px;
}

.rgz-skeleton::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(96deg, transparent 12%, rgba(255, 255, 255, .8) 48%, transparent 84%);
	transform: translateX(-100%);
	animation: rgz-shimmer 1.5s infinite;
}

@keyframes rgz-shimmer {
	100% {
		transform: translateX(100%);
	}
}

/* ---- 5. State matrix ---------------------------------------------------- */
a,
button,
summary,
.rgz-btn,
.rgz-quick__card,
.rgz-toc__list a {
	transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}

a:active,
.rgz-btn:active,
.wp-block-button__link:active {
	transform: translateY(1px);
}

/* Focus. A two-tone ring so it is visible on the nacre fills AND on the field:
   the dark inner line survives on light plates, the nacre outer line on dark. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--damson);
	outline-offset: 2px;
	border-radius: var(--r-ctl);
}

.rgz-btn:focus-visible,
.rgz-head__cta:focus-visible,
.rgz-sticky__link:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
	box-shadow: 0 0 0 1px var(--vellum) inset;
}

button[disabled],
.rgz-btn[aria-disabled="true"] {
	opacity: .55;
	cursor: not-allowed;
	filter: grayscale(.4);
}

/* ---- 6. Accessibility + responsive ------------------------------------- */
/* 6a. Nothing below 15px in prose. 12.5px is reserved for legal lines only. */
.rgz-main p,
.rgz-main li {
	font-size: max(15px, 1em);
}

/* 6b. Tap targets: 44px on EVERY pointer, not only under 600px. */
.rgz-nav a,
.rgz-toc__list a,
.rgz-btn,
.rgz-head__cta,
.rgz-sticky__link,
.rgz-faq summary,
.rgz-back {
	min-height: var(--tap);
}

/* 6c. Inline links inside a sentence are exempt from WCAG 2.5.8 — they are sized
   by the text around them and must not be padded into a block. */
.rgz-main p a,
.rgz-foot__legal a,
.rgz-faq__answer a {
	min-height: 0;
}

/* 6d. 1024 and below */
@media (max-width: 1023px) {
	.rgz-head__inner {
		flex-wrap: wrap;
		gap: 10px;
	}

	.rgz-nav {
		order: 3;
		width: 100%;
		margin-left: 0;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 2px;
	}

	.rgz-nav a {
		white-space: nowrap;
	}
}

/* 6e. 768 and below — the sticky CTA appears, the header CTA folds away */
@media (max-width: 767px) {
	.rgz-sticky {
		display: block;
	}

	body {
		padding-bottom: 92px;
	}

	.rgz-head__cta {
		display: none;
	}

	:root {
		--sig-inset: 16px;
	}

	.rgz-sec {
		padding-block: 40px;
	}

	.rgz-plate {
		padding: 26px 17px 20px;
	}

	.rgz-hero h1 {
		max-width: none;
	}
}

/* 6f. 360 — the narrowest supported width */
@media (max-width: 400px) {
	.rgz-head__inner {
		padding-inline: 15px;
	}

	.rgz-wordmark__name {
		font-size: 19px;
	}

	.rgz-steps li {
		padding: 16px 16px 16px 54px;
	}

	.rgz-steps li::before {
		left: 16px;
	}

	.rgz-quick,
	.rgz-grid,
	.rgz-games,
	.rgz-toc__list {
		grid-template-columns: 1fr;
	}
}

/* 6g. Reduced motion — finish the job, including the smooth scroll and shimmer */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}

	.rgz-skeleton::after {
		display: none;
	}

	a:active,
	.rgz-btn:active {
		transform: none;
	}
}

/* 6h. Forced colours / high contrast safety net */
@media (forced-colors: active) {
	.rgz-plate,
	.rgz-card,
	.rgz-quick__card,
	.rgz-game,
	.rgz-steps li,
	.rgz-faq details {
		border: 1px solid CanvasText;
	}

	.rgz-btn,
	.rgz-head__cta,
	.rgz-sticky__link {
		border: 2px solid ButtonText;
		background: ButtonFace;
		color: ButtonText;
		forced-color-adjust: none;
	}

	.rgz-plate::before,
	.rgz-plate::after,
	.rgz-card::before,
	.rgz-quick__card::before,
	.rgz-game::before {
		background: CanvasText;
		border-color: CanvasText;
	}
}

/* ---- 7. Core block harmonisation --------------------------------------- */
.wp-block-button__link {
	border-radius: var(--r-ctl);
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--edge);
	opacity: 1;
	max-width: 100%;
}

.wp-block-image img {
	border-radius: var(--r-plate);
	height: auto;
	max-width: 100%;
}

.wp-block-list {
	padding-left: 1.15em;
}

.wp-block-list li {
	margin-bottom: .5em;
	line-height: 1.68;
}

.wp-block-quote {
	border-left: 3px solid var(--damson-line);
	padding-left: 18px;
	margin-left: 0;
	font-style: normal;
	color: var(--ink);
}

.wp-block-group.has-background {
	border-radius: var(--r-plate);
}

/* The editor canvas inherits the same ground so the plate signature is visible
   while writing, not only on the front end. */
.editor-styles-wrapper {
	background: var(--paper);
	color: var(--prose);
}

/* ---- 8. Brand-layer devices (inc/brand.php) ----------------------------
   Every class emitted by a shortcode in inc/brand.php is styled here. A class that
   exists only in PHP and nowhere in this file ships an unstyled block that passes
   every markup gate — that is the «phantom class» failure recorded on royalspin.az,
   so the two lists are kept in step deliberately. */
.rgz-sig {
	display: grid;
	gap: 12px;
}

.rgz-sig__text {
	font-size: 13px;
	line-height: 1.65;
	color: var(--dim);
	margin: 0;
	max-width: 62ch;
}

.rgz-light {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--edge);
	border-radius: var(--r-plate);
}

/* The citable passage */
.rgz-pull {
	margin: 0;
}

.rgz-pull__body {
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.6;
	color: var(--ink);
	max-width: 66ch;
}

.rgz-pull__body p:last-child {
	margin-bottom: 0;
}

/* Wager-arithmetic device */
.rgz-anatomy {
	margin: 0;
}

.rgz-anatomy__rows {
	list-style: none;
	counter-reset: none;
	margin: 4px 0 14px;
	padding: 0;
	display: grid;
	gap: 1px;
	background: var(--edge);
	border: 1px solid var(--edge);
	border-radius: var(--r-ctl);
	overflow: hidden;
}

.rgz-anatomy__rows li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 11px 14px;
	background: var(--panel);
	font-size: 15.5px;
}

.rgz-anatomy__rows li:last-child {
	background: var(--damson-deep);
}

.rgz-anatomy__key {
	color: var(--prose);
}

.rgz-anatomy__rows li:last-child .rgz-anatomy__key,
.rgz-anatomy__rows li:last-child .rgz-num {
	color: var(--vellum);
	font-weight: 600;
}

.rgz-anatomy__note,
.rgz-mock__note {
	font-size: 14px;
	line-height: 1.62;
	color: var(--muted);
	margin: 0;
	max-width: 64ch;
}

/* Inert pictures of the operator's own controls */
.rgz-mock {
	margin: 0;
}

.rgz-mock__box {
	display: grid;
	gap: 9px;
	margin: 6px 0 14px;
	padding: 16px;
	background: var(--paper-deep);
	border: 1px dashed var(--edge-lit);
	border-radius: var(--r-ctl);
}

.rgz-mock__field {
	display: block;
	padding: 12px 13px;
	border: 1px solid var(--edge);
	border-radius: var(--r-ctl);
	background: var(--panel);
	color: var(--dim);
	font-size: 14.5px;
}

.rgz-mock__field--code {
	font-family: "Intel One Mono", ui-monospace, monospace;
	letter-spacing: .3em;
	color: var(--muted);
}

.rgz-mock__btn {
	display: block;
	padding: 12px 13px;
	text-align: center;
	border-radius: var(--r-ctl);
	background: var(--damson);
	color: var(--vellum);
	font-weight: 700;
	font-size: 14.5px;
}

/* ---- 9. Nav, header CTA variant, footer structure ----------------------
   These class names are emitted by inc/chrome.php and parts/*.html. Same rule as §8:
   nothing may exist in markup that has no rule here. */
.rgz-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.rgz-nav__list li {
	margin: 0;
}

.rgz-nav__mobile {
	display: none;
}

.rgz-nav__mobile summary {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: var(--tap);
	padding: 9px 14px;
	list-style: none;
	cursor: pointer;
	border: 1px solid var(--edge);
	border-radius: var(--r-ctl);
	background: var(--panel-raised);
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
}

.rgz-nav__mobile summary::-webkit-details-marker {
	display: none;
}

.rgz-nav__bars {
	display: block;
	width: 15px;
	height: 2px;
	background: var(--damson);
	box-shadow: 0 5px 0 var(--damson), 0 -5px 0 var(--damson);
}

.rgz-nav__panel {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: grid;
	gap: 6px;
	border: 1px solid var(--edge);
	border-radius: var(--r-plate);
	background: var(--panel);
	padding: 8px;
}

.rgz-nav__panel li {
	margin: 0;
}

.rgz-nav__panel a {
	display: flex;
	align-items: center;
	min-height: var(--tap);
	padding: 10px 12px;
	border-radius: var(--r-ctl);
	color: var(--prose);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.4;
}

.rgz-nav__panel a:hover,
.rgz-nav__panel a[aria-current] {
	background: var(--panel-raised);
	color: var(--ink);
}

.rgz-nav a[aria-current],
.rgz-nav__list a[aria-current] {
	color: var(--ink);
	border-color: var(--edge);
	background: rgba(255, 255, 255, .78);
}

/* The non-money header control on the three service pages: an outline, so the one page
   whose job is NOT to sell never carries a filled money button. */
.rgz-head__cta--quiet {
	background: transparent;
	background-image: none;
	color: var(--damson);
	border-color: var(--edge-lit);
}

.rgz-head__cta--quiet:hover {
	background: rgba(255, 255, 255, .9);
	background-image: none;
	color: var(--ink);
	border-color: var(--damson);
}

.rgz-langtag {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border: 1px solid var(--edge);
	border-radius: var(--r-ctl);
	font-family: "Intel One Mono", ui-monospace, monospace;
	font-size: 12px;
	letter-spacing: .12em;
	color: var(--muted);
}

.rgz-trust__seg--rg {
	color: var(--damson);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rgz-trust__seg--rg:hover {
	color: var(--ink);
}

.rgz-foot__brand h2,
.rgz-foot__col h2 {
	font-size: 13px;
}

.rgz-foot__brand p {
	font-size: 14.5px;
	line-height: 1.66;
	color: var(--muted);
	max-width: 46ch;
}

.rgz-foot__brand .rgz-updated {
	margin-top: 12px;
}

.rgz-foot__legal p + p {
	margin-top: 10px;
}

.rgz-foot__legal b {
	color: var(--muted);
}

.rgz-sig {
	max-width: 1140px;
	margin: 26px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--edge);
}

@media (max-width: 1023px) {
	.rgz-nav__list {
		display: none;
	}

	.rgz-nav__mobile {
		display: block;
	}

	.rgz-nav {
		order: 3;
		width: 100%;
		overflow: visible;
	}
}


/* ---- 10. Repairs from probe_rcz.js run 1 --------------------------------
   Four standalone controls sat under the 44px target the brief sets. None of them is a
   link inline in a sentence, so the WCAG 2.5.8 inline exemption does not cover them:
   the header lockup and the trust-bar RG link are the two controls a phone user reaches
   for first, and the footer/breadcrumb lists are pure navigation. */
.rgz-brand {
	min-height: var(--tap);
}

.rgz-trust__seg--rg {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
}

.rgz-foot__col li a,
.rgz-foot__brand a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
}

.rgz-crumbs a,
.rgz-crumbs span[aria-current] {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
}

/* The cookie banner's ACCEPT control. The reskin moved the filled treatment onto the
   DECLINE button on purpose — this banner defaults to declining non-essential storage —
   which left this class with no rule at all and shipped an unstyled button. It is stated
   here explicitly rather than deleted, so the next fork reads the intent instead of
   "restoring" a filled accept button. */
.rgz-cookie__row .rgz-cookie__ok {
	background: transparent;
	background-image: none;
	color: var(--prose);
	border-color: var(--edge-lit);
}

.rgz-cookie__row .rgz-cookie__ok:hover {
	border-color: var(--damson);
	color: var(--ink);
}

/* ---- 11. Repairs from probe_rcz.js run 2 --------------------------------
   The mobile nav panel overflowed the viewport by 24px at 360, on every page, and only
   there. `.rgz-nav` is a flex row, so its `<details>` child sizes to MAX-CONTENT — and
   the panel's longest item («Bonus — 550 AZN + 250 fırlanma və dövriyyə şərti») is wider
   than a 360px phone. A flex item's default `min-width: auto` refuses to shrink below its
   content, so `width: 100%` on the ancestor did not bind: the floor has to be removed
   explicitly. Same shape as the recorded «a display reset without min-width keeps the
   560px floor» defect, one layer further in. */
.rgz-nav {
	min-width: 0;
}

.rgz-nav__mobile {
	min-width: 0;
	max-width: 100%;
}

.rgz-nav__panel {
	box-sizing: border-box;
	max-width: 100%;
	/* The real floor was HERE, not on the <details>: the panel is a grid, an auto column
	   is minmax(min-content, auto), and a grid item's own min-width:auto refuses to go
	   below min-content — so «Bonus — 550 AZN + 250 fırlanma və dövriyyə şərti» set the
	   column to 360px inside a 330px panel. Constraining the ancestors could never bind;
	   the track and the item both have to be allowed to shrink. It is invisible until the
	   menu is OPENED (a closed <details> clips it, and document.scrollWidth stays 360),
	   which is why only a per-element measurement found it. */
	grid-template-columns: minmax(0, 1fr);
}

.rgz-nav__panel li {
	min-width: 0;
}

.rgz-nav__panel a {
	overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
	.rgz-nav__mobile {
		width: 100%;
	}
}

/* The offer plate is a grid, so its two CTAs stretched to the full plate width and the
   money button read as a banner rather than as a control. Sized to content instead, and
   laid on one row where there is room for two. */
.rgz-offer .rgz-btn {
	justify-self: start;
}

@media (min-width: 640px) {
	.rgz-offer {
		grid-template-columns: 1fr;
	}

	.rgz-offer .rgz-btn + .rgz-btn {
		margin-top: -8px;
	}
}

/* ---- 12. Repairs the SCREENSHOT found (nothing measurable was wrong) -----
   The hero's three stacked components are raw HTML inside one wp:html block, so
   WordPress's blockGap never applies between them: the quick-nav grid sat flush against
   the facts strip and each card's column rule was drawn ON the strip's bottom border.
   Every gate passed — a probe measures elements, not the space between them.

   And the quick-nav grid STRANDED ITS FOURTH CARD: auto-fit with a 210px floor resolves
   to three columns in a 700px content well, so «Yüklə» sat alone on a second row under
   three siblings. (Same shape as the recorded auto-fit orphan on royale-vip.org.) Two
   balanced rows of two beat three-plus-one at every width this column ever has. */
.rgz-hero__facts {
	margin-bottom: 26px;
}

.rgz-quick {
	margin-top: 0;
}

@media (min-width: 560px) {
	.rgz-quick {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.rgz-quick {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
