/*
Theme Name: RetroStory
Theme URI: https://retrostory.net/
Author: RetroStory Team
Description: The RetroStory website theme, loosely after the classic 2008 MapleStory site: a 960 px boxed layout with a game-start column, notice and event boards, and an animated Henesys header (drifting clouds, parallax hills and a wandering Orange Mushroom).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: retrostory
Tags: two-columns, left-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, news
*/

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------- */
:root {
	--rs-page: #e3eaf1;
	--rs-box: #ffffff;
	--rs-line: #c3cddc;
	--rs-line-soft: #e0e5e8;
	--rs-text: #333333;
	--rs-muted: #777777;
	--rs-link: #006699;
	--rs-link-hover: #ff6600;
	--rs-orange: #ff9f00;
	--rs-orange-dark: #e07800;
	--rs-orange-light: #ffc94a;
	--rs-title: #1f4f82;
	--rs-title-bar-top: #f7f9fc;
	--rs-title-bar-bottom: #dfe7f0;
	--rs-footer: #2b3442;
	--rs-width: 960px;
	--rs-side: 220px;
	--rs-gap: 14px;
	--rs-radius: 6px;
	--rs-scene-h: 360px;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--rs-page) linear-gradient(180deg, #cfe3f5 0, var(--rs-page) 520px) no-repeat;
	color: var(--rs-text);
	font-family: Verdana, Tahoma, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.6;
}

