/* Casino Toplist (Irish) — template_17.
 *
 * Light, card-per-offer layout. The palette lives in the variables below and is
 * repeated in _theme-vars.blade.php, which the page prints after this file; a
 * domain's own color_fonts is deliberately not applied, since it belongs to
 * whichever template that domain used before.
 *
 * Plain CSS on purpose: no build step and no framework, so the deploy copies
 * one file. System fonts, so there is nothing to host or license. */

:root {
	--primary: #188454;
	--secondary: #136a43;
	--hover: #136a43;
	--bg-primary: #f2efec;
	--text-primary: #1b1b1c;

	/* The call-to-action is its own colour, not --primary: the button is the
	 * one thing on the page that must stay the same deep green whatever the
	 * rest of the palette is set to. */
	--cta: #188454;
	--cta-hover: #136a43;
	--cta-disc: #d3db34;

	/* The offer box: lime outline on a warm, slightly off-white ground. */
	--accent-lime: #d3db34;
	--accent-lime-soft: #e8f0a8;
	--box-bg: #f2efec;
	--badge-tab: #f1b75b;
	--badge-tab-ink: #5b3f12;

	/* The page and footer share a warm ground; the header is green. */
	--page-bg: #f2efec;
	--header-bg: #136a43;
	--footer-bg: var(--page-bg);

	--card: #ffffff;
	--muted: #5c6b7a;
	--border: #e3e8ee;
	--star: #f5a623;
	--badge-bg: #fff4e0;
	--badge-ink: #8a5a00;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 6px 18px rgba(16, 32, 48, .06);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-primary);
	background: var(--page-bg);
	-webkit-text-size-adjust: 100%;
}

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

a {
	color: var(--secondary);
}

.container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ---------- header ---------- */

/* An island, like the cards below it: the green band is the inner element, so
 * the page's ground shows along both edges and above it. The outer element
 * stays full width and keeps the sticky behaviour — making the rounded box
 * itself sticky would leave a transparent strip with content running under it. */
.header {
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 14px 0;
	background: var(--page-bg);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 64px;
	padding: 0 24px;
	background: var(--header-bg);
	border-radius: var(--radius);
	box-shadow: 0 4px 14px rgba(22, 17, 40, .12);
}

.header__logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 19px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

.header__logo img {
	max-height: 38px;
}

.header__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.header__link {
	color: #e3efe7;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.header__link:hover {
	color: #fff;
}

/* Hidden until the nav runs out of room — see the breakpoint below. */
.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: rgba(255, 255, 255, .12);
	cursor: pointer;
}

.burger span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	border-radius: 2px;
	background: #fff;
	transition: transform .2s ease, opacity .15s ease;
}

/* Open: the outer bars cross, the middle one goes. */
.header.is-open .burger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.header.is-open .burger span:nth-child(2) {
	opacity: 0;
}

.header.is-open .burger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
	.burger span {
		transition: none;
	}
}

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease;
}

.btn:hover {
	background: var(--hover);
	color: #fff;
}

.btn--block {
	width: 100%;
}

/* The pill call-to-action: a deep green capsule with the arrow sitting in a
 * light disc. On hover the disc fades out and the arrow slides into its place,
 * so the button reads as moving forward rather than just changing colour. */
.btn--pill {
	position: relative;
	gap: 14px;
	padding: 12px 12px 12px 26px;
	border-radius: 999px;
	background: var(--cta);
	font-size: 16px;
	overflow: hidden;
}

.btn--pill:hover {
	background: var(--cta-hover);
}

/* The disc holds the arrow as a background image rather than an <img>: the
 * arrow has to be dark green on the lime disc and white once the disc fades,
 * and swapping two files is exact where a CSS filter is guesswork. */
.btn__icon {
	display: inline-block;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 50%;
	background: var(--cta-disc) url("../fonts/arrow-dark.svg") center / 18px 18px no-repeat;
	transition: background-color .18s ease, transform .18s ease;
}

@media (hover: hover) {
	.btn--pill:hover .btn__icon {
		background-color: transparent;
		background-image: url("../fonts/arrow-white.svg");
		transform: translateX(5px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.btn__icon {
		transition: none;
	}

	.btn--pill:hover .btn__icon {
		transform: none;
	}
}

/* ---------- hero ---------- */

.hero {
	padding: 40px 0 8px;
}

.hero__title {
	margin: 0 0 12px;
	font-size: 34px;
	line-height: 1.22;
	font-weight: 800;
	letter-spacing: -.3px;
}

.hero__text {
	max-width: 760px;
	margin: 0 0 8px;
	color: var(--muted);
}

.hero__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 24px;
}

.featured {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 18px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-align: center;
}

.featured__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 54px;
}

