/**
 * Best Mount Kinabalu — Single blog post (2026 redesign).
 * Printed after the Customizer's Additional CSS on single posts only.
 */

body.single-post {
	--bs-navy: #1565c0;
	--bs-navy-2: #1976d2;
	--bs-orange: #fc7c31;
	--bs-rust: #a9441b;
	--bs-ink: #111a2e;
	--bs-text: #2f3849;
	--bs-muted: #7b8598;
	--bs-line: #e3e7ee;
	--bs-bg: #f6f8fb;
	--bs-radius: 12px;
	--bs-heading: "Montserrat", "Segoe UI", sans-serif;
	background: var(--bs-bg);
}

body.single-post .site-content,
body.single-post .content-area,
body.single-post .site-main,
body.single-post .inside-article {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
	background: transparent;
}

body.single-post .site-content { display: block; }
body.single-post .bmk-breadcrumb,
body.single-post .bmk-announcement-strip,
body.single-post .bmk-page-header-meta,
body.single-post .comments-area,
body.single-post .post-navigation { display: none !important; }

.bs-wrap {
	width: 100%;
	max-width: 1208px;
	margin-inline: auto;
	padding-inline: 24px;
	box-sizing: border-box;
}

/* Hero */

.bs-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 480px;
	padding: 120px 0 44px;
	background: #0b1628 var(--bs-hero-img) center 40% / cover no-repeat;
	color: #fff;
	overflow: hidden;
}

.bs-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, rgba(4, 10, 22, .92) 0%, rgba(4, 10, 22, .55) 45%, rgba(4, 10, 22, .15) 100%),
		linear-gradient(90deg, rgba(4, 10, 22, .45) 0%, rgba(4, 10, 22, 0) 65%);
}

.bs-hero__inner { position: relative; z-index: 1; }
.bs-hero__inner > * { max-width: 720px; }

.bs-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.bs-chip {
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-decoration: none;
	text-transform: uppercase;
}

