/*
Theme Name: Mondo Redux: Arengukoostöö akadeemia
Theme URI: https://maailmakool.ee/devcoop/
Description: Arengukoostöö akadeemia web course (maailmakool.ee/devcoop/), a child of Mondo Redux.
Template: mondo-redux
Version: 2026
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Author: MTÜ Mondo
*/

/* The course's own rules only: the parent's style.css loads before this file (functions.php), so the pages get
   the maailmakool look first and this sheet adds the course's colours, fonts and blocks.

   Editors give WPBakery rows and text blocks these classes (Extra class name):
     row         devcoop-banner      the page's banner (a single image): no gaps, blue to both edges
                 + devcoop-banner-crop   on phones: its title and lecturer as two readable crops (Banner section)
     row         devcoop-video       a vc_video in the text column on a grey band (phones: screen-wide, no band)
     row         devcoop-bg-grey     grey band reaching both screen edges, content stays in the column
     row         devcoop-bg-blue     the same in blue, white text
     text block  devcoop-lead        large bold blue intro text
     text block  devcoop-box         blue-outlined box ("Lisamaterjalid")
     text block  devcoop-nav         the Eelmine/Järgmine button pair
     separator   devcoop-hr          blue rule
     link        button devcoop-btn / button devcoop-btn-grey   blue / grey button in a text block, standard size
     link        + devcoop-btn-large                            the same, large
   Headings need no class: h2 is the blue Bebas title, h3 the blue bold subheading.
     h2          devcoop-h2-bold     the same title in Bebas Neue Bold, the banners' type (the front page's welcome) */

/* Design tokens: the colours, fonts and widths in one place (to be replaced by the course's final ones). */
:root {
	--devcoop-blue: #2B71B7;
	--devcoop-grey: #EBEBEB;
	--devcoop-purple: #7F4399;
	--devcoop-text: #000;
	--devcoop-text-on-blue: #FFF;
	--devcoop-link: var(--devcoop-blue);
	--devcoop-menu-active: var(--devcoop-blue);
	--devcoop-menu-hover: #BBB;
	--devcoop-menu-item-pad: 15px;
	--devcoop-submenu-width: 30rem;
	--devcoop-banner-bg: var(--devcoop-blue);
	/* the video's band */
	--devcoop-video-bg: var(--devcoop-grey);
	--devcoop-button-bg: var(--devcoop-blue);
	--devcoop-button-bg-hover: #215A93;
	--devcoop-button-text: #FFF;
	--devcoop-button-grey-bg: var(--devcoop-grey);
	--devcoop-button-grey-bg-hover: #D9D9D9;
	--devcoop-button-grey-text: #000;
	/* button sizes: the parent's standard .button, and devcoop-btn-large (the sketch's) */
	--devcoop-button-size: 0.9rem;
	--devcoop-button-padding: 0.85em 1em;
	--devcoop-button-large-size: 1.25rem;
	--devcoop-button-large-padding: 0.75em 1.25em;
	/* every text size of the course is multiplied by this: on phones the body text (1.125rem) comes down to the 1rem
	   of maailmakool and mondo, and the rest with it. Buttons keep the parent's size, which is the same everywhere. */
	--devcoop-text-scale: 1;

	--devcoop-heading-font: 'Bebas Neue Regular', 'Bebas Neue Fallback', 'Arial Narrow', sans-serif;
	--devcoop-body-font: "Raleway Mondo Regular", Helvetica, Roboto, Arial, sans-serif;
	--devcoop-bold-font: "Raleway Mondo Bold", Helvetica, Roboto, Arial, sans-serif;

	/* the text column (rows include their 2.1875rem side gutters), and the widest a banner or video gets */
	--devcoop-content-max: 67rem;
	--devcoop-bleed-max: 1440px;
	/* the banner's shown part on desktop: its 2880x1015 image less 40px top and bottom at 1440px wide */
	--devcoop-banner-ratio: 1440 / 427.5;
	--devcoop-gutter: 2.1875rem;
	/* header: the bar's edge to the Mondo logo, and Mondo to ESTDEV */
	--devcoop-logo-edge: 30px;
	--devcoop-logo-gap: 40px;
	/* ... and above and below them, which sets their height in the 77px bar */
	--devcoop-logo-vgap: 17px;
	--devcoop-logo-size: calc(77px - 2 * var(--devcoop-logo-vgap));
	/* the one vertical rhythm of the content: inside a coloured band above and below its content, from a band or
	   banner to the content after it, between one block of content and the next (text, rule, button), and from the
	   last one to the footer line */
	--devcoop-section-gap: 3.75rem;
}

