/* functionb.com v16 (2026-11-12): compact navigation + half-size hit counter for every theme.
   Loaded after the theme's theme.css. "html body" raises specificity over the theme rules without !important.
   Tap targets stay >= 32px tall; nav text stays >= 12px. */

/* ---- Older / newer post links: one slim line each, title truncated ---- */
html body .prevnext{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:8px;max-width:960px;margin:20px auto 8px}
html body .prevnext>span:empty{flex:0 0 0}
html body .pn{flex:0 1 auto;min-width:0;max-width:calc(50% - 4px);min-height:32px;display:inline-flex;flex-direction:row;align-items:center;gap:7px;padding:4px 13px;white-space:nowrap;overflow:hidden;line-height:1.2;text-align:left}
html body .pn{margin-top:0;margin-bottom:0}
html body .pn.older{flex-direction:row-reverse;margin-left:auto;text-align:right}
html body .pn small{flex:none;font-size:12px;line-height:1;letter-spacing:.06em}
html body .pn span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.3}

/* ---- Pagination (home "Older posts" pages) ---- */
html body .pager{justify-content:center;gap:8px;margin:18px 0 6px;flex-wrap:nowrap}
html body .pager a{min-height:32px;display:inline-flex;align-items:center;padding:4px 13px;font-size:12px;line-height:1;white-space:nowrap}
html body .pager span{font-size:12px;white-space:nowrap}

/* ---- Archive filter chips, tag chips, section links ---- */
html body .chips{gap:6px;margin-bottom:10px}
html body .chip{min-height:32px;display:inline-flex;align-items:center;gap:4px;padding:4px 11px;font-size:12px;line-height:1}
html body .chip.ic{padding:4px 11px}
html body .chip.ic svg{width:16px;height:16px}
html body .chip.sm{min-height:32px;padding:4px 10px;font-size:12px}
html body .sec-head a{display:inline-flex;align-items:center;min-height:32px}

@media (max-width:420px){
  html body .pn{padding:4px 10px;gap:5px}
  html body .pn span{font-size:12px}
}

/* ---- Hit counter text at half its previous size (RJ's exception to the 12px minimum) ---- */
html body.theme-eclipse .hits{font-size:5px}           html body.theme-eclipse .hits #hitcount{font-size:10px}
html body.theme-monolith .hits{font-size:5.5px;padding:5px 8px} html body.theme-monolith .hits #hitcount::after{font-size:5.5px}
html body.theme-drift .hits{font-size:6px;padding:5px 9px}     html body.theme-drift .hits #hitcount{font-size:7px}
html body.theme-signal .hits{font-size:5.5px;padding:5px 7px}  html body.theme-signal .hits #hitcount::after{font-size:6.5px}
html body.theme-oxblood .hits{font-size:5.5px}          html body.theme-oxblood .hits #hitcount{font-size:11px}
html body.theme-riso .hits{font-size:6.5px;padding:5px 8px}
html body.theme-broadsheet .hits{font-size:6px;padding:4px 7px}
html body.theme-mesa .hits{font-size:8.5px;padding:5px 9px}
html body.theme-blueprint .hits{font-size:6.5px;padding:5px 7px} html body.theme-blueprint .hits #hitcount::after{font-size:6.5px}
html body.theme-acid .hits{font-size:9px;padding:5px 9px}
html body.theme-halo .hits,html body.theme-lantern .hits,html body.theme-bloom .hits,html body.theme-orbit .hits,html body.theme-pebble .hits{font-size:6px}
html body.theme-halo .hits #hitcount,html body.theme-lantern .hits #hitcount,html body.theme-bloom .hits #hitcount,html body.theme-orbit .hits #hitcount,html body.theme-pebble .hits #hitcount{font-size:10px}

/* Long card titles must not widen the grid on phones (fixes sideways scroll in Eclipse, Signal and Oxblood) */
html body .grid>.card{min-width:0}
html body .card .ct{min-width:0;max-width:100%}
html body .card .ct strong{max-width:100%}
