/* Shared editorial cards and native WordPress journal templates. */
.efh-journal { padding-top: 44px; padding-bottom: 80px; }
.efh-journal__header { margin-bottom: 38px; }
.efh-journal__header h1 { margin: 0 0 16px; color: #706f6f; font-size: 30px; line-height: 1.25; font-weight: 600; }
.efh-journal__description { max-width: 900px; }
.efh-journal__description > :last-child { margin-bottom: 0; }
.efh-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 42px 36px; }
.efh-post-card { box-sizing: border-box; min-width: 0; margin: 0; padding: 20px; border: 1px solid #d8d8d8; background: #fff; }
.efh-post-card__image { display: block; position: relative; aspect-ratio: 1; overflow: hidden; margin: -20px -20px 20px; border: 2px solid #d8d8d8; background: #706f6f; }
.efh-post-card__image img { display: block; width: 100%; height: 100%; max-width: 100%; margin: 0; object-fit: contain; }
.efh-post-card__title { margin: 0 0 10px; color: #706f6f; font-size: 22px; line-height: 1.3; font-weight: 600; overflow-wrap: break-word; }
.efh-post-card__title a { color: inherit; text-decoration: none; }
.efh-post-card__title a:hover { color: #86bc35; }
.efh-post-card__meta { margin: 0; color: #706f6f; font-size: 14px; line-height: 1.5; }
.efh-post-card__meta a { color: inherit; text-decoration: none; }
.efh-post-card__meta span { display: inline-block; padding: 0 3px; }
.efh-post-card__excerpt { margin: 12px 0 0; color: #706f6f; font-size: 16px; line-height: 1.5; }
.efh-post-card__more { display: inline-block; margin-top: 14px; color: #86bc35; font-size: 16px; text-decoration: none; }
.efh-post-card a:focus-visible { outline: 3px solid #86bc35; outline-offset: 4px; }
.efh-post-carousel { display: grid; grid-auto-columns: calc((100% - 72px)/3); grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; }
.efh-post-carousel .efh-post-card { scroll-snap-align: start; }
.efh-journal-pagination,
.efh-blog-pagination,
.efh-pagination { margin-top: 38px; }
.efh-journal-pagination .nav-links,
.efh-blog-pagination .nav-links,
.efh-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.efh-journal-pagination .page-numbers,
.efh-blog-pagination .page-numbers,
.efh-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 38px; box-sizing: border-box; padding: 5px 10px; border: 1px solid #d8d8d8; border-radius: 4px; color: #706f6f; text-decoration: none; font-size: 16px; line-height: 1.4; }
.efh-journal-pagination .current,
.efh-blog-pagination .current,
.efh-pagination .current { border-color: #86bc35; background: #86bc35; color: #fff; }
.efh-journal-pagination a:hover,
.efh-blog-pagination a:hover,
.efh-pagination a:hover { border-color: #86bc35; color: #547b1f; }
.efh-journal-pagination a:focus-visible,
.efh-blog-pagination a:focus-visible,
.efh-pagination a:focus-visible { outline: 3px solid #86bc35; outline-offset: 3px; }
.efh-journal-pagination .nav-previous,
.efh-journal-pagination .nav-next { flex: 1; min-width: 200px; }
.efh-journal-pagination .nav-next { text-align: right; }
.efh-journal-breadcrumbs { margin-bottom: 24px; color: #706f6f; font-size: 14px; }
.efh-journal-empty { max-width: 720px; }
.efh-journal-empty .search-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 24px; }
.efh-journal-empty .search-form label { flex: 1 1 280px; }
.efh-journal-empty .search-field { box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #d8d8d8; border-radius: 8px; background: #fff; color: #706f6f; font: inherit; }
.efh-journal-empty .search-submit { min-height: 48px; padding: 10px 20px; border: 2px solid #86bc35; border-radius: 8px; background: #86bc35; color: #fff; font: inherit; cursor: pointer; }

/* Search template: measurements from the original public search design. */
.efh-journal--search { padding: 0; }
.efh-journal--search .efh-container { width: 80%; }
.efh-search-hero { padding: 80px 0; background-color: #f9f9f9; background-image: var(--efh-search-fingerprint); background-repeat: no-repeat; background-size: 22% auto; background-position: right -3% bottom -100%; }
.efh-search-hero h1 { margin: 0 0 20px; padding: 0 0 10px; color: #706f6f; font-size: 37px; line-height: 1.2; font-weight: 800; }
.efh-search-hero__subtitle { color: #706f6f; font-size: 24px; line-height: 32px; }
.efh-search-results { padding: 50px 0 80px; background: #fff; }
.efh-search-results > .efh-container { padding-top: 2vw; padding-bottom: 2vw; }
.efh-search-results .efh-post-grid { grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 8%; row-gap: min(6.4vw,95.92px); }
.efh-search-results .efh-post-card { padding: 19px; }
.efh-search-results .efh-post-card__image { margin: -20px -20px 29px; }
.efh-search-results .efh-post-card__title { margin: 0; padding: 0 0 10px; font-size: 21px; line-height: 1.2; font-weight: 500; }
.efh-search-pagination { margin-top: 30px; }
.efh-search-pagination .nav-links { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.efh-search-pagination .nav-previous,
.efh-search-pagination .nav-next { flex: 1 1 0; min-width: 0; }
.efh-search-pagination a { color: #86bc35; text-decoration: none; font-size: 20px; line-height: 1.6; }
.efh-search-pagination a:hover { color: #86bc35; opacity: .7; }

/* Existing single-post presentation: full width, title and square thumbnail. */
.efh-single-post__header h1 { margin: 0 0 24px; color: #706f6f; font-size: 30px; line-height: 1.25; font-weight: 600; }
.efh-single-post__featured { width: 400px; max-width: 100%; margin: 0 0 30px; background: #706f6f; }
.efh-single-post__image { display: block; width: 100%; height: auto; margin: 0; object-fit: contain; }
.efh-post-content { color: #706f6f; overflow-wrap: break-word; }
.efh-post-content::after { display: table; clear: both; content: ""; }
.efh-post-content p { margin-top: 0; margin-bottom: 1em; }
.efh-post-content h2 { margin-top: 1.2em; margin-bottom: .5em; font-size: 26px; line-height: 1.3; font-weight: 600; }
.efh-post-content h3 { margin-top: 1.1em; margin-bottom: .5em; font-size: 23px; line-height: 1.3; font-weight: 600; }
.efh-post-content h4 { font-size: 21px; line-height: 1.3; }
.efh-post-content a { color: #86bc35; text-decoration: underline; text-underline-offset: .12em; }
.efh-post-content img { max-width: 100%; height: auto; }
.efh-post-content .alignleft { float: left; margin: 0 24px 18px 0; }
.efh-post-content .alignright { float: right; margin: 0 0 18px 24px; }
.efh-post-content .aligncenter { display: block; margin-right: auto; margin-left: auto; }
.efh-post-content .wp-caption { max-width: 100%; }
.efh-post-content .wp-caption-text,
.efh-post-content figcaption { margin-top: 8px; color: #706f6f; font-size: 14px; line-height: 1.5; }
.efh-post-content blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid #86bc35; }
.efh-post-content ul,
.efh-post-content ol { margin-bottom: 1em; padding-left: 1.5em; }
.efh-post-content .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16/9; }
.efh-post-content .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.efh-post-content-pages { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.efh-journal #comments { margin-top: 48px; }
.efh-journal .comment-list { padding-left: 0; list-style: none; }
.efh-journal .comment-list .children { list-style: none; }
.efh-journal .comment-body { margin-bottom: 24px; padding: 20px; border: 1px solid #d8d8d8; }
.efh-journal .comment-meta { margin-bottom: 12px; font-size: 14px; }
.efh-journal .comment-form label { display: block; margin-bottom: 6px; }
.efh-journal .comment-form input:not([type="checkbox"]):not([type="submit"]),
.efh-journal .comment-form textarea { box-sizing: border-box; max-width: 100%; width: 100%; padding: 10px 14px; border: 1px solid #d8d8d8; border-radius: 6px; font: inherit; }
.efh-journal .comment-form .comment-form-cookies-consent label { display: inline; }
.efh-journal .comment-form .submit { padding: 10px 20px; border: 2px solid #86bc35; border-radius: 8px; background: #86bc35; color: #fff; font: inherit; cursor: pointer; }
@media(max-width:980px) {
  .efh-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px; }
  .efh-post-carousel { grid-template-columns: none; grid-auto-columns: calc((100% - 24px)/2); }
  .efh-search-results > .efh-container { padding-top: 30px; padding-bottom: 30px; }
  .efh-search-results .efh-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 5.5%; row-gap: 6.13vw; }
}
@media(max-width:767px) {
  .efh-search-results .efh-post-grid { grid-template-columns: minmax(0,1fr); row-gap: 7.6vw; }
}
@media(max-width:600px) {
  .efh-journal { padding-top: 30px; padding-bottom: 55px; }
  .efh-post-grid { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .efh-post-carousel { grid-template-columns: none; grid-auto-columns: 88%; }
  .efh-journal__header h1,
  .efh-single-post__header h1 { font-size: 28px; }
  .efh-post-content .alignleft,
  .efh-post-content .alignright { float: none; display: block; margin: 0 auto 20px; }
  .efh-journal-pagination .nav-next { text-align: left; }
  .efh-journal--search { padding: 0; }
  .efh-search-pagination .nav-next { text-align: right; }
}
@media(max-width:479px) { .efh-search-results .efh-post-grid { row-gap: 9.2vw; } }