body.devcoop {
	background: #FFF;
	color: var(--devcoop-text);
	font-family: var(--devcoop-body-font);
}

/* =========================================================================
   Header: logos | menu, to the right | search
   ========================================================================= */
.devcoop .site-header .upper-menu {
	box-shadow: none;
}
/* the logos' height: the 77px bar less --devcoop-logo-vgap above and below (the parent's 60px box left 8.5px) */
.devcoop .site-header .logo {
	width: var(--devcoop-logo-size);
	height: var(--devcoop-logo-size);
}
.devcoop .site-header .logo img {
	width: 100%;
	height: 100%;
}
.devcoop .devcoop-partner-logo img {
	display: block;
	width: auto;
	height: var(--devcoop-logo-size);
}
@media screen and (min-width: 64em) {
	/* the bar's own 15px padding plus the rest of --devcoop-logo-edge, on both ends: the Mondo logo on the left, the
	   search icon on the right */
	/* the one link holds both logos side by side */
	.devcoop .site-header .logo-link {
		display: flex;
		align-items: center;
		margin-left: calc(var(--devcoop-logo-edge) - 15px);
	}
	/* the search icon: as far from the menu's last label as ESTDEV is from Mondo (the label's link has
	   --devcoop-menu-item-pad of its own on the right) */
	.devcoop #header_icons {
		margin-left: calc(var(--devcoop-logo-gap) - var(--devcoop-menu-item-pad));
		margin-right: calc(var(--devcoop-logo-edge) - 15px);
	}
	.devcoop .devcoop-partner-logo {
		flex: 0 0 auto;
		align-self: center;
		margin-left: var(--devcoop-logo-gap);
	}
	.devcoop .site-header nav > ul.menu {
		justify-content: flex-end;
	}
	.devcoop .site-header nav > ul.menu > li:hover,
	.devcoop .site-header ul .active {
		background: transparent;
	}
	/* the section you are in: a blue bar under the label and its chevron (one piece: drawn by ::before across the
	   link's content box, not text-decoration, which skips the chevron's inline-block), no bold */
	.devcoop .site-header nav > ul.menu > li:not(.btn-donate) > a {
		position: relative;
		font-weight: 400;
		text-transform: uppercase;
		padding: 0 var(--devcoop-menu-item-pad);
	}
	.devcoop .site-header nav > ul.menu > li > a::before {
		content: '';
		position: absolute;
		left: var(--devcoop-menu-item-pad);
		right: var(--devcoop-menu-item-pad);
		bottom: 20px;
		height: 3px;
		background: transparent;
		transition: background-color 0.2s;
	}
	.devcoop .site-header nav > ul.menu > li > a::after {
		margin-left: 0.25em;
	}
	.devcoop .site-header nav > ul.menu > li:hover > a::before {
		background: var(--devcoop-menu-hover);
	}
	.devcoop .site-header nav > ul.menu > li.current-menu-item > a,
	.devcoop .site-header nav > ul.menu > li.current-menu-parent > a,
	.devcoop .site-header nav > ul.menu > li.current-menu-ancestor > a,
	.devcoop .site-header nav > ul.menu > li.current_page_item > a,
	.devcoop .site-header nav > ul.menu > li.current-page-ancestor > a {
		font-weight: 400;
	}
	.devcoop .site-header nav > ul.menu > li.current-menu-item > a::before,
	.devcoop .site-header nav > ul.menu > li.current-menu-parent > a::before,
	.devcoop .site-header nav > ul.menu > li.current-menu-ancestor > a::before,
	.devcoop .site-header nav > ul.menu > li.current_page_item > a::before,
	.devcoop .site-header nav > ul.menu > li.current-page-ancestor > a::before {
		background: var(--devcoop-menu-active);
	}

	/* dropdowns (the sketch's lecture lists): a wide flat white box under the item, numbered, left-aligned; the
	   page you are on gets the blue line, the hovered one the grey line of the bar. The dropdowns of the last three
	   items (Lühiloengud) open centred under the item. */
	/* a heading item (no href: functions.php) opens its dropdown on hover as the others do, and on keyboard focus */
	.devcoop .site-header nav > ul.menu > li > a:not([href]) {
		cursor: pointer;
	}
	.devcoop .site-header nav > ul.menu > li:focus-within > ul.sub-menu {
		display: block;
	}
	.devcoop .site-header nav > ul.menu > li > ul.sub-menu {
		width: var(--devcoop-submenu-width);
		left: 0;
		margin: 0;
		padding: 0.9rem 1.25rem 0.9rem 2.6rem;
		box-shadow: none;
		list-style: decimal;
		text-align: left;
	}
	.devcoop .site-header nav > ul.menu > li:nth-last-child(-n+3) > ul.sub-menu {
		left: 50%;
		margin-left: calc(var(--devcoop-submenu-width) / -2);
	}
	.devcoop .site-header nav > ul.menu > li > ul.sub-menu > li {
		display: list-item;
		text-align: left;
		padding: 0 0 0.45em 0.2em;
	}
	.devcoop .site-header nav > ul.menu > li > ul.sub-menu > li:last-child {
		padding-bottom: 0;
	}
	.devcoop .site-header nav > ul.menu > li > ul.sub-menu > li > a,
	.devcoop .site-header nav > ul.menu > li > ul.sub-menu > li > a:hover {
		display: inline;
		padding: 0;
		border-bottom: 0;
		font-weight: 400;
		text-decoration: underline 2px transparent;
		text-underline-offset: 4px;
	}
	/* hover grey as in the bar; the page you are on stays blue, hovered or not */
	.devcoop .site-header nav > ul.menu > li > ul.sub-menu > li > a:hover {
		text-decoration-color: var(--devcoop-menu-hover);
	}
	.devcoop .site-header nav > ul.menu > li > ul.sub-menu > li.current-menu-item > a {
		text-decoration-color: var(--devcoop-menu-active);
	}
}
/* 1024-1200px: tighter menu items give the menu room */
@media screen and (min-width: 64em) and (max-width: 75em) {
	.devcoop .site-header {
		--devcoop-menu-item-pad: 10px;
	}
}

