/**
 * Minecraft APK Pro — lightweight styles (~12KB)
 */

:root {
	--map-primary: #40a74d;
	--map-accent: #cc6b2d;
	--map-dark: #1a202c;
	--map-text: #2d3748;
	--map-muted: #718096;
	--map-bg: #f7fafc;
	--map-white: #fff;
	--map-border: #e2e8f0;
	--map-max: 1290px;
	--map-radius: 6px;
	--map-shadow: 0 15px 15px -10px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--map-text);
	background: var(--map-bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #2563eb;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.map-container {
	width: 100%;
	max-width: var(--map-max);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.map-skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 99999;
	clip: auto;
	width: auto;
	height: auto;
	padding: 12px 20px;
	background: var(--map-dark);
	color: var(--map-white);
	text-decoration: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Header */
.map-header {
	background: var(--map-white);
	border-top: 2px solid var(--map-primary);
	border-bottom: 2px solid var(--map-primary);
}

.map-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	min-height: 72px;
}

.map-branding a,
.map-branding__text {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--map-primary);
	text-decoration: none;
}

.custom-logo-link img {
	max-height: 80px;
	width: auto;
}

.map-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 8px;
	background: transparent;
	border: 1px solid var(--map-border);
	border-radius: 4px;
	cursor: pointer;
}

.map-nav-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--map-text);
}

.map-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.map-nav__list li {
	position: relative;
}

.map-nav__list a {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.7rem 0.95rem;
	color: var(--map-white);
	background: var(--map-accent);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.map-nav__list a:hover,
.map-nav__list li:hover > a,
.map-nav__list li:focus-within > a,
.map-nav__list .current-menu-item > a,
.map-nav__list .current_page_item > a,
.map-nav__list .current-menu-ancestor > a {
	background: var(--map-primary);
	color: var(--map-white);
	text-decoration: none;
}

/* Dropdown caret for parent items */
.map-nav__list .menu-item-has-children > a::after {
	content: "";
	flex-shrink: 0;
	width: 0;
	height: 0;
	margin-left: 2px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}

/* Sub-menu (dropdown) — hidden by default, shown on hover/focus */
.map-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 200;
	min-width: 215px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--map-dark);
	box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.map-nav__list li:hover > .sub-menu,
.map-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.map-nav__list .sub-menu a {
	background: var(--map-dark);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-weight: 500;
}

.map-nav__list .sub-menu a:hover,
.map-nav__list .sub-menu li:hover > a {
	background: var(--map-primary);
}

/* Nested (third level) submenu opens to the side */
.map-nav__list .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

/* Submenu toggle button (only visible on mobile) */
.map-submenu-toggle {
	display: none;
}

/* Main content */
.map-main {
	padding: 2rem 0 3rem;
}

.map-content-wrap {
	background: var(--map-white);
	box-shadow: var(--map-shadow);
	padding: 2rem 0;
}

.map-entry {
	padding: 0 1.5rem 1.5rem;
}

/* Section headings */
.map-section-heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	font-size: clamp(1rem, 2.5vw, 1.35rem);
	font-weight: 700;
	line-height: 1.4;
	color: var(--map-white);
	background: var(--map-accent);
	border: 1px solid var(--map-dark);
	border-left: 8px solid var(--map-dark);
}

.map-section-heading__icon {
	flex-shrink: 0;
	display: inline-flex;
}

.map-hero__intro {
	text-align: center;
	margin: 0 0 1.5rem;
	color: var(--map-text);
}

/* App info box */
.map-app-box {
	display: grid;
	grid-template-columns: minmax(140px, 360px) 1fr;
	gap: 1rem;
	padding: 1.5rem 0.5rem;
	border: 1px solid var(--map-primary);
	border-left: 8px solid var(--map-primary);
	border-right: 8px solid var(--map-primary);
	margin-bottom: 1.5rem;
}

.map-app-box__media {
	display: flex;
	align-items: center;
	justify-content: center;
}

