/*
Theme Name: BitsShop
Theme URI: https://bitstech.store/
Author: BitsTech
Author URI: https://bitstech.store/
Description: Minimal content theme for bitstech.store. The marketplace itself (/, /market, /p/*, /shop/*, /cart, /checkout, /orders, /account, /login, /app) is rendered by the bitsshop-market plugin; this theme dresses the ordinary content pages (About, Contact, FAQ, Privacy, Terms, Refund, Blog) in the exact same design system as the BitsShop app — orange #FF6B35 on a light/dark neutral base. No e-commerce plugin dependency, no build step, no external assets beyond the Google Fonts link the plugin already loads.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bitsshop
Tags: one-column, custom-menu, translation-ready, dark-mode-support, accessibility-ready
*/

/* ===========================================================================
   0. Tokens
   The base palette (--pri, --bg, --surf, --t1, --t2, --bd …) is defined by the
   plugin's bsm_css(), printed just above this file — we do not repeat it.
   Here we only add: (a) prose-specific tokens that need AA contrast, and
   (b) the dark-mode overrides of the shared tokens.
   ========================================================================= */
:root {
	/* Prose ink: a touch darker than --t2 so long-form body copy clears 4.5:1. */
	--bs-ink: #545B6B;
	/* Inline links / CTA: deep orange — same family as --pri, but AA-safe as text
	   (--pri on white is 2.8:1, which is fine for icons but not for copy). */
	--bs-link: #C2410C;
	--bs-link-h: #9A330A;
	--bs-cta-bg: #C2410C;
	--bs-cta-bg-h: #A5340A;
	--bs-cta-fg: #ffffff;
	--bs-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .05);
	--bs-radius: 14px;
	--bs-w: 760px;
}

@media (prefers-color-scheme: dark) {
	:root {
		/* App dark tokens. --pri stays orange in both modes. */
		--bg: #121418;
		--surf: #1C1F26;
		--t1: #E8EAED;
		--t2: #9AA1AC;
		--bd: #2C313A;
		--tint: #2E1D14;          /* warm dark wash — keeps orange accents legible */
		--navy: #0E1420;

		--bs-ink: #B4BAC5;
		--bs-link: #FF8A5B;
		--bs-link-h: #FFA983;
		--bs-cta-bg: #FF6B35;
		--bs-cta-bg-h: #FF8452;
		--bs-cta-fg: #160D06;     /* near-black on orange = 6.7:1 */
		--bs-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .28);
	}

	img,
	video {
		/* Take the edge off pure-white product/marketing art at night. */
		filter: saturate(.95);
	}
}

/* ===========================================================================
   1. Base + chrome glue
   ========================================================================= */
body {
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* The plugin's fixed bottom nav shows on coarse pointers under 1024px. */
@media (pointer: coarse) and (max-width: 1023px) {
	body {
		padding-bottom: 64px;
	}
}

/* Wrapper around the plugin's sticky top bar — keeps it sticky and a landmark. */
.bs-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

.bs-main {
	min-height: 60vh;
}

/* Accessibility ---------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bs-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--surf);
	color: var(--bs-link);
	font-weight: 700;
	padding: 12px 18px;
	border: 2px solid var(--pri);
	border-radius: 0 0 10px 0;
}

.bs-skip:focus {
	left: 0;
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--pri);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ===========================================================================
   2. Article shell
   ========================================================================= */
.bs-article {
	max-width: var(--bs-w);
	margin: 0 auto;
	padding: 22px 4px 40px;
}

.bs-page-head {
	margin: 0 0 22px;
}

.bs-title {
	margin: 0;
	color: var(--t1);
	font-size: clamp(26px, 5vw, 34px);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.4px;
}

/* small orange accent underline */
.bs-page-head .bs-title::after,
.bs-404 .bs-title::after {
	content: "";
	display: block;
	width: 54px;
	height: 4px;
	margin-top: 12px;
	border-radius: 99px;
	background: var(--pri);
}

.bs-404 .bs-title::after {
	margin-inline: auto;
}

.bs-meta {
	margin: 12px 0 0;
	color: var(--t2);
	font-size: 13px;
	font-weight: 600;
}

.bs-meta a {
	color: var(--bs-link);
}

.bs-hero-img {
	margin: 0 0 22px;
}

.bs-hero-img img {
	width: 100%;
	height: auto;
	border-radius: var(--bs-radius);
	display: block;
}

/* ===========================================================================
   3. Prose — the actual page content (Gutenberg / Elementor / classic)
   ========================================================================= */
.bs-prose {
	color: var(--bs-ink);
	font-size: 15.5px;
	line-height: 1.75;
	overflow-wrap: break-word;
	word-break: break-word;
}

.bs-prose > * {
	margin-block: 0 1.1em;
}

.bs-prose > *:last-child {
	margin-bottom: 0;
}

.bs-prose h1,
.bs-prose h2,
.bs-prose h3,
.bs-prose h4,
.bs-prose h5,
.bs-prose h6 {
	color: var(--t1);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -.2px;
	margin: 1.9em 0 .6em;
	scroll-margin-top: 80px;
}

.bs-prose > :first-child {
	margin-top: 0;
}

.bs-prose h2 {
	font-size: 23px;
}

.bs-prose h3 {
	font-size: 19px;
}

.bs-prose h4 {
	font-size: 16.5px;
}

.bs-prose h5,
.bs-prose h6 {
	font-size: 15px;
	text-transform: none;
	color: var(--t2);
}

.bs-prose p {
	margin: 0 0 1.1em;
}

.bs-prose strong,
.bs-prose b {
	color: var(--t1);
	font-weight: 700;
}

.bs-prose a {
	color: var(--bs-link);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--bd);
	text-decoration-color: color-mix(in srgb, var(--bs-link) 35%, transparent);
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
	transition: color .15s ease, text-decoration-color .15s ease;
}