a { color: var(--rs-link); text-decoration: none; }
a:hover, a:focus { color: var(--rs-link-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { color: var(--rs-title); line-height: 1.3; margin: 1.2em 0 .5em; }
h1 { font-size: 1.7em; } h2 { font-size: 1.4em; } h3 { font-size: 1.2em; }

hr { border: 0; border-top: 1px dashed var(--rs-line); margin: 1.5em 0; }

blockquote {
	margin: 1em 0; padding: .6em 1em;
	border-left: 4px solid var(--rs-orange);
	background: #fff8ea;
}

pre, code { font-family: Consolas, Menlo, monospace; font-size: .92em; }
pre { background: #f4f6f9; border: 1px solid var(--rs-line-soft); padding: 10px; overflow: auto; }

table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--rs-line-soft); padding: 5px 8px; text-align: left; }
th { background: #f1f4f8; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	position: fixed !important; top: 8px; left: 8px; z-index: 100000;
	width: auto; height: auto; clip: auto; padding: 8px 14px;
	background: #fff; color: var(--rs-title); border: 2px solid var(--rs-orange);
}

.rs-wrap { width: 100%; max-width: var(--rs-width); margin: 0 auto; padding: 0 10px; }

/* ------------------------------------------------------------------
   Animated Henesys header scene
   The v62 Henesys backdrop (Map.wz Back/grassySoil, laid out as on map 100000000) moved by
   ParallaxEngineV31's formula in assets/js/theme.js: a virtual camera walks to the right and
   each layer moves r x the camera on screen (r = rx / 100), the sky also scrolls by itself
   (type 4: |r| x 2 pi units per second). The script sets the sizes below from the header's
   height; these values are the static fallback (scale 0.5) when scripts are off.
------------------------------------------------------------------- */
.rs-scene {
	position: relative;
	/* --rs-scene-h is the whole scene; the crop setting (--rs-crop, 0..0.5) cuts it from the bottom up. */
	height: calc(var(--rs-scene-h) * (1 - var(--rs-crop, 0)));
	overflow: hidden;
	background: #3366cc;          /* grassySoil layer 0 */
	isolation: isolate;
}

.rs-layer {
	position: absolute;
	left: 0;
	background-repeat: repeat-x;
	will-change: transform;
	backface-visibility: hidden;
	transform: translate3d(0, 0, 0);
	pointer-events: none;
}
.rs-scene.is-paused .rs-layer,
.rs-scene.is-paused .rs-mob-walk,
.rs-scene.is-paused .rs-mob,
.rs-scene.is-paused .rs-mob-sheet { animation-play-state: paused; }
.rs-sky {
	top: 22px; height: 290px;
	width: calc(100% + 512px);
	background-image: url("assets/img/sky.webp");
	background-size: 512px 290px;
}
.rs-hill {
	top: 6px; height: 304px;
	width: calc(100% + 2495px);
	background-image: url("assets/img/strip-hill.webp");
	background-size: 2495px 304px;
	background-position: 0 0;
}
.rs-grass {
	top: 213px; height: 147px;
	width: calc(100% + 1024px);
	background-image: url("assets/img/strip-grass.webp");
	background-size: 1024px 147px;
}

/* The Orange Mushroom (Mob.wz 1210102 "move", frames aligned on their feet, real delays 180/120/180 ms).
   Transforms only (no layout, no repaint): the walk path moves .rs-mob-walk, the turn flips .rs-mob,
   the frames slide the sheet inside it. */
.rs-mob-track {
	position: absolute;
	left: 0; right: 0; bottom: 18px;
	height: 80px;
	max-width: var(--rs-width);
	margin: 0 auto;
	pointer-events: none;
	z-index: 2;
}
.rs-mob-walk {
	position: absolute;
	left: 0; bottom: 0;
	width: 100%; height: 80px;
	will-change: transform;
	animation: rs-mob-path 46s linear infinite;
}
.rs-mob {
	position: absolute;
	left: 0; bottom: 0;
	width: 72px; height: 80px;
	overflow: hidden;
	animation: rs-mob-face 46s step-end infinite;
}
.rs-mob-sheet {
	width: 216px; height: 80px;
	background: url("assets/img/orange-mushroom-walk.png") 0 0 no-repeat;
	will-change: transform;
	animation: rs-mob-frames .48s step-end infinite;
}
@keyframes rs-mob-frames {
	0%     { transform: translate3d(0, 0, 0); }
	37.5%  { transform: translate3d(-72px, 0, 0); }
	62.5%  { transform: translate3d(-144px, 0, 0); }
	100%   { transform: translate3d(0, 0, 0); }
}
/* The walker spans the track, so its own-width percentages are track percentages. */
@keyframes rs-mob-path {
	0%   { transform: translate3d(4%, 0, 0); }
	47%  { transform: translate3d(calc(88% - 72px), 0, 0); }
	52%  { transform: translate3d(calc(88% - 72px), 0, 0); }
	99%  { transform: translate3d(4%, 0, 0); }
	100% { transform: translate3d(4%, 0, 0); }
}
/* v62 mob art faces left: mirror it while it walks to the right. */
@keyframes rs-mob-face {
	0%   { transform: scaleX(-1); }
	49%  { transform: scaleX(1); }
	100% { transform: scaleX(1); }
}

.rs-scene-inner {
	position: relative;
	z-index: 3;
	height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding-top: 10px;
}

/* Brand: the uploaded custom logo, else the bundled RetroStory logo. */
.rs-brand { display: flex; flex-direction: column; align-items: flex-start; }
.rs-brand a { display: block; line-height: 0; }
.rs-brand img, .rs-brand .custom-logo {
	display: block;
	height: auto; width: auto;
	max-height: 200px; max-width: min(330px, 62vw);
	filter: drop-shadow(0 2px 1px rgba(60, 20, 0, .55)) drop-shadow(0 0 10px rgba(20, 40, 90, .35));
}
.rs-tagline {
	margin: 8px 0 0 6px;
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .78);
	color: #4a3a1a;
	font-size: 12px; font-weight: bold;
}
@media (max-width: 860px) {
	.rs-brand img, .rs-brand .custom-logo { max-height: 130px; }
}

