/*
 * Documents pages: styles.
 *
 * Plain CSS, no build step: edit and upload. Loaded only on the documents
 * templates, which load nothing else (see ../setup.php).
 *
 * The design is 850 wide, and sizes are in rem from it: px / 16. From 767
 * to 1400 wide the root size scales with the screen, so the page keeps the
 * design's proportions exactly (1rem = 16px at 850). Above 1400 it keeps its
 * 1400 size, so the content stops at a 1400 container; phones have their
 * own layout at 16px.
 */

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--color-white: #FFFFFF;
	--color-green: #8CC652;
	--color-navy: #064A72;
	--color-blue: #00ADF1;
	--color-text: #2E2E2E;

	/* The design's width: 850 at 850, 1400 at most */
	--container-width: 53.125rem;
}

/* ==========================================================================
   Root size
   ========================================================================== */

html {
	font-size: 16px;
}

@media (min-width: 767px) {
	html {
		font-size: calc(100vw / 53.125);
	}
}

@media (min-width: 1400px) {
	html {
		font-size: calc(1400px / 53.125);
	}
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--color-white);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4,
p {
	margin: 0;
}

/* Elementor popups (a newsletter, say) are printed at the end of every
   page, hidden by Elementor's styles, which these pages don't load: keep
   them out of sight here */
[data-elementor-type="popup"]:not(.elementor-edit-area),
.elementor-location-popup,
.elementor-popup-modal {
	display: none !important;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.docs-skip-link:focus {
	top: 0.5rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.5rem 1rem;
	clip-path: none;
	background: var(--color-white);
	inset-inline-start: 0.5rem;
}

.docs-container {
	width: min(var(--container-width), 100%);
	margin-inline: auto;
}

/* Entrances (header and hero, on load) */
@keyframes docs-drop {
	from {
		opacity: 0;
		transform: translateY(-1rem);
	}
}

@keyframes docs-rise {
	from {
		opacity: 0;
		transform: translateY(var(--rise, 1.5rem));
	}
}

/* The slider: no movement, so it can't fight Owl's own transforms */
@keyframes docs-fade {
	from {
		opacity: 0;
	}
}

/* Held at their first frame (hidden) until the fonts are in and the slider
   is built (main.js adds .docs-ready), so nothing plays and then jumps */
.js:not(.docs-ready) .docs-hero__title,
.js:not(.docs-ready) .docs-hero__label,
.js:not(.docs-ready) .docs-slide,
.js:not(.docs-ready) .docs-slider .owl-nav button {
	animation-play-state: paused;
}

/* ==========================================================================
   Header: over the top of the first section. The logo (163 x 70), the
   search button, then the categories menu, 18px apart
   ========================================================================== */

.docs-header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 10;
}

.docs-header__inner {
	display: flex;
	align-items: center;
	gap: 1.125rem;
	padding-block: 1.063rem 0;
	padding-inline: 0.75rem 1.563rem;
}

.docs-header__logo {
	flex: none;
	margin-inline-end: -0.25rem;
}

.docs-header__logo img {
	width: 7.188rem;
	height: auto;
}

/* "Search": a tilted blue block (the shape turned 2.465 degrees, the
   text straight), Almoni Tzar 17.7px, the icon 23px. At least 1.958rem
   wide, growing to fit the word */
.docs-search {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-width: 1.958rem;
	height: 2.135rem;
	padding-inline: 0.6rem;
	margin-top: -0.2rem;
	font-family: var(--font-heading);
	font-size: 1.107rem; /* as the categories menu */
	font-weight: 600;
	line-height: 1;
	color: var(--color-white);
	text-decoration: none;
	isolation: isolate;
}

.docs-search::before {
	content: "";
	position: absolute;
	inset: 0;bottom: -2px;
	z-index: -1;
	background: var(--color-blue);
	clip-path: polygon(0 1.1%, 99.4% 0, 100% 90%, 1.3% 97.3%);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.docs-search:hover::before {
	background: #00A652;
}

.docs-search:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 0.3rem;
}

.docs-search__icon {
	flex: none;
	width: 1.438rem;
	height: 1.438rem;
}

/* The phones' menu button (hidden above): three navy lines on green that
   turn into a cross while the menu is open */
.docs-burger {
	display: none;
	flex: none;
	flex-direction: column;
	justify-content: center;
	gap: 0.3rem;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.65rem;
	border: 0;
	background: var(--color-green);
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.docs-burger__line {
	display: block;
	height: 0.15rem;
	border-radius: 0.1rem;
	background: var(--color-navy);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.docs-header.is-open .docs-burger__line:nth-child(1) {
	transform: translateY(0.45rem) rotate(45deg);
}

.docs-header.is-open .docs-burger__line:nth-child(2) {
	opacity: 0;
}

.docs-header.is-open .docs-burger__line:nth-child(3) {
	transform: translateY(-0.45rem) rotate(-45deg);
}

.docs-burger:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 2px;
}

/* The categories: Almoni Tzar 19.309px, #064A72 on #8CC652 */
/* One row in the design; should the names run longer, they wrap rather
   than run off the page */
.docs-cats {
	min-width: 0;
}

.docs-cats__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.825rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.docs-cats__list li {
}

.docs-cats__list a {
	display: block;
	padding: 0.06rem 0.3rem 0;
	background: var(--color-green);
	font-family: var(--font-heading);
	font-size: 1.107rem;
	font-weight: 600;
	line-height: 1.5rem;
	color: var(--color-navy);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.docs-cats__list a:hover,
.docs-cats__list .current-menu-item > a {
	background: var(--color-navy);
	color: var(--color-white);
}

.docs-cats__list a:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 2px;
}

/* ==========================================================================
   Hero: the picture under its shade, 620 tall at 850; the title, and the
   documents slider
   ========================================================================== */

.docs-hero {
	min-height: 38.75rem;
	padding: 8rem 0 3.375rem;
	background:
		linear-gradient(180deg, rgba(102, 102, 102, 0) 56.56%, rgba(140, 198, 82, 0.7) 100%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)),
		linear-gradient(180deg, rgba(0, 0, 0, 0.6) 24.41%, rgba(255, 255, 255, 0) 122.03%),
		var(--hero-image) lightgray center / cover no-repeat;
	color: var(--color-white);
}

/* Almoni Tzar 67.455px on 51.216px */
.docs-hero__title {
	font-family: var(--font-heading);
	font-size: 5.216rem;
	font-weight: 600;
	line-height: 3.201rem;
	text-align: center;
	--rise: 2rem;
	animation: docs-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0s backwards;
}

