/* CasinoChoice.co.uk — editorial guide in the heritage green.
   Brand cues carried over: deep green header, mint footer, red chip accent,
   gold for focus and the primary action, the original script logo. */

@font-face {
	font-family: "Fraunces";
	src: url("/fonts/fraunces.woff2") format("woff2");
	font-weight: 300 900;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("/fonts/source-sans-3.woff2") format("woff2");
	font-weight: 200 900;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("/fonts/source-sans-3-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--green-950: #0f2a12;
	--green-900: #163a18;
	--green-800: #1c471c;
	--green-700: #2d5a2d;
	--green-600: #336633;
	--green-100: #e4f1e4;
	--green-50: #f1f8f0;
	--paper: #fbfaf5;
	--ink: #1d261d;
	--ink-soft: #4a564a;
	--rule: #d9dccf;
	--chip-red: #b80f0f;
	--gold: #fccd44;
	--gold-deep: #be8824;

	--font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

	--text-sm: 0.9375rem;
	--text-base: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--text-lg: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
	--text-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
	--text-h2: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
	--text-h1: clamp(2.125rem, 1.5rem + 3vw, 3.75rem);

	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-6: 1.5rem;
	--space-8: 2rem;
	--space-12: 3rem;
	--space-section: clamp(2.5rem, 2rem + 3vw, 5rem);

	--measure: 42rem;
	--wrap: 76rem;
	--radius-s: 3px;
	--radius-m: 10px;
	--duration-fast: 150ms;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--space-6);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--green-600);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--duration-fast) var(--ease-out), text-decoration-color var(--duration-fast);
}
a:hover {
	color: var(--green-900);
	text-decoration-thickness: 2px;
}
:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
	border-radius: var(--radius-s);
}

.skip {
	position: absolute;
	left: var(--space-4);
	top: -4rem;
	background: var(--gold);
	color: var(--green-950);
	padding: var(--space-2) var(--space-4);
	font-weight: 700;
	z-index: 10;
}
.skip:focus {
	top: var(--space-4);
}

.wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--space-4);
}

/* ---------- Header ---------- */

.tabs {
	background: var(--green-950);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.tabs ul {
	display: flex;
	gap: var(--space-1);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.tabs a {
	display: block;
	padding: var(--space-2) var(--space-3);
	color: #cfe3cf;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.tabs a:hover,
.tabs a[aria-current="true"] {
	color: #fff;
	border-bottom-color: var(--gold);
}

.masthead {
	position: relative;
	background:
		radial-gradient(120% 140% at 12% 0%, rgba(255, 255, 255, 0.09), transparent 55%),
		radial-gradient(90% 120% at 100% 100%, rgba(0, 0, 0, 0.28), transparent 60%),
		linear-gradient(180deg, var(--green-700), var(--green-800) 70%, var(--green-900));
	color: #fff;
	isolation: isolate;
}
/* felt grain */
.masthead::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.18;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0.1 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	pointer-events: none;
}
.masthead .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding-block: var(--space-3);
}
.brand {
	display: inline-flex;
	line-height: 0;
}
.brand img {
	width: 180px;
	height: auto;
}
@media (min-width: 48rem) {
	.brand img {
		width: 208px;
	}
}
.tagline {
	display: none;
	margin: 0;
	max-width: 18rem;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.0625rem;
	line-height: 1.35;
	color: #e7f1e2;
	text-align: right;
}
@media (min-width: 56rem) {
	.tagline {
		display: block;
	}
}

.nav {
	background: var(--green-50);
	border-bottom: 1px solid var(--rule);
}
.nav details {
	padding-block: var(--space-2);
}
.nav summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--green-800);
	list-style: none;
	padding: var(--space-2) 0;
}
.nav summary::-webkit-details-marker {
	display: none;
}
.nav summary::before {
	content: "\2630\00a0\00a0";
}
.nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--space-1);
}
.nav a {
	display: block;
	padding: var(--space-2) var(--space-1);
	color: var(--green-800);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"],
.nav a[aria-current="true"] {
	border-bottom-color: var(--chip-red);
	color: var(--green-950);
}
.nav-wide {
	display: none !important;
}
@media (min-width: 60rem) {
	.nav-narrow {
		display: none;
	}
	.nav .nav-wide {
		display: flex !important;
		flex-wrap: wrap;
		gap: var(--space-6);
	}
	.nav a {
		padding-block: var(--space-3);
	}
}

/* ---------- Breadcrumb + page head ---------- */

.crumbs {
	font-size: var(--text-sm);
	color: var(--ink-soft);
	margin-top: var(--space-6);
}
.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}
.crumbs li + li::before {
	content: "\203A";
	margin-right: var(--space-2);
	color: var(--rule);
}

