/* Site identity - Search & Replace for Elementor scheme */
:root { --brand: #e91640; --brand-deep: #7a0f26; --accent-mix: 42%; }
.mark .g1 { stop-color: color-mix(in oklab, var(--brand) 75%, var(--brand-deep)); }
.mark .g2 { stop-color: color-mix(in oklab, var(--brand) 30%, var(--brand-deep)); }
.mark .glyph { fill: none; stroke: #09090b; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); margin: 2.4rem 0 1rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: .15rem .6rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent); text-decoration: none; width: fit-content; }
.row.center { justify-content: center; flex-wrap: wrap; }

/* post grid and cards */
.post-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s; }
.post-card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 60%, var(--line)); }
.post-card[hidden] { display: none; }
.post-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.pc-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.pc-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; letter-spacing: -.01em; }
.pc-body p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-body .meta { margin-top: auto; font-size: .8rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .5rem; }
.chips .chip small { opacity: .7; }
.chips .chip[aria-current="page"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.filters { display: grid; gap: .8rem; margin-bottom: 1rem; }
.filters input { max-width: 30rem; }
.bento .tile .tag { margin-bottom: .2rem; }

/* article */
.article { max-width: none; margin-block: 1.5rem 3rem; }
.article > * { max-width: 48rem; }
.article > :first-child { margin-top: 0; }
.post-meta { color: var(--muted); font-size: .92rem; margin: .4rem 0 0; }
.post-meta .tag { margin-right: .3rem; }
.featured { margin: 0 0 1.5rem; }
.featured img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }
.prose h2 { scroll-margin-top: 5rem; } .prose h3 { scroll-margin-top: 5rem; margin-top: 1.6rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose pre { margin: 1rem 0; padding: .9rem 1rem; overflow-x: auto; font: 13px/1.55 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.prose pre code { font-size: inherit; }
.prose :not(pre) > code { padding: .1rem .35rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.prose blockquote { margin: 1.2rem 0; padding: .2rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.prose .table-wrap { margin: 1.2rem 0; }
.prose img { max-width: 100%; height: auto; }
.toc { margin: 0 0 1.5rem; font-size: .92rem; }
.toc ol { margin: .5rem 0 0; padding-left: 1.2rem; } .toc li { margin-bottom: .2rem; }
.plugin-cta-box { margin: 2.2rem 0; text-align: left; border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.plugin-cta-box h2 { margin: 0 0 .4rem; font-size: 1.3rem; }
.plugin-cta-box p { color: var(--muted); }
.plugin-cta-box .btn, .plugin-cta-box a[href*="searchreplaceplugin"] { margin-top: .3rem; }
.ext-cta { margin-top: 2.5rem; }
.ext-cta .card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.ext-cta h2 { margin: 0 0 .2rem; font-size: 1.25rem; }
.ext-cta p { margin: 0; color: var(--muted); }
.site-footer small { color: var(--muted); }

/* header button for the plugin */
.nav-ext { display: inline-flex; align-items: center; gap: .4rem; margin-left: .5rem; padding: .45rem .85rem; border-radius: 99px; background: var(--brand); color: var(--accent-ink); font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.nav-ext:hover { filter: brightness(1.08); }
.nav-ext svg { width: 16px; height: 16px; }
.nav-ext + .icon-btn { margin-left: .5rem; }
@media (max-width: 720px) { .nav-ext span { display: none; } .nav-ext { padding: .55rem; } }