.bs-prose a:hover,
.bs-prose a:focus {
	color: var(--bs-link-h);
	text-decoration-color: currentColor;
}

/* Lists ------------------------------------------------------------------ */
.bs-prose ul,
.bs-prose ol {
	margin: 0 0 1.1em;
	padding-left: 1.35em;
}

.bs-prose li {
	margin: .35em 0;
}

.bs-prose li::marker {
	color: var(--pri);
	font-weight: 700;
}

.bs-prose ul ul,
.bs-prose ol ol,
.bs-prose ul ol,
.bs-prose ol ul {
	margin-bottom: 0;
}

/* Rules, quotes ---------------------------------------------------------- */
.bs-prose hr {
	border: 0;
	border-top: 1px solid var(--bd);
	margin: 2em 0;
}

.bs-prose blockquote {
	margin: 1.4em 0;
	padding: 14px 18px;
	background: var(--tint);
	border-left: 4px solid var(--pri);
	border-radius: 0 12px 12px 0;
	color: var(--t1);
	font-size: 15.5px;
}

.bs-prose blockquote p:last-child {
	margin-bottom: 0;
}

.bs-prose blockquote cite {
	display: block;
	margin-top: 8px;
	color: var(--t2);
	font-size: 13px;
	font-style: normal;
	font-weight: 600;
}

/* Media ------------------------------------------------------------------ */
.bs-prose img,
.bs-prose video,
.bs-prose iframe {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

.bs-prose figure {
	margin: 1.5em 0;
}

.bs-prose figcaption,
.bs-prose .wp-caption-text {
	margin-top: 8px;
	color: var(--t2);
	font-size: 13px;
	text-align: center;
}

.bs-prose .alignleft {
	float: left;
	margin: .3em 1.2em 1em 0;
}

.bs-prose .alignright {
	float: right;
	margin: .3em 0 1em 1.2em;
}

.bs-prose .aligncenter {
	margin-inline: auto;
}

/* Tables — must never blow out the page on a phone ------------------------ */
.bs-prose .wp-block-table,
.bs-prose figure.wp-block-table,
.bs-prose .bs-table-wrap {
	overflow-x: auto;
	max-width: 100%;
}

.bs-prose table {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
	background: var(--surf);
	border: 1px solid var(--bd);
	border-radius: 12px;
	overflow: hidden;
	font-size: 14.5px;
}

.bs-prose thead th,
.bs-prose tr:first-child th {
	background: var(--bg);
	color: var(--t1);
	font-weight: 800;
	text-align: left;
}

.bs-prose th,
.bs-prose td {
	border: 1px solid var(--bd);
	padding: 10px 12px;
	vertical-align: top;
}

.bs-prose tbody tr:nth-child(even) td {
	background: var(--bg);
	background: color-mix(in srgb, var(--bg) 55%, var(--surf));
}

/* A bare <table> (classic editor) still needs a scroller: give it one. */
.bs-prose > table {
	display: block;
	overflow-x: auto;
	white-space: normal;
}

/* Code ------------------------------------------------------------------- */
.bs-prose code,
.bs-prose kbd,
.bs-prose samp {
	background: var(--bg);
	border: 1px solid var(--bd);
	border-radius: 6px;
	padding: 1px 6px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .88em;
	color: var(--t1);
}

.bs-prose pre {
	background: var(--bg);
	border: 1px solid var(--bd);
	border-radius: 12px;
	padding: 14px 16px;
	overflow-x: auto;
	line-height: 1.6;
}

.bs-prose pre code {
	background: none;
	border: 0;
	padding: 0;
	font-size: 13.5px;
}

/* Details / summary — accordions, when the content uses them -------------- */
.bs-prose details {
	background: var(--surf);
	border: 1px solid var(--bd);
	border-radius: var(--bs-radius);
	padding: 4px 16px;
	margin-bottom: 10px;
	box-shadow: var(--bs-shadow);
}

.bs-prose summary {
	cursor: pointer;
	list-style: none;
	color: var(--t1);
	font-weight: 700;
	padding: 12px 26px 12px 0;
	position: relative;
}

.bs-prose summary::-webkit-details-marker {
	display: none;
}

.bs-prose summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 10px;
	color: var(--pri);
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
}

