/* ==========================================================
   tab4's lost world — "Midnight Scrapbook" theme
   dark charcoal + amber, cream paper post cards
   ========================================================== */

* {
	box-sizing: border-box;
}

html {
	background: #0a0a0b;
}

body#lost-world,
body#lost-world-post,
body#lost-world-login {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	background: repeating-linear-gradient(0deg, #18181a 0, #18181a 2px, #141416 2px, #141416 4px);
	color: #c9c2ac;
	font: 13px/1.55 "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
}

body#lost-world:before,
body#lost-world-post:before,
body#lost-world-login:before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(ellipse at 50% 0%, rgba(224, 164, 60, 0.05) 0, transparent 55%),
		radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}

a {
	color: #e0a43c;
	text-decoration: none;
}

a:hover {
	color: #f0c878;
	text-decoration: underline;
}

.wrapper {
	width: 960px;
	margin: 0 auto;
}

.wrapper:after,
#pagebody .wrapper:after,
.pagination:after {
	content: "";
	display: block;
	clear: both;
}

/* ---------- header band ---------- */

#header {
	background: linear-gradient(#2e2e31, #1c1c1f);
	border-bottom: 1px solid #060607;
	padding: 9px 0;
	box-shadow: 0 4px 22px rgba(0, 0, 0, 0.65);
}

#header .band {
	border: 2px dashed rgba(224, 196, 140, 0.32);
	border-radius: 6px;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

#header h1 {
	margin: 0;
	font: normal 32px Georgia, "Times New Roman", serif;
	letter-spacing: 0;
}

#header h1 a {
	color: #ece2c0;
	text-decoration: none;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 18px rgba(224, 164, 60, 0.22);
}

#header h1 a:hover {
	color: #f7eccb;
	text-decoration: none;
}

.band-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 9px;
}

.nav-buttons {
	display: flex;
	gap: 5px;
}

.nav-buttons .admin-nav {
	display: contents;
}

.nav-buttons a {
	display: block;
	padding: 6px 15px;
	font: bold 11px Verdana, Arial, sans-serif;
	text-decoration: none;
	border-radius: 4px;
}