.featured__logo img {
	max-height: 54px;
	max-width: 150px;
	object-fit: contain;
	border-radius: 8px;
	transition: transform .18s ease, box-shadow .18s ease;
}

.featured__name {
	font-size: 17px;
	font-weight: 700;
}

.featured__bonus {
	color: var(--muted);
	font-size: 15px;
}

/* ---------- section shell ---------- */

.section {
	padding: 34px 0;
}

.section__title {
	margin: 0 0 6px;
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -.2px;
}

.section__lead {
	margin: 0 0 20px;
	color: var(--muted);
}

/* ---------- offer card ---------- */

.offers {
	display: flex;
	flex-direction: column;
	/* Roomy enough for the badge tab, which sits above its card's top edge. */
	gap: 30px;
}

.offer {
	position: relative;
	display: grid;
	grid-template-columns: 54px 200px 1fr 190px;
	gap: 20px;
	align-items: center;
	padding: 20px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* The podium. The first three rows get a thick coloured outline — gold, silver,
 * bronze — so the ranking reads before a single word is. Position-based, so it
 * is the top three of the list, whatever the offers are. */
.offer--podium {
	border-width: 2px;
	border-color: var(--podium, var(--primary));
	box-shadow: 0 0 0 1px var(--podium, var(--primary)), var(--shadow);
}

.offer--rank-1 {
	--podium: #e8b230;
}

.offer--rank-2 {
	--podium: #9aa7b4;
}

.offer--rank-3 {
	--podium: #c08445;
}

.offer--podium .offer__rank {
	background: var(--podium, var(--primary));
	color: #fff;
}

/* No ribbon on the top edge: that is where the badge tab now sits, and the two
 * overlapped. The outline and the coloured rank disc carry the ranking. */

/* is_top is a separate thing: it pins a row to the front. Keep the teal cue
 * for it, but let the podium outline win when both apply. */
.offer--top:not(.offer--podium) {
	border-color: var(--primary);
	box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.offer--top:not(.offer--podium) .offer__rank {
	background: var(--primary);
	color: #fff;
}

.offer__rank {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--bg-primary);
	color: var(--muted);
	font-size: 16px;
	font-weight: 700;
}

.offer__identity {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.offer__logo {
	display: flex;
	align-items: center;
	height: 50px;
}

.offer__logo img {
	max-height: 50px;
	max-width: 160px;
	object-fit: contain;
	object-position: left center;
	border-radius: 8px;
	transition: transform .18s ease, box-shadow .18s ease;
}

/* Hover on the logo: it lifts slightly and picks up a shadow, so the row reads
 * as one clickable unit. Pointer-only — a touch screen has no hover, and on a
 * phone the effect would stick after a tap. */
@media (hover: hover) {
	.offer__logo img:hover,
	.featured__logo img:hover {
		transform: translateY(-2px) scale(1.06);
		box-shadow: 0 6px 16px rgba(16, 32, 48, .18);
	}

	/* The whole card lifts too, a touch less than the logo. */
	.offer {
		transition: transform .18s ease, box-shadow .18s ease;
	}

	.offer:hover {
		transform: translateY(-2px);
		box-shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 10px 26px rgba(16, 32, 48, .10);
	}

	.offer--podium:hover {
		box-shadow: 0 0 0 1px var(--podium, var(--primary)), 0 10px 26px rgba(16, 32, 48, .14);
	}

	.featured {
		transition: transform .18s ease, box-shadow .18s ease;
	}

	.featured:hover {
		transform: translateY(-3px);
		box-shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 12px 28px rgba(16, 32, 48, .12);
	}
}

/* Nobody who asked for less motion gets any of it. */
@media (prefers-reduced-motion: reduce) {
	.offer,
	.featured,
	.offer__logo img,
	.featured__logo img {
		transition: none;
	}

	.offer:hover,
	.featured:hover,
	.offer__logo img:hover,
	.featured__logo img:hover {
		transform: none;
	}
}

.offer__name {
	font-size: 16px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

/* A tab sitting on the card's top edge, pushed out of it — the label reads as
 * attached to the card rather than crammed inside it. */
.offer__badge {
	position: absolute;
	top: 0;
	right: 20px;
	transform: translateY(-100%);
	padding: 3px 11px 2px;
	border-radius: 7px 7px 0 0;
	background: var(--badge-tab);
	color: var(--badge-tab-ink);
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	line-height: 1.5;
	white-space: nowrap;
}

.rating {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rating__stars {
	position: relative;
	width: 104px;
	height: 20px;
	flex: 0 0 104px;
}

.rating__row {
	position: absolute;
	inset: 0;
	display: flex;
	gap: 1px;
	overflow: hidden;
	white-space: nowrap;
}

.rating__row img {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.rating__value {
	font-size: 14px;
	font-weight: 700;
}

.rating__value span {
	color: var(--muted);
	font-weight: 400;
}

/* Bonus box and features side by side, on one line. Auto columns rather than a
 * fixed 1fr 1fr: with only one of the two filled in, it spans the full width
 * instead of leaving a gap where the other would have been. */
.offer__body {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	align-items: center;
	min-width: 0;
}

/* The offer, boxed off: lime outline on a warm ground, so the bonus is read
 * before anything else in the row. */
.bonus-box {
	padding: 14px 16px;
	background: var(--box-bg);
	border: 1.5px solid var(--accent-lime);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(27, 27, 28, .08);
}

.bonus-box__title {
	margin: 0;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
}

.bonus-box__pill {
	display: inline-block;
	margin-top: 8px;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--accent-lime-soft);
	font-size: 15px;
	font-weight: 700;
}

.bonus-box__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 700;
}

.bonus-box__meta em {
	font-style: normal;
	font-weight: 400;
	color: var(--muted);
}

.features {
	min-width: 0;
}

.features__title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
}

.features__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.features__list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--muted);
	font-size: 14.5px;
	line-height: 1.45;
}