/* Header call to action */
.rs-header-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------- */
.rs-button, .wp-block-button__link, button, input[type="submit"], input[type="button"] {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid #c56a00;
	border-radius: 18px;
	background: linear-gradient(180deg, var(--rs-orange-light) 0%, var(--rs-orange) 55%, var(--rs-orange-dark) 100%);
	color: #fff;
	font-family: inherit; font-size: 13px; font-weight: bold;
	text-shadow: 0 1px 0 rgba(120, 50, 0, .6);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 3px rgba(0, 0, 0, .18);
	cursor: pointer;
	text-decoration: none;
	line-height: 1.3;
}
.rs-button:hover, .rs-button:focus,
button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
	color: #fff; text-decoration: none; filter: brightness(1.07);
}
.rs-button--big { padding: 12px 28px; font-size: 18px; border-radius: 26px; letter-spacing: .5px; }
.rs-button--blue {
	border-color: #2c5f99;
	background: linear-gradient(180deg, #8cc4f2 0%, #4d93d6 55%, #2f6fb1 100%);
	text-shadow: 0 1px 0 rgba(10, 40, 80, .6);
}
.rs-button--block { display: block; text-align: center; }

/* ------------------------------------------------------------------
   Main navigation (orange bar)
------------------------------------------------------------------- */
.rs-nav {
	position: relative;
	z-index: 20;
	background: linear-gradient(180deg, #ffbf47 0%, #ff9f00 60%, #ec8400 100%);
	border-top: 1px solid #ffd98c;
	border-bottom: 3px solid #b85f00;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}
.rs-nav .rs-wrap { display: flex; align-items: center; min-height: 40px; }
.rs-menu, .rs-menu ul { list-style: none; margin: 0; padding: 0; }
.rs-menu { display: flex; flex-wrap: wrap; }
.rs-menu > li { position: relative; }
.rs-menu > li > a {
	display: block;
	padding: 10px 16px;
	color: #fff;
	font-weight: bold;
	text-shadow: 0 1px 0 rgba(120, 50, 0, .7);
	border-right: 1px solid rgba(255, 255, 255, .25);
}
.rs-menu > li:first-child > a { border-left: 1px solid rgba(255, 255, 255, .25); }
.rs-menu > li > a:hover, .rs-menu > li > a:focus,
.rs-menu > li.current-menu-item > a, .rs-menu > li.current-menu-ancestor > a {
	background: rgba(255, 255, 255, .22);
	color: #fff; text-decoration: none;
}
.rs-menu ul {
	position: absolute; top: 100%; left: 0;
	min-width: 190px;
	background: #fff;
	border: 1px solid var(--rs-line);
	border-top: 3px solid var(--rs-orange);
	box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
	display: none;
}
.rs-menu li:hover > ul, .rs-menu li:focus-within > ul { display: block; }
.rs-menu ul a { display: block; padding: 7px 12px; color: var(--rs-text); border-bottom: 1px solid var(--rs-line-soft); }
.rs-menu ul a:hover { background: #fff4e0; color: var(--rs-orange-dark); text-decoration: none; }
.rs-menu ul ul { top: -3px; left: 100%; }

.rs-menu-toggle {
	display: none;
	margin: 6px 0;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 13px;
}
.rs-lang {
	position: relative;
	margin: 0 10px 0 auto;
}
.rs-lang summary {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 10px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .22);
	color: #fff; font-size: 11px; font-weight: bold;
	text-shadow: 0 1px 0 rgba(120, 50, 0, .7);
	list-style: none;
	cursor: pointer;
	user-select: none;
}
.rs-lang summary::-webkit-details-marker { display: none; }
.rs-lang summary::after {
	content: "";
	width: 0; height: 0;
	border-left: 4px solid transparent; border-right: 4px solid transparent;
	border-top: 5px solid #fff;
	margin-left: 2px;
}
.rs-lang[open] summary, .rs-lang summary:hover, .rs-lang summary:focus-visible { background: rgba(255, 255, 255, .38); }
.rs-lang img { width: 16px; height: 11px; }
.rs-lang-list {
	position: absolute; top: calc(100% + 6px); right: 0; z-index: 30;
	min-width: 150px;
	margin: 0; padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--rs-line);
	border-top: 3px solid var(--rs-orange);
	border-radius: 0 0 4px 4px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}
.rs-lang-list a {
	display: flex; align-items: center; gap: 8px;
	padding: 6px 12px;
	color: var(--rs-text); font-size: 12px;
}
.rs-lang-list a:hover, .rs-lang-list a:focus { background: #fff4e0; color: var(--rs-orange-dark); text-decoration: none; }
.rs-lang-list .is-current a { font-weight: bold; color: var(--rs-orange-dark); }
.rs-nav-search { margin-left: auto; }
.rs-lang + .rs-nav-search { margin-left: 0; }
.rs-nav-search .search-form { display: flex; gap: 4px; }
.rs-nav-search input[type="search"] {
	width: 150px; padding: 4px 8px;
	border: 1px solid #c56a00; border-radius: 12px;
	font-family: inherit; font-size: 12px;
}
.rs-nav-search button { padding: 4px 10px; font-size: 12px; }

/* ------------------------------------------------------------------
   Layout
------------------------------------------------------------------- */
.rs-main-wrap { padding-top: var(--rs-gap); padding-bottom: 30px; }
.rs-columns { display: flex; gap: var(--rs-gap); align-items: flex-start; }
.rs-sidebar { flex: 0 0 var(--rs-side); width: var(--rs-side); }
.rs-content { flex: 1 1 auto; min-width: 0; }

/* ------------------------------------------------------------------
   Boxes (the classic site's panels)
------------------------------------------------------------------- */
.rs-box, .widget {
	background: var(--rs-box);
	border: 1px solid var(--rs-line);
	border-radius: var(--rs-radius);
	box-shadow: 0 1px 2px rgba(31, 79, 130, .08);
	margin-bottom: var(--rs-gap);
	overflow: hidden;
}
.rs-box-title, .widget-title {
	display: flex; align-items: center; gap: 7px;
	margin: 0;
	padding: 7px 12px;
	background: linear-gradient(180deg, var(--rs-title-bar-top) 0%, var(--rs-title-bar-bottom) 100%);
	border-bottom: 1px solid var(--rs-line);
	box-shadow: inset 3px 0 0 var(--rs-orange);
	color: var(--rs-title);
	font-size: 13px; font-weight: bold; letter-spacing: .3px;
	text-transform: uppercase;
}
.rs-box-title::before, .widget-title::before {
	content: "";
	flex: 0 0 auto;
	width: 16px; height: 16px;
	background: url("assets/img/maple-leaf.png") center / contain no-repeat;
}
.rs-box-title .rs-more {
	margin-left: auto;
	font-size: 11px; font-weight: normal; text-transform: none; letter-spacing: 0;
}
.rs-box-body, .widget > *:not(.widget-title) { padding: 10px 12px; }
.widget > .widget-title + * { margin-top: 0; }
.widget ul { margin: 0; padding-left: 0; list-style: none; }
.widget li { padding: 4px 0 4px 16px; border-bottom: 1px dotted var(--rs-line-soft); position: relative; }
.widget li:last-child { border-bottom: 0; }
.widget li::before {
	content: ""; position: absolute; left: 2px; top: 11px;
	width: 6px; height: 6px; border-radius: 50%; background: var(--rs-orange);
}

/* Block widgets (Recent Posts, Search, ... in the widget editor) carry their own heading:
   give it the same title bar as the classic .widget-title. */
.widget > .wp-block-group > .wp-block-heading:first-child,
.widget > .wp-block-heading:first-child,
.widget .wp-block-group__inner-container > .wp-block-heading:first-child {
	display: flex; align-items: center; gap: 7px;
	margin: -10px -12px 10px;
	padding: 7px 12px;
	background: linear-gradient(180deg, var(--rs-title-bar-top) 0%, var(--rs-title-bar-bottom) 100%);
	border-bottom: 1px solid var(--rs-line);
	box-shadow: inset 3px 0 0 var(--rs-orange);
	color: var(--rs-title);
	font-size: 13px; font-weight: bold; letter-spacing: .3px; text-transform: uppercase;
}
.widget .wp-block-heading:first-child::before {
	content: ""; flex: 0 0 auto; width: 16px; height: 16px;
	background: url("assets/img/maple-leaf.png") center / contain no-repeat;
}
.widget .wp-block-search__label { display: block; margin-bottom: 4px; font-weight: bold; color: var(--rs-title); }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.widget .wp-block-search__input { flex: 1 1 auto; min-width: 0; }
.widget .wp-block-search__button { margin: 0; padding: 5px 12px; }
.widget .wp-block-latest-comments { padding-left: 0; }
.widget .wp-block-latest-comments__comment { margin-bottom: 6px; font-size: 12px; line-height: 1.5; }

/* Game start box */
.rs-start .rs-box-body { text-align: center; }
.rs-start .rs-button--big { width: 100%; margin: 4px 0 10px; }
.rs-start-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.rs-start-links .rs-button { flex: 1 1 auto; padding: 5px 8px; font-size: 12px; }
.rs-account { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rs-line); font-size: 12px; }
.rs-account p { margin: 0 0 6px; }

/* ------------------------------------------------------------------
   Front page
------------------------------------------------------------------- */
.rs-hero {
	position: relative;
	min-height: 210px;
	padding: 26px 30px;
	border-radius: var(--rs-radius);
	border: 1px solid var(--rs-line);
	overflow: hidden;
	margin-bottom: var(--rs-gap);
	color: #fff;
	background:
		linear-gradient(90deg, rgba(20, 50, 100, .78) 0%, rgba(20, 50, 100, .35) 55%, rgba(20, 50, 100, 0) 100%),
		url("assets/img/strip-hill.webp") 140px 100% / auto 100% no-repeat,
		url("assets/img/sky.webp") 0 -60px / 820px auto repeat-x;
}
.rs-hero.has-image { background-size: cover; background-position: center; }
.rs-hero h2 { margin: 0 0 8px; color: #fff; font-size: 26px; text-shadow: 0 2px 3px rgba(0, 0, 0, .45); }
.rs-hero p { max-width: 440px; margin: 0 0 16px; font-size: 13px; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }

.rs-boards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rs-gap); }
.rs-boards .rs-box { margin-bottom: 0; }
.rs-front-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rs-gap); margin-top: var(--rs-gap); }
.rs-front-widgets .widget, .rs-front-widgets .rs-box { margin-bottom: 0; }

