/* Single news page (/news/<slug>) — v2 layout.
   Most of the .single-* styling lives in main.css; this file only adds the
   theme-specific bits: the full-width (no-form) state, the download button and
   the CF7 form styling inside the .single-form column. */

/* WordPress body_class() outputs "single" on every single post, which collides
   with the design's .single SECTION class — so main.css's header clearance
   (padding-top) was applied to BOTH the <body> AND the section, doubling the top
   gap. Fix: neutralise it on the body, and scope the clearance to the section
   only (.section.single). Values clear the ~185px/128px fixed header with a small
   gap; below 1200px the header is static, so no padding is needed. */
body.single {
	padding-top: 0;
}

/* When there's no download form, let the content span the full width
   (main.css reserves the form's width on .single-content by default). */
.single-inner--full .single-content {
	width: 100%;
}

/* Red "Скачать презентацию" button (no-form mode) */
.single-download {
	margin-top: 30px;
}

.news-source {
	margin: 0 0 20px;
}

/* Large red buttons: "Все Альфа-Новости" and "Скачать презентацию" */
.button-large {
	min-height: 48px;
	padding: 12px 64px 12px 32px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 12px 0 12px 0;
}
.button-large:after {
	width: 22px;
	height: 22px;
	right: 22px;
}

/* CF7 download form inside the .single-form column */
.single-form-inner .wpcf7 .wpcf7-response-output {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--white, #fff);
}
.single-form-inner .wpcf7-not-valid-tip {
	font-size: 11px;
}

/* Fields fill the flex .input-group (see forms.css). The submit becomes a
   full-width flex item on its own row, with the button icon painted on (an
   <input> can't render .button::after). */
.single-form-inner .wpcf7-submit {
	flex: 1 1 100%;
	width: 100%;
	background-image: url("data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.4184%202.63544C11.9762%20-0.87848%206.3935%20-0.87848%202.94917%202.63544C-0.495158%206.14936%20-0.492996%2011.8484%202.94917%2015.3646C6.39133%2018.8785%2011.9741%2018.8785%2015.4184%2015.3646C18.8605%2011.8506%2018.8605%206.15156%2015.4184%202.63544ZM3.68431%2014.6141C0.64647%2011.5129%200.64647%206.48706%203.68431%203.3859C6.72215%200.284733%2011.6454%200.284733%2014.6832%203.3859C17.7211%206.48706%2017.7211%2011.5129%2014.6832%2014.6141C11.6454%2017.7153%206.72215%2017.7153%203.68431%2014.6141Z'%20fill='%23B3B2B2'/%3e%3cpath%20d='M6.00648%204.09442C3.3535%206.8027%203.3535%2011.1907%206.00648%2013.899L10.8086%208.99669L6.00648%204.09442Z'%20fill='white'/%3e%3cpath%20d='M2.68973%2015.6294C0.955677%2013.8592%200%2011.5041%200%208.9989C0%206.49369%200.955677%204.14078%202.68973%202.36837L3.99351%203.69933C1.13081%206.62171%201.13081%2011.3761%203.99351%2014.2985L2.68973%2015.6294Z'%20fill='%23706F6F'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 18px 18px;
	text-transform: uppercase;
}

/* Pull the form's bottom edge up so there's less space under the button. */
.single-form-inner {
	margin-bottom: -20px;
}

/* ---- News archive (/news/) ---- */
/* Space between the cards grid and the pagination. Row dividers come from
   main.css (.news-row-single .news-box:before / .col:after). */
.archive .pagination {
	margin-top: 45px;
}

/* Search field: clickable submit over the magnifier icon (also makes Enter
   submit, since the form now has a submit button). */
.archive-search {
	position: relative;
}
.archive-search-btn {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 52px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	outline: none;
	cursor: pointer;
}

/* Bigger consent checkbox in the download form (per design). */
.single-form-inner .alfarm-consent input[type="checkbox"] {
	flex-basis: 34px;
	width: 34px;
	height: 34px;
	border-radius: 0 3px 0 3px;
}
.single-form-inner .alfarm-consent input[type="checkbox"]:checked::after {
	left: 12px;
	top: 5px;
	width: 9px;
	height: 17px;
	border-width: 0 3px 3px 0;
}
.single-form-inner .alfarm-consent .consent-text {
	font-size: 9px;
}
