/* v300: footer Links button + menu (see links-menu.js). Light/Dark + accent. */
html.sf3-links-menu main .site-foot3 .sf3-links{display:none!important}
html body main .site-foot3 .sfh-row{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;width:100%}
html body main .site-foot3 .sfh-row .sfh-view{margin:0!important;align-self:auto!important}
html body main .site-foot3 .sfh-links svg{transition:transform .15s}
html body main .site-foot3 .sfh-links[aria-expanded=true] svg{transform:rotate(180deg)}
html body main .site-foot3 .sfh-menu{position:absolute;z-index:30;top:calc(100% + 8px);left:50%;transform:translateX(-50%);min-width:220px;max-width:calc(100vw - 32px);box-sizing:border-box;
  display:flex;flex-direction:column;padding:6px;border-radius:16px;background:#16191e;border:1px solid rgba(var(--accent-rgb),.45);box-shadow:0 12px 32px rgba(0,0,0,.45)}
html body main .site-foot3 .sfh-menu a{display:flex;align-items:center;min-height:44px;padding:0 14px;border-radius:10px;color:#f2f4f7;text-decoration:none;font:600 15px/1.2 var(--body,system-ui);text-align:left}
html body main .site-foot3 .sfh-menu a:hover,html body main .site-foot3 .sfh-menu a:focus-visible{background:rgba(var(--accent-rgb),.16);color:#fff;outline:none}
html[data-theme=light] body main .site-foot3 .sfh-menu{background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.14)}
html[data-theme=light] body main .site-foot3 .sfh-menu a{color:#14171c}
html[data-theme=light] body main .site-foot3 .sfh-menu a:hover,html[data-theme=light] body main .site-foot3 .sfh-menu a:focus-visible{color:#0d0f12;background:rgba(var(--accent-rgb),.14)}
/* v300: footer flush (links-menu.js sets html.ft-flush + --ft-tb = visible fixed bottom-nav height) */
html.ft-flush.ft-flush:not(.vv-zoomed) body:not(#_){padding-bottom:0!important;margin-bottom:0!important}
html.ft-flush body > main,html.ft-flush body > main > .view:not([hidden]){padding-bottom:0!important;margin-bottom:0!important}
html.ft-flush body main > .site-foot3{margin-bottom:0!important;padding-bottom:calc(var(--ft-tb,0px) + 18px)!important}

/* v301: menu is a fixed popover on <body>, above the tabbar */
body > .sfh-menu{position:fixed!important;z-index:2147483000!important;transform:none!important;margin:0!important;display:grid;gap:2px;padding:6px;box-sizing:border-box;overflow:auto;
  background:#16191e;border:1px solid rgba(var(--accent-rgb),.55);border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.45)}
body > .sfh-menu a{display:flex;align-items:center;min-height:44px;padding:0 14px;border-radius:10px;color:#f2f4f7;text-decoration:none;font:600 15px/1.2 var(--body,system-ui);text-align:left}
body > .sfh-menu a:hover,body > .sfh-menu a:focus-visible{background:rgba(var(--accent-rgb),.16);color:#fff;outline:none}
html[data-theme=light] body > .sfh-menu{background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.16)}
html[data-theme=light] body > .sfh-menu a{color:#14171c}
html[data-theme=light] body > .sfh-menu a:hover,html[data-theme=light] body > .sfh-menu a:focus-visible{color:#0d0f12;background:rgba(var(--accent-rgb),.14)}

/* v302: More only — gaps.css (v190) "#view-more:not([hidden]) ~ .site-foot3" pads the footer by only the Help clear (~16px)
   and its ID selector outranked the v300 flush rule, so the fixed bottom nav covered the © line. Re-apply the flush pad there. */
html.ft-flush body main > #view-more:not([hidden]) ~ .site-foot3{padding-bottom:calc(var(--ft-tb,0px) + 18px)!important}
