/*
Theme Name: EFEL Rebuild
Description: Shared WordPress templates for Eagle Forum Education and Legal.
Version: 0.1.19
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: efel-rebuild
*/
.review-site { --display: Georgia, 'Times New Roman', serif; }
.review-site .review-header-bar, .site-header, .utility-bar { background: #fff; }
.review-site input, .review-site textarea, .review-site select { color: #202b3c; }
.entry-content > :first-child { margin-top: 0; }
.entry-content iframe { max-width: 100%; }
.detail-layout.efel-builder { display: block; }
.efel-builder .detail-body { width: 100%; min-width: 0; }
.entry-content .wp-block-image img { height: auto; }
.entry-content .alignwide { width: 100%; }
.entry-content .alignleft { float: left; margin: 0 24px 20px 0; }
.entry-content .alignright { float: right; margin: 0 0 20px 24px; }
.entry-content::after { content: ''; display: table; clear: both; }
.efel-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; padding-block: 48px; }
.efel-card { min-width: 0; overflow-wrap: anywhere; }
.efel-card img { width: 100%; height: 230px; object-fit: cover; }
.efel-card h2 { font-size: 1.9rem; margin-block: 18px 12px; }
.efel-card a { text-decoration: none; }
.efel-card p { font-size: 18px; }
.efel-card time { font: 12px var(--edit-sans); }
.efel-pagination { padding-block: 20px 60px; }
.efel-pagination .page-numbers { display: inline-block; padding: 12px; }
.efel-search { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 28px; }
.efel-search input { flex: 1; min-width: 180px; }
.efel-search button { background: var(--blue-deep); color: #fff; padding: 14px 24px; }
.efel-related { padding-bottom: 70px; border-top: 1px solid var(--line); }
.efel-related h2 { padding-top: 35px; }
.detail-aside { position: sticky; top: 40px; }
.admin-bar .site-header { top: 32px; }
.prose { font-weight: 400; }
@media(max-width: 850px) { .efel-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } .detail-aside { position: static; } }
@media(max-width: 550px) { .efel-cards { grid-template-columns: minmax(0,1fr); } .entry-content .alignleft,.entry-content .alignright { float: none; margin: 20px 0; } }

.detail-body, .entry-content { min-width: 0; }
.entry-content figure, .entry-content form, .entry-content input, .entry-content textarea, .entry-content select { max-width: 100%; box-sizing: border-box; }
.entry-content .wpcf7-form-control-wrap { display: block; }
.entry-content .wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .entry-content .wpcf7 textarea { width: 100%; }
.efel-gallery-dialog { width: min(96vw, 1100px); max-width: 1100px; max-height: 96vh; padding: 12px; border: 0; background: #fff; color: #202b3c; box-shadow: 0 20px 70px #0008; }
.efel-gallery-dialog::backdrop { background: #000c; }
.efel-gallery-dialog img { display: block; width: auto; max-width: 100%; max-height: calc(96vh - 90px); margin: auto; object-fit: contain; }
.efel-gallery-dialog [data-gallery-close] { display: block; margin-left: auto; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.efel-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.efel-gallery-controls button { border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; }
.efel-gallery-controls p { margin: 0; font: 14px Arial, sans-serif; }
