/* Serial-New.css — themed to match serial-docs.css */

:root {
	--fg: rgba(255,255,255,1.0);
	--muted: #aaaaaa;
	--bg: rgba(63,63,63,0.7);
	--card: rgba(192,192,192,0.7);
	--special: rgba(0,0,0,0.4);
	--border: #e4e6eb;
	--accent: #d4af37; /* gold */
}

/* Base */
html, body {
	margin: 0;
	padding: 0;
	color: var(--fg);
	font-family: 'Courier New', monospace;
	font-size: 2.21vmin;
	line-height: 1.6;
	text-align: left;
	font-weight: normal;
}

/* Outlined text style (from serial-docs.css) */
.outlined-text {
	color: #ffffff;
	font-size: 12px;
	font-weight: bold;
	text-shadow:
		-2px -1px 0 var(--special),
		 2px -1px 0 var(--special),
		-2px	1px 0 var(--special),
		 2px	1px 0 var(--special),
		-1px -2px 0 var(--special),
		 1px -2px 0 var(--special),
		-1px	2px 0 var(--special),
		 1px	2px 0 var(--special),
		-2px -2px 0 var(--special),
		 2px -2px 0 var(--special),
		-2px	2px 0 var(--special),
		 2px	2px 0 var(--special);
}

/* Content container (flattened to docs look) */
article {
	max-width: 900px;
	margin: 3rem auto;
	padding: 2rem;
	background: var(--card);
	border-radius: 8px;
	border: 1px solid var(--border);
	box-shadow: none;
}

/* Headings */
h1 {
	line-height: 1.2;
	margin: 0.2em 0 0.4em;
	text-align: center;
	color: var(--accent);
}
h2 { margin: 2rem 0 0.6rem; }

/* Paragraph rhythm */
p { margin: 0.6rem 0; }
p + p { padding-top: 1em; }

/* Subtle secondary text */
.subtitle {
	margin-top: -0.2rem;
	color: var(--muted);
	font-size: 0.95em;
	font-weight: normal;
	text-shadow: none;
}

/* Mono code/kbd tokens */
code, kbd {
	font-family: inherit;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 0.1rem 0.3rem;
}

/* Lists */
ul { padding-left: 1.2rem; }
li { padding-left: 2em; }

/* Blockquote */
blockquote {
	margin: 1rem 0;
	padding: 1rem 1.2rem;
	border-left: 4px solid var(--accent);
	background: #fff8dc;
	border-radius: 6px;
}

/* Footer meta */
footer {
	margin-top: 2.5rem;
	font-size: 0.9rem;
	color: var(--muted);
	text-align: left;
}

/* Links */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Yes/No row */
.yesno {
	display: flex;
	gap: 0.5rem;
	margin: 1rem 0 1.5rem;
}

/* Grid + card */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}
.card {
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1rem;
	box-shadow: none;
}

/* ——— Docs-theme components brought over ——— */

/* Horizontally centered media/bio rows */
.ytbody,
.ytframe {
	display: flex;
	align-items: center;
	gap: 1em;
	padding: 1em 0;
	margin: 0 auto;
	width: fit-content;
}

.ytbody figure {
	margin: 0;
	text-align: center;
	width: 72px;
}

.ytbody figcaption {
	font-size: 0.9em;
	color: var(--muted);
	text-align: center;
}

.ytbody .bio {
	width: 35vw;
	text-align: left;
}

/* Optional helper: gold links that also support outlined-text when desired */
p.outlined-text,
span.outlined-text,
div.outlined-text,
ol.outlined-text,
ul.outlined-text,
li.outlined-text,
a.outlined-text,
h1.outlined-text {
	color: var(--accent);
}

/* Small fix-ups */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Layout + independent scroll areas */
#layout { height: 100vh; overflow: hidden; display: flex; }

/* Sidebar scroller */
#sidebar-scroll {
	width: 320px;
	height: 100%;
	min-height: 0;
	overflow-y: auto;
}

/* Make the main column create a scroll context */
#main-scroll {
	flex: 1 1 auto;
	height: 100%;
	min-height: 0;
	overflow: hidden;								 /* prevent double scrollbars */
	display: flex;
	flex-direction: column;
}

/* Make the frame container the scroller (so the article area scrolls) */
#frame-container {
	flex: 1 1 auto;
	height: 100%;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}
