From fdd7acb603cb39678e846bcd3937936c8f4eeeeb Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Mon, 6 Apr 2026 08:09:54 +0300 Subject: [PATCH] fix anchor scroll offset for sticky header Co-Authored-By: Claude Opus 4.6 (1M context) --- static/css/main.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/css/main.css b/static/css/main.css index 9c102bd..170d62e 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -307,6 +307,11 @@ nav a:hover { .csm-progress { background: #a5b4fc; color: #312e81; } .csm-guidelines { background: #e0e7ff; color: #3730a3; } +/* Offset anchors for sticky header */ +h1, h2, h3, h4, h5, h6 { + scroll-margin-top: 5rem; +} + /* Shortcode-specific overrides */ .ifk-stat-num { font-family: var(--ifk-font); } .ifk-stat-label { font-family: system-ui, -apple-system, sans-serif; }