/*
Theme Name: Mordalon
Theme URI: https://mordalon.com
Author: Mordalon
Description: Simple full width classic theme for Mordalon. Fixed textured background, banner shortcodes, news cards and WooCommerce styling. Built for the classic editor.
Version: 1.0.0
Requires at least: 6.0
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: mordalon
Tags: dark, full-width-template, custom-logo, custom-menu, featured-images
*/

/* ------------------------------------------------------------------
   1. Colors and sizes. Change these to restyle the whole site.
------------------------------------------------------------------- */
:root {
	--mord-bg: #0d0b09;
	--mord-panel: rgba(17, 14, 11, 0.9);
	--mord-panel-solid: #16120e;
	--mord-text: #e8dfcf;
	--mord-muted: #a99c87;
	--mord-gold: #d6ab52;
	--mord-gold-light: #ecc978;
	--mord-gold-dark: #9c7629;
	--mord-line: rgba(214, 171, 82, 0.28);
	--mord-light-bg: #efe6d2;
	--mord-light-text: #1f1913;
	--mord-danger: #d0564b;
	--mord-success: #6fae5e;

	--mord-font-head: "Cinzel", Georgia, "Times New Roman", serif;
	--mord-font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

	--mord-topbar-h: 72px;
	--mord-wide: 1240px;
	--mord-narrow: 860px;
	--mord-gutter: clamp(16px, 4vw, 40px);
	--mord-radius: 4px;
	--mord-adminbar: 0px;
}
body.admin-bar { --mord-adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --mord-adminbar: 46px; } }

/* ------------------------------------------------------------------
   2. Base
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mord-topbar-h) + 16px); }

body {
	margin: 0;
	background-color: var(--mord-bg);
	color: var(--mord-text);
	font-family: var(--mord-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	overflow-x: clip;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Fixed texture layer. Works on phones too, unlike background-attachment: fixed. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%),
		var(--mord-texture) center / cover no-repeat,
		var(--mord-bg);
	pointer-events: none;
}

img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
.entry-content img { display: inline-block; }

a { color: var(--mord-gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--mord-gold-light); }
:focus-visible { outline: 2px solid var(--mord-gold-light); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--mord-font-head);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: #f4ead7;
	margin: 1.6em 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5, h6 { font-size: 1rem; text-transform: uppercase; }

p, ul, ol, blockquote, figure, table, pre { margin: 0 0 1.2em; }

blockquote {
	border-left: 3px solid var(--mord-gold);
	padding: 0.4em 0 0.4em 1.2em;
	font-style: italic;
	color: #f1e7d4;
}

hr { border: 0; height: 1px; background: var(--mord-line); margin: 2.5em 0; }

pre, code { font-family: Consolas, Menlo, monospace; font-size: 0.9em; }
pre { background: rgba(0, 0, 0, 0.45); padding: 1em; overflow-x: auto; border-radius: var(--mord-radius); }
code { background: rgba(0, 0, 0, 0.35); padding: 0.1em 0.35em; border-radius: 3px; }

table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--mord-line); padding: 0.6em 0.8em; text-align: left; }
th { font-family: var(--mord-font-head); font-size: 0.9rem; letter-spacing: 0.05em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 1000;
	background: var(--mord-gold); color: #000; padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
select, textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.65em 0.8em;
	font: inherit;
	color: var(--mord-text);
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid var(--mord-line);
	border-radius: var(--mord-radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--mord-gold); outline: none; }
select option { background: var(--mord-panel-solid); }
label { display: inline-block; margin-bottom: 0.3em; font-weight: 600; }

/* ------------------------------------------------------------------
   3. Buttons
------------------------------------------------------------------- */
.btn,
button[type="submit"],
input[type="submit"], input[type="button"], input[type="reset"] {
	display: inline-block;
	padding: 0.75em 1.6em;
	font-family: var(--mord-font-head);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	color: #1a130a;
	background: linear-gradient(180deg, var(--mord-gold-light), var(--mord-gold) 55%, var(--mord-gold-dark));
	border: 1px solid var(--mord-gold-dark);
	border-radius: var(--mord-radius);
	cursor: pointer;
	transition: filter 0.15s, transform 0.15s;
}
.btn:hover, .btn:focus,
button[type="submit"]:hover,
input[type="submit"]:hover { color: #1a130a; filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
	color: var(--mord-text);
	background: rgba(0, 0, 0, 0.35);
	border-color: var(--mord-gold);
}
.btn--ghost:hover, .btn--ghost:focus { color: #fff; background: rgba(214, 171, 82, 0.18); }

/* ------------------------------------------------------------------
   4. Top bar
------------------------------------------------------------------- */
.topbar {
	position: sticky;
	top: var(--mord-adminbar);
	z-index: 100;
	background: linear-gradient(180deg, rgba(8, 6, 4, 0.95), rgba(8, 6, 4, 0.82));
	border-bottom: 1px solid var(--mord-line);
	transition: background 0.2s;
}
.topbar.is-scrolled { background: rgba(8, 6, 4, 0.97); }
@media (max-width: 600px) { body.admin-bar .topbar { top: 0; } }

.topbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--mord-topbar-h);
	padding: 0 var(--mord-gutter);
	max-width: 1600px;
	margin: 0 auto;
}

