@import url("assets/fonts/fonts.css");

:root {
	--paper: #f2f2f2;
	--surface: #f4f4f5;
	--card: rgba(249, 247, 243, 0.6);
	--white: #ffffff;
	--line: #e5e5e5;
	--line-dark: #334155;
	--green: #107a4d;
	--green-deep: #0c5e3b;
	--green-light: rgba(16, 122, 77, 0.12);
	--amber: #d97706;
	--amber-light: rgba(217, 119, 6, 0.1);
	--ink: #1a1a1a;
	--ink-2: #4a4a4a;
	--ink-muted: #64748b;
	--cream: #fff9eb;
	--dark-bg: #090d16;
	--dark-card: #0f172a;
	--frame: 94%;
	--frame-max: 1600px;
	--grotesk: "Space Grotesk", system-ui, -apple-system, sans-serif;
	--mono: "Space Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	font-family: var(--mono);
	color: var(--ink);
	background: var(--paper);
	overflow-x: hidden;
	width: 100%;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
}
button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4 {
	font-family: var(--grotesk);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--ink);
}

/* ---------- Background layers ---------- */
.bg-hatch {
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-color: var(--paper);
	background-image:
		repeating-linear-gradient(
			45deg,
			rgba(0, 0, 0, 0.04) 0,
			rgba(0, 0, 0, 0.04) 1px,
			transparent 2px,
			transparent 6px
		),
		repeating-linear-gradient(
			-45deg,
			rgba(0, 0, 0, 0.04) 0,
			rgba(0, 0, 0, 0.04) 1px,
			transparent 2px,
			transparent 6px
		);
	filter: blur(1px);
}
.bg-rules {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	display: flex;
	justify-content: center;
}
.bg-rules__frame {
	width: var(--frame);
	max-width: var(--frame-max);
	height: 100%;
	border-left: 1px solid var(--line);
	border-right: 1px solid var(--line);
	display: grid;
	grid-template-columns: repeat(6, 1fr);
}
.bg-rules__frame > span {
	border-right: 1px solid var(--line);
	height: 100%;
}
.bg-rules__frame > span:last-child {
	border-right: none;
}

/* ---------- Frame container ---------- */
.frame {
	width: var(--frame);
	max-width: var(--frame-max);
	margin-inline: auto;
	border-left: 1px solid rgba(229, 229, 229, 0.6);
	border-right: 1px solid rgba(229, 229, 229, 0.6);
	box-sizing: border-box;
}
.pad {
	padding-inline: clamp(16px, 3.5vw, 40px);
}

/* ---------- Header & Statusbar ---------- */
header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.statusbar {
	height: 32px;
	background: var(--green);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-inline: 12px;
}
.statusbar__grid {
	position: absolute;
	inset: 0;
	background-size: 10px 10px;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
}
#blink-layer {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.blink-cell {
	position: absolute;
	width: 9px;
	height: 9px;
	background: #c7cdd1;
	animation: blink 1.5s infinite alternate ease-in-out;
}
@keyframes blink {
	0%, 100% { opacity: 0.1; transform: scale(0.8); }
	50% { opacity: 0.8; transform: scale(1); }
}
.statusbar__text {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #fff;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.statusbar__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.statusbar__text .dot {
	width: 6px;
	height: 6px;
	background: #fff;
	border-radius: 50%;
	flex-shrink: 0;
	animation: pulse 2s infinite;
}
.statusbar__text .sep {
	opacity: 0.4;
}
.statusbar__repo {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 700;
}
.statusbar__repo:hover {
	color: #e2e8f0;
}
@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

.nav-wrap {
	background: rgba(242, 242, 242, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 10px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--grotesk);
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.03em;
}
.brand__icon {
	width: 32px;
	height: 32px;
	background: var(--ink);
	color: #fff;
	display: grid;
	place-items: center;
	border-radius: 4px;
	transition: background 0.25s;
}
.brand:hover .brand__icon {
	background: var(--green);
}
.brand .g { color: var(--green); }
.brand .w { color: var(--ink); }

.nav__right {
	display: flex;
	align-items: center;
	gap: 24px;
}
.nav__links {
	display: flex;
	align-items: center;
	gap: 18px;
}
.nav__links a {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	transition: color 0.2s;
	color: var(--ink-2);
}
.nav__links a:hover {
	color: var(--green);
}
.nav__cta {
	display: flex;
	align-items: center;
	padding-left: 18px;
	border-left: 2px solid var(--line);
}
.btn-offset {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border: 2px solid var(--ink);
	background: var(--line);
	color: var(--ink);
	padding: 8px 16px;
	font-size: 11px;
	box-shadow: 3px 3px 0 0 var(--ink);
	transition: transform 0.15s, box-shadow 0.15s;
	border-radius: 2px;
}
.btn-offset:hover {
	transform: translate(2px, 2px);
	box-shadow: 0 0 0 0 var(--ink);
	background: var(--white);
}
.btn-offset svg {
	width: 14px;
	height: 14px;
}

.menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border: 2px solid var(--ink);
	background: var(--white);
	border-radius: 4px;
	place-items: center;
	box-shadow: 2px 2px 0 var(--ink);
	cursor: pointer;
	transition: all 0.15s;
}
.menu-toggle:active {
	transform: translate(1px, 1px);
	box-shadow: 1px 1px 0 var(--ink);
}
.menu-toggle svg {
	width: 20px;
	height: 20px;
	stroke: var(--ink);
}
.menu-toggle .icon-close {
	display: none !important;
}
.menu-toggle .icon-menu {
	display: block !important;
}
.menu-toggle[aria-expanded="true"] .icon-close {
	display: block !important;
}
.menu-toggle[aria-expanded="true"] .icon-menu {
	display: none !important;
}

/* ---------- Mobile Navigation Overlay Drawer ---------- */
.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	visibility: hidden;
	transition: visibility 0.25s ease;
}
.mobile-nav.open {
	pointer-events: auto;
	visibility: visible;
}
.mobile-nav__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(9, 13, 22, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.mobile-nav.open .mobile-nav__backdrop {
	opacity: 1;
}
.mobile-nav__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(88vw, 360px);
	height: 100%;
	background: #0d121f;
	border-left: 1px solid #1e293b;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 20px;
	box-sizing: border-box;
}
.mobile-nav.open .mobile-nav__panel {
	transform: translateX(0);
}
.mobile-nav__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 14px;
	border-bottom: 1px solid #1e293b;
	margin-bottom: 14px;
}
.mobile-nav__title {
	font-family: var(--grotesk);
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.mobile-nav__close {
	width: 34px;
	height: 34px;
	border: 1px solid #334155;
	background: #1e293b;
	color: #fff;
	border-radius: 4px;
	display: grid;
	place-items: center;
	font-size: 22px;
	cursor: pointer;
}
.mobile-nav__links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.mobile-nav__link {
	display: block;
	padding: 11px 14px;
	color: #cbd5e1;
	font-size: 13px;
	font-family: var(--mono);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 4px;
	border-left: 3px solid transparent;
	transition: all 0.15s;
}
.mobile-nav__link:hover,
.mobile-nav__link:active {
	background: #1e293b;
	color: #ffffff;
	border-left-color: var(--green);
}
.mobile-nav__footer {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #1e293b;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mobile-nav__meta {
	font-size: 11px;
	font-family: var(--mono);
	color: #64748b;
	text-align: center;
}

/* ---------- Buttons (generic) ---------- */
.btn-green {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--green);
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 14px 26px;
	font-size: 12px;
	box-shadow: 4px 4px 0 0 var(--ink);
	border: 2px solid var(--ink);
	border-radius: 2px;
	transition: transform 0.15s, box-shadow 0.15s;
}
.btn-green:hover {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 0 var(--ink);
	background: var(--green-deep);
}
.btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 2px solid var(--ink);
	color: var(--ink);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 14px 26px;
	font-size: 12px;
	border-radius: 2px;
	transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
	background: var(--line);
}

