.product-neighbor-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;width:100%;min-width:0;margin:.75rem 0}
.product-neighbor-nav:last-child{margin-top:1.5rem;margin-bottom:0}
.product-neighbor-nav a{display:flex;flex-direction:column;justify-content:center;gap:.25rem;min-width:0;min-height:3.5rem;padding:.5rem .625rem;border:1px solid var(--line,#d7cfc4);border-radius:.25rem;background:#fff;color:var(--ink,#122546);text-decoration:none;box-sizing:border-box}
.product-neighbor-nav a[rel="next"]{text-align:right}
.product-neighbor-caption{display:block;font-size:.75rem;line-height:1.25;color:var(--purple,#76528d)}
.product-neighbor-row{display:flex;align-items:center;gap:.375rem;min-width:0;font-size:.875rem;line-height:1.4;font-weight:600}
.product-neighbor-nav a[rel="next"] .product-neighbor-row{justify-content:flex-end}
.product-neighbor-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-neighbor-nav a:focus-visible{outline:3px solid var(--purple,#76528d);outline-offset:3px}
@media(hover:hover){.product-neighbor-nav a:hover{border-color:var(--purple,#76528d);background:#f5eff9}}

.product-navigation-topbar{display:contents}
.product-navigation-topbar .product-neighbor-nav{display:none}
.product-navigation-footer{padding:1.5rem var(--edge,4vw);background:var(--paper,#faf7f1)}
.product-navigation-footer .product-neighbor-nav{max-width:var(--content-max,93.75rem);margin:0 auto}
@media(min-width:48rem){
 .product-navigation-topbar{display:flex;align-items:center;gap:.5rem;min-width:0;width:100%}
 .product-navigation-topbar>.back{flex:0 0 auto;white-space:nowrap}
 .product-navigation-topbar .product-neighbor-nav{display:grid;flex:1;min-width:0;width:auto;margin:0}
 .product-navigation-topbar .product-neighbor-nav a{min-height:2.75rem;height:2.75rem;padding:.375rem .5rem}
 .product-navigation-topbar .product-neighbor-caption{display:none}
}
