/* Retro Guest Book — System 6-style skin for the Gwolle guest book page.
   Everything is scoped to .rgb-screen so the rest of the site is untouched. */

@font-face {
	font-family: "RGB Pixelify";
	src: url("fonts/pixelify-sans-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "RGB Pixelify";
	src: url("fonts/pixelify-sans-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

.rgb-screen {
	--rgb-px: "RGB Pixelify", ui-monospace, monospace;
	--rgb-dither: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0);
	--rgb-stripes: repeating-linear-gradient(to bottom, #000 0 2px, #fff 2px 4px);
	position: relative;
	box-sizing: border-box;
	margin: 8px var(--rgb-avoid-r, 0px) 24px var(--rgb-avoid-l, 0px);
	border: 3px solid #000;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	color: #000;
	line-height: 1.5;
	text-align: left;
}
.rgb-screen *,
.rgb-screen *::before,
.rgb-screen *::after {
	box-sizing: border-box;
}

/* Pixel font for the chrome only; reading text keeps the site font (Jost). */
.rgb-screen .rgb-px,
.rgb-screen .rgb-menu-btn,
.rgb-screen .rgb-item,
.rgb-screen .rgb-btn,
.rgb-screen .rgb-title,
.rgb-screen .gwolle-gb-write .label,
.rgb-screen .gwolle-gb-write input[type="submit"],
.rgb-screen .gwolle-gb-write input[type="button"],
.rgb-screen .gwolle-gb-total,
.rgb-screen .gb-author-name,
.rgb-screen .gb-metabox-handle {
	font-family: var(--rgb-px) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.rgb-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* ---------- Menu bar ---------- */

.rgb-menubar {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: stretch;
	height: 36px;
	padding: 0 8px;
	background: #fff;
	color: #000;
	border-bottom: 2px solid #000;
}
.rgb-menus {
	display: flex;
	align-items: stretch;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.rgb-menu {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.rgb-screen .rgb-menu-btn {
	display: flex;
	align-items: center;
	height: 100%;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}
.rgb-screen .rgb-menu-btn:hover,
.rgb-screen .rgb-menu-btn:focus {
	background: transparent;
	color: inherit;
}
.rgb-screen .rgb-menu-btn[aria-expanded="true"] {
	background: #000;
	color: #fff;
}
.rgb-screen .rgb-menu-btn:focus-visible {
	outline: 2px solid #000;
	outline-offset: -4px;
}
.rgb-screen .rgb-menu-btn[aria-expanded="true"]:focus-visible {
	outline-color: #fff;
}
.rgb-menubar-title {
	margin-left: auto;
	align-self: center;
	padding-right: 8px;
	font-size: 17px;
}
.rgb-menu-list {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	min-width: 230px;
	margin: 0 !important;
	padding: 4px 0 !important;
	list-style: none !important;
	background: #fff;
	border: 2px solid #000;
	box-shadow: 3px 3px 0 #000;
}
.rgb-menu-list[hidden] {
	display: none;
}
.rgb-menu-list li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.rgb-screen .rgb-item {
	display: block;
	width: 100%;
	min-height: 38px;
	margin: 0;
	padding: 6px 18px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #000;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
}
.rgb-screen .rgb-item:hover,
.rgb-screen .rgb-item:focus {
	background: #000;
	color: #fff;
	outline: none;
}
.rgb-screen .rgb-item.rgb-blink-off {
	background: #fff;
	color: #000;
}
.rgb-screen .rgb-item[aria-disabled="true"],
.rgb-screen .rgb-item[aria-disabled="true"]:hover,
.rgb-screen .rgb-item[aria-disabled="true"]:focus {
	background: #fff;
	color: #8a8a8a;
	cursor: default;
}
.rgb-sep {
	height: 0;
	margin: 4px 0 !important;
	border-top: 2px dotted #000;
}

/* ---------- Desktop ---------- */

.rgb-desk {
	background-color: #fff;
	background-image: var(--rgb-dither);
	background-size: 4px 4px;
	padding: clamp(14px, 3.2vw, 36px);
}
.rgb-desk > *:last-child {
	margin-bottom: 0;
}

/* ---------- Windows ---------- */

.rgb-window {
	min-width: 0;
	background: #fff;
	border: 2px solid #000;
	box-shadow: 4px 4px 0 #000;
}
.rgb-titlebar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	padding: 4px 3px;
	border-bottom: 2px solid #000;
	background-clip: content-box;
}
.rgb-titlebar.is-active {
	background-image: var(--rgb-stripes);
}
.rgb-closebox {
	position: absolute;
	left: 12px;
	top: 5px;
	width: 14px;
	height: 14px;
	background: #fff;
	border: 2px solid #000;
}
.rgb-title {
	position: relative;
	padding: 0 12px;
	background: #fff;
	color: #000;
	font-size: 17px;
	line-height: 20px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 70px);
}
.rgb-flash-on .rgb-menubar {
	background: #000;
	color: #fff;
}
.rgb-flash-on .rgb-sign .rgb-titlebar {
	background: #000;
}
.rgb-flash-on .rgb-sign .rgb-title {
	background: #000;
	color: #fff;
}
.rgb-winbody {
	padding: 18px 20px 22px;
}

/* ---------- Buttons ---------- */

.rgb-screen .rgb-btn,
.rgb-screen .gwolle-gb-write input[type="submit"],
.rgb-screen .gwolle-gb-write input[type="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 96px;
	margin: 0;
	padding: 0 18px;
	border: 2px solid #000 !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: #000 !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.rgb-screen .rgb-btn:active,
.rgb-screen .gwolle-gb-write input[type="submit"]:active,
.rgb-screen .gwolle-gb-write input[type="button"]:active {
	background: #000 !important;
	color: #fff !important;
}
.rgb-screen .rgb-btn:focus-visible,
.rgb-screen .gwolle-gb-write input[type="submit"]:focus-visible,
.rgb-screen .gwolle-gb-write input[type="button"]:focus-visible {
	outline: 2px dotted #000;
	outline-offset: 9px;
}
/* The default button gets the thick outer ring. */
.rgb-screen .rgb-default,
.rgb-screen .gwolle-gb-write input[type="submit"] {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px #000 !important;
}

/* ---------- Quack window ---------- */

.rgb-quack {
	margin-top: 32px;
}
.rgb-quack-body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 16px;
	padding: 18px;
}
.rgb-quack-body p {
	flex: 1 1 140px;
	margin: 0 !important;
	font-size: 15px;
	line-height: 1.45;
}
.rgb-duck {
	flex: none;
	color: #000;
}

/* ---------- Dialogs ---------- */

.rgb-dialog {
	width: min(440px, calc(100vw - 32px));
	max-width: none;
	margin: auto;
	padding: 30px 30px 26px;
	border: 2px solid #000;
	border-radius: 0;
	background: #fff;
	color: #000;
	box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px #000, 4px 4px 0 #000;
	line-height: 1.45;
}
.rgb-dialog::backdrop {
	background: transparent;
}
.rgb-dialog-body {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}
.rgb-dialog-body > svg {
	flex: none;
	color: #000;
}
.rgb-dialog-text {
	min-width: 0;
	font-size: 17px;
}
.rgb-dialog-text p {
	margin: 0 0 6px !important;
}
.rgb-dialog-title {
	font-size: 22px;
}
.rgb-mem {
	margin-top: 10px !important;
	font-size: 15px;
}
.rgb-membar {
	height: 14px;
	margin-top: 6px;
	border: 2px solid #000;
	background: #fff;
}
.rgb-membar span {
	display: block;
	width: 3%;
	height: 100%;
	background: #000;
}
.rgb-msg p {
	font-size: 15px;
}
.rgb-quackline {
	margin-top: 8px !important;
	font-size: 22px;
}
.rgb-dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 22px;
	margin-top: 22px;
	padding-right: 6px;
}

/* ================================================================== */
/* Gwolle guest book — applied once the script has built the windows. */
/* ================================================================== */

.rgb-ready .gwolle-gb {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
	grid-template-areas:
		"msg msg"
		"entries sign"
		"entries quack";
	grid-template-rows: auto auto 1fr;
	column-gap: 32px;
	align-items: start;
}
.rgb-ready .gwolle-gb > .rgb-entries {
	grid-area: entries;
	align-self: stretch;
	display: flex;
	flex-direction: column;
}
.rgb-ready .gwolle-gb > .rgb-sign {
	grid-area: sign;
}
.rgb-ready .gwolle-gb > .rgb-quack {
	grid-area: quack;
}
.rgb-ready .gwolle-gb > .gwolle-gb-messages-top-container {
	grid-area: msg;
}

/* Gwolle's own messages are read into our dialogs, so hide them visually. */
.rgb-ready .gwolle-gb-messages-top-container,
.rgb-ready .gwolle-gb-messages-bottom-container {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* Form is always open in the Sign window. */
.rgb-ready .gwolle-gb-write-button,
.rgb-ready .gwolle-gb-write > h3,
.rgb-ready .gwolle-gb-write .gb-notice-dismiss,
.rgb-ready .gwolle-gb-write .clearBoth,
.rgb-ready .gwolle-gb-write .gwolle-gb-submit > .label {
	display: none !important;
}
.rgb-ready form.gwolle-gb-write {
	display: block !important;
	height: auto !important;
	overflow: visible !important;
	opacity: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	width: auto !important;
	float: none !important;
}
.rgb-sign .rgb-intro {
	margin: 0 0 16px !important;
	font-size: 15px;
	line-height: 1.5;
}
.rgb-ready .gwolle-gb-write .label,
.rgb-ready .gwolle-gb-write .input {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}
.rgb-ready .gwolle-gb-write .label {
	margin-bottom: 6px !important;
	font-size: 16px;
	line-height: 1.2;
}
.rgb-ready .gwolle-gb-write .label label {
	color: #000 !important;
	font-weight: 400 !important;
	font-size: inherit;
}
.rgb-ready .gwolle-gb-write .required {
	color: #000 !important;
}
.rgb-ready form.gwolle-gb-write > div:not([aria-hidden="true"]) {
	margin: 0 0 14px !important;
	padding: 0 !important;
}
.rgb-ready .gwolle-gb-write input[type="text"],
.rgb-ready .gwolle-gb-write input[type="email"],
.rgb-ready .gwolle-gb-write input[type="url"],
.rgb-ready .gwolle-gb-write textarea {
	display: block;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 9px 10px !important;
	border: 2px solid #000 !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #000 !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
}
.rgb-ready .gwolle-gb-write textarea {
	min-height: 120px;
	resize: vertical;
}
.rgb-ready .gwolle-gb-write input:focus,
.rgb-ready .gwolle-gb-write textarea:focus {
	outline: 2px solid #000 !important;
	outline-offset: 2px;
}
.rgb-ready .gwolle-gb-write .error input,
.rgb-ready .gwolle-gb-write input.error,
.rgb-ready .gwolle-gb-write textarea.error {
	border-style: dashed !important;
	border-width: 3px !important;
}
.rgb-ready .gwolle-gb-write .gwolle-gb-submit {
	margin: 20px 0 0 !important;
}
.rgb-ready .gwolle-gb-write .gwolle-gb-submit .input {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 14px 0;
	padding: 4px 6px 6px !important;
}
.rgb-ready .gwolle-gb-write .gwolle-gb-submit input[type="submit"] {
	order: 3;
	margin-left: 20px !important;
	min-width: 88px;
}
.rgb-ready .gwolle-gb-write .gwolle-gb-submit input[type="button"] {
	min-width: 88px;
}
.rgb-ready .gwolle-gb-write .gwolle-gb-submit input[type="button"] {
	order: 1;
}
.rgb-ready .gwolle-gb-write .gwolle-gb-submit-ajax-icon,
.rgb-ready .gwolle-gb-write .gwolle-gb-addon-preview-ajax-icon {
	order: 2;
}
.rgb-ready .gwolle-gb-notice {
	margin: 16px 0 0 !important;
	padding: 10px 0 0 !important;
	border-top: 2px dotted #000;
	font-size: 13px;
	line-height: 1.5;
	color: #000 !important;
}
.rgb-ready .gwolle-gb-write .no-js {
	font-size: 14px;
}

/* Entries window */
.rgb-scroll {
	flex: 1 1 auto;
	min-height: 0;
	max-height: 900px;
	overflow-y: scroll;
	scrollbar-color: #000 #fff;
}
.rgb-scroll:focus-visible {
	outline: 2px dotted #000;
	outline-offset: -4px;
}
.rgb-scroll::-webkit-scrollbar {
	width: 18px;
}
.rgb-scroll::-webkit-scrollbar-track {
	background-color: #fff;
	background-image: var(--rgb-dither);
	background-size: 4px 4px;
	border-left: 2px solid #000;
}
.rgb-scroll::-webkit-scrollbar-thumb {
	background: #fff;
	border: 2px solid #000;
	border-right: 0;
}
.rgb-scroll::-webkit-scrollbar-button:single-button:vertical:decrement,
.rgb-scroll::-webkit-scrollbar-button:single-button:vertical:increment {
	display: block;
	height: 18px;
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center;
	border-left: 2px solid #000;
}
.rgb-scroll::-webkit-scrollbar-button:single-button:vertical:decrement {
	border-bottom: 2px solid #000;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M5 1L9 7H1z' fill='%23fff' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}
.rgb-scroll::-webkit-scrollbar-button:single-button:vertical:increment {
	border-top: 2px solid #000;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M5 7L9 1H1z' fill='%23fff' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}

.rgb-ready .gwolle-gb-read {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #000;
}
.rgb-ready .gwolle-gb-total {
	display: block;
	margin: 0 !important;
	padding: 7px 18px 6px !important;
	border-bottom: 4px double #000;
	font-size: 15px;
	color: #000 !important;
}
.rgb-ready .gb-entry {
	position: relative;
	margin: 0 !important;
	padding: 16px 22px 18px !important;
	border: 0 !important;
	border-bottom: 1px solid #000 !important;
	background: #fff !important;
	color: #000 !important;
}
.rgb-ready .gb-entry:last-child {
	border-bottom: 0 !important;
}
.rgb-ready .gb-entry article {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}
.rgb-ready .gb-author-info {
	display: block;
	min-height: 32px;
	padding-right: 52px;
	font-size: 14px;
	line-height: 1.45;
	color: #000 !important;
	float: none !important;
	width: auto !important;
}
.rgb-ready .gb-author-info::after {
	content: "";
	display: block;
	clear: both;
}
.rgb-ready .gb-author-avatar {
	float: left;
	width: 32px;
	height: 32px;
	margin: 1px 12px 2px 0;
}
.rgb-ready .gb-author-avatar img {
	display: none !important;
}
.rgb-ready .gb-author-avatar .rgb-avatar {
	display: block;
	width: 32px;
	height: 32px;
	image-rendering: pixelated;
}
.rgb-ready .gb-author-name {
	font-size: 17px;
	font-weight: 400 !important;
	color: #000 !important;
}
.rgb-ready .gb-author-origin,
.rgb-ready .gb-datetime,
.rgb-ready .gb-datetime * {
	color: #000 !important;
	font-size: 14px;
}
.rgb-ready .gb-entry-content {
	margin: 8px 0 0 !important;
	padding: 0 !important;
	font-size: 17px;
	line-height: 1.5;
	color: #000 !important;
	overflow-wrap: anywhere;
	clear: both;
	float: none !important;
	width: auto !important;
}
.rgb-screen .gb-metabox-handle {
	position: absolute !important;
	top: 0;
	right: 0;
	min-width: 40px;
	height: 28px;
	margin: 0 !important;
	padding: 0 8px !important;
	border: 2px solid #000 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #000 !important;
	font-size: 15px !important;
	line-height: 1 !important;
	box-shadow: none !important;
	cursor: pointer;
}
.rgb-screen .gb-metabox-handle[aria-expanded="true"] {
	background: #000 !important;
	color: #fff !important;
}
.rgb-ready .gb-metabox {
	right: 0;
	top: 34px;
	z-index: 5;
	border: 2px solid #000 !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: 3px 3px 0 #000 !important;
	color: #000 !important;
}
.rgb-ready .gb-metabox a {
	color: #000 !important;
	text-decoration: none;
}
.rgb-ready .gb-metabox a:hover,
.rgb-ready .gb-metabox a:focus {
	background: #000;
	color: #fff !important;
}
.rgb-ready .gb-admin_reply,
.rgb-ready .gb-admin-reply {
	border-left: 0 !important;
	border-top: 2px dotted #000 !important;
	background: #fff !important;
	color: #000 !important;
}
.rgb-ready .gwolle-gb-read a {
	color: #000;
}
.rgb-ready .page-navigation,
.rgb-ready .gwolle-gb-pagination {
	padding: 12px 18px !important;
	border-top: 2px solid #000;
	font-family: var(--rgb-px);
}
.rgb-ready .page-navigation a,
.rgb-ready .page-navigation span {
	color: #000 !important;
}

/* ---------- Narrow screens: one column, entries first ---------- */

@media (max-width: 860px) {
	.rgb-ready .gwolle-gb {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"msg"
			"entries"
			"sign"
			"quack";
		grid-template-rows: auto;
		row-gap: 28px;
	}
	.rgb-scroll {
		max-height: none;
		overflow-y: visible;
	}
	.rgb-quack {
		margin-top: 0;
	}
	.rgb-screen .rgb-menu-btn {
		padding: 0 9px;
	}
	.rgb-winbody {
		padding: 16px 16px 20px;
	}
	.rgb-ready .gb-entry {
		padding: 14px 16px 16px !important;
	}
	.rgb-dialog {
		padding: 26px 22px 22px;
	}
}
@media (max-width: 440px) {
	.rgb-menubar-title {
		display: none;
	}
	.rgb-menu-list {
		min-width: 210px;
	}
	.rgb-menu:last-child .rgb-menu-list {
		left: auto;
		right: -40px;
	}
}