.bs-chip--orange { background: rgba(252, 124, 49, .22); color: #ffb183; }
.bs-chip--blue { background: rgba(120, 150, 255, .22); color: #c3d0ff; }
a.bs-chip:hover { color: #fff; }

body.single-post .bs-hero__title {
	margin: 0 0 22px;
	color: #fff;
	font-family: var(--bs-heading);
	font-size: clamp(2.1rem, 4.6vw, 3.4rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.02em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.bs-byline { display: flex; align-items: center; gap: 12px; }

.bs-byline__avatar {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: none;
	border: 2px solid rgba(255, 255, 255, .6);
	border-radius: 50%;
	background: var(--bs-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.bs-byline__text { display: flex; flex-direction: column; gap: 2px; }
.bs-byline__name { color: #fff; font-size: 14px; font-weight: 700; }

.bs-byline__meta {
	color: rgba(255, 255, 255, .75);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Layout */

.bs-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 36px;
	align-items: start;
	padding-top: 56px;
	padding-bottom: 88px;
}

.bs-side__sticky {
	position: sticky;
	top: calc(var(--bs-sticky-top, 110px) + 16px);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Article typography */

body.single-post .bs-content {
	max-width: 720px;
	color: var(--bs-text);
	font-size: 15.5px;
	line-height: 1.8;
}

body.single-post .bs-content > * { margin-top: 0; margin-bottom: 1.35em; }

body.single-post .bs-content > p:first-child::first-letter {
	float: left;
	margin: 6px 12px 0 0;
	color: var(--bs-navy);
	font-family: var(--bs-heading);
	font-size: 4.2em;
	font-weight: 800;
	line-height: .8;
}

body.single-post .bs-content h2 {
	margin: 2.1em 0 .7em;
	color: var(--bs-navy);
	font-family: var(--bs-heading);
	font-size: clamp(1.4rem, 2.4vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
}

body.single-post .bs-content h3 {
	margin: 1.8em 0 .5em;
	color: var(--bs-navy);
	font-family: var(--bs-heading);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.35;
}

body.single-post .bs-content h4 { margin: 1.5em 0 .4em; color: var(--bs-ink); font-size: 1.05rem; }

body.single-post .bs-content a { color: var(--bs-navy-2); text-decoration: underline; text-underline-offset: 3px; }
body.single-post .bs-content a:hover { color: var(--bs-navy); }
body.single-post .bs-content strong { color: var(--bs-ink); }

body.single-post .bs-content ul:not(.blocks-gallery-grid) {
	padding: 0;
	list-style: none;
}

body.single-post .bs-content ul:not(.blocks-gallery-grid) > li {
	position: relative;
	margin: 0 0 .7em;
	padding-left: 30px;
}

body.single-post .bs-content ul:not(.blocks-gallery-grid) > li::before {
	content: "";
	position: absolute;
	top: .3em;
	left: 0;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--bs-orange);
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fc7c31' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
	box-sizing: border-box;
}

body.single-post .bs-content ol { padding-left: 1.3em; }
body.single-post .bs-content ol > li { margin-bottom: .6em; padding-left: .3em; }
body.single-post .bs-content ol > li::marker { color: var(--bs-orange); font-weight: 700; }

body.single-post .bs-content blockquote,
body.single-post .bs-content .wp-block-quote,
body.single-post .bs-content .wp-block-pullquote {
	margin: 2em 0;
	padding: 22px 28px;
	border: 0;
	border-left: 4px solid var(--bs-orange);
	border-radius: 0 8px 8px 0;
	background: #eef1f6;
	color: var(--bs-navy);
	font-family: var(--bs-heading);
	font-size: 1.2rem;
	font-style: italic;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
}

body.single-post .bs-content blockquote p { margin: 0; }
body.single-post .bs-content blockquote cite { display: block; margin-top: 10px; color: var(--bs-muted); font-size: 13px; font-style: normal; }

body.single-post .bs-content figure,
body.single-post .bs-content .wp-block-image { margin: 2em 0; }

body.single-post .bs-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

body.single-post .bs-content .wp-block-image:has(figcaption) {
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(16, 24, 40, .08);
}

body.single-post .bs-content .wp-block-image:has(figcaption) img { border-radius: 0; }

body.single-post .bs-content figcaption {
	margin: 0;
	padding: 12px 16px;
	color: var(--bs-muted);
	font-size: 12px;
	font-style: italic;
	text-align: left;
}

body.single-post .bs-content .wp-block-gallery { gap: 16px; }
body.single-post .bs-content .wp-block-gallery img { border-radius: 10px; }

body.single-post .bs-content hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--bs-line); }

body.single-post .bs-content .wp-block-button__link,
body.single-post .bs-content .bmk-button .wp-block-button__link {
	padding: 13px 24px;
	border-radius: 8px;
	background: var(--bs-orange);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

body.single-post .bs-content .wp-block-button__link:hover { background: #e8671d; color: #fff; }

/* The template provides its own related-posts row. */
body.single-post .bs-content .bmk-related-guides { display: none; }

/* Sidebar */

.bs-cta {
	position: relative;
	overflow: hidden;
	padding: 28px 24px 22px;
	border-radius: var(--bs-radius);
	background: var(--bs-navy);
	color: #fff;
	box-shadow: 0 16px 34px rgba(21,101,192, .25);
}

.bs-cta::after {
	content: "";
	position: absolute;
	top: -40px;
	right: -40px;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
}

body.single-post .bs-cta__title {
	position: relative;
	margin: 0 0 14px;
	color: #fff;
	font-family: var(--bs-heading);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.3;
}

.bs-cta__text { position: relative; margin: 0 0 20px; color: rgba(255, 255, 255, .85); font-size: 13px; line-height: 1.6; }

.bs-cta__btn {
	position: relative;
	display: block;
	padding: 12px 16px;
	border-radius: 6px;
	background: var(--bs-orange);
	color: #3a1604;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s ease, transform .2s ease;
}

.bs-cta__btn:hover { background: #ff8f4d; color: #3a1604; transform: translateY(-1px); }

.bs-cta__note {
	position: relative;
	margin: 14px 0 0;
	color: rgba(255, 255, 255, .6);
	font-size: 11px;
	font-weight: 600;
	text-align: center;
}

.bs-box {
	padding: 20px 22px;
	border: 1px solid var(--bs-line);
	border-radius: var(--bs-radius);
	background: #fff;
}

.bs-box--tint { background: #eef1f6; }

body.single-post .bs-box__title {
	margin: 0 0 14px;
	color: var(--bs-navy);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bs-share { display: flex; gap: 10px; }

.bs-share__btn {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eef1f6;
	color: var(--bs-ink);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.bs-share__btn svg { width: 16px; height: 16px; }
.bs-share__btn:hover { background: var(--bs-navy); color: #fff; }
.bs-share__msg { margin: 10px 0 0; color: #1f7a45; font-size: 12px; font-weight: 600; }
.bs-share__msg:empty { display: none; }

.bs-stats { margin: 0; }

.bs-stats > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #dde2ea;
	font-size: 13px;
}

.bs-stats > div:last-child { border-bottom: 0; padding-bottom: 0; }
.bs-stats dt { color: var(--bs-text); }
.bs-stats dd { margin: 0; color: var(--bs-ink); font-weight: 700; }
.bs-stats .bs-stats__accent { color: var(--bs-rust); }

/* Related */

.bs-related { padding: 72px 0 90px; background: #eef1f6; }

body.single-post .bs-related__title {
	margin: 0 0 30px;
	color: var(--bs-navy);
	font-family: var(--bs-heading);
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
	font-weight: 700;
}

.bs-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.bs-rel { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }

.bs-rel__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	border-radius: 10px;
	background: #dde2ea;
}

.bs-rel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bs-rel:hover .bs-rel__media img { transform: scale(1.05); }

.bs-rel__chip {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: var(--bs-navy);
	font-size: 10.5px;
	font-weight: 700;
}

.bs-rel__title {
	margin-top: 6px;
	color: var(--bs-ink);
	font-family: var(--bs-heading);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.35;
}

.bs-rel:hover .bs-rel__title { color: var(--bs-navy); }
.bs-rel__excerpt { color: var(--bs-muted); font-size: 13px; line-height: 1.6; }

/* Responsive */

@media (max-width: 1024px) {
	.bs-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
}

@media (max-width: 860px) {
	.bs-layout { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
	.bs-side__sticky { position: static; }
	body.single-post .bs-content { max-width: none; }
	.bs-related__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}

@media (max-width: 600px) {
	.bs-wrap { padding-inline: 16px; }
	.bs-hero { min-height: 400px; padding: 90px 0 32px; }
	body.single-post .bs-content { font-size: 15px; }
	body.single-post .bs-content blockquote { padding: 18px 20px; font-size: 1.05rem; }
}


/* Buttons inside posts: the wrapper div also carries .bmk-button, which the
   design system styles as a button itself — reset it so only the link shows. */
body.single-post .bs-content .wp-block-button.bmk-button {
	display: inline-block;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

body.single-post .bs-content .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	line-height: 1.2;
}