main {
	padding-top: 124px;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
	opacity: 0;
	transition:
		opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.up { transform: translateY(30px); }
.reveal.right { transform: translateX(-30px); }
.reveal.scale { transform: scale(0.95); }
.reveal.in {
	opacity: 1;
	transform: none;
}

/* ---------- Hero ---------- */
.hero {
	min-height: 80vh;
	display: flex;
	align-items: center;
	position: relative;
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.hero__inner {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 48px;
	padding-block: 48px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.hero__left,
.hero__right {
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}
.hero__left {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
}
.badge {
	display: inline-block;
	width: fit-content;
	border: 1px solid var(--green);
	color: var(--green);
	background: rgba(16, 122, 77, 0.06);
	padding: 4px 10px;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	border-radius: 2px;
}
.hero h1 {
	font-size: clamp(2.4rem, 6vw, 5.5rem);
	line-height: 0.95;
	font-weight: 600;
	color: var(--ink);
}
.hero h1 .green {
	display: block;
	color: var(--green);
}
.hero h1 .sub {
	display: block;
	font-size: clamp(1.4rem, 3.8vw, 3rem);
	color: var(--ink-2);
	font-weight: 400;
	margin-top: 8px;
}
.hero__lead {
	font-size: clamp(0.95rem, 1.8vw, 1.05rem);
	color: var(--ink-2);
	max-width: 36rem;
	border-left: 3px solid var(--green);
	padding: 6px 0 6px 18px;
	line-height: 1.65;
}
.hero__subtag {
	font-size: 12px;
	color: var(--ink-2);
	font-family: var(--mono);
}
.hero__subtag strong {
	color: var(--ink);
}
.hero__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding-top: 6px;
}

.editor {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 100%;
	min-height: 380px;
	background: var(--card);
	border: 1px solid var(--line);
	padding: 20px;
	display: flex;
	flex-direction: column;
	box-shadow: 4px 4px 0 var(--line);
	border-radius: 4px;
	box-sizing: border-box;
	overflow: hidden;
}
.editor:hover {
	box-shadow: 6px 6px 0 var(--green);
}
.editor__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--line);
	padding-bottom: 12px;
	margin-bottom: 14px;
}
.editor__dots {
	display: flex;
	gap: 6px;
}
.editor__dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--line);
	border: 1px solid var(--ink-2);
}
.editor__file {
	font-size: 11px;
	color: var(--ink-2);
	font-family: var(--mono);
}
.editor__body {
	font-size: 11.5px;
	color: var(--green-deep);
	line-height: 1.7;
	flex: 1;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	font-family: var(--mono);
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	white-space: pre-wrap;
	word-break: break-word;
	overflow-wrap: anywhere;
}
.editor__body p {
	margin: 0;
	padding: 0;
	max-width: 100%;
	white-space: pre-wrap;
	word-break: break-word;
	overflow-wrap: anywhere;
}
.editor__body .cur {
	display: inline-block;
	width: 7px;
	height: 12px;
	background: var(--green);
	animation: caret 1s steps(1) infinite;
}
@keyframes caret {
	50% { opacity: 0; }
}
.editor__float {
	position: absolute;
	bottom: -16px;
	right: -16px;
	width: 90px;
	height: 90px;
	background: rgba(16, 122, 77, 0.08);
	border: 1px solid var(--green);
	z-index: -1;
	pointer-events: none;
}

/* ---------- Stats Grid ---------- */
.stats {
	border-bottom: 1px solid var(--line);
	background: var(--white);
}
.stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	width: 100%;
}
.stat {
	padding: 28px 20px;
	border-right: 1px solid rgba(229, 229, 229, 0.7);
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
}
.stat:last-child {
	border-right: none;
}
.stat__num {
	font-family: var(--grotesk);
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	font-weight: 700;
	color: var(--green);
	line-height: 1.1;
}
.stat__cap {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--ink-2);
}

/* ---------- Section Standard ---------- */
section.block {
	padding-block: clamp(48px, 7vw, 84px);
	border-top: 1px solid var(--line);
}
.sec-surface { background: var(--surface); }
.sec-paper { background: var(--paper); }

.sec-head {
	display: grid;
	grid-template-columns: 8fr 4fr;
	gap: 28px;
	align-items: end;
	margin-bottom: 40px;
}
.sec-head h2 {
	font-size: clamp(2rem, 5vw, 3.8rem);
	margin-bottom: 12px;
	line-height: 1.05;
}
.sec-head h2 .green { color: var(--green); }
.sec-head__sub {
	font-size: 14px;
	color: var(--ink-2);
	line-height: 1.6;
}
.sec-head__tag {
	display: flex;
	justify-content: flex-end;
}
.sec-head__tag span {
	font-size: 11px;
	font-family: var(--mono);
	color: var(--ink-2);
	background: var(--white);
	border: 1px solid var(--line);
	padding: 6px 12px;
	border-radius: 4px;
}