.page-head {
	padding-block: var(--space-6) var(--space-8);
	border-bottom: 1px solid var(--rule);
	margin-bottom: var(--space-8);
}
.kicker {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0 0 var(--space-3);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--chip-red);
}
/* the poker-chip dot from the logo */
.kicker::before {
	content: "";
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: radial-gradient(circle, var(--chip-red) 34%, #fff 36% 44%, var(--chip-red) 46%);
	box-shadow: 0 0 0 1px var(--chip-red);
}
h1,
h2,
h3 {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	color: var(--green-950);
	line-height: 1.12;
	text-wrap: balance;
}
h1 {
	font-size: var(--text-h1);
	font-weight: 650;
	letter-spacing: -0.015em;
	margin: 0;
	max-width: 20ch;
}
.lede {
	margin: var(--space-4) 0 0;
	max-width: var(--measure);
	font-size: var(--text-lg);
	color: var(--ink-soft);
}
.meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-6);
	margin: var(--space-6) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--text-sm);
	color: var(--ink-soft);
}
.meta strong {
	color: var(--ink);
	font-weight: 600;
}

/* ---------- Article layout ---------- */

.layout {
	display: grid;
	gap: var(--space-8);
	padding-bottom: var(--space-section);
}
@media (min-width: 64rem) {
	.layout {
		grid-template-columns: minmax(0, var(--measure)) minmax(14rem, 18rem);
		justify-content: space-between;
	}
}
.rail {
	font-size: var(--text-sm);
}
@media (min-width: 64rem) {
	.rail-inner {
		position: sticky;
		top: var(--space-6);
	}
}
.toc,
.facts {
	border-top: 3px solid var(--green-800);
	padding-top: var(--space-3);
	margin-bottom: var(--space-8);
}
.toc h2,
.facts h2 {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 var(--space-3);
	color: var(--ink-soft);
}
.toc ol {
	margin: 0;
	padding-left: 1.1rem;
	display: grid;
	gap: var(--space-2);
}
.facts dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-2) var(--space-4);
}
.facts dt {
	color: var(--ink-soft);
}
.facts dd {
	margin: 0;
	font-weight: 600;
}

.prose {
	max-width: var(--measure);
}
.prose > * + * {
	margin-top: var(--space-4);
}
.prose h2 {
	font-size: var(--text-h2);
	font-weight: 600;
	margin-top: var(--space-12);
	margin-bottom: 0;
	padding-top: var(--space-4);
	border-top: 1px solid var(--rule);
}
.prose > h2:first-child {
	margin-top: 0;
	border-top: 0;
	padding-top: 0;
}
.prose h3 {
	font-size: var(--text-h3);
	font-weight: 600;
	margin-top: var(--space-8);
	margin-bottom: 0;
}
.prose h2 + *,
.prose h3 + * {
	margin-top: var(--space-3);
}
.prose p,
.prose li {
	max-width: 68ch;
}
.prose ul,
.prose ol {
	padding-left: 1.35rem;
}
.prose li + li {
	margin-top: var(--space-2);
}
.prose ul > li::marker {
	color: var(--chip-red);
}
.prose strong {
	color: var(--green-950);
}
.prose blockquote {
	margin-inline: 0;
	padding: var(--space-4) var(--space-6);
	background: var(--green-50);
	border-left: 4px solid var(--gold-deep);
	border-radius: 0 var(--radius-m) var(--radius-m) 0;
	font-size: var(--text-lg);
}
.prose blockquote > :first-child {
	margin-top: 0;
}
.prose blockquote > :last-child {
	margin-bottom: 0;
}
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--rule);
	border-radius: var(--radius-m);
	background: #fff;
}
.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--text-sm);
	font-variant-numeric: tabular-nums;
}
.prose th,
.prose td {
	padding: var(--space-2) var(--space-3);
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--rule);
}
.prose thead th {
	background: var(--green-800);
	color: #fff;
	font-weight: 600;
}
.prose tbody tr:nth-child(even) {
	background: var(--green-50);
}
.prose tbody tr:last-child td {
	border-bottom: 0;
}

