
/* Interactive category selectors: clear targets without hiding content. */
.scale-nav,.software-scale-nav,.standard-section-nav { gap:.5rem; border:0; background:transparent; }
.scale-nav a,.software-scale-nav a,.standard-section-nav a { position:relative; border:1px solid #b8cbbb; border-bottom:3px solid #b8cbbb; background:#f8f7f1; padding:1rem 2rem 1rem 1rem; transition:background-color .16s ease,border-color .16s ease,transform .16s ease; }
.scale-nav a:last-child,.software-scale-nav a:last-child,.standard-section-nav a:last-child { border-right:1px solid #b8cbbb; }
.scale-nav a::after,.software-scale-nav a::after,.standard-section-nav a::after { content:""; position:absolute; right:.8rem; top:1.15rem; width:.45rem; height:.45rem; border-right:1.5px solid #3f7653; border-bottom:1.5px solid #3f7653; transform:rotate(45deg); }
.scale-nav a:hover,.software-scale-nav a:hover,.standard-section-nav a:hover { background:#e8f1e7; border-color:#3f7653; transform:translateY(-2px); }
.scale-nav a:focus-visible,.software-scale-nav a:focus-visible,.standard-section-nav a:focus-visible { outline:2px solid #28533b; outline-offset:3px; }
.scale-nav a[aria-current="location"],.software-scale-nav a[aria-current="location"],.standard-section-nav a[aria-current="location"] { background:#28533b; border-color:#28533b; color:#fff; }
.scale-nav a[aria-current="location"] small,.scale-nav a[aria-current="location"] .research-category-icon,
.software-scale-nav a[aria-current="location"] small,.software-scale-nav a[aria-current="location"] .section-nav-icon,
.standard-section-nav a[aria-current="location"] .section-nav-icon { color:#e8f1e7; }
.scale-nav a[aria-current="location"]::after,.software-scale-nav a[aria-current="location"]::after,.standard-section-nav a[aria-current="location"]::after { border-color:#e8f1e7; }
@media(prefers-reduced-motion:reduce) { .scale-nav a,.software-scale-nav a,.standard-section-nav a { transition:none; } .scale-nav a:hover,.software-scale-nav a:hover,.standard-section-nav a:hover { transform:none; } }

/* Center the category icons and labels as one balanced click target. */
.scale-nav a,.software-scale-nav a,.standard-section-nav a { text-align:center; padding:1rem; }
.scale-nav .research-category-icon,.software-scale-nav .section-nav-icon,.standard-section-nav .section-nav-icon { justify-content:center; margin-left:auto; margin-right:auto; }
.scale-nav a::after,.software-scale-nav a::after,.standard-section-nav a::after { position:static; display:block; margin:.65rem auto .15rem; }

/* Keep section choices available throughout each page. */
.scale-nav,.software-scale-nav,.standard-section-nav{position:sticky;top:var(--section-menu-top,74px);z-index:20;padding:.5rem 0;background:#fff;border-bottom:1px solid #b8cbbb;align-self:start}
.section-nav-sentinel{height:1px;pointer-events:none}
.is-compact-section-nav a{padding:.65rem .5rem;display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px}
.is-compact-section-nav a small,.is-compact-section-nav a::after{display:none}
.is-compact-section-nav .research-category-icon,.is-compact-section-nav .section-nav-icon{margin:0;width:auto;height:auto;flex-shrink:0}
.is-compact-section-nav svg{width:22px;height:22px}
.is-compact-section-nav strong{font-size:.9rem;line-height:1.3}
.research-page .research-chapter,.software-page .software-chapter,.experience-page .standard-panel{scroll-margin-top:calc(var(--section-menu-top,74px) + 90px)}
@media(max-width:760px){.scale-nav,.software-scale-nav,.standard-section-nav{display:flex;overflow-x:auto;gap:.4rem;padding:.5rem 0;scrollbar-width:thin}.scale-nav a,.software-scale-nav a,.standard-section-nav a{flex:0 0 auto;min-width:145px}.is-compact-section-nav a{min-width:140px}.is-compact-section-nav strong{font-size:.85rem}}

/* Preserve document flow when the sticky navigation contracts. */
.section-nav-spacer{height:0;overflow-anchor:none;pointer-events:none}.section-nav-sentinel,.scale-nav,.software-scale-nav,.standard-section-nav{overflow-anchor:none}.research-page,.software-page,.experience-page{overflow-anchor:none}.scale-nav a:hover,.software-scale-nav a:hover,.standard-section-nav a:hover{transform:none}