/* ---------- Architecture Feature Grid ---------- */
.feat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}
.card {
	background: var(--card);
	border: 1px solid var(--line);
	padding: 24px;
	box-shadow: 3px 3px 0 var(--line);
	display: flex;
	flex-direction: column;
	border-radius: 4px;
	box-sizing: border-box;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
	transform: translateY(-2px);
	box-shadow: 4px 4px 0 var(--ink);
	border-color: var(--ink);
}
.card.span2 {
	grid-column: span 2;
}
.card__tag {
	font-size: 10.5px;
	font-family: var(--mono);
	text-transform: uppercase;
	color: var(--green);
	font-weight: 700;
	margin-bottom: 8px;
	letter-spacing: 0.08em;
}
.card h3 {
	font-size: 19px;
	margin-bottom: 12px;
	color: var(--ink);
}
.card p {
	font-size: 13px;
	color: var(--ink-2);
	line-height: 1.65;
	flex: 1;
}
.spec-row {
	display: flex;
	gap: 16px;
	margin-top: 18px;
	border-top: 1px solid var(--line);
	padding-top: 12px;
	flex-wrap: wrap;
}
.spec-col {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.spec-col .label {
	font-size: 10px;
	font-family: var(--mono);
	color: var(--ink-muted);
	text-transform: uppercase;
}
.spec-col .val {
	font-size: 12px;
	font-family: var(--mono);
	color: var(--ink);
	font-weight: 600;
}

/* ========================================================
   CAPABILITIES & PRACTICAL LIMITATIONS GRID (NEW)
======================================================== */
.cap-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 24px;
	width: 100%;
	box-sizing: border-box;
}
.cap-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 28px 24px;
	box-shadow: 4px 4px 0 var(--line);
	box-sizing: border-box;
}
.cap-does {
	border-top: 4px solid var(--green);
}
.cap-does-not {
	border-top: 4px solid var(--amber);
}
.cap-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 18px;
}
.cap-icon {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 6px;
	flex-shrink: 0;
}
.cap-icon.check {
	background: var(--green-light);
	color: var(--green);
	border: 1px solid rgba(16, 122, 77, 0.3);
}
.cap-icon.warn {
	background: var(--amber-light);
	color: var(--amber);
	border: 1px solid rgba(217, 119, 6, 0.3);
}
.cap-header h3 {
	font-size: 19px;
	color: var(--ink);
	line-height: 1.2;
}
.cap-sub {
	font-size: 11px;
	font-family: var(--mono);
	color: var(--ink-muted);
}
.cap-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.cap-list li {
	font-size: 13px;
	line-height: 1.6;
	color: var(--ink-2);
	position: relative;
	padding-left: 18px;
}
.cap-list li::before {
	content: "▪";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--green);
	font-size: 14px;
}
.cap-does-not .cap-list li::before {
	color: var(--amber);
}
.cap-list strong {
	color: var(--ink);
}

/* ========================================================
   HIGH-CONTRAST VECTOR DIAGRAM STYLING
======================================================== */
.diagram-viewer {
	background: #090d16;
	border: 1px solid #1e293b;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5);
	margin-top: 20px;
}
.diagram-toolbar {
	background: #0f172a;
	border-bottom: 1px solid #1e293b;
	padding: 12px 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
.diagram-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.d-tab {
	background: #1e293b;
	color: #cbd5e1;
	border: 1px solid #334155;
	padding: 6px 14px;
	font-size: 11.5px;
	font-family: var(--mono);
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
}
.d-tab:hover {
	color: #ffffff;
	background: #334155;
}
.d-tab.active {
	background: var(--green);
	color: #ffffff;
	border-color: var(--green-deep);
}
.diagram-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}
.d-pill {
	font-size: 11px;
	font-family: var(--mono);
	padding: 4px 10px;
	background: rgba(16, 122, 77, 0.18);
	color: var(--green);
	border: 1px solid rgba(16, 122, 77, 0.35);
	border-radius: 12px;
	font-weight: 600;
}
.diagram-stage {
	display: none;
	padding: 20px 16px;
	background: #060913;
	border: 1px solid #1e293b;
	border-radius: 6px;
	margin: 14px;
}
.diagram-stage.active {
	display: block;
}
.diagram-scroll {
	width: 100%;
	overflow-x: auto;
	display: flex;
	justify-content: center;
	padding: 8px 0;
	-webkit-overflow-scrolling: touch;
}
.diagram-stage svg,
svg.diagram-svg {
	width: 100%;
	max-width: 1100px;
	height: auto;
	display: block;
	margin: 0 auto;
}
.diagram-caption {
	padding: 12px 18px;
	background: #0f172a;
	border-top: 1px solid #1e293b;
	font-size: 12px;
	color: #cbd5e1;
	font-family: var(--mono);
	line-height: 1.5;
}

