/* recent-r2 (2026-12-03): the shared bottom nav, nav.mgg-bottom-nav = a Home link + a "Recently used" strip (filled by recent-r2.js, hidden while empty).
   Self-contained: text, borders and fills come from the page's own text color (currentColor), so it reads the same on every page in Light and Dark.
   Only the pinned star has its own color (amber, one value for Light, one for Dark). */
.mgg-bottom-nav{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%;max-width:100%;min-width:0;margin:1.25rem 0 0;padding:0;text-align:left;font:inherit;font-size:.9rem;line-height:1.2;color:inherit;--mbn-star:#9a6700}
html[data-theme="dark"] .mgg-bottom-nav{--mbn-star:#f2c14e}
@media (prefers-color-scheme:dark){html:not([data-theme]) .mgg-bottom-nav{--mbn-star:#f2c14e}}
.mgg-bottom-nav *{box-sizing:border-box}
.mgg-bottom-nav a.mbn-home,.mgg-bottom-nav a.mbn-pill{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:none;background:color-mix(in srgb,currentColor 7%,transparent);border:1px solid color-mix(in srgb,currentColor 24%,transparent);border-radius:999px;font:inherit;font-size:.9rem;font-weight:650;line-height:1.2;transition:border-color .2s ease,background-color .2s ease}
.mgg-bottom-nav a.mbn-home:hover,.mgg-bottom-nav a.mbn-pill:hover{border-color:color-mix(in srgb,currentColor 55%,transparent);background:color-mix(in srgb,currentColor 12%,transparent);text-decoration:none}
.mgg-bottom-nav a.mbn-home:focus-visible,.mgg-bottom-nav a.mbn-pill:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.mgg-bottom-nav a.mbn-home{gap:8px;padding:0 16px 0 12px}
.mgg-bottom-nav .mbn-ic{flex:none;display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mgg-bottom-nav .mbn-recent{display:block;width:100%;min-width:0}
.mgg-bottom-nav .mbn-recent[hidden]{display:none}
.mgg-bottom-nav .mbn-k{margin:0 0 6px;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.75}
.mgg-bottom-nav .mbn-rail{display:flex;align-items:center;gap:8px;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:2px 2px 4px;margin:-2px;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
.mgg-bottom-nav .mbn-rail::-webkit-scrollbar{display:none}
.mgg-bottom-nav a.mbn-pill{flex:0 0 auto;gap:9px;max-width:14rem;padding:0 14px 0 5px;scroll-snap-align:start}
.mgg-bottom-nav .mbn-th{flex:none;width:32px;height:32px;border-radius:50%;overflow:hidden;background:color-mix(in srgb,currentColor 12%,transparent)}
.mgg-bottom-nav .mbn-th img{display:block;width:100%;height:100%;margin:0;object-fit:cover;object-position:center;max-width:none}
.mgg-bottom-nav .mbn-n{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mgg-bottom-nav .mbn-star{flex:none;fill:var(--mbn-star);stroke:none}
.mgg-bottom-nav .mbn-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (prefers-reduced-motion:reduce){.mgg-bottom-nav a.mbn-home,.mgg-bottom-nav a.mbn-pill{transition:none}}
