/* WordPress-only additions. Nothing here applies to the ported pages for visitors. */

/* Keep the sticky glass header below the admin bar for logged-in users. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Generic pages and posts written in the editor (page.php / single.php / index.php). */
.legal--single { grid-template-columns: minmax(0, 1fr) !important; }
.entry-content > :first-child { margin-top: 0; }
.entry-content img,
.entry-content video,
.entry-content iframe { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content ul,
.entry-content ol { padding-left: 1.25em; margin: 0 0 1em; }
.entry-content blockquote { margin: 1.25em 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--primary, #10b981); }
.entry-content figure { margin: 1.25em 0; }
.entry-content figcaption { font-size: .875em; opacity: .75; margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.entry-content th,
.entry-content td { padding: 8px 10px; border-bottom: 1px solid var(--border, rgba(0,0,0,.1)); text-align: left; }
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text,
.screen-reader-text { font-size: .875em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.post-list { display: grid; gap: var(--s3, 24px); }
.post-list .info-card h2 a { color: inherit; text-decoration: none; }
.post-list .info-card h2 a:hover { text-decoration: underline; }
.post-list__meta { font-size: .875rem; opacity: .7; margin: 0 0 8px; }
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: var(--s4, 32px); flex-wrap: wrap; }
.pagination-wrap .page-numbers { padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.pagination-wrap .page-numbers.current { font-weight: 700; }

/* Comments */
.comment-form p { margin: 0 0 12px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.comment-list { list-style: none; padding: 0; }
.comment-list .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
