/* rummynex 7.1.8 — mobile-first */

:root {
	--rn-bg: #f7f3e8;
	--rn-ink: #173230;
	--rn-link: #075e56;
	--rn-teal: #092c2a;
	--rn-teal-deep: #071f1e;
	--rn-gold: #e5a925;
	--rn-gold-soft: #ffc650;
	--rn-muted: #536563;
	--rn-card-border: #ded9cb;
	--rn-radius: 17px;
	--rn-font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--rn-bg);
	color: var(--rn-ink);
	font: 16px/1.65 var(--rn-font);
	padding-bottom: 0;
}

a {
	color: var(--rn-link);
}

img {
	max-width: 100%;
	height: auto;
}

.custom-logo-link {
	display: grid;
	place-items: center;
}

.custom-logo {
	width: calc(70px + 0.1cm);
	height: calc(70px + 0.1cm);
	border-radius: 17px;
	object-fit: cover;
}

/* Header */
.top {
	position: sticky;
	top: 0;
	z-index: 8;
	display: flex;
	align-items: center;
	padding: 12px 4vw;
	background: rgba(9, 44, 42, 0.95);
	backdrop-filter: blur(10px);
}

.brand {
	display: flex;
	gap: 12px;
	align-items: center;
	color: #fff;
	text-decoration: none;
	font-weight: 850;
	line-height: 1.15;
	font-size: calc(16px + 0.1cm);
}

.brand b {
	display: grid;
	place-items: center;
	width: calc(70px + 0.1cm);
	height: calc(70px + 0.1cm);
	border-radius: 17px;
	background: #e9ad31;
	color: #092c2a;
	flex-shrink: 0;
	font-size: calc(22px + 0.1cm);
}

.brand span {
	display: grid;
}

.brand small {
	font-size: calc(10px + 0.1cm);
	color: #bad4cf;
	font-weight: 600;
}

.menu {
	display: block;
	margin-left: auto;
	background: none;
	border: 0;
	color: #fff;
	font-size: 25px;
	cursor: pointer;
	line-height: 1;
	padding: 4px 8px;
}

.primary-nav {
	display: none;
	position: absolute;
	top: 64px;
	left: 0;
	right: 0;
	padding: 18px;
	background: #092c2a;
	flex-direction: column;
	gap: 14px;
}

.primary-nav.open {
	display: flex;
}

.primary-nav .menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.primary-nav a {
	color: #dcebe8;
	text-decoration: none;
	font-weight: 700;
}

.primary-nav a.on,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	color: var(--rn-gold-soft);
}

/* Hero */
.hero.real {
	position: relative;
	overflow: hidden;
	min-height: 640px;
	display: grid;
	align-items: center;
	background: #071f1e;
	color: #fff;
}

.hero.real .hero-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero.real::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 31, 30, 0.88) 0%, rgba(7, 31, 30, 0.95) 70%);
}

.hero.real > div {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 72px 5vw 56px;
}

.hero h1 {
	max-width: 850px;
	margin: 8px 0;
	font-size: clamp(34px, 8vw, 70px);
	line-height: 1.02;
}

.hero p {
	max-width: 750px;
	color: #d5e5e2;
	font-size: 17px;
}

.eyebrow,
.tag {
	color: #a56900;
	letter-spacing: 0.12em;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.hero .eyebrow {
	color: var(--rn-gold-soft);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--rn-gold);
	color: #102b28;
	text-decoration: none;
	font-weight: 850;
	border: 1px solid transparent;
}

.btn.alt {
	color: #fff;
	background: transparent;
	border: 1px solid #9cb8b3;
}

/* Layout */
.wrap {
	max-width: 1180px;
	margin: auto;
	padding: 40px 20px;
}

.content {
	max-width: 850px;
}

.content h1 {
	font-size: clamp(32px, 6vw, 58px);
	line-height: 1.08;
}

.content h2 {
	font-size: 26px;
	line-height: 1.2;
	margin-top: 36px;
}

.lead {
	font-size: 18px;
	color: var(--rn-muted);
}