/* ========================================================
   HANDWRITTEN MATH VIEWER (21 PAGES)
======================================================== */
.math-viewer {
	background: var(--card);
	border: 1px solid var(--line);
	box-shadow: 4px 4px 0 var(--line);
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	border-radius: 6px;
	overflow: hidden;
}
.math-tabs {
	display: flex;
	gap: 4px;
	padding: 12px 16px;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.m-tab {
	background: var(--white);
	color: var(--ink-2);
	border: 1px solid var(--line);
	padding: 7px 14px;
	font-size: 11px;
	font-family: var(--mono);
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s;
	flex-shrink: 0;
}
.m-tab:hover {
	color: var(--green);
	border-color: var(--green);
}
.m-tab.active {
	background: var(--green);
	color: #ffffff;
	border-color: var(--green-deep);
}
.math-pane {
	display: none;
	padding: 24px;
}
.math-pane.active {
	display: block;
}
.math-pane__grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 28px;
	align-items: start;
	width: 100%;
	box-sizing: border-box;
}
.math-pane__text h3 {
	font-size: 18px;
	margin-bottom: 12px;
	color: var(--ink);
}
.math-pane__text p {
	font-size: 13px;
	color: var(--ink-2);
	margin-bottom: 12px;
	line-height: 1.6;
}
.math-pane__text ul {
	margin-left: 20px;
	margin-bottom: 14px;
	font-size: 13px;
	color: var(--ink-2);
	line-height: 1.6;
}
.math-pane__text code {
	display: block;
	background: #0d1117;
	color: #58a6ff;
	padding: 10px 14px;
	font-family: var(--mono);
	font-size: 12px;
	border-radius: 4px;
	border: 1px solid #30363d;
	margin: 12px 0;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
}
.math-callout {
	background: rgba(16, 122, 77, 0.08);
	border-left: 3px solid var(--green);
	padding: 10px 14px;
	font-size: 12px;
	color: var(--green-deep);
	margin-top: 14px;
	line-height: 1.5;
	border-radius: 0 4px 4px 0;
}
.math-pane__scans {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	width: 100%;
	box-sizing: border-box;
}
.math-pane__scans.single {
	grid-template-columns: 1fr;
}
.math-pane__scans.grid3 {
	grid-template-columns: repeat(3, 1fr);
}
.math-pane__scans.grid4 {
	grid-template-columns: repeat(2, 1fr);
}
.scan-card {
	background: var(--white);
	border: 1px solid var(--line);
	padding: 8px;
	border-radius: 4px;
	box-shadow: 2px 2px 0 var(--line);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	box-sizing: border-box;
	width: 100%;
}
.scan-card:hover {
	transform: translateY(-2px);
	box-shadow: 3px 3px 0 var(--green);
	border-color: var(--green);
}
.scan-card img {
	width: 100%;
	height: auto;
	max-height: 380px;
	object-fit: contain;
	display: block;
	border: 1px solid var(--line);
	border-radius: 2px;
	background: #ffffff;
}
.scan-card span {
	display: block;
	font-size: 11px;
	font-family: var(--mono);
	color: var(--ink-2);
	margin-top: 6px;
	text-align: center;
	line-height: 1.4;
}
.download-link {
	font-size: 11.5px;
	font-family: var(--mono);
	font-weight: 600;
	color: var(--green);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.download-link:hover {
	color: var(--green-deep);
}

/* ========================================================
   FULLSCREEN LIGHTBOX MODAL (FOR HIGH-RES SCAN INSPECTION)
======================================================== */
.math-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	pointer-events: none;
	visibility: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.math-modal.open {
	pointer-events: auto;
	visibility: visible;
}
.math-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(9, 13, 22, 0.88);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.math-modal__container {
	position: relative;
	z-index: 2;
	background: #0d121f;
	border: 1px solid #1e293b;
	border-radius: 8px;
	width: min(94vw, 1100px);
	max-height: 94vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}
.math-modal__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 18px;
	background: #090d16;
	border-bottom: 1px solid #1e293b;
	color: #cbd5e1;
	font-family: var(--mono);
	font-size: 12px;
	gap: 12px;
}
.math-modal__counter {
	color: var(--green);
	font-weight: 700;
	white-space: nowrap;
}
.math-modal__title {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #ffffff;
}
.math-modal__close {
	width: 32px;
	height: 32px;
	background: #1e293b;
	border: 1px solid #334155;
	color: #fff;
	border-radius: 4px;
	display: grid;
	place-items: center;
	font-size: 20px;
	cursor: pointer;
}
.math-modal__body {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 300px;
	max-height: 72vh;
	padding: 12px;
	background: #060913;
}
.math-modal__image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
}
.math-modal__image-wrap img {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.math-modal__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: rgba(30, 41, 59, 0.8);
	border: 1px solid #475569;
	color: #ffffff;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 18px;
	cursor: pointer;
	z-index: 5;
	transition: all 0.2s;
}
.math-modal__nav:hover {
	background: var(--green);
	border-color: var(--green);
}
.math-modal__nav.prev { left: 16px; }
.math-modal__nav.next { right: 16px; }
.math-modal__caption {
	padding: 10px 18px;
	background: #090d16;
	border-top: 1px solid #1e293b;
	font-size: 12px;
	color: #94a3b8;
	font-family: var(--mono);
	text-align: center;
}