.nav-buttons a.btn-amber {
	color: #2c1f0d;
	background: linear-gradient(#f0c878, #d99a3e);
	border: 1px solid #8a5e1e;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.55);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav-buttons a.btn-amber:hover {
	background: linear-gradient(#f7d48c, #e2a64a);
	color: #2c1f0d;
	text-decoration: none;
}

.nav-buttons a.btn-dark {
	color: #d6cdb0;
	background: linear-gradient(#3a3a3e, #262629);
	border: 1px solid #0e0e10;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
}

.nav-buttons a.btn-dark:hover {
	background: linear-gradient(#46464b, #2e2e32);
	color: #ece2c0;
	text-decoration: none;
}

.hit-counter {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hit-counter .hits-label {
	font: 9px Verdana, Arial, sans-serif;
	color: #8a8268;
}

.hit-counter .lcd {
	display: flex;
	gap: 1px;
	background: #000;
	padding: 2px;
	border: 1px solid #4a4a4e;
	border-radius: 2px;
}

.hit-counter .lcd span {
	background: #101010;
	color: #7cfc00;
	font: bold 12px "Courier New", Courier, monospace;
	padding: 1px 4px;
	text-shadow: 0 0 4px rgba(124, 252, 0, 0.5);
}

/* ---------- notice strip ---------- */

.notice {
	background: linear-gradient(#2a2722, #211f1b);
	border-bottom: 1px solid #060607;
	padding: 8px 20px;
	font-size: 11px;
	color: #d8cdaa;
	text-align: center;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.notice a {
	font-weight: bold;
}

/* ---------- page body ---------- */

#pagebody {
	flex: 1;
	padding: 28px 0 42px;
}

.col-9 {
	float: left;
	width: 670px;
}

.col-3 {
	float: right;
	width: 250px;
}

/* ---------- paper post cards ---------- */

.post-summary,
.post-single {
	margin-bottom: 24px;
	padding: 18px 22px 16px;
	background: #e7e4da;
	border: 1px solid #070708;
	border-radius: 3px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

h3.date {
	margin: 0 0 2px;
	padding: 0;
	border: 0;
	color: #87816d;
	font: normal 11px "Courier New", Courier, monospace;
}

h2.fancy {
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px dashed #cfcaba;
	color: #3a362b;
	font: normal 26px Georgia, "Times New Roman", serif;
	letter-spacing: 0;
}

h2.fancy a {
	color: #3a362b;
	text-decoration: none;
}

h2.fancy a:hover {
	color: #9a6a1f;
	text-decoration: underline;
}

.meta {
	margin: 0 0 12px;
	color: #87816d;
	font-size: 10px;
}

.meta a {
	color: #9a6a1f;
}

.storycontent {
	font: 14px/1.7 Georgia, "Times New Roman", serif;
	color: #383428;
}

.storycontent p {
	margin: 0 0 14px;
}

.storycontent h3 {
	margin: 22px 0 9px;
	color: #4a3f28;
	font: normal 20px Georgia, "Times New Roman", serif;
}

.storycontent blockquote {
	margin: 16px 0 16px 18px;
	padding-left: 14px;
	border-left: 4px solid #b8b29c;
	color: #57523f;
}

.feedback {
	margin: 4px 0 0;
	padding: 8px 0 0;
	border-top: 1px solid #d4cfc0;
	color: #87816d;
	font-size: 11px;
}

.feedback a {
	color: #9a6a1f;
	font-weight: bold;
}

/* ---------- sidebar widgets ---------- */

.widget {
	margin: 0 0 16px;
	background: #232325;
	border: 1px solid #0a0a0b;
	border-radius: 5px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 2px 6px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}

.widget h4 {
	margin: 0;
	padding: 6px 10px;
	background: linear-gradient(#3b3b3f, #29292c);
	border-bottom: 1px solid #0a0a0b;
	color: #e8dfc0;
	font: bold 11px Verdana, Arial, sans-serif;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7);
}

.widget .widget-body {
	padding: 11px;
	font-size: 11px;
	line-height: 1.6;
	color: #c2bba6;
}

.about-box {
	display: flex;
	gap: 10px;
}

.about-box .avatar {
	width: 64px;
	height: 64px;
	flex: none;
	border: 2px solid #0c0c0d;
	background: repeating-linear-gradient(45deg, #3a3a3e 0, #3a3a3e 6px, #313134 6px, #313134 12px);
	display: grid;
	place-items: center;
	font: 9px "Courier New", Courier, monospace;
	color: #8f8a78;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-box b {
	color: #ece2c0;
}

.widget ul {
	margin: 0;
	padding: 0 0 0 16px;
	line-height: 1.9;
	color: #9a947f;
}

.widget li {
	margin: 0;
}

.search-panel form {
	display: flex;
	gap: 6px;
	margin: 0;
}

.search-panel .text {
	flex: 1;
	min-width: 0;
	padding: 5px 6px;
	background: #e7e4da;
	border: 1px solid #060607;
	border-radius: 3px;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
	color: #383428;
	font: 11px Verdana, Arial, sans-serif;
}

.search-panel .button {
	padding: 5px 11px;
	background: linear-gradient(#f0c878, #d99a3e);
	border: 1px solid #8a5e1e;
	border-radius: 3px;
	color: #2c1f0d;
	font: bold 10px Verdana, Arial, sans-serif;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
	cursor: pointer;
}

.search-panel .button:hover {
	background: linear-gradient(#f7d48c, #e2a64a);
}

/* ---------- login ---------- */

.login-shell {
	flex: 1;
	display: grid;
	place-items: center;
	width: 100%;
	padding: 28px 18px;
}

.login-panel {
	width: min(100%, 360px);
	padding: 24px 24px 22px;
	background: #232325;
	border: 1px solid #0a0a0b;
	border-radius: 5px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 26px rgba(0, 0, 0, 0.55);
}

.login-panel h1 {
	margin: 0;
	color: #ece2c0;
	font: normal 30px Georgia, "Times New Roman", serif;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 18px rgba(224, 164, 60, 0.22);
}

.login-subtitle {
	margin: 2px 0 18px;
	color: #8f8a78;
	font-size: 11px;
}

.login-panel label {
	display: block;
	margin: 12px 0 5px;
	color: #d6cdb0;
	font: bold 11px Verdana, Arial, sans-serif;
}

.login-panel input[type="text"],
.login-panel input[type="password"] {
	display: block;
	width: 100%;
	padding: 8px 10px;
	background: #e7e4da;
	border: 1px solid #060607;
	border-radius: 3px;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
	color: #383428;
	font: 13px Verdana, Arial, sans-serif;
}

.login-panel button {
	display: block;
	width: 100%;
	margin-top: 18px;
	padding: 9px 0;
	background: linear-gradient(#f0c878, #d99a3e);
	border: 1px solid #8a5e1e;
	border-radius: 4px;
	color: #2c1f0d;
	font: bold 12px Verdana, Arial, sans-serif;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.55);
	cursor: pointer;
}

.login-panel button:hover {
	background: linear-gradient(#f7d48c, #e2a64a);
}

.login-error {
	margin: 0 0 12px;
	padding: 8px 10px;
	background: #2d1717;
	border: 1px solid #6f2d2d;
	border-radius: 3px;
	color: #ffd9d9;
	font-size: 11px;
}

/* ---------- list chrome ---------- */

.search-status {
	margin: 0 0 16px;
	color: #8f8a78;
	font-size: 11px;
}

.empty {
	padding: 18px 0;
	color: #b5ad93;
	font: 15px Georgia, "Times New Roman", serif;
}

.pagination {
	margin-top: 22px;
	padding-top: 12px;
	border-top: 1px dashed rgba(224, 196, 140, 0.25);
	font-size: 12px;
}

.pagination .older {
	float: right;
}

.pagination .newer {
	float: left;
}

/* ---------- footer ---------- */

#footer {
	padding: 14px 0;
	background: #0d0d0e;
	border-top: 2px dashed rgba(224, 196, 140, 0.22);
	color: #8c8676;
	font-size: 10px;
}

#footer .wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
}

#footer p {
	margin: 0;
}

.footer-badges {
	display: flex;
	gap: 6px;
}

.footer-badges .badge {
	display: flex;
	font: bold 8px Verdana, Arial, sans-serif;
	border: 1px solid #000;
}

.footer-badges .badge .b-left {
	background: #3a3a3a;
	color: #fff;
	padding: 2px 4px;
}

.footer-badges .badge .b-right {
	background: #b3641f;
	color: #fff;
	padding: 2px 4px;
}

.footer-badges .badge .b-right.alt {
	background: #d99a3e;
	color: #2c1f0d;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
	.wrapper {
		width: auto;
		margin: 0 18px;
	}

	.col-9,
	.col-3 {
		float: none;
		width: auto;
	}

	.col-3 {
		margin-top: 26px;
	}
}

@media (max-width: 620px) {
	#header .band {
		flex-direction: column;
		align-items: flex-start;
	}

	.band-side {
		align-items: flex-start;
	}

	h2.fancy {
		font-size: 22px;
	}

	#footer .wrapper {
		flex-direction: column;
		align-items: flex-start;
	}
}
