/* Хогвартс — ядро ролевой: служебные стили расширения */

/* Пост-оформление ([layout], на старом форуме [img=Rumpel]): без колонки автора */
.post:has(.hw-layout) .postprofile { display: none; }
.post:has(.hw-layout) .postbody { width: 100%; float: none; }
.post:has(.hw-layout) .postbody .content { overflow-x: auto; }
.hw-layout { position: relative; }

/* HTML-блоки локаций */
.hw-html { position: relative; }
.hw-html img { max-width: none; }

/* Разделитель [hr] */
.hw-hr { border: 0; border-top: 1px solid rgba(94, 32, 11, .35); margin: 1em 0; }

/* Спойлер */
.hw-spoiler { margin: .6em 0; border: 1px solid rgba(94, 32, 11, .3); border-radius: 4px; background: rgba(248, 220, 160, .35); }
.hw-spoiler > summary { cursor: pointer; padding: .4em .8em; font-weight: bold; }
.hw-spoiler-body { padding: .4em .8em .8em; }

/* ---------- Анкеты ---------- */
.hw-anketa { position: relative; }

.hw-anketa input[type="text"],
.hw-anketa textarea,
.hw-anketa select {
	box-sizing: border-box;
	max-width: 100%;
	font: inherit;
	vertical-align: top;
}
.hw-anketa textarea { resize: vertical; }
.hw-anketa input.hw-autosize { width: 100%; }

.hw-anketa .pst-radiobtn { display: inline-block; vertical-align: top; }
.hw-anketa .pst-radiobtn > span { display: block; }
.hw-anketa .pst-radiobtn.line > span { display: inline-block; margin-right: .5em; }

.hw-anketa .hw-expl { display: block; font-size: .92em; opacity: .85; font-style: italic; }

/* Обязательные поля */
.hw-anketa .imp.empty { outline: 2px solid #c62828 !important; outline-offset: 1px; }

/* Части анкеты */
.hw-anketa .cnt-part { display: none; }
.hw-anketa .cnt-part.visible { display: block; }
.hw-anketa .btn-wrap { text-align: center; font-weight: bold; font-size: 1.15em; margin: .8em 0 .2em; }
.hw-anketa .btn-wrap > span { cursor: pointer; margin: 0 .8em; color: #5e200b; }
.hw-anketa .btn-wrap > span:hover { text-decoration: underline; }

/* Кнопка отправки и сообщения */
.hw-anketa-actions { text-align: center; margin: 1em 0 .4em; clear: both; }
.hw-anketa-actions .button { font-weight: bold; padding: 6px 22px; }
.hw-anketa-message { display: block; margin-top: .6em; font-weight: bold; }
.hw-anketa-message.is-error { color: #c62828; }
.hw-anketa-message.is-ok { color: #2e7d32; }

/* ---------- Решение по анкете ---------- */

.hw-review {
	position: relative;
	margin: 0 0 22px;
	padding: 22px 40px;
	border: 1px solid #b88d4c;
	border-left: 4px solid #b88d4c;
	border-radius: 8px;
	background: #f1e3c2 url(images/home/parchment.jpg) center / 700px;
	margin-left: 4px;
	margin-right: 4px;
	color: #2b1a0e;
	font: 14px/1.55 Philosopher, Georgia, serif;
	box-shadow: inset 0 0 30px rgba(122, 72, 20, .18);
}
.hw-review-accepted { border-left-color: #2f7a4a; }
.hw-review-revise { border-left-color: #8e1820; }
.hw-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.hw-review h3 {
	margin: 0;
	padding: 0;
	border: 0;
	font: 700 22px/1.2 "Cormorant Garamond", Georgia, serif;
	color: #5a1a12;
	text-transform: none;
}
.hw-review-badge {
	padding: 2px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: #8a6436;
}
.hw-review-accepted .hw-review-badge { background: #2f7a4a; }
.hw-review-revise .hw-review-badge { background: #8e1820; }
.hw-review p { margin: 0 0 8px; }
.hw-review-comment {
	margin: 8px 0 4px;
	padding: 10px 14px;
	border: 0;
	border-left: 3px solid #8e1820;
	border-radius: 0 6px 6px 0;
	background: rgba(142, 24, 32, .07);
	color: #3b1a0c;
	box-shadow: none;
	font-style: italic;
}
.hw-review-form { margin-top: 14px; }
.hw-review-form label { display: block; margin-bottom: 6px; font: 700 16px "Cormorant Garamond", Georgia, serif; color: #2b1a0e; }
.hw-review-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1.5px solid #8a6436;
	border-radius: 4px 4px 0 0;
	background: rgba(255, 252, 240, .7);
	color: #2b1a0e;
	font: 14px/1.5 Philosopher, Georgia, serif;
	resize: vertical;
}
.hw-review-form textarea:focus { outline: none; background: #fffdf5; border-bottom-color: #5a1a12; }
.hw-review-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 14px 0 10px; }
.hw-btn {
	padding: 11px 24px;
	border: 0;
	border-radius: 999px;
	font: 700 16px/1 "Cormorant Garamond", Georgia, serif;
	color: #fff4dc;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(40, 20, 5, .35), inset 0 2px 3px rgba(255, 255, 255, .25), inset 0 -3px 6px rgba(0, 0, 0, .3);
	text-shadow: 0 -1px 0 rgba(0, 0, 0, .4);
	transition: transform .15s, box-shadow .2s;
}
.hw-btn:hover { transform: translateY(-1px); box-shadow: 0 0 16px rgba(246, 190, 110, .55), 0 4px 12px rgba(40, 20, 5, .35); }
.hw-btn-accept { background: radial-gradient(circle at 35% 30%, #4fae72 0%, #2f7a4a 55%, #164a2a 100%); }
.hw-btn-revise { background: radial-gradient(circle at 35% 30%, #c43a42 0%, #8e1820 55%, #4a080d 100%); }
.hw-review-note { font-size: 12px; color: #6b4a2a; }