.page-head {
	padding: 45px 24px;
	background: linear-gradient(120deg, #092c2a, #146159);
	color: #fff;
}

.page-head > div {
	max-width: 1180px;
	margin: auto;
}

.page-head h1 {
	font-size: clamp(32px, 6vw, 62px);
	margin: 0.2em 0;
}

.page-head p {
	max-width: 760px;
	color: #d5e5e2;
	font-size: 18px;
}

.page-head .btn {
	margin-top: 8px;
}

/* Cards grid — mobile single column */
.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.card {
	display: grid;
	grid-template-columns: 58px 1fr;
	gap: 14px;
	padding: 17px;
	background: #fff;
	border: 1px solid var(--rn-card-border);
	border-radius: var(--rn-radius);
	box-shadow: 0 8px 22px rgba(20, 42, 37, 0.06);
}

.card.card-post {
	grid-template-columns: 1fr;
}

.card h3 {
	margin: 2px 0;
	font-size: 19px;
}

.card h3 a {
	text-decoration: none;
	color: var(--rn-link);
}

.card p {
	margin: 4px 0 12px;
	color: var(--rn-ink);
}

.list-icon,
.true-icon {
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: 22%;
	background: #fff;
	box-shadow: 0 7px 18px rgba(11, 40, 35, 0.13);
}

.true-icon {
	width: 72px;
	height: 72px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
	align-items: center;
}

.actions .btn {
	padding: 7px 12px;
}

.center {
	text-align: center;
	margin-top: 28px;
}

/* Explore matrix */
.band {
	background: #e5eee8;
}

.matrix,
.related,
.facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 13px;
}

.matrix a,
.related a,
.fact {
	padding: 19px;
	background: #fff;
	border: 1px solid #d7ddd5;
	border-radius: 14px;
	text-decoration: none;
	color: var(--rn-ink);
}

.matrix strong {
	display: block;
	font-size: 19px;
	margin-bottom: 4px;
	color: var(--rn-teal);
}

/* App single */
.crumbs {
	font-size: 14px;
	color: #657471;
}

.app-hero {
	display: grid;
	grid-template-columns: 78px 1fr;
	gap: 18px;
	align-items: center;
	margin: 18px 0 24px;
}

.app-hero h1 {
	font-size: clamp(28px, 6vw, 42px);
	margin: 0.2em 0;
	line-height: 1.1;
}

.download {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	background: #104b45;
	color: #fff;
	border-radius: 17px;
}

.primary-download {
	margin: 26px 0 20px;
	background: linear-gradient(135deg, #0b403b, #14695f);
	box-shadow: 0 14px 32px rgba(11, 52, 44, 0.15);
}

.primary-download > div,
.bottom-download > div {
	display: grid;
	gap: 4px;
}

.primary-download b,
.bottom-download b {
	font-size: 20px;
}

.primary-download small,
.bottom-download small {
	color: #cfe1dd;
}

.download-kicker {
	color: var(--rn-gold-soft);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.download .btn {
	width: 100%;
	text-align: center;
}

.toc {
	padding: 18px 21px;
	background: #e6eee9;
	border-radius: 10px;
	margin: 18px 0;
}

.toc a {
	display: inline-block;
	margin-right: 17px;
	font-weight: 700;
}

.editorial-image {
	margin: 30px 0 36px;
}

.editorial-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 16px 40px rgba(18, 40, 32, 0.14);
}

.editorial-image figcaption {
	margin-top: 9px;
	color: #5c6d69;
	font-size: 14px;
}

.note {
	padding: 18px 21px;
	background: #fff6d9;
	border-left: 5px solid var(--rn-gold);
	border-radius: 10px;
}

.compare-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.compare-grid > div {
	padding: 18px;
	background: #fff;
	border: 1px solid var(--rn-card-border);
	border-radius: 14px;
}

.compare-grid p {
	margin: 0.3em 0 0;
}

.faq details {
	padding: 14px 18px;
	margin: 10px 0;
	background: #fff;
	border: 1px solid #ddd7c8;
	border-radius: 12px;
}

.faq summary {
	font-weight: 850;
	cursor: pointer;
}

.related-icons a {
	display: flex;
	align-items: center;
	gap: 12px;
}

.related-icons img {
	border-radius: 12px;
	object-fit: cover;
	width: 46px;
	height: 46px;
	flex-shrink: 0;
}

.visual-strip {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	margin: 8px auto 12px;
}

.visual-strip img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 18px;
	display: block;
	box-shadow: 0 12px 28px rgba(18, 40, 32, 0.12);
}

.directory-visual {
	margin: 28px 0 8px;
}

.directory-visual img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	border-radius: 20px;
	display: block;
}

.bottom-download {
	margin: 34px 0 5px;
}

/* Sticky mobile download bar */
.mobile-download {
	position: fixed;
	z-index: 20;
	left: 10px;
	right: 10px;
	bottom: 10px;
	display: grid;
	grid-template-columns: 42px 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	background: rgba(9, 44, 42, 0.96);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 15px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10px);
}