.topbar__logo { flex: 0 0 auto; }
.topbar__logo img,
.topbar__logo .custom-logo {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.topbar__nav { flex: 1 1 auto; }
.topbar__nav .menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.topbar__nav li { position: relative; }
.topbar__nav .menu > li { display: flex; align-items: center; }
.topbar__nav a {
	display: block;
	padding: 10px 14px;
	font-family: var(--mord-font-head);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--mord-text);
	white-space: nowrap;
}
.topbar__nav a:hover,
.topbar__nav a:focus,
.topbar__nav .current-menu-item > a,
.topbar__nav .current-menu-ancestor > a,
.topbar__nav .current_page_item > a { color: var(--mord-gold-light); }

/* Dropdown arrow button (added by nav.js) */
.submenu-toggle {
	width: 28px;
	height: 28px;
	margin-left: -10px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--mord-muted);
	cursor: pointer;
}
.submenu-toggle::before {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	margin: 0 auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.15s;
}
.is-open > .submenu-toggle::before { transform: translateY(2px) rotate(225deg); }

/* Dropdown panel */
.topbar__nav .sub-menu,
.topbar__nav .children {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: rgba(10, 8, 6, 0.98);
	border: 1px solid var(--mord-line);
	border-top: 2px solid var(--mord-gold);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.topbar__nav .sub-menu a,
.topbar__nav .children a {
	padding: 10px 18px;
	font-family: var(--mord-font-body);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: none;
}
.topbar__nav .sub-menu a:hover,
.topbar__nav .children a:hover { background: rgba(214, 171, 82, 0.1); }

@media (hover: hover) and (min-width: 1025px) {
	.topbar__nav li:hover > .sub-menu,
	.topbar__nav li:hover > .children { opacity: 1; visibility: visible; transform: none; }
}
.topbar__nav li.is-open > .sub-menu,
.topbar__nav li.is-open > .children,
.topbar__nav li:focus-within > .sub-menu,
.topbar__nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }

/* Right side: shop icons and play button */
.topbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topbar__icon {
	position: relative;
	display: inline-flex;
	padding: 8px;
	color: var(--mord-text);
}
.topbar__icon:hover { color: var(--mord-gold-light); }
.topbar__count {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	color: #1a130a;
	background: var(--mord-gold);
	border-radius: 9px;
}
.btn--play { padding: 0.65em 1.3em; }

