/*
 * **********************************************************************
 * Mahjongg Game Etiquette Page Styles
 *
 * Styles for the [etiquette_page] shortcode.
 * Loaded only on the page with slug "etiquette".
 *
 * @version  1.1.3
 * @updated  2026-08-25
 * **********************************************************************
 */

/* =============================================================================
   Page chrome
   ============================================================================= */

.mah-etiquette-page .entry-title,
.mah-etiquette-page .entry-hero-container-inner {
	display: none;
}

/* Kadence's #primary carries a fixed 80px margin-top for its title
   area regardless of whether a title renders — zero it so the hero
   sits flush under the header instead of leaving a gap of tiled
   background between the nav and the hero. */
.mah-etiquette-page #primary {
	margin-top: 0;
}

.mah-etiquette-page .content-bg {
	border-radius: var(--mah-radius-xl);
	overflow: hidden;
}

/* =============================================================================
   Wrapper
   ============================================================================= */

.mah-etq {
	font-family: inherit;
	color: inherit;
}

:root:has(.mah-etiquette-page) {
	scroll-behavior: smooth;
}

.mah-etq [id] {
	scroll-margin-top: 32px;
}

/* =============================================================================
   Hero
   ============================================================================= */

.etq-hero {
	background: linear-gradient(135deg, var(--mah-header-bg) 0%, var(--mah-green-mid) 100%);
	padding: 80px 24px;
	text-align: center;
}

.etq-hero__inner {
	margin: 0 auto;
	max-width: 760px;
}

.etq-hero__icons {
	font-size: var(--mah-font-5xl2);
	letter-spacing: .3em;
	margin-bottom: 20px;
	opacity: .9;
}

.etq-hero__title {
	color: var(--mah-white);
	font-size: var(--mah-font-hero);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 12px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.etq-hero__subtitle {
	color: rgba(255, 255, 255, .85);
	font-size: var(--mah-font-lg2);
	font-weight: 600;
	margin: 0 0 24px;
}

.etq-hero__lead {
	color: rgba(255, 255, 255, .9);
	font-size: var(--mah-font-md);
	line-height: 1.75;
	margin: 0;
}

/* =============================================================================
   Quick reference
   ============================================================================= */

.etq-quickref {
	background: var(--mah-green-tint);
	padding: 56px 24px;
}

.etq-quickref__inner {
	margin: 0 auto;
	max-width: 980px;
	text-align: center;
}

.etq-quickref__heading {
	color: var(--mah-green-darkest);
	font-size: var(--mah-font-3xl2);
	font-weight: 700;
	margin: 0 0 36px;
}

.etq-quickref__grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, 1fr);
}

.etq-qr-card {
	background: var(--mah-white);
	border: 1.5px solid #e3ede7;
	border-radius: var(--mah-radius-lg);
	display: block;
	padding: 22px 14px;
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.etq-qr-card:hover {
	border-color: #aad4b8;
	box-shadow: 0 4px 20px rgba(43, 127, 75, .12);
	transform: translateY(-2px);
}

.etq-qr-card__icon {
	font-size: var(--mah-font-5xl);
	line-height: 1;
	margin-bottom: 10px;
}

.etq-qr-card h3 {
	color: var(--mah-green-darkest);
	font-size: var(--mah-font-sm2);
	font-weight: 700;
	margin: 0;
}

/* =============================================================================
   Content sections
   ============================================================================= */

.etq-section {
	padding: 64px 24px;
}

.etq-section--white { background: var(--mah-white); }
.etq-section--cream { background: rgba(255, 253, 245, .96); }

.etq-inner {
	margin: 0 auto;
	max-width: 760px;
	text-align: center;
}

.etq-inner__icon {
	background: var(--mah-green-tint);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--mah-font-5xl2);
	height: 72px;
	width: 72px;
	margin: 0 auto 20px;
}

.etq-heading {
	color: var(--mah-green-darkest);
	font-size: var(--mah-font-3xl2);
	font-weight: 700;
	margin: 0 0 18px;
}

.etq-inner p {
	color: var(--mah-grey-600);
	font-size: var(--mah-font-md);
	line-height: 1.8;
	margin: 0;
	text-align: left;
}

.etq-top-link {
	background: var(--mah-green-tint);
	border: 1.5px solid #e3ede7;
	border-radius: var(--mah-radius-xl);
	color: var(--mah-header-bg);
	display: inline-block;
	font-size: var(--mah-font-sm);
	font-weight: 700;
	margin-top: 28px;
	padding: 8px 18px;
	text-decoration: none;
	transition: border-color .2s ease, background-color .2s ease;
}

.etq-top-link:hover {
	background: #e3ede7;
	border-color: #aad4b8;
}

/* =============================================================================
   Closing
   ============================================================================= */

.etq-closing {
	background: var(--mah-header-bg);
	padding: 80px 24px;
	text-align: center;
}

.etq-closing__inner {
	margin: 0 auto;
	max-width: 720px;
}

.etq-closing__icons {
	font-size: var(--mah-font-4xl);
	letter-spacing: .3em;
	margin-bottom: 24px;
	opacity: .9;
}

.etq-closing__quote {
	color: var(--mah-white);
	font-size: var(--mah-font-xl2);
	font-style: italic;
	font-weight: 500;
	line-height: 1.7;
	margin: 0;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media ( max-width: 900px ) {
	.etq-quickref__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media ( max-width: 700px ) {
	.etq-section {
		padding: 48px 20px;
	}

	.etq-quickref {
		padding: 40px 20px;
	}

	.etq-hero {
		padding: 64px 20px;
	}

	.etq-closing {
		padding: 56px 20px;
	}
}