.map-app-box__img {
	border-radius: 4px;
	max-width: 360px;
	width: 100%;
}

.map-app-box__placeholder {
	opacity: 0.85;
}

.map-app-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.map-app-table th,
.map-app-table td {
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--map-border);
	text-align: left;
	vertical-align: top;
}

.map-app-table tbody tr:nth-child(odd) {
	background: #f3f4f5;
}

.map-app-table th {
	font-weight: 600;
	width: 42%;
}

/* Download button */
.map-download-wrap {
	margin: 0 0 1.5rem;
}

.map-download-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 1rem 1.5rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--map-white);
	background: var(--map-primary);
	border: none;
	border-radius: 4px;
	text-decoration: none;
	transition: filter 0.15s ease;
}

.map-download-btn:hover {
	filter: brightness(1.05);
	text-decoration: none;
	color: var(--map-white);
}

.map-download-btn--inline {
	width: auto;
	display: inline-flex;
}

/* Table of contents */
.map-toc {
	margin-bottom: 1.5rem;
	border-left: 8px solid var(--map-dark);
	border-right: 8px solid var(--map-dark);
}

.map-toc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 1rem;
	background: var(--map-accent);
	color: var(--map-white);
}

.map-toc__title {
	font-weight: 700;
	font-size: 1.1rem;
}

.map-toc__toggle {
	background: transparent;
	border: none;
	color: var(--map-white);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.25rem;
}

.map-toc__list {
	list-style: disc;
	margin: 0;
	padding: 1rem 1.5rem 1rem 2rem;
	background: var(--map-accent);
	color: var(--map-white);
}

.map-toc__list a {
	color: var(--map-white);
	text-decoration: underline;
}

.map-toc__item--h3 {
	margin-left: 1rem;
	font-size: 0.95rem;
}

/* Entry content */
.map-entry-content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--map-text);
}

.map-entry-content p {
	margin: 0 0 1.1em;
}

/* Lead paragraph */
.map-entry-content > p:first-of-type {
	font-size: 1.14rem;
	color: #384656;
}

.map-entry-content a {
	color: var(--map-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.map-entry-content a:hover {
	color: var(--map-accent);
}

.map-entry-content strong {
	color: var(--map-dark);
}

/* H2 — branded bar heading (auto styled) */
.map-entry-content h2 {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 2em 0 0.85em;
	padding: 0.8rem 1.1rem;
	font-size: clamp(1.2rem, 2.6vw, 1.55rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--map-white);
	background: linear-gradient(90deg, var(--map-accent), #b0561f);
	border-left: 8px solid var(--map-dark);
	border-radius: 0 var(--map-radius) var(--map-radius) 0;
	box-shadow: var(--map-shadow);
}

.map-entry-content h2::before {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 24px;
	background: var(--map-primary);
	border-radius: 2px;
}

/* H3 — accent bar heading */
.map-entry-content h3 {
	margin: 1.7em 0 0.65em;
	padding: 0.15rem 0 0.15rem 0.95rem;
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	font-weight: 700;
	color: var(--map-dark);
	border-left: 5px solid var(--map-primary);
}

.map-entry-content h4 {
	margin: 1.4em 0 0.5em;
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--map-accent);
}

/* Lists with custom markers */
.map-entry-content ul,
.map-entry-content ol {
	margin: 0 0 1.3em;
	padding: 0;
	list-style: none;
}

.map-entry-content li {
	position: relative;
	margin: 0 0 0.6em;
	padding: 0.1em 0 0.1em 1.9rem;
}

.map-entry-content ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 12px;
	height: 12px;
	background: var(--map-primary);
	border-radius: 3px;
	transform: rotate(45deg);
}

.map-entry-content ol {
	counter-reset: map-counter;
}

.map-entry-content ol > li {
	counter-increment: map-counter;
	padding-left: 2.4rem;
	min-height: 1.9rem;
}

.map-entry-content ol > li::before {
	content: counter(map-counter);
	position: absolute;
	left: 0;
	top: 0.05em;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--map-white);
	background: var(--map-accent);
	border-radius: 50%;
}