/* phones and tablets: both logos absolute in the 77px bar (the parent places the Mondo one), ESTDEV's centred on
   its middle; it is sized to stay clear of the search and menu icons on the right */
@media screen and (max-width: 63.9375em) {
	:root {
		--devcoop-logo-gap: 26px;
	}
	.devcoop .site-header .logo {
		top: var(--devcoop-logo-vgap);
		left: var(--devcoop-logo-edge);
	}
	/* the menu toggle, the last icon here, as far from the right edge as the Mondo logo from the left (the parent
	   gives each icon a 15px right margin) */
	.devcoop #header_icons {
		right: calc(var(--devcoop-logo-edge) - 15px);
	}
	.devcoop .devcoop-partner-logo {
		position: absolute;
		top: 24px;
		left: calc(var(--devcoop-logo-edge) + var(--devcoop-logo-size) + var(--devcoop-logo-gap));
	}
	.devcoop .devcoop-partner-logo img {
		height: 30px;
	}
	.devcoop .opened .devcoop-partner-logo {
		display: none;
	}
}
@media screen and (max-width: 359px) {
	:root {
		--devcoop-logo-edge: 20px;
		--devcoop-logo-gap: 18px;
	}
	.devcoop .devcoop-partner-logo {
		top: 27px;
	}
	.devcoop .devcoop-partner-logo img {
		height: 24px;
	}
}

/* =========================================================================
   Content: rows in a capped column, no gaps between them. WPBakery puts the
   rows in a .wpb-content-wrapper inside .entry-content; either parent counts.
   ========================================================================= */
.devcoop .entry-content {
	padding: 0;
}
.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row {
	max-width: var(--devcoop-content-max);
	margin: 0 auto;
	padding: 0;
	background: transparent;
}
/* the vertical space between rows is --devcoop-section-gap alone: no column padding (the parent's 35px) and no
   bottom margin on a column's last element */
.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row > .vc_column_container > .vc_column-inner {
	padding: 0 var(--devcoop-gutter);
}
.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row .wpb_wrapper > :last-child {
	margin-bottom: 0;
}
/* a row comes --devcoop-section-gap after the one before it; a band right after a banner, the video or another band
   touches it (the band's own padding makes the space) */
.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row + .vc_row {
	margin-top: var(--devcoop-section-gap);
}
.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row:is(.devcoop-banner, .devcoop-video, .devcoop-bg-grey, .devcoop-bg-blue) + .vc_row:is(.devcoop-bg-grey, .devcoop-bg-blue) {
	margin-top: 0;
}

/* a band: the row's colour reaches both screen edges, its content stays in the column. The spread shadow paints
   the colour sideways and the clip-path keeps it out of the rows above and below; .site-content's overflow-x:clip
   (parent style.css) stops it from widening the page. No script, so nothing moves after the first paint. */
