/* --------------------------------------------------------------------------
   Single article: dark header + typographic body.
   -------------------------------------------------------------------------- */

.ahead {
	background: var(--dark);
	color: #f2f1e8;
	padding: 72px 24px 40px;
}

/* Header column lines up with the table of contents and the article body. */
.ahead-in {
	max-width: 792px;
	margin: 0 auto;
}

.crumbs {
	display: flex;
	gap: 10px;
	font-size: 13px;
	color: #8a948c;
	align-items: center;
	flex-wrap: wrap;
}

.crumbs a {
	color: var(--acc-light);
}

.crumbs a:hover {
	color: #fff;
}

.crumbs .current {
	color: #f2f1e8;
}

.ahead .klabel {
	margin-top: 44px;
}

.ahead h1 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 56px;
	line-height: 1.08;
	margin: 22px 0 0;
	color: #fff;
	max-width: 1000px;
}

.ameta {
	border-top: 1px solid rgba(159, 205, 170, .25);
	margin-top: 56px;
	padding: 24px 0 0;
}

.ameta .lead {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 21px;
	line-height: 1.28;
	color: #c9d2c2;
	margin: 0;
	max-width: 560px;
	font-style: italic;
}

/* Same column as the header and the body text. */
.acover {
	max-width: 840px;
	margin: 0 auto;
	padding: 48px 24px 0;
}

.acover img {
	width: 100%;
	max-height: 460px;
	object-fit: cover;
	/* Anchored to the top edge so the crop never cuts through the head. */
	object-position: center top;
	border-radius: 18px;
	display: block;
}

/* --- table of contents -------------------------------------------------- */

.atoc {
	background: #f4f5f0;
	padding: 56px 24px 32px;
	display: block;
}

.atoc-in {
	max-width: 792px;
	margin: 0 auto;
}

.atoc-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 28px;
}

.atoc-item {
	display: flex;
	align-items: baseline;
	gap: 14px;
}

.atoc-item .n {
	font-size: 14px;
	font-weight: 600;
	color: var(--acc);
	flex: none;
	width: 32px;
}

.atoc-item .t {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 22px;
	line-height: 1.2;
	color: var(--ink);
}

a.atoc-item:hover .t {
	color: var(--acc);
}

.atoc-item .dots {
	flex: 1;
	border-bottom: 1px dotted rgba(19, 42, 33, .35);
	min-width: 32px;
}

.atoc-item .go {
	color: var(--acc);
	font-size: 18px;
	flex: none;
}

span.atoc-item .go {
	visibility: hidden;
}

/* --- video slot --------------------------------------------------------- */

.avideo {
	max-width: 840px;
	margin: 0 auto;
	padding: 48px 24px 0;
}

.avideo-frame {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--dark);
}

.avideo-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* --- YouTube facade (poster + play, no YouTube chrome) ------------------ */

/* The pre-warmed player lives here, under the poster. It must stay rendered
   (not display:none / zero-size) or iOS refuses to play it. */
.avideo-mount {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.avideo-facade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: var(--dark);
	cursor: pointer;
	display: block;
	z-index: 2;
	/* No tap-delay / grey flash, and no double-tap zoom on the poster. */
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.avideo-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.avideo-play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: rgba(6, 20, 14, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, transform .2s ease;
}

.avideo-play svg {
	width: 32px;
	height: 32px;
	fill: #fff;
	margin-left: 3px;
}

/* Hover only for real pointers — on touch a first tap must fire the click
   (open the video), not get swallowed by a sticky :hover state. */
@media (hover: hover) and (pointer: fine) {
	.avideo-facade:hover .avideo-play {
		background: var(--acc);
		transform: translate(-50%, -50%) scale(1.06);
	}
}

.avideo-facade:focus-visible .avideo-play {
	background: var(--acc);
	transform: translate(-50%, -50%) scale(1.06);
}

.avideo-facade:active .avideo-play {
	transform: translate(-50%, -50%) scale(.95);
}

/* --- body --------------------------------------------------------------- */

.art {
	max-width: 840px;
	margin: 0 auto;
	padding: 64px 24px 96px;
}

/* A player or a cover already opens the article — keep the gap tight. */
.avideo + .art,
.acover + .art {
	padding-top: 40px;
}

/* --- comments (native WordPress) ---------------------------------------- */

.acomments {
	border-top: 1px solid var(--line);
	background: #fdfdfb;
}

.acomments-in {
	max-width: 840px;
	margin: 0 auto;
	padding: 64px 24px 20px;
}

.acomments-title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 44px;
	line-height: 1.15;
	color: var(--ink);
	margin: 0 0 40px;
}

