:root {
	--cs-bg: #0b0f19;
	--cs-card: #161b28;
	--cs-card-soft: rgba(22, 27, 40, .78);
	--cs-red: #ff2a2a;
	--cs-red-dark: #d00000;
	--cs-white: #fff;
	--cs-text: #e2e8f0;
	--cs-muted: #a0aec0;
	--cs-border: rgba(226, 232, 240, .12);
	--cs-radius: 20px;
}

.cutstand-articles-page {
	background: var(--cs-bg);
}

.cutstand-archive,
.cutstand-single {
	position: relative;
	width: 100%;
	min-height: 70vh;
	margin: 0;
	color: var(--cs-text);
	background:
		radial-gradient(circle at 85% 8%, rgba(255, 42, 42, .12), transparent 28rem),
		linear-gradient(180deg, #0b0f19 0%, #0d111c 100%);
	font-family: Vazirmatn, Tahoma, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.85;
	overflow: hidden;
}

.cutstand-archive *,
.cutstand-single * {
	box-sizing: border-box;
}

.cutstand-archive .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;
}

.cutstand-container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.cutstand-archive-hero {
	position: relative;
	padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 105px);
	border-bottom: 1px solid var(--cs-border);
}

.cutstand-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	color: var(--cs-red);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .02em;
}

.cutstand-kicker::before {
	content: "";
	width: 35px;
	height: 2px;
	background: var(--cs-red);
	box-shadow: 0 0 12px rgba(255, 42, 42, .7);
}

.cutstand-archive-hero h1,
.cutstand-single-hero h1 {
	max-width: 970px;
	margin: 0;
	color: var(--cs-white);
	font-size: clamp(40px, 7vw, 80px);
	font-weight: 900;
	line-height: 1.18;
	letter-spacing: -.045em;
}

.cutstand-archive-hero p {
	max-width: 680px;
	margin: 24px 0 0;
	color: var(--cs-muted);
	font-size: clamp(16px, 2vw, 20px);
}

.cutstand-archive-content {
	padding: 48px 0 100px;
}

.cutstand-filter {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(180px, 280px) auto;
	gap: 12px;
	padding: 14px;
	margin-bottom: 38px;
	background: var(--cs-card-soft);
	border: 1px solid var(--cs-border);
	border-radius: 16px;
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.cutstand-filter input,
.cutstand-filter select {
	width: 100%;
	min-height: 50px;
	padding: 0 16px;
	color: var(--cs-text);
	background: #0f1420;
	border: 1px solid var(--cs-border);
	border-radius: 10px;
	font: inherit;
}

.cutstand-filter select { cursor: pointer; }
.cutstand-filter option { color: #111827; background: #fff; }
.cutstand-filter input::placeholder { color: #7f8a9d; }

.cutstand-filter input:focus,
.cutstand-filter select:focus {
	border-color: var(--cs-red);
	box-shadow: 0 0 0 3px rgba(255, 42, 42, .13);
	outline: none;
}

.cutstand-filter button,
.cutstand-read-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 25px;
	color: #fff;
	background: linear-gradient(135deg, var(--cs-red-dark), #ff4d4d);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(255, 42, 42, .25);
	font: 800 14px/1 Vazirmatn, Tahoma, sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: transform .25s ease, box-shadow .25s ease;
}

.cutstand-filter button:hover,
.cutstand-read-more:hover {
	color: #fff;
	box-shadow: 0 10px 32px rgba(255, 42, 42, .42);
	transform: translateY(-2px);
}

.cutstand-article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.cutstand-article-card {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: linear-gradient(160deg, rgba(25, 31, 46, .98), rgba(18, 23, 35, .9));
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius);
	box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
	transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.cutstand-article-card::after {
	content: "";
	position: absolute;
	inset: auto 10% -1px;
	height: 2px;
	background: var(--cs-red);
	box-shadow: 0 0 16px var(--cs-red);
	transform: scaleX(0);
	transition: transform .3s ease;
}

.cutstand-article-card.is-visible:hover {
	border-color: rgba(255, 42, 42, .35);
	box-shadow: 0 24px 55px rgba(0, 0, 0, .34), 0 0 28px rgba(255, 42, 42,.08);
	transform: translateY(-7px);
}

.cutstand-article-card:hover::after { transform: scaleX(1); }

.cutstand-card-image {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #0f1420;
}

.cutstand-card-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(11, 15, 25, .82));
}

.cutstand-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.85) contrast(1.05);
	transition: transform .55s ease, filter .55s ease;
}