.map-entry-content li ul,
.map-entry-content li ol {
	margin: 0.5em 0 0;
}

/* Blockquote / callout */
.map-entry-content blockquote {
	position: relative;
	margin: 0 0 1.5em;
	padding: 1.1rem 1.25rem 1.1rem 3.1rem;
	background: #eef7ef;
	border-left: 6px solid var(--map-primary);
	border-radius: 0 var(--map-radius) var(--map-radius) 0;
	font-style: italic;
	color: #33413a;
}

.map-entry-content blockquote::before {
	content: "\201C";
	position: absolute;
	left: 0.75rem;
	top: 0.35rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.6rem;
	line-height: 1;
	color: var(--map-primary);
}

.map-entry-content blockquote p:last-child {
	margin-bottom: 0;
}

/* Tables */
.map-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
	border-radius: var(--map-radius);
	overflow: hidden;
	box-shadow: var(--map-shadow);
}

.map-entry-content table th {
	background: var(--map-accent);
	color: var(--map-white);
	font-weight: 600;
	text-align: left;
}

.map-entry-content table td,
.map-entry-content table th {
	border: 1px solid var(--map-border);
	padding: 0.7em 0.85em;
}

.map-entry-content table tbody tr:nth-child(even),
.map-entry-content table tr:nth-child(even) {
	background: #f3f7f4;
}

/* Highlight / callout box helper (usable in editor) */
.map-entry-content .map-note {
	margin: 0 0 1.5em;
	padding: 1rem 1.25rem;
	background: #fff6ee;
	border: 1px solid #f0c9a5;
	border-left: 6px solid var(--map-accent);
	border-radius: 0 var(--map-radius) var(--map-radius) 0;
}

.map-entry-content figure {
	margin: 0 0 1.5em;
}

.map-entry-content img {
	margin: 0 auto;
	border-radius: var(--map-radius);
}

.map-entry-content figure img {
	box-shadow: var(--map-shadow);
}

.map-entry-content figcaption {
	margin-top: 0.5em;
	text-align: center;
	font-size: 0.9rem;
	color: var(--map-muted);
}

/* Contact form */
.map-contact-form {
	max-width: 640px;
}

.map-contact-form label {
	display: block;
	margin-bottom: 1rem;
	font-weight: 600;
	color: var(--map-dark);
}

.map-contact-form input,
.map-contact-form textarea {
	display: block;
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.7rem 0.85rem;
	font: inherit;
	color: var(--map-text);
	background: var(--map-white);
	border: 1px solid var(--map-border);
	border-radius: var(--map-radius);
}

.map-contact-form input:focus,
.map-contact-form textarea:focus {
	outline: none;
	border-color: var(--map-primary);
	box-shadow: 0 0 0 3px rgba(64, 167, 77, 0.15);
}

.map-contact-form textarea {
	min-height: 150px;
	resize: vertical;
}

.map-form-notice {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	border-radius: var(--map-radius);
	font-weight: 600;
}

.map-form-notice--ok {
	background: #e6f4ea;
	color: #1e7a34;
	border: 1px solid #b7e0c1;
}

.map-form-notice--err {
	background: #fdecec;
	color: #b3261e;
	border: 1px solid #f3c0bd;
}

/* FAQ accordion (native details) */
.map-entry-content .wp-block-details,
.map-entry-content details.map-faq {
	margin-bottom: 0.75rem;
	border: 1px solid var(--map-dark);
	border-left: 8px solid var(--map-dark);
	border-radius: var(--map-radius);
	overflow: hidden;
}

.map-entry-content summary {
	padding: 14px 16px;
	font-weight: 600;
	cursor: pointer;
	background: #f2f2f2;
	list-style: none;
}

.map-entry-content summary::-webkit-details-marker {
	display: none;
}