/* ========================================================
   SEAMLESS BORDERLESS RESEARCH PAPER PREVIEWER
======================================================== */
.paper-card {
	background: var(--card);
	border: 1px solid var(--line);
	box-shadow: 4px 4px 0 var(--line);
	margin-top: 20px;
	border-radius: 6px;
	overflow: hidden;
}
.paper-header {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	padding: 24px 28px;
}
.paper-header h3 {
	font-size: clamp(1.3rem, 2.8vw, 1.8rem);
	color: var(--ink);
	margin-bottom: 8px;
	line-height: 1.3;
}
.paper-authors {
	font-size: 12.5px;
	color: var(--ink-2);
	font-family: var(--mono);
}
.paper-authors a {
	color: var(--green);
	text-decoration: underline;
}
.paper-abstract {
	padding: 20px 28px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--ink-2);
	border-bottom: 1px solid var(--line);
	background: var(--white);
}

/* PDF Preview Container (Zero Heavy Bezel) */
.pdf-preview-container {
	margin: 20px 24px;
	background: #090d16;
	border: 1px solid #1e293b;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.4);
}
.pdf-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	background: #0f172a;
	border-bottom: 1px solid #1e293b;
	flex-wrap: wrap;
	gap: 10px;
}
.pdf-toggle-group {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.pdf-btn {
	background: #1e293b;
	color: #cbd5e1;
	border: 1px solid #334155;
	padding: 6px 14px;
	font-size: 11.5px;
	font-family: var(--mono);
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}
.pdf-btn:hover {
	color: #fff;
	background: #334155;
}
.pdf-btn.active {
	background: var(--green);
	color: #fff;
	border-color: var(--green-deep);
}
.pdf-btn-green {
	background: rgba(16, 122, 77, 0.2);
	color: #4ade80;
	border-color: rgba(16, 122, 77, 0.4);
}
.pdf-btn-green:hover {
	background: var(--green);
	color: #fff;
}
.pdf-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.pdf-doc-indicator {
	font-size: 11px;
	font-family: var(--mono);
	color: #94a3b8;
}
.pdf-viewport {
	width: 100%;
	height: 680px;
	background: #ffffff;
	position: relative;
}
.pdf-frame {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}
.pdf-mobile-fallback {
	display: none;
	background: #0f172a;
	border-top: 1px solid #1e293b;
	padding: 12px 16px;
	align-items: center;
	gap: 12px;
	color: #cbd5e1;
	font-family: var(--mono);
	font-size: 12px;
}
.pmf-icon {
	color: var(--green);
	flex-shrink: 0;
}
.pmf-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.pmf-text strong {
	color: #ffffff;
}
.pmf-text span {
	font-size: 11px;
	color: #94a3b8;
}

/* BibTeX Card */
.bibtex-wrap {
	background: #0d1117;
	border: 1px solid #30363d;
	border-radius: 4px;
	overflow: hidden;
	margin: 20px 24px;
}
.bibtex-head {
	background: #161b22;
	border-bottom: 1px solid #30363d;
	padding: 8px 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11px;
	font-family: var(--mono);
	color: #8b949e;
}
.btn-copy {
	background: #21262d;
	color: #c9d1d9;
	border: 1px solid #30363d;
	padding: 3px 8px;
	font-size: 10px;
	border-radius: 3px;
	cursor: pointer;
}
.btn-copy:hover {
	background: #30363d;
	color: #fff;
}
.bibtex-wrap pre {
	padding: 14px;
	font-family: var(--mono);
	font-size: 11.5px;
	color: #7ee787;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
	line-height: 1.5;
}

/* ========================================================
   EMPIRICAL BENCHMARKS TABLE
======================================================== */
.table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-top: 16px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 4px;
	box-shadow: 3px 3px 0 var(--line);
}
.data-table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	font-family: var(--mono);
	font-size: 12.5px;
}
.data-table th, .data-table td {
	border: 1px solid var(--line);
	padding: 10px 14px;
	text-align: left;
}
.data-table th {
	background: var(--surface);
	font-weight: 600;
	color: var(--ink);
}
.data-table tr:nth-child(even) {
	background: rgba(0, 0, 0, 0.015);
}
.badge-pass {
	display: inline-block;
	background: rgba(16, 122, 77, 0.12);
	color: var(--green);
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 11px;
	border: 1px solid rgba(16, 122, 77, 0.25);
}
.table-hint {
	display: none;
	font-size: 11px;
	font-family: var(--mono);
	color: var(--ink-muted);
	padding: 8px 14px;
	text-align: center;
	border-top: 1px solid var(--line);
	background: var(--surface);
}

