/* ==========================================================================
   WordPress-specific additions. site.css (from the prototype) does the rest.
   ========================================================================== */

/* Admin bar: keep the sticky header and sticky rails below it */
.admin-bar .site-header { top: 46px; }
.admin-bar .sidebar__sticky,
.admin-bar .static-nav ul,
.admin-bar .toc-rail .toc { top: calc(var(--header-h) + var(--sp-6) + 46px); }
@media (min-width: 783px) {
  .admin-bar .site-header { top: 32px; }
  .admin-bar .sidebar__sticky,
  .admin-bar .static-nav ul,
  .admin-bar .toc-rail .toc { top: calc(var(--header-h) + var(--sp-6) + 32px); }
}
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } } /* admin bar scrolls away on small screens */

/* 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;
}
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; z-index: 1000; }

/* Block content inside .prose */
.prose .wp-block-image { margin-block: 2em; }
.prose .wp-block-image img { height: auto; }
.prose .wp-block-quote cite {
  display: block; margin-top: var(--sp-3); font-family: var(--font-ui); font-size: var(--fs-sm);
  font-style: normal; color: var(--text-muted);
}
.prose .wp-block-quote cite::before { content: "— "; }
.prose .wp-block-list { padding-left: 1.3em; }
.prose .wp-block-table, .prose .table-wrap { font-family: var(--font-ui); }
.prose > .notice { font-family: var(--font-ui); }
.prose .score-bands { font-family: var(--font-ui); }
.prose .alignwide, .prose .alignfull { max-width: none; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; }
.prose .wp-block-embed { margin-block: 2em; }
.prose .wp-block-embed iframe { max-width: 100%; }
.wp-element-caption, .prose figcaption { font-family: var(--font-ui); }

/* Comments (wp_list_comments → <ol>/<li>) */
.comments__list, .comments__list .children { list-style: none; padding: 0; margin: 0; }
.comments__list > li + li { margin-top: var(--sp-6); }
.comments__list .children { margin-top: var(--sp-6); display: grid; gap: var(--sp-6); }
.comment__time { text-decoration: none; }
.comment__body p + p { margin-top: 0.6em; }
.comment__actions a { color: var(--text-muted); font-weight: 600; text-decoration: none; padding: 4px 0; }
.comment__actions a:hover { color: var(--text); }
.comment-respond { margin-top: var(--sp-8); }
.comment-respond .comment-form { margin-top: var(--sp-4); }
.comment-respond #reply-title small { margin-left: var(--sp-3); font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 600; }
.comment-form .form-submit { margin: 0; }
.comments .pagination, .comments .nav-links { margin-top: var(--sp-6); display: flex; gap: var(--sp-4); }

/* Filters: the Apply/Go buttons are for no-JS visitors; wp.js submits on change */
.js-enhanced [data-filters-apply] { display: none; }
.filters__row { align-items: end; }

/* Calendar view links look like the prototype's segmented buttons */
.segmented a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chip { text-decoration: none; }

/* Search tab counts */
#search-types .chip .muted { margin-left: 4px; font-weight: 500; }
