/* WordPress-specific additions on top of the compiled Tailwind stylesheet. */

/* The original relied on `body > *` being positioned; sections now live inside <main>. */
.divider-section { position: relative; }

/* WordPress core accessibility helpers */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100000;
  width: auto; height: auto; margin: 0; padding: 0.75rem 1rem; clip: auto;
  background: var(--color-nio-yellow); color: var(--color-nio-offblack); border-radius: 0.5rem;
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-nio-yellow); outline-offset: 2px; }

/* Admin bar offsets for the fixed header and mobile menu */
.admin-bar .header { top: 32px; }
.admin-bar .menu { top: calc(4rem + 32px); }
@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }
  .admin-bar .menu { top: calc(4rem + 46px); }
}

/* Newsletter button (was a <button> with a placeholder alert, now a link) */
.newsletter > .newsletter-btn {
  background: var(--color-nio-yellow); color: var(--color-nio-yellow-dark);
  padding: 0.5rem 1rem; font-weight: 700; border-radius: 0.5rem;
  transition: background-color 150ms ease-in-out;
}
.newsletter > .newsletter-btn:hover { background: var(--color-nio-yellow-faded); }

/* News thumbnails */
.news-thumb { display: block; max-width: 100%; height: 13rem; width: auto; object-fit: cover; border-radius: 0.375rem; }

/* Inner pages (posts, pages, archives, 404) */
.site-main--inner { padding-top: 4rem; }
.page-panel {
  background: var(--color-nio-offwhite); color: var(--color-nio-yellow-dark);
  padding: 3rem; min-height: 70vh; min-height: 70dvh;
}
.page-panel > * + * { margin-top: 1rem; }
.page-meta { font-size: 0.75rem; font-style: italic; font-weight: 300; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-weight: 800; margin-top: 2rem; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content a { text-decoration: underline; }
.entry-content a:hover { color: var(--color-nio-pink); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote { border-left: 0.4rem solid var(--color-nio-yellow); padding-left: 1rem; font-style: italic; }
.entry-content pre, .entry-content code { background: rgba(0, 0, 0, 0.06); border-radius: 0.25rem; }
.entry-content code { padding: 0.1rem 0.3rem; }
.entry-content pre { padding: 1rem; overflow-x: auto; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; border-radius: 0.375rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 2px solid var(--color-nio-yellow-faded); padding: 0.5rem; text-align: left; }
.wp-caption, .wp-block-image figcaption { font-size: 0.75rem; font-style: italic; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.page-panel::after { content: ""; display: block; clear: both; }

.post-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.pagination .nav-links, .post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.pagination a, .post-navigation a { text-decoration: underline; }
.pagination .current { font-weight: 800; }
.pagination .page-numbers { padding: 0 0.25rem; }
