/* WordPress-specific additions to site.css */

/* Keep the sticky header below the admin bar for logged-in users */
.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; } }

/* WordPress core classes */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, figure { max-width: 100%; margin: 1.5rem 0; }
.wp-caption-text, figcaption { font-size: var(--fs-s); color: var(--ink-3); margin-top: 0.5rem; }
.entry-content img, .article-body img { height: auto; border-radius: var(--r-m); }
.article-image { margin: 0 0 2rem; }
.article-image img { width: 100%; }

/* Plain pages that were not created by AltF9 Setup */
.entry-content h2 { font-size: var(--fs-xl); font-weight: 450; font-stretch: 112%; margin: 2.5rem 0 0.75rem; }
.entry-content h3 { margin: 1.75rem 0 0.6rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1rem; color: var(--ink-2); }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: var(--fs-s); }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 0.7rem 0.8rem; text-align: left; }

/* Guides: tables written in the editor without the wrapper still scroll on phones */
.article-body > table, .article-body .wp-block-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); margin: 1.5rem 0; }
.article-body > table th, .article-body > table td, .article-body .wp-block-table th, .article-body .wp-block-table td { border-bottom: 1px solid var(--line); padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; }
.article-body .wp-block-table { overflow-x: auto; }
.article-body blockquote { margin: 1.75rem 0; padding: 0.5rem 0 0.5rem 1.25rem; border-left: 4px solid var(--yellow); color: var(--ink-2); }

/* Pagination on the Guides page */
.navigation.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; min-height: 2.5rem; padding: 0 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--r-s); text-decoration: none; font-weight: 600; color: var(--ink); }
.nav-links .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.nav-links a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