/* ========================================================
   CAPACITY TIERS
======================================================== */
.price-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}
.tier {
	background: var(--card);
	border: 1px solid var(--line);
	padding: 28px 24px;
	border-radius: 4px;
	box-shadow: 3px 3px 0 var(--line);
	display: flex;
	flex-direction: column;
	position: relative;
	box-sizing: border-box;
}
.tier.highlight {
	border-color: var(--green);
	box-shadow: 4px 4px 0 var(--green);
}
.tier__badge {
	position: absolute;
	top: -10px;
	right: 16px;
	background: var(--green);
	color: #fff;
	font-size: 10px;
	font-family: var(--mono);
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	text-transform: uppercase;
}
.tier__name {
	font-size: 18px;
	font-weight: 600;
	color: var(--ink);
}
.tier__sub {
	font-size: 11px;
	font-family: var(--mono);
	color: var(--ink-muted);
	margin-top: 4px;
	margin-bottom: 14px;
}
.tier__price {
	font-family: var(--grotesk);
	font-size: 32px;
	font-weight: 700;
	color: var(--green);
	margin-bottom: 16px;
}
.tier__price .unit {
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-2);
	font-family: var(--mono);
}
.tier__specs {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-top: 1px solid var(--line);
	padding-top: 14px;
	flex: 1;
}
.tier__specs li {
	font-size: 12.5px;
	color: var(--ink-2);
	line-height: 1.5;
	position: relative;
	padding-left: 16px;
}
.tier__specs li::before {
	content: "▪";
	position: absolute;
	left: 0;
	color: var(--green);
}

/* ========================================================
   CLI & MEDIA SECTION
======================================================== */
.split-media {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}
.media-card {
	background: var(--card);
	border: 1px solid var(--line);
	padding: 14px;
	box-shadow: 3px 3px 0 var(--line);
	border-radius: 4px;
	box-sizing: border-box;
}
.media-card img {
	width: 100%;
	height: auto;
	max-height: 380px;
	object-fit: contain;
	display: block;
	border: 1px solid var(--line);
	background: #0d1117;
	border-radius: 2px;
}
.media-card figcaption {
	font-size: 11.5px;
	color: var(--ink-2);
	margin-top: 8px;
	font-family: var(--mono);
	line-height: 1.4;
}
.cli-box {
	background: #0d1117;
	color: #7ee787;
	padding: 16px;
	border: 1px solid #30363d;
	font-family: var(--mono);
	font-size: 12px;
	line-height: 1.6;
	overflow-x: auto;
	white-space: pre;
	border-radius: 4px;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}

/* ========================================================
   ORIGIN & AUTHOR SECTION (HUMBLE & PROFESSIONAL)
======================================================== */
.about-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 32px;
	align-items: start;
	width: 100%;
	box-sizing: border-box;
}
.about-narrative h3 {
	font-size: 20px;
	margin-bottom: 14px;
	color: var(--ink);
}
.about-narrative p {
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--ink-2);
	margin-bottom: 14px;
}
.author-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 24px;
	box-shadow: 4px 4px 0 var(--line);
	box-sizing: border-box;
}
.author-card__top {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 14px;
}
.author-photo {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--green);
	flex-shrink: 0;
}
.author-badge {
	display: inline-block;
	font-size: 10px;
	font-family: var(--mono);
	color: var(--green);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
}
.author-name {
	font-size: 20px;
	color: var(--ink);
	margin-block: 2px;
}
.author-note {
	font-size: 11px;
	font-family: var(--mono);
	color: var(--ink-muted);
}
.author-bio {
	font-size: 13px;
	color: var(--ink-2);
	line-height: 1.6;
	margin-bottom: 16px;
}
.author-links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 12px;
}
.author-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--white);
	border: 1px solid var(--line);
	color: var(--ink);
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 11.5px;
	font-family: var(--mono);
	font-weight: 600;
	transition: all 0.2s;
}
.author-link:hover {
	border-color: var(--green);
	color: var(--green);
	background: var(--surface);
}
.license-notice {
	font-size: 11px;
	font-family: var(--mono);
	color: var(--ink-muted);
	line-height: 1.4;
}

