/*
Theme Name: Rolls game
Theme URI: http://rolls.local
Description: Readable layout for the Rolls game guides. Page copy lives in wp-content/rolls-content.
Template: twentytwentyfive
Version: 1.2.4
Text Domain: rolls-game
*/

html {
	font-size: 16px;
}

body {
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.75;
}

h1,
.wp-block-post-title,
.wp-block-post-content h1 {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 1rem;
}

h2,
.wp-block-post-content h2 {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
	margin: 1.75rem 0 0.75rem;
}

.wp-block-post-content h2.rolls-intro-title {
	font-family: "Segoe UI", system-ui, sans-serif;
	font-weight: 700;
}

.wp-block-post-content strong {
	font-weight: 700;
}

.wp-block-post-content .rolls-section-title {
	font-weight: 700;
}

h3,
.wp-block-post-content h3 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	margin: 1.25rem 0 0.5rem;
}

h4,
.wp-block-post-content h4 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.wp-block-post-content p,
.wp-block-post-content li,
.wp-block-post-content td,
.wp-block-post-content th {
	font-size: 16px;
	line-height: 1.75;
}

.wp-block-post-content ul,
.wp-block-post-content ol {
	padding-left: 1.25rem;
}

.wp-block-post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.75rem 0 1.3rem;
	font-size: 16px;
}

.wp-block-post-content th,
.wp-block-post-content td {
	border: 1px solid #d8d8d8;
	padding: 0.55rem 0.7rem;
	text-align: left;
	vertical-align: top;
}

.wp-block-post-content th {
	background: #f5f5f5;
}

.wp-block-post-content table.rolls-spec th {
	background: #fff;
	color: #1e293b;
	font-weight: 600;
	text-align: center;
}

.wp-block-post-content table.rolls-spec td:first-child {
	color: #1e293b;
	font-weight: 800;
}

.wp-block-post-content .rolls-spec-rule {
	border: 0;
	border-top: 2px solid #d5dbe3;
	margin: 1.6rem auto 0.2rem;
	width: 4.5rem;
}

.wp-block-post-content .rolls-screens {
	display: flex;
	gap: 0.75rem;
	margin: 1.25rem 0 0.25rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding-bottom: 0.4rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.wp-block-post-content .rolls-screens img {
	border-radius: 16px;
	flex: 0 0 72%;
	height: auto;
	scroll-snap-align: start;
	width: 72%;
}

.wp-block-post-content .rolls-hero-logo {
	margin: 1.25rem 0 1rem;
	text-align: center;
}

.wp-block-post-content .rolls-hero-logo img {
	display: inline-block;
	width: min(320px, 78vw);
	height: auto;
}

.wp-block-post-content .rolls-download {
	margin: 0 0 1.5rem;
	text-align: center;
}

.wp-block-post-content .rolls-download a {
	background: #f2a602;
	border-radius: 10px;
	color: #fff;
	display: inline-block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.85rem 1.6rem;
	text-decoration: none;
}

.wp-block-post-content .rolls-disclaimer {
	margin-top: 2rem;
	color: #444;
	font-size: 14px;
	line-height: 1.6;
}

.rolls-site-header .alignwide {
	flex-wrap: nowrap;
	align-items: center;
}

.rolls-site-header .rolls-brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	width: auto;
	gap: 0.75rem;
}

.rolls-site-header .wp-block-navigation {
	width: auto;
	flex: 0 1 auto;
	margin-left: auto;
}

.rolls-site-header .wp-block-navigation-item__content {
	font-size: 16px;
	font-weight: 400;
}

.rolls-site-header .rolls-brand .wp-block-site-logo,
.rolls-site-header .rolls-brand .wp-block-site-title {
	margin: 0;
	line-height: 1;
}

.rolls-site-header .wp-block-site-logo img,
.rolls-site-header .custom-logo-link img {
	width: 48px;
	height: 48px;
	display: block;
}

.rolls-site-header .rolls-brand .wp-block-site-title a {
	color: #1e293b;
	font-family: "Segoe UI", system-ui, sans-serif;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
	text-decoration: none;
}

@media (max-width: 600px) {
	.rolls-site-header .rolls-brand {
		gap: 0.75rem;
	}

	.rolls-site-header .wp-block-site-logo img,
	.rolls-site-header .custom-logo-link img {
		width: 40px;
		height: 40px;
	}

	.rolls-site-header .rolls-brand .wp-block-site-title a {
		font-size: 18px;
	}

	h1,
	.wp-block-post-title,
	.wp-block-post-content h1 {
		font-size: 26px;
	}

	h2,
	.wp-block-post-content h2 {
		font-size: 22px;
	}

	h3,
	.wp-block-post-content h3 {
		font-size: 18px;
	}
}

.rolls-site-footer p {
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.rolls-site-footer a {
	color: #1e293b;
	text-decoration: underline;
}

.rolls-breadcrumb {
	color: #444;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 1rem;
}

.rolls-breadcrumb a {
	color: #1e293b;
	text-decoration: underline;
}

.rolls-404 .wp-block-search__inside-wrapper {
	border: 1px solid #d8d8d8;
	max-width: 28rem;
}

.rolls-404 .wp-block-search__input,
.rolls-404 .wp-block-search__button {
	font-size: 16px;
	padding: 0.65rem 0.85rem;
}

.rolls-404 .wp-block-search__button {
	background: #1e293b;
	color: #fff;
}

.wp-block-navigation__responsive-container.is-menu-open {
	background-color: #0c0c0e !important;
	color: #f7f3ea;
	padding: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding: 5.25rem 1.75rem 2.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: #f7f3ea;
	right: 1.15rem;
	top: 1.15rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	justify-content: flex-start !important;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid rgba(224, 184, 77, 0.28);
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: #f7f3ea !important;
	font-size: 22px;
	font-weight: 500;
	justify-content: flex-start;
	letter-spacing: 0.06em;
	line-height: 1.3;
	padding: 1.15rem 0.15rem;
	text-decoration: none;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: #e0b84d !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus {
	outline: 1px solid #e0b84d;
	outline-offset: 6px;
}