.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row.devcoop-bg-grey,
.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row.devcoop-bg-blue {
	padding-top: var(--devcoop-section-gap);
	padding-bottom: var(--devcoop-section-gap);
	background: var(--devcoop-band);
	box-shadow: 0 0 0 100vmax var(--devcoop-band);
	clip-path: inset(0 -100vmax);
}
.devcoop .vc_row.devcoop-bg-grey {
	--devcoop-band: var(--devcoop-grey);
}
.devcoop .vc_row.devcoop-bg-blue {
	--devcoop-band: var(--devcoop-blue);
	color: var(--devcoop-text-on-blue);
}
.devcoop .vc_row.devcoop-bg-blue h2,
.devcoop .vc_row.devcoop-bg-blue h3,
.devcoop .vc_row.devcoop-bg-blue a {
	color: inherit;
}

/* the banner (a single image in a devcoop-banner row), and the video on phones: centred on the viewport at most
   --devcoop-bleed-max wide, scaled whole sideways (the banner text runs to the image's edges). Past the cap their
   colour continues to both screen edges, the banner's blue and grey beside the video. A row with slider_row (a
   [mon_slider] banner) keeps the parent's slider rules, its overlap margins cancelled here.
   From 768px the video is as wide as the text column, on a grey band like devcoop-bg-grey's:
   --devcoop-section-gap of grey above it, and the grey band after it continues it. */
.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row.devcoop-banner {
	position: relative;
	left: 50% !important;
	bottom: 0 !important;
	transform: translateX(-50%);
	width: min(100vw, var(--devcoop-bleed-max));
	max-width: none !important;
	margin: 0 !important;
	padding: 0;
}
@media screen and (max-width: 767px) {
	.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row.devcoop-video {
		position: relative;
		left: 50% !important;
		bottom: 0 !important;
		transform: translateX(-50%);
		width: min(100vw, var(--devcoop-bleed-max));
		max-width: none !important;
		margin: 0 !important;
		padding: 0;
	}
	.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row.devcoop-video > .vc_column_container > .vc_column-inner {
		padding: 0 !important;
	}
}
@media screen and (min-width: 768px) {
	.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row.devcoop-video {
		margin-top: 0;
		padding-top: var(--devcoop-section-gap);
	}
}
.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row.devcoop-banner,
.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row.devcoop-video {
	background: var(--devcoop-edge-bg);
	box-shadow: 0 0 0 100vmax var(--devcoop-edge-bg);
	clip-path: inset(0 -100vmax);
}
.devcoop .vc_row.devcoop-banner {
	--devcoop-edge-bg: var(--devcoop-banner-bg);
}
.devcoop .vc_row.devcoop-video {
	--devcoop-edge-bg: var(--devcoop-video-bg);
}
.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row.devcoop-banner > .vc_column_container > .vc_column-inner {
	padding: 0 !important;
}
.devcoop .devcoop-banner .wpb_content_element,
.devcoop .devcoop-video .wpb_content_element {
	margin-bottom: 0;
}
.devcoop .devcoop-banner .slideshow,
.devcoop .devcoop-banner .wpb_column,
.devcoop .devcoop-video .wpb_column {
	/* the parent pulls .slideshow up over the column padding on phones and pads columns under 350px; neither here */
	margin: 0 !important;
	padding: 0 !important;
}
.devcoop .devcoop-banner .royalSlider {
	min-height: calc(min(100vw, var(--devcoop-bleed-max)) * 1015 / 2880);
}
.devcoop .devcoop-banner .rsSlideRoot img,
.devcoop .devcoop-banner .wpb_single_image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2880 / 1015;
	object-fit: contain;
}
/* desktop: the banner shows the middle of the image, as the mk/mondo hero does (there the header covers its top 40px
   and the next row its bottom 40px of the 1440x507.5 slide). Cropped here instead of covered, at the same proportion
   at every width so the sides, where the banner text runs, are never cut. Phones and tablets show it whole, as there. */
@media screen and (min-width: 1025px) {
	.devcoop .devcoop-banner .wpb_single_image img {
		aspect-ratio: var(--devcoop-banner-ratio);
		object-fit: cover;
		object-position: 50% 50%;
	}
}
/* the banner as a WPBakery single image: its figure and wrapper span the row, no gaps */
.devcoop .devcoop-banner .wpb_single_image,
.devcoop .devcoop-banner .wpb_single_image .vc_figure,
.devcoop .devcoop-banner .wpb_single_image .vc_single_image-wrapper {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
}
/* The banner image comes twice (functions.php): the second copy is shown only on phones, in a devcoop-banner-crop row */
.devcoop .devcoop-banner-part {
	display: block;
}
.devcoop .devcoop-banner-part-b {
	display: none;
}
/* Phones: at full width the banner's text would be too small to read, so a devcoop-banner-crop row shows the title as a
   screen-wide crop of the image (part a) and the lecturer under it as another (part b). functions.php measures where
   each banner's texts are and sets the crops in its 2880x1015 pixels: --x, --y from the top left, --w by --h. A banner
   without the class (the front page's centred title) stays whole. Up to 550px only: the crops' text grows with the
   screen, and wider the whole image reads well enough. */