/* ========================================================
   FAQ SECTION
======================================================== */
.faq {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
details {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 16px 20px;
	transition: border-color 0.2s;
}
details[open] {
	border-color: var(--green);
}
summary {
	font-family: var(--grotesk);
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary .pm::before {
	content: "+";
	font-family: var(--mono);
	font-size: 18px;
	color: var(--green);
	font-weight: 700;
}
details[open] summary .pm::before {
	content: "−";
}
.answer {
	font-size: 13.5px;
	color: var(--ink-2);
	line-height: 1.65;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

/* ========================================================
   FOOTER
======================================================== */
footer {
	border-top: 1px solid var(--line);
	background: var(--surface);
	padding-block: 48px 32px;
}
.foot-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 36px;
	margin-bottom: 32px;
}
.foot-grid h3 {
	font-size: 20px;
	margin-bottom: 8px;
}
.foot-grid h4 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink);
	margin-bottom: 12px;
}
.foot-grid p {
	font-size: 12.5px;
	color: var(--ink-2);
	line-height: 1.6;
	max-width: 28rem;
}
.foot-grid ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.foot-grid ul a {
	font-size: 12px;
	color: var(--ink-2);
	transition: color 0.2s;
}
.foot-grid ul a:hover {
	color: var(--green);
}
.foot-bot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--line);
	padding-top: 20px;
	font-size: 11.5px;
	color: var(--ink-muted);
	flex-wrap: wrap;
	gap: 12px;
}

/* ========================================================
   MOBILE & RESPONSIVE PERFECTION
======================================================== */
@media (max-width: 1023px) {
	.bg-rules__frame {
		grid-template-columns: repeat(4, 1fr);
	}
	.bg-rules__frame > span:nth-child(n + 4) {
		display: none;
	}
	.hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
		padding-block: 32px;
		width: 100%;
		max-width: 100%;
		overflow: hidden;
	}
	.editor {
		min-height: auto;
		max-width: 100%;
	}
	.editor__float {
		display: none !important;
	}
	.sec-head {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.sec-head__tag {
		justify-content: flex-start;
	}
	.feat-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.card.span2 {
		grid-column: span 2;
	}
	.cap-grid {
		grid-template-columns: 1fr;
	}
	.math-pane__grid {
		grid-template-columns: 1fr;
	}
	.about-grid {
		grid-template-columns: 1fr;
	}
	.foot-grid {
		grid-template-columns: 1fr 1fr;
	}
	.foot-grid > div:first-child {
		grid-column: span 2;
	}
}

@media (max-width: 767px) {
	main {
		padding-top: 106px;
	}
	.nav__right {
		display: none;
	}
	.menu-toggle {
		display: grid;
	}
	.statusbar__text {
		font-size: 10px;
		letter-spacing: 0.05em;
	}
	.statusbar__text .sep,
	.statusbar__repo {
		display: none;
	}
	.bg-rules__frame {
		grid-template-columns: repeat(2, 1fr);
	}
	.bg-rules__frame > span:nth-child(n + 2) {
		display: none;
	}
	.stats__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.stat {
		padding: 18px 12px;
	}
	.stat:nth-child(2) {
		border-right: none;
	}
	.stat:nth-child(1),
	.stat:nth-child(2) {
		border-bottom: 1px solid rgba(229, 229, 229, 0.7);
	}
	.feat-grid {
		grid-template-columns: 1fr;
	}
	.card.span2 {
		grid-column: span 1;
	}
	.price-grid {
		grid-template-columns: 1fr;
	}
	.split-media {
		grid-template-columns: 1fr;
	}
	.math-pane__scans,
	.math-pane__scans.grid3,
	.math-pane__scans.grid4 {
		grid-template-columns: 1fr;
	}
	.editor {
		padding: 16px;
		min-height: auto;
		max-width: 100%;
	}
	.editor__float {
		display: none !important;
	}
	.table-hint {
		display: block;
	}
	.pdf-preview-container {
		margin: 16px 12px;
	}
	.pdf-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	.pdf-toggle-group, .pdf-actions {
		width: 100%;
		justify-content: center;
	}
	.pdf-btn {
		flex: 1;
		justify-content: center;
		text-align: center;
	}
	.pdf-viewport {
		height: 480px;
	}
	.pdf-mobile-fallback {
		display: flex;
	}
	.bibtex-wrap {
		margin: 16px 12px;
	}
	.paper-header {
		padding: 18px 16px;
	}
	.paper-abstract {
		padding: 16px;
	}
}

@media (max-width: 480px) {
	.hero h1 {
		font-size: 2.2rem;
	}
	.hero h1 .sub {
		font-size: 1.35rem;
	}
	.hero__btns {
		flex-direction: column;
		width: 100%;
	}
	.hero__btns a {
		width: 100%;
		justify-content: center;
	}
	.stat__num {
		font-size: 1.6rem;
	}
	.math-modal__nav {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}
	.math-modal__nav.prev { left: 6px; }
	.math-modal__nav.next { right: 6px; }
	.foot-grid {
		grid-template-columns: 1fr;
	}
	.foot-grid > div:first-child {
		grid-column: span 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.blink-cell,
	.editor__body .cur,
	.statusbar__text .dot {
		animation: none !important;
	}
	html {
		scroll-behavior: auto !important;
	}
}