/* Almoni Tzar 30.97px on 38.204px */
.docs-hero__label {
	margin-top: 30px;
	font-family: var(--font-heading);
	font-size: 1.936rem;
	font-weight: 600;
	line-height: 2.388rem;
	text-align: center;
	animation: docs-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}

/* --------------------------------------------------------------------------
   Slider: three 188 x 238 cards 32px apart; the arrows (23px green rounds)
   out by the sides. The gap is the cards' padding, so it scales with the
   page
   -------------------------------------------------------------------------- */

.docs-slider {
	position: relative;
	width: 41.25rem;
	margin: 1.025rem auto 0;
}

.docs-slider .owl-item {
	padding-inline: 1rem;
}

/* Room for the cards' lift on hover, which Owl's frame would cut */
.docs-slider .owl-stage-outer {
	margin-block: -0.5rem;
	padding-block: 0.5rem;
}

/* Without JavaScript Owl never starts: the cards in a row */
.no-js .docs-slider {
	display: flex;
}

.no-js .docs-slider > .docs-slide {
	flex: 0 0 calc(33.333% - 2rem);
	margin-inline: 1rem;
}

.docs-slider .owl-nav {
	margin: 0;
}

.docs-slider .owl-nav button.owl-prev,
.docs-slider .owl-nav button.owl-next {
	position: absolute;
	top: 7.438rem; /* the card's middle (the button under it aside) */
	display: grid;
	place-items: center;
	width: 1.438rem;
	height: 1.438rem;
	margin: -0.4rem 0 0;
	padding: 0;
	border-radius: 50%;
	background: var(--color-green);
	transition: transform 0.25s ease, background-color 0.25s ease;
	animation: docs-fade 0.8s ease 0.5s backwards;
}

/* Both buttons use the left arrow (7 x 11); "prev" turns it round */
.docs-slider .owl-nav button img {
	width: 0.438rem;
	height: 0.688rem;
}

/* In Hebrew the earlier cards are to the right */
.docs-slider .owl-nav button.owl-prev {
	right: -4.5rem;
}

.docs-slider .owl-nav button.owl-prev img {
	transform: rotate(180deg);
}

.docs-slider .owl-nav button.owl-next {
	left: -4.5rem;
}

.docs-slider .owl-nav button:hover {
	background: var(--color-navy);
}

.docs-slider .owl-nav button.disabled {
	opacity: 0.4;
	cursor: default;
}

.docs-slider .owl-nav button:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 2px;
}

/* A slide: the card, and its button under it */
.docs-slide {
	text-align: center;
	animation: docs-fade 0.9s ease calc(0.25s + var(--i, 0) * 0.08s) backwards;
}

/* The card: its picture under a dark shade, a 1.44px white edge; the
   badge, title and text at the foot */
.docs-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 14.875rem;
	padding: 0 0.6rem 1rem;
	overflow: hidden;
	border: 0.09rem solid var(--color-white);
	border-radius: 0.5rem;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0) 2.51%, rgba(0, 0, 0, 0.8) 99.96%),
		var(--card-image, none) #3A3F45 center / cover no-repeat;
	text-align: center;
	color: var(--color-white);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.docs-card:hover {
	transform: translateY(-0.3rem);
}

/* Fb Tubic Sans 6.56px on 8.64px, on white at 88% */
.docs-card__badge {
	padding: 0.25rem 0.55rem 0.2rem;
	border-radius: 1.439rem;
	background: rgba(255, 255, 255, 0.88);
	font-family: var(--font-body);
	font-size: 0.41rem;
	font-weight: 400;
	line-height: 0.54rem;
	color: var(--color-text);
}

/* Almoni Tzar 27.84px */
.docs-card__title {
	margin-top: 0.25rem;
	font-family: var(--font-heading);
	font-size: 1.74rem;
	font-weight: 600;
	line-height: 1;
}

/* Almoni Tzar 16px on 20px */
.docs-card__text {
	margin-top: 0.15rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25rem;
}

/* Fb Tubic Sans 12px, on #00ADF1, the download icon after the text */
.docs-card__button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.7rem;
	padding: 0.38rem 0.95rem 0.35rem 0.8rem;
	border-radius: 2.297rem;
	background: var(--color-blue);
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 0.86rem;
	color: var(--color-white);
	text-decoration: none;
	transition: background-color 0.25s ease;
}

/* (Owl makes every picture in a slide full width) */
.docs-slider .docs-card__button img {
	flex: none;
	width: 1.25rem;
	height: auto;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.docs-card__button:hover {
	background: #00A652;
}

.docs-card__button:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 2px;
}

/* ==========================================================================
   A category's page: its name over the background picture (under a dark
   shade), then the white box of its documents
   ========================================================================== */

/* The picture keeps its size as the list grows (load more) instead of
   being stretched again to cover the section: full width from the top, at
   its own proportions (1000 x 1146), fading out at its foot into a blurred
   copy of itself, which fills whatever the section has below it */
.docs-archive {
	position: relative;
	isolation: isolate;
	overflow: clip;
	padding: 5.563rem 0 4.188rem;
	background: #3A4436;
}

.docs-archive::before,
.docs-archive::after {
	content: "";
	position: absolute;
	right: 0;
	left: 0;
	pointer-events: none;
}

.docs-archive::before {
	inset: 0;
	z-index: -2;
	background: var(--archive-image, none) center top / 100% auto repeat-y;
	filter: blur(2.5rem) brightness(0.5);
	transform: scale(1.15);
}

.docs-archive::after {
	top: 0;
	z-index: -1;
	aspect-ratio: 1000 / 1146;
	background:
		linear-gradient(170deg, rgba(0, 0, 0, 0.5) 80.45%, rgba(255, 255, 255, 0) 372.22%),
		var(--archive-image, none) center top / 100% auto no-repeat;
	-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
	mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.docs-archive__inner {
	padding-inline: 1.438rem;
}

/* Almoni Tzar 50.326px on 62.082px */
.docs-archive__title {
	font-family: var(--font-heading);
	font-size: 3.145rem;
	font-weight: 600;
	line-height: 3.88rem;
	color: var(--color-white);
	text-align: center;
	animation: docs-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0s backwards;
}

/* --------------------------------------------------------------------------
   A list of documents (parts/doc-list.php): the white box, its bar, the
   documents as rows (the default) or a grid (html.docs-view-grid), load
   more
   -------------------------------------------------------------------------- */

.docs-list-box {
	margin-top: 0.813rem;
	padding: 1.063rem 1.75rem 1.188rem;
	border-radius: 1.25rem;
	background: var(--color-white);
	animation: docs-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
	--rise: 2rem;
}

/* The bar: the count to the right; the switch and sortings to the left */
.docs-list-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	font-family: var(--font-body);
}

