/* WordPress and Elementor adjustments on top of main.css (Django styles). */

/* Fixed header below the WP admin bar for logged-in editors */
.admin-bar .header.fixed { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .header.fixed { top: 46px; }
}

/* Same content width as Django's %containerInsidePage (1134px) */
.inside-page-container .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1134px; }
.inside-page-container .e-con { --container-max-width: 1134px; }

/* Django set html{font-size:10px}; keep Elementor text from shrinking */
.elementor-widget-text-editor,
.elementor-widget-text-editor p { font-size: 1.4rem; line-height: 1.7; }

/* Headings inherit the Django typography (Effra / Roboto) */
.elementor-widget-heading .elementor-heading-title { font-family: inherit; color: inherit; }

/* Lists inside content: main.css resets ul in .app__content, restore them in editor content */
.app__content .elementor-widget-text-editor ul,
.app__content .container--inside-page > ul { list-style: disc; padding-left: 2em; margin: 0 0 1em; }
.app__content .elementor-widget-text-editor ol { padding-left: 2em; }

/* Sidebar page templates (Django sidebar_left / sidebar_right) */
.mm-sidebar-layout { display: flex; gap: 40px; align-items: flex-start; }
.mm-sidebar-layout .sidebar { flex: 0 0 280px; }
.mm-sidebar-layout .content { flex: 1 1 auto; min-width: 0; }
@media (max-width: 960px) {
	.mm-sidebar-layout { flex-direction: column; }
	.mm-sidebar-layout .sidebar { flex-basis: auto; width: 100%; }
}

/* News list heading uses h1 in WP (was h2 in Django) for a proper single H1 */
.news-page h1 { font-size: 4rem; line-height: 4.8rem; font-weight: normal; font-family: 'effra', 'Roboto', sans-serif; color: #272727; margin: 40px 0; }

/* Pagination */
.news-page .pagination { text-align: center; margin: 30px 0; font-size: 1.4rem; }
.news-page .pagination .page-numbers { padding: 6px 12px; }

/* WP core helpers */
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 1.2rem; color: #696969; }