/* Mobile menu button */
.topbar__toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 1px solid var(--mord-line);
	border-radius: var(--mord-radius);
	color: var(--mord-text);
	cursor: pointer;
}
.topbar__toggle-bars,
.topbar__toggle-bars::before,
.topbar__toggle-bars::after {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: currentColor;
	transition: transform 0.2s, opacity 0.2s;
}
.topbar__toggle-bars { position: relative; }
.topbar__toggle-bars::before,
.topbar__toggle-bars::after { content: ""; position: absolute; left: 0; }
.topbar__toggle-bars::before { top: -6px; }
.topbar__toggle-bars::after { top: 6px; }
.is-open .topbar__toggle-bars { background: transparent; }
.is-open .topbar__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .topbar__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
	:root { --mord-topbar-h: 64px; }
	.topbar__inner { gap: 12px; }
	.topbar__logo img, .topbar__logo .custom-logo { width: 46px; height: 46px; }
	.topbar__toggle { display: block; order: 3; }
	.topbar__actions { order: 2; }

	.topbar__nav {
		position: fixed;
		top: calc(var(--mord-topbar-h) + var(--mord-adminbar));
		left: 0;
		right: 0;
		bottom: 0;
		overflow-y: auto;
		padding: 12px var(--mord-gutter) 40px;
		background: #080604;
		border-top: 1px solid var(--mord-line);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.25s, visibility 0.25s;
	}
	.topbar.is-open .topbar__nav { transform: none; visibility: visible; }
	body.nav-open { overflow: hidden; }

	.topbar__nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.topbar__nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(214, 171, 82, 0.12); }
	.topbar__nav .menu > li > a { flex: 1 1 auto; padding: 16px 4px; font-size: 1.05rem; }
	.submenu-toggle { width: 48px; height: 48px; margin: 0; }

	.topbar__nav .sub-menu,
	.topbar__nav .children {
		position: static;
		flex-basis: 100%;
		display: none;
		min-width: 0;
		padding: 0 0 10px 12px;
		background: none;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.topbar__nav li.is-open > .sub-menu,
	.topbar__nav li.is-open > .children { display: block; }
	.topbar__nav .sub-menu a, .topbar__nav .children a { padding: 10px 8px; }
}
@media (max-width: 600px) {
	body.admin-bar .topbar__nav { top: var(--mord-topbar-h); }
}
@media (max-width: 420px) {
	.btn--play { padding: 0.6em 0.9em; font-size: 0.8rem; }
	.topbar__icon { padding: 6px; }
}

/* ------------------------------------------------------------------
   5. Layout: sections, panels, page hero
------------------------------------------------------------------- */
.site-main { flex: 1 0 auto; }

.section {
	max-width: var(--mord-wide);
	margin: 0 auto;
	padding: clamp(32px, 6vw, 72px) var(--mord-gutter);
}
.section--no-hero { padding-top: clamp(24px, 4vw, 48px); }

