/* Goy Mixer NoJS surface, on the shared GoyMail OldGui (gruvbox) theme so
   it matches the mail, GoyKeys, and GoyGPT pages: teal page, scrolling
   domain strip on top, centered tan card with a floating title and a hard
   offset shadow, dark footer with red links, Unifont. */

@font-face {
	font-family: 'Unifont';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/unifont.woff2') format('woff2');
}

* { box-sizing: border-box; }

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	background-color: #458588;
}

body {
	min-height: 100vh;
	font-family: 'Unifont', ui-monospace, monospace;
	font-size: 16px;
	line-height: normal;
	color: rgb(40, 40, 40);
	-webkit-font-smoothing: none;
	text-rendering: optimizeSpeed;
}

::selection { background-color: #cc241d; color: #fbf1c7; }

a { color: rgb(40, 40, 40); }

.gm-root {
	min-height: 100vh;
	display: grid;
	grid-template-rows: min-content 1fr min-content;
	width: 100%;
	background-color: #458588;
}

/* ---- Top row: scrolling domain marquee (navigation is NOT here) ---- */
.gm-oldgui-toprow {
	width: 100%;
	height: 28px;
	max-height: 28px;
	background-color: #282828;
	color: #e1e1e1;
	font-size: 16px;
	line-height: 28px;
	overflow: hidden;
	position: relative;
}

@keyframes gm-marquee-rtl { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.gm-oldgui-toprow-track {
	display: inline-flex;
	white-space: nowrap;
	animation: gm-marquee-rtl 40s linear infinite;
}

.gm-oldgui-toprow:hover .gm-oldgui-toprow-track { animation-play-state: paused; }
.gm-oldgui-toprow-set { display: inline-flex; }

.gm-oldgui-toprow-domain {
	padding: 0 12px;
	line-height: 28px;
	color: #d5c4a1;
	text-decoration: none;
	white-space: nowrap;
}

.gm-oldgui-toprow-domain:hover { background-color: #3c3836; color: #fbf1c7; text-decoration: none; }
.gm-oldgui-toprow-domain--current { background-color: #cc241d; color: #a89984; }
.gm-oldgui-toprow-domain--current:hover { background-color: #cc241d; color: #fbf1c7; }

@media (prefers-reduced-motion: reduce) {
	.gm-oldgui-toprow-track { animation: none; }
}

/* ---- Main + card ---- */
.gm-main {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	width: 100%;
	min-height: 0;
	padding: 0.5rem;
}

.gm-oldgui-frame {
	position: relative;
	width: min(430px, calc(100% - 1rem));
	margin: 50px 0;
	background-color: #a89984;
	box-shadow: 11px 14px 0 #282828;
}

.gm-oldgui-frame--wide { width: min(960px, calc(100% - 2rem)); }

.gm-oldgui-title {
	position: absolute;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #a89984;
	color: #cc241d;
	border-left: 1px solid #282828;
	border-right: 1px solid #282828;
	padding: 2px 10px;
	z-index: 2;
	font-size: 16px;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
}

.gm-oldgui-body {
	border: 1px solid #282828;
	margin: 15px 7px;
	padding: 15px 10px;
	overflow-wrap: break-word;
	color: rgb(40, 40, 40);
}

/* Nickname in the card title, hint on hover or keyboard focus. */
.brand { position: relative; display: inline-block; cursor: help; }
.brand:focus { outline: 1px dotted #282828; }
.brand-tip {
	display: none;
	position: absolute;
	left: 50%;
	top: calc(100% + 0.4rem);
	transform: translateX(-50%);
	z-index: 5;
	width: max-content;
	max-width: min(30rem, 86vw);
	white-space: normal;
	text-align: left;
	background: #ebdbb2;
	color: #282828;
	border: 1px solid #282828;
	box-shadow: 3px 3px 0 #1d2021;
	padding: 6px 9px;
	font-size: 14px;
	font-weight: normal;
}
.brand:hover .brand-tip, .brand:focus .brand-tip, .brand:focus-within .brand-tip { display: block; }

@media (max-width: 40rem) {
	.brand-tip {
		position: static;
		display: block;
		transform: none;
		margin: 0.35rem 0 0;
		max-width: none;
		width: auto;
		box-shadow: none;
	}
}

/* ---- In-card menu: text links, red hover ---- */
.gm-oldgui-menubar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin: 0 0 10px;
}

.gm-oldgui-menubar a {
	color: #282828;
	background: transparent;
	text-decoration: none;
	padding: 1px 8px;
	white-space: nowrap;
}

.gm-oldgui-menubar a:hover,
.gm-oldgui-menubar a[aria-current='page'],
.gm-oldgui-menubar a.gm-oldgui-menu-sel { background-color: #cc241d; color: #a89984; }

/* ---- Footer ---- */
.gm-oldgui-foot {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 1px 8px;
	background-color: #282828;
	color: #e1e1e1;
	min-height: 24px;
	font-size: 16px;
	line-height: 1.2;
}

.gm-oldgui-foot a { color: #cc241d; text-decoration: none; }
.gm-oldgui-foot a:hover { text-decoration: underline; }
.gm-oldgui-foot-left { flex: 1 1 auto; min-width: 0; }
.gm-oldgui-foot-right { flex: 0 0 auto; display: inline-flex; align-items: center; }
.gm-oldgui-foot-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	line-height: 0;
	margin: 0 1px;
	padding: 0 1px;
	text-decoration: none;
}
.gm-oldgui-foot-icon:hover { text-decoration: none; opacity: 0.88; }
.gm-oldgui-foot-tg-svg { display: block; width: 13px; height: 13px; fill: currentColor; }
.gm-oldgui-foot-icon:hover .gm-oldgui-foot-tg-svg { fill: #fabd2f; }
.gm-oldgui-foot-net,
.gm-oldgui-foot-net-status {
	display: inline;
	vertical-align: baseline;
	margin: 0 2px;
	padding: 0;
	line-height: inherit;
	font-weight: 700;
	text-decoration: none;
}
.gm-oldgui-foot-net-status { color: #98971a; }
.gm-oldgui-foot a.gm-oldgui-foot-net { color: #cc241d; }
.gm-oldgui-foot a.gm-oldgui-foot-net:hover { color: #fabd2f; text-decoration: underline; }

/* ---- Content ---- */
h1, h2, h3 {
	margin: 0 0 0.5rem;
	font-size: 16px;
	font-weight: 700;
	color: rgb(40, 40, 40);
}

p { margin: 0 0 8px; }
hr { border: none; border-top: 1px solid #282828; opacity: 0.45; margin: 8px 0; }
ul, ol { margin: 0 0 8px; padding-left: 1.35rem; }
li { margin: 0.2rem 0; }
.honesty li { margin: 0.4rem 0; }

/* Verify strip, same bulletin chrome as the mail pages. */
.gm-oldgui-in {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 12px;
	padding: 8px 10px;
	border: 2px solid #282828;
	background: #ebdbb2;
	box-shadow: inset 0 1px 0 #fbf1c7, 2px 2px 0 #1d2021;
}

.gm-oldgui-in-mark {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.12em;
	padding: 4px 8px;
	margin-top: 1px;
	background: #282828;
	color: #fbf1c7;
	border: 1px solid #1d2021;
}

.gm-oldgui-in-body { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; }
.gm-oldgui-in-body p { margin: 0 0 6px; }
.gm-oldgui-in-body p:last-child { margin-bottom: 0; }

.gm-net-list {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 2px 10px;
	margin: 0;
	font-size: 14px;
}
.gm-net-list dt { font-weight: 700; }
.gm-net-list dd { margin: 0; min-width: 0; }

/* Flash messages */
.flash {
	margin: 0 0 12px;
	padding: 8px 10px;
	border: 2px solid #282828;
	background: #ebdbb2;
	box-shadow: inset 0 1px 0 #fbf1c7, 2px 2px 0 #1d2021;
}

.flash.err { color: #9d0006; border-color: #cc241d; font-weight: 700; }
.flash.ok { color: #3c3836; border-left: 6px solid #98971a; }

.warn {
	margin: 8px 0;
	padding: 8px 10px;
	border-left: 4px solid #cc241d;
	background: #f2e5bc;
	color: #3c3836;
	line-height: 1.4;
}

/* Forms: dark inset inputs on the tan card, as on the mail pages. */
form.stack { display: flex; flex-direction: column; gap: 0.35rem; }
form.stack label { display: block; margin: 0.5rem 0 0.1rem; }

form.stack input, form.stack select, form.stack textarea {
	font: inherit;
	font-family: 'Unifont', ui-monospace, monospace;
	font-size: 16px;
	width: 100%;
	background-color: #282828;
	color: #c4c4c4;
	border: none;
	outline: none;
	box-shadow: inset 5px 5px 0 #000;
	padding: 4px 12px;
	margin: 4px 0;
}

form.stack input:focus, form.stack select:focus, form.stack textarea:focus { color: #fbf1c7; }

button, .btn {
	font: inherit;
	font-family: 'Unifont', ui-monospace, monospace;
	font-size: 16px;
	line-height: 1.15;
	display: inline-block;
	min-height: 34px;
	padding: 5px 12px;
	color: #fbf1c7;
	background: #cc241d;
	border: 2px solid #282828;
	box-shadow: 3px 3px 0 #1d2021;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	margin: 0.4rem 0.3rem 0 0;
}

button:hover, .btn:hover { background: #9d0006; color: #fbf1c7; }
button:active, .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1d2021; }

fieldset { border: 1px solid #282828; margin: 8px 0 12px; padding: 10px; min-width: 0; }
legend { padding: 0 4px; font-weight: 700; }

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.75rem 0;
	font-size: 14px;
	line-height: 1.25;
}

td, th {
	text-align: left;
	padding: 4px 7px;
	border-bottom: 1px solid #bdae93;
	vertical-align: top;
}

th { color: #1d2021; background: #d5c4a1; border-bottom-color: #282828; font-weight: 700; }
tbody tr:hover td { background: rgba(204, 36, 29, 0.08); }

/* Monospace payloads: addresses, fingerprints, PGP blocks. */
.mono { font-family: 'Unifont', ui-monospace, monospace; word-break: break-all; }
code { background: rgba(40, 40, 40, 0.1); padding: 0 4px; }

pre {
	margin: 8px 0;
	padding: 10px 12px;
	border: 1px solid #282828;
	background: #282828;
	color: #ebdbb2;
	box-shadow: inset 5px 5px 0 #000;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
	font-family: 'Unifont', ui-monospace, monospace;
	font-size: 13px;
	line-height: 1.45;
}

pre.mono { color: #ebdbb2; }

img.qr {
	display: block;
	image-rendering: pixelated;
	background: #fff;
	padding: 6px;
	border: 1px solid #282828;
	box-shadow: 3px 3px 0 #1d2021;
}

.captcha-box { margin: 0.75rem 0; }

img.captcha {
	display: block;
	width: 100%;
	max-width: 560px;
	height: auto;
	background: #fff;
	border: 1px solid #282828;
	box-shadow: 3px 3px 0 #1d2021;
}

@media (min-width: 721px) and (max-width: 1024px) {
	.gm-oldgui-foot { padding: 5px 8px; line-height: 1.35; align-items: flex-start; }
	.gm-oldgui-foot-left,
	.gm-oldgui-foot-right { flex: 1 1 100%; text-align: center; justify-content: center; }
	.gm-oldgui-foot-right { display: flex; }
}

@media (max-width: 720px) {
	.gm-main { padding: 0.35rem; }
	.gm-oldgui-frame,
	.gm-oldgui-frame--wide { width: min(100% - 0.75rem, 96vw); margin: 28px 0; box-shadow: 6px 7px 0 #282828; }
	.gm-oldgui-menubar a { padding: 6px 10px; min-height: 40px; display: inline-flex; align-items: center; }
	.gm-oldgui-foot { padding: 6px 8px; line-height: 1.35; align-items: flex-start; }
	.gm-oldgui-foot-left,
	.gm-oldgui-foot-right { flex: 1 1 100%; text-align: center; justify-content: center; }
	.gm-oldgui-foot-right { display: flex; }
	.gm-oldgui-in { flex-direction: column; gap: 6px; }
	.gm-net-list { grid-template-columns: 1fr; }
	.gm-net-list dt { margin-top: 4px; }
}

@media (max-width: 480px) {
	.gm-oldgui-body { margin: 10px 3px; padding: 12px 6px; }
}