.mobile-download img {
	border-radius: 10px;
	object-fit: cover;
	width: 42px;
	height: 42px;
}

.mobile-download span {
	display: grid;
	line-height: 1.2;
}

.mobile-download small {
	color: #bcd1cd;
}

.mobile-download a {
	padding: 9px 13px;
	border-radius: 10px;
	background: var(--rn-gold);
	color: #102b28;
	text-decoration: none;
	font-weight: 900;
}

body.rummynex-app-single {
	padding-bottom: 78px;
}

/* Footer */
.site-footer {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding: 40px 5vw;
	background: var(--rn-teal-deep);
	color: #b8cbc7;
}

.site-footer strong {
	color: #fff;
	font-size: 21px;
}

.site-footer a {
	display: block;
	color: #d3e3df;
	text-decoration: none;
	margin: 6px 0;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.friend-links {
	grid-column: 1 / -1;
}

.friend-links-title {
	display: block;
	color: #fff;
	margin-bottom: 10px;
	font-size: 16px;
}

.friend-links-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.friend-links-list a {
	display: inline;
	margin: 0;
}

.copy {
	grid-column: 1 / -1;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
	padding-top: 18px;
	margin: 0;
	font-size: 14px;
}

.entry-content details {
	padding: 14px 18px;
	margin: 10px 0;
	background: #fff;
	border: 1px solid #ddd7c8;
	border-radius: 12px;
}

.entry-content summary {
	font-weight: 850;
	cursor: pointer;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.pagination a,
.pagination span {
	padding: 8px 12px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid var(--rn-card-border);
	text-decoration: none;
}

.filter-links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.filter-links a {
	padding: 8px 13px;
	border-radius: 999px;
	background: #e5eee8;
	text-decoration: none;
	font-weight: 700;
	color: var(--rn-ink);
}

.filter-anchor {
	display: block;
	height: 0;
	overflow: hidden;
}

.topic-links {
	margin-top: 36px;
}

.guide-page .editorial-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1536 / 1024;
	object-fit: cover;
	border-radius: 20px;
}

.guide-page > h1 {
	font-size: clamp(32px, 6vw, 58px);
	line-height: 1.08;
	margin: 0.2em 0;
}

/* Tablet+ */
@media (min-width: 761px) {
	.menu {
		display: none;
	}

	.primary-nav {
		display: block;
		position: static;
		margin-left: auto;
		padding: 0;
		background: transparent;
	}

	.primary-nav .menu-list {
		flex-direction: row;
		gap: 18px;
		align-items: center;
	}

	.hero.real {
		min-height: 590px;
	}

	.hero.real::after {
		background: linear-gradient(90deg, rgba(7, 31, 30, 0.96) 0%, rgba(7, 31, 30, 0.8) 42%, rgba(7, 31, 30, 0.12) 72%, transparent);
	}

	.hero p {
		font-size: 19px;
	}

	.wrap {
		padding: 52px 24px;
	}

	.grid {
		grid-template-columns: 1fr 1fr;
		gap: 17px;
	}

	.card {
		grid-template-columns: 72px 1fr;
		padding: 22px;
	}

	.list-icon {
		width: 66px;
		height: 66px;
	}

	.matrix,
	.related,
	.facts {
		grid-template-columns: repeat(3, 1fr);
	}

	.compare-grid {
		grid-template-columns: 1fr 1fr;
	}

	.app-hero {
		grid-template-columns: 110px 1fr;
		gap: 24px;
	}

	.true-icon {
		width: 104px;
		height: 104px;
		border-radius: 25px;
	}

	.download {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.download .btn {
		width: auto;
		white-space: nowrap;
	}

	.mobile-download {
		display: none;
	}

	body.rummynex-app-single {
		padding-bottom: 0;
	}

	.site-footer {
		grid-template-columns: 2fr 1fr;
	}

	.visual-strip {
		grid-template-columns: 1fr 1fr;
		margin: 12px auto 20px;
	}

	.visual-strip img {
		height: 260px;
	}

	.directory-visual img {
		height: 390px;
	}

	.page-head {
		padding: 62px 5vw;
	}
}

/* Large desktop */
@media (min-width: 1100px) {
	.hero.real > div {
		padding-left: 5vw;
		padding-right: 5vw;
	}

	.content h2 {
		font-size: 30px;
	}
}
