/* Irish Prize Bonds — public site design system (mobile-first) */

:root {
	--color-primary: #0B6E4F;
	--color-primary-dark: #085239;
	--color-primary-light: #E7F3EE;
	--color-accent: #C79A2E;
	--color-accent-dark: #9C7A22;
	--color-bg: #F6F8F7;
	--color-surface: #FFFFFF;
	--color-text: #16241F;
	--color-text-muted: #5B6B65;
	--color-border: #E1E8E5;
	--color-success: #1E7A4C;
	--color-success-bg: #E6F4EC;
	--color-warning: #8A5B00;
	--color-warning-bg: #FDF1DA;
	--color-info: #1B5E82;
	--color-info-bg: #E6F1F7;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 1px 3px rgba(16, 40, 32, 0.08), 0 1px 2px rgba(16, 40, 32, 0.06);
	--shadow-md: 0 4px 14px rgba(16, 40, 32, 0.10);
	--container-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.55;
	font-size: 16px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Sticky footer: main grows to fill leftover space so the footer always
   reaches the bottom of the viewport, even on short-content pages. */
.site-header, .site-footer { flex-shrink: 0; }
body > main { flex: 1 0 auto; }

/* Breathing room below the sticky header for pages that go straight into
   a .container (no .hero). The hero block supplies its own padding, so
   this only targets pages where .container is main's first child. */
main > .container:first-child { padding-top: 28px; }
main > .container:last-child { padding-bottom: 32px; }

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 16px;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; margin-top: 32px; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 14px; }
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.text-muted { color: var(--color-text-muted); }

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

.site-header {
	background: var(--color-primary);
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: var(--shadow);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
}
.site-header .brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #fff;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
	flex-shrink: 0;
}
.site-header .brand:hover { text-decoration: none; opacity: 0.92; }
.brand-mark { display: block; flex-shrink: 0; }
.site-header nav.primary-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 1;
}
.site-header nav.primary-nav > a,
.site-header nav.primary-nav .nav-dropdown > a {
	color: rgba(255,255,255,0.88);
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 0.92rem;
	white-space: nowrap;
	display: inline-block;
}
.site-header nav.primary-nav a:hover,
.site-header nav.primary-nav a.active {
	background: rgba(255,255,255,0.14);
	color: #fff;
	text-decoration: none;
}
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	min-width: 180px;
	padding: 6px;
	z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
	display: block;
}
.nav-dropdown-menu a {
	display: block;
	color: var(--color-text) !important;
	padding: 9px 12px;
	border-radius: var(--radius-sm);
	white-space: nowrap;
	font-weight: 600;
	font-size: 0.9rem;
}
.nav-dropdown-menu a:hover {
	background: var(--color-primary-light) !important;
	color: var(--color-primary-dark) !important;
	text-decoration: none;
}
.nav-toggle {
	display: none;
	background: none;
	border: none;
	color: #fff;
	font-size: 1.5rem;
	cursor: pointer;
	padding: 4px 8px;
}
.nav-toggle-checkbox { display: none; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.site-header nav.primary-nav {
		display: none;
		position: absolute;
		top: 60px;
		left: 0;
		right: 0;
		background: var(--color-primary-dark);
		flex-direction: column;
		align-items: stretch;
		padding: 8px;
		gap: 2px;
		box-shadow: var(--shadow-md);
		max-height: calc(100vh - 60px);
		overflow-y: auto;
	}
	.nav-toggle-checkbox:checked ~ nav.primary-nav {
		display: flex;
	}
	.site-header nav.primary-nav > a,
	.site-header nav.primary-nav .nav-dropdown > a { padding: 12px 14px; }
	.nav-dropdown-menu {
		display: block;
		position: static;
		border: none;
		box-shadow: none;
		background: transparent;
		padding: 0 0 0 14px;
	}
	.nav-dropdown-menu a { color: rgba(255,255,255,0.8) !important; }
	.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
}

/* ---------- Hero ---------- */

.hero {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	color: #fff;
	padding: 40px 0 48px;
	margin-bottom: 28px;
}
.hero h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.hero .lead { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 620px; }
.hero .actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

@media (min-width: 640px) {
	.hero h1 { font-size: 2.4rem; }
}

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

.btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 0.95rem;
	border: 2px solid transparent;
	cursor: pointer;
	text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-accent); color: #1A1400; }
.btn-primary:hover { background: var(--color-accent-dark); color: #1A1400; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-default { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
.btn-default:hover { background: var(--color-primary-light); }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Cards / surfaces ---------- */

.card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 20px;
	margin-bottom: 20px;
}
.card h3 { margin-top: 0; }