.panel {
	--panel-pad: clamp(20px, 4vw, 48px);
	background: var(--mord-panel);
	border: 1px solid var(--mord-line);
	border-radius: var(--mord-radius);
	padding: var(--panel-pad);
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.panel--narrow { max-width: var(--mord-narrow); margin-left: auto; margin-right: auto; }
.panel > :first-child, .entry-content > :first-child { margin-top: 0; }
.panel > :last-child, .entry-content > :last-child { margin-bottom: 0; }

.page-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: clamp(28px, 5vw, 56px) var(--mord-gutter);
	text-align: center;
	background: rgba(0, 0, 0, 0.35) center / cover no-repeat;
	border-bottom: 1px solid var(--mord-line);
}
.page-hero.has-image { min-height: clamp(220px, 32vw, 420px); }
.page-hero + .section { padding-top: clamp(24px, 3vw, 40px); }
.page-hero.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%);
}
.page-hero__inner { position: relative; max-width: var(--mord-narrow); }
.page-hero__title { margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.page-hero__sub { margin-top: 12px; color: var(--mord-muted); }
.page-hero__sub p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   6. Banners ([banner] shortcode)
------------------------------------------------------------------- */
.banner {
	position: relative;
	width: 100vw;
	margin: 0 calc(50% - 50vw);
	overflow: hidden;
}
.entry-content > .banner { margin-top: 0; margin-bottom: 0; }
.entry-content > :not(.banner) + .banner,
.entry-content > .banner + :not(.banner) { margin-top: 2em; }

/* Banners inside a panel (default page template, posts) fill the panel
   edge to edge instead of the whole screen. */
.panel .entry-content > .banner {
	width: auto;
	margin-left: calc(-1 * var(--panel-pad));
	margin-right: calc(-1 * var(--panel-pad));
}
.panel .entry-content > .banner:first-child { margin-top: calc(-1 * var(--panel-pad)); }
.panel .entry-content > .banner:last-child { margin-bottom: calc(-1 * var(--panel-pad)); }
.panel .banner__inner { padding-left: var(--panel-pad); padding-right: var(--panel-pad); }
.panel .banner--text { border-left: 0; border-right: 0; }
.panel .entry-content > .banner:first-child.banner--text { border-top: 0; }
.panel .entry-content > .banner:last-child.banner--text { border-bottom: 0; }

/* Image only */
.banner--image img { width: 100%; object-fit: cover; }

/* Image with text overlay */
.banner--overlay {
	display: flex;
	align-items: center;
	min-height: clamp(380px, 55vw, 640px);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}
.banner--overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.1) 100%);
}
.banner--overlay.banner--align-center::before { background: rgba(0, 0, 0, 0.45); }
.banner--overlay.banner--align-right::before {
	background: linear-gradient(270deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.1) 100%);
}
@media (hover: hover) and (min-width: 1025px) {
	.banner--parallax { background-attachment: fixed; }
}

/* Text only: sits on the site texture */
.banner--text {
	padding: 0;
	border-top: 1px solid var(--mord-line);
	border-bottom: 1px solid var(--mord-line);
	background: rgba(0, 0, 0, 0.35);
}
.banner--text + .banner--text { border-top: 0; }
.banner--light {
	background: var(--mord-light-bg);
	color: var(--mord-light-text);
}
.banner--light .banner__title,
.banner--light h2, .banner--light h3, .banner--light h4 { color: var(--mord-light-text); }
.banner--light a:not(.btn) { color: #7a5615; }
.banner--light .btn--ghost { color: var(--mord-light-text); background: transparent; border-color: var(--mord-light-text); }

/* Shared banner content */
.banner__inner {
	position: relative;
	width: 100%;
	max-width: var(--mord-wide);
	margin: 0 auto;
	padding: 48px var(--mord-gutter);
}
.banner__inner > * { max-width: 640px; }
.banner--text .banner__inner { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
/* First banner on a page sits closer to the top bar */
.banner-page > .banner--text:first-child .banner__inner,
.panel .entry-content > .banner--text:first-child .banner__inner { padding-top: clamp(28px, 4vw, 48px); }
.banner--align-center .banner__inner { text-align: center; }
.banner--align-center .banner__inner > * { margin-left: auto; margin-right: auto; }
.banner--align-right .banner__inner { text-align: right; }
.banner--align-right .banner__inner > * { margin-left: auto; }
.banner--text .banner__inner > * { max-width: var(--mord-narrow); }
.banner--text .banner__inner > .columns,
.banner__inner > .banner__text:has(> .card-grid),
.banner__inner > .banner__text:has(> .columns) { max-width: none; }

.banner__title {
	margin: 0 0 0.4em;
	font-size: clamp(2rem, 5vw, 3.4rem);
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.banner--light .banner__title { text-shadow: none; }
.banner__text { font-size: 1.15rem; }
.banner__text > :first-child { margin-top: 0; }
.banner__text > :last-child { margin-bottom: 0; }
.banner--overlay .banner__text { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.banner__actions { margin: 1.6em 0 0; }
.banner__text .btn { margin: 0.3em 0.4em 0.3em 0; }

/* Plain lists in centred banners: the list block is centred, its text stays left */
.banner--align-center .banner__text ul:not(.checklist),
.banner--align-center .banner__text ol:not(.roadmap) {
	display: inline-block;
	text-align: left;
}

/* Banner page template: plain text between banners stays readable */
.banner-page > :not(.banner):not(.alignfull) {
	max-width: var(--mord-narrow);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--mord-gutter);
	padding-right: var(--mord-gutter);
}
.banner-page > .card-grid,
.banner-page > .columns { max-width: var(--mord-wide); margin-top: clamp(32px, 6vw, 64px); margin-bottom: clamp(32px, 6vw, 64px); }

/* ------------------------------------------------------------------
   7. Columns ([columns] shortcode)
------------------------------------------------------------------- */
.columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(20px, 3vw, 36px);
	margin: 2em 0;
	text-align: left;
}
.banner--align-center .columns { text-align: center; }
.column__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--mord-radius); margin-bottom: 1em; }
.column__body > :first-child { margin-top: 0; }
.column__body > :last-child { margin-bottom: 0; }
.column h3 { margin-top: 0; }