#comments.acomments-body {
	margin-top: 0;
}

/* --- comment form ------------------------------------------------------- */

.acomment-form {
	margin: 0 0 44px;
}

.acomment-field {
	margin: 0 0 14px;
}

.acomment-form textarea,
.acomment-form input[type="text"],
.acomment-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 16px;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.acomment-form textarea {
	min-height: 120px;
	resize: vertical;
}

.acomment-form textarea:focus,
.acomment-form input[type="text"]:focus,
.acomment-form input[type="email"]:focus {
	outline: none;
	border-color: var(--acc);
	box-shadow: 0 0 0 3px rgba(2, 101, 55, .1);
}

.acomment-form ::placeholder {
	color: #8a8f8b;
	opacity: 1;
}

/* hCaptcha widget sits on its own line above the submit button. */
.acomment-form .h-captcha {
	margin: 4px 0 18px;
}

.acomment-submit-wrap {
	margin: 0;
}

.acomment-submit {
	display: inline-block;
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--acc);
	border: none;
	border-radius: 100px;
	padding: 15px 40px;
	cursor: pointer;
	transition: background .2s ease, box-shadow .25s ease;
}

.acomment-submit:hover {
	background: var(--dark);
	box-shadow: 0 0 0 4px rgba(2, 101, 55, .14);
}

.acomment-submit:disabled {
	opacity: .6;
	cursor: default;
}

/* Inline AJAX message (wrong captcha, missing fields, network error). */
.acomment-notice {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	border-radius: 12px;
	padding: 12px 16px;
	margin: 0 0 16px;
}

.acomment-notice--error {
	background: #fdeceb;
	border: 1px solid #f2b8b5;
	color: #8a1c14;
}

.acomment-notice--info {
	background: #e7eee4;
	border: 1px solid rgba(2, 101, 55, .3);
	color: var(--acc);
}

/* --- comment thread ----------------------------------------------------- */

.acomments-count {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8a8f8b;
	padding-bottom: 10px;
	margin-bottom: 20px;
	border-bottom: 2px solid var(--acc);
	display: inline-block;
}

.acomment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.acomment-list .children {
	list-style: none;
	margin: 18px 0 0 22px;
	padding: 0;
}

.acomment {
	margin-bottom: 18px;
}

.acomment-wrap {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 16px 22px 18px;
	box-shadow: 0 1px 2px rgba(14, 32, 24, .04), 0 6px 18px rgba(14, 32, 24, .05);
}

.acomment-list .children .acomment-wrap {
	border-left: 3px solid var(--acc-light);
}

.acomment-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.acomment-author {
	color: var(--acc);
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
}

.acomment-badge {
	display: inline-block;
	background: var(--acc);
	color: #fff;
	border-radius: 999px;
	padding: 2px 9px;
	font-family: 'Manrope', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.5;
}

.acomment-date {
	color: #8a8f8b;
	font-family: 'Manrope', sans-serif;
	font-size: 12px;
}

.acomment-hold {
	color: #b7791f;
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	margin: 8px 0 0;
}

.acomment-text {
	color: var(--ink);
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	margin-top: 6px;
}

.acomment-text p {
	margin: 0 0 8px;
}

.acomment-text p:last-child {
	margin-bottom: 0;
}

.acomment-foot {
	margin-top: 12px;
}

.acomment-foot .comment-reply-link {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 8px;
	background: rgba(2, 101, 55, .08);
	color: var(--ink);
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	font-weight: 600;
	transition: background .18s ease, color .18s ease;
}

.acomment-foot .comment-reply-link:hover {
	background: rgba(2, 101, 55, .14);
	color: var(--ink);
}

/* pagination */
.acomments-body .comments-pagination {
	margin-top: 24px;
}

.acomments-body .comments-pagination .page-numbers {
	display: inline-block;
	min-width: 34px;
	text-align: center;
	padding: 6px 10px;
	margin-right: 6px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--acc);
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
}

.acomments-body .comments-pagination .page-numbers.current {
	background: var(--acc);
	color: #fff;
	border-color: var(--acc);
}

.acomments-closed {
	color: #8a8f8b;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	margin-top: 20px;
}