.cutstand-article-card:hover .cutstand-card-image img {
	filter: saturate(1) contrast(1.08);
	transform: scale(1.055);
}

.cutstand-image-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: rgba(255, 255, 255, .12);
	background: radial-gradient(circle at 50% 50%, rgba(255, 42, 42, .16), transparent 55%);
	font: 900 27px/1 "Courier New", monospace;
	letter-spacing: .13em;
}

.cutstand-card-body { padding: 24px; }

.cutstand-card-meta,
.cutstand-byline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 18px;
	color: var(--cs-muted);
	font-size: 12px;
}

.cutstand-card-meta span::before,
.cutstand-byline > * + *::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin-left: 10px;
	vertical-align: middle;
	background: var(--cs-red);
	border-radius: 50%;
	box-shadow: 0 0 7px var(--cs-red);
}

.cutstand-card-body h2 {
	margin: 14px 0 10px;
	font-size: clamp(19px, 2vw, 24px);
	font-weight: 900;
	line-height: 1.45;
}

.cutstand-card-body h2 a { color: #fff; text-decoration: none; }
.cutstand-card-body h2 a:hover { color: #fff; }
.cutstand-card-body p { margin: 0 0 22px; color: var(--cs-muted); font-size: 14px; }
.cutstand-read-more { min-height: 42px; padding-inline: 18px; font-size: 13px; }

.cutstand-pagination { margin-top: 50px; }
.cutstand-pagination .page-numbers { display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.cutstand-pagination a,
.cutstand-pagination span {
	display: grid;
	place-items: center;
	min-width: 43px;
	height: 43px;
	padding: 0 10px;
	color: var(--cs-text);
	background: var(--cs-card);
	border: 1px solid var(--cs-border);
	border-radius: 9px;
	text-decoration: none;
}
.cutstand-pagination .current,
.cutstand-pagination a:hover { color: #fff; background: var(--cs-red); border-color: var(--cs-red); }

.cutstand-empty-state { padding: 70px 20px; text-align: center; background: var(--cs-card-soft); border: 1px solid var(--cs-border); border-radius: var(--cs-radius); }
.cutstand-empty-state h2 { margin: 0; color: #fff; font-weight: 900; }
.cutstand-empty-state p { color: var(--cs-muted); }

.cutstand-single-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(760px, 82vh);
	padding: 130px 0 80px;
	border-bottom: 1px solid var(--cs-border);
}

.cutstand-single-hero:not(.has-image) { min-height: 540px; }

.cutstand-hero-background {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.cutstand-hero-background::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, #0b0f19 3%, rgba(11, 15, 25, .78) 48%, rgba(11, 15, 25, .5)), linear-gradient(90deg, transparent, rgba(11, 15, 25, .45));
}

.cutstand-hero-background img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.12); }
.cutstand-hero-inner { position: relative; z-index: 1; }

.cutstand-back-link { display: inline-block; margin-bottom: 30px; color: var(--cs-muted); font-size: 13px; text-decoration: none; }
.cutstand-back-link:hover { color: var(--cs-red); }
.cutstand-single-hero h1 { font-size: clamp(38px, 6.5vw, 78px); }
.cutstand-lead { max-width: 800px; margin: 22px 0; color: var(--cs-text); font-size: clamp(17px, 2.2vw, 22px); line-height: 1.8; }
.cutstand-byline { margin-top: 26px; color: #c4cedd; }

.cutstand-reading-layout { width: min(900px, calc(100% - 40px)); padding: clamp(55px, 8vw, 100px) 0; }

.cutstand-article-content {
	color: var(--cs-text);
	font-size: clamp(16px, 1.5vw, 18px);
	line-height: 2.05;
}

.cutstand-article-content > *:first-child { margin-top: 0; }
.cutstand-article-content p { margin: 0 0 1.55em; color: var(--cs-text); }
.cutstand-article-content h2,
.cutstand-article-content h3,
.cutstand-article-content h4 {
	color: #fff;
	font-weight: 900;
	line-height: 1.45;
	letter-spacing: -.02em;
	scroll-margin-top: 30px;
}
.cutstand-article-content h2 { margin: 2.2em 0 .75em; font-size: clamp(27px, 4vw, 42px); }
.cutstand-article-content h3 { margin: 1.9em 0 .65em; font-size: clamp(22px, 3vw, 31px); }
.cutstand-article-content a { color: #ff6767; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cutstand-article-content a:hover { color: #fff; }
.cutstand-article-content img { max-width: 100%; height: auto; border-radius: 16px; }
.cutstand-article-content figure { max-width: 100%; margin: 2.3em 0; }
.cutstand-article-content figcaption { margin-top: 8px; color: var(--cs-muted); font-size: 13px; text-align: center; }
.cutstand-article-content ul,
.cutstand-article-content ol { padding-right: 1.4em; margin: 0 0 1.6em; }
.cutstand-article-content li { margin-bottom: .5em; }
.cutstand-article-content li::marker { color: var(--cs-red); }
.cutstand-article-content table { width: 100%; margin: 2em 0; border-collapse: collapse; background: var(--cs-card); border-radius: 12px; overflow: hidden; }
.cutstand-article-content th,
.cutstand-article-content td { padding: 13px 15px; border: 1px solid var(--cs-border); text-align: right; }
.cutstand-article-content th { color: #fff; background: rgba(255, 42, 42, .11); }

.cutstand-article-quote {
	position: relative;
	padding: 30px 34px 27px;
	margin: 2.6em 0;
	background: linear-gradient(135deg, rgba(255, 42, 42, .12), rgba(22, 27, 40, .86));
	border: 1px solid rgba(255, 42, 42, .28);
	border-right: 4px solid var(--cs-red);
	border-radius: 14px;
	box-shadow: 0 15px 45px rgba(0, 0, 0, .2), inset 0 0 35px rgba(255, 42, 42, .025);
}
.cutstand-article-quote p { margin: 0; color: #fff; font-size: clamp(19px, 2.6vw, 26px); font-weight: 700; line-height: 1.85; }
.cutstand-article-quote cite { display: block; margin-top: 16px; color: var(--cs-muted); font-size: 13px; font-style: normal; }

.cutstand-code-block { margin: 2.3em 0; overflow: hidden; background: #070a10; border: 1px solid var(--cs-border); border-radius: 14px; box-shadow: 0 20px 45px rgba(0, 0, 0, .25); }
.cutstand-code-block > span { display: block; padding: 9px 16px; color: #ff6b6b; background: #111722; border-bottom: 1px solid var(--cs-border); font: 700 12px/1.5 "Courier New", monospace; }
.cutstand-code-block pre { max-width: 100%; padding: 22px; margin: 0; overflow: auto; background: transparent; }
.cutstand-code-block code { color: #d9e2ef; background: transparent; font: 14px/1.75 "Courier New", monospace; white-space: pre; }

.cutstand-article-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 2.6em 0; }
.cutstand-article-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; }
.cutstand-article-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.cutstand-article-gallery a:hover img { filter: brightness(1.1); transform: scale(1.04); }

.cutstand-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 35px; margin-top: 45px; border-top: 1px solid var(--cs-border); }
.cutstand-tags a { padding: 7px 13px; color: var(--cs-muted); background: var(--cs-card); border: 1px solid var(--cs-border); border-radius: 999px; font-size: 12px; text-decoration: none; }
.cutstand-tags a:hover { color: #fff; border-color: var(--cs-red); }

.cutstand-post-navigation { padding: 40px 0 80px; border-top: 1px solid var(--cs-border); }
.cutstand-post-navigation .cutstand-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cutstand-post-navigation .cutstand-container > div { padding: 20px; background: var(--cs-card-soft); border: 1px solid var(--cs-border); border-radius: 14px; }
.cutstand-post-navigation span { display: block; margin-bottom: 5px; color: var(--cs-muted); font-size: 11px; }
.cutstand-post-navigation a { color: #fff; font-weight: 800; text-decoration: none; }
.cutstand-nav-next { text-align: left; }

.cutstand-category-rail { display: flex; gap: 9px; padding-bottom: 16px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }
.cutstand-category-rail a { flex: 0 0 auto; padding: 8px 16px; color: var(--cs-muted); background: rgba(22,27,40,.76); border: 1px solid var(--cs-border); border-radius: 999px; font-size: 13px; text-decoration: none; }
.cutstand-category-rail a:hover,
.cutstand-category-rail a.is-active { color: #fff; background: rgba(255,42,42,.14); border-color: rgba(255,42,42,.55); box-shadow: 0 0 18px rgba(255,42,42,.1); }
.cutstand-card--featured { grid-column: span 2; display: grid; grid-template-columns: 1.12fr 1fr; }
.cutstand-card--featured .cutstand-card-image { height: 100%; aspect-ratio: auto; min-height: 350px; }
.cutstand-card--featured .cutstand-card-body { display: flex; flex-direction: column; justify-content: center; padding: 34px; }
.cutstand-card--featured .cutstand-card-body h2 { font-size: clamp(25px,3vw,36px); }
.cutstand-featured-badge { position: absolute; z-index: 2; top: 16px; right: 16px; padding: 7px 12px; color: #fff; background: rgba(255,42,42,.9); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; box-shadow: 0 0 22px rgba(255,42,42,.45); font-size: 11px; font-weight: 800; }

.cutstand-reading-progress { position: fixed; z-index: 9999; top: 0; right: 0; left: 0; height: 3px; background: rgba(255,255,255,.07); }
.cutstand-reading-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg,#d00000,var(--cs-red),#ff7878); box-shadow: 0 0 12px var(--cs-red); transform: scaleX(0); transform-origin: right center; }
.cutstand-reading-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); align-items: start; justify-content: center; gap: 55px; width: min(1100px, calc(100% - 40px)); }
.cutstand-reading-tools { position: sticky; top: 35px; display: grid; gap: 14px; }
.cutstand-toc,
.cutstand-share { padding: 17px; background: rgba(22,27,40,.72); border: 1px solid var(--cs-border); border-radius: 14px; backdrop-filter: blur(16px); }
.cutstand-toc > strong,
.cutstand-share > strong { display: block; margin-bottom: 12px; color: #fff; font-size: 13px; }
.cutstand-toc nav { display: grid; gap: 4px; }
.cutstand-toc a { padding: 6px 9px; color: var(--cs-muted); border-right: 2px solid transparent; font-size: 12px; line-height: 1.65; text-decoration: none; }
.cutstand-toc a:hover { color: #fff; border-color: var(--cs-red); }
.cutstand-toc a.is-subsection { padding-right: 20px; font-size: 11px; }
.cutstand-share > div { display: flex; gap: 7px; }
.cutstand-share a,
.cutstand-share button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--cs-muted); background: #111722; border: 1px solid var(--cs-border); border-radius: 9px; font: 800 11px/1 Vazirmatn,Tahoma,sans-serif; text-decoration: none; cursor: pointer; }
.cutstand-share a:hover,
.cutstand-share button:hover,
.cutstand-share button.is-copied { color: #fff; background: var(--cs-red); border-color: var(--cs-red); }
.cutstand-key-points { padding: clamp(24px,4vw,38px); margin: 2.5em 0; background: linear-gradient(135deg,rgba(255,42,42,.12),rgba(22,27,40,.92)); border: 1px solid rgba(255,42,42,.28); border-radius: 18px; }
.cutstand-key-points > span { color: var(--cs-red); font: 700 11px/1.5 "Courier New",monospace; letter-spacing: .1em; }
.cutstand-key-points h2 { margin: 8px 0 18px; font-size: clamp(23px,3vw,32px); }
.cutstand-key-points ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.cutstand-key-points li { position: relative; padding: 11px 42px 11px 12px; margin: 0; color: #fff; background: rgba(255,255,255,.045); border-radius: 9px; }
.cutstand-key-points li::before { content: "✓"; position: absolute; right: 13px; color: var(--cs-red); font-weight: 900; }
.cutstand-article-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(26px,5vw,46px); margin: 3em 0; background: radial-gradient(circle at 85% 0,rgba(255,42,42,.34),transparent 45%),#151b29; border: 1px solid rgba(255,42,42,.3); border-radius: 22px; box-shadow: 0 22px 55px rgba(0,0,0,.28); }
.cutstand-article-cta span { color: #ff6565; font: 700 10px/1.5 "Courier New",monospace; letter-spacing: .1em; }
.cutstand-article-cta h2 { margin: 7px 0; font-size: clamp(25px,3.5vw,37px); }
.cutstand-article-cta p { margin: 0; color: var(--cs-muted); }
.cutstand-article-cta > a { flex: 0 0 auto; padding: 13px 20px; color: #fff; background: linear-gradient(135deg,#d00000,#ff4d4d); border-radius: 10px; box-shadow: 0 10px 28px rgba(255,42,42,.3); font-weight: 800; text-decoration: none; }
.cutstand-author-card { display: flex; align-items: center; gap: 18px; padding: 24px; margin-top: 45px; background: var(--cs-card-soft); border: 1px solid var(--cs-border); border-radius: 17px; }
.cutstand-author-card img { flex: 0 0 auto; border: 2px solid rgba(255,42,42,.45); border-radius: 50%; }
.cutstand-author-card span { display: block; color: var(--cs-red); font-size: 11px; }
.cutstand-author-card strong { display: block; color: #fff; font-size: 19px; }
.cutstand-author-card p { margin: 4px 0 0; color: var(--cs-muted); font-size: 13px; line-height: 1.7; }
.cutstand-related { padding: 70px 0; background: rgba(22,27,40,.45); border-top: 1px solid var(--cs-border); }
.cutstand-related h2 { margin: 0 0 25px; color: #fff; font-size: clamp(28px,4vw,43px); font-weight: 900; }
.cutstand-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.cutstand-related-grid > a { overflow: hidden; color: #fff; background: var(--cs-card); border: 1px solid var(--cs-border); border-radius: 15px; text-decoration: none; transition: transform .25s ease,border-color .25s ease; }
.cutstand-related-grid > a:hover { color: #fff; border-color: rgba(255,42,42,.45); transform: translateY(-5px); }
.cutstand-related-grid img { width: 100%; height: 170px; object-fit: cover; }
.cutstand-related-grid div { display: grid; gap: 5px; padding: 18px; }
.cutstand-related-grid small { color: var(--cs-muted); }
.cutstand-related-grid strong { font-size: 17px; line-height: 1.6; }
.cutstand-related-grid span { color: #ff6262; font-size: 12px; }
.cutstand-back-to-top { position: fixed; z-index: 50; left: 22px; bottom: 22px; display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: var(--cs-red); border: 0; border-radius: 50%; box-shadow: 0 8px 25px rgba(255,42,42,.4); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s ease; cursor: pointer; }
.cutstand-back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.cutstand-article-card { opacity: 0; transform: translateY(20px); }
.cutstand-article-card.is-visible { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease, border-color .3s ease, box-shadow .3s ease; }

@media (max-width: 900px) {
	.cutstand-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cutstand-filter { grid-template-columns: 1fr 1fr; }
	.cutstand-filter button { grid-column: 1 / -1; }
	.cutstand-reading-layout { grid-template-columns: 1fr; }
	.cutstand-reading-tools { position: static; grid-template-columns: 1fr 1fr; order: 2; }
	.cutstand-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
	.cutstand-container,
	.cutstand-reading-layout { width: min(100% - 28px, 1180px); }
	.cutstand-archive-hero { padding-block: 70px 52px; }
	.cutstand-archive-content { padding: 28px 0 65px; }
	.cutstand-filter,
	.cutstand-article-grid,
	.cutstand-post-navigation .cutstand-container { grid-template-columns: 1fr; }
	.cutstand-filter button { grid-column: auto; }
	.cutstand-card-body { padding: 20px; }
	.cutstand-single-hero { min-height: 620px; padding: 100px 0 55px; }
	.cutstand-single-hero:not(.has-image) { min-height: 480px; }
	.cutstand-reading-layout { padding: 50px 0; }
	.cutstand-article-content { line-height: 1.95; }
	.cutstand-article-content table { display: block; overflow-x: auto; }
	.cutstand-article-quote { padding: 23px 21px; }
	.cutstand-article-gallery { grid-template-columns: 1fr; }
	.cutstand-nav-next { text-align: right; }
	.cutstand-card--featured { grid-column: auto; display: block; }
	.cutstand-card--featured .cutstand-card-image { min-height: 0; aspect-ratio: 16/10; }
	.cutstand-reading-tools,
	.cutstand-related-grid { grid-template-columns: 1fr; }
	.cutstand-article-cta,
	.cutstand-author-card { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.cutstand-archive *,
	.cutstand-single * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.cutstand-article-card { opacity: 1; transform: none; }
}

.cutstand-author-avatar { display:grid; place-items:center; flex:0 0 70px; width:70px; height:70px; border-radius:50%; background:rgba(255,42,42,.12); border:2px solid rgba(255,42,42,.45); color:#fff; font:700 22px monospace; }
.cutstand-code-block pre, .cutstand-code-block code { direction:ltr; text-align:left; unicode-bidi:plaintext; tab-size:4; white-space:pre; }
.cutstand-code-block { min-width:0; max-width:100%; }

.cutstand-html-preview { margin:2.3em 0; max-width:100%; overflow:hidden; border:1px solid var(--cs-border); border-radius:14px; background:#fff; }
.cutstand-html-preview iframe { display:block; width:100%; height:700px; border:0; }

@font-face {
 font-family: "Cutstand Vazirmatn";
 src: url("../fonts/Vazirmatn.woff2") format("woff2");
 font-weight: 100 900;
 font-style: normal;
 font-display: swap;
}
.cutstand-archive, .cutstand-single {
 font-family: "Cutstand Vazirmatn", Vazirmatn, Tahoma, sans-serif;
 text-align: right;
}
.cutstand-archive :is(h1,h2,h3,a,button),
.cutstand-single :is(h1,h2,h3,h4,p,a,button,input,select,textarea,summary,label) {
 font-family: inherit;
 letter-spacing: normal;
 text-transform: none;
}
.cutstand-archive-hero { padding:clamp(44px,6vw,88px) 0; }
.cutstand-archive-hero h1 { font-size:clamp(32px,5vw,60px); line-height:1.5; }
.cutstand-card-body { display:flex; flex-direction:column; flex:1; }
.cutstand-article-card { display:flex; flex-direction:column; }
.cutstand-card-image { flex:0 0 auto; }
.cutstand-card-body .cutstand-read-more { margin-top:auto; align-self:flex-start; font-family:inherit; line-height:1.6; }
.cutstand-card--featured { display:grid; }
.cutstand-reading-layout { grid-template-columns:240px minmax(0,1fr); gap:36px; width:min(1240px,calc(100% - 48px)); }
.cutstand-reading-layout--embedded,.cutstand-reading-layout--plain { display:block; padding:48px 0 64px; }
.cutstand-article-content { min-width:0; width:100%; }
.cutstand-reading-tools { top:110px; max-height:calc(100vh - 140px); overflow:auto; }
.cutstand-toc a { font-size:14px; line-height:1.9; }
.cutstand-article-content > article.cs[id^="cutstand-article-"] {
 width:100% !important; max-width:none !important; min-width:0 !important;
 font-family:"Cutstand Vazirmatn",Tahoma,sans-serif !important;
 font-size:17px !important; line-height:2 !important;
 border-radius:20px !important; container:cutstand-article / inline-size !important;
}
.cutstand-article-content article.cs[id^="cutstand-article-"] :is(h1,h2,h3,h4,p,a,button,input,select,textarea,summary,label,nav,span) {
 font-family:inherit !important; letter-spacing:normal !important; text-transform:none !important;
}
.cutstand-article-content article.cs[id^="cutstand-article-"] :is(.brandbar,footer,.reading-tools,.reading-tools + .notice) { display:none !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .wrap { width:100% !important; max-width:none !important; padding:0 32px !important; margin:0 !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .hero { display:grid !important; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) !important; gap:36px !important; align-items:center !important; padding:48px 0 !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .hero h1 { font-size:clamp(28px,3vw,44px) !important; line-height:1.6 !important; margin:12px 0 20px !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .hero figure { width:100% !important; margin:0 !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .hero img { display:block !important; width:100% !important; height:auto !important; object-fit:cover !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .layout { display:grid !important; grid-template-columns:240px minmax(0,1fr) !important; gap:32px !important; align-items:start !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] aside { position:sticky !important; top:110px !important; max-height:calc(100vh - 140px) !important; overflow:auto !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .article { min-width:0 !important; width:100% !important; overflow-wrap:break-word !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .article h2 { font-size:clamp(24px,2.4vw,32px) !important; line-height:1.75 !important; margin:48px 0 20px !important; scroll-margin-top:120px !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .article h3 { font-size:22px !important; line-height:1.8 !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] :is(.widget,.cta,.knowledge) { width:100% !important; max-width:none !important; min-width:0 !important; padding:28px !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] :is(.actions,.tool-actions,.faq-tools) { display:grid !important; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)) !important; gap:12px !important; align-items:stretch !important; width:100% !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] :is(.btn,.actions>a,.tool-actions>button,.faq-tools>button) { display:inline-flex !important; align-items:center !important; justify-content:center !important; min-height:50px !important; height:auto !important; width:100% !important; min-width:0 !important; padding:12px 18px !important; margin:0 !important; line-height:1.8 !important; font-size:14px !important; font-weight:700 !important; text-align:center !important; white-space:normal !important; border-radius:12px !important; transform:none !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .fields { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:18px !important; align-items:stretch !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .fields>label { display:flex !important; flex-direction:column !important; justify-content:space-between !important; gap:8px !important; min-width:0 !important; font-size:15px !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] :is(input:not([type="checkbox"]),select) { width:100% !important; min-height:50px !important; min-width:0 !important; font-size:16px !important; line-height:1.6 !important; padding:10px 12px !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .toc { max-height:calc(100vh - 235px) !important; overflow:auto !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .toc a { font-size:14px !important; line-height:1.85 !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] table { display:table !important; width:100% !important; margin:0 !important; font-size:15px !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] :is(.table-wrap,.table-scroll) { width:100% !important; overflow-x:auto !important; }
.cutstand-article-content article.cs[id^="cutstand-article-"] .quiz-options button { justify-content:flex-start !important; text-align:right !important; }
.cutstand-code-block code { font-family:Consolas,"Courier New",monospace !important; }
@media(max-width:1000px) {
 .cutstand-reading-layout { grid-template-columns:minmax(0,1fr); }
 .cutstand-reading-tools { position:static; max-height:none; }
 .cutstand-article-content article.cs[id^="cutstand-article-"] .layout { grid-template-columns:minmax(0,1fr) !important; }
 .cutstand-article-content article.cs[id^="cutstand-article-"] aside { position:static !important; max-height:none !important; }
 .cutstand-article-content article.cs[id^="cutstand-article-"] .toc { max-height:220px !important; }
 .cutstand-article-content article.cs[id^="cutstand-article-"] .hero { grid-template-columns:minmax(0,1fr) !important; }
}
@media(max-width:620px) {
 .cutstand-reading-layout { width:calc(100% - 24px); padding:20px 0 40px; }
 .cutstand-article-content article.cs[id^="cutstand-article-"] .wrap { padding:0 16px !important; }
 .cutstand-article-content article.cs[id^="cutstand-article-"] .hero { padding:28px 0 !important; gap:24px !important; }
 .cutstand-article-content article.cs[id^="cutstand-article-"] .hero h1 { font-size:28px !important; }
 .cutstand-article-content article.cs[id^="cutstand-article-"] :is(.fields,.actions,.tool-actions,.faq-tools,.related-grid) { grid-template-columns:minmax(0,1fr) !important; }
 .cutstand-article-content article.cs[id^="cutstand-article-"] :is(.widget,.cta,.knowledge) { padding:20px !important; }
 .cutstand-card--featured { display:flex; }
}

.cutstand-embedded-meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px 24px; padding:0 32px 16px; color:var(--cs-muted); font-size:14px; }
@media(max-width:620px) { .cutstand-embedded-meta { padding:0 16px 12px; } }

@container cutstand-article (max-width:900px) {
 .cutstand-article-content article.cs[id^="cutstand-article-"] .layout,
 .cutstand-article-content article.cs[id^="cutstand-article-"] .hero { grid-template-columns:minmax(0,1fr) !important; }
 .cutstand-article-content article.cs[id^="cutstand-article-"] aside { position:static !important; max-height:none !important; }
 .cutstand-article-content article.cs[id^="cutstand-article-"] .toc { max-height:220px !important; }
}
/* Keep the article footer independent of content typography and theme bylines. */
.cutstand-article-main { min-width: 0; width: 100%; display: flow-root; }
.cutstand-single .cutstand-author-card {
 display: flex; align-items: center; gap: 20px;
 box-sizing: border-box; width: 100%; clear: both;
 margin: 48px 0 0; padding: 28px;
 font-family: "Cutstand Vazirmatn", Vazirmatn, Tahoma, sans-serif !important;
 font-size: 15px; line-height: 1.9; text-align: right;
 letter-spacing: normal; text-transform: none;
 color: var(--cs-text); background: var(--cs-card-soft);
 border: 1px solid var(--cs-border); border-radius: 17px;
}
.cutstand-single .cutstand-author-card :is(span,strong,p) {
 font-family: inherit !important; letter-spacing: normal; text-transform: none;
}
.cutstand-single .cutstand-author-card .cutstand-author-avatar {
 display: grid; place-items: center; flex: 0 0 70px;
 width: 70px; height: 70px; margin: 0;
 font: 700 22px/1 "Cutstand Vazirmatn", Tahoma, sans-serif;
}
.cutstand-author-details { min-width: 0; display: grid; gap: 8px; overflow-wrap: anywhere; }
.cutstand-single .cutstand-author-details > span { margin: 0; font-size: 12px; line-height: 1.8; }
.cutstand-single .cutstand-author-details > strong { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.8; }
.cutstand-single .cutstand-author-details > p { margin: 0; color: var(--cs-muted); font-size: 14px; line-height: 1.9; }
@media (max-width: 620px) {
 .cutstand-single .cutstand-author-card { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 32px; padding: 20px; }
 .cutstand-single .cutstand-author-card .cutstand-author-avatar { flex-basis: 60px; width: 60px; height: 60px; }
 .cutstand-single .cutstand-author-details > strong { font-size: 18px; }
}
