/* Phone chrome: the member lives in the bottom dock, so the top row stays plain.
   Shipped as its own file because the CDN pins asset names for a week. */

.mtv-phone-only { display: none; }
.mtv-menu__hamburger { display: none; }

@media (max-width: 820px) {
  .mtv-header .mtv-search,
  .mtv-header .mtv-theme-toggle,
  .mtv-header .mtv-phone-hide,
  .mtv-header .mtv-menu { display: none; }

  .mtv-phone-only {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
  }

  /* The account menu returns as a hamburger, but only on the member's own screens. */
  .mtv-header .mtv-menu.mtv-menu--phone { display: block; }

  .mtv-menu--phone .mtv-menu__trigger {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 69, 116, .16);
    border-radius: 999px;
    background: transparent;
    color: var(--mtv-navy);
    list-style: none;
  }

  .mtv-menu--phone .mtv-menu__trigger::-webkit-details-marker { display: none; }
  .mtv-menu--phone .mtv-avatar--nav,
  .mtv-menu--phone .mtv-menu__chev { display: none; }
  .mtv-menu--phone .mtv-menu__hamburger { display: block; width: 20px; height: 20px; }
  .mtv-menu--phone .mtv-menu__panel {
    left: auto;
    right: 0;
    width: min(300px, calc(100vw - 24px));
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  /* Fifth dock slot: the member's own face, or a person mark until they have one. */
  .mtv-dock__avatar {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(140deg, var(--mtv-navy), var(--mtv-magenta));
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
  }

  .mtv-dock__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }

  .mtv-dock__account.active .mtv-dock__avatar { box-shadow: 0 0 0 1.5px var(--mtv-magenta); }
}