@media (max-width: 480px) {
	.acomment-wrap {
		padding: 13px 15px 16px;
		border-radius: 12px;
	}
	.acomment {
		margin-bottom: 14px;
	}
	.acomment-list .children {
		margin-left: 12px;
	}
	.acomment-author {
		font-size: 15px;
	}
	.acomment-text {
		font-size: 14px;
	}
	.acomment-submit {
		width: 100%;
	}
}

.art a {
	color: var(--acc);
}

.art a:hover {
	color: var(--ink);
	text-decoration: underline;
}

.art p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	margin: 0 0 20px;
}

.art h2 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 40px;
	line-height: 1.15;
	color: var(--ink);
	margin: 72px 0 28px;
}

.art h3 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 28px;
	line-height: 1.2;
	color: var(--ink);
	margin: 48px 0 20px;
}

.art ul,
.art ol {
	font-size: 17px;
	line-height: 1.65;
	padding-left: 22px;
	margin: 0 0 22px;
}

.art li {
	margin-bottom: 10px;
}

.art img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
	display: block;
	margin: 32px 0;
}

.art figcaption {
	font-size: 13px;
	color: rgba(1, 1, 6, .55);
	margin-top: -20px;
	margin-bottom: 32px;
}

.art blockquote,
.art .q {
	font-family: 'Cormorant Garamond', serif;
	font-size: 23px;
	line-height: 1.32;
	color: var(--ink);
	margin: 0 0 20px;
	padding-left: 28px;
	border-left: 2px solid var(--acc);
}

.art blockquote p {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	margin: 0 0 12px;
}

.art .pull {
	text-align: center;
	padding: 28px 0;
	border-top: 1px solid rgba(19, 42, 33, .18);
	border-bottom: 1px solid rgba(19, 42, 33, .18);
	margin: 48px 0;
}

.art .pull p {
	font-family: 'Cormorant Garamond', serif;
	font-size: 30px;
	line-height: 1.2;
	color: var(--ink);
	margin: 0;
	font-style: italic;
}

.art .dlg {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 36px 0;
}

.art .bl,
.art .br {
	max-width: 78%;
	padding: 16px 26px;
}

.art .bl {
	align-self: flex-start;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 18px 18px 18px 4px;
}

.art .br {
	align-self: flex-end;
	background: var(--dark);
	border-radius: 18px 18px 4px 18px;
}

.art .bl p,
.art .br p {
	font-family: 'Cormorant Garamond', serif;
	font-size: 20px;
	line-height: 1.32;
	margin: 0;
}

.art .bl p {
	color: var(--ink);
}

.art .br p {
	color: #f2f1e8;
}

.art .chip {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--acc);
	border: 1px solid rgba(2, 101, 55, .35);
	border-radius: 100px;
	padding: 7px 16px;
	margin: 0 6px 8px 0;
}

/* --- editorial blocks used inside the article body ---------------------- */

/* Chapter number above an h2: <h2 id="s1"><span class="no">Глава 1</span>… */
.art h2 .no {
	display: block;
	font-family: Manrope, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--acc);
	margin-bottom: 14px;
}

/* Opening paragraph, a notch larger than the body. */
.art p.lede {
	font-size: 21px;
	line-height: 1.45;
}

/* Floating side note. Needs a .floatbox wrapper to contain the float. */
.art .floatbox {
	overflow: hidden;
}

.art .side {
	float: right;
	width: 250px;
	margin: 6px 0 16px 32px;
	border-left: 2px solid var(--acc);
	padding-left: 20px;
}

.art .side p {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-style: italic;
	font-size: 20px;
	line-height: 1.28;
	color: var(--acc);
	margin: 0;
}

/* Dark quote plate inside the text column. */
.art .darkplate {
	background: var(--dark);
	border-radius: 24px;
	padding: 48px 56px;
	margin: 48px 0;
}

.art .darkplate .klabel {
	color: var(--acc-light);
}

.art .darkplate .klabel::before {
	background: var(--acc-light);
}

.art .darkplate p {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 30px;
	line-height: 1.3;
	color: #fff;
	margin: 24px 0 0;
}

.art .darkplate em {
	color: var(--acc-light);
	font-style: italic;
}

/* Full-width dark section — a chapter told on a dark background.
   The oversized margin/padding pair bleeds the background to both edges while
   the text stays in the article column; html and body clip the overflow. */
.art .darkband {
	background: var(--dark);
	margin: 72px -1000px;
	padding: 80px 1000px;
}

.art .darkband .klabel {
	color: var(--acc-light);
}

.art .darkband .klabel::before {
	background: var(--acc-light);
}

.art .darkband p {
	color: #c9d2c2;
}

