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

:root {
	--color-page: #f8f5ee;
	--color-surface: #fffdfa;
	--color-surface-2: #eee6d8;
	--color-surface-inner: #fffdfa;
	--color-border: #d9d2c5;
	--color-control-border: #8b8175;
	--color-nav: #19273f;
	--color-nav-hover: #2a3b58;
	--color-accent: #a4412e;
	--color-accent-hover: #823121;
	--color-accent-soft: #f4e1d8;
	--color-text: #19273f;
	--color-text-muted: #4d5668;
	--color-text-soft: #61594f;
	--color-text-on-nav: #fffbf5;
	--color-shadow-rgb: 25, 39, 63;
	--color-gold: #f2c996;
	--font-display: Georgia, 'Times New Roman', serif;
	--radius: 8px;
	--indent: clamp(14px, 4vw, 48px);

	/* DLE UI tokens */
	--tt: var(--color-text);
	--tt-l: var(--color-text-muted);
	--ui-bg: var(--color-surface);
	--ui-bg-darker: var(--color-surface-2);
	--ui-bg-darkest: var(--color-border);
	--ui-bg-accent: var(--color-nav);
	--ui-text-color-on-accent: #fff;
	--text-color-on-accent: #fff;
	--ui-bdc: var(--color-border);
}

*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--color-page);
	color: var(--color-text);
	font: 1rem/1.55 Manrope, sans-serif;
}
h1, h2, h3, h4, h5, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.2; overflow-wrap: anywhere; }
ul, ol { padding: 0; list-style: none; }
img, table, iframe, video, embed, object { max-width: 100%; }
table { border-collapse: collapse; border-spacing: 0; }
a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; }
a:hover { color: var(--color-accent); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
::selection { background: var(--color-accent); color: #fff; }
[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:not([class]), .btn, input[type="button"], input[type="reset"], input[type="submit"],
.form__btn, .qq-upload-button, .pm__links a, .usp__btn a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 44px;
	padding: 8px 16px;
	border: 0;
	border-radius: var(--radius);
	background: var(--color-accent);
	color: #fff;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
}
button:not([class]):hover, .btn:hover, input[type="button"]:hover,
input[type="reset"]:hover, input[type="submit"]:hover, .form__btn:hover,
.qq-upload-button:hover, .pm__links a:hover, .usp__btn a:hover {
	background: var(--color-accent-hover);
	color: #fff;
}
input[type="text"], input[type="password"], input[type="search"], input[type="email"], select, textarea {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--color-control-border);
	border-radius: var(--radius);
	background: var(--color-surface-inner);
	color: var(--color-text);
}
input::placeholder, textarea::placeholder { color: var(--color-text-soft); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--color-accent); }
textarea { vertical-align: top; resize: vertical; }
select[multiple] { height: auto; }

.visually-hidden, .skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	clip-path: inset(50%);
}
.hidden, .d-none, #dofullsearch, .form__header .form__btn, .comment-item__main .quote + br { display: none; }
.clr { clear: both; }
.clearfix::after { content: ''; display: table; clear: both; }
.ws-nowrap { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.line-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.img-box, .img-wide, .img-fit-cover, .img-responsive { position: relative; overflow: hidden; }
.img-wide img, .img-box > img { display: block; width: 100%; }
.img-fit-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.img-responsive { aspect-ratio: 16 / 9; }
.img-responsive--portrait { aspect-ratio: 2 / 3; }
.img-responsive > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Utilities shared by the DLE templates and rendered widgets */
.d-flex, .fx-row { display: flex; flex-wrap: wrap; }
.fd-column, .fx-col { flex-direction: column; flex-wrap: nowrap; }
.jc-space-between, .fx-row { justify-content: space-between; }
.jc-flex-start, .fx-start { justify-content: flex-start; }
.jc-center, .fx-center { justify-content: center; }
.ai-center, .fx-middle { align-items: center; }
.order-first { order: -1; }
.flex-grow-1, .fx-1, .stretch-free-width { flex: 1 1 0; min-width: 0; max-width: 100%; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; }
.icon-at-left [class*="fa-"], .icon-left .icon { margin-right: .45em; }
.icon-at-right [class*="fa-"], .icon-right .icon { margin-left: .45em; }