.bs-prose details[open] summary::after {
	content: "–";
}

.bs-prose details[open] summary {
	border-bottom: 1px dashed var(--bd);
	margin-bottom: 10px;
}

.bs-prose details > :last-child {
	margin-bottom: 12px;
}

/* Buttons in content (Gutenberg) ----------------------------------------- */
.bs-prose .wp-block-button__link,
.bs-btn {
	display: inline-block;
	background: var(--bs-cta-bg);
	color: var(--bs-cta-fg);
	border: 0;
	border-radius: 11px;
	padding: 12px 22px;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, transform .12s ease;
}

.bs-prose .wp-block-button__link:hover,
.bs-btn:hover {
	background: var(--bs-cta-bg-h);
	color: var(--bs-cta-fg);
	transform: translateY(-1px);
}

.bs-btn.o {
	background: transparent;
	color: var(--bs-link);
	border: 2px solid var(--pri);
}

.bs-btn.o:hover {
	background: var(--tint);
	color: var(--bs-link-h);
}

/* ===========================================================================
   4. FAQ page — turn generic h3 + following copy into a card list.
   Works on plain content (no shortcode needed): the h3 is the card head and
   everything up to the next h3 sits in the same card body.
   ========================================================================= */
.bs-slug-faq .bs-prose h3,
.bs-slug-faqs .bs-prose h3,
.bs-slug-faq .bs-prose h4,
.bs-slug-faqs .bs-prose h4 {
	background: var(--surf);
	border: 1px solid var(--bd);
	border-bottom: 0;
	border-radius: var(--bs-radius) var(--bs-radius) 0 0;
	margin: 18px 0 0;
	padding: 14px 18px 10px 44px;
	position: relative;
	font-size: 17px;
	box-shadow: var(--bs-shadow);
}

.bs-slug-faq .bs-prose h3::before,
.bs-slug-faqs .bs-prose h3::before,
.bs-slug-faq .bs-prose h4::before,
.bs-slug-faqs .bs-prose h4::before {
	content: "?";
	position: absolute;
	left: 14px;
	top: 13px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 7px;
	background: var(--tint);
	color: var(--pri);
	font-size: 13px;
	font-weight: 800;
}

.bs-slug-faq .bs-prose h3 + p,
.bs-slug-faq .bs-prose h3 + ul,
.bs-slug-faq .bs-prose h3 + ol,
.bs-slug-faq .bs-prose h4 + p,
.bs-slug-faqs .bs-prose h3 + p,
.bs-slug-faqs .bs-prose h3 + ul,
.bs-slug-faqs .bs-prose h3 + ol,
.bs-slug-faqs .bs-prose h4 + p {
	background: var(--surf);
	border: 1px solid var(--bd);
	border-top: 0;
	border-radius: 0 0 var(--bs-radius) var(--bs-radius);
	margin: 0 0 4px;
	padding: 4px 18px 16px;
	box-shadow: var(--bs-shadow);
}

.bs-slug-faq .bs-prose h3 + ul,
.bs-slug-faq .bs-prose h3 + ol,
.bs-slug-faqs .bs-prose h3 + ul,
.bs-slug-faqs .bs-prose h3 + ol {
	padding-left: 40px;
}