/* Fixed columns per row: 1 on phones, 2 on tablets, then the chosen number */
.columns--2, .columns--3, .columns--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.columns--2, .columns--3, .columns--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
	.columns--3 { grid-template-columns: repeat(3, 1fr); }
	.columns--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Card style: framed panel, image flush on top */
.columns--cards .column {
	display: flex;
	flex-direction: column;
	background: var(--mord-panel);
	border: 1px solid var(--mord-line);
	border-radius: var(--mord-radius);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	text-align: left;
	transition: transform 0.2s, border-color 0.2s;
}
.columns--cards .column:hover { transform: translateY(-3px); border-color: var(--mord-gold); }
.columns--cards .column__image { margin: 0; border-radius: 0; border-bottom: 1px solid var(--mord-line); }
.columns--cards .column__body { padding: 20px 22px 24px; }
.columns--cards .column h3 { font-size: 1.3rem; margin-bottom: 0.5em; }
.columns--cards .column p { color: var(--mord-text); }
.banner--light .columns--cards .column { background: #fffaf0; border-color: rgba(31, 25, 19, 0.15); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12); }
.banner--light .columns--cards .column p { color: var(--mord-light-text); }

/* Column image options */
.columns--img-contain .column__image {
	object-fit: contain;
	padding: 24px;
	background: rgba(255, 255, 255, 0.04);
}
.columns--img-full .column__image { aspect-ratio: auto; }
.column h3 a { color: inherit; text-decoration: none; }
.column h3 a:hover { color: var(--mord-gold-light); }
.banner--light .column h3 a:hover { color: #7a5615; }

/* Keyboard keys: <kbd>F1</kbd> */
kbd {
	display: inline-block;
	min-width: 1.9em;
	padding: 0.1em 0.5em;
	font-family: var(--mord-font-body);
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	color: var(--mord-text);
	background: linear-gradient(180deg, #2a231b, #17120d);
	border: 1px solid var(--mord-line);
	border-bottom-width: 3px;
	border-radius: 5px;
	white-space: nowrap;
}
.banner--light kbd { color: var(--mord-light-text); background: #fffaf0; border-color: rgba(31, 25, 19, 0.25); }

/* Key list: <table class="keys"> with the key on the left */
table.keys { margin: 0; }
table.keys td { padding: 0.5em 0.6em; vertical-align: middle; }
table.keys td:first-child { width: 1%; white-space: nowrap; padding-right: 1.2em; }
table.keys tr:last-child td { border-bottom: 0; }
.banner--light table.keys td { border-bottom-color: rgba(31, 25, 19, 0.15); }

/* Safety net: hide stray line breaks and empty paragraphs that WordPress
   can leave between banners and columns. */
.columns > br, .columns > p:empty,
.banner-page > br, .banner-page > p:empty,
.banner__inner > br, .banner__text > br:first-child, .banner__text > br:last-child,
.entry-content > p:empty { display: none; }

/* Checklist: <ul class="checklist"> with gold check marks, two columns on desktop */
ul.checklist {
	list-style: none;
	margin: 1.5em 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px 32px;
	text-align: left;
}
@media (min-width: 760px) { ul.checklist { grid-template-columns: 1fr 1fr; } }
ul.checklist li {
	position: relative;
	margin: 0;
	padding: 12px 16px 12px 46px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--mord-line);
	border-radius: var(--mord-radius);
}
.checklist li::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 17px;
	width: 7px;
	height: 13px;
	border-right: 3px solid var(--mord-gold);
	border-bottom: 3px solid var(--mord-gold);
	transform: rotate(45deg);
}
.checklist li strong { color: var(--mord-gold-light); }
.banner--light .checklist li { background: #fffaf0; border-color: rgba(31, 25, 19, 0.15); }
.banner--light .checklist li::before { border-color: var(--mord-gold-dark); }
.banner--light .checklist li strong { color: #7a5615; }

/* Roadmap: <ol class="roadmap"> timeline. Add class="is-current" to the step you are on. */
ol.roadmap {
	list-style: none;
	margin: 2em 0 0;
	padding: 0 0 0 36px;
	position: relative;
	text-align: left;
}
.roadmap::before {
	content: "";
	position: absolute;
	left: 9px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: var(--mord-line);
}
ol.roadmap > li { position: relative; margin: 0 0 2.2em; }
ol.roadmap > li:last-child { margin-bottom: 0; }
.roadmap > li::before {
	content: "";
	position: absolute;
	left: -36px;
	top: 6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--mord-panel-solid);
	border: 2px solid var(--mord-gold-dark);
}
.roadmap > li.is-current::before {
	background: var(--mord-gold);
	border-color: var(--mord-gold-light);
	box-shadow: 0 0 0 5px rgba(214, 171, 82, 0.25);
}
.roadmap h3, .roadmap h4 { margin: 0 0 0.5em; font-size: 1.3rem; }
.roadmap__badge {
	display: inline-block;
	margin-left: 10px;
	padding: 3px 10px;
	font-family: var(--mord-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	vertical-align: middle;
	color: #1a130a;
	background: var(--mord-gold);
	border-radius: 20px;
}
.roadmap > li > :last-child { margin-bottom: 0; }
.banner--light .roadmap::before { background: rgba(31, 25, 19, 0.2); }
.banner--light .roadmap > li::before { background: var(--mord-light-bg); }
.banner--light .roadmap > li.is-current::before { background: var(--mord-gold); }

/* ------------------------------------------------------------------
   8. News cards
------------------------------------------------------------------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: clamp(18px, 2.5vw, 32px);
	text-align: left;
}
.banner .card-grid { max-width: none; }
.card {
	display: flex;
	flex-direction: column;
	background: var(--mord-panel);
	border: 1px solid var(--mord-line);
	border-radius: var(--mord-radius);
	overflow: hidden;
	transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--mord-gold); }
.card__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.card__title { margin: 0.2em 0 0.5em; font-size: 1.3rem; }
.card__title a { color: #f4ead7; text-decoration: none; }
.card__title a:hover { color: var(--mord-gold-light); }
.card__excerpt { color: var(--mord-muted); flex: 1; }
.card__excerpt p { margin: 0 0 1em; }
.card__more {
	font-family: var(--mord-font-head);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}

.post-meta { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mord-muted); }
.post-meta a { color: var(--mord-gold); text-decoration: none; }
.post-meta__sep { margin: 0 0.5em; }

/* Pagination */
.pagination, .posts-navigation { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 8px 14px;
	text-align: center;
	text-decoration: none;
	background: var(--mord-panel);
	border: 1px solid var(--mord-line);
	border-radius: var(--mord-radius);
}
.page-numbers.current { background: var(--mord-gold); color: #1a130a; border-color: var(--mord-gold); }

/* ------------------------------------------------------------------
   9. Posts and pages
------------------------------------------------------------------- */
.entry-content { overflow-wrap: break-word; }
.entry-content > * + h2, .entry-content > * + h3 { margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.3em; }

/* Classic editor image alignment */
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) {
	.alignleft, .alignright { float: none; margin: 0 0 1em; }
}
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 0.9rem; color: var(--mord-muted); text-align: center; margin-top: 0.5em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: auto; }

/* Older posts made with the block editor */
.entry-content .alignwide { margin-left: calc(-1 * clamp(0px, 4vw, 48px)); margin-right: calc(-1 * clamp(0px, 4vw, 48px)); max-width: none; }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-block-button__link { border-radius: var(--mord-radius); }
.wp-block-separator { border: 0; height: 1px; background: var(--mord-line); }

.entry-footer { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--mord-line); }
.tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 10px;
	font-size: 0.85rem;
	text-decoration: none;
	border: 1px solid var(--mord-line);
	border-radius: 20px;
}

.post-navigation { max-width: var(--mord-narrow); margin: 32px auto 0; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation .nav-previous, .post-navigation .nav-next { flex: 1 1 260px; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a {
	display: block;
	padding: 16px 20px;
	text-decoration: none;
	background: var(--mord-panel);
	border: 1px solid var(--mord-line);
	border-radius: var(--mord-radius);
}
.post-navigation a:hover { border-color: var(--mord-gold); }
.nav-label { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mord-muted); }
.nav-title { font-family: var(--mord-font-head); color: #f4ead7; }

.page-links { margin-top: 1.5em; }
.page-links a, .page-links > span { margin: 0 4px; }

/* Comments */
.comments { margin-top: 32px; }
.comments__title { margin-top: 0; }
.comment-list, .comment-list .children { list-style: none; padding: 0; }
.comment-list .children { padding-left: clamp(12px, 4vw, 40px); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--mord-line); }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-meta { font-size: 0.85rem; color: var(--mord-muted); }
.comment-meta a { color: var(--mord-muted); }
.comment-content { clear: both; padding-top: 8px; }
.comment-respond { margin-top: 24px; }
.comment-form p { margin-bottom: 1em; }

/* Search form */
.search-form { display: flex; gap: 8px; margin: 1em 0; }
.search-form label { flex: 1; margin: 0; }

/* ------------------------------------------------------------------
   10. Footer
------------------------------------------------------------------- */
.site-footer {
	margin-top: auto;
	background: rgba(6, 5, 4, 0.94);
	border-top: 1px solid var(--mord-line);
	font-size: 0.95rem;
	color: var(--mord-muted);
}
.site-footer__inner {
	max-width: var(--mord-wide);
	margin: 0 auto;
	padding: 40px var(--mord-gutter);
	text-align: center;
}
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	margin-bottom: 32px;
	text-align: left;
}
.footer-widget__title { margin-top: 0; font-size: 1rem; }
.footer-widget ul { list-style: none; padding: 0; }
.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 24px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.footer-menu a {
	font-family: var(--mord-font-head);
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--mord-text);
}
.footer-menu a:hover { color: var(--mord-gold-light); }
.site-footer__text p { margin: 0.3em 0; }

/* ------------------------------------------------------------------
   11. Small screens
------------------------------------------------------------------- */
@media (max-width: 600px) {
	body { font-size: 1rem; }
	.banner__inner { padding-top: 36px; padding-bottom: 36px; }
	.banner--overlay::before,
	.banner--overlay.banner--align-right::before { background: rgba(0, 0, 0, 0.55); }
	.banner--align-left .banner__inner, .banner--align-right .banner__inner { text-align: left; }
	.banner--align-right .banner__inner > * { margin-left: 0; }
	.post-navigation .nav-next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
	.banner--parallax { background-attachment: scroll; }
}