@media screen and (max-width: 550px) {
	.devcoop .devcoop-banner-crop .devcoop-banner-part-b[style] {
		display: block;
	}
	.devcoop .devcoop-banner-crop .devcoop-banner-part[style] {
		position: relative;
		overflow: hidden;
		aspect-ratio: var(--w) / var(--h);
	}
	.devcoop .devcoop-banner-crop .devcoop-banner-part[style] img {
		position: absolute;
		left: calc(var(--x) / var(--w) * -100%);
		top: calc(var(--y) / var(--h) * -100%);
		width: calc(2880 / var(--w) * 100%);
		max-width: none;
		height: auto;
	}
}

/* =========================================================================
   Typography and blocks
   ========================================================================= */
.devcoop .entry-content h2 {
	font-family: var(--devcoop-heading-font);
	color: var(--devcoop-blue);
	font-size: calc(3.25rem * var(--devcoop-text-scale));
	line-height: 1.05;
	margin: 0 0 0.5em;
}
/* one title in the banners' Bebas Neue Bold (the parent's @font-face, preloaded on the front page by header.php) */
.devcoop .entry-content h2.devcoop-h2-bold {
	font-family: 'Bebas Neue Bold', var(--devcoop-heading-font);
	font-weight: bold;
}
.devcoop .entry-content h3 {
	font-family: var(--devcoop-bold-font);
	font-weight: bold;
	color: var(--devcoop-blue);
	font-size: calc(1.6rem * var(--devcoop-text-scale));
	line-height: 1.3;
	margin: 0 0 0.8em;
}
.devcoop .entry-content p,
.devcoop .entry-content li {
	font-size: calc(1.125rem * var(--devcoop-text-scale));
	line-height: 1.5;
}
.devcoop .entry-content ul,
.devcoop .entry-content ol {
	margin-left: 1.4em;
}
.devcoop .entry-content p a:not(.button),
.devcoop .entry-content li a {
	color: var(--devcoop-link);
}
/* the underline in the link's own colour: the parent's black one (app.css, a selector with two ids in its :not()s)
   can only be outranked by !important */
.devcoop .entry-content p a:not(.button),
.devcoop .entry-content p a:not(.button):hover,
.devcoop .entry-content li a,
.devcoop .entry-content li a:hover {
	border-bottom: 1px solid currentColor !important;
	padding-bottom: 0;
}
/* any other link's hover underline too (the parent's a:hover draws it black), e.g. the test form's "Muuda"; buttons
   keep their own transparent one */
.devcoop a:not(.button):hover {
	border-bottom-color: currentColor;
}
.devcoop .entry-content ul > li::marker {
	font-size: 0.75em;
}
.devcoop .devcoop-box ul > li::marker {
	color: var(--devcoop-blue);
}
.devcoop .devcoop-lead p {
	font-family: var(--devcoop-bold-font);
	font-weight: bold;
	color: var(--devcoop-blue);
	font-size: calc(1.6rem * var(--devcoop-text-scale));
	line-height: 1.3;
}
.devcoop .wpb_text_column.devcoop-box {
	border: 2px solid var(--devcoop-blue);
	padding: 2rem 2.5rem;
}
.devcoop .wpb_text_column.devcoop-box > .wpb_wrapper > :last-child {
	margin-bottom: 0;
}
/* the line fills the separator's box exactly (WPBakery draws it 1px below a 1px box), so the gaps above and below it
   measure the same as everywhere else */
.devcoop .devcoop-hr .vc_sep_holder {
	height: 2px;
}
/* one class more than WPBakery's own .vc_separator .vc_sep_holder .vc_sep_line, whose sheet loads after this one */
.devcoop .devcoop-hr .vc_sep_holder .vc_sep_line {
	top: 0;
	height: 0;
	border-top: 2px solid var(--devcoop-blue) !important;
}
.devcoop .devcoop-hr {
	margin-bottom: 0;
}

/* buttons: the parent's .button, its standard size (as on maailmakool and mondo), in the course's colours.
   devcoop-btn-large added to either makes it the sketch's large button. */