/* Fb Tubic Sans 14px on 20px, the number darker */
.docs-list-bar__count {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #6A7282;
}

.docs-list-bar__num {
	color: #1E2939;
}

.docs-list-bar__tools {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

/* The switch shows the other layout's icon: the grid's in rows, the rows'
   in the grid */
.docs-view {
	display: grid;
	place-items: center;
	width: 1.625rem;
	height: 1.625rem;
	margin-inline-end: 0.75rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.docs-view img {
	width: 1.625rem;
	height: auto;
}

.docs-view__rows,
.docs-view-grid .docs-view__grid {
	display: none;
}

.docs-view-grid .docs-view__rows {
	display: block;
}

.docs-view:hover img {
	opacity: 0.7;
}

.docs-view:focus-visible {
	outline: 2px solid var(--color-blue);
	outline-offset: 2px;
}

/* Fb Tubic Sans 12px on 16px */
.docs-sort__label {
	font-size: 0.75rem;
	line-height: 1rem;
	color: #99A1AF;
}

.docs-sort {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The chosen one: white on light blue */
.docs-sort__link {
	display: block;
	padding: 0.281rem 0.938rem;
	border-radius: 999px;
	font-size: 0.75rem;
	line-height: 1rem;
	color: #6A7282;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.docs-sort__link:hover {
	color: var(--color-blue);
}

.docs-sort__link.is-active {
	background: var(--color-blue);
	color: var(--color-white);
}

.docs-sort__link:focus-visible {
	outline: 2px solid var(--color-blue);
	outline-offset: 2px;
}

/* The documents: rows 11px apart; the grid three to a row */
.docs-list {
	display: grid;
	gap: 0.688rem;
	margin-top: 0.75rem;
	transition: opacity 0.25s ease;
}

.docs-list-box.is-loading .docs-list {
	opacity: 0.5;
}

.docs-view-grid .docs-list-box .docs-list {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem 1.688rem;
	margin-top: 1.75rem;
}

.docs-list__empty {
	margin-top: 1.5rem;
	font-size: 0.875rem;
	color: #6A7282;
	text-align: center;
}

/* A document: a 12.96px corner, a 1.08px avocado edge. As a row: the text
   to the right, the downloads, then the 112 square picture to the left */
.docs-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	grid-template-areas: "body actions media";
	align-items: center;
	gap: 1rem;
	padding: 0.813rem;
	border: 0.068rem solid #CDDC2B;
	border-radius: 0.81rem;
	background: var(--color-white);
	font-family: var(--font-body);
	animation: docs-fade 0.6s ease calc(var(--d, 0.25s) + var(--i, 0) * 0.06s) backwards;
}

.docs-item__media {
	grid-area: media;
	width: 7rem;
	height: 7rem;
	overflow: hidden;
	border-radius: 0.625rem;
	background: #E5E7EB;
}

.docs-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The PDF preview (rows and grid): the whole picture is the button; on hover a
   frosted white block shows the icon (27 x 28) and "תצוגה מקדימה" (Fb Tubic
   Sans 14px on 14px, white) */
.docs-item__media {
	position: relative;
}

.docs-item__preview {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.docs-item__preview-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 68%;
	height: 68%;
	border-radius: 0.813rem;
	background: rgba(255, 255, 255, 0.4);
	-webkit-backdrop-filter: blur(0.121rem);
	backdrop-filter: blur(0.121rem);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.docs-item__preview-box img {
	width: 1.708rem;
	height: 1.75rem;
	object-fit: contain;
}

.docs-item__preview-text {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 0.875rem;
	color: var(--color-white);
	text-align: center;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.docs-item__preview:hover .docs-item__preview-box,
.docs-item__preview:focus-visible .docs-item__preview-box {
	opacity: 1;
}

.docs-item__preview:focus-visible {
	outline: 2px solid var(--color-blue);
	outline-offset: 2px;
	border-radius: 0.625rem;
}

/* On the grid's wider pictures the block stays a square, 68% of the height */
.docs-view-grid .docs-list-box .docs-item__preview-box {
	width: auto;
	aspect-ratio: 1;
}

.docs-item__body {
	grid-area: body;
	align-self: start;
	min-width: 0;
}

/* Fb Tubic Sans 10px on 15px, light blue on its tint */
.docs-item__tag {
	display: inline-block;
	padding: 0.063rem 0.563rem;
	border-radius: 999px;
	background: rgba(0, 173, 241, 0.12);
	font-size: 0.625rem;
	line-height: 0.938rem;
	color: var(--color-blue);
}

/* Fb Tubic Sans 14px on 20px */
.docs-item__title {
	margin-top: 0.313rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.25rem;
	color: #101828;
}

/* With a PDF, the title opens its preview too: the same text, light blue on
   hover */
.docs-item__title-link {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.25s ease;
}

.docs-item__title-link:hover {
	color: var(--color-blue);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.docs-item__title-link:focus-visible {
	outline: 2px solid var(--color-blue);
	outline-offset: 2px;
	border-radius: 0.25rem;
}

/* Fb Tubic Sans 12px on 16px */
.docs-item__text {
	margin-top: 0.125rem;
	font-size: 0.75rem;
	line-height: 1rem;
	color: #6A7282;
}

/* The downloads: for printing (26 x 26), and in colour (29 x 27) */
.docs-item__actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.docs-item__action {
	display: block;
	border-radius: 0.25rem;
}

.docs-item__action img {
	width: auto;
	height: 1.688rem;
}

.docs-item__action:hover img {
	opacity: 0.7;
}

.docs-item__action:focus-visible {
	outline: 2px solid var(--color-blue);
	outline-offset: 2px;
}

/* As a card in the grid: the 194 x 141 picture on top, the badge over its
   foot, then all centred */
.docs-view-grid .docs-list-box .docs-item {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"media"
		"body"
		"actions";
	align-content: start;
	gap: 0;
	padding: 1.063rem 1.063rem 0.688rem;
	text-align: center;
}

.docs-view-grid .docs-list-box .docs-item__media {
	width: 100%;
	height: 8.813rem;
	border-radius: 0.875rem;
}

.docs-view-grid .docs-list-box .docs-item__body {
	align-self: auto;
}

.docs-view-grid .docs-list-box .docs-item__tag {
	position: relative;
	display: block;
	width: fit-content;
	margin: -1.75rem auto 0;
	background: #D9F3FD;
}

.docs-view-grid .docs-list-box .docs-item__title {
	margin-top: 1.563rem;
}

.docs-view-grid .docs-list-box .docs-item__text {
	margin-top: 0.875rem;
}

.docs-view-grid .docs-list-box .docs-item__actions {
	justify-content: center;
	margin-top: 0.75rem;
}

/* Load more: Fb Tubic Sans 12px, white on light blue */
.docs-list__more {
	margin-top: 1.25rem;
	text-align: center;
}

.docs-list__more[hidden] {
	display: none;
}

.docs-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 6.188rem;
	height: 1.625rem;
	padding: 0 1.75rem;
	border-radius: 2.08rem;
	background: var(--color-blue);
	font-family: var(--font-body);
	font-size: 0.75rem;
	line-height: 0.858rem;
	color: var(--color-white);
	text-decoration: none;
	transition: background-color 0.25s ease;
}

.docs-more:hover {
	background: #00A652;
}

.docs-more.is-loading {
	pointer-events: none;
	opacity: 0.75;
}

.docs-more:focus-visible {
	outline: 2px solid var(--color-navy);
	outline-offset: 2px;
}

/* Held until the fonts are in (main.js adds .docs-ready) */
.js:not(.docs-ready) .docs-archive__title,
.js:not(.docs-ready) .docs-list-box,
.js:not(.docs-ready) .docs-item {
	animation-play-state: paused;
}

/* Phones and small tablets: the bar on two lines; rows with a smaller
   picture and the downloads under the text; the grid two to a row, one on
   phones */
@media (max-width: 766px) {

	.docs-archive {
		padding: 7.5rem 0 4.5rem;
	}

	.docs-archive__inner {
		padding-inline: 1rem;
	}

	.docs-archive__title {
		font-size: 2.5rem;
		line-height: 1.2;
	}

	.docs-list-box {
		margin-top: 1.25rem;
		padding: 1rem;
		border-radius: 1rem;
	}

	.docs-list-bar__tools {
		flex-wrap: wrap;
		width: 100%;
	}

	.docs-view {
		order: 1;
		margin: 0 auto 0 0;
	}

	.docs-sort__link {
		padding-inline: 0.75rem;
	}

	.docs-item {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"body media"
			"actions media";
		gap: 0.75rem;
	}

	.docs-item__media {
		width: 5.5rem;
		height: 5.5rem;
	}

	.docs-item__actions {
		align-self: end;
	}

	.docs-item__title {
		font-size: 1rem;
		line-height: 1.375rem;
	}

	.docs-item__text {
		font-size: 0.875rem;
		line-height: 1.25rem;
	}

	.docs-view-grid .docs-list-box .docs-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
		margin-top: 1.25rem;
	}

	.docs-view-grid .docs-list-box .docs-item__media {
		height: auto;
		aspect-ratio: 194 / 141;
	}

	.docs-more {
		height: 2.75rem;
		padding-inline: 2.5rem;
		font-size: 1rem;
	}
}

@media (max-width: 479px) {

	.docs-view-grid .docs-list-box .docs-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   The search popup (parts/search-popup.php): a white frame at the top,
   24px down, over a light shade; the field on a blue band, the tags, the rows
   found (scrolling inside), the count and "show all" at the foot
   ========================================================================== */

/* No page scrolling, or scrollbar, while it's open: the body too, as its
   overflow-x: hidden would otherwise make it scroll on its own */
html.docs-popup-open,
html.docs-popup-open body,
html.docs-viewer-open,
html.docs-viewer-open body {
	overflow: hidden;
}

.docs-popup {
	position: fixed;
	inset: 0;
	z-index: 100;
	padding: 1.5rem 1.125rem 1rem;
	background: rgba(0, 0, 0, 0.25);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.docs-popup[hidden] {
	display: none;
}

.docs-popup.is-open {
	opacity: 1;
}

.docs-popup__panel {
	display: flex;
	flex-direction: column;
	width: min(49.75rem, 100%);
	max-height: 100%;
	margin-inline: auto;
	overflow: hidden;
	border-radius: 1rem;
	background: var(--color-white);
	box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.25);
	transform: translateY(-0.75rem);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.docs-popup.is-open .docs-popup__panel {
	transform: none;
}

/* The field: 48 tall, white on the light blue band; Heebo 16px. The close
   X to its left, in the band's top left corner */
.docs-popup__band {
	flex: none;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	background: var(--color-blue);
}

.docs-popup__search {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

/* A bold white X, 48 square like the field; a white tint on hover */
.docs-popup__close {
	flex: none;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0.625rem;
	background: none;
	color: var(--color-white);
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.docs-popup__close svg {
	width: 1.75rem;
	height: 1.75rem;
}

.docs-popup__close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.docs-popup__close:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 2px;
}

.docs-popup__input {
	display: block;
	width: 100%;
	height: 3rem;
	margin: 0;
	padding: 0 1.25rem 0 3.25rem;
	border: 0;
	border-radius: 0.625rem;
	background: var(--color-white);
	font-family: var(--font-ui);
	font-size: 1rem;
	font-weight: 400;
	color: #1E2939;
	text-align: right;
	-webkit-appearance: none;
	appearance: none;
}

.docs-popup__input::placeholder {
	color: #99A1AF;
	opacity: 1;
}

.docs-popup__input::-webkit-search-cancel-button {
	display: none;
}

/* (Focused as the popup opens: the caret shows it, no ring) */
.docs-popup__input:focus {
	outline: 0;
}

.docs-popup__submit {
	position: absolute;
	top: 50%;
	left: 0.875rem;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-top: -1.125rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.docs-popup__submit img {
	width: 1.25rem;
	height: 1.25rem;
}

/* The tags: Heebo 14px medium, grey rounds; the chosen one white on light
   blue */
.docs-popup__tags {
	flex: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.563rem;
	padding: 0.75rem 1.938rem;
	border-bottom: 1px solid #F3F4F6;
}

.docs-chip {
	padding: 0.219rem 0.813rem;
	border: 0;
	border-radius: 999px;
	background: #F3F4F6;
	font-family: var(--font-ui);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	color: #4A5565;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.docs-chip:hover {
	background: #E5E7EB;
}

.docs-chip.is-active {
	background: var(--color-blue);
	color: var(--color-white);
}

.docs-chip:focus-visible {
	outline: 2px solid var(--color-navy);
	outline-offset: 2px;
}

/* The rows found, as on a category's page, scrolling inside the frame */
.docs-popup__results {
	flex: 1 1 auto;
	min-height: 6rem;
	padding: 0.75rem 1.813rem 0.75rem 0.75rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

/* (It still scrolls, by wheel, touch or keys; the bar just isn't drawn) */
.docs-popup__results::-webkit-scrollbar {
	display: none;
}

.docs-popup__list {
	gap: 0.938rem;
	margin: 0;
	transition: opacity 0.25s ease;
}

.docs-popup.is-loading .docs-popup__list {
	opacity: 0.5;
}

.docs-popup .docs-item {
	--d: 0s;
}

.docs-popup__empty {
	padding: 2rem 0;
	font-family: var(--font-ui);
	font-size: 0.875rem;
	color: #6A7282;
	text-align: center;
}

.docs-popup__empty[hidden] {
	display: none;
}

/* The foot: the count (Heebo 12px), then "show all" (Fb Tubic Sans 12px,
   white on light blue), to the left */
.docs-popup__foot {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.125rem;
	padding: 0.75rem 2.125rem;
	border-top: 1px solid #F3F4F6;
}

.docs-popup__count {
	font-family: var(--font-ui);
	font-size: 0.75rem;
	line-height: 1rem;
	color: #99A1AF;
}

.docs-popup__all {
	display: inline-flex;
	align-items: center;
	height: 1.563rem;
	padding: 0 1.25rem;
	border-radius: 2.08rem;
	background: var(--color-blue);
	font-family: var(--font-body);
	font-size: 0.75rem;
	line-height: 0.858rem;
	color: var(--color-white);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.25s ease;
}

.docs-popup__all:hover {
	background: #00A652;
}

.docs-popup__all[hidden] {
	display: none;
}

.docs-popup__all:focus-visible {
	outline: 2px solid var(--color-navy);
	outline-offset: 2px;
}

@media (max-width: 766px) {

	.docs-popup {
		padding: 1.5rem 0.75rem 1rem;
	}

	.docs-popup__band {
		gap: 0.5rem;
		padding: 0.75rem;
	}

	.docs-popup__close {
		width: 2.5rem;
		height: 3rem;
	}

	.docs-popup__tags {
		flex-wrap: nowrap;
		padding: 0.75rem 1rem;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.docs-popup__tags::-webkit-scrollbar {
		display: none;
	}

	.docs-popup__results {
		padding: 0.75rem;
	}

	.docs-popup__foot {
		justify-content: space-between;
		padding: 0.75rem 1rem;
	}

	.docs-popup__all {
		height: 2.5rem;
		padding-inline: 1.5rem;
		font-size: 0.938rem;
	}
}

/* ==========================================================================
   The PDF preview (parts/pdf-viewer.php): the PDF in a white frame over a
   navy shade, with a bar on top (title, download, close)
   ========================================================================== */

.docs-viewer {
	position: fixed;
	inset: 0;
	z-index: 110;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(6, 74, 114, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.docs-viewer[hidden] {
	display: none;
}

.docs-viewer.is-open {
	opacity: 1;
}

.docs-viewer__frame {
	display: flex;
	flex-direction: column;
	width: min(60rem, 100%);
	height: 100%;
	overflow: hidden;
	border-radius: 1rem;
	background: var(--color-white);
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
	transform: scale(0.97);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.docs-viewer.is-open .docs-viewer__frame {
	transform: none;
}

.docs-viewer__bar {
	flex: none;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid #F3F4F6;
}

.docs-viewer__title {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	font-family: var(--font-heading);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.75rem;
	color: var(--color-navy);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.docs-viewer__download {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	height: 2.125rem;
	padding: 0 1.125rem;
	border-radius: 2.08rem;
	background: var(--color-blue);
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1;
	color: var(--color-white);
	text-decoration: none;
	transition: background-color 0.25s ease;
}

.docs-viewer__download:hover {
	background: #00A652;
}

.docs-viewer__download img {
	width: 1.25rem;
	height: auto;
}

.docs-viewer__close {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #F3F4F6;
	color: #4A5565;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.docs-viewer__close svg {
	width: 1.25rem;
	height: 1.25rem;
}

.docs-viewer__close:hover {
	background: var(--color-navy);
	color: var(--color-white);
}

.docs-viewer__download:focus-visible,
.docs-viewer__close:focus-visible {
	outline: 2px solid var(--color-navy);
	outline-offset: 2px;
}

/* The PDF, on grey while it loads (a ring turns until it's in) */
.docs-viewer__body {
	position: relative;
	flex: 1 1 auto;
	background: #F3F4F6;
}

.docs-viewer__pdf {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.docs-viewer.is-loaded .docs-viewer__pdf {
	opacity: 1;
}

.docs-viewer__loading {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2.5rem;
	height: 2.5rem;
	margin: -1.25rem 0 0 -1.25rem;
	border: 0.25rem solid rgba(0, 173, 241, 0.2);
	border-top-color: var(--color-blue);
	border-radius: 50%;
	animation: docs-spin 0.8s linear infinite;
}

.docs-viewer.is-loaded .docs-viewer__loading {
	display: none;
}

@media (max-width: 766px) {

	.docs-viewer {
		padding: 0.75rem;
	}

	.docs-viewer__bar {
		padding: 0.625rem 0.75rem;
	}

	.docs-viewer__title {
		font-size: 1.125rem;
	}

	.docs-viewer__download span {
		display: none;
	}

	.docs-viewer__download {
		padding: 0 0.75rem;
	}
}

/* ==========================================================================
   Contact (316 tall in the design): on the background picture, a white card
   to the right holding the title, the text and the form; the title, on its
   tilted lime block, rises out of the card's top over the hero above. The
   contact picture stands at the foot on the left, in front of the card's
   edge
   ========================================================================== */

/* Cut off at the foot and sides (the picture rising in from below stays
   inside), but open at the top, where the title rises out over the section
   above */
.docs-contact {
	position: relative;
	z-index: 1;
	background: var(--contact-image, none) #CFDDE6 center / cover no-repeat;
	clip-path: inset(-10rem 0 0 0);
}

.docs-contact__inner {
	position: relative;
	display: flex;
	min-height: 19.75rem;
	padding-block: 1.563rem 1.5rem;
}

/* The card: 388 wide (224 at most tall), 137 in from the right */
.docs-contact__content {
	position: relative;
	z-index: 1;
	width: 24.25rem;
	max-height: 14rem;
	margin-inline-start: 8.538rem;
	padding: 0 2.688rem 2.25rem;
	border-radius: 1.25rem;
	background: var(--color-white);
	animation: docs-fade 0.8s ease 0s backwards;
}

/* The picture (407 x 262 at full size), 374 wide on the section's foot */
.docs-contact__picture {
	position: absolute;
	bottom: 0;
	left: 1.125rem;
	z-index: 2;
	width: 23.375rem;
}

.docs-contact__image {
	width: 100%;
	height: auto;
}

/* Almoni Tzar 36.156px on 39.443px: navy, then light blue, on the lime
   block (367 x 86, its corners a little off square), 60px up out of the
   card and 42px past its right side */
.docs-contact__title {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: fit-content;
	min-width: 22.938rem;
	min-height: 5.375rem;
	margin-top: -3.75rem;
	margin-inline-start: -5.338rem;
	padding: 0.1rem 1rem 0.35rem;
	font-family: var(--font-heading);
	font-size: 2.26rem;
	font-weight: 600;
	line-height: 2.465rem;
	isolation: isolate;
	animation: docs-fade 0.8s ease 0.1s backwards;
}

.docs-contact__title::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #CDDC2B;
	clip-path: polygon(0 5.83%, 99.59% 0, 99.89% 87.21%, 0.95% 98.92%);
}

.docs-contact__title-top {
	color: var(--color-navy);
}

.docs-contact__title-bottom {
	color: var(--color-blue);
	text-align: left;
}

/* Fb Tubic Sans 15px on 20px */
.docs-contact__text {
	margin-top: 0.938rem;
	font-family: var(--font-body);
	font-size: 0.938rem;
	font-weight: 400;
	line-height: 1.25rem;
	color: #182F3C;
}

/* The form: 291 wide, at the card's right */
.docs-contact__form {
	width: 18.188rem;
	max-width: 100%;
	margin-top: 1.125rem;
}

/* Held until the fonts are in, then until the section comes into view
   (main.js adds .is-in) */
.js:not(.docs-ready) .docs-contact__content,
.js:not(.docs-ready) .docs-contact__title,
.js .docs-contact:not(.is-in) .docs-contact__content,
.js .docs-contact:not(.is-in) .docs-contact__title {
	animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   The Elementor form. Elementor's own styles aren't loaded on these pages
   (and the template's are stripped, parts/contact.php), so this is the
   whole of it: the field widths Elementor sets as classes, the fields, the
   file button, the send button, and the errors and messages its script
   adds (.elementor-error, .elementor-help-inline, .elementor-message).
   In the design: the name with the file button beside it, the message,
   then the send button across
   -------------------------------------------------------------------------- */

.docs-contact__form .elementor-form-fields-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0.813rem 0.688rem;
}

.docs-contact__form .elementor-field-group {
	position: relative;
	flex: 0 0 100%;
	min-width: 0;
}

.docs-contact__form .elementor-col-25 { flex-basis: calc(25% - 0.516rem); }
.docs-contact__form .elementor-col-33 { flex-basis: calc(33.333% - 0.459rem); }
.docs-contact__form .elementor-col-50 { flex-basis: calc(50% - 0.344rem); }
.docs-contact__form .elementor-col-66 { flex-basis: calc(66.666% - 0.229rem); }
.docs-contact__form .elementor-col-75 { flex-basis: calc(75% - 0.172rem); }

/* The human check (Cloudflare Turnstile, added by the form) is kept out of
   sight. Not display: none, which would stop it running: it still loads and
   checks in the background, unseen and taking no room. (Set the widget to
   "Invisible" in Cloudflare too, so it never asks for a click nobody sees.) */
.docs-contact__form .cf-turnstile,
.docs-contact__form [class*="turnstile"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* reCAPTCHA (should the form use it): a line of its own, over the button */
.docs-contact__form .elementor-field-type-recaptcha,
.docs-contact__form .elementor-field-type-recaptcha_v3 {
	flex: 0 0 100%;
	max-width: 100%;
}

.docs-contact__form .elementor-field-type-hidden,
.docs-contact__form .elementor-field-type-honeypot,
.docs-contact__form .elementor-hidden {
	display: none;
}

.docs-contact__form .elementor-screen-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Labels, should they be shown in the form's settings */
.docs-contact__form .elementor-field-label {
	display: block;
	margin-bottom: 0.25rem;
	font-family: var(--font-body);
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--color-navy);
}

.docs-contact__form .elementor-mark-required .elementor-field-label::after {
	content: " *";
	color: var(--color-blue);
}

/* The fields: white, a thin green edge and a soft shadow; Fb Tubic Sans
   11.46px on 15.585px, navy. 30 tall, the message 49 */
.docs-contact__form .elementor-field-textual {
	display: block;
	width: 100%;
	height: 1.875rem;
	margin: 0;
	padding: 0 0.75rem;
	border: 0.057rem solid var(--color-green);
	border-radius: 0.396rem;
	background: var(--color-white);
	box-shadow: 0 0.106rem 0.791rem 0 rgba(0, 0, 0, 0.1);
	font-family: var(--font-body);
	font-size: 0.716rem;
	font-weight: 400;
	line-height: 0.974rem;
	color: var(--color-navy);
	text-align: right;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.docs-contact__form textarea.elementor-field-textual {
	height: 3.063rem;
	padding-block: 0.5rem;
	resize: none;
}

.docs-contact__form .elementor-field-textual::placeholder {
	color: var(--color-navy);
	opacity: 1;
}

.docs-contact__form .elementor-field-textual:focus {
	border-color: var(--color-blue);
	outline: 0;
	box-shadow: 0 0 0 0.15rem rgba(0, 173, 241, 0.2), 0 0.106rem 0.791rem 0 rgba(0, 0, 0, 0.1);
}

/* Checkboxes and radios (an acceptance box, say) */
.docs-contact__form .elementor-field-subgroup {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--color-navy);
}

.docs-contact__form .elementor-field-option {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.docs-contact__form .elementor-field-option input {
	margin: 0;
	accent-color: var(--color-navy);
}

/* The file button: 128 wide; the field before it takes the rest of the
   row */
.docs-contact__form .elementor-field-group.elementor-field-type-upload {
	flex: 0 0 8rem;
}

.docs-contact__form .elementor-field-group:has(+ .elementor-field-type-upload) {
	flex: 1 1 0;
}

/* Its label is the button, white with a 2px light blue edge, the upload
   icon after the text (Fb Tubic Sans 12px); the real input lies over it,
   unseen. Once a file is picked its name shows (main.js) */
.docs-contact__form .elementor-field-type-upload .elementor-field-label {
	position: relative;
	display: block;
	width: 100%;
	height: 1.875rem;
	margin: 0;
	padding: 0 0.75rem 0 2.1rem;
	overflow: hidden;
	clip-path: none;
	border: 0.125rem solid var(--color-blue);
	border-radius: 2.08rem;
	background: var(--color-white);
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.625rem;
	color: var(--color-blue);
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.docs-contact__form .elementor-field-type-upload .elementor-field-label::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0.95rem;
	width: 1.063rem;
	height: 1rem;
	margin-top: -0.5rem;
	background: url("../img/upload.svg") center / contain no-repeat;
	transition: filter 0.25s ease;
}

.docs-contact__form .elementor-upload-field {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 1.875rem;
	opacity: 0;
	cursor: pointer;
}

/* (Mice only: on touch screens a tap would leave it lit) */
@media (hover: hover) {

	.docs-contact__form .elementor-field-type-upload:hover .elementor-field-label {
		background: var(--color-blue);
		color: var(--color-white);
	}

	.docs-contact__form .elementor-field-type-upload:hover .elementor-field-label::before {
		filter: brightness(0) invert(1);
	}
}

.docs-contact__form .elementor-field-type-upload:focus-within .elementor-field-label {
	outline: 2px solid var(--color-navy);
	outline-offset: 2px;
}

/* Send: across the form, 26 tall, light blue, white Fb Tubic Sans 12px */
.docs-contact__form .elementor-field-group.elementor-field-type-submit {
	flex-basis: 100%;
	margin-top: 0.188rem;
}

.docs-contact__form .elementor-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 1.625rem;
	margin: 0;
	padding: 0 1.75rem;
	border: 0;
	border-radius: 2.08rem;
	background: var(--color-blue);
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 0.858rem;
	color: var(--color-white);
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.docs-contact__form .elementor-button:hover {
	background: #00A652;
}

.docs-contact__form .elementor-button:focus-visible {
	outline: 2px solid var(--color-navy);
	outline-offset: 2px;
}

.docs-contact__form .elementor-button[disabled] {
	cursor: wait;
	opacity: 0.75;
}

.docs-contact__form .elementor-button-content-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

/* While sending Elementor puts a Font Awesome spinner in the button; the
   icon font isn't here, so a ring of our own */
.docs-contact__form .elementor-form-spinner {
	display: inline-block;
	width: 0.75rem;
	height: 0.75rem;
	overflow: hidden;
	border: 0.125rem solid rgba(255, 255, 255, 0.35);
	border-top-color: var(--color-white);
	border-radius: 50%;
	font-size: 0;
	animation: docs-spin 0.7s linear infinite;
}

.docs-contact__form .elementor-form-spinner i {
	display: none;
}

@keyframes docs-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Errors: the field's edge turns red, its message under it */
.docs-contact__form .elementor-error .elementor-field-textual {
	border-color: #D93025;
	box-shadow: 0 0 0 0.12rem rgba(217, 48, 37, 0.15), 0 0.106rem 0.791rem 0 rgba(0, 0, 0, 0.1);
}

.docs-contact__form .elementor-field-type-upload.elementor-error .elementor-field-label {
	border-color: #D93025;
}

.docs-contact__form .elementor-help-inline {
	display: block;
	margin-top: 0.25rem;
	font-family: var(--font-body);
	font-size: 0.656rem;
	line-height: 0.875rem;
	color: #C5221F;
	animation: docs-fade 0.3s ease;
}

/* The form's message after sending: thanks, or what went wrong */
.docs-contact__form .elementor-form > .elementor-message {
	margin-top: 0.75rem;
	padding: 0.45rem 0.75rem;
	border-inline-start: 0.25rem solid var(--color-green);
	border-radius: 0.396rem;
	background: #F3F9EC;
	font-family: var(--font-body);
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--color-navy);
	animation: docs-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	--rise: 0.5rem;
}

.docs-contact__form .elementor-form > .elementor-message-danger {
	border-inline-start-color: #D93025;
	background: #FFF4F3;
	color: #A5170F;
}

/* Phones and small tablets: the card across, the title still rising out of
   its top, the picture under it; bigger fields to tap, with 16px text (no
   zoom on iPhones) */
@media (max-width: 766px) {

	.docs-item__preview-text {
		    font-size: .6rem;
    line-height: .5rem;
	}

	.docs-contact__inner {
		flex-direction: column;
		min-height: 0;
		padding: 3.5rem 1rem 0;
	}

	.docs-contact__content {
		width: auto;
		max-height: none;
		margin: 0;
		padding: 0 1.25rem 1.75rem;
		border-radius: 1rem;
	}

	.docs-contact__title {
		min-width: 0;
		max-width: calc(100% + 1.5rem);
		min-height: 0;
		margin-top: -2.25rem;
		margin-inline-start: -1.5rem;
		padding: 0.4rem 1rem 0.6rem;
		font-size: 1.875rem;
		line-height: 2.125rem;
	}

	.docs-contact__text {
		margin-top: 1rem;
		font-size: 1rem;
		line-height: 1.4;
	}

	.docs-contact__form {
		width: auto;
		margin-top: 1.25rem;
	}

	.docs-contact__form .elementor-form-fields-wrapper {
		gap: 0.75rem;
	}

	.docs-contact__form .elementor-col-50 {
		flex-basis: calc(50% - 0.375rem);
	}

	.docs-contact__form .elementor-field-textual {
		height: 2.875rem;
		padding-inline: 1rem;
		border-width: 1px;
		border-radius: 0.5rem;
		font-size: 1rem;
		line-height: 1.375rem;
	}

	.docs-contact__form textarea.elementor-field-textual {
		height: 6rem;
		padding-block: 0.75rem;
	}

	.docs-contact__form .elementor-field-group.elementor-field-type-upload {
		flex-basis: 11rem;
	}

	.docs-contact__form .elementor-field-type-upload .elementor-field-label,
	.docs-contact__form .elementor-upload-field,
	.docs-contact__form .elementor-button {
		height: 2.875rem;
	}

	.docs-contact__form .elementor-field-type-upload .elementor-field-label {
		padding: 0 1rem 0 2.75rem;
		font-size: 1rem;
		line-height: 2.625rem;
	}

	.docs-contact__form .elementor-field-type-upload .elementor-field-label::before {
		left: 1.1rem;
		width: 1.25rem;
		height: 1.188rem;
		margin-top: -0.594rem;
	}

	.docs-contact__form .elementor-button {
		font-size: 1rem;
		line-height: 1;
	}

	.docs-contact__form .elementor-help-inline {
		font-size: 0.813rem;
		line-height: 1.1rem;
	}

	.docs-contact__form .elementor-form > .elementor-message {
		font-size: 0.938rem;
		line-height: 1.35rem;
	}

	.docs-contact__picture {
		position: relative;
		left: auto;
		width: min(23.375rem, 100%);
		margin: 1rem auto 0;
	}
}

/* Phones: a field to a line */
@media (max-width: 575px) {

	.docs-contact__form .elementor-field-group[class*="elementor-col-"],
	.docs-contact__form .elementor-field-group.elementor-field-type-upload,
	.docs-contact__form .elementor-field-group:has(+ .elementor-field-type-upload) {
		flex: 0 0 100%;
	}
}

@media (prefers-reduced-motion: reduce) {

	.docs-header.is-open .docs-cats,
	.docs-archive__title,
	.docs-list-box,
	.docs-item,
	.docs-hero__title,
	.docs-hero__label,
	.docs-slide,
	.docs-slider .owl-nav button.owl-prev,
	.docs-slider .owl-nav button.owl-next,
	.docs-contact__content,
	.docs-contact__title,
	.docs-contact__form .elementor-help-inline,
	.docs-contact__form .elementor-form > .elementor-message {
		animation: none;
	}

	.docs-card,
	.docs-search::before,
	.docs-popup,
	.docs-popup__panel,
	.docs-viewer,
	.docs-viewer__frame {
		transition: none;
	}
}

/* ==========================================================================
   Phones and small tablets: the logo, search and menu button on a row, the
   categories in a panel under it (without JavaScript, a row scrolled
   sideways); one card at a time, two from 576 wide
   ========================================================================== */

@media (max-width: 766px) {

	.docs-header__inner {
		position: relative;
		gap: 0.75rem;
		padding: 0.75rem 1rem 0;
	}

	.docs-header__logo {
		margin: 0;
	}

	.docs-header__logo img {
		width: 8.5rem;
		height: auto;
	}

	.docs-search {
		margin: 0;
		margin-inline-start: auto;
	}

	.js .docs-burger {
		display: flex;
	}

	/* The panel: navy, under the header row, the categories one per line */
	.js .docs-cats {
		position: absolute;
		top: 100%;
		right: 1rem;
		left: 1rem;
		display: none;
		margin-top: 0.75rem;
		padding: 1.25rem 1rem;
		border-radius: 0.5rem;
		background: var(--color-navy);
		box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
	}

	.js .docs-header.is-open .docs-cats {
		display: block;
		animation: docs-drop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.js .docs-cats__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.625rem;
	}

	.js .docs-cats__list a {
		padding: 0.1rem 0.5rem 0;
		font-size: 1.375rem;
		line-height: 1.75rem;
	}

	/* (navy on navy would vanish) */
	.js .docs-cats__list a:hover,
	.js .docs-cats__list .current-menu-item > a {
		background: var(--color-white);
		color: var(--color-navy);
	}

	.no-js .docs-header__inner {
		flex-wrap: wrap;
		row-gap: 0.875rem;
	}

	.no-js .docs-cats {
		flex: 0 0 100%;
		margin-inline: -1rem;
		padding-inline: 1rem;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.no-js .docs-cats::-webkit-scrollbar {
		display: none;
	}

	.no-js .docs-cats__list {
		flex-wrap: nowrap;
		gap: 0.625rem;
		width: max-content;
		padding-bottom: 0.25rem;
	}

	.no-js .docs-cats__list a {
		font-size: 1.125rem;
	}

	.docs-hero {
		min-height: 0;
		padding: 7.5rem 0 2.5rem;
	}

	.no-js .docs-hero {
		padding-top: 10.75rem;
	}

	.docs-hero__title {
		padding-inline: 1rem;
		font-size: 3.3rem;
		line-height: 1.15;
	}

	.docs-hero__label {
		margin-top: 2.25rem;
		font-size: 1.75rem;
		line-height: 1.2;
	}

	.docs-slider {
		width: calc(100% - 4rem);
		margin-top: 0.75rem;
	}

	.docs-slider .owl-item {
		padding-inline: 0.5rem;
	}

	.docs-slider .owl-nav button.owl-prev {
		right: -1.75rem;
	}

	.docs-slider .owl-nav button.owl-next {
		left: -1.75rem;
	}

	.docs-slider .owl-nav button.owl-prev,
	.docs-slider .owl-nav button.owl-next {
		top: 10rem;
		width: 1.75rem;
		height: 1.75rem;
		margin-top: -0.875rem;
	}

	.docs-card {
		height: 20rem;
		padding: 0 1rem 1.25rem;
	}

	.docs-card__badge {
		font-size: 0.7rem;
		line-height: 1;
		padding: 0.35rem 0.75rem;
	}

	.docs-card__title {
		margin-top: 0.4rem;
		font-size: 1.75rem;
		line-height: 1.2;
	}

	.docs-card__text {
		font-size: 1rem;
		line-height: 1.3;
	}

	.docs-card__button {
		margin-top: 0.9rem;
		padding: 0.6rem 1.25rem;
		font-size: 0.9375rem;
		line-height: 1;
	}

	.no-js .docs-slider {
		overflow-x: auto;
	}

	.no-js .docs-slider > .docs-slide {
		flex-basis: 85%;
	}
}

@media (min-width: 576px) and (max-width: 766px) {

	.no-js .docs-slider > .docs-slide {
		flex-basis: calc(50% - 1rem);
	}
}

/* The narrowest phones: a smaller logo, so the row still fits */
@media (max-width: 380px) {

	.docs-header__inner {
		gap: 0.5rem;
	}

	.docs-header__logo img {
		width: 6.5rem;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.docs-footer {
	padding-block: 2rem;
}

.docs-footer__copy {
	font-size: 0.75rem;
	text-align: center;
}
