/* AMAR archive request form (mu-plugins/amar-archive-request.php). Square, ruled, ink on paper, like the site. */
.amr-req-page .entry-layout { display: block; }
body.amr-req-page .entry-layout .entry-content { max-width: 1120px; }
.amr-req { margin-block: 8px 48px; scroll-margin-top: 120px; }
.amr-req__grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(240px, 1fr); gap: 32px 48px; align-items: start; }
.amr-req fieldset { border: 0; border-top: 1px solid var(--line, #a8a8a0); margin: 0 0 28px; padding: 18px 0 0; min-width: 0; }
.amr-req legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #595955); }
.lang-ar .amr-req legend { float: right; letter-spacing: 0; font-size: 15px; }
.amr-req legend + * { clear: both; }
.amr-req__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.amr-req__f { margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.amr-req__f--short { max-width: 260px; }
.amr-req label { font-weight: 500; font-size: var(--text-small, 14px); }
.amr-req__star { color: var(--accent, #ce5a36); margin-inline-start: 3px; }
.amr-req__opt { margin-inline-start: 8px; font-weight: 400; color: var(--muted, #595955); }
.amr-req__opt::before { content: "("; } .amr-req__opt::after { content: ")"; }
.amr-req__hint { font-size: var(--text-small, 14px); color: var(--muted, #595955); line-height: 1.5; }
.amr-req input[type="text"], .amr-req input[type="email"], .amr-req input[type="tel"], .amr-req input[type="date"], .amr-req select, .amr-req textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--ink, #22221f); border-radius: 0; background: #fff; color: var(--ink, #22221f);
	font: 400 16px/1.5 var(--font, Manrope, Arial, sans-serif); box-sizing: border-box;
}
.lang-ar .amr-req input, .lang-ar .amr-req select, .lang-ar .amr-req textarea { font-family: var(--font-ar, 'Noto Sans Arabic', Tahoma, sans-serif); }
.amr-req textarea { resize: vertical; min-height: 120px; }
.amr-req select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 36px; }
.lang-ar .amr-req select { background-position: 13px 50%, 18px 50%; }
.amr-req input:focus-visible, .amr-req select:focus-visible, .amr-req textarea:focus-visible { outline: 2px solid var(--accent, #ce5a36); outline-offset: 2px; }
.amr-req [aria-invalid="true"] { border-color: #a3321b; box-shadow: inset 0 0 0 1px #a3321b; }
.amr-req__err { margin: 0; color: #a3321b; font-size: var(--text-small, 14px); font-weight: 500; }
.amr-req__alert { border: 1px solid #a3321b; background: #fbf1ee; padding: 12px 16px; margin: 0 0 24px; }
.amr-req__alert p { margin: 0; color: #a3321b; font-weight: 500; }
.amr-req__consent { margin: 0 0 22px; }
.amr-req__consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: var(--text-body, 16px); cursor: pointer; }
.amr-req__consent input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--ink, #22221f); }
.amr-req__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.amr-req__send .ed-button { min-height: 48px; padding-inline: 24px; }
.amr-req__note { font-size: var(--text-small, 14px); color: var(--muted, #595955); }
.amr-req__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.amr-req__side { border: 1px solid var(--line, #a8a8a0); outline: 1px dashed var(--line, #a8a8a0); outline-offset: -9px; padding: 26px; position: sticky; top: 120px; }
.editorial .amr-req .amr-req__side h2 { margin: 0 0 12px; font-size: 22px; font-weight: 500; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.amr-req__side p { margin: 0 0 12px; font-size: var(--text-small, 14px); line-height: 1.6; }
.amr-req__side p:last-child { margin-bottom: 0; }
.amr-req__mail a { display: inline-block; color: inherit; font-weight: 600; white-space: nowrap; }
.amr-req__done { border-block: 1px solid var(--line, #a8a8a0); padding: 40px 0; max-width: 720px; }
.editorial .amr-req .amr-req__done h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; line-height: 1.15; text-transform: none; letter-spacing: 0; }
@media (max-width: 900px) {
	.amr-req__grid { grid-template-columns: minmax(0, 1fr); }
	.amr-req__side { position: static; }
}
@media (max-width: 560px) {
	.amr-req__row { grid-template-columns: minmax(0, 1fr); }
	.amr-req__f--short { max-width: none; }
	.amr-req__send .ed-button { width: 100%; }
}

/* 2.0: the fields of the paper request form (yes/no questions, item lines, conditions) */
.amr-req__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.amr-req fieldset.amr-req__q { border-top: 0; padding: 4px 0 0; margin: 0 0 18px; }
.amr-req .amr-req__ql { float: none; margin: 0 0 8px; font-size: var(--text-small, 14px); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink, #22221f); }
.lang-ar .amr-req .amr-req__ql { float: none; font-size: var(--text-small, 16px); }
.amr-req__yn { display: flex; gap: 24px; margin: 0 0 10px; }
.amr-req__yn label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; font-size: var(--text-body, 16px); cursor: pointer; }
.amr-req__yn input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink, #22221f); }
.amr-req__more label { font-weight: 400; color: var(--muted, #595955); }
.amr-req__more textarea { min-height: 84px; }
.amr-req__items { margin: 0 0 10px; padding-inline-start: 26px; display: grid; gap: 10px; }
.amr-req__items li::marker { color: var(--muted, #595955); font-size: var(--text-small, 14px); }
.amr-req__moreitems { margin: 4px 0 8px; }
.amr-req__moreitems summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 500; font-size: var(--text-small, 14px); text-decoration: underline; text-underline-offset: 4px; }
.amr-req__moreitems[open] summary { margin-bottom: 8px; }
.amr-req fieldset > .amr-req__hint { display: block; margin: 0 0 12px; }
.amr-req__condtext { max-height: 340px; overflow: auto; border: 1px solid var(--line, #a8a8a0); background: #fff; padding: 18px 22px; margin: 0 0 18px; font-size: var(--text-small, 14px); line-height: 1.6; }
.amr-req__condtext:focus-visible { outline: 2px solid var(--accent, #ce5a36); outline-offset: 2px; }
.editorial .amr-req .amr-req__condtext h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; line-height: 1.35; text-transform: none; letter-spacing: 0; }
.amr-req__condtext p, .amr-req__condtext li { margin: 0 0 10px; max-width: none; }
.amr-req__condtext ol { margin: 0; padding-inline-start: 22px; }
.amr-req__lbl { font-weight: 500; font-size: var(--text-small, 14px); }
.amr-req__today { display: flex; align-items: center; min-height: 46px; padding: 10px 12px; border: 1px dashed var(--line, #a8a8a0); color: var(--muted, #595955); }
.lang-ar .amr-req__today { justify-content: flex-end; }
.amr-req__steps { margin: 0 0 12px; padding-inline-start: 20px; font-size: var(--text-small, 14px); line-height: 1.6; }
.amr-req__steps li { margin: 0 0 8px; }

/* 2.1: the paper form's title block and the "Name of the applicant" heading */
.amr-req__title { margin: 0 0 22px; }
.editorial .amr-req .amr-req__title h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.editorial .amr-req .amr-req__title h2 span { font-weight: 400; }
.amr-req__title p { margin: 4px 0 0; font-size: var(--text-small, 14px); color: var(--muted, #595955); }
.amr-req__sub { margin: 0 0 8px; font-weight: 600; font-size: var(--text-small, 14px); }
.amr-req__condtext li p { margin: 0 0 8px; }

/* 2.2: the blank paper form to download */
.amr-req__paper { margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line, #a8a8a0); }
.editorial .amr-req .amr-req__paper h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.amr-req__pdf { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--ink, #22221f); color: var(--ink, #22221f); text-decoration: none; font-weight: 600; font-size: var(--text-small, 14px); }
.amr-req__pdf:hover { background: var(--ink, #22221f); color: var(--paper, #f1f0ec); }
.amr-req__pdf small { font-weight: 400; font-size: 12px; opacity: .8; }
.lang-ar .amr-req__pdf small { text-align: end; }