.grid-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
@media (min-width: 720px) {
	.grid-2 { grid-template-columns: 1fr 1fr; }
}

.badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 3px 9px;
	border-radius: 999px;
	margin-left: 6px;
	vertical-align: middle;
}
.badge-jackpot { background: var(--color-accent); color: #1A1400; }
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-info { background: var(--color-info-bg); color: var(--color-info); }

.alert {
	padding: 14px 16px;
	border-radius: var(--radius);
	margin-bottom: 18px;
	border: 1px solid transparent;
}
.alert-info { background: var(--color-info-bg); color: var(--color-info); border-color: rgba(27,94,130,0.15); }
.alert-success { background: var(--color-success-bg); color: var(--color-success); border-color: rgba(30,122,76,0.15); }
.alert-warning { background: var(--color-warning-bg); color: var(--color-warning); border-color: rgba(138,91,0,0.15); }

/* ---------- Tables ---------- */

.table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
	margin-bottom: 20px;
}
table.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
}
table.data-table th,
table.data-table td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid var(--color-border);
	white-space: nowrap;
}
table.data-table th {
	background: var(--color-primary-light);
	color: var(--color-primary-dark);
	font-weight: 700;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
table.data-table tbody tr:hover { background: var(--color-primary-light); }
table.data-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */

.form-row { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
input[type="text"], input[type="search"], input[type="number"], select, textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 1rem;
	font-family: inherit;
	background: var(--color-surface);
	color: var(--color-text);
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-light);
}
.form-inline-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
	margin-bottom: 14px;
}
.form-inline-fields .form-row { margin-bottom: 0; flex: 1 1 160px; }

.number-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}
@media (min-width: 560px) {
	.number-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Pagination ---------- */

.pagination { display: flex; gap: 6px; flex-wrap: wrap; padding: 0; list-style: none; margin: 16px 0; }
.pagination li a, .pagination li span {
	display: block;
	padding: 8px 13px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	font-weight: 600;
	font-size: 0.9rem;
}
.pagination li.active a, .pagination li.active span {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}
.pagination li a:hover { background: var(--color-primary-light); text-decoration: none; }

/* ---------- Stat tiles ---------- */

.stat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin: 20px 0;
}
@media (min-width: 640px) {
	.stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-tile {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 16px;
	text-align: center;
}
.stat-tile .value { font-size: 1.5rem; font-weight: 800; color: var(--color-primary-dark); }
.stat-tile .label { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 2px; }

/* ---------- Leaderboard bars ---------- */

.leaderboard-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	border-bottom: 1px solid var(--color-border);
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-rank { width: 24px; font-weight: 700; color: var(--color-text-muted); flex-shrink: 0; }
.leaderboard-name { width: 110px; font-weight: 600; flex-shrink: 0; }
.leaderboard-bar-wrap { flex: 1; background: var(--color-primary-light); border-radius: 4px; height: 18px; overflow: hidden; }
.leaderboard-bar { background: var(--color-primary); height: 100%; border-radius: 4px; }
.leaderboard-count { width: 70px; text-align: right; font-weight: 700; font-size: 0.88rem; flex-shrink: 0; }

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

.site-footer {
	margin-top: 48px;
	background: #0F1F1A;
	color: rgba(255,255,255,0.75);
	padding: 32px 0;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer .footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-bottom: 20px;
}
@media (min-width: 640px) {
	.site-footer .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .fine-print { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ---------- Misc content pages ---------- */

.faq-item { border-bottom: 1px solid var(--color-border); padding: 16px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin-bottom: 6px; }

.content-page-body { max-width: 760px; }
.content-page-body h2 { margin-top: 28px; }
.content-page-body ul, .content-page-body ol { padding-left: 22px; }
.content-page-body li { margin-bottom: 6px; }

/* ---------- Cookie consent banner ---------- */

.cookie-consent-banner {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	background: var(--color-surface);
	border-top: 1px solid var(--color-border);
	box-shadow: 0 -4px 14px rgba(16, 40, 32, 0.12);
	padding: 14px 0;
}
.cookie-consent-inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}
.cookie-consent-inner p { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }
.cookie-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (min-width: 720px) {
	.cookie-consent-inner { flex-direction: row; align-items: center; justify-content: space-between; }
	.cookie-consent-inner p { flex: 1; margin-right: 20px; }
}

.lead-paragraph {
	font-size: 1.05rem;
	color: var(--color-text-muted);
	max-width: 680px;
	margin-bottom: 20px;
}
