/*
 * Header adjustments that apply on every page.
 *
 * The homepage loads the full template stylesheet and the inner pages load the
 * extracted header stylesheet; these corrections belong to both, so they live
 * in one file that each of them pulls in. Keeping a single copy is the point —
 * when the two drifted apart the inner-page header lost its logo sizing and
 * its call-to-action button.
 */

.main-header__logo img {
	max-width: 170px;
	height: auto;
}

.footer-widget__logo img,
.mobile-nav__content .logo-box img {
	max-width: 160px;
	height: auto;
}

/* ------------------------------------------------------ seven menu items -- */

@media (min-width: 1200px) and (max-width: 1500px) {
	.main-menu__list > li {
		padding-left: 16px;
		padding-right: 16px;
	}
}
/*
 * Seven menu items with DigiCow's longer labels overflowed the menu row, which
 * pushed the search and the call to action onto a line of their own. Tightening
 * the item spacing puts the row back together and lets the primary button show
 * from 1200px up, where the template would otherwise hide it until 1700px.
 */
@media (min-width: 1200px) {
	.main-menu__list > li {
		padding-left: 14px;
		padding-right: 14px;
	}

	.main-menu__list > li > a {
		font-size: 15px;
	}

	.main-menu__btn-box .thm-btn {
		padding: 13px 28px;
		font-size: 14px;
	}
}
/* Below 1280px the row cannot hold the button as well, as in the template. */
@media (min-width: 1280px) {
	.main-menu__btn-box {
		display: block;
	}
}
@media (min-width: 1600px) {
	.main-menu__list > li {
		padding-left: 20px;
		padding-right: 20px;
	}

	.main-menu__list > li > a {
		font-size: 16px;
	}
}
/*
 * The template reserves a 260px gap to the right of the menu, which its seven
 * short labels leave room for. DigiCow's menu is wider, so between 1200px and
 * 1700px the gap pushed the search and button onto a second row.
 */
@media (min-width: 1200px) and (max-width: 1699px) {
	.main-menu__right {
		margin-left: 0;
	}

	.main-menu__list > li {
		padding-left: 11px;
		padding-right: 11px;
	}

	.main-menu__list > li > a {
		font-size: 14px;
	}
}
/* Narrow desktops: tighten further so the row still holds together. */
@media (min-width: 1200px) and (max-width: 1365px) {
	.main-menu__list > li {
		padding-left: 8px;
		padding-right: 8px;
	}

	.main-menu__list > li > a {
		font-size: 13.5px;
	}

	.main-menu__btn-box .thm-btn {
		padding: 12px 20px;
		font-size: 13px;
	}

	.main-menu__search-box {
		margin-right: 6px;
	}
}
/* Keep the search icon clear of the last menu item. */
@media (min-width: 1366px) and (max-width: 1699px) {
	.main-menu__right {
		margin-left: 24px;
	}
}

/* =========================================================== preloader == */

/*
 * The page-to-page transition, after the Agrikol template: a full-bleed
 * overlay with the logo flipping in place, which fades out once the page has
 * loaded. Lives here rather than in either page's own stylesheet because it
 * has to behave identically on the homepage and on every theme-rendered page.
 */

.dc-preloader {
	position: fixed;
	inset: 0;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #ffffff;
	opacity: 1;
	transition: opacity 400ms ease;

	/*
	 * Failsafe. If the script never runs — a JavaScript error anywhere earlier
	 * on the page would do it — this still clears the overlay, so a visitor
	 * can never be left staring at a white screen.
	 */
	animation: dc-preloader-failsafe 1ms linear 8s forwards;
}

.dc-preloader--out {
	opacity: 0;
	pointer-events: none;
}

.dc-preloader__image {
	width: 176px;
	max-width: 45vw;
	height: auto;
	animation: dc-flip-in-y 2s ease-in-out infinite both;
	backface-visibility: visible !important;
}

@keyframes dc-flip-in-y {
	0% {
		transform: perspective(400px) rotateY(0deg);
		opacity: 1;
	}
	40% {
		transform: perspective(400px) rotateY(-190deg);
		opacity: 1;
	}
	60% {
		transform: perspective(400px) rotateY(-170deg);
		opacity: 1;
	}
	80% {
		transform: perspective(400px) rotateY(-350deg);
	}
	100% {
		transform: perspective(400px) rotateY(-360deg);
		opacity: 1;
	}
}

