body {
	background: #000;
	color: #fff;
	margin: 0;
	font-family: "Fira Code", monospace;
}

.ascii-wrap {
	display: flex;
	justify-content: center;
	margin: 16px;
}

.ascii-box {
	width: clamp(40ch, 130ch, 100%);
	font-size: clamp(10px, 1.6vw, 14px);
}

.ascii-top,
.ascii-bottom {
	white-space: pre;
	overflow: hidden;
	line-height: 1;
	text-indent: -0.5ch;
}

.ascii-top::before,
.ascii-bottom::before {
	content: " + ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── +";
	display: block;
}

.ascii-middle {
	position: relative;
	padding: 1em 3ch 1em 3ch;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ascii-middle::-webkit-scrollbar {
	height: 6px;
}

.ascii-middle::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
}

.ascii-middle::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 3px;
}

.ascii-middle::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

/* ===== ASCII MIDDLE BORDERS (PIPES) ===== */
.ascii-middle::before,
.ascii-middle::after {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1ch;
	overflow: hidden;
	content: var(--dynamic-pipes, "");
	writing-mode: vertical-rl;
	text-orientation: upright;
	font-family: inherit;
	line-height: 1;
	white-space: pre;
}

.ascii-middle::before {
	left: 0;
}

.ascii-middle::after {
	right: 0;
}

.ascii-title {
	font-weight: lighter;
	font-size: 2.5em;
	margin-bottom: 4px;
	word-break: break-word;
}

.ascii-meta {
	font-weight: bold;
	opacity: 0.7;
	font-size: 1em;
	margin: 0 0 15px 0;
}

.ascii-subtitle {
	font-size: 17.5px;
	margin-bottom: 12px;
}

.ascii-body {
	line-height: 1.5;
	margin-bottom: 12px;
}

.ascii-body p {
	margin: 8px 0;
}

.ascii-body figure {
	margin: 16px auto;
	margin-top: 35px;
	max-width: 90%;
	text-align: center;
}

.ascii-body figure img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.ascii-body figcaption {
	text-align: center;
	font-size: 0.95em;
	color: #aaa;
	margin-top: 8px;
}

.ascii-body a {
	color: #fff;
	text-decoration: underline;
	transition: opacity 0.2s ease;
}

.ascii-body a:hover {
	opacity: 0.8;
}

.ascii-body code {
	display: inline-block;
	line-height: 1.5;
	vertical-align: middle;
	margin: 2px 0;
	background-color: rgba(63, 78, 93, 0.25);
	color: #adbac7;
	padding: 3px 6px;
	border-radius: 6px;
	font-size: 0.9em;
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: all 0.2s ease-in-out;
}

.ascii-body code:hover {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.8);
	background-color: rgba(63, 78, 93, 0.4);
}

.ascii-body pre {
	background-color: rgb(13, 17, 23);
	color: rgb(201, 209, 217);
	padding: 12px;
	border-radius: 4px;
	font-size: 0.85em;
	line-height: 1.4;
	overflow-x: auto;
	white-space: pre-wrap;
	word-wrap: break-word;
	word-break: break-word;
	margin: 12px 0;
	border-left: 2px solid #ccc;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

.ascii-body pre::-webkit-scrollbar {
	height: 6px;
}

.ascii-body pre::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
}

.ascii-body pre::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
}

.line-break {
	margin-top: 50px;
}

.advisory-information,
.target-software-specifications {
	white-space: pre-wrap;
	font-family: monospace;
	margin: 20px 0;
	line-height: 1.6;
	color: #fff;
}

.advisory-information h2,
.target-software-specifications h2 {
	margin-top: -30px;
	text-transform: uppercase;
}

.advisory-information .vector-break,
.advisory-information .risk-break {
	display: block;
	margin-left: 18ch;
}

.advisory-information-block,
.target-software-specifications-block {
	margin-top: -45px;
}

.executive-summary h2 {
	margin-top: -5px;
	text-transform: uppercase;
}

.executive-summary-block {
	margin-top: -5px;
}

.technical-source-code-analysis h2 {
	margin-top: 25px;
	text-transform: uppercase;
}

.proof-of-concept h2 {
	margin-top: 25px;
	text-transform: uppercase;
}

.exploitation h2 {
	margin-top: 25px;
	text-transform: uppercase;
}

.remediation-mitigation h2 {
	margin-top: 25px;
	text-transform: uppercase;
}

.vulnerability-disclosure-timeline h2 {
	margin-top: 25px;
	text-transform: uppercase;
}

.ascii-back {
	margin-top: 20px;
	text-transform: uppercase;
}

.ascii-back a {
	color: #fff;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.ascii-back a:hover {
	color: #4fc3f7;
}

samp {
	background-color: rgb(29, 31, 33);
	border-radius: 4px;
	color: rgb(197, 200, 198);
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	padding-left: 6px;
	padding-right: 6px;
	padding-top: 3px;
	text-align: start;
	text-size-adjust: 100%;
	display: inline-block;
	word-break: break-word;
}

.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 1000;
	align-items: center;
	justify-content: center;
}

.modal-overlay:target {
	display: flex;
}

.modal-content {
	background: #1d1f21;
	padding: 20px;
	width: 90%;
	max-width: 900px;
	max-height: 85vh;
	overflow-y: auto;
	border: 1px solid #444;
	border-radius: 4px;
}

.close-link {
	color: #fff;
	float: right;
	text-decoration: underline;
	margin-bottom: 10px;
	cursor: pointer;
	transition: color 0.2s ease;
}

.close-link:hover {
	color: #ccc;
}

.modal-video h3 {
	margin-top: 0;
	margin-bottom: 16px;
}

.modal-video video {
	border-radius: 4px;
	display: block;
	margin: 0 auto;
	max-width: 100%;
}

.modal-video p {
	margin-top: 12px;
	font-size: 0.9em;
	color: #aaa;
	line-height: 1.5;
}

.modal-code h3 {
	margin-top: 0;
	margin-bottom: 16px;
}

.modal-code pre {
	background-color: rgb(13, 17, 23);
	color: rgb(201, 209, 217);
	padding: 12px;
	border-radius: 4px;
	font-size: 0.85em;
	line-height: 1.4;
	overflow-x: auto;
	white-space: pre-wrap;
	word-wrap: break-word;
}

@media(max-width: 480px) {
	.ascii-wrap {
		margin: 8px;
	}

	.ascii-middle {
		padding: 1em 1em 1em 1em;
		border-left: 1px dashed #fff;
		border-right: 1px dashed #fff;
	}

	.ascii-middle::before,
	.ascii-middle::after {
		display: none;
	}

	.ascii-top,
	.ascii-bottom {
		white-space: pre;
		overflow: hidden;
		line-height: 1;
		text-indent: -0.7ch;
	}

	.ascii-top::before,
	.ascii-bottom::before {
		content: " +------------------------------------------------------------------+";
		display: block;
	}

	.ascii-body pre {
		font-size: 0.75em;
		padding: 8px;
	}

	.ascii-body code {
		font-size: 0.85em;
	}

	.ascii-title {
		font-size: 18px;
	}

	.ascii-meta {
		font-size: 10px;
	}

	.ascii-subtitle {
		font-size: 14px;
	}
}