.devcoop .entry-content .button.devcoop-btn,
.devcoop .entry-content .button.devcoop-btn-grey {
	font-family: var(--devcoop-body-font);
	font-size: var(--devcoop-button-size);
	line-height: 1;
	text-transform: uppercase;
	padding: var(--devcoop-button-padding);
	margin: 0;
	border: 1px solid transparent; /* the parent's, part of its size */
}
.devcoop .entry-content .button.devcoop-btn-large {
	--devcoop-button-size: var(--devcoop-button-large-size);
	--devcoop-button-padding: var(--devcoop-button-large-padding);
}
.devcoop .entry-content .button.devcoop-btn {
	background: var(--devcoop-button-bg);
	color: var(--devcoop-button-text) !important;
}
/* hover: the parent's a.button:hover resets the bottom padding to its own size */
.devcoop .entry-content .button.devcoop-btn:hover,
.devcoop .entry-content .button.devcoop-btn:focus {
	background: var(--devcoop-button-bg-hover);
	padding: var(--devcoop-button-padding);
}
.devcoop .entry-content .button.devcoop-btn-grey {
	background: var(--devcoop-button-grey-bg);
	color: var(--devcoop-button-grey-text) !important;
}
.devcoop .entry-content .button.devcoop-btn-grey:hover,
.devcoop .entry-content .button.devcoop-btn-grey:focus {
	background: var(--devcoop-button-grey-bg-hover);
	padding: var(--devcoop-button-padding);
}
/* a row of buttons: 1rem apart also when they wrap, and no margin below them (the next gap is the row's) */
.devcoop .devcoop-nav p {
	display: flex;
	flex-wrap: wrap;
	align-items: center; /* each button its own height when a large one sits beside a standard one */
	gap: 1rem;
	margin: 0;
}
.devcoop .devcoop-nav p[style*="center"] {
	justify-content: center;
}

/* =========================================================================
   Self-test ([devcoop_test], mk_devcoop plugin): a grey box in the column
   ========================================================================= */
.devcoop .devcoop-test {
	background: var(--devcoop-grey);
	padding: 3rem 4rem;
}
.devcoop .devcoop-test-questions {
	margin: 0 0 2rem 1.4em;
}
.devcoop .devcoop-test-question {
	font-family: var(--devcoop-bold-font);
	font-weight: bold;
	margin-bottom: 1.5rem;
}
.devcoop .entry-content .devcoop-test-question-label {
	font-family: var(--devcoop-bold-font);
	font-weight: bold;
	margin-bottom: 0.75rem;
}
.devcoop .devcoop-test-answers {
	list-style: none;
	margin: 0;
	font-family: var(--devcoop-body-font);
	font-weight: normal;
}
.devcoop .devcoop-test-answers li {
	margin-bottom: 0.3rem;
}
.devcoop .devcoop-test-answers label {
	display: grid;
	grid-template-columns: auto 1.6em 1fr;
	align-items: baseline;
	gap: 0 0.4em;
	font-size: calc(1.125rem * var(--devcoop-text-scale));
	line-height: 1.4;
	cursor: pointer;
}
.devcoop .devcoop-test-answers input[type="checkbox"] {
	margin: 0;
	width: 1em;
	height: 1em;
	accent-color: var(--devcoop-blue);
}
.devcoop .devcoop-test-actions p {
	margin-bottom: 1rem;
}
.devcoop .devcoop-test button.devcoop-btn {
	margin: 0;
}
.devcoop .devcoop-test button.devcoop-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}
.devcoop .devcoop-test-message {
	font-family: var(--devcoop-bold-font);
	font-weight: bold;
	font-size: calc(1.125rem * var(--devcoop-text-scale));
}
.devcoop .devcoop-test-message[data-kind="ok"] {
	color: var(--devcoop-blue);
}
/* in the purple of the banners' line ("Valesid vastuseid: …" and the other refusals) */
.devcoop .devcoop-test-message[data-kind="error"] {
	color: var(--devcoop-purple);
}
.devcoop .devcoop-test-certificate :is(label, .devcoop-test-label) {
	display: block;
	font-size: calc(1rem * var(--devcoop-text-scale));
	margin-bottom: 0.25rem;
}
.devcoop .devcoop-test-certificate input {
	max-width: 28rem;
	background: #FFF;
}
/* the name, the account's own: not a field to type in but a box the size of one, in the form's own grey inside a grey
   outline (the fields to type in are white), with its blue "Muuda" link to the profile at the right */
.devcoop .devcoop-test-name {
	margin-bottom: 1rem;
}
.devcoop .devcoop-test-pseudo-field {
	display: flex;
	align-items: center;
	gap: 1rem;
	box-sizing: border-box;
	width: 100%;
	max-width: 28rem;
	min-height: 39px;
	padding: 0.35rem 8px;
	border: 1px solid var(--devcoop-menu-hover);
	line-height: 1.3;
}
.devcoop .devcoop-test-pseudo-value {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}
.devcoop .devcoop-test-pseudo-field a {
	flex: none;
	color: var(--devcoop-link);
}

