/* ===== Pagefind UI color/contrast tuning for PaperMod ===== */

/* default (light) */
:root {
--pagefind-ui-scale: 1;
--pagefind-ui-primary: #2563eb;            /* links, accents */
--pagefind-ui-text: #1f2937;               /* main text */
--pagefind-ui-background: #ffffff;         /* result bg */
--pagefind-ui-border: #e5e7eb;             /* separators */
--pagefind-ui-tag: #f3f4f6;
}

/* PaperMod dark mode toggles body.dark; include html[data-theme] for compatibility */
html[data-theme="dark"],
body.dark {
--pagefind-ui-primary: #8ab4f8;
--pagefind-ui-text: #e5e7eb;
--pagefind-ui-background: #111827;         /* near PaperMod bg */
--pagefind-ui-border: #374151;
--pagefind-ui-tag: #1f2937;
}

/* Make excerpts readable (Pagefind dims them by default) */
.pagefind-ui__result-excerpt { opacity: 1; color: var(--pagefind-ui-text); }

/* Titles + metadata */
.pagefind-ui__result-title     { color: var(--pagefind-ui-text); }
.pagefind-ui__supplemental,
.pagefind-ui__message          { color: var(--pagefind-ui-text); opacity: .8; }

/* Visible separators */
.pagefind-ui__result { border-bottom: 1px solid var(--pagefind-ui-border); padding-bottom: .75rem; }

/* Highlight color that pops on dark */
mark[data-markjs] { background: #fde68a; color: #111827; border-radius: .2em; padding: 0 .15em; }