/* Board list (notice / events / archives) */
.rs-board { list-style: none; margin: 0; padding: 0; }
.rs-board li {
	display: flex; align-items: center; gap: 8px;
	padding: 6px 0;
	border-bottom: 1px dotted var(--rs-line);
	font-size: 12px;
}
.rs-board li:last-child { border-bottom: 0; }
.rs-board .rs-board-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-board .rs-board-date { flex: 0 0 auto; color: var(--rs-muted); font-size: 11px; }
.rs-board .rs-new {
	flex: 0 0 auto;
	padding: 0 4px; border-radius: 3px;
	background: #fb0000; color: #fff; font-size: 9px; font-weight: bold; line-height: 14px;
}
.rs-board-empty { margin: 0; color: var(--rs-muted); font-size: 12px; }

/* Category badges, coloured by slug */
.rs-badge {
	flex: 0 0 auto;
	display: inline-block;
	min-width: 56px;
	padding: 1px 6px;
	border-radius: 3px;
	background: #8a96a6;
	color: #fff;
	font-size: 10px; font-weight: bold; text-align: center; line-height: 16px;
	text-transform: uppercase;
}
.rs-badge:hover { color: #fff; text-decoration: none; filter: brightness(1.1); }
.rs-badge--notice, .rs-badge--news { background: #2f6fb1; }
.rs-badge--update, .rs-badge--patch, .rs-badge--patch-notes { background: #3d9a3d; }
.rs-badge--event, .rs-badge--events { background: var(--rs-orange-dark); }
.rs-badge--maintenance { background: #c62828; }
.rs-badge--community { background: #7b4fb0; }

/* ------------------------------------------------------------------
   Posts
------------------------------------------------------------------- */
.rs-page-head { padding: 12px 16px; }
.rs-page-head h1 { margin: 0; font-size: 20px; }
.rs-page-head .archive-description { margin-top: 6px; color: var(--rs-muted); }

.rs-entry { padding: 0; }
.rs-entry-header { padding: 14px 18px 8px; border-bottom: 1px solid var(--rs-line-soft); }
.rs-entry-title { margin: 0 0 4px; font-size: 20px; }
.rs-entry-title a { color: var(--rs-title); }
.rs-entry-title a:hover { color: var(--rs-link-hover); }
.rs-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--rs-muted); font-size: 11px; }
.rs-entry-thumb img { display: block; width: 100%; height: auto; }
.rs-entry-content { padding: 6px 18px 14px; overflow-wrap: break-word; }
.rs-entry-content > *:first-child { margin-top: .6em; }
.rs-entry-footer { padding: 8px 18px; border-top: 1px solid var(--rs-line-soft); background: #fafbfd; font-size: 11px; color: var(--rs-muted); }
.rs-read-more { font-weight: bold; }

.alignleft { float: left; margin: 4px 16px 10px 0; }
.alignright { float: right; margin: 4px 0 10px 16px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { margin-left: 0; margin-right: 0; }
.wp-caption, .wp-block-image figcaption { color: var(--rs-muted); font-size: 11px; text-align: center; }
.wp-caption { max-width: 100%; }
.sticky .rs-entry-header { box-shadow: inset 3px 0 0 var(--rs-orange); }
.gallery-caption, .bypostauthor { }

/* Pagination */
.rs-pagination { margin: var(--rs-gap) 0; text-align: center; }
.rs-pagination .page-numbers {
	display: inline-block; min-width: 30px;
	margin: 0 2px; padding: 4px 8px;
	border: 1px solid var(--rs-line); border-radius: 4px;
	background: #fff; color: var(--rs-link);
}
.rs-pagination .page-numbers.current { background: var(--rs-orange); border-color: var(--rs-orange-dark); color: #fff; font-weight: bold; }
.rs-post-nav { display: flex; justify-content: space-between; gap: 10px; padding: 10px 18px; font-size: 12px; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], textarea, select {
	max-width: 100%;
	padding: 6px 8px;
	border: 1px solid var(--rs-line);
	border-radius: 4px;
	background: #fff;
	font-family: inherit; font-size: 13px;
}
textarea { width: 100%; }
.search-form { display: flex; gap: 6px; }
.search-form label { flex: 1 1 auto; }
.search-form input[type="search"] { width: 100%; }

/* Comments */
.rs-comments { padding: 4px 18px 16px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol.children { list-style: none; padding-left: 26px; }
.comment-body { padding: 10px 0; border-bottom: 1px dotted var(--rs-line); }
.comment-author { font-weight: bold; }
.comment-author .avatar { float: left; margin-right: 10px; border-radius: 4px; }
.comment-metadata { font-size: 11px; }
.comment-metadata a { color: var(--rs-muted); }
.comment-content { clear: both; }
.reply { font-size: 11px; }
.comment-respond { margin-top: 14px; }
.comment-form label { display: block; font-weight: bold; font-size: 12px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; max-width: 360px; }

/* 404 / empty */
.rs-notfound { padding: 20px 18px; text-align: center; }
.rs-notfound img { margin: 6px auto 0; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.rs-footer {
	margin-top: 10px;
	background: var(--rs-footer);
	border-top: 4px solid var(--rs-orange);
	color: #b9c3d1;
	font-size: 11px;
}
.rs-footer .rs-wrap { padding-top: 18px; padding-bottom: 22px; }
.rs-footer a { color: #fff; }
.rs-footer-menu { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 10px; padding: 0; }
.rs-footer-menu li + li::before { content: "|"; margin: 0 10px; color: #5d6a7d; }
.rs-footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 14px; }
.rs-footer-widgets .widget { background: transparent; border: 0; box-shadow: none; color: #b9c3d1; }
.rs-footer-widgets .widget-title { background: none; box-shadow: none; border-bottom: 1px solid #44516a; color: #fff; padding-left: 0; }
.rs-footer-widgets .widget > *:not(.widget-title) { padding-left: 0; }
.rs-footer-widgets .widget li { border-bottom-color: #3a4558; }
.rs-footer-note { margin: 0; line-height: 1.7; }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------- */
@media (max-width: 860px) {
	:root { --rs-scene-h: 250px; }
	.rs-columns { flex-direction: column; align-items: stretch; }
	.rs-content { width: 100%; }
	.rs-sidebar { order: 2; flex-basis: auto; width: 100%; }
	.rs-front-widgets, .rs-footer-widgets { grid-template-columns: 1fr; }
	.rs-header-cta { display: none; }
}
@media (max-width: 680px) {
	.rs-boards { grid-template-columns: 1fr; }
	.rs-menu-toggle { display: inline-block; }
	.rs-nav .rs-wrap { flex-wrap: wrap; }
	.rs-menu { display: none; width: 100%; flex-direction: column; padding-bottom: 6px; }
	.rs-nav.is-open .rs-menu { display: flex; }
	.rs-menu > li > a { border: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
	.rs-menu ul { position: static; display: block; border: 0; box-shadow: none; background: rgba(255, 255, 255, .15); }
	.rs-menu ul a { color: #fff; border-bottom-color: rgba(255, 255, 255, .2); padding-left: 28px; }
	.rs-nav-search { width: 100%; margin: 0 0 8px; }
	.rs-lang { margin: 6px 0 6px auto; }
	.rs-nav-search input[type="search"] { width: 100%; }
	.rs-hero { padding: 20px; }
	.rs-entry-header, .rs-entry-content, .rs-entry-footer, .rs-comments { padding-left: 12px; padding-right: 12px; }
	.alignleft, .alignright { float: none; margin: 8px 0; }
}

/* Motion: the whole scene holds still for visitors who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
	.rs-layer, .rs-mob-walk, .rs-mob, .rs-mob-sheet { animation: none !important; }
	.rs-mob-walk { transform: translate3d(70%, 0, 0); }
}
