/* AER Site: homepage "Download the latest report?" dialog (assets/reports-download.js). aer-rp-* names only.
   The report card's own styles live in its Elementor loop item; the Reports page's in its page CSS. */

/* Page does not scroll while the dialog is open; the scrollbar's space is kept so nothing shifts. */
html.aer-rp-locked { overflow: hidden; scrollbar-gutter: stable; }

.aer-rp-dialog { box-sizing: border-box; width: calc(100% - 32px); max-width: 480px; margin: auto; padding: 0; border: 1px solid #E2E7E3; border-radius: 4px; background: #FFFFFF; color: #111827; font-family: inherit; box-shadow: 0 10px 28px rgba(1, 67, 29, 0.14); }
.aer-rp-dialog::backdrop { background: rgba(0, 43, 18, 0.6); }
.aer-rp-dialog-inner { padding: 32px; }
.aer-rp-dialog-h { margin: 0; font-family: inherit; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: #111827; }
.aer-rp-dialog-d { margin-top: 16px; }
.aer-rp-dialog-title { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 600; color: #111827; overflow-wrap: anywhere; }
.aer-rp-dialog-meta { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #55606E; font-variant-numeric: tabular-nums; }
.aer-rp-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.aer-rp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Both actions: 44px tall controls, 6px radius. Hello Elementor's reset (#c36 on button:hover and :focus, pink
   borders and padding on button, #c36 links) never shows: every state is set explicitly below. */
.aer-rp-dialog .aer-rp-dialog-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; padding: 11px 22px; border: 1px solid #01431D; border-radius: 6px; font-family: inherit; font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: normal; text-transform: none; text-decoration: none; box-shadow: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.aer-rp-dialog .aer-rp-dialog-btn svg { flex: 0 0 auto; }
.aer-rp-dialog .aer-rp-dialog-btn:focus { outline: none; }
.aer-rp-dialog .aer-rp-dialog-btn:focus-visible { outline: 2px solid #01431D; outline-offset: 2px; }

/* Download: solid green, white text. Not yellow: yellow is reserved for the data platform. */
.aer-rp-dialog .aer-rp-dialog-download,
.aer-rp-dialog .aer-rp-dialog-download:visited,
.aer-rp-dialog .aer-rp-dialog-download:focus { background: #01431D; border-color: #01431D; color: #FFFFFF; }
.aer-rp-dialog .aer-rp-dialog-download:hover,
.aer-rp-dialog .aer-rp-dialog-download:active { background: #2D7D4F; border-color: #2D7D4F; color: #FFFFFF; }

/* Cancel: white, green outline and text. */
.aer-rp-dialog .aer-rp-dialog-cancel,
.aer-rp-dialog .aer-rp-dialog-cancel:focus { background: #FFFFFF; border-color: #01431D; color: #01431D; }
.aer-rp-dialog .aer-rp-dialog-cancel:hover,
.aer-rp-dialog .aer-rp-dialog-cancel:active { background: #FFFFFF; border-color: #2D7D4F; color: #2D7D4F; }

@media (max-width: 767px) {
	.aer-rp-dialog-inner { padding: 24px 20px; }
	.aer-rp-dialog-h { font-size: 20px; }
	.aer-rp-dialog .aer-rp-dialog-btn { flex: 1 1 140px; }
}
