/* WordPress-specific additions to the Enthusiasm design */

/* Sticky header below the admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Contact form */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 16px 18px; border-radius: var(--radius-sm); background: #fdecea; color: #8a1c12; font-weight: 500; margin: 0 0 18px; }
.form .form-success.show { margin: 0 0 18px; }
.form button[disabled] { opacity: .7; cursor: wait; }

/* Pagination */
.pager { margin-top: 44px; }
.pager .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; }
.pager .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .page-numbers:hover { border-color: var(--navy); }
.pager h2 { position: absolute; left: -9999px; }

/* Content from the editor */
.page-narrow { max-width: 800px; }
.entry-content img { max-width: 100%; height: auto; border-radius: 14px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.entry-content blockquote { border-left: 4px solid var(--sky); padding: 4px 0 4px 20px; margin-left: 0; color: var(--ink); font-size: 1.1em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content .wp-block-button__link { background: var(--sky); color: var(--ink); border-radius: 999px; padding: 12px 22px; font-weight: 600; text-decoration: none; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.wp-caption { max-width: 100%; }
@media (max-width: 880px) { .alignwide { margin-left: 0; margin-right: 0; } }

/* Older posts repeat their title as an H1 at the top of the content */
.entry-content > h1:first-child { display: none; }
