/* Download area (Kyranis_Downloads, task #270; rows Mongi 2026-11-03): one document per row across
   the page, its first page beside what it is; the form opens under the row that asked for it. */
.kz-dl { max-width: 1100px; margin: 0 auto; }
.kz-dl-group { margin: 48px 0 0; padding: 0 0 12px; font-size: 26px; line-height: 1.3; color: #14212b; border-bottom: 3px solid #00aeef; }
.kz-dl-group:first-child { margin-top: 8px; }
.kz-dl-list { list-style: none; margin: 0; padding: 0; }
.kz-dl-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 44px; margin: 0; padding: 40px 0; border-bottom: 1px solid #dfe7ed; scroll-margin-top: 110px; }
.kz-dl-row:last-child { border-bottom: 0; }

/* The first page, lying on its second page. */
.kz-dl-cover { position: relative; display: block; align-self: start; width: 200px; margin: 6px 0 0; }
.kz-dl-cover::before { content: ""; position: absolute; inset: 0; background: #fff; border: 1px solid #dfe7ed; transform: translate(-9px, 9px) rotate(-2.5deg); box-shadow: 0 6px 18px rgba(20, 33, 43, .08); }
.kz-dl-cover img { position: relative; display: block; width: 100%; height: auto; background: #fff; border: 1px solid #dfe7ed; box-shadow: 0 1px 2px rgba(20, 33, 43, .12), 0 12px 28px rgba(20, 33, 43, .14); transition: transform .2s ease; }
.kz-dl-row:hover .kz-dl-cover img, .kz-dl-row[aria-current="true"] .kz-dl-cover img { transform: translateY(-4px); }

.kz-dl-text { min-width: 0; }
.kz-dl-meta { margin: 0; font-size: 14px; line-height: 1.5; color: #5b6b77; }
.kz-dl-fact { display: inline-block; }
.kz-dl-fact + .kz-dl-fact::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 9px 3px; vertical-align: middle; background: #9fb1bd; border-radius: 50%; }
.kz-dl-kind { display: inline-block; margin-inline-end: 8px; padding: 2px 9px; font-size: 13px; font-weight: 700; color: #fff; background: #14212b; border-radius: 3px; }
.kz-dl-name { margin: 10px 0 4px; font-size: 25px; line-height: 1.25; color: #14212b; }
.kz-dl-sub { margin: 0 0 12px; font-size: 16px; font-weight: 600; line-height: 1.45; color: #0088bb; }
.kz-dl-excerpt { max-width: 68ch; margin: 0 0 18px; font-size: 16px; line-height: 1.7; color: #33434f; }
.kz-dl-inside-h { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #14212b; }
.kz-dl-inside { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 22px; padding: 0; list-style: none; }
.kz-dl-inside li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: #33434f; }
/* Ticked: these parts are in the PDF. */
.kz-dl-inside li::before { content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%; background: #00aeef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.kz-dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0; }
.kz-dl-pick { display: inline-block; padding: 12px 22px; font-weight: 700; font-size: 15px; line-height: 1.2; color: #fff; background: #00aeef; border-radius: 4px; text-decoration: none; }
.kz-dl-pick:hover, .kz-dl-pick:focus-visible { color: #fff; background: #0088bb; }
.kz-dl-pick:focus-visible, .kz-dl-guide:focus-visible { outline: 2px solid #14212b; outline-offset: 3px; }
.kz-dl-row[aria-current="true"] .kz-dl-pick { background: #14212b; }
.kz-dl-guide { font-weight: 600; font-size: 15px; color: #0088bb; text-decoration: underline; text-underline-offset: 3px; }
.kz-dl-guide:hover { color: #14212b; }

/* The form: at the end without script; under the chosen row with it. */
.kz-dl-form { margin: 40px 0 0; padding: 28px 32px; background: #0a2240; color: #fff; border-radius: 6px; }
/* Across the page width like the other boxes; the fields side by side on wide screens (Mongi 2026-11-04). */
@media (min-width: 900px) {
	.kz-dl-form { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(0, 2.6fr); gap: 0 12px; align-items: end; }
	.kz-dl-form > :not(.kz-dl-field--doc):not(.kz-dl-fields) { grid-column: 1 / -1; }
	.kz-dl-form > .kz-dl-field--doc { margin: 0; }
	.kz-dl-form .kz-dl-fields { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.6fr) auto; gap: 12px; align-items: end; }
	.kz-dl-form .kz-dl-fields .kz-dl-field { margin: 0; }
	.kz-dl-form .kz-dl-fields button { width: auto; margin: 0; }
	.kz-dl-form > .kz-dl-note, .kz-dl-form > .kz-dl-answer { margin-top: 14px; }
	.kz-dl-slot .kz-dl-form { display: block; }
}
.kz-dl-slot .kz-dl-form { max-width: none; margin: 22px 0 0; animation: kz-dl-open .25s ease-out; }
@keyframes kz-dl-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.kz-dl-slot .kz-dl-title { font-size: 18px; }
.kz-dl-slot .kz-dl-field--doc { display: none; }
.kz-dl-slot .kz-dl-fields { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.6fr) auto; gap: 12px; align-items: end; }
.kz-dl-slot .kz-dl-fields .kz-dl-field { margin: 0; }
.kz-dl-slot .kz-dl-form button { width: auto; margin: 0; }
.kz-dl-title { margin: 0 0 14px; font-size: 21px; line-height: 1.3; color: #fff; }
.kz-dl-field { margin: 0 0 12px; }
.kz-dl-field label { display: block; margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #c9d6df; }
.kz-dl-field select, .kz-dl-field input { width: 100%; height: 46px; margin: 0; padding: 0 12px; font-size: 15px; color: #14212b; background: #fff; border: 2px solid #fff; border-radius: 4px; box-sizing: border-box; }
.kz-dl-field input[aria-invalid="true"] { border-color: #e0a100; }
.kz-dl-form button { width: 100%; height: 46px; margin: 4px 0 0; padding: 0 22px; font-weight: 700; color: #fff; background: #00aeef; border: 0; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.kz-dl-form button:hover, .kz-dl-form button:focus-visible { background: #0098d1; outline: 2px solid #fff; outline-offset: 2px; }
.kz-dl-form button[disabled] { opacity: .7; cursor: wait; }
.kz-dl-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #c9d6df; }
.kz-dl-note a { color: #fff; text-decoration: underline; }
.kz-dl-answer { margin: 12px 0 0; padding: 12px 14px; font-size: 15px; line-height: 1.5; color: #14212b; background: #fff; border-inline-start: 6px solid #00aeef; border-radius: 4px; }
.kz-dl-answer:empty { display: none; }
.kz-dl-form[data-state="sent"] .kz-dl-answer { color: #1e6b2f; background: #eef8f0; border-inline-start-color: #2e9e48; }
.kz-dl-form:is([data-state="failed"], [data-state="limit"], [data-state="off"]) .kz-dl-answer { color: #8a1f1f; background: #fdf0f0; border-inline-start-color: #d63638; }
.kz-dl-form:is([data-state="invalid"], [data-state="expired"]) .kz-dl-answer { color: #6b4500; background: #fff8e5; border-inline-start-color: #e0a100; }
.kz-dl-form .kz-newsletter-hp { position: absolute; right: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* On a guide page: the box after its documents and steps. */
.kz-dl-cta { display: flex; align-items: center; gap: 18px; margin: 26px 0 0; padding: 16px 20px; background: #eef6fa; border-inline-start: 4px solid #00aeef; border-radius: 4px; }
.kz-dl-cta img { flex: 0 0 64px; width: 64px; height: auto; background: #fff; border: 1px solid #dfe7ed; box-shadow: 0 6px 14px rgba(20, 33, 43, .14); }
.kz-dl-cta-text { flex: 1 1 0; min-width: 0; }
.kz-dl-cta .kz-dl-cta-text p { margin: 0; font-size: 15px; line-height: 1.5; color: #33434f; }
.kz-dl-cta .kz-dl-cta-text p.kz-dl-cta-h { margin: 0 0 2px; font-size: 17px; font-weight: 700; color: #14212b; }
.kz-dl-cta .kz-dl-pick { flex: 0 0 auto; }
.kz-dl-cta { flex-wrap: wrap; }
.kz-dl-cta .kz-dl-slot { flex: 1 1 100%; }
.kz-dl-cta .kz-dl-slot[hidden] { display: none; }
.kz-dl-cta.is-open .kz-dl-pick { display: none; }

@media (max-width: 800px) {
	.kz-dl-row { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 30px 0; }
	.kz-dl-cover { width: 120px; }
	.kz-dl-name { font-size: 21px; }
	.kz-dl-slot .kz-dl-fields { grid-template-columns: 1fr; }
	.kz-dl-slot .kz-dl-form button { width: 100%; }
	.kz-dl-cta { flex-wrap: wrap; }
}
@media (max-width: 520px) {
	.kz-dl-row { grid-template-columns: 84px minmax(0, 1fr); gap: 0 16px; }
	.kz-dl-cover { grid-row: 1 / 4; width: 84px; }
	.kz-dl-cover::before { transform: translate(-5px, 5px) rotate(-2.5deg); }
	.kz-dl-text { display: contents; }
	.kz-dl-meta, .kz-dl-name, .kz-dl-sub { grid-column: 2; }
	.kz-dl-name { margin-top: 6px; font-size: 19px; }
	.kz-dl-excerpt, .kz-dl-inside-h, .kz-dl-inside, .kz-dl-actions, .kz-dl-slot { grid-column: 1 / -1; }
	.kz-dl-excerpt { margin-top: 14px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.kz-dl-cover img, .kz-dl-slot .kz-dl-form { transition: none; animation: none; }
}

/* The guide pages force paragraph margins (.kz-lp-wrap p … !important in landing.css): undo them in the box. */
.kz-lp-wrap .kz-dl-cta p { margin: 0 !important; }
.kz-lp-wrap .kz-dl-cta p.kz-dl-cta-h { margin: 0 0 2px !important; }
.kz-lp-wrap .kz-dl-cta p.kz-dl-note, .kz-lp-wrap .kz-dl-cta p.kz-dl-answer { margin: 12px 0 0 !important; }

/* Full width (Mongi 2026-11-04, task #339): the list uses the page width, the descriptions
   their whole column, and the email form opened under a document spans the whole row,
   under the cover too. */
.kz-dl { max-width: none; }
.kz-dl-excerpt { max-width: none; }
.kz-dl-row .kz-dl-slot .kz-dl-form { margin-inline-start: calc(-200px - 44px); }
@media (max-width: 800px) { .kz-dl-row .kz-dl-slot .kz-dl-form { margin-inline-start: calc(-120px - 24px); } }
@media (max-width: 520px) { .kz-dl-row .kz-dl-slot .kz-dl-form { margin-inline-start: 0; } }