/* ===========================================================================
   5. Lists of posts (blog index, archives, search results)
   ========================================================================= */
/* Magazine card grid — featured first post, responsive cards, image-zoom hover */
.bs-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
	margin-top: 8px;
}

.bs-item {
	display: flex;
	flex-direction: column;
	background: var(--surf);
	border: 1px solid var(--bd);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--bs-shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	position: relative;
}

.bs-item:hover {
	transform: translateY(-4px);
	border-color: var(--pri);
	box-shadow: 0 12px 30px -12px rgba(0,0,0,.28);
}

.bs-item-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tint);
}

.bs-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.bs-item:hover .bs-item-thumb img {
	transform: scale(1.06);
}

.bs-item-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 13px 15px 15px;
}

.bs-item-title {
	margin: 0;
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--t1);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bs-item-title a {
	color: inherit;
}

.bs-item-title a:hover {
	color: var(--bs-link);
}

.bs-item .bs-meta {
	font-size: 11.5px;
	margin: 7px 0 0;
	order: -1;
}

.bs-excerpt {
	margin: 8px 0 11px;
	color: var(--bs-ink);
	font-size: 13px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bs-item .bs-more {
	margin-top: auto;
}

.bs-cat-pill {
	align-self: flex-start;
	display: inline-block;
	background: var(--pri);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 99px;
	margin-bottom: 8px;
}
.bs-cat-pill:hover { filter: brightness(1.08); color: #fff; }
.bs-item:first-child .bs-cat-pill { font-size: 11.5px; padding: 4px 12px; }

/* Featured first post — spans full row, horizontal on wide screens */
@media (min-width: 720px) {
	.bs-item:first-child {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: stretch;
	}
	.bs-item:first-child .bs-item-thumb {
		flex: 0 0 46%;
		aspect-ratio: auto;
		min-height: 240px;
	}
	.bs-item:first-child .bs-item-body {
		justify-content: center;
		padding: 26px 30px;
	}
	.bs-item:first-child .bs-item-title {
		font-size: 24px;
		line-height: 1.25;
		-webkit-line-clamp: 3;
	}
	.bs-item:first-child .bs-excerpt {
		font-size: 14.5px;
		-webkit-line-clamp: 4;
		margin-bottom: 14px;
	}
}

.bs-more {
	color: var(--bs-link);
	font-weight: 700;
	font-size: 13.5px;
}

.bs-more:hover {
	color: var(--bs-link-h);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bs-tags {
	margin-top: 22px;
	font-size: 13px;
	color: var(--t2);
}

.bs-tags a {
	display: inline-block;
	background: var(--tint);
	color: var(--bs-link);
	border-radius: 99px;
	padding: 3px 11px;
	margin: 0 4px 6px 0;
	font-weight: 700;
}

/* Prev / next ------------------------------------------------------------ */
.bs-prevnext {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 28px;
}

.bs-pn {
	background: var(--surf);
	border: 1px solid var(--bd);
	border-radius: 12px;
	padding: 12px 14px;
	min-width: 0;
}

.bs-pn:hover {
	border-color: var(--pri);
}

.bs-pn.next {
	text-align: right;
	grid-column: 2;
}

.bs-pn .l {
	display: block;
	color: var(--pri);
	font-size: 12px;
	font-weight: 800;
	margin-bottom: 3px;
}

.bs-pn .t {
	display: block;
	color: var(--t1);
	font-size: 14px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Pagination ------------------------------------------------------------- */
.bs-pagination,
.wp-block-query-pagination,
.bs-pagelinks {
	margin-top: 28px;
}

.bs-pagination .nav-links,
.bs-pagelinks {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: center;
}

.bs-pagination .page-numbers,
.bs-pagelinks a,
.bs-pagelinks > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1.5px solid var(--bd);
	border-radius: 10px;
	background: var(--surf);
	color: var(--t1);
	font-weight: 700;
	font-size: 14px;
}

.bs-pagination .page-numbers:hover,
.bs-pagelinks a:hover {
	border-color: var(--pri);
	color: var(--bs-link);
}

.bs-pagination .page-numbers.current,
.bs-pagelinks > span {
	background: var(--pri);
	border-color: var(--pri);
	color: #fff;
}

/* ===========================================================================
   6. Search form + empty states + 404
   ========================================================================= */
.bs-searchbox {
	margin: 18px 0 24px;
}

.bs-search {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin: 8px auto 0;
}

.bs-search-input {
	flex: 1;
	min-width: 0;
	background: var(--surf);
	border: 1.5px solid var(--bd);
	border-radius: 11px;
	padding: 11px 14px;
	font: inherit;
	font-size: 14.5px;
	color: var(--t1);
}

.bs-search-input::placeholder {
	color: var(--t2);
}

.bs-search-input:focus {
	border-color: var(--pri);
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 107, 53, .22);
}

.bs-search-btn {
	background: var(--bs-cta-bg);
	color: var(--bs-cta-fg);
	border: 0;
	border-radius: 11px;
	padding: 0 20px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.bs-search-btn:hover {
	background: var(--bs-cta-bg-h);
}

.bs-empty {
	text-align: center;
	background: var(--surf);
	border: 1px solid var(--bd);
	border-radius: 18px;
	padding: 40px 22px 44px;
	box-shadow: var(--bs-shadow);
	color: var(--bs-ink);
}

.bs-empty h1,
.bs-empty h2 {
	color: var(--t1);
	margin: 0 0 10px;
}

.bs-empty h2 {
	font-size: 21px;
	font-weight: 800;
}

.bs-empty p {
	margin: 0 auto 18px;
	max-width: 460px;
	line-height: 1.75;
}

.bs-empty .bs-btn {
	margin-top: 4px;
}

.bs-empty-em {
	font-size: 42px;
	margin: 0 0 6px;
	line-height: 1;
}

.bs-404 {
	padding-top: 32px;
}

.bs-404-code {
	margin: 0 0 4px;
	color: var(--pri);
	font-size: 64px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -2px;
}

.bs-404 .bs-title {
	margin-bottom: 14px;
}

.bs-404-links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 18px;
	margin: 26px 0 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
}

.bs-404-links a {
	color: var(--bs-link);
}

.bs-404-links a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ===========================================================================
   7. Footer
   ========================================================================= */
.bs-footer {
	background: var(--surf);
	border-top: 1px solid var(--bd);
	margin-top: 20px;
	padding: 30px 12px 34px;
}

.bs-footer-in {
	max-width: 1080px;
	margin: 0 auto;
	display: grid;
	gap: 18px;
}

.bs-footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--pri);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -.5px;
}

