/* Shared mobile entry links. Keep the last page content clear of the fixed bar. */
.mobile-quick-actions { display: none; }
@media screen and (max-width: 850px) {
  html:has(.mobile-quick-actions) {
    scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  body:has(> .mobile-quick-actions)::after {
    content: "";
    display: block;
    width: 100%;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    grid-column: 1 / -1;
  }
  .mobile-quick-actions {
    box-sizing: border-box;
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #526171;
    background: #091521;
  }
  .mobile-quick-actions a {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #8794a5;
    border-radius: 3px;
    background: #18283a;
    color: #f1f0eb;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
    text-decoration: none;
  }
  .mobile-quick-actions .mobile-quick-nominees,
  .mobile-quick-actions a:only-child {
    border-color: #e3c67f;
    background: #e3c67f;
    color: #091521;
  }
  .mobile-quick-actions a:hover { filter: brightness(1.12); }
  .mobile-quick-actions a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  body:has(#menu-toggle[aria-expanded="true"]) > .mobile-quick-actions,
  body:has(dialog[open]) > .mobile-quick-actions {
    visibility: hidden;
    pointer-events: none;
  }
}
