/* shared styles for blog, resources, contact */
.filterbar.blogbar { display: flex; gap: 12px 17px; flex-wrap: wrap; align-items: center; justify-content: space-between; }.chips { display: flex; gap: 8px; flex-wrap: wrap; }.chips a { font-size: .84rem; padding: 8px 13px; border: 1px solid var(--rule-strong); border-radius: 2px; text-decoration: none; color: var(--ink-2); }.chips a:hover { border-color: var(--ink); color: var(--ink); }.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }.pager { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }.pager a, .pager .gap { padding: 10px 14px; border: 1px solid var(--rule); text-decoration: none; font-size: .9rem; min-width: 42px; text-align: center; background: var(--card); }.pager .gap { border: 0; background: none; }.pager a:hover { border-color: var(--ink); }.pager a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }.post-cover { width: 100%; max-height: 520px; object-fit: cover; margin: 0 0 14px; }.post-end { margin-top: 34px; padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; }.post-end .share { display: flex; gap: 12px; }.contact-block { padding: 12px 0; }.contact-block h5 { font: 500 .7rem var(--mono); color: var(--accent); margin: 0 0 8px; }.contact-block p { margin: 0; }.doc { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; }.doc:not(:has(.doc-ext)) { grid-template-columns: minmax(0, 1fr); }.doc-ext { width: 56px; height: 68px; background: var(--card); display: grid; place-items: end center; padding-bottom: 8px; position: relative; font: 500 .66rem var(--mono); }.doc-ext::before { content: ''; position: absolute; top: -1px; right: -1px; width: 16px; height: 16px; background: linear-gradient(225deg, var(--paper) 50%, var(--ink) 50%); }.doc-ext.big { width: 72px; height: 88px; margin-bottom: 13px; }.doc h3 { font-size: 1.35rem; margin-bottom: 6px; }.doc h3 a { text-decoration: none; }.doc h3 a:hover { color: var(--accent); }.doc p { margin: 0 0 10px; color: var(--ink-2); font-size: .95rem; max-width: 64ch; }.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 .72rem var(--mono); color: var(--ink-3); align-items: center; }
@media (max-width: 640px) {.doc { grid-template-columns: 48px 1fr; }.doc-act { grid-column: 2; }.doc-ext { width: 44px; height: 54px; } }

/* share + comments */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.share-label { font-weight: 600; margin-right: 6px; font-size: .9rem; }
.sh { display: inline-block; padding: 8px 14px; background: var(--paper-2); color: var(--ink); text-decoration: none; font: 500 .85rem var(--sans); border: 0; border-radius: 3px; cursor: pointer; }
.comments { margin-top: 32px; }
.comments h2 { font-size: 1.5rem; margin-bottom: 14px; }
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cm { display: grid; grid-template-columns: 38px 1fr; gap: 12px; background: var(--card); padding: 14px; }
.cm-reply { background: var(--paper); padding: 10px 0 0 0; }
.cm .avatar { width: 38px; height: 38px; }
.cm-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 4px; }
.cm-head .muted { font-size: .82rem; }
.cm-body p { margin: 0 0 6px; color: var(--ink-2); }
.cm-reply-link { font-size: .85rem; font-weight: 600; }
.cm-body .cm-list { margin-top: 10px; }
.cm-form { margin-top: 20px; background: var(--card); padding: 18px; }
.cm-form h3 { font-size: 1.15rem; margin-bottom: 12px; }

/* event gallery + viewer */
.ev-gallery { margin-top: 28px; }
.ev-gallery h2 { font-size: 1.5rem; margin-bottom: 12px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.gal-grid a { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb { position: fixed; inset: 0; background: rgba(10, 11, 14, .94); z-index: 200; display: grid; place-items: center; }
.lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #f6f3ec; font-size: .9rem; padding: 0 60px; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 10px 18px; }
.lb-x { top: 8px; right: 10px; } .lb-p { left: 6px; top: 50%; } .lb-n { right: 6px; top: 50%; }

/* icon-only share buttons */
.share-bar { gap: 8px; }
.sh { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; background: var(--paper-2); color: var(--ink); border: 0; border-radius: 3px; cursor: pointer; text-decoration: none; }
.sh svg { display: block; }
.sh .i-done { display: none; }
.sh.done { background: var(--ink); color: #fff; }
.sh.done .i-link { display: none; }
.sh.done .i-done { display: inline-grid; }
.share-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* legal pages: sticky table of contents in a sidebar */
.legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.toc { position: sticky; top: 84px; background: var(--card); padding: 16px 8px; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc h4 { margin: 0 0 8px 12px; font-size: 1rem; }
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 12px; text-decoration: none; font-size: .86rem; line-height: 1.3; color: var(--ink); }
.toc a::before { content: counter(toc) "."; font-weight: 700; }
.toc a:target, .toc a:focus-visible { background: var(--paper-2); }
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; scroll-margin-top: 90px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.legal p, .legal li { max-width: none; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; max-height: none; } }

/* single post: featured image never touches the header above it */
.post-cover-wrap { max-width: 1000px; padding-top: 28px; padding-bottom: 4px; }
.post-cover { margin: 0; border-radius: 6px; }
.post-cover-wrap + .sec { padding-top: 24px; }

/* search */
.big-search { display: flex; gap: 8px; max-width: 640px; margin-top: 14px; }
.big-search .input { flex: 1; min-width: 0; }
.res-list { display: grid; gap: 8px; }
.res-row { display: grid; gap: 3px; background: var(--card); padding: 14px 18px; text-decoration: none; color: var(--ink); }
.res-row span { font-size: .88rem; }
.hdr-search { display: inline-grid; place-items: center; width: 38px; height: 38px; color: var(--ink); }
.search-status { font-weight: 600; margin: 0 0 6px; }

/* ===== no border-colour change on hover or click ===== */
.chips a, .chips a:hover, .pager a, .pager a:hover { border-color: var(--rule-strong); }
.chips a[aria-current], .pager a[aria-current] { border-color: var(--ink); }
.chips a:focus, .pager a:focus { outline: none; }
.side-group a:hover { background: transparent; }
.side-group a[aria-current]:hover { background: var(--paper-2); }
