/* WordPress glue for the design in site.css, plus inner pages (articles, pages, 404). */

/* Template-part wrappers must not trap the sticky header. */
.zur-part-header,
.zur-part-footer { display: contents; }
.wp-site-blocks > * { margin-block: 0; }
.zur-main > * { margin-block: 0; }

/* Admin bar offset for the sticky header (logged-in users only). */
.admin-bar header.main { top: 32px; }
@media (max-width: 782px) { .admin-bar header.main { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.main { top: 0; } }

/* Skip link (accessibility). */
.skip-link { position: absolute; right: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 18px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* Form spam trap and result notice. */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-notice { margin: 14px 0 0; padding: 12px 16px; border-right: 3px solid; font-weight: 600; background: var(--paper); }
.form-notice.is-ok { border-color: #16A34A; color: #14532D; }
.form-notice.is-err { border-color: #DC2626; color: #7F1D1D; }
.contact .form-notice { margin: 0 0 18px; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--paper-2); border-bottom: 1px solid var(--rule); padding: 64px 0 52px; }
.page-hero h1, .page-hero .wp-block-post-title { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.2; max-width: 900px; position: relative; padding-bottom: 18px; }
.page-hero h1::after, .page-hero .wp-block-post-title::after { content: ""; position: absolute; bottom: 0; right: 0; width: 56px; height: 3px; background: var(--brass); }
.page-hero .hero-chip { font-size: 14px; font-weight: 700; color: var(--brass-ink); margin-bottom: 12px; }
.page-hero .hero-chip a:hover { text-decoration: underline; }
.page-hero .hero-meta { color: var(--muted); font-size: 15px; margin-top: 14px; }

.entry-wrap { padding-top: 56px; padding-bottom: 88px; }
.entry-content { max-width: 760px; font-size: 18px; line-height: 1.85; }
.entry-content > * + * { margin-block-start: 1.1em; }
.entry-content h2 { font-size: 30px; margin-block-start: 1.6em; }
.entry-content h3 { font-size: 23px; margin-block-start: 1.4em; }
.entry-content a { color: var(--brass-ink); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-right: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { border-right: 3px solid var(--brass); padding: 4px 22px 4px 0; font-family: var(--serif); font-size: 20px; color: var(--ink-2); }
.entry-content img { max-width: 100%; height: auto; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--rule); padding: 10px 12px; text-align: right; }

.article-cta { max-width: 760px; margin-top: 56px; background: var(--ink); color: var(--paper); padding: 32px 34px; }
.article-cta h2 { font-size: 26px; margin-bottom: 10px; }
.article-cta a { color: var(--brass-soft); font-weight: 700; }

/* Articles list (reuses the .kcard look from the home page). */
.list-wrap { padding-top: 48px; padding-bottom: 88px; }
.post-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-grid > li { display: flex; }
.post-grid .kcard { width: 100%; }
.post-grid .kcard .wp-block-post-title { font-size: 22px; line-height: 1.35; margin: 12px 0 10px; }
.post-grid .kcard .wp-block-post-title a:hover { color: var(--brass-ink); }
.post-grid .kcard .wp-block-post-excerpt { color: var(--muted); font-size: 16px; flex: 1; }
.post-grid .kcard .wp-block-post-excerpt__more-text { display: none; }
.post-grid .kcard .chip a { color: inherit; }
.post-grid .kdate { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.wp-block-query-pagination { margin-top: 44px; gap: 10px; font-weight: 600; }
.wp-block-query-pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--rule); }
.wp-block-query-pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 44px 0 36px; }
  .entry-wrap { padding-top: 36px; padding-bottom: 64px; }
}