.bs-footer-logo img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.bs-footer-tag {
	margin: 8px 0 0;
	color: var(--bs-ink);
	font-size: 13.5px;
	max-width: 420px;
}

.bs-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	font-size: 14px;
	font-weight: 600;
}

.bs-footer-menu a {
	color: var(--bs-ink);
}

.bs-footer-menu a:hover {
	color: var(--bs-link);
}

.bs-copy {
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--bd);
	color: var(--t2);
	font-size: 12.5px;
}

/* Fallback top-bar links (only used if the plugin is deactivated) */
.bs-fallback-nav {
	margin-left: auto;
	display: flex;
	gap: 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--t1);
}

.bs-fallback-nav a:hover {
	color: var(--bs-link);
}

/* ===========================================================================
   8. Responsive
   ========================================================================= */
@media (max-width: 768px) {
	.bs-article {
		padding: 16px 2px 32px;
	}

	.bs-prose {
		font-size: 15px;
	}

	.bs-item {
		flex-direction: column;
	}

	.bs-item-thumb,
	.bs-item-thumb img {
		width: 100%;
	}

	.bs-item-thumb img {
		height: 170px;
	}

	.bs-prevnext {
		grid-template-columns: 1fr;
	}

	.bs-pn.next {
		grid-column: 1;
		text-align: left;
	}

	.bs-prose .alignleft,
	.bs-prose .alignright {
		float: none;
		margin: 1.2em 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}

	.bs-item:hover,
	.bs-btn:hover {
		transform: none;
	}
}

@media print {
	.bs-header,
	.bsm-top,
	.bsm-bn,
	.bs-footer,
	.bs-searchbox,
	.bs-skip {
		display: none !important;
	}

	.bs-article {
		max-width: none;
	}
}

/* =============================================================================
   v3.12 add-on — About / Contact / FAQ are card-grid pages (inline-styled
   sections from the page content); let them use the full 1280px shell instead
   of the 760px prose column. Long-form legal/blog prose keeps --bs-w.
   ========================================================================= */
.bs-slug-about .bs-article,
.bs-slug-contact .bs-article,
.bs-slug-faq .bs-article {
	max-width: 1160px;
}