/* =========================================================================
   Account forms ([devcoop_registration], [devcoop_login], [devcoop_password], mk_devcoop plugin): the sketch's
   registration page, which login and password recovery follow. A narrow column at the content's left edge, the
   field names as placeholders in tall outlined boxes. Below the fields it steps down: the standard buttons and,
   under them, a link in their size of text.
   ========================================================================= */
.devcoop .devcoop-account {
	--devcoop-field-width: 29rem;
	font-size: calc(1.25rem * var(--devcoop-text-scale));
}
.devcoop .entry-content .devcoop-account p {
	margin: 0 0 1.25rem;
	font-size: inherit;
}
.devcoop .devcoop-account fieldset {
	margin: 0 0 2rem;
}
.devcoop .devcoop-account legend {
	font-size: inherit;
	margin: 0 0 0.6rem;
	padding: 0;
}
.devcoop .devcoop-account :is(input[type="text"], input[type="email"], input[type="password"]) {
	display: block;
	width: 100%;
	max-width: var(--devcoop-field-width);
	height: 3.4rem;
	margin: 0;
	padding: 0 0.85rem;
	border: 1px solid #000;
	border-radius: 0;
	box-shadow: none;
	background: #FFF;
	color: var(--devcoop-text);
	font-family: var(--devcoop-body-font);
	font-size: inherit;
}
.devcoop .devcoop-account :is(input[type="text"], input[type="email"], input[type="password"]):focus {
	border-color: var(--devcoop-blue);
	outline: 2px solid var(--devcoop-blue);
	outline-offset: -2px;
}
.devcoop .devcoop-account ::placeholder {
	color: var(--devcoop-text);
	opacity: 1;
}
.devcoop .devcoop-account-check label {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-size: inherit;
	cursor: pointer;
}
.devcoop .devcoop-account-check input {
	margin: 0;
	width: 1em;
	height: 1em;
	accent-color: var(--devcoop-blue);
}
/* "Sul on juba Maailmakool.ee konto? Logi sisse »": bold blue, no underline until hovered */
.devcoop .entry-content .devcoop-account-switch a:not(.button) {
	font-family: var(--devcoop-bold-font);
	font-weight: bold;
	border-bottom-color: transparent !important;
}
.devcoop .entry-content .devcoop-account-switch a:not(.button):hover {
	border-bottom-color: currentColor !important;
}
.devcoop .entry-content .devcoop-account p.devcoop-account-switch {
	margin-bottom: 2rem;
}
.devcoop .entry-content .devcoop-account p.devcoop-account-submit {
	margin: 2.5rem 0 0.9rem;
}
.devcoop .entry-content .devcoop-account p.devcoop-account-link {
	font-size: var(--devcoop-button-size);
}
.devcoop .devcoop-account button.devcoop-btn {
	margin: 0;
}
.devcoop .devcoop-account button.devcoop-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}
.devcoop .entry-content .devcoop-account p.devcoop-account-back-row {
	margin: 1.5rem 0 0;
}
.devcoop .devcoop-account-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
/* the refusals in the purple of the banners' line, as the self-test's; a notice in blue */
.devcoop .devcoop-account-message {
	max-width: 40rem;
	margin: 0 0 2rem;
	font-family: var(--devcoop-bold-font);
	font-weight: bold;
}
.devcoop .devcoop-account-message[data-kind="error"] {
	color: var(--devcoop-purple);
}
.devcoop .devcoop-account-message[data-kind="ok"] {
	color: var(--devcoop-blue);
}
.devcoop .entry-content .devcoop-account-message p:last-child {
	margin-bottom: 0;
}
.devcoop .entry-content .devcoop-account-message a {
	color: inherit;
}
/* the field for bots: out of sight and out of the way, not display:none (some bots skip hidden fields) */
.devcoop .devcoop-account-contact {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* =========================================================================
   Footer
   ========================================================================= */
.devcoop .devcoop-footer {
	max-width: var(--devcoop-content-max);
	margin: var(--devcoop-section-gap) auto 0;
	padding: 0 var(--devcoop-gutter) 2.5rem;
	background: transparent;
}
.devcoop .devcoop-footer-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3rem;
	padding-top: 2.5rem;
	border-top: 2px solid var(--devcoop-blue);
}
.devcoop .devcoop-footer-logo-link,
.devcoop .devcoop-footer-logo-link:hover {
	display: block;
	flex: 0 0 auto;
	padding: 0;
	border: 0; /* no underline of the parent's links */
}
.devcoop .devcoop-footer-logo {
	display: block;
	width: 150px;
	height: auto;
}
.devcoop .devcoop-footer-text {
	max-width: 26rem;
	margin: 0;
	font-size: calc(0.875rem * var(--devcoop-text-scale));
	line-height: 1.4;
}