.art .darkband p.big {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 30px;
	line-height: 1.23;
	color: #fff;
	margin: 32px 0 28px;
}

/* Rule-bordered thought. */
.art .note {
	border-top: 2px solid var(--acc);
	border-bottom: 1px solid rgba(19, 42, 33, .14);
	padding: 28px 0;
	margin: 44px 0;
}

/* Soft green callout. */
.art .callout {
	border: 1px solid rgba(2, 101, 55, .3);
	border-radius: 16px;
	padding: 28px 32px;
	background: #e7eee4;
	margin: 36px 0;
}

.art .note .lbl,
.art .callout .lbl {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	margin: 0 0 14px;
	color: var(--acc);
}

.art .note p:not(.lbl) {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 25px;
	line-height: 1.23;
	margin: 0;
}

.art .callout p:not(.lbl) {
	font-size: 16px;
	line-height: 1.53;
	margin: 0;
}

/* Two-column numbered outcomes. */
.art .grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin: 40px 0;
}

.art .grid2 > div {
	border-top: 1px solid rgba(19, 42, 33, .14);
	padding-top: 20px;
}

.art .grid2 .n {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 26px;
	color: var(--acc);
}

.art .grid2 p {
	font-size: 15px;
	line-height: 1.45;
	margin: 10px 0 0;
}

/* Quoted dialogue rendered as a bordered exchange. */
.art .dlgq {
	border-left: 2px solid var(--acc);
	padding: 8px 0 8px 32px;
	margin: 36px 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 640px;
}

.art .dlgq p {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 20px;
	font-style: italic;
	margin: 0;
}

.art .dlgq p.me {
	color: var(--acc);
	padding-left: 36px;
}

/* Oversized serif statement. */
.art .bigword {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 72px;
	line-height: 1.05;
	color: var(--acc);
	font-style: italic;
	margin: 0 0 36px;
}

.art mark {
	background: #dce8d2;
	color: var(--ink);
	padding: 2px 6px;
	border-radius: 4px;
}

.art .sign {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 22px;
	font-style: italic;
	margin-top: 36px;
}

/* --- article footer ----------------------------------------------------- */

.aback {
	max-width: 840px;
	margin: 0 auto;
	padding: 0 24px 72px;
	text-align: center;
}

/* Solid accent button, unlike the outlined ghost used elsewhere. */
.aback .ghost {
	background: var(--acc);
	border-color: var(--acc);
	color: #fff;
}

.aback .ghost:hover {
	background: var(--dark);
	border-color: var(--dark);
	color: #fff;
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 1024px) {
	.ahead {
		padding: 56px 24px 32px;
	}

	.ahead h1 {
		font-size: 42px;
	}

	.atoc {
		padding: 40px 24px 24px;
	}

	.atoc-item .t {
		font-size: 20px;
	}
}

@media (max-width: 860px) {
	.art h2 {
		font-size: 32px;
	}

	.art .grid2 {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.art .bigword {
		font-size: 46px;
	}

	.art .darkplate {
		padding: 36px 28px;
	}

	.art .darkplate p,
	.art .darkband p.big {
		font-size: 25px;
	}

	.art .side {
		float: none;
		width: auto;
		margin: 24px 0;
	}

	.art .note p:not(.lbl) {
		font-size: 21px;
	}
}

@media (max-width: 600px) {
	.ahead {
		padding: 40px 20px 24px;
	}

	.ahead h1 {
		font-size: 32px;
	}

	.ameta {
		margin-top: 32px;
	}

	.ameta .lead {
		font-size: 18px;
	}

	.art {
		padding: 40px 20px 64px;
	}

	.art p,
	.art ul,
	.art ol {
		font-size: 16px;
	}

	.art .pull p {
		font-size: 24px;
	}

	.art .bl,
	.art .br {
		max-width: 92%;
	}

	.atoc {
		padding: 32px 20px 20px;
	}

	.atoc-item .t {
		font-size: 18px;
	}

	.atoc-item .dots,
	.atoc-item .go {
		display: none;
	}

	.avideo {
		padding: 32px 20px 0;
	}

	.art .darkband {
		margin: 48px -1000px;
		padding: 56px 1000px;
	}

	.art .dlgq {
		padding-left: 20px;
	}

	.art .dlgq p {
		font-size: 18px;
	}

	.art .dlgq p.me {
		padding-left: 18px;
	}

	.art .bigword {
		font-size: 34px;
	}

	.art .callout {
		padding: 22px 20px;
	}
}