@keyframes dc-preloader-failsafe {
	to {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

/*
 * Reduced motion: no flip, and the overlay goes almost immediately. Someone
 * who has asked the browser to stop animating things should not be made to
 * watch a spinning logo on every page.
 */
@media (prefers-reduced-motion: reduce) {
	.dc-preloader {
		animation: dc-preloader-failsafe 1ms linear 300ms forwards;
		transition: none;
	}

	.dc-preloader__image {
		animation: none;
	}
}

/* ================================================ header on a single row == */

/*
 * The contact bar belongs beside the logo, not stacked under it.
 *
 * .main-header__menu-box is a plain block, so as a flex item it claims its
 * full content width and wraps onto its own line — which pushed the navy
 * contact bar below the logo and left a band of dead space to the logo's
 * right. Letting it flex into whatever room is left puts the contact bar up
 * on the logo's row, where the template intends it.
 */
@media (min-width: 1200px) {
	.main-header__wrapper-inner {
		flex-wrap: nowrap;
		align-items: center;
	}

	.main-header__logo {
		flex: 0 0 auto;
		margin-right: 26px;
	}

	.main-header__menu-box {
		flex: 1 1 0;
		min-width: 0;
	}

	/* The bar no longer spans the full width, so it needs less inner padding. */
	.main-header__menu-box-top {
		padding-left: 26px;
		padding-right: 26px;
	}
}

/*
 * Sharing the row leaves the nav less width than it had stacked, so the menu
 * and the logo both come in a little to keep search and the button on the
 * same line as the links.
 */
@media (min-width: 1200px) and (max-width: 1699px) {
	.main-header__logo img {
		max-width: 146px;
	}

	.main-header__logo {
		margin-right: 18px;
	}

	.main-menu__list > li {
		padding-left: 7px;
		padding-right: 7px;
	}

	.main-menu__list > li > a {
		font-size: 13px;
	}

	.main-menu__btn-box .thm-btn {
		padding: 11px 18px;
		font-size: 12.5px;
	}

	.main-header__menu-box-top {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/*
 * With the logo taking part of the row, the nav has ~1150px to work with at
 * 1440. The template indents the menu 40px and reserves a further 260px gap
 * before the search and button; together that is more than the remaining
 * space, so the actions wrapped onto a third line. Both are trimmed here, for
 * every desktop width rather than a band, so the row holds together whatever
 * the viewport.
 */
@media (min-width: 1200px) {
	.main-menu__wrapper-inner {
		padding-left: 12px;
	}

	.main-menu__right {
		margin-left: 0;
	}

	.main-menu__list {
		flex-wrap: nowrap;
	}

	.main-menu__list > li {
		white-space: nowrap;
	}
}

@media (min-width: 1200px) and (max-width: 1699px) {
	.main-menu__list > li {
		padding-left: 6px;
		padding-right: 6px;
	}
}

/*
 * 1280–1365 is the tightest desktop case: the call-to-action appears at 1280
 * but the viewport is still narrow, leaving the row about 85px short. The
 * links and the button both give up a little rather than the actions dropping
 * to a line of their own.
 */
@media (min-width: 1280px) and (max-width: 1365px) {
	.main-menu__list > li {
		padding-left: 3px;
		padding-right: 3px;
	}

	.main-menu__list > li > a {
		font-size: 12.5px;
	}

	.main-menu__btn-box .thm-btn {
		padding: 10px 14px;
		font-size: 11.5px;
	}

	.main-menu__search-box {
		margin-right: 2px;
	}

	.main-header__logo img {
		max-width: 128px;
	}
}

@media (min-width: 1280px) and (max-width: 1365px) {
	.main-menu__wrapper-inner {
		padding-left: 2px;
	}
}

/*
 * Breathing room between the last link and the search icon. The template's
 * divider sits immediately after the menu, and with the row this tight it
 * landed on top of "Contact". The logo gives up a few pixels to pay for it.
 */
@media (min-width: 1366px) and (max-width: 1699px) {
	.main-header__logo img {
		max-width: 132px;
	}

	.main-menu__right {
		margin-left: 14px;
	}
}

@media (min-width: 1280px) and (max-width: 1365px) {
	.main-header__logo img {
		max-width: 112px;
	}

	.main-menu__right {
		margin-left: 12px;
	}
}

@media (min-width: 1700px) {
	.main-menu__right {
		margin-left: 24px;
	}
}

/* ================================================================ footer == */

/*
 * Footer corrections shared by the homepage and the theme-rendered pages:
 * Contact Form 7 prints its own wrappers for the newsletter field, and the
 * news thumbnails come from the media library at assorted sizes.
 */

.footer-widget__news-img img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
}

/* Footer newsletter: one row, round field, arrow button. */
.dc-cf7-inline .bt_bb_cf7_row {
	position: relative;
}

.dc-cf7-inline input[type="email"] {
	width: 100%;
	height: 60px;
	background-color: var(--agrion-white);
	border: none;
	outline: none;
	font-size: 14px;
	color: var(--agrion-gray);
	padding-left: 30px;
	padding-right: 70px;
	border-radius: 40px;
	font-family: var(--agrion-font);
}

.dc-cf7-inline .bt_bb_cf7_button {
	position: absolute;
	top: 5px;
	right: 5px;
}

.dc-cf7-inline input[type="submit"] {
	width: 50px;
	height: 50px;
	border: none;
	border-radius: 50%;
	background-color: var(--agrion-primary);
	color: var(--agrion-black);
	font-size: 0;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23011d52' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
	transition: all 400ms ease;
}

.dc-cf7-inline input[type="submit"]:hover {
	background-color: var(--agrion-white);
}

.dc-cf7-inline .wpcf7-spinner {
	display: none;
}

.dc-cf7-inline .wpcf7-response-output {
	color: var(--agrion-white);
	font-size: 13px;
	margin: 14px 0 0;
	border-radius: 8px;
}

.dc-cf7-inline .wpcf7-not-valid-tip {
	color: var(--agrion-primary);
	font-size: 13px;
	margin-top: 8px;
}


/*
 * On theme-rendered pages the Farmingtech stylesheet styles every Contact
 * Form 7 control it can reach (large pill buttons, its own field borders), and
 * it out-ranks the plain selectors above. These restate the newsletter field
 * with enough weight to hold on those pages; on the homepage they change
 * nothing.
 */
.dc-site-footer .dc-cf7-inline .wpcf7-form input[type="email"] {
	width: 100% !important;
	height: 60px !important;
	margin: 0 !important;
	background-color: var(--agrion-white) !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--agrion-gray) !important;
	font-family: var(--agrion-font) !important;
	font-size: 14px !important;
	line-height: 60px !important;
	padding: 0 70px 0 30px !important;
	border-radius: 40px !important;
}

.dc-site-footer .dc-cf7-inline .wpcf7-form input[type="submit"] {
	width: 50px !important;
	min-width: 0 !important;
	height: 50px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	background-color: var(--agrion-primary) !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: 0 !important;
}

.dc-site-footer .dc-cf7-inline .wpcf7-form input[type="submit"]:hover {
	background-color: var(--agrion-white) !important;
}

.dc-site-footer .dc-cf7-inline .bt_bb_cf7_row,
.dc-site-footer .dc-cf7-inline .bt_bb_cf7_element,
.dc-site-footer .dc-cf7-inline .wpcf7-form-control-wrap {
	display: block;
	margin: 0;
	padding: 0;
	width: 100%;
	float: none;
}

.dc-site-footer .dc-cf7-inline .bt_bb_cf7_button {
	width: auto;
	margin: 0;
	padding: 0;
}

.dc-site-footer .dc-cf7-inline .wpcf7-form {
	margin: 0;
}

/* The theme clears the button's background image; the arrow is that image. */
.dc-site-footer .dc-cf7-inline .wpcf7-form input[type="submit"] {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23011d52' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 20px 20px !important;
}

/*
 * Contact Form 7's loading indicator sits after the button and reserved 20px
 * beside it, which pushed the button in from the edge of the field on the
 * homepage only. The form's own response line still reports the result.
 */
.dc-cf7-inline .ajax-loader,
.dc-cf7-inline .wpcf7-spinner {
	display: none !important;
}

/* ======================================================= page headline banner == */

/*
 * Compact inner-page headline banner.
 *
 * The Farmingtech theme defaults to a massive 7.5em (120px) top and bottom
 * padding on .btPageHeadline .bt_bb_port, which takes up ~370px of vertical
 * space before any page content is visible. Tightening the padding and
 * proportional headline sizing creates a clean, modern, and compact banner
 * across all inner pages on desktop, tablet, and mobile.
 */

.btPageHeadline .bt_bb_port {
	padding-top: 48px !important;
	padding-bottom: 48px !important;
}

.btPageHeadline .bt_bb_headline h1 {
	font-size: 38px !important;
	line-height: 44px !important;
}

.btPageHeadline .bt_bb_headline .bt_bb_headline_superheadline {
	font-size: 15px !important;
	margin-bottom: 6px !important;
}

.btPageHeadline .bt_bb_dash_bottom.bt_bb_headline .bt_bb_headline_content:after {
	width: 50px !important;
	margin-top: 8px !important;
}

@media (max-width: 991px) {
	.btPageHeadline .bt_bb_port {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}

	.btPageHeadline .bt_bb_headline h1 {
		font-size: 32px !important;
		line-height: 38px !important;
	}
}

@media (max-width: 767px) {
	.btPageHeadline .bt_bb_port {
		padding-top: 32px !important;
		padding-bottom: 32px !important;
	}

	.btPageHeadline .bt_bb_headline h1 {
		font-size: 26px !important;
		line-height: 32px !important;
	}

	.btPageHeadline .bt_bb_headline .bt_bb_headline_superheadline {
		font-size: 13px !important;
		margin-bottom: 4px !important;
	}

	.btPageHeadline .bt_bb_dash_bottom.bt_bb_headline .bt_bb_headline_content:after {
		width: 40px !important;
		margin-top: 6px !important;
	}
}


/* ============================================== one-row header (v1.1) ==== */

/*
 * Logo | menu | search | contact ticker | Download App, on a single row.
 *
 * Everything here is prefixed with .dc-site-header or .stricky-header so it
 * out-ranks the earlier two-row adjustments above without having to unpick
 * them, and so the sticky copy of the menu behaves the same way.
 */

@media (min-width: 1200px) {
	.dc-site-header .main-header__menu-box {
		padding: 0;
	}

	.dc-site-header .main-menu__wrapper-inner,
	.stricky-header .main-menu__wrapper-inner {
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: center;
		padding-left: 0;
	}

	.dc-site-header .main-menu__left,
	.stricky-header .main-menu__left {
		flex: 0 0 auto;
	}

	/* Search and ticker take whatever is left after the menu. */
	.dc-site-header .main-menu__right,
	.stricky-header .main-menu__right {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		align-items: center;
		gap: 18px;
		margin-left: 26px;
	}

	.dc-site-header .main-menu__search-cart-btn-box,
	.stricky-header .main-menu__search-cart-btn-box {
		flex: 0 0 auto;
	}

	/* The menu, drawn in towards the search. */
	.dc-site-header .main-menu .main-menu__list > li,
	.stricky-header .main-menu__list > li {
		padding-left: 0;
		padding-right: 0;
	}

	.dc-site-header .main-menu .main-menu__list > li + li,
	.stricky-header .main-menu__list > li + li {
		margin-left: 26px;
	}

	.dc-site-header .main-menu .main-menu__list > li > a,
	.stricky-header .main-menu__list > li > a {
		font-size: 15px;
	}

	.dc-site-header .main-header__logo img {
		max-width: 140px;
	}

	.dc-site-header .main-header__logo {
		margin-right: 34px;
	}

	.dc-header-app {
		flex: 0 0 auto;
		margin-left: 22px;
	}
}

@media (min-width: 1200px) and (max-width: 1365px) {
	.dc-site-header .main-menu .main-menu__list > li + li,
	.stricky-header .main-menu__list > li + li {
		margin-left: 18px;
	}

	.dc-site-header .main-menu .main-menu__list > li > a,
	.stricky-header .main-menu__list > li > a {
		font-size: 14px;
	}

	.dc-site-header .main-header__logo img {
		max-width: 118px;
	}

	.dc-site-header .main-header__logo {
		margin-right: 22px;
	}

	.dc-site-header .main-menu__right,
	.stricky-header .main-menu__right {
		margin-left: 18px;
		gap: 12px;
	}

	.dc-header-app {
		margin-left: 14px;
	}
}

/* Phones and tablets keep the hamburger; the app link lives in the drawer. */
@media (max-width: 1199px) {
	.dc-ticker,
	.dc-header-app {
		display: none;
	}
}

/* ------------------------------------------------------- Download App -- */

.dc-header-app .dc-app-btn {
	white-space: nowrap;
	padding-top: 13px;
	padding-bottom: 13px;
	font-size: 14px;
}

@media (min-width: 1200px) and (max-width: 1365px) {
	.dc-header-app .dc-app-btn {
		padding-left: 18px;
		padding-right: 8px;
		font-size: 13px;
	}
}

/* --------------------------------------------------------- the ticker -- */

/*
 * The navy contact bar, now a broadcast-style strip. The track holds the
 * contents twice and slides left by exactly one copy, so it loops without a
 * seam. Hovering or tabbing into it stops the motion so a link can be hit.
 * The edges fade so items slide in and out rather than being cut off.
 */
.dc-ticker {
	position: relative;
	flex: 1 1 auto;
	min-width: 150px;
	height: 45px;
	display: flex;
	align-items: center;
	overflow: hidden;
	border-radius: 22.5px;
	background-color: var(--agrion-black);
	padding: 0 16px;
}

/*
 * The fade lives on this static inner window, not on the pill: masking the
 * pill itself dissolved its rounded ends into the white header.
 */
.dc-ticker__viewport {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	display: flex;
	align-items: center;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.dc-ticker__track {
	display: flex;
	flex: none;
	width: max-content;
	animation: dc-ticker-scroll 22s linear infinite;
	will-change: transform;
}

.dc-ticker:hover .dc-ticker__track,
.dc-ticker:focus-within .dc-ticker__track {
	animation-play-state: paused;
}

.dc-ticker__group {
	display: flex;
	align-items: center;
	flex: none;
	gap: 22px;
	padding-right: 22px;
}

.dc-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	white-space: nowrap;
	font-family: var(--agrion-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: var(--agrion-white);
}

.dc-ticker__item i {
	color: var(--agrion-primary);
	font-size: 14px;
	line-height: 1;
}

.dc-ticker__item a,
.dc-ticker__item a:visited {
	color: var(--agrion-white);
	text-decoration: none;
	transition: color 200ms ease;
}

.dc-ticker__item a:hover,
.dc-ticker__item a:focus {
	color: var(--agrion-primary);
}

.dc-ticker__item--social a i {
	color: var(--agrion-white);
	font-size: 15px;
	transition: color 200ms ease;
}

.dc-ticker__item--social a:hover i,
.dc-ticker__item--social a:focus i {
	color: var(--agrion-primary);
}

.dc-ticker__sep {
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: var(--agrion-primary);
	opacity: 0.7;
}

@keyframes dc-ticker-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* No motion for anyone who has asked for none: the first copy, held still. */
@media (prefers-reduced-motion: reduce) {
	.dc-ticker__track {
		animation: none;
	}
}

/*
 * The template draws a 1px divider 30px to the left of the search icon. With
 * the menu drawn in close, that line fell across the last letter of
 * "Contact"; the ticker pill now does the job of separating the two.
 */
.dc-site-header .main-menu__search::after,
.stricky-header .main-menu__search::after {
	display: none;
}

/* ======================================== Download App: call-button motion == */

/*
 * The template's call button sat inside two concentric rings that breathed
 * in and out on different clocks (3s and 5s), so their rhythm never quite
 * lined up and the button always looked alive. The same two rings are drawn
 * here around the button's yellow Play circle.
 *
 * They hang off the wrapper, not the button, because the button clips its
 * own overflow. They sit behind it, so only the arcs above, below and to the
 * right of the circle show, the rest tucked behind the pill. --dc-ring-x is
 * the circle's centre measured from the wrapper's right edge: the button's
 * right padding plus the circle's 20px radius.
 */
.dc-header-app {
	position: relative;
	--dc-ring-x: 32px;
}

.dc-header-app .dc-app-btn {
	position: relative;
	z-index: 1;
}

.dc-header-app::before,
.dc-header-app::after {
	content: '';
	position: absolute;
	top: 50%;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

/*
 * Sized to the template's proportions around a 40px icon (75px and 122px),
 * pulled in slightly so the outer ring stays within a few pixels of the
 * 91px header.
 */
.dc-header-app::before {
	width: 80px;
	height: 80px;
	margin-top: -40px;
	right: calc(var(--dc-ring-x) - 40px);
	border: 1px solid rgba(var(--agrion-base-rgb), 0.38);
	animation: dc-ring-breathe 3s ease-in infinite;
}

.dc-header-app::after {
	width: 108px;
	height: 108px;
	margin-top: -54px;
	right: calc(var(--dc-ring-x) - 54px);
	border: 1px solid rgba(var(--agrion-base-rgb), 0.24);
	animation: dc-ring-breathe 5s ease-in-out infinite;
}

/* The template's own curve: rest small, swell, settle, swell. */
@keyframes dc-ring-breathe {
	0%, 100% { transform: scale(0.85); }
	25%, 75% { transform: scale(1); }
	50%      { transform: scale(1.1); }
}

@media (min-width: 1200px) and (max-width: 1365px) {
	.dc-header-app {
		--dc-ring-x: 28px; /* this band trims the button's right padding to 8px */
	}
}

/*
 * The hover tag, as the call button revealed its number. The header is too
 * short to hold it above the button as the template did, so it drops below.
 */
.dc-app-tip {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	z-index: 5;
	white-space: nowrap;
	padding: 6px 14px;
	border-radius: 5px;
	background-color: var(--agrion-base);
	color: var(--agrion-white);
	font-family: var(--agrion-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(-6px);
	transition: opacity 400ms ease, transform 400ms ease, visibility 400ms;
	pointer-events: none;
}

.dc-app-tip::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	margin-left: -6px;
	border: 6px solid transparent;
	border-bottom-color: var(--agrion-base);
}

.dc-header-app:hover .dc-app-tip,
.dc-header-app:focus-within .dc-app-tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.dc-header-app::before,
	.dc-header-app::after {
		animation: none;
	}

	.dc-app-tip {
		transition: none;
	}
}

@media (max-width: 1199px) {
	.dc-header-app::before,
	.dc-header-app::after {
		display: none;
	}
}

/*
 * At 1200-1280px the outer ring's widest swell reaches a few pixels past the
 * scrollbar. The homepage hides that inside the template's clipping wrapper;
 * theme pages have none, so they grew a horizontal scrollbar. Clip the header
 * sideways only: overflow-x: clip (unlike hidden) leaves the vertical axis
 * visible, so the rings still swell above and below and the hover tag still
 * drops beneath the button.
 */
.dc-site-header {
	overflow-x: clip;
}

/* =========================================== six tabs + Partner with us == */

/*
 * The brief asks for a persistent "Partner with us" action beside the six
 * section tabs. It is drawn as an outline pill so it reads as secondary to
 * the solid Download App button.
 */
.dc-partner-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	height: 45px;
	padding: 0 20px;
	border: 2px solid var(--agrion-base);
	border-radius: 999px;
	background: var(--agrion-white);
	color: var(--agrion-base);
	font-family: var(--agrion-font);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color .25s ease, color .25s ease;
}

.dc-partner-btn:hover,
.dc-partner-btn:focus {
	background: var(--agrion-base);
	color: var(--agrion-white);
}

@media (max-width: 1199px) {
	.dc-partner-btn { display: none; }
}

/* Dropdown panels: a little wider for the longer sub-section names. */
.dc-site-header .main-menu .main-menu__list > li > ul,
.stricky-header .main-menu__list > li > ul {
	min-width: 250px;
}

/*
 * Fitting six tabs, search, the ticker and two buttons on one row.
 *
 * Below 1600px the two longest tabs show short labels (the full names stay in
 * the page titles and dropdowns, and screen readers still hear the full name
 * because the short one is aria-hidden and the long one is only visually
 * hidden). Spacing tightens band by band, the ticker narrows, and between
 * 1200 and 1279px it steps aside altogether.
 */
.dc-tab-short { display: none; }

@media (min-width: 1200px) and (max-width: 1599px) {
	.dc-tab-long {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.dc-tab-short { display: inline; }

	.dc-site-header .main-menu .main-menu__list > li + li,
	.stricky-header .main-menu__list > li + li {
		margin-left: 20px;
	}

	.dc-site-header .main-menu .main-menu__list > li > a,
	.stricky-header .main-menu__list > li > a {
		font-size: 14px;
	}

	.dc-ticker { min-width: 120px; }
}

@media (min-width: 1200px) and (max-width: 1365px) {
	.dc-site-header .main-menu .main-menu__list > li + li,
	.stricky-header .main-menu__list > li + li {
		margin-left: 15px;
	}

	.dc-site-header .main-menu .main-menu__list > li > a,
	.stricky-header .main-menu__list > li > a {
		font-size: 13.5px;
	}

	.dc-partner-btn { padding: 0 14px; font-size: 13px; }
}

/* (1200-1279px used to hide the ticker to make room for a Partner button; that button is now a menu item.) */

/* Full labels again on the widest screens, with the original spacing. */
@media (min-width: 1600px) {
	.dc-site-header .main-menu .main-menu__list > li + li,
	.stricky-header .main-menu__list > li + li {
		margin-left: 24px;
	}
}

/* 1366-1599: a slightly smaller logo and tighter tabs leave the ticker room to read. */
@media (min-width: 1366px) and (max-width: 1599px) {
	.dc-site-header .main-header__logo img { max-width: 124px; }
	.dc-site-header .main-header__logo { margin-right: 24px; }

	.dc-site-header .main-menu .main-menu__list > li + li,
	.stricky-header .main-menu__list > li + li {
		margin-left: 18px;
	}
}

/* ================================================ tablet header (768-1199) == */

/*
 * Between phone and desktop the header wrapped onto three rows (logo, menu
 * button, then a search box stretched to 1,259px by a desktop rule) and stood
 * 348px tall. One row here: logo on the left, search and the menu button on
 * the right.
 */
@media (max-width: 1199px) {
	.dc-site-header .main-header__wrapper-inner {
		flex-wrap: nowrap;
		align-items: center;
	}

	.dc-site-header .main-header__menu-box {
		flex: 1 1 auto;
		min-width: 0;
		padding: 0;
	}

	.dc-site-header .main-menu__wrapper-inner {
		flex-wrap: nowrap;
		justify-content: flex-end;
		align-items: center;
		padding-left: 0;
	}

	.dc-site-header .main-menu__right {
		flex: 0 0 auto;
		width: auto;
		margin-left: 0;
		order: -1;
	}

	.dc-site-header .main-menu__search-cart-btn-box { width: auto; }
	.dc-site-header .main-menu__search-box { margin-right: 18px; padding: 0; }
	.dc-site-header .main-header__logo img { max-width: 150px; }
}

/*
 * Below 1200px the ticker and the Download App button step aside (the drawer
 * carries the contact details and the app link). The earlier rule saying so
 * lost to the ticker's own `display: flex`, declared later in this file at
 * the same specificity, so the ticker reappeared on tablets over the logo.
 */
@media (max-width: 1199px) {
	.dc-site-header .dc-ticker,
	.dc-site-header .dc-header-app,
	.stricky-header .dc-ticker {
		display: none;
	}
}

/* Footer logo: a little larger than the drawer's, so it reads at a glance. */
.dc-site-footer .footer-widget__logo img { width: 200px; max-width: 100%; height: auto; }

/* Emoji pasted from Twitter/X arrive as images from twimg.com with no size of
   their own, and fill the page. Keep them text-sized, as Twitter does. */
img[src*="twimg.com/emoji"],
img.emoji {
	display: inline !important;
	width: 1.1em !important;
	height: 1.1em !important;
	margin: 0 .05em !important;
	vertical-align: -0.15em;
	border: 0;
	box-shadow: none;
}