/* =========================================================================
   Search results (the parent's searchpage.php): "Loe edasi" in the course's
   blue, not maailmakool's yellow .button (its text colour is !important there)
   ========================================================================= */
.devcoop a.button.read-more {
	background: var(--devcoop-button-bg);
	color: var(--devcoop-button-text) !important;
}
.devcoop a.button.read-more:hover,
.devcoop a.button.read-more:focus {
	background: var(--devcoop-button-bg-hover);
	color: var(--devcoop-button-text) !important;
}
/* the heading ("Otsingutulemused:") stands as far above the first result as the results stand apart: the
   parent's .news-page .news article margin-bottom, 3em at the results' 1rem. On the results column, since both
   rows carry inline zero margins and the heading's own is zeroed as the last child of its text block. */
.devcoop .site-content.archive .news {
	padding-top: 3rem;
}
/* and as far below the menu bar */
.devcoop .site-content.archive {
	padding-top: 3rem;
}
/* the heading itself in the type of the pages' h3 ("Käsitletavad teemad:"), as written, not maailmakool's Bebas h1 */
.devcoop .site-content.archive h1 {
	font-family: var(--devcoop-bold-font);
	font-weight: bold;
	font-size: calc(1.6rem * var(--devcoop-text-scale));
	line-height: 1.3;
	text-transform: none;
	color: var(--devcoop-blue);
}

/* =========================================================================
   Cookie banner (GDPR Cookie Compliance): its coloured button in the course's
   blue. The parent's style.css paints it maailmakool's green with !important;
   the banner's own brand colour (its settings, #2B71B7) colours the rest.
   ========================================================================= */
.devcoop .moove-gdpr-infobar-reject-btn {
	background-color: var(--devcoop-button-bg) !important;
	color: var(--devcoop-button-text) !important;
}
.devcoop .moove-gdpr-infobar-reject-btn:hover,
.devcoop .moove-gdpr-infobar-reject-btn:focus {
	background-color: var(--devcoop-button-bg-hover) !important;
}

/* =========================================================================
   Phones and tablets
   ========================================================================= */
@media screen and (max-width: 767px) {
	:root {
		--devcoop-gutter: 1rem;
		--devcoop-section-gap: 2.5rem;
		--devcoop-text-scale: calc(1 / 1.125);
	}
	/* the parent forces 35px above every first or full-width column here (with !important) */
	.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row > .vc_column_container > .vc_column-inner {
		padding-top: 0 !important;
	}
	/* the columns of a row stack here: the same gap between them as between rows */
	.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row > .vc_column_container + .vc_column_container {
		margin-top: var(--devcoop-section-gap);
	}
	.devcoop .devcoop-test-questions {
		margin-left: 1.2em;
	}
	.devcoop .entry-content .devcoop-test-answers {
		margin-left: 0;
	}
	.devcoop .entry-content h2 {
		font-size: calc(2.5rem * var(--devcoop-text-scale));
	}
	.devcoop .devcoop-lead p {
		font-size: calc(1.3rem * var(--devcoop-text-scale));
	}
	.devcoop .wpb_text_column.devcoop-box {
		padding: 1.5rem;
	}
	/* the account forms' fields at the normal size here: the standard button's height and the body text's 16px (iOS
	   also zooms into a field with less) */
	.devcoop .devcoop-account :is(input[type="text"], input[type="email"], input[type="password"]) {
		height: 2.55rem;
		padding: 0 0.65rem;
		font-size: 1rem;
	}
	/* screen wide, out over the column's gutters, with a grey band's spacing inside; and like a band it touches the
	   banner above it */
	.devcoop .devcoop-test {
		margin: 0 calc(-1 * var(--devcoop-gutter));
		padding: var(--devcoop-section-gap) var(--devcoop-gutter);
	}
	.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row.devcoop-banner + .vc_row:has(.devcoop-test) {
		margin-top: 0;
	}
	.devcoop .devcoop-footer-inner {
		flex-direction: column;
		gap: 1.5rem;
		text-align: center;
	}
}
@media screen and (max-width: 1024px) {
	/* the parent's mobile hero keeps a gap under the slider row */
	.devcoop :is(.entry-content, .wpb-content-wrapper) > .vc_row.devcoop-banner {
		margin: 0 !important;
	}
}