.features__list img {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	margin-top: 3px;
}

.figures {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--border);
}

.figures__item {
	display: flex;
	flex-direction: column;
}

.figures__label {
	color: var(--muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .4px;
}

.figures__value {
	font-size: 15px;
	font-weight: 700;
}

.offer__action {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	text-align: center;
}

.offer__verified {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	align-self: center;
	padding: 5px 14px;
	border-radius: 999px;
	background: #e8f1f6;
	color: #2f4858;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.offer__verified img {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

/* ---------- prose (SEO text, inner pages) ---------- */

.prose {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
	overflow-wrap: anywhere;
}

.prose > :first-child {
	margin-top: 0;
}

.prose > :last-child {
	margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3 {
	line-height: 1.3;
	font-weight: 800;
}

.prose h1 {
	font-size: 28px;
}

.prose h2 {
	font-size: 22px;
	margin-top: 26px;
}

.prose h3 {
	font-size: 18px;
	margin-top: 20px;
}

.prose img {
	border-radius: 10px;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	display: block;
	overflow-x: auto;
}

.prose th,
.prose td {
	border: 1px solid var(--border);
	padding: 8px 10px;
	text-align: left;
}

/* ---------- trust strip ---------- */

.trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.trust__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 18px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.trust__icon {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.trust__title {
	font-weight: 700;
}

.trust__text {
	color: var(--muted);
	font-size: 14.5px;
}

/* ---------- faq ---------- */

.faq {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.faq__item {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 16px 18px;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.faq__q::after {
	content: "";
	width: 10px;
	height: 10px;
	flex: 0 0 10px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg);
	transition: transform .15s ease;
}

.faq__item.is-open .faq__q::after {
	transform: rotate(-135deg);
}

.faq__a {
	display: none;
	padding: 0 18px 16px;
	color: var(--muted);
	overflow-wrap: anywhere;
}

.faq__item.is-open .faq__a {
	display: block;
}

/* No JS: everything stays open rather than unreachable. */
.no-js .faq__a {
	display: block;
}

/* ---------- footer ---------- */

.footer {
	margin-top: 10px;
	padding: 36px 0 28px;
	background: var(--footer-bg);
	color: var(--text-primary);
	border-top: 1px solid var(--border);
}

.footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 24px 48px;
	align-items: center;
}

.footer__logo {
	display: inline-flex;
	align-items: center;
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary);
	text-decoration: none;
}

.footer__logo img {
	max-height: 40px;
}

.footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
}

.footer__col {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.footer__col--links {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 12px 28px;
}

@media (max-width: 600px) {
	.footer__nav {
		flex-basis: 100%;
	}
}

.footer__title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--text-primary);
}

.footer__link {
	color: var(--secondary);
	font-size: 14.5px;
	text-decoration: none;
}

.footer__link:hover {
	color: var(--text-primary);
}

.footer__bottom {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 15px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.footer__bottom p {
	margin: 12px 0;
}

.footer__bottom a {
	color: var(--secondary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer__bottom a:hover {
	color: var(--text-primary);
}

.footer .review-footer-trust-images {
	gap: 16px;
	margin-top: 24px;
}

.footer .review-footer-trust-images img {
	max-width: 180px;
	max-height: 80px;
}

.header .review-auth {
	margin-inline-start: auto;
	margin-inline-end: 0;
}

.header .review-auth .review-auth__link {
	color: #fff;
	border-color: rgba(255, 255, 255, .8);
}

.header .review-auth .review-auth__link--register {
	background: #fff;
	color: var(--header-bg);
}

.footer__age {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-right: 8px;
	border: 2px solid var(--muted);
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	vertical-align: middle;
}

/* ---------- popup ---------- */

.popup {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(16, 32, 48, .55);
}

.popup.is-open {
	display: flex;
}

.popup__box {
	width: 100%;
	max-width: 420px;
	padding: 26px 22px;
	background: var(--card);
	border-radius: var(--radius);
	text-align: center;
	position: relative;
}

.popup__close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: none;
	color: var(--muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.popup__text {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 700;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
	.offer {
		grid-template-columns: 44px 170px 1fr;
		grid-template-areas:
			"rank identity body"
			"action action action";
		row-gap: 16px;
	}

	/* Not enough width left beside the logo for two columns, so the two halves
	   stack. Stacked, the bonus goes first: side by side the features lead up
	   to it, but in a single column the offer should be the first thing read. */
	.offer__body {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.offer__body .bonus-box {
		order: -1;
	}

	.offer__rank {
		grid-area: rank;
	}

	.offer__identity {
		grid-area: identity;
	}

	.offer__body {
		grid-area: body;
	}

	.offer__action {
		grid-area: action;
	}
}

/* Below this the links no longer fit beside the logo, so they fold into a
 * panel under the header island and the burger opens it. The panel is absolute
 * rather than part of the flow: in the flow it would push the page down and
 * grow the sticky header as it opened. */
@media (max-width: 860px) {
	.burger {
		display: flex;
	}

	.header__inner {
		position: relative;
	}

	.header__nav {
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		z-index: 30;
		display: none;
		flex-direction: column;
		gap: 0;
		padding: 6px;
		background: var(--header-bg);
		border-radius: var(--radius);
		box-shadow: 0 10px 24px rgba(22, 17, 40, .22);
	}

	.header.is-open .header__nav {
		display: flex;
	}

	/* Without JS nothing can open the panel, so the links stay in the header
	   and the burger that would do nothing is hidden. */
	.no-js .header__nav {
		position: static;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		padding: 0;
		background: none;
		box-shadow: none;
	}

	.no-js .burger {
		display: none;
	}

	.no-js .header__inner {
		flex-wrap: wrap;
	}

	.header__link {
		padding: 12px 14px;
		border-radius: 8px;
		font-size: 15px;
	}

	.header__link:hover {
		background: rgba(255, 255, 255, .1);
	}
}

@media (max-width: 900px) {
	.hero__cards,
	.trust {
		grid-template-columns: 1fr;
	}

	.hero__title {
		font-size: 27px;
	}
}

@media (max-width: 680px) {
	/* The island keeps its shape, with less of everything. */
	.header {
		padding: 10px 0;
	}

	.header__inner {
		gap: 12px;
		min-height: 56px;
		padding: 8px 10px 8px 16px;
	}

	.offer {
		grid-template-columns: 40px 1fr;
		grid-template-areas:
			"rank identity"
			"body body"
			"action action";
		padding: 16px;
		gap: 14px;
	}

	.offer__logo {
		height: 40px;
	}

	.offer__logo img {
		max-height: 40px;
	}

	.offer__bonus {
		font-size: 16px;
	}

	.section__title {
		font-size: 21px;
	}

	.prose {
		padding: 18px;
	}
}
