
/* =====================================================================
   КАБИНЕТ АВТОРА БЛОГА (2026-10-20): /ru/avtor, форма статьи, новые статьи
   Классы только author-* и .login.author-login — на остальные страницы не влияет
   ===================================================================== */
.author-cab, .author-form, .login.author-login {
	--ac-emerald: #04453E;
	--ac-emerald-dark: #0E241F;
	--ac-beige: #F0EBE7;
	--ac-text: #5B5B5B;
	--ac-line: #E2DAD3;
	max-width: 920px;
	margin: 40px auto 64px;
	padding: 0 16px;
	font-family: 'Montserrat', sans-serif;
	color: var(--ac-text);
	box-sizing: border-box;
}
.author-cab *, .author-form *, .login.author-login * { box-sizing: border-box; }

.author-cab__label {
	font: 700 11px/1.2 'Montserrat', sans-serif;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ac-emerald);
	opacity: .75;
	margin-bottom: 8px;
}
.author-cab__title, .author-form__title {
	font: 700 34px/1.15 'Playfair Display', serif;
	color: var(--ac-emerald-dark);
	margin: 0 0 10px;
}
.author-cab__hello { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.6; }

.author-cab__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--ac-line);
	margin-bottom: 24px;
}

.author-cab__btn, .login.author-login .btn-primary {
	display: inline-block;
	background: var(--ac-emerald);
	color: #fff !important;
	border: 0;
	border-radius: 10px;
	padding: 14px 26px;
	font: 600 15px/1.2 'Montserrat', sans-serif;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(4, 69, 62, .18);
	transition: background .2s, transform .2s;
	text-shadow: none;
	background-image: none;
}
.author-cab__btn:hover, .login.author-login .btn-primary:hover { background: #06594F; transform: translateY(-1px); }

.author-cab__empty {
	background: var(--ac-beige);
	border-radius: 18px;
	padding: 48px 24px;
	text-align: center;
}
.author-cab__empty p { margin: 0 0 18px; font-size: 16px; }

.author-cab__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.author-cab__item {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	align-items: center;
	gap: 18px;
	background: #fff;
	border: 1px solid var(--ac-line);
	border-radius: 16px;
	padding: 12px 20px 12px 12px;
	margin: 0;
}
.author-cab__item::before { content: none; }
.author-cab__thumb {
	width: 96px;
	height: 68px;
	border-radius: 10px;
	background: var(--ac-beige) center / cover no-repeat;
}
.author-cab__name { font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--ac-emerald-dark); }
.author-cab__meta { display: flex; gap: 12px; align-items: center; margin-top: 6px; font-size: 13px; }
.author-cab__state {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	background: var(--ac-beige);
}
.author-cab__state--1 { background: #E1EFEA; color: var(--ac-emerald); }
.author-cab__actions { display: flex; gap: 16px; }
.author-cab__actions a { color: var(--ac-emerald); font-weight: 600; font-size: 14px; text-decoration: none; }
.author-cab__actions a:hover { text-decoration: underline; }

.author-cab__logout { margin-top: 32px; text-align: right; }
.author-cab__logout button {
	background: none;
	border: 0;
	padding: 0;
	color: var(--ac-text);
	font: 500 14px 'Montserrat', sans-serif;
	text-decoration: underline;
	cursor: pointer;
}

/* --- форма статьи --- */
.author-form__head { margin-bottom: 28px; }
.author-form__back { color: var(--ac-emerald); font-weight: 600; font-size: 14px; text-decoration: none; }
.author-form__form {
	background: var(--ac-beige);
	border-radius: 18px;
	padding: 32px;
}
.author-form__field { margin-bottom: 26px; }
.author-form__field > label {
	display: block;
	font: 700 15px/1.3 'Montserrat', sans-serif;
	color: var(--ac-emerald-dark);
	margin: 0 0 4px;
}
.author-form__req { color: #B5462F; }
.author-form__hint { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
.author-form__hint--muted { margin: 8px 0 0; opacity: .75; }
.author-form input[type="text"], .author-form textarea, .author-form__textarea {
	width: 100% !important;
	max-width: none;
	height: auto;
	border: 1px solid var(--ac-line);
	border-radius: 10px;
	background: #fff;
	padding: 12px 14px;
	font: 400 15px/1.5 'Montserrat', sans-serif;
	color: #2B2B2B;
	box-shadow: none;
}
.author-form #jform_title { font-size: 18px; font-weight: 600; }
.author-form input[type="text"]:focus, .author-form textarea:focus {
	border-color: var(--ac-emerald);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(4, 69, 62, .12);
}
.author-form .invalid { border-color: #B5462F !important; }
.author-form__field--editor .mce-tinymce, .author-form__field--editor .tox-tinymce { border-radius: 10px; overflow: hidden; }
.author-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.author-form .field-media-wrapper .input-prepend,
.author-form .field-media-wrapper .input-append { display: flex; width: 100%; }
.author-form .field-media-wrapper input[type="text"] { border-radius: 10px 0 0 10px; min-width: 0; }
.author-form .field-media-wrapper .btn { border-radius: 0; padding: 10px 14px; }
.author-form .field-media-wrapper .btn:last-child { border-radius: 0 10px 10px 0; }
.author-form__count { margin-top: 6px; font-size: 12px; text-align: right; }
.author-form__count.is-over { color: #B5462F; font-weight: 600; }
.author-form__actions { display: flex; align-items: center; gap: 20px; padding-top: 8px; }
.author-form__cancel {
	background: none;
	border: 0;
	color: var(--ac-text);
	font: 500 15px 'Montserrat', sans-serif;
	text-decoration: underline;
	cursor: pointer;
}

/* --- страница входа /ru/avtor (pageclass_sfx " author-login") --- */
.login.author-login { max-width: 460px; }
.login.author-login form.well {
	background: var(--ac-beige);
	border: 0;
	border-radius: 18px;
	padding: 32px;
	box-shadow: none;
}
.login.author-login .control-label label { font-weight: 600; color: var(--ac-emerald-dark); }
.login.author-login input[type="text"], .login.author-login input[type="password"] {
	width: 100%;
	height: auto;
	border: 1px solid var(--ac-line);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 15px;
	box-shadow: none;
}
.login.author-login .control-group { margin-bottom: 16px; }
.login.author-login .btn-primary { width: 100%; }
.login.author-login + div .nav-tabs, .login.author-login + div .nav-stacked { list-style: none; padding: 0; text-align: center; }
.login.author-login + div .nav a { color: var(--ac-emerald); font-size: 14px; }

/* --- новая статья блога (id > последнего старого, кат. 8) --- */
.author-post { max-width: 820px; margin: 0 auto; }
.author-post .author-post__title {
	font: 700 38px/1.2 'Playfair Display', serif;
	color: #0E241F;
	margin: 0 0 10px;
	text-transform: none;
}
.author-post__date { font-size: 13px; opacity: .7; margin-bottom: 24px; }
.author-post__cover { margin: 0 0 28px; }
.author-post__cover img { display: block; width: 100%; height: auto; border-radius: 18px; }
.author-post h2 { font: 700 28px/1.25 'Playfair Display', serif; color: #0E241F; margin: 36px 0 14px; }
.author-post h3 { font: 700 21px/1.3 'Montserrat', sans-serif; color: #04453E; margin: 28px 0 12px; }
.author-post p, .author-post li { font-size: 17px; line-height: 1.7; }
.author-post ul, .author-post ol { padding-left: 22px; margin: 0 0 18px; }
.author-post blockquote {
	margin: 24px 0;
	padding: 16px 22px;
	border-left: 4px solid #04453E;
	background: #F0EBE7;
	border-radius: 0 12px 12px 0;
}
.author-post img { max-width: 100%; height: auto; }
.author-post a { color: #04453E; text-decoration: underline; }

@media (max-width: 767px) {
	.author-cab__head { flex-direction: column; align-items: stretch; }
	.author-cab__head .author-cab__btn { text-align: center; }
	.author-cab__title, .author-form__title { font-size: 28px; }
	.author-cab__item { grid-template-columns: 64px 1fr; padding: 12px; }
	.author-cab__thumb { width: 64px; height: 48px; }
	.author-cab__actions { grid-column: 1 / -1; justify-content: flex-start; }
	.author-form__form { padding: 20px 16px; }
	.author-form__grid { grid-template-columns: 1fr; gap: 0; }
	.author-post .author-post__title { font-size: 28px; }
	.author-post h2 { font-size: 23px; }
	.author-post p, .author-post li { font-size: 16px; }
}