.sources {
	margin-top: var(--space-12);
	padding: var(--space-6);
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: var(--radius-m);
	font-size: var(--text-sm);
}
.sources h2 {
	font-size: 1.25rem;
	margin: 0 0 var(--space-3);
	border: 0;
	padding: 0;
}
.sources ol {
	margin: 0;
	padding-left: 1.2rem;
	display: grid;
	gap: var(--space-2);
}
.sources a {
	overflow-wrap: anywhere;
}
.byline {
	margin-top: var(--space-8);
	font-size: var(--text-sm);
	color: var(--ink-soft);
}

/* ---------- Hub index (editorial list, not a card grid) ---------- */

.index {
	margin-top: var(--space-12);
}
.index > h2 {
	font-size: var(--text-h2);
	margin: 0 0 var(--space-4);
}
.index ol {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 3px solid var(--green-800);
}
.index li {
	border-bottom: 1px solid var(--rule);
}
.index a {
	display: grid;
	gap: var(--space-1);
	padding: var(--space-4) var(--space-2);
	text-decoration: none;
	color: inherit;
	transition: background-color var(--duration-fast) var(--ease-out);
}
.index a:hover {
	background: var(--green-50);
}
.index .t {
	font-family: var(--font-display);
	font-size: var(--text-h3);
	font-weight: 600;
	line-height: 1.2;
	color: var(--green-800);
}
.index a:hover .t {
	text-decoration: underline;
	text-decoration-color: var(--chip-red);
	text-underline-offset: 0.15em;
}
.index .d {
	color: var(--ink-soft);
	font-size: var(--text-sm);
	max-width: 70ch;
}
.index .k {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--chip-red);
}
.index li:first-child a {
	padding-block: var(--space-6);
}
.index li:first-child .t {
	font-size: var(--text-h2);
}

/* home: two-column index on wide screens */
@media (min-width: 64rem) {
	.index-pair {
		display: grid;
		grid-template-columns: 1.4fr 1fr;
		gap: var(--space-12);
		align-items: start;
	}
}

/* ---------- Footer ---------- */

.footer {
	background: var(--green-100);
	border-top: 4px solid var(--green-800);
	padding-block: var(--space-12) var(--space-8);
	font-size: var(--text-sm);
}
.footer .motto {
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--text-h3);
	color: var(--green-900);
	margin: 0 0 var(--space-8);
	max-width: 30ch;
}
.footer-grid {
	display: grid;
	gap: var(--space-8);
}
@media (min-width: 48rem) {
	.footer-grid {
		grid-template-columns: 2fr 1fr 1fr;
	}
}
.footer h2 {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 var(--space-3);
	color: var(--green-800);
}
.footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--space-2);
}
.footer a {
	color: var(--green-900);
}
.age {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 3px solid var(--chip-red);
	font-weight: 800;
	color: var(--chip-red);
	margin-right: var(--space-3);
	flex: none;
}
.safer {
	display: flex;
	align-items: flex-start;
}
.safer p {
	margin: 0;
}
.legal {
	margin-top: var(--space-8);
	padding-top: var(--space-4);
	border-top: 1px solid #c3d6c3;
	color: var(--ink-soft);
}

/* ---------- Error pages ---------- */

.error-page {
	padding-block: var(--space-section);
}
.error-page .code {
	font-family: var(--font-display);
	font-size: clamp(4rem, 3rem + 6vw, 8rem);
	line-height: 1;
	color: var(--green-100);
	-webkit-text-stroke: 2px var(--green-700);
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.tabs,
	.nav,
	.rail,
	.footer {
		display: none;
	}
}