.map-entry-content details[open] summary {
	background: #be530b;
	color: var(--map-white);
}

/* Page title */
.map-page-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 1rem;
	color: var(--map-dark);
}

.map-page-header {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--map-primary);
}

/* Blog cards */
.map-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	padding: 0 1.5rem 2rem;
}

.map-card {
	background: var(--map-white);
	border: 1px solid var(--map-border);
	border-radius: var(--map-radius);
	overflow: hidden;
	box-shadow: var(--map-shadow);
}

.map-card__thumb img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
}

.map-card__body {
	padding: 1rem 1.25rem 1.25rem;
}

.map-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
}

.map-card__title a {
	color: var(--map-dark);
	text-decoration: none;
}

.map-card__excerpt {
	margin: 0 0 0.75rem;
	color: var(--map-muted);
	font-size: 0.95rem;
}

.map-card__link {
	font-weight: 600;
	color: var(--map-primary);
}

/* Post nav */
.map-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--map-border);
}

/* Footer */
.map-footer {
	background: var(--map-white);
	border-top: 2px solid var(--map-primary);
	margin-top: 2rem;
}

.map-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	padding: 2rem 0;
}

.map-footer__title {
	font-size: 1.1rem;
	margin: 0 0 1rem;
	color: var(--map-dark);
}

.map-footer__about {
	color: var(--map-muted);
	font-size: 0.95rem;
}

.map-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.map-footer__menu a {
	color: var(--map-dark);
	text-decoration: none;
}

.map-footer__menu a:hover {
	color: var(--map-primary);
}

.map-footer__bottom {
	padding: 1.5rem 0;
	border-top: 2px solid var(--map-primary);
	text-align: center;
	font-size: 0.9rem;
	color: var(--map-muted);
}

/* Pagination */
.navigation.pagination {
	padding: 0 1.5rem 2rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.page-numbers {
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--map-border);
	text-decoration: none;
}

.page-numbers.current {
	background: var(--map-primary);
	color: var(--map-white);
	border-color: var(--map-primary);
}

/* 404 */
.map-404 {
	padding: 2rem 1.5rem;
	text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
	.map-app-box {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.map-app-box__media {
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.map-nav-toggle {
		display: flex;
	}

	.map-nav {
		display: none;
		width: 100%;
		order: 3;
	}

	.map-nav.is-open {
		display: block;
	}

	.map-nav__list {
		flex-direction: column;
	}

	.map-nav__list a {
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	}

	.map-nav__list li {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
	}

	.map-nav__list li > a {
		flex: 1 1 auto;
	}

	/* Hide desktop caret; use toggle button on mobile */
	.map-nav__list .menu-item-has-children > a::after {
		display: none;
	}

	.map-submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		border: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
		border-left: 1px solid rgba(255, 255, 255, 0.25);
		background: var(--map-accent);
		color: var(--map-white);
		font-size: 1.35rem;
		line-height: 1;
		cursor: pointer;
	}

	/* Submenus render inline and stay collapsed until toggled */
	.map-nav__list .sub-menu {
		position: static;
		width: 100%;
		min-width: 0;
		flex: 1 1 100%;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		display: none;
	}

	.map-nav__list .sub-menu.is-open {
		display: block;
	}

	.map-nav__list .sub-menu a {
		padding-left: 1.9rem;
		background: #2a3341;
	}

	.map-nav__list .sub-menu .sub-menu {
		left: 0;
	}

	.map-footer__grid {
		grid-template-columns: 1fr;
	}

	.map-content-wrap {
		padding: 1rem 0;
	}

	.map-entry {
		padding: 0 1rem 1rem;
	}

	.map-main {
		padding: 1.25rem 0 2rem;
	}
}

@media (max-width: 480px) {
	.map-app-table th,
	.map-app-table td {
		display: block;
		width: 100%;
	}

	.map-app-table th {
		border-bottom: none;
		padding-bottom: 0.25rem;
	}

	.map-app-table td {
		padding-top: 0;
	}
}